devextreme 17.2.17 → 17.2.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/animation/easing.js +2 -2
- package/animation/frame.d.ts +2 -2
- package/animation/frame.js +2 -2
- package/animation/fx.d.ts +2 -2
- package/animation/fx.js +2 -2
- package/animation/position.js +2 -2
- package/animation/presets/presets.js +2 -2
- package/animation/presets.d.ts +2 -2
- package/animation/presets.js +2 -2
- package/animation/transition_executor/transition_executor.js +2 -2
- package/animation/transition_executor.d.ts +2 -2
- package/animation/transition_executor.js +2 -2
- package/animation/translator.js +2 -2
- package/aspnet.js +2 -2
- package/bundles/dx.all.d.ts +2 -2
- package/bundles/modules/core.js +2 -2
- package/bundles/modules/data.js +2 -2
- package/bundles/modules/data.odata.js +2 -2
- package/bundles/modules/framework.js +2 -2
- package/bundles/modules/ui.js +2 -2
- package/bundles/modules/viz.js +2 -2
- package/client_exporter/excel_creator.js +2 -2
- package/client_exporter/excel_format_converter.js +2 -2
- package/client_exporter/file_saver.js +2 -2
- package/client_exporter/image_creator.js +2 -2
- package/client_exporter/pdf_creator.js +2 -2
- package/client_exporter/svg_creator.js +2 -2
- package/client_exporter.js +2 -2
- package/color.js +2 -2
- package/core/action.js +2 -2
- package/core/class.js +2 -2
- package/core/component.js +2 -2
- package/core/component_registrator.js +2 -2
- package/core/component_registrator_callbacks.js +2 -2
- package/core/config.d.ts +2 -2
- package/core/config.js +2 -2
- package/core/devices.d.ts +2 -2
- package/core/devices.js +2 -2
- package/core/dom_adapter.js +2 -2
- package/core/dom_component.js +2 -2
- package/core/element_data.js +2 -2
- package/core/errors.js +2 -2
- package/core/events_mixin.js +2 -2
- package/core/events_strategy.js +2 -2
- package/core/guid.d.ts +2 -2
- package/core/guid.js +2 -2
- package/core/memorized_callbacks.js +2 -2
- package/core/polyfills/matches.js +2 -2
- package/core/polyfills/promise.js +2 -2
- package/core/polyfills/weak_map.js +2 -2
- package/core/remove_event.js +2 -2
- package/core/renderer.js +2 -2
- package/core/renderer_base.js +2 -2
- package/core/utils/ajax.js +2 -2
- package/core/utils/array.js +2 -2
- package/core/utils/browser.js +2 -2
- package/core/utils/callbacks.js +2 -2
- package/core/utils/common.js +2 -2
- package/core/utils/console.js +2 -2
- package/core/utils/data.js +2 -2
- package/core/utils/date.js +2 -2
- package/core/utils/date_serialization.js +2 -2
- package/core/utils/deferred.js +2 -2
- package/core/utils/dependency_injector.js +2 -2
- package/core/utils/dom.js +2 -2
- package/core/utils/error.js +2 -2
- package/core/utils/extend.js +2 -2
- package/core/utils/html_parser.js +2 -2
- package/core/utils/icon.js +2 -2
- package/core/utils/inflector.js +2 -2
- package/core/utils/iterator.js +2 -2
- package/core/utils/locker.js +2 -2
- package/core/utils/math.js +2 -2
- package/core/utils/object.js +2 -2
- package/core/utils/position.js +2 -2
- package/core/utils/public_component.js +2 -2
- package/core/utils/queue.js +2 -2
- package/core/utils/ready.js +2 -2
- package/core/utils/size.js +2 -2
- package/core/utils/storage.js +2 -2
- package/core/utils/string.js +2 -2
- package/core/utils/style.js +2 -2
- package/core/utils/support.js +2 -2
- package/core/utils/svg.js +2 -2
- package/core/utils/type.js +2 -2
- package/core/utils/variable_wrapper.js +2 -2
- package/core/utils/version.js +2 -2
- package/core/utils/view_port.js +2 -2
- package/core/utils/window.js +2 -2
- package/core/version.js +3 -3
- package/data/abstract_store.js +2 -2
- package/data/array_query.js +2 -2
- package/data/array_store.d.ts +2 -2
- package/data/array_store.js +2 -2
- package/data/custom_store.d.ts +2 -2
- package/data/custom_store.js +2 -2
- package/data/data_source/data_source.js +2 -2
- package/data/data_source.d.ts +2 -2
- package/data/data_source.js +2 -2
- package/data/endpoint_selector.d.ts +2 -2
- package/data/endpoint_selector.js +2 -2
- package/data/errors.d.ts +2 -2
- package/data/errors.js +2 -2
- package/data/local_store.d.ts +2 -2
- package/data/local_store.js +2 -2
- package/data/odata/context.d.ts +2 -2
- package/data/odata/context.js +2 -2
- package/data/odata/mixins.js +2 -2
- package/data/odata/query_adapter.js +2 -2
- package/data/odata/store.d.ts +2 -2
- package/data/odata/store.js +2 -2
- package/data/odata/utils.d.ts +2 -2
- package/data/odata/utils.js +2 -2
- package/data/proxy_url_formatter.js +2 -2
- package/data/query.d.ts +2 -2
- package/data/query.js +2 -2
- package/data/query_adapters.js +2 -2
- package/data/remote_query.js +2 -2
- package/data/store_helper.js +2 -2
- package/data/utils.d.ts +2 -2
- package/data/utils.js +2 -2
- package/data_helper.js +2 -2
- package/dist/css/dx.android5.light.css +2 -2
- package/dist/css/dx.carmine.compact.css +2 -2
- package/dist/css/dx.carmine.css +2 -2
- package/dist/css/dx.common.css +2 -2
- package/dist/css/dx.contrast.compact.css +2 -2
- package/dist/css/dx.contrast.css +2 -2
- package/dist/css/dx.dark.compact.css +2 -2
- package/dist/css/dx.dark.css +2 -2
- package/dist/css/dx.darkmoon.compact.css +2 -2
- package/dist/css/dx.darkmoon.css +2 -2
- package/dist/css/dx.darkviolet.compact.css +2 -2
- package/dist/css/dx.darkviolet.css +2 -2
- package/dist/css/dx.greenmist.compact.css +2 -2
- package/dist/css/dx.greenmist.css +2 -2
- package/dist/css/dx.ios7.default.css +2 -2
- package/dist/css/dx.light.compact.css +2 -2
- package/dist/css/dx.light.css +2 -2
- package/dist/css/dx.softblue.compact.css +2 -2
- package/dist/css/dx.softblue.css +2 -2
- package/dist/css/dx.spa.css +2 -2
- package/dist/css/dx.win10.black.css +2 -2
- package/dist/css/dx.win10.white.css +2 -2
- package/dist/css/dx.win8.black.css +2 -2
- package/dist/css/dx.win8.white.css +2 -2
- package/dist/js/dx.all.debug.js +49 -48
- package/dist/js/dx.all.js +9 -9
- package/dist/js/dx.mobile.debug.js +49 -48
- package/dist/js/dx.mobile.js +9 -9
- package/dist/js/dx.viz-web.debug.js +49 -48
- package/dist/js/dx.viz-web.js +20 -20
- package/dist/js/dx.viz.debug.js +49 -48
- package/dist/js/dx.viz.js +5 -5
- package/dist/js/dx.web.debug.js +49 -48
- package/dist/js/dx.web.js +20 -20
- package/dist/js/localization/dx.all.de.js +2 -2
- package/dist/js/localization/dx.all.ja.js +2 -2
- package/dist/js/localization/dx.all.ru.js +2 -2
- package/dist/js/localization/dx.messages.cs.js +2 -2
- package/dist/js/localization/dx.messages.de.js +2 -2
- package/dist/js/localization/dx.messages.en.js +2 -2
- package/dist/js/localization/dx.messages.es.js +2 -2
- package/dist/js/localization/dx.messages.fi.js +2 -2
- package/dist/js/localization/dx.messages.fr.js +2 -2
- package/dist/js/localization/dx.messages.it.js +2 -2
- package/dist/js/localization/dx.messages.ja.js +2 -2
- package/dist/js/localization/dx.messages.pt.js +2 -2
- package/dist/js/localization/dx.messages.ru.js +2 -2
- package/dist/js/localization/dx.messages.sv.js +2 -2
- package/dist/js/localization/dx.messages.zh.js +2 -2
- package/dist/js/localization/dx.mobile.de.js +2 -2
- package/dist/js/localization/dx.mobile.ja.js +2 -2
- package/dist/js/localization/dx.mobile.ru.js +2 -2
- package/dist/js/localization/dx.web.de.js +2 -2
- package/dist/js/localization/dx.web.ja.js +2 -2
- package/dist/js/localization/dx.web.ru.js +2 -2
- package/dist/js/vectormap-utils/dx.vectormaputils.debug.js +2 -2
- package/dist/js/vectormap-utils/dx.vectormaputils.js +2 -2
- package/dist/js/vectormap-utils/dx.vectormaputils.node.js +2 -2
- package/dist/ts/dx.all.d.ts +2 -2
- package/dist/ts/dx.all.legacy.d.ts +2 -2
- package/docEnums.js +2 -2
- package/events/click.d.ts +2 -2
- package/events/click.js +2 -2
- package/events/contextmenu.d.ts +2 -2
- package/events/contextmenu.js +2 -2
- package/events/core/emitter.feedback.js +2 -2
- package/events/core/emitter.js +2 -2
- package/events/core/emitter_registrator.js +2 -2
- package/events/core/event_registrator.js +2 -2
- package/events/core/event_registrator_callbacks.js +2 -2
- package/events/core/events_engine.js +2 -2
- package/events/core/hook_touch_props.js +2 -2
- package/events/core/wheel.js +2 -2
- package/events/core.js +2 -2
- package/events/dblclick.d.ts +2 -2
- package/events/dblclick.js +2 -2
- package/events/double_click.js +2 -2
- package/events/drag.d.ts +2 -2
- package/events/drag.js +2 -2
- package/events/gesture/emitter.gesture.js +2 -2
- package/events/gesture/swipeable.js +2 -2
- package/events/hold.d.ts +2 -2
- package/events/hold.js +2 -2
- package/events/hover.d.ts +2 -2
- package/events/hover.js +2 -2
- package/events/pointer/base.js +2 -2
- package/events/pointer/mouse.js +2 -2
- package/events/pointer/mouse_and_touch.js +2 -2
- package/events/pointer/mspointer.js +2 -2
- package/events/pointer/observer.js +2 -2
- package/events/pointer/touch.js +2 -2
- package/events/pointer.d.ts +2 -2
- package/events/pointer.js +2 -2
- package/events/swipe.d.ts +2 -2
- package/events/swipe.js +2 -2
- package/events/transform.d.ts +2 -2
- package/events/transform.js +2 -2
- package/events/utils.js +2 -2
- package/events.js +2 -2
- package/exporter.js +2 -2
- package/format_helper.js +2 -2
- package/framework/action_executors.js +2 -2
- package/framework/application.js +2 -2
- package/framework/browser_adapters.js +2 -2
- package/framework/command.d.ts +2 -2
- package/framework/command.js +2 -2
- package/framework/command_mapping.js +2 -2
- package/framework/errors.js +2 -2
- package/framework/html/command_container.d.ts +2 -2
- package/framework/html/command_container.js +2 -2
- package/framework/html/command_manager.js +2 -2
- package/framework/html/html_application.d.ts +2 -2
- package/framework/html/html_application.js +2 -2
- package/framework/html/layout_controller.js +2 -2
- package/framework/html/markup_component.js +2 -2
- package/framework/html/presets.js +2 -2
- package/framework/html/view_engine.js +2 -2
- package/framework/html/view_engine_components.d.ts +2 -2
- package/framework/html/view_engine_components.js +2 -2
- package/framework/html/widget_command_adapters.js +2 -2
- package/framework/navigation_devices.js +2 -2
- package/framework/navigation_manager.js +2 -2
- package/framework/router.d.ts +2 -2
- package/framework/router.js +2 -2
- package/framework/state_manager.d.ts +2 -2
- package/framework/state_manager.js +2 -2
- package/framework/utils.js +2 -2
- package/framework/view_cache.d.ts +2 -2
- package/framework/view_cache.js +2 -2
- package/integration/angular/action_executors.js +2 -2
- package/integration/angular/component_registrator.js +2 -2
- package/integration/angular/components.js +2 -2
- package/integration/angular/event_registrator.js +2 -2
- package/integration/angular/module.js +2 -2
- package/integration/angular/template.js +2 -2
- package/integration/angular.js +2 -2
- package/integration/jquery/ajax.js +2 -2
- package/integration/jquery/component_registrator.js +2 -2
- package/integration/jquery/deferred.js +2 -2
- package/integration/jquery/easing.js +2 -2
- package/integration/jquery/element.js +2 -2
- package/integration/jquery/element_data.js +2 -2
- package/integration/jquery/events.js +2 -2
- package/integration/jquery/hold_ready.js +2 -2
- package/integration/jquery/hooks.js +2 -2
- package/integration/jquery/renderer.js +2 -2
- package/integration/jquery/use_jquery.js +2 -2
- package/integration/jquery.d.ts +2 -2
- package/integration/jquery.js +2 -2
- package/integration/knockout/clean_node.js +2 -2
- package/integration/knockout/clean_node_old.js +2 -2
- package/integration/knockout/component_registrator.js +2 -2
- package/integration/knockout/components.js +2 -2
- package/integration/knockout/event_registrator.js +2 -2
- package/integration/knockout/template.js +2 -2
- package/integration/knockout/validation.js +2 -2
- package/integration/knockout/variable_wrapper_utils.js +2 -2
- package/integration/knockout.js +2 -2
- package/localization/cldr-data/parentLocales.js +48 -47
- package/localization/core.js +2 -2
- package/localization/currency.js +2 -2
- package/localization/date.js +2 -2
- package/localization/default_date_names.js +2 -2
- package/localization/default_messages.js +2 -2
- package/localization/globalize/core.js +2 -2
- package/localization/globalize/currency.js +2 -2
- package/localization/globalize/date.js +2 -2
- package/localization/globalize/message.js +2 -2
- package/localization/globalize/number.js +2 -2
- package/localization/language_codes.js +2 -2
- package/localization/ldml/date.format.js +2 -2
- package/localization/ldml/date.formatter.js +2 -2
- package/localization/ldml/date.parser.js +2 -2
- package/localization/ldml/number.js +2 -2
- package/localization/message.js +2 -2
- package/localization/number.js +2 -2
- package/localization.d.ts +2 -2
- package/localization.js +2 -2
- package/mobile/hide_top_overlay.d.ts +2 -2
- package/mobile/hide_top_overlay.js +2 -2
- package/mobile/init_mobile_viewport/init_mobile_viewport.js +2 -2
- package/mobile/init_mobile_viewport.d.ts +2 -2
- package/mobile/init_mobile_viewport.js +2 -2
- package/mobile/process_hardware_back_button.d.ts +2 -2
- package/mobile/process_hardware_back_button.js +2 -2
- package/package.json +1 -1
- package/ui/accordion.d.ts +2 -2
- package/ui/accordion.js +2 -2
- package/ui/action_sheet.d.ts +2 -2
- package/ui/action_sheet.js +2 -2
- package/ui/autocomplete.d.ts +2 -2
- package/ui/autocomplete.js +2 -2
- package/ui/box.d.ts +2 -2
- package/ui/box.js +2 -2
- package/ui/button.d.ts +2 -2
- package/ui/button.js +2 -2
- package/ui/calendar/ui.calendar.base_view.js +2 -2
- package/ui/calendar/ui.calendar.js +2 -2
- package/ui/calendar/ui.calendar.navigator.js +2 -2
- package/ui/calendar/ui.calendar.views.js +2 -2
- package/ui/calendar.d.ts +2 -2
- package/ui/calendar.js +2 -2
- package/ui/check_box.d.ts +2 -2
- package/ui/check_box.js +2 -2
- package/ui/collection/item.js +2 -2
- package/ui/collection/ui.collection_widget.base.js +2 -2
- package/ui/collection/ui.collection_widget.edit.js +2 -2
- package/ui/collection/ui.collection_widget.edit.strategy.js +2 -2
- package/ui/collection/ui.collection_widget.edit.strategy.plain.js +2 -2
- package/ui/color_box/color_box.js +2 -2
- package/ui/color_box/color_view.js +2 -2
- package/ui/color_box.d.ts +2 -2
- package/ui/color_box.js +2 -2
- package/ui/context_menu/ui.context_menu.js +2 -2
- package/ui/context_menu/ui.menu_base.edit.strategy.js +2 -2
- package/ui/context_menu/ui.menu_base.js +2 -2
- package/ui/context_menu.d.ts +2 -2
- package/ui/context_menu.js +2 -2
- package/ui/data_grid/aggregate_calculator.js +2 -2
- package/ui/data_grid/pager.js +2 -2
- package/ui/data_grid/ui.data_grid.adaptivity.js +2 -2
- package/ui/data_grid/ui.data_grid.base.js +2 -2
- package/ui/data_grid/ui.data_grid.column_chooser.js +2 -2
- package/ui/data_grid/ui.data_grid.column_fixing.js +2 -2
- package/ui/data_grid/ui.data_grid.column_headers.js +2 -2
- package/ui/data_grid/ui.data_grid.columns_controller.js +2 -2
- package/ui/data_grid/ui.data_grid.columns_resizing_reordering.js +2 -2
- package/ui/data_grid/ui.data_grid.context_menu.js +2 -2
- package/ui/data_grid/ui.data_grid.core.js +2 -2
- package/ui/data_grid/ui.data_grid.data_controller.js +2 -2
- package/ui/data_grid/ui.data_grid.data_source_adapter.js +2 -2
- package/ui/data_grid/ui.data_grid.editing.js +2 -2
- package/ui/data_grid/ui.data_grid.editor_factory.js +2 -2
- package/ui/data_grid/ui.data_grid.error_handling.js +2 -2
- package/ui/data_grid/ui.data_grid.export.js +2 -2
- package/ui/data_grid/ui.data_grid.filter_row.js +2 -2
- package/ui/data_grid/ui.data_grid.grid_view.js +2 -2
- package/ui/data_grid/ui.data_grid.grouping.collapsed.js +2 -2
- package/ui/data_grid/ui.data_grid.grouping.core.js +2 -2
- package/ui/data_grid/ui.data_grid.grouping.expanded.js +2 -2
- package/ui/data_grid/ui.data_grid.grouping.js +2 -2
- package/ui/data_grid/ui.data_grid.header_filter.js +2 -2
- package/ui/data_grid/ui.data_grid.header_panel.js +2 -2
- package/ui/data_grid/ui.data_grid.js +2 -2
- package/ui/data_grid/ui.data_grid.keyboard_navigation.js +2 -2
- package/ui/data_grid/ui.data_grid.master_detail.js +2 -2
- package/ui/data_grid/ui.data_grid.pager.js +2 -2
- package/ui/data_grid/ui.data_grid.rows.js +2 -2
- package/ui/data_grid/ui.data_grid.search.js +2 -2
- package/ui/data_grid/ui.data_grid.selection.js +2 -2
- package/ui/data_grid/ui.data_grid.sorting.js +2 -2
- package/ui/data_grid/ui.data_grid.state_storing.js +2 -2
- package/ui/data_grid/ui.data_grid.summary.js +2 -2
- package/ui/data_grid/ui.data_grid.validating.js +2 -2
- package/ui/data_grid/ui.data_grid.virtual_scrolling.js +2 -2
- package/ui/data_grid.d.ts +2 -2
- package/ui/data_grid.js +2 -2
- package/ui/date_box/ui.date_box.js +2 -2
- package/ui/date_box/ui.date_box.strategy.calendar.js +2 -2
- package/ui/date_box/ui.date_box.strategy.calendar_with_time.js +2 -2
- package/ui/date_box/ui.date_box.strategy.date_view.js +2 -2
- package/ui/date_box/ui.date_box.strategy.js +2 -2
- package/ui/date_box/ui.date_box.strategy.list.js +2 -2
- package/ui/date_box/ui.date_box.strategy.native.js +2 -2
- package/ui/date_box/ui.date_utils.js +2 -2
- package/ui/date_box/ui.date_view.js +2 -2
- package/ui/date_box/ui.date_view_roller.js +2 -2
- package/ui/date_box/ui.time_view.js +2 -2
- package/ui/date_box.d.ts +2 -2
- package/ui/date_box.js +2 -2
- package/ui/defer_rendering.d.ts +2 -2
- package/ui/defer_rendering.js +2 -2
- package/ui/dialog.d.ts +2 -2
- package/ui/dialog.js +2 -2
- package/ui/draggable.js +2 -2
- package/ui/drop_down_box.d.ts +2 -2
- package/ui/drop_down_box.js +2 -2
- package/ui/drop_down_editor/ui.drop_down_editor.js +2 -2
- package/ui/drop_down_editor/ui.drop_down_list.js +2 -2
- package/ui/drop_down_menu.js +2 -2
- package/ui/editor/editor.js +2 -2
- package/ui/editor/ui.data_expression.js +2 -2
- package/ui/file_uploader.d.ts +2 -2
- package/ui/file_uploader.js +2 -2
- package/ui/filter_builder/filter_builder.js +2 -2
- package/ui/filter_builder/ui.filter_operations_dictionary.js +2 -2
- package/ui/filter_builder/utils.js +2 -2
- package/ui/filter_builder.d.ts +2 -2
- package/ui/filter_builder.js +2 -2
- package/ui/form/ui.form.js +2 -2
- package/ui/form/ui.form.layout_manager.js +2 -2
- package/ui/form.d.ts +2 -2
- package/ui/form.js +2 -2
- package/ui/gallery.d.ts +2 -2
- package/ui/gallery.js +2 -2
- package/ui/grid_core/ui.grid_core.adaptivity.js +2 -2
- package/ui/grid_core/ui.grid_core.column_chooser.js +2 -2
- package/ui/grid_core/ui.grid_core.column_fixing.js +2 -2
- package/ui/grid_core/ui.grid_core.column_headers.js +2 -2
- package/ui/grid_core/ui.grid_core.column_state_mixin.js +2 -2
- package/ui/grid_core/ui.grid_core.columns_controller.js +2 -2
- package/ui/grid_core/ui.grid_core.columns_resizing_reordering.js +2 -2
- package/ui/grid_core/ui.grid_core.columns_view.js +2 -2
- package/ui/grid_core/ui.grid_core.context_menu.js +2 -2
- package/ui/grid_core/ui.grid_core.data_controller.js +2 -2
- package/ui/grid_core/ui.grid_core.data_source_adapter.js +2 -2
- package/ui/grid_core/ui.grid_core.editing.js +2 -2
- package/ui/grid_core/ui.grid_core.editor_factory.js +2 -2
- package/ui/grid_core/ui.grid_core.error_handling.js +2 -2
- package/ui/grid_core/ui.grid_core.export_mixin.js +2 -2
- package/ui/grid_core/ui.grid_core.filter_row.js +2 -2
- package/ui/grid_core/ui.grid_core.grid_view.js +2 -2
- package/ui/grid_core/ui.grid_core.header_filter.js +2 -2
- package/ui/grid_core/ui.grid_core.header_filter_core.js +2 -2
- package/ui/grid_core/ui.grid_core.header_panel.js +2 -2
- package/ui/grid_core/ui.grid_core.keyboard_navigation.js +2 -2
- package/ui/grid_core/ui.grid_core.master_detail.js +2 -2
- package/ui/grid_core/ui.grid_core.modules.js +2 -2
- package/ui/grid_core/ui.grid_core.rows.js +2 -2
- package/ui/grid_core/ui.grid_core.search.js +2 -2
- package/ui/grid_core/ui.grid_core.selection.js +2 -2
- package/ui/grid_core/ui.grid_core.sorting.js +2 -2
- package/ui/grid_core/ui.grid_core.sorting_mixin.js +2 -2
- package/ui/grid_core/ui.grid_core.state_storing.js +2 -2
- package/ui/grid_core/ui.grid_core.utils.js +2 -2
- package/ui/grid_core/ui.grid_core.validating.js +2 -2
- package/ui/grid_core/ui.grid_core.virtual_scrolling.js +2 -2
- package/ui/grid_core/ui.grid_core.virtual_scrolling_core.js +2 -2
- package/ui/hierarchical_collection/ui.data_adapter.js +2 -2
- package/ui/hierarchical_collection/ui.data_converter.js +2 -2
- package/ui/hierarchical_collection/ui.hierarchical_collection_widget.js +2 -2
- package/ui/list/item.js +2 -2
- package/ui/list/ui.list.base.js +2 -2
- package/ui/list/ui.list.edit.decorator.context.js +2 -2
- package/ui/list/ui.list.edit.decorator.js +2 -2
- package/ui/list/ui.list.edit.decorator.reorder.js +2 -2
- package/ui/list/ui.list.edit.decorator.selection.js +2 -2
- package/ui/list/ui.list.edit.decorator.static.js +2 -2
- package/ui/list/ui.list.edit.decorator.swipe.js +2 -2
- package/ui/list/ui.list.edit.decorator.switchable.button.js +2 -2
- package/ui/list/ui.list.edit.decorator.switchable.js +2 -2
- package/ui/list/ui.list.edit.decorator.switchable.slide.js +2 -2
- package/ui/list/ui.list.edit.decorator_menu_helper.js +2 -2
- package/ui/list/ui.list.edit.decorator_registry.js +2 -2
- package/ui/list/ui.list.edit.js +2 -2
- package/ui/list/ui.list.edit.provider.js +2 -2
- package/ui/list/ui.list.edit.search.js +2 -2
- package/ui/list/ui.list.edit.strategy.grouped.js +2 -2
- package/ui/list.d.ts +2 -2
- package/ui/list.js +2 -2
- package/ui/load_indicator.d.ts +2 -2
- package/ui/load_indicator.js +2 -2
- package/ui/load_panel.d.ts +2 -2
- package/ui/load_panel.js +2 -2
- package/ui/lookup.d.ts +2 -2
- package/ui/lookup.js +2 -2
- package/ui/map/provider.dynamic.bing.js +2 -2
- package/ui/map/provider.dynamic.google.js +2 -2
- package/ui/map/provider.dynamic.js +2 -2
- package/ui/map/provider.google_static.js +2 -2
- package/ui/map/provider.js +2 -2
- package/ui/map.d.ts +2 -2
- package/ui/map.js +2 -2
- package/ui/menu/ui.menu.js +2 -2
- package/ui/menu/ui.submenu.js +2 -2
- package/ui/menu.d.ts +2 -2
- package/ui/menu.js +2 -2
- package/ui/multi_view.d.ts +2 -2
- package/ui/multi_view.js +2 -2
- package/ui/nav_bar/item.js +2 -2
- package/ui/nav_bar.d.ts +2 -2
- package/ui/nav_bar.js +2 -2
- package/ui/notify.d.ts +2 -2
- package/ui/notify.js +2 -2
- package/ui/number_box/number_box.base.js +2 -2
- package/ui/number_box/number_box.caret.js +2 -2
- package/ui/number_box/number_box.js +2 -2
- package/ui/number_box/number_box.mask.js +2 -2
- package/ui/number_box/number_box.spin.js +2 -2
- package/ui/number_box.d.ts +2 -2
- package/ui/number_box.js +2 -2
- package/ui/overlay.d.ts +2 -2
- package/ui/overlay.js +2 -2
- package/ui/panorama/item.js +2 -2
- package/ui/panorama.d.ts +2 -2
- package/ui/panorama.js +2 -2
- package/ui/pivot/ui.pivot_tabs.js +2 -2
- package/ui/pivot.d.ts +2 -2
- package/ui/pivot.js +2 -2
- package/ui/pivot_grid/data_source.d.ts +2 -2
- package/ui/pivot_grid/data_source.js +2 -2
- package/ui/pivot_grid/local_store.js +2 -2
- package/ui/pivot_grid/remote_store.js +2 -2
- package/ui/pivot_grid/ui.pivot_grid.area_item.js +2 -2
- package/ui/pivot_grid/ui.pivot_grid.chart_integration.js +2 -2
- package/ui/pivot_grid/ui.pivot_grid.data_area.js +2 -2
- package/ui/pivot_grid/ui.pivot_grid.data_controller.js +2 -2
- package/ui/pivot_grid/ui.pivot_grid.export.js +2 -2
- package/ui/pivot_grid/ui.pivot_grid.field_chooser.js +2 -2
- package/ui/pivot_grid/ui.pivot_grid.field_chooser_base.js +2 -2
- package/ui/pivot_grid/ui.pivot_grid.fields_area.js +2 -2
- package/ui/pivot_grid/ui.pivot_grid.headers_area.js +2 -2
- package/ui/pivot_grid/ui.pivot_grid.js +2 -2
- package/ui/pivot_grid/ui.pivot_grid.summary_display_modes.js +2 -2
- package/ui/pivot_grid/ui.pivot_grid.utils.js +2 -2
- package/ui/pivot_grid/ui.sortable.js +2 -2
- package/ui/pivot_grid/xmla_store/xmla_store.js +2 -2
- package/ui/pivot_grid/xmla_store.d.ts +2 -2
- package/ui/pivot_grid/xmla_store.js +2 -2
- package/ui/pivot_grid.d.ts +2 -2
- package/ui/pivot_grid.js +2 -2
- package/ui/pivot_grid_field_chooser.d.ts +2 -2
- package/ui/pivot_grid_field_chooser.js +2 -2
- package/ui/popover.d.ts +2 -2
- package/ui/popover.js +2 -2
- package/ui/popup.d.ts +2 -2
- package/ui/popup.js +2 -2
- package/ui/progress_bar.d.ts +2 -2
- package/ui/progress_bar.js +2 -2
- package/ui/radio_group/radio_button.js +2 -2
- package/ui/radio_group/radio_group.js +2 -2
- package/ui/radio_group.d.ts +2 -2
- package/ui/radio_group.js +2 -2
- package/ui/range_slider.d.ts +2 -2
- package/ui/range_slider.js +2 -2
- package/ui/resizable.d.ts +2 -2
- package/ui/resizable.js +2 -2
- package/ui/responsive_box.d.ts +2 -2
- package/ui/responsive_box.js +2 -2
- package/ui/scheduler/ui.loading.js +2 -2
- package/ui/scheduler/ui.scheduler.agenda.js +2 -2
- package/ui/scheduler/ui.scheduler.appointment.js +2 -2
- package/ui/scheduler/ui.scheduler.appointment_form.js +2 -2
- package/ui/scheduler/ui.scheduler.appointment_model.js +2 -2
- package/ui/scheduler/ui.scheduler.appointment_tooltip.js +2 -2
- package/ui/scheduler/ui.scheduler.appointments.drop_down.js +2 -2
- package/ui/scheduler/ui.scheduler.appointments.js +2 -2
- package/ui/scheduler/ui.scheduler.appointments.layout_manager.js +2 -2
- package/ui/scheduler/ui.scheduler.appointments.strategy.agenda.js +2 -2
- package/ui/scheduler/ui.scheduler.appointments.strategy.base.js +2 -2
- package/ui/scheduler/ui.scheduler.appointments.strategy.horizontal.js +2 -2
- package/ui/scheduler/ui.scheduler.appointments.strategy.horizontal_month.js +2 -2
- package/ui/scheduler/ui.scheduler.appointments.strategy.horizontal_month_line.js +2 -2
- package/ui/scheduler/ui.scheduler.appointments.strategy.vertical.js +2 -2
- package/ui/scheduler/ui.scheduler.currentTimeShader.horizontal.js +2 -2
- package/ui/scheduler/ui.scheduler.currentTimeShader.js +2 -2
- package/ui/scheduler/ui.scheduler.currentTimeShader.vertical.js +2 -2
- package/ui/scheduler/ui.scheduler.header.js +2 -2
- package/ui/scheduler/ui.scheduler.js +2 -2
- package/ui/scheduler/ui.scheduler.navigator.js +2 -2
- package/ui/scheduler/ui.scheduler.publisher_mixin.js +2 -2
- package/ui/scheduler/ui.scheduler.recurrence_editor.js +2 -2
- package/ui/scheduler/ui.scheduler.resource_manager.js +2 -2
- package/ui/scheduler/ui.scheduler.subscribes.js +2 -2
- package/ui/scheduler/ui.scheduler.table_creator.js +2 -2
- package/ui/scheduler/ui.scheduler.timeline.js +2 -2
- package/ui/scheduler/ui.scheduler.timeline_day.js +2 -2
- package/ui/scheduler/ui.scheduler.timeline_month.js +2 -2
- package/ui/scheduler/ui.scheduler.timeline_week.js +2 -2
- package/ui/scheduler/ui.scheduler.timeline_work_week.js +2 -2
- package/ui/scheduler/ui.scheduler.timezone_editor.js +2 -2
- package/ui/scheduler/ui.scheduler.timezones.js +2 -2
- package/ui/scheduler/ui.scheduler.timezones_data.js +2 -2
- package/ui/scheduler/ui.scheduler.work_space.indicator.js +2 -2
- package/ui/scheduler/ui.scheduler.work_space.js +2 -2
- package/ui/scheduler/ui.scheduler.work_space_day.js +2 -2
- package/ui/scheduler/ui.scheduler.work_space_month.js +2 -2
- package/ui/scheduler/ui.scheduler.work_space_week.js +2 -2
- package/ui/scheduler/ui.scheduler.work_space_work_week.js +2 -2
- package/ui/scheduler/utils.recurrence.js +2 -2
- package/ui/scheduler.d.ts +2 -2
- package/ui/scheduler.js +2 -2
- package/ui/scroll_view/animator.js +2 -2
- package/ui/scroll_view/ui.events.emitter.gesture.scroll.js +2 -2
- package/ui/scroll_view/ui.scroll_view.js +2 -2
- package/ui/scroll_view/ui.scroll_view.native.pull_down.js +2 -2
- package/ui/scroll_view/ui.scroll_view.native.slide_down.js +2 -2
- package/ui/scroll_view/ui.scroll_view.native.swipe_down.js +2 -2
- package/ui/scroll_view/ui.scroll_view.simulated.js +2 -2
- package/ui/scroll_view/ui.scrollable.js +2 -2
- package/ui/scroll_view/ui.scrollable.native.js +2 -2
- package/ui/scroll_view/ui.scrollable.simulated.js +2 -2
- package/ui/scroll_view/ui.scrollbar.js +2 -2
- package/ui/scroll_view.d.ts +2 -2
- package/ui/scroll_view.js +2 -2
- package/ui/select_box.d.ts +2 -2
- package/ui/select_box.js +2 -2
- package/ui/selection/selection.js +2 -2
- package/ui/selection/selection.strategy.deferred.js +2 -2
- package/ui/selection/selection.strategy.js +2 -2
- package/ui/selection/selection.strategy.standard.js +2 -2
- package/ui/set_template_engine.d.ts +2 -2
- package/ui/set_template_engine.js +2 -2
- package/ui/shared/ui.editor_factory_mixin.js +2 -2
- package/ui/slide_out.d.ts +2 -2
- package/ui/slide_out.js +2 -2
- package/ui/slide_out_view.d.ts +2 -2
- package/ui/slide_out_view.js +2 -2
- package/ui/slider/ui.slider.js +2 -2
- package/ui/slider/ui.slider_handle.js +2 -2
- package/ui/slider.d.ts +2 -2
- package/ui/slider.js +2 -2
- package/ui/switch.d.ts +2 -2
- package/ui/switch.js +2 -2
- package/ui/tab_panel.d.ts +2 -2
- package/ui/tab_panel.js +2 -2
- package/ui/tabs/item.js +2 -2
- package/ui/tabs.d.ts +2 -2
- package/ui/tabs.js +2 -2
- package/ui/tag_box.d.ts +2 -2
- package/ui/tag_box.js +2 -2
- package/ui/text_area.d.ts +2 -2
- package/ui/text_area.js +2 -2
- package/ui/text_box/text_box.js +2 -2
- package/ui/text_box/ui.text_editor.base.js +2 -2
- package/ui/text_box/ui.text_editor.js +2 -2
- package/ui/text_box/ui.text_editor.mask.js +2 -2
- package/ui/text_box/ui.text_editor.mask.rule.js +2 -2
- package/ui/text_box/utils.caret.js +2 -2
- package/ui/text_box.d.ts +2 -2
- package/ui/text_box.js +2 -2
- package/ui/themes.d.ts +2 -2
- package/ui/themes.js +2 -2
- package/ui/themes_callback.js +2 -2
- package/ui/tile_view.d.ts +2 -2
- package/ui/tile_view.js +2 -2
- package/ui/toast.d.ts +2 -2
- package/ui/toast.js +2 -2
- package/ui/toolbar/ui.toolbar.base.js +2 -2
- package/ui/toolbar/ui.toolbar.menu.js +2 -2
- package/ui/toolbar/ui.toolbar.strategy.action_sheet.js +2 -2
- package/ui/toolbar/ui.toolbar.strategy.drop_down_menu.js +2 -2
- package/ui/toolbar/ui.toolbar.strategy.js +2 -2
- package/ui/toolbar/ui.toolbar.strategy.list_base.js +2 -2
- package/ui/toolbar/ui.toolbar.strategy.list_bottom.js +2 -2
- package/ui/toolbar/ui.toolbar.strategy.list_top.js +2 -2
- package/ui/toolbar.d.ts +2 -2
- package/ui/toolbar.js +2 -2
- package/ui/tooltip/tooltip.js +2 -2
- package/ui/tooltip/ui.tooltip.js +2 -2
- package/ui/tooltip.d.ts +2 -2
- package/ui/tooltip.js +2 -2
- package/ui/track_bar.js +2 -2
- package/ui/tree_list/ui.tree_list.adaptivity.js +2 -2
- package/ui/tree_list/ui.tree_list.base.js +2 -2
- package/ui/tree_list/ui.tree_list.column_chooser.js +2 -2
- package/ui/tree_list/ui.tree_list.column_fixing.js +2 -2
- package/ui/tree_list/ui.tree_list.column_headers.js +2 -2
- package/ui/tree_list/ui.tree_list.columns_controller.js +2 -2
- package/ui/tree_list/ui.tree_list.columns_resizing_reordering.js +2 -2
- package/ui/tree_list/ui.tree_list.context_menu.js +2 -2
- package/ui/tree_list/ui.tree_list.core.js +2 -2
- package/ui/tree_list/ui.tree_list.data_controller.js +2 -2
- package/ui/tree_list/ui.tree_list.data_source_adapter.js +2 -2
- package/ui/tree_list/ui.tree_list.editing.js +2 -2
- package/ui/tree_list/ui.tree_list.editor_factory.js +2 -2
- package/ui/tree_list/ui.tree_list.error_handling.js +2 -2
- package/ui/tree_list/ui.tree_list.filter_row.js +2 -2
- package/ui/tree_list/ui.tree_list.grid_view.js +2 -2
- package/ui/tree_list/ui.tree_list.header_filter.js +2 -2
- package/ui/tree_list/ui.tree_list.header_panel.js +2 -2
- package/ui/tree_list/ui.tree_list.js +2 -2
- package/ui/tree_list/ui.tree_list.keyboard_navigation.js +2 -2
- package/ui/tree_list/ui.tree_list.master_detail.js +2 -2
- package/ui/tree_list/ui.tree_list.rows.js +2 -2
- package/ui/tree_list/ui.tree_list.search.js +2 -2
- package/ui/tree_list/ui.tree_list.selection.js +2 -2
- package/ui/tree_list/ui.tree_list.sorting.js +2 -2
- package/ui/tree_list/ui.tree_list.validating.js +2 -2
- package/ui/tree_list/ui.tree_list.virtual_scrolling.js +2 -2
- package/ui/tree_list.d.ts +2 -2
- package/ui/tree_list.js +2 -2
- package/ui/tree_view/ui.tree_view.base.js +2 -2
- package/ui/tree_view/ui.tree_view.search.js +2 -2
- package/ui/tree_view.d.ts +2 -2
- package/ui/tree_view.js +2 -2
- package/ui/validation/default_adapter.js +2 -2
- package/ui/validation/validation_mixin.js +2 -2
- package/ui/validation_engine.d.ts +2 -2
- package/ui/validation_engine.js +2 -2
- package/ui/validation_group.d.ts +2 -2
- package/ui/validation_group.js +2 -2
- package/ui/validation_summary.d.ts +2 -2
- package/ui/validation_summary.js +2 -2
- package/ui/validator.d.ts +2 -2
- package/ui/validator.js +2 -2
- package/ui/widget/bindable_template.js +2 -2
- package/ui/widget/child_default_template.js +2 -2
- package/ui/widget/empty_template.js +2 -2
- package/ui/widget/function_template.js +2 -2
- package/ui/widget/jquery.template.js +2 -2
- package/ui/widget/selectors.js +2 -2
- package/ui/widget/ui.errors.js +2 -2
- package/ui/widget/ui.keyboard_processor.js +2 -2
- package/ui/widget/ui.search_box_mixin.js +2 -2
- package/ui/widget/ui.template_base.js +2 -2
- package/ui/widget/ui.widget.js +2 -2
- package/ui/widget/utils.ink_ripple.js +2 -2
- package/utils.d.ts +2 -2
- package/utils.js +2 -2
- package/viz/axes/axes_constants.js +2 -2
- package/viz/axes/base_axis.js +2 -2
- package/viz/axes/datetime_breaks.js +2 -2
- package/viz/axes/polar_axes.js +2 -2
- package/viz/axes/smart_formatter.js +2 -2
- package/viz/axes/tick.js +2 -2
- package/viz/axes/tick_generator.js +2 -2
- package/viz/axes/xy_axes.js +2 -2
- package/viz/bar_gauge.d.ts +2 -2
- package/viz/bar_gauge.js +2 -2
- package/viz/bullet.d.ts +2 -2
- package/viz/bullet.js +2 -2
- package/viz/chart.d.ts +2 -2
- package/viz/chart.js +2 -2
- package/viz/chart_components/advanced_chart.js +2 -2
- package/viz/chart_components/base_chart.js +2 -2
- package/viz/chart_components/crosshair.js +2 -2
- package/viz/chart_components/header_block.js +2 -2
- package/viz/chart_components/layout_manager.js +2 -2
- package/viz/chart_components/multi_axes_synchronizer.js +2 -2
- package/viz/chart_components/scroll_bar.js +2 -2
- package/viz/chart_components/shutter_zoom.js +2 -2
- package/viz/chart_components/tracker.js +2 -2
- package/viz/circular_gauge.d.ts +2 -2
- package/viz/circular_gauge.js +2 -2
- package/viz/components/chart_theme_manager.js +2 -2
- package/viz/components/consts.js +2 -2
- package/viz/components/data_validator.js +2 -2
- package/viz/components/legend.js +2 -2
- package/viz/components/parse_utils.js +2 -2
- package/viz/components/tracker.js +2 -2
- package/viz/core/base_theme_manager.js +2 -2
- package/viz/core/base_widget.js +2 -2
- package/viz/core/data_source.js +2 -2
- package/viz/core/errors_warnings.js +2 -2
- package/viz/core/export.js +2 -2
- package/viz/core/format.js +2 -2
- package/viz/core/helpers.js +2 -2
- package/viz/core/layout.js +2 -2
- package/viz/core/layout_element.js +2 -2
- package/viz/core/loading_indicator.js +2 -2
- package/viz/core/renderers/animation.js +2 -2
- package/viz/core/renderers/renderer.js +2 -2
- package/viz/core/series_family.js +2 -2
- package/viz/core/themes/android.js +2 -2
- package/viz/core/themes/generic.carmine.js +2 -2
- package/viz/core/themes/generic.contrast.js +2 -2
- package/viz/core/themes/generic.dark.js +2 -2
- package/viz/core/themes/generic.darkmoon.js +2 -2
- package/viz/core/themes/generic.darkviolet.js +2 -2
- package/viz/core/themes/generic.greenmist.js +2 -2
- package/viz/core/themes/generic.light.js +2 -2
- package/viz/core/themes/generic.softblue.js +2 -2
- package/viz/core/themes/ios.js +2 -2
- package/viz/core/themes/win.js +2 -2
- package/viz/core/title.js +2 -2
- package/viz/core/tooltip.js +2 -2
- package/viz/core/utils.js +2 -2
- package/viz/export.d.ts +2 -2
- package/viz/export.js +2 -2
- package/viz/funnel/funnel.js +2 -2
- package/viz/funnel/item.js +2 -2
- package/viz/funnel/label.js +2 -2
- package/viz/funnel/tiling.funnel.js +2 -2
- package/viz/funnel/tiling.js +2 -2
- package/viz/funnel/tiling.pyramid.js +2 -2
- package/viz/funnel/tooltip.js +2 -2
- package/viz/funnel/tracker.js +2 -2
- package/viz/funnel.d.ts +2 -2
- package/viz/funnel.js +2 -2
- package/viz/gauges/bar_gauge.js +2 -2
- package/viz/gauges/base_gauge.js +2 -2
- package/viz/gauges/base_indicators.js +2 -2
- package/viz/gauges/base_range_container.js +2 -2
- package/viz/gauges/circular_gauge.js +2 -2
- package/viz/gauges/circular_indicators.js +2 -2
- package/viz/gauges/circular_range_container.js +2 -2
- package/viz/gauges/common.js +2 -2
- package/viz/gauges/linear_gauge.js +2 -2
- package/viz/gauges/linear_indicators.js +2 -2
- package/viz/gauges/linear_range_container.js +2 -2
- package/viz/gauges/theme_manager.js +2 -2
- package/viz/gauges/tracker.js +2 -2
- package/viz/linear_gauge.d.ts +2 -2
- package/viz/linear_gauge.js +2 -2
- package/viz/palette.d.ts +2 -2
- package/viz/palette.js +2 -2
- package/viz/pie_chart.d.ts +2 -2
- package/viz/pie_chart.js +2 -2
- package/viz/polar_chart.d.ts +2 -2
- package/viz/polar_chart.js +2 -2
- package/viz/range_selector/common.js +2 -2
- package/viz/range_selector/range_selector.js +2 -2
- package/viz/range_selector/range_view.js +2 -2
- package/viz/range_selector/series_data_source.js +2 -2
- package/viz/range_selector/slider.js +2 -2
- package/viz/range_selector/slider_marker.js +2 -2
- package/viz/range_selector/sliders_controller.js +2 -2
- package/viz/range_selector/theme_manager.js +2 -2
- package/viz/range_selector/tracker.js +2 -2
- package/viz/range_selector.d.ts +2 -2
- package/viz/range_selector.js +2 -2
- package/viz/series/area_series.js +2 -2
- package/viz/series/bar_series.js +2 -2
- package/viz/series/base_series.js +2 -2
- package/viz/series/bubble_series.js +2 -2
- package/viz/series/financial_series.js +2 -2
- package/viz/series/helpers/range_data_calculator.js +2 -2
- package/viz/series/line_series.js +2 -2
- package/viz/series/pie_series.js +2 -2
- package/viz/series/points/bar_point.js +2 -2
- package/viz/series/points/base_point.js +2 -2
- package/viz/series/points/bubble_point.js +2 -2
- package/viz/series/points/candlestick_point.js +2 -2
- package/viz/series/points/label.js +2 -2
- package/viz/series/points/pie_point.js +2 -2
- package/viz/series/points/polar_point.js +2 -2
- package/viz/series/points/range_bar_point.js +2 -2
- package/viz/series/points/range_symbol_point.js +2 -2
- package/viz/series/points/stock_point.js +2 -2
- package/viz/series/points/symbol_point.js +2 -2
- package/viz/series/range_series.js +2 -2
- package/viz/series/scatter_series.js +2 -2
- package/viz/series/stacked_series.js +2 -2
- package/viz/sparkline.d.ts +2 -2
- package/viz/sparkline.js +2 -2
- package/viz/sparklines/base_sparkline.js +2 -2
- package/viz/sparklines/bullet.js +2 -2
- package/viz/sparklines/sparkline.js +2 -2
- package/viz/themes.d.ts +2 -2
- package/viz/themes.js +2 -2
- package/viz/translators/category_translator.js +2 -2
- package/viz/translators/datetime_translator.js +2 -2
- package/viz/translators/interval_translator.js +2 -2
- package/viz/translators/logarithmic_translator.js +2 -2
- package/viz/translators/numeric_translator.js +2 -2
- package/viz/translators/range.js +2 -2
- package/viz/translators/translator1d.js +2 -2
- package/viz/translators/translator2d.js +2 -2
- package/viz/tree_map/api.js +2 -2
- package/viz/tree_map/colorizing.discrete.js +2 -2
- package/viz/tree_map/colorizing.gradient.js +2 -2
- package/viz/tree_map/colorizing.js +2 -2
- package/viz/tree_map/colorizing.range.js +2 -2
- package/viz/tree_map/common.js +2 -2
- package/viz/tree_map/drilldown.js +2 -2
- package/viz/tree_map/hover.js +2 -2
- package/viz/tree_map/node.js +2 -2
- package/viz/tree_map/plain_data_source.js +2 -2
- package/viz/tree_map/selection.js +2 -2
- package/viz/tree_map/states.js +2 -2
- package/viz/tree_map/tiling.js +2 -2
- package/viz/tree_map/tiling.rotated_slice_and_dice.js +2 -2
- package/viz/tree_map/tiling.slice_and_dice.js +2 -2
- package/viz/tree_map/tiling.squarified.base.js +2 -2
- package/viz/tree_map/tiling.squarified.js +2 -2
- package/viz/tree_map/tiling.strip.js +2 -2
- package/viz/tree_map/tooltip.js +2 -2
- package/viz/tree_map/tracker.js +2 -2
- package/viz/tree_map/tree_map.base.js +2 -2
- package/viz/tree_map/tree_map.js +2 -2
- package/viz/tree_map.d.ts +2 -2
- package/viz/tree_map.js +2 -2
- package/viz/utils.d.ts +2 -2
- package/viz/utils.js +2 -2
- package/viz/vector_map/control_bar.js +2 -2
- package/viz/vector_map/data_exchanger.js +2 -2
- package/viz/vector_map/event_emitter.js +2 -2
- package/viz/vector_map/gesture_handler.js +2 -2
- package/viz/vector_map/layout.js +2 -2
- package/viz/vector_map/legend.js +2 -2
- package/viz/vector_map/map_layer.js +2 -2
- package/viz/vector_map/projection.d.ts +2 -2
- package/viz/vector_map/projection.js +2 -2
- package/viz/vector_map/projection.main.js +2 -2
- package/viz/vector_map/theme_manager.js +2 -2
- package/viz/vector_map/tooltip_viewer.js +2 -2
- package/viz/vector_map/tracker.js +2 -2
- package/viz/vector_map/vector_map.js +2 -2
- package/viz/vector_map.d.ts +2 -2
- package/viz/vector_map.js +2 -2
package/dist/js/dx.mobile.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* DevExtreme (dx.mobile.js)
|
|
3
|
-
* Version: 17.2.
|
|
4
|
-
* Build date: Fri
|
|
3
|
+
* Version: 17.2.18
|
|
4
|
+
* Build date: Fri Dec 03 2021
|
|
5
5
|
*
|
|
6
6
|
* Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
|
|
7
7
|
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
|
|
8
8
|
*/
|
|
9
|
-
"use strict";!function(t){function e(n){if(i[n])return i[n].exports;var o=i[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var i={};return e.m=t,e.c=i,e.p="",e(0)}([function(t,e,i){t.exports=i(723)},,,function(t,e,i){var n=i(4);n.dxPanorama=i(370),n.dxPivot=i(372),n.dxSlideOut=i(374),n.dxSlideOutView=i(375)},function(t,e,i){var n=i(5);i(221);var o=n.ui=i(233);o.themes=i(179),o.setTemplateEngine=i(234),o.dialog=i(235),o.notify=i(240),o.dxActionSheet=i(242),o.dxAutocomplete=i(244),o.dxBox=i(290),o.dxButton=i(237),o.dxCalendar=i(291),o.dxCheckBox=i(285),o.dxColorBox=i(298),o.dxDateBox=i(308),o.dxDeferRendering=i(321),o.dxDropDownBox=i(322),o.dxDropDownMenu=i(323),o.dxFileUploader=i(324),o.dxForm=i(327),o.dxGallery=i(339),o.dxList=i(254),o.dxLoadIndicator=i(275),o.dxLoadPanel=i(283),o.dxLookup=i(340),o.dxMap=i(341),o.dxMultiView=i(334),o.dxNavBar=i(347),o.dxNumberBox=i(301),o.dxOverlay=i(131),o.dxPopover=i(243),o.dxPopup=i(236),o.dxProgressBar=i(325),o.dxRadioGroup=i(349),o.dxRangeSlider=i(351),o.dxResizable=i(133),o.dxResponsiveBox=i(332),o.dxScrollView=i(270),o.dxSelectBox=i(319),o.dxSlider=i(352),o.dxSwitch=i(358),o.dxTabPanel=i(333),o.dxTabs=i(335),o.dxTagBox=i(359),o.dxTextArea=i(360),o.dxTextBox=i(247),o.dxTileView=i(361),o.dxToast=i(241),o.dxToolbar=i(362),o.dxTooltip=i(355),o.dxTrackBar=i(326),n.validationEngine=i(139),o.dxValidationSummary=i(337),o.dxValidationGroup=i(338),o.dxValidator=i(330),o.CollectionWidget=i(185),o.dxDropDownEditor=i(246),t.exports=o},function(t,e,i){var n=i(6);n.framework=i(114),i(144),i(180),i(115),i(212),i(214),i(215),i(216),i(217),i(97),i(201),i(218),i(132),i(200),i(125),i(98),i(219),i(220),t.exports=n},function(t,e,i){var n=window.DevExpress=window.DevExpress||{},o=n.errors=i(7);if(n._DEVEXTREME_BUNDLE_INITIALIZED)throw o.Error("E0024");n._DEVEXTREME_BUNDLE_INITIALIZED=!0,n.clientExporter=i(19),n.VERSION=i(18),n.Class=i(29),n.DOMComponent=i(63),n.registerComponent=i(78),n.devices=i(74),n.Color=i(57);var a=i(80);n.requestAnimationFrame=function(){return o.log("W0000","DevExpress.requestAnimationFrame","15.2","Use the 'DevExpress.utils.requestAnimationFrame' method instead."),a.requestAnimationFrame.apply(a,arguments)},n.cancelAnimationFrame=function(){return o.log("W0000","DevExpress.cancelAnimationFrame","15.2","Use the 'DevExpress.utils.cancelAnimationFrame' method instead."),a.cancelAnimationFrame.apply(a,arguments)},n.EventsMixin=i(72),n.utils={},n.utils.requestAnimationFrame=a.requestAnimationFrame,n.utils.cancelAnimationFrame=a.cancelAnimationFrame,n.utils.initMobileViewport=i(81).initMobileViewport,n.utils.extendFromObject=i(9).extendFromObject,n.utils.createComponents=i(64).createComponents,n.utils.triggerShownEvent=i(64).triggerShownEvent,n.utils.triggerHidingEvent=i(64).triggerHidingEvent,n.utils.resetActiveElement=i(64).resetActiveElement,n.utils.findBestMatches=i(13).findBestMatches,n.createQueue=i(83).create,n.utils.dom=i(64),n.utils.common=i(13),n.utils.date=i(84),n.utils.browser=i(41),n.utils.inflector=i(37),n.utils.iterator=i(17),n.utils.resizeCallbacks=i(65).resizeCallbacks,n.utils.console=i(11),n.utils.string=i(12),n.utils.support=i(82),n.processHardwareBackButton=i(85),n.viewPort=i(76).value,n.hideTopOverlay=i(86),n.formatHelper=i(87);var s=n.config=i(14);Object.defineProperty(n,"rtlEnabled",{get:function(){return o.log("W0003","DevExpress","rtlEnabled","16.1","Use the 'DevExpress.config' method instead"),s().rtlEnabled},set:function(t){o.log("W0003","DevExpress","rtlEnabled","16.1","Use the 'DevExpress.config' method instead"),s({rtlEnabled:t})}}),Object.defineProperty(n,"designMode",{get:function(){return s().designMode},set:function(t){s({designMode:t})}}),n.animationPresets=i(88).presets,n.fx=i(89),n.TransitionExecutor=i(95).TransitionExecutor,n.AnimationPresetCollection=i(88).PresetCollection,n.events=i(96),n.events.click=i(97),n.events.utils=i(93),n.events.GestureEmitter=i(109),n.localization=i(110),t.exports=n},function(t,e,i){var n=i(8);t.exports=n({E0001:"Method is not implemented",E0002:"Member name collision: {0}",E0003:"A class must be instantiated using the 'new' keyword",E0004:"The NAME property of the component is not specified",E0005:"Unknown device",E0006:"Unknown endpoint key is requested",E0007:"'Invalidate' method is called outside the update transaction",E0008:"Type of the option name is not appropriate to create an action",E0009:"Component '{0}' has not been initialized for an element",E0010:"Animation configuration with the '{0}' type requires '{1}' configuration as {2}",E0011:"Unknown animation type '{0}'",E0012:"jQuery version is too old. Please upgrade jQuery to 1.10.0 or later",E0013:"KnockoutJS version is too old. Please upgrade KnockoutJS to 2.3.0 or later",E0014:"The 'release' method shouldn't be called for an unlocked Lock object",E0015:"Queued task returned an unexpected result",E0017:"Event namespace is not defined",E0018:"DevExpress.ui.DevExpressPopup widget is required",E0020:"Template engine '{0}' is not supported",E0021:"Unknown theme is set: {0}",E0022:"LINK[rel=DevExpress-theme] tags must go before DevExpress included scripts",E0023:"Template name is not specified",E0024:"DevExtreme bundle already included",E0100:"Unknown validation type is detected",E0101:"Misconfigured range validation rule is detected",E0102:"Misconfigured comparison validation rule is detected",E0110:"Unknown validation group is detected",E0120:"Adapter for a DevExpressValidator component cannot be configured",E0121:"The onCustomItemCreating action should return an item or Promise of jQuery Deferred object resolved when an item is created",W0000:"'{0}' is deprecated in {1}. {2}",W0001:"{0} - '{1}' option is deprecated in {2}. {3}",W0002:"{0} - '{1}' method is deprecated in {2}. {3}",W0003:"{0} - '{1}' property is deprecated in {2}. {3}",W0004:"Timeout for theme loading is over: {0}",W0005:"'{0}' event is deprecated in {1}. {2}",W0006:"Invalid recurrence rule: '{0}'",W0007:"'{0}' Globalize culture is not defined",W0008:"Invalid view name: '{0}'",W0009:"Invalid time zone name: '{0}'",W0010:"{0} is deprecated in {1}. {2}",W0011:"Number parsing is invoked while the parser is not defined",W0012:"Date parsing is invoked while the parser is not defined",W0013:"'{0}' file is deprecated in {1}. {2}",W0014:"{0} - '{1}' type is deprecated in {2}. {3}"})},function(t,e,i){var n=i(9).extend,o=i(11),a=i(12),s=i(18),r="http://js.devexpress.com/error/"+s.split(".").slice(0,2).join("_")+"/";t.exports=function(t,e){var i={ERROR_MESSAGES:n(e,t),Error:function(){return h([].slice.call(arguments))},log:function(t){var e="log";/^E\d+$/.test(t)?e="error":/^W\d+$/.test(t)&&(e="warn"),o.logger[e]("log"===e?t:s([].slice.call(arguments)))}},s=function(t){var e=t[0];return t=t.slice(1),c(e,l(e,t))},l=function(t,e){return e=[i.ERROR_MESSAGES[t]].concat(e),a.format.apply(this,e).replace(/\.*\s*?$/,"")},c=function(t,e){return a.format.apply(this,["{0} - {1}. See:\n{2}",t,e,r+t])},h=function(t){var e,i,o;return e=t[0],t=t.slice(1),i=l(e,t),o=c(e,i),n(new Error(o),{__id:e,__details:i})};return i}},function(t,e,i){var n=i(10).isPlainObject,o=function(t,e,i){t=t||{};for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];n in t&&!i||(t[n]=o)}return t},a=function(t){t=t||{};var e=1,i=!1;for("boolean"==typeof t&&(i=t,t=arguments[1]||{},e++);e<arguments.length;e++){var o=arguments[e];if(null!=o)for(var s in o){var r,l=t[s],c=o[s],h=!1;"__proto__"!==s&&t!==c&&(i&&c&&(n(c)||(h=Array.isArray(c)))?(r=h?l&&Array.isArray(l)?l:[]:l&&n(l)?l:{},t[s]=a(i,r,c)):void 0!==c&&(t[s]=c))}}return t};e.extend=a,e.extendFromObject=o},function(t,e){var i={"[object Array]":"array","[object Date]":"date","[object Object]":"object","[object String]":"string","[object Null]":"null"},n=function(t){var e=Object.prototype.toString.call(t);return"object"==typeof t?i[e]||"object":typeof t},o=function(t){return"boolean"==typeof t},a=function(t){return h(t)&&t.toString().indexOf("e")!==-1},s=function(t){return"date"===n(t)},r=function(t){return null!==t&&void 0!==t},l=function(t){return"function"==typeof t},c=function(t){return"string"==typeof t},h=function(t){return"number"==typeof t&&isFinite(t)||!isNaN(t-parseFloat(t))},d=function(t){return"object"===n(t)},u=function(t){var e;for(e in t)return!1;return!0},p=function(t){if(!t||"[object Object]"!==Object.prototype.toString.call(t))return!1;var e=Object.getPrototypeOf(t),i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return"function"==typeof i&&Object.toString.call(i)===Object.toString.call(Object)},f=function(t){return["object","array","function"].indexOf(n(t))===-1},_=function(t){return null!=t&&t===t.window},m=function(t){return t instanceof Element},g=function(t){return!(!t.jquery&&!t.dxRenderer)},v=function(t){return t&&l(t.then)},b=function(t){return t&&l(t.done)&&l(t.fail)};e.isBoolean=o,e.isExponential=a,e.isDate=s,e.isDefined=r,e.isFunction=l,e.isString=c,e.isNumeric=h,e.isObject=d,e.isEmptyObject=u,e.isPlainObject=p,e.isPrimitive=f,e.isWindow=_,e.isDomNode=m,e.isRenderer=g,e.isPromise=v,e.isDeferred=b,e.type=n},function(t,e,i){var n=i(10).isFunction,o=function(){function t(t){o&&n(o.info)&&o.info(t)}function e(t){o&&n(o.warn)&&o.warn(t)}function i(t){o&&n(o.error)&&o.error(t)}var o=window.console;return{info:t,warn:e,error:i}}(),a=function(){function t(t,e){if(!t)throw new Error(e)}function e(e,i){t(null!==e&&void 0!==e,i)}return{assert:t,assertParam:e}}();e.logger=o,e.debug=a},function(t,e,i){var n=i(10),o=i(13),a=function(){var t=[new RegExp("&","g"),new RegExp('"',"g"),new RegExp("'","g"),new RegExp("<","g"),new RegExp(">","g")];return function(e){return String(e).replace(t[0],"&").replace(t[1],""").replace(t[2],"'").replace(t[3],"<").replace(t[4],">")}}(),s=function(t){var e=o.splitPair(t),i=parseInt(e&&e[0],10),n=parseInt(e&&e[1],10);return isFinite(i)||(i=0),isFinite(n)||(n=i),{h:i,v:n}},r=function(t){var e=o.splitQuad(t),i=parseInt(e&&e[0],10),n=parseInt(e&&e[1],10),a=parseInt(e&&e[2],10),s=parseInt(e&&e[3],10);return isFinite(i)||(i=0),isFinite(n)||(n=i),isFinite(a)||(a=i),isFinite(s)||(s=n),{top:n,right:a,bottom:s,left:i}},l=function(){var t,e,i,o=arguments[0],a=[].slice.call(arguments).slice(1);if(n.isFunction(o))return o.apply(this,a);for(var s=0;s<a.length;s++)e=new RegExp("\\{"+s+"\\}","gm"),i=a[s],"string"===n.type(i)&&i.indexOf("$")>=0&&(t="$".replace("$","$$").length,i=i.replace("$",1===t?"$$$$":"$$")),o=o.replace(e,i);return o},c=function(){var t=function(t){return(t+"").replace(/([\+\*\?\\\.\[\^\]\$\(\)\{\}\><\|\=\!\:])/g,"\\$1")};return function(e,i,n){return e.replace(new RegExp("("+t(i)+")","gi"),n)}}(),h=function(){var t=/\s/g;return function(e){return!e||!e.replace(t,"")}}();e.encodeHtml=a,e.pairToObject=s,e.quadToObject=r,e.format=l,e.replaceAll=c,e.isEmpty=h},function(t,e,i){var n,o=i(14),a=i(15),s=a.when,r=a.Deferred,l=i(17).each,c=i(10),h=function(t,e){return c.isDefined(t)?t:e},d=function(t,e){var i,n=new r,o=e||this,a={promise:n.promise(),abort:function(){clearTimeout(i),n.rejectWith(o)}},s=function(){var e=t.call(o);e&&e.done&&c.isFunction(e.done)?e.done(function(){n.resolveWith(o)}):n.resolveWith(o)};return i=(arguments[2]||setTimeout)(s,"number"==typeof e?e:0),a},u=[],p=[],f=[],_=function(t,e,i){if(n&&n!==t)return u.push(e),p.push(t),i=i||new r,f.push(i),i;var o=n,a=f.length;n=t;var l=e();return l||(f.length>a?l=s.apply(this,f.slice(a)):i&&i.resolve()),n=o,i&&l&&l.done&&l.done(i.resolve).fail(i.reject),!n&&u.length&&("render"===p.shift()?m:g)(u.shift(),f.shift()),l},m=function(t,e){return _("render",t,e)},g=function(t,e){return _("update",t,e)},v=function(t){return function(){var e=this;return _("render",function(){return t.call(e)})}},b=function(t){return function(){var e=this;return _("update",function(){return t.call(e)})}},y=function(t,e,i){var n=[],o=0;return l(e,function(e,a){var s=0,r=i?i(a):a;l(t,function(t,e){var i=r[t];if(void 0!==i)return C(i,e)?void s++:(s=-1,!1)}),s<o||(s>o&&(n.length=0,o=s),n.push(a))}),n},C=function(t,e){if(Array.isArray(t)&&Array.isArray(e)){var i=!1;return l(t,function(t,n){if(n!==e[t])return i=!0,!1}),!i}return t===e},x=function(t){switch(typeof t){case"string":return t.split(/\s+/,2);case"object":return[t.x||t.h,t.y||t.v];case"number":return[t];default:return t}},w=function(t){switch(typeof t){case"string":return t.split(/\s+/,4);case"object":return[t.x||t.h||t.left,t.y||t.v||t.top,t.x||t.h||t.right,t.y||t.v||t.bottom];case"number":return[t];default:return t}},S=function(t){var e=c.isString(t)?t:t.toString(),i=e.match(/[^a-zA-Z0-9_]/g);return i&&l(i,function(t,i){e=e.replace(i,"__"+i.charCodeAt()+"__")}),e},I=function(t){var e=t.match(/__\d+__/g);return e&&e.forEach(function(e){var i=parseInt(e.replace("__",""));t=t.replace(e,String.fromCharCode(i))}),t},T=function(t,e,i){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!D(t[n],e[n],i+1))return!1;return!0},E=function(t,e,i){for(var n in t)if(t.hasOwnProperty(n)&&!D(t[n],e[n],i+1))return!1;for(n in e)if(!(n in t))return!1;return!0},D=function(t,e,i){if(t===e)return!0;var n=3;return i=i||0,i>=n||(c.isObject(t)&&c.isObject(e)?E(t,e,i):Array.isArray(t)&&Array.isArray(e)?T(t,e,i):!(!c.isDate(t)||!c.isDate(e))&&t.getTime()===e.getTime())},k=function(t){if(c.isObject(t)||Array.isArray(t))try{var e=JSON.stringify(t);return"{}"===e?t:e}catch(e){return t}return t},B=function(t){return t.replace(/[[\]{}\-()*+?.\\^$|\s]/g,"\\$&")},A=function(t){var e=o().serverDecimalSeparator;return c.isDefined(t)&&(t=t.toString().replace(".",e)),t},M=function(){},O=function(t,e,i){for(var n,o=[],a=!i,s=0;s<t.length;s++)n=!!e(t[s],s),n===a&&o.push(t[s]);return o};e.ensureDefined=h,e.executeAsync=d,e.deferRender=m,e.deferRenderer=v,e.deferUpdate=g,e.deferUpdater=b,e.splitPair=x,e.splitQuad=w,e.findBestMatches=y,e.normalizeKey=S,e.denormalizeKey=I,e.equalByValue=D,e.getKeyHash=k,e.escapeRegExp=B,e.applyServerDecimalSeparator=A,e.noop=M,e.grep=O},function(t,e,i){var n=i(9),o={rtlEnabled:!1,defaultCurrency:"USD",designMode:!1,serverDecimalSeparator:".",decimalSeparator:".",thousandsSeparator:",",forceIsoDateParsing:!0,wrapActionsBeforeExecute:!0,useJQuery:void 0},a=function(){return arguments.length?void n.extend(o,arguments[0]):o};window&&window.DevExpress&&window.DevExpress.config&&a(window.DevExpress.config),t.exports=a},function(t,e,i){var n=i(10),o=n.isPromise,a=n.isDeferred,s=i(9).extend,r=i(16),l=[{method:"resolve",handler:"done",state:"resolved"},{method:"reject",handler:"fail",state:"rejected"},{method:"notify",handler:"progress"}],c=function(){var t=this;this._state="pending",this._promise={},l.forEach(function(e){var i=e.method;this[i+"Callbacks"]=new r,this[i]=function(){return this[i+"With"](this._promise,arguments)}.bind(this),this._promise[e.handler]=function(e){if(!e)return this;var n=t[i+"Callbacks"];return n.fired()?e.apply(t[i+"Context"],t[i+"Args"]):n.add(function(t,i){e.apply(t,i)}.bind(this)),this}}.bind(this)),this._promise.always=function(t){return this.done(t).fail(t)},this._promise.catch=function(t){return this.then(null,t)},this._promise.then=function(t,e){var i=new c;return["done","fail"].forEach(function(n){var s="done"===n?t:e;this[n](function(){if(!s)return void i["done"===n?"resolve":"reject"].apply(this,arguments);var t=s&&s.apply(this,arguments);a(t)?t.done(i.resolve).fail(i.reject):o(t)?t.then(i.resolve,i.reject):i.resolve.apply(this,t?[t]:arguments)})}.bind(this)),i.promise()},this._promise.state=function(){return t._state},this._promise.promise=function(e){return e?s(e,t._promise):t._promise},this._promise.promise(this)};l.forEach(function(t){var e=t.method,i=t.state;c.prototype[e+"With"]=function(t,n){var o=this[e+"Callbacks"];return"pending"===this.state()&&(this[e+"Args"]=n,this[e+"Context"]=t,i&&(this._state=i),o.fire(t,n)),this}}),e.fromPromise=function(t,e){if(a(t))return t;if(o(t)){var i=new c;return t.then(function(){i.resolveWith.apply(i,[e].concat([[].slice.call(arguments)]))},function(){i.rejectWith.apply(i,[e].concat([[].slice.call(arguments)]))}),i}return(new c).resolveWith(e,[t])};var h=function(){if(1===arguments.length)return e.fromPromise(arguments[0]);for(var t=[].slice.call(arguments),i=[],n=0,o=new c,s=function(e){return function(a){i[e]=this,t[e]=arguments.length>1?[].slice.call(arguments):a,n++,n===t.length&&o.resolveWith(i,t)}},r=0;r<t.length;r++)a(t[r])?t[r].promise().done(s(r)).fail(o.reject):n++;return n===t.length&&o.resolveWith(i,t),o.promise()};e.setStrategy=function(t){c=t.Deferred,h=t.when},e.Deferred=function(){return new c},e.when=function(){return h.apply(this,arguments)}},function(t,e,i){var n=i(10).isFunction,o=function(t){this._options=t||{},this._list=[],this._queue=[],this._firing=!1,this._fired=!1,this._firingIndexes=[]};o.prototype._fireCore=function(t,e){var i=this._firingIndexes,n=this._list,o=this._options.stopOnFalse,a=i.length;for(i[a]=0;i[a]<n.length;i[a]++){var s=n[i[a]].apply(t,e);if(s===!1&&o)break}i.pop()},o.prototype.add=function(t){return!n(t)||this._options.unique&&this.has(t)||this._list.push(t),this},o.prototype.remove=function(t){var e=this._list,i=this._firingIndexes,n=e.indexOf(t);if(n>-1&&(e.splice(n,1),this._firing&&i.length))for(var o=0;o<i.length;o++)n<=i[o]&&i[o]--;return this},o.prototype.has=function(t){var e=this._list;return t?e.indexOf(t)>-1:!!e.length},o.prototype.empty=function(t){return this._list=[],this},o.prototype.fireWith=function(t,e){var i=this._queue;if(e=e||[],e=e.slice?e.slice():e,this._options.syncStrategy)this._firing=!0,this._fireCore(t,e);else{if(i.push([t,e]),this._firing)return;for(this._firing=!0;i.length;){var n=i.shift();this._fireCore(n[0],n[1])}}return this._firing=!1,this._fired=!0,this},o.prototype.fire=function(){this.fireWith(this,arguments)},o.prototype.fired=function(){return this._fired};var a=function(t){return new o(t)};t.exports=a},function(t,e){var i=function(t,e,i,n){var o=i(e[t],t);null!=o&&n.push(o)},n=function(t,e){var n=[];if("length"in t)for(var o=0;o<t.length;o++)i(o,t,e,n);else for(var a in t)i(a,t,e,n);return[].concat.apply([],n)},o=function(t,e){if(t){if("length"in t)for(var i=0;i<t.length&&e.call(t[i],i,t[i])!==!1;i++);else for(var n in t)if(e.call(t[n],n,t[n])===!1)break;return t}};e.map=n,e.each=o},function(t,e){t.exports="17.2.17"},function(t,e,i){var n=i(20).fileSaver,o=i(10).isFunction;e.export=function(t,e,i){if(t){var a=e.exportingAction,s=e.exportedAction,r=e.fileSavingAction,l={fileName:e.fileName,format:e.format,cancel:!1};o(a)&&a(l),l.cancel||i(t,e,function(t){o(s)&&s(),o(r)&&(l.data=t,r(l)),l.cancel||n.saveAs(l.fileName,e.format,t,e.proxyUrl)})}},e.fileSaver=n,e.excel={creator:i(42).ExcelCreator,getData:i(42).getData,formatConverter:i(44)},e.image={creator:i(56).imageCreator,getData:i(56).getData},e.pdf={getData:i(58).getData},e.svg={creator:i(59).svgCreator,getData:i(59).getData}},function(t,e,i){var n=i(21),o=i(30),a=i(40),s=i(41),r=i(10),l={EXCEL:"xlsx",CSS:"css",PNG:"png",JPEG:"jpeg",GIF:"gif",SVG:"svg",PDF:"pdf"},c=e.MIME_TYPES={CSS:"text/css",EXCEL:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",PNG:"image/png",JPEG:"image/jpeg",GIF:"image/gif",SVG:"image/svg+xml",PDF:"application/pdf"};e.fileSaver={_getDataUri:function(t,e){return"data:"+c[t]+";base64,"+e},_linkDownloader:function(t,e,i){var a=document.createElement("a"),s={download:t,href:e};return o.on(n(a),"click",function(){n(a).remove(),i&&i.apply(this,arguments)}),document.body.appendChild(a),n(a).css({display:"none"}).text("load").attr(s)[0].click(),a},_formDownloader:function(t,e,i,a){var s={method:"post",action:t,enctype:"multipart/form-data"},r=n("<form>").css({display:"none"}).attr(s);r.append('<input type="hidden" name="fileName" value="'+e+'" />'),r.append('<input type="hidden" name="contentType" value="'+i+'" />'),r.append('<input type="hidden" name="data" value="'+a+'" />'),r.appendTo("body"),o.trigger(r,"submit"),o.trigger(r,"submit")&&r.remove()},_saveByProxy:function(t,e,i,n){return this._formDownloader(t,e,c[i],n)},_winJSBlobSave:function(t,e,i){var n=new Windows.Storage.Pickers.FileSavePicker;n.suggestedStartLocation=Windows.Storage.Pickers.PickerLocationId.documentsLibrary,n.fileTypeChoices.insert(c[i],["."+l[i]]),n.suggestedFileName=e,n.pickSaveFileAsync().then(function(e){e&&e.openAsync(Windows.Storage.FileAccessMode.readWrite).then(function(e){var i=t.msDetachStream();Windows.Storage.Streams.RandomAccessStream.copyAsync(i,e).then(function(){e.flushAsync().done(function(){i.close(),e.close()})})})})},_saveBlobAs:function(t,e,i,n){var o=this;if(o._blobSaved=!1,r.isDefined(navigator.msSaveOrOpenBlob))navigator.msSaveOrOpenBlob(i,t),o._blobSaved=!0;else if(r.isDefined(window.WinJS))o._winJSBlobSave(i,t,e),o._blobSaved=!0;else{var a=window.URL||window.webkitURL||window.mozURL||window.msURL||window.oURL;if(r.isDefined(a)){var s=a.createObjectURL(i),l=function(t){setTimeout(function(){a.revokeObjectURL(s)})};return o._linkDownloader(t,s,l)}}},saveAs:function(t,e,i,n,o){if(t+="."+l[e],r.isFunction(window.Blob))this._saveBlobAs(t,e,i);else if(r.isDefined(n)&&!r.isDefined(navigator.userAgent.match(/iPad/i)))this._saveByProxy(n,t,e,i);else{if(r.isDefined(navigator.userAgent.match(/iPad/i))||a.log("E1034"),s.msie&&parseInt(s.version)<10)return;this._linkDownloader(t,this._getDataUri(e,i),o)}}}},function(t,e,i){var n=i(22);t.exports=n.get()},function(t,e,i){var n=i(23),o=i(35),a=i(10),s=i(36),r=i(38),l=i(39),c=i(33),h=function(t,e){return new d(t,e)},d=function(t,e){return t?"string"==typeof t?(e=e||document,"body"===t?(this[0]=e.body,this.length=1,this):"<"===t[0]?(this[0]=o.createElement(t.slice(1,-1),void 0,e),this.length=1,this):([].push.apply(this,e.querySelectorAll(t)),this)):t.nodeType||a.isWindow(t)?(this[0]=t,this.length=1,this):t instanceof HTMLCollection||t instanceof NodeList||Array.isArray(t)?([].push.apply(this,t),this):h(t.toArray?t.toArray():[t]):(this.length=0,this)};h.fn={dxRenderer:!0},d.prototype=h.fn;var u=function(t,e){for(var i=0;i<this.length;i++){var n=h(this[i]);n[t].apply(n,e)}return this},p=function(t,e,i){void 0!==i&&null!==i?o.setAttribute(t,e,i):o.removeAttribute(t,e)};d.prototype.show=function(){return this.toggle(!0)},d.prototype.hide=function(){return this.toggle(!1)},d.prototype.toggle=function(t){return this[0]&&this.toggleClass("dx-state-invisible",!t),this},d.prototype.attr=function(t,e){if(this.length>1&&arguments.length>1)return u.call(this,"attr",arguments);if(!this[0])return a.isObject(t)||void 0!==e?this:void 0;if(!this[0].getAttribute)return this.prop(t,e);if("string"==typeof t&&1===arguments.length){var i=this[0].getAttribute(t);return null==i?void 0:i}if(a.isPlainObject(t))for(var n in t)this.attr(n,t[n]);else p(this[0],t,e);return this},d.prototype.removeAttr=function(t){return this[0]&&o.removeAttribute(this[0],t),this},d.prototype.prop=function(t,e){if(!this[0])return this;if("string"==typeof t&&1===arguments.length)return this[0][t];if(a.isPlainObject(t))for(var i in t)this.prop(i,t[i]);else o.setProperty(this[0],t,e);return this},d.prototype.addClass=function(t){return this.toggleClass(t,!0)},d.prototype.removeClass=function(t){return this.toggleClass(t,!1)},d.prototype.hasClass=function(t){if(!this[0]||void 0===this[0].className)return!1;for(var e=t.split(" "),i=0;i<e.length;i++)if(this[0].classList){if(this[0].classList.contains(e[i]))return!0}else if(this[0].className.split(" ").indexOf(e[i])>=0)return!0;return!1},d.prototype.toggleClass=function(t,e){if(this.length>1)return u.call(this,"toggleClass",arguments);if(!this[0]||!t)return this;e=void 0===e?!this.hasClass(t):e;for(var i=t.split(" "),n=0;n<i.length;n++)o.setClass(this[0],i[n],e);return this},["width","height","outerWidth","outerHeight","innerWidth","innerHeight"].forEach(function(t){var e=t.toLowerCase().indexOf("width")>=0?"Width":"Height",i=e.toLowerCase(),n=0===t.indexOf("outer"),s=0===t.indexOf("inner");d.prototype[t]=function(l){if(this.length>1&&arguments.length>0)return u.call(this,t,arguments);var c=this[0];if(c){if(a.isWindow(c))return n?c["inner"+e]:c.document.documentElement["client"+e];if(c.nodeType===Node.DOCUMENT_NODE){var h=c.documentElement;return Math.max(c.body["scroll"+e],c.body["offset"+e],h["scroll"+e],h["offset"+e],h["client"+e])}if(0===arguments.length||"boolean"==typeof l){var d={paddings:s||n,borders:n,margins:l};return r.getSize(c,i,d)}if(void 0===l||null===l)return this;if(a.isNumeric(l)){var p=window.getComputedStyle(c),f=r.getElementBoxParams(i,p),_="border-box"===p.boxSizing;n?l-=_?0:f.border+f.padding:s?l+=_?f.border:-f.padding:_&&(l+=f.border+f.padding)}return l+=a.isNumeric(l)?"px":"",o.setStyle(c,i,l),this}}}),d.prototype.html=function(t){return arguments.length?(this.empty(),"string"==typeof t&&!l.isTablePart(t)||"number"==typeof t?(this[0].innerHTML=t,this):this.append(l.parseHTML(t))):this[0].innerHTML};var f=function(t,e){if(this[0]&&t){"string"==typeof t?t=l.parseHTML(t):t.nodeType?t=[t]:a.isNumeric(t)&&(t=[o.createElement("#text",t)]);for(var i=0;i<t.length;i++){var n=t[i],s=this[0],r="TABLE"===s.tagName&&"TR"===n.tagName;r&&s.tBodies.length&&(s=s.tBodies[0]),o.insertElement(s,n.nodeType?n:n[0],e)}}},_=["fillOpacity","columnCount","flexGrow","flexShrink","fontWeight","lineHeight","opacity","zIndex","zoom"],m=function(t,e){if(this[0]&&this[0].style){t=s.styleProp(t);for(var i=0;i<this.length;i++)a.isNumeric(e)&&_.indexOf(t)===-1&&(e+="px"),this[i].style[t]=e}};d.prototype.css=function(t,e){if(a.isString(t)){if(2!==arguments.length){if(!this[0])return;t=s.styleProp(t);var i=window.getComputedStyle(this[0])[t]||this[0].style[t];return a.isNumeric(i)?i.toString():i}m.call(this,t,e)}else if(a.isPlainObject(t))for(var n in t)m.call(this,n,t[n]);return this},d.prototype.prepend=function(t){if(arguments.length>1){for(var e=0;e<arguments.length;e++)this.prepend(arguments[e]);return this}return f.apply(this,[t,this[0].firstChild]),this},d.prototype.append=function(t){if(arguments.length>1){for(var e=0;e<arguments.length;e++)this.append(arguments[e]);return this}return f.apply(this,[t]),this},d.prototype.prependTo=function(t){return t=h(t),t[0]&&o.insertElement(t[0],this[0],t[0].firstChild),this},d.prototype.appendTo=function(t){return this.length>1?u.call(this,"appendTo",arguments):(o.insertElement(h(t)[0],this[0]),this)},d.prototype.insertBefore=function(t){return t&&t[0]&&o.insertElement(t[0].parentNode,this[0],t[0]),this},d.prototype.insertAfter=function(t){return t&&t[0]&&o.insertElement(t[0].parentNode,this[0],t[0].nextSibling),this},d.prototype.before=function(t){return this[0]&&o.insertElement(this[0].parentNode,t[0],this[0]),this},d.prototype.after=function(t){return this[0]&&o.insertElement(this[0].parentNode,t[0],this[0].nextSibling),this},d.prototype.wrap=function(t){if(this[0]){var e=h(t);e.insertBefore(this),e.append(this)}return this},d.prototype.wrapInner=function(t){var e=this.contents();return e.length?e.wrap(t):this.append(t),this},d.prototype.replaceWith=function(t){if(t&&t[0])return t.insertBefore(this),this.remove(),t},d.prototype.remove=function(){return this.length>1?u.call(this,"remove",arguments):(n.cleanDataRecursive(this[0],!0),o.removeElement(this[0]),this)},d.prototype.detach=function(){return this.length>1?u.call(this,"detach",arguments):(o.removeElement(this[0]),this)},d.prototype.empty=function(){return this.length>1?u.call(this,"empty",arguments):(n.cleanDataRecursive(this[0]),o.setText(this[0],""),this)},d.prototype.clone=function(){for(var t=[],e=0;e<this.length;e++)t.push(this[e].cloneNode(!0));return h(t)},d.prototype.text=function(t){if(!arguments.length){for(var e="",i=0;i<this.length;i++)e+=this[i]&&this[i].textContent||"";return e}var s=a.isFunction(t)?t():t;return n.cleanDataRecursive(this[0],!1),o.setText(this[0],a.isDefined(s)?s:""),this},d.prototype.val=function(t){return 1===arguments.length?this.prop("value",a.isDefined(t)?t:""):this.prop("value")},d.prototype.contents=function(){return h(this[0]?this[0].childNodes:[])},d.prototype.find=function(t){var e=h();if(!t)return e;var i,n=[];if("string"==typeof t)for(t=t.trim(),i=0;i<this.length;i++){var o=this[i];if(o.nodeType===Node.ELEMENT_NODE){var a=o.getAttribute("id"),s=a||"dx-query-children";a||p(o,"id",s),s="[id='"+s+"'] ";var r=s+t.replace(/([^\\])(\,)/g,"$1, "+s);n.push.apply(n,o.querySelectorAll(r)),p(o,"id",a)}else o.nodeType===Node.DOCUMENT_NODE&&n.push.apply(n,o.querySelectorAll(t))}else for(i=0;i<this.length;i++)t=t.nodeType?t:t[0],this[i]!==t&&this[i].contains(t)&&n.push(t);return e.add(n)};var g=function(t,e){return!e.nodeType||!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)};d.prototype.filter=function(t){if(!t)return h();if(":visible"===t)return this.filter(g);if(":hidden"===t)return this.filter(function(t,e){return!g(t,e)});for(var e=[],i=0;i<this.length;i++){var n=this[i];if(n.nodeType===Node.ELEMENT_NODE&&"string"===a.type(t))c(n,t)&&e.push(n);else if(t.nodeType||a.isWindow(t))t===n&&e.push(n);else if(a.isFunction(t))t.call(n,i,n)&&e.push(n);else for(var o=0;o<t.length;o++)t[o]===n&&e.push(n)}return h(e)},d.prototype.not=function(t){for(var e=[],i=this.filter(t).toArray(),n=0;n<this.length;n++)i.indexOf(this[n])===-1&&e.push(this[n]);return h(e)},d.prototype.is=function(t){return!!this.filter(t).length},d.prototype.children=function(t){for(var e=[],i=0;i<this.length;i++)for(var n=this[i]?this[i].childNodes:[],o=0;o<n.length;o++)n[o].nodeType===Node.ELEMENT_NODE&&e.push(n[o]);return e=h(e),t?e.filter(t):e},d.prototype.siblings=function(){var t=this[0];if(!t||!t.parentNode)return h();for(var e=[],i=t.parentNode.childNodes||[],n=0;n<i.length;n++){var o=i[n];o.nodeType===Node.ELEMENT_NODE&&o!==t&&e.push(o)}return h(e)},d.prototype.each=function(t){for(var e=0;e<this.length&&t.call(this[e],e,this[e])!==!1;e++);},d.prototype.index=function(t){return t?(t=h(t),this.toArray().indexOf(t[0])):this.parent().children().index(this)},d.prototype.get=function(t){return this[t<0?this.length+t:t]},d.prototype.eq=function(t){return t=t<0?this.length+t:t,h(this[t])},d.prototype.first=function(){return this.eq(0)},d.prototype.last=function(){return this.eq(-1)},d.prototype.parent=function(t){if(!this[0])return h();var e=h(this[0].parentNode);return!t||e.is(t)?e:h()},d.prototype.parents=function(t){for(var e=[],i=this.parent();i&&i[0]&&i[0].nodeType!==Node.DOCUMENT_NODE;)i[0].nodeType===Node.ELEMENT_NODE&&(!t||t&&i.is(t))&&e.push(i.get(0)),i=i.parent();return h(e)},d.prototype.closest=function(t){if(this.is(t))return this;for(var e=this.parent();e&&e.length;){if(e.is(t))return e;e=e.parent()}return h()},d.prototype.next=function(t){if(!this[0])return h();var e=h(this[0].nextSibling);if(!arguments.length)return e;for(;e&&e.length;){if(e.is(t))return e;e=e.next()}return h()},d.prototype.prev=function(){return this[0]?h(this[0].previousSibling):h()},d.prototype.add=function(t){for(var e=h(t),i=this.toArray(),n=0;n<e.length;n++){var o=e[n];i.indexOf(o)===-1&&i.push(o)}return h(i)};var v=[];d.prototype.splice=function(){return h(v.splice.apply(this,arguments))},d.prototype.slice=function(){return h(v.slice.apply(this,arguments))},d.prototype.toArray=function(){return v.slice.call(this)};var b=function(t){return a.isWindow(t)?t:t.defaultView};d.prototype.offset=function(){if(this[0]){if(!this[0].getClientRects().length)return{top:0,left:0};var t=this[0].getBoundingClientRect(),e=b(this[0].ownerDocument),i=this[0].ownerDocument.documentElement;return{top:t.top+e.pageYOffset-i.clientTop,left:t.left+e.pageXOffset-i.clientLeft}}},d.prototype.offsetParent=function(){if(!this[0])return h();for(var t=h(this[0].offsetParent);t[0]&&"static"===t.css("position");)t=h(t[0].offsetParent);return t=t[0]?t:h(document.documentElement)},d.prototype.position=function(){if(this[0]){var t,e=parseFloat(this.css("marginTop")),i=parseFloat(this.css("marginLeft"));if("fixed"===this.css("position"))return t=this[0].getBoundingClientRect(),{top:t.top-e,left:t.left-i};t=this.offset();var n=this.offsetParent(),o={top:0,left:0};return"HTML"!==n[0].nodeName&&(o=n.offset()),o={top:o.top+parseFloat(n.css("borderTopWidth")),
|
|
9
|
+
"use strict";!function(t){function e(n){if(i[n])return i[n].exports;var o=i[n]={exports:{},id:n,loaded:!1};return t[n].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var i={};return e.m=t,e.c=i,e.p="",e(0)}([function(t,e,i){t.exports=i(723)},,,function(t,e,i){var n=i(4);n.dxPanorama=i(370),n.dxPivot=i(372),n.dxSlideOut=i(374),n.dxSlideOutView=i(375)},function(t,e,i){var n=i(5);i(221);var o=n.ui=i(233);o.themes=i(179),o.setTemplateEngine=i(234),o.dialog=i(235),o.notify=i(240),o.dxActionSheet=i(242),o.dxAutocomplete=i(244),o.dxBox=i(290),o.dxButton=i(237),o.dxCalendar=i(291),o.dxCheckBox=i(285),o.dxColorBox=i(298),o.dxDateBox=i(308),o.dxDeferRendering=i(321),o.dxDropDownBox=i(322),o.dxDropDownMenu=i(323),o.dxFileUploader=i(324),o.dxForm=i(327),o.dxGallery=i(339),o.dxList=i(254),o.dxLoadIndicator=i(275),o.dxLoadPanel=i(283),o.dxLookup=i(340),o.dxMap=i(341),o.dxMultiView=i(334),o.dxNavBar=i(347),o.dxNumberBox=i(301),o.dxOverlay=i(131),o.dxPopover=i(243),o.dxPopup=i(236),o.dxProgressBar=i(325),o.dxRadioGroup=i(349),o.dxRangeSlider=i(351),o.dxResizable=i(133),o.dxResponsiveBox=i(332),o.dxScrollView=i(270),o.dxSelectBox=i(319),o.dxSlider=i(352),o.dxSwitch=i(358),o.dxTabPanel=i(333),o.dxTabs=i(335),o.dxTagBox=i(359),o.dxTextArea=i(360),o.dxTextBox=i(247),o.dxTileView=i(361),o.dxToast=i(241),o.dxToolbar=i(362),o.dxTooltip=i(355),o.dxTrackBar=i(326),n.validationEngine=i(139),o.dxValidationSummary=i(337),o.dxValidationGroup=i(338),o.dxValidator=i(330),o.CollectionWidget=i(185),o.dxDropDownEditor=i(246),t.exports=o},function(t,e,i){var n=i(6);n.framework=i(114),i(144),i(180),i(115),i(212),i(214),i(215),i(216),i(217),i(97),i(201),i(218),i(132),i(200),i(125),i(98),i(219),i(220),t.exports=n},function(t,e,i){var n=window.DevExpress=window.DevExpress||{},o=n.errors=i(7);if(n._DEVEXTREME_BUNDLE_INITIALIZED)throw o.Error("E0024");n._DEVEXTREME_BUNDLE_INITIALIZED=!0,n.clientExporter=i(19),n.VERSION=i(18),n.Class=i(29),n.DOMComponent=i(63),n.registerComponent=i(78),n.devices=i(74),n.Color=i(57);var a=i(80);n.requestAnimationFrame=function(){return o.log("W0000","DevExpress.requestAnimationFrame","15.2","Use the 'DevExpress.utils.requestAnimationFrame' method instead."),a.requestAnimationFrame.apply(a,arguments)},n.cancelAnimationFrame=function(){return o.log("W0000","DevExpress.cancelAnimationFrame","15.2","Use the 'DevExpress.utils.cancelAnimationFrame' method instead."),a.cancelAnimationFrame.apply(a,arguments)},n.EventsMixin=i(72),n.utils={},n.utils.requestAnimationFrame=a.requestAnimationFrame,n.utils.cancelAnimationFrame=a.cancelAnimationFrame,n.utils.initMobileViewport=i(81).initMobileViewport,n.utils.extendFromObject=i(9).extendFromObject,n.utils.createComponents=i(64).createComponents,n.utils.triggerShownEvent=i(64).triggerShownEvent,n.utils.triggerHidingEvent=i(64).triggerHidingEvent,n.utils.resetActiveElement=i(64).resetActiveElement,n.utils.findBestMatches=i(13).findBestMatches,n.createQueue=i(83).create,n.utils.dom=i(64),n.utils.common=i(13),n.utils.date=i(84),n.utils.browser=i(41),n.utils.inflector=i(37),n.utils.iterator=i(17),n.utils.resizeCallbacks=i(65).resizeCallbacks,n.utils.console=i(11),n.utils.string=i(12),n.utils.support=i(82),n.processHardwareBackButton=i(85),n.viewPort=i(76).value,n.hideTopOverlay=i(86),n.formatHelper=i(87);var s=n.config=i(14);Object.defineProperty(n,"rtlEnabled",{get:function(){return o.log("W0003","DevExpress","rtlEnabled","16.1","Use the 'DevExpress.config' method instead"),s().rtlEnabled},set:function(t){o.log("W0003","DevExpress","rtlEnabled","16.1","Use the 'DevExpress.config' method instead"),s({rtlEnabled:t})}}),Object.defineProperty(n,"designMode",{get:function(){return s().designMode},set:function(t){s({designMode:t})}}),n.animationPresets=i(88).presets,n.fx=i(89),n.TransitionExecutor=i(95).TransitionExecutor,n.AnimationPresetCollection=i(88).PresetCollection,n.events=i(96),n.events.click=i(97),n.events.utils=i(93),n.events.GestureEmitter=i(109),n.localization=i(110),t.exports=n},function(t,e,i){var n=i(8);t.exports=n({E0001:"Method is not implemented",E0002:"Member name collision: {0}",E0003:"A class must be instantiated using the 'new' keyword",E0004:"The NAME property of the component is not specified",E0005:"Unknown device",E0006:"Unknown endpoint key is requested",E0007:"'Invalidate' method is called outside the update transaction",E0008:"Type of the option name is not appropriate to create an action",E0009:"Component '{0}' has not been initialized for an element",E0010:"Animation configuration with the '{0}' type requires '{1}' configuration as {2}",E0011:"Unknown animation type '{0}'",E0012:"jQuery version is too old. Please upgrade jQuery to 1.10.0 or later",E0013:"KnockoutJS version is too old. Please upgrade KnockoutJS to 2.3.0 or later",E0014:"The 'release' method shouldn't be called for an unlocked Lock object",E0015:"Queued task returned an unexpected result",E0017:"Event namespace is not defined",E0018:"DevExpress.ui.DevExpressPopup widget is required",E0020:"Template engine '{0}' is not supported",E0021:"Unknown theme is set: {0}",E0022:"LINK[rel=DevExpress-theme] tags must go before DevExpress included scripts",E0023:"Template name is not specified",E0024:"DevExtreme bundle already included",E0100:"Unknown validation type is detected",E0101:"Misconfigured range validation rule is detected",E0102:"Misconfigured comparison validation rule is detected",E0110:"Unknown validation group is detected",E0120:"Adapter for a DevExpressValidator component cannot be configured",E0121:"The onCustomItemCreating action should return an item or Promise of jQuery Deferred object resolved when an item is created",W0000:"'{0}' is deprecated in {1}. {2}",W0001:"{0} - '{1}' option is deprecated in {2}. {3}",W0002:"{0} - '{1}' method is deprecated in {2}. {3}",W0003:"{0} - '{1}' property is deprecated in {2}. {3}",W0004:"Timeout for theme loading is over: {0}",W0005:"'{0}' event is deprecated in {1}. {2}",W0006:"Invalid recurrence rule: '{0}'",W0007:"'{0}' Globalize culture is not defined",W0008:"Invalid view name: '{0}'",W0009:"Invalid time zone name: '{0}'",W0010:"{0} is deprecated in {1}. {2}",W0011:"Number parsing is invoked while the parser is not defined",W0012:"Date parsing is invoked while the parser is not defined",W0013:"'{0}' file is deprecated in {1}. {2}",W0014:"{0} - '{1}' type is deprecated in {2}. {3}"})},function(t,e,i){var n=i(9).extend,o=i(11),a=i(12),s=i(18),r="http://js.devexpress.com/error/"+s.split(".").slice(0,2).join("_")+"/";t.exports=function(t,e){var i={ERROR_MESSAGES:n(e,t),Error:function(){return h([].slice.call(arguments))},log:function(t){var e="log";/^E\d+$/.test(t)?e="error":/^W\d+$/.test(t)&&(e="warn"),o.logger[e]("log"===e?t:s([].slice.call(arguments)))}},s=function(t){var e=t[0];return t=t.slice(1),c(e,l(e,t))},l=function(t,e){return e=[i.ERROR_MESSAGES[t]].concat(e),a.format.apply(this,e).replace(/\.*\s*?$/,"")},c=function(t,e){return a.format.apply(this,["{0} - {1}. See:\n{2}",t,e,r+t])},h=function(t){var e,i,o;return e=t[0],t=t.slice(1),i=l(e,t),o=c(e,i),n(new Error(o),{__id:e,__details:i})};return i}},function(t,e,i){var n=i(10).isPlainObject,o=function(t,e,i){t=t||{};for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];n in t&&!i||(t[n]=o)}return t},a=function(t){t=t||{};var e=1,i=!1;for("boolean"==typeof t&&(i=t,t=arguments[1]||{},e++);e<arguments.length;e++){var o=arguments[e];if(null!=o)for(var s in o){var r,l=t[s],c=o[s],h=!1;"__proto__"!==s&&t!==c&&(i&&c&&(n(c)||(h=Array.isArray(c)))?(r=h?l&&Array.isArray(l)?l:[]:l&&n(l)?l:{},t[s]=a(i,r,c)):void 0!==c&&(t[s]=c))}}return t};e.extend=a,e.extendFromObject=o},function(t,e){var i={"[object Array]":"array","[object Date]":"date","[object Object]":"object","[object String]":"string","[object Null]":"null"},n=function(t){var e=Object.prototype.toString.call(t);return"object"==typeof t?i[e]||"object":typeof t},o=function(t){return"boolean"==typeof t},a=function(t){return h(t)&&t.toString().indexOf("e")!==-1},s=function(t){return"date"===n(t)},r=function(t){return null!==t&&void 0!==t},l=function(t){return"function"==typeof t},c=function(t){return"string"==typeof t},h=function(t){return"number"==typeof t&&isFinite(t)||!isNaN(t-parseFloat(t))},d=function(t){return"object"===n(t)},u=function(t){var e;for(e in t)return!1;return!0},p=function(t){if(!t||"[object Object]"!==Object.prototype.toString.call(t))return!1;var e=Object.getPrototypeOf(t),i=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return"function"==typeof i&&Object.toString.call(i)===Object.toString.call(Object)},f=function(t){return["object","array","function"].indexOf(n(t))===-1},_=function(t){return null!=t&&t===t.window},m=function(t){return t instanceof Element},g=function(t){return!(!t.jquery&&!t.dxRenderer)},v=function(t){return t&&l(t.then)},b=function(t){return t&&l(t.done)&&l(t.fail)};e.isBoolean=o,e.isExponential=a,e.isDate=s,e.isDefined=r,e.isFunction=l,e.isString=c,e.isNumeric=h,e.isObject=d,e.isEmptyObject=u,e.isPlainObject=p,e.isPrimitive=f,e.isWindow=_,e.isDomNode=m,e.isRenderer=g,e.isPromise=v,e.isDeferred=b,e.type=n},function(t,e,i){var n=i(10).isFunction,o=function(){function t(t){o&&n(o.info)&&o.info(t)}function e(t){o&&n(o.warn)&&o.warn(t)}function i(t){o&&n(o.error)&&o.error(t)}var o=window.console;return{info:t,warn:e,error:i}}(),a=function(){function t(t,e){if(!t)throw new Error(e)}function e(e,i){t(null!==e&&void 0!==e,i)}return{assert:t,assertParam:e}}();e.logger=o,e.debug=a},function(t,e,i){var n=i(10),o=i(13),a=function(){var t=[new RegExp("&","g"),new RegExp('"',"g"),new RegExp("'","g"),new RegExp("<","g"),new RegExp(">","g")];return function(e){return String(e).replace(t[0],"&").replace(t[1],""").replace(t[2],"'").replace(t[3],"<").replace(t[4],">")}}(),s=function(t){var e=o.splitPair(t),i=parseInt(e&&e[0],10),n=parseInt(e&&e[1],10);return isFinite(i)||(i=0),isFinite(n)||(n=i),{h:i,v:n}},r=function(t){var e=o.splitQuad(t),i=parseInt(e&&e[0],10),n=parseInt(e&&e[1],10),a=parseInt(e&&e[2],10),s=parseInt(e&&e[3],10);return isFinite(i)||(i=0),isFinite(n)||(n=i),isFinite(a)||(a=i),isFinite(s)||(s=n),{top:n,right:a,bottom:s,left:i}},l=function(){var t,e,i,o=arguments[0],a=[].slice.call(arguments).slice(1);if(n.isFunction(o))return o.apply(this,a);for(var s=0;s<a.length;s++)e=new RegExp("\\{"+s+"\\}","gm"),i=a[s],"string"===n.type(i)&&i.indexOf("$")>=0&&(t="$".replace("$","$$").length,i=i.replace("$",1===t?"$$$$":"$$")),o=o.replace(e,i);return o},c=function(){var t=function(t){return(t+"").replace(/([\+\*\?\\\.\[\^\]\$\(\)\{\}\><\|\=\!\:])/g,"\\$1")};return function(e,i,n){return e.replace(new RegExp("("+t(i)+")","gi"),n)}}(),h=function(){var t=/\s/g;return function(e){return!e||!e.replace(t,"")}}();e.encodeHtml=a,e.pairToObject=s,e.quadToObject=r,e.format=l,e.replaceAll=c,e.isEmpty=h},function(t,e,i){var n,o=i(14),a=i(15),s=a.when,r=a.Deferred,l=i(17).each,c=i(10),h=function(t,e){return c.isDefined(t)?t:e},d=function(t,e){var i,n=new r,o=e||this,a={promise:n.promise(),abort:function(){clearTimeout(i),n.rejectWith(o)}},s=function(){var e=t.call(o);e&&e.done&&c.isFunction(e.done)?e.done(function(){n.resolveWith(o)}):n.resolveWith(o)};return i=(arguments[2]||setTimeout)(s,"number"==typeof e?e:0),a},u=[],p=[],f=[],_=function(t,e,i){if(n&&n!==t)return u.push(e),p.push(t),i=i||new r,f.push(i),i;var o=n,a=f.length;n=t;var l=e();return l||(f.length>a?l=s.apply(this,f.slice(a)):i&&i.resolve()),n=o,i&&l&&l.done&&l.done(i.resolve).fail(i.reject),!n&&u.length&&("render"===p.shift()?m:g)(u.shift(),f.shift()),l},m=function(t,e){return _("render",t,e)},g=function(t,e){return _("update",t,e)},v=function(t){return function(){var e=this;return _("render",function(){return t.call(e)})}},b=function(t){return function(){var e=this;return _("update",function(){return t.call(e)})}},y=function(t,e,i){var n=[],o=0;return l(e,function(e,a){var s=0,r=i?i(a):a;l(t,function(t,e){var i=r[t];if(void 0!==i)return C(i,e)?void s++:(s=-1,!1)}),s<o||(s>o&&(n.length=0,o=s),n.push(a))}),n},C=function(t,e){if(Array.isArray(t)&&Array.isArray(e)){var i=!1;return l(t,function(t,n){if(n!==e[t])return i=!0,!1}),!i}return t===e},x=function(t){switch(typeof t){case"string":return t.split(/\s+/,2);case"object":return[t.x||t.h,t.y||t.v];case"number":return[t];default:return t}},w=function(t){switch(typeof t){case"string":return t.split(/\s+/,4);case"object":return[t.x||t.h||t.left,t.y||t.v||t.top,t.x||t.h||t.right,t.y||t.v||t.bottom];case"number":return[t];default:return t}},S=function(t){var e=c.isString(t)?t:t.toString(),i=e.match(/[^a-zA-Z0-9_]/g);return i&&l(i,function(t,i){e=e.replace(i,"__"+i.charCodeAt()+"__")}),e},I=function(t){var e=t.match(/__\d+__/g);return e&&e.forEach(function(e){var i=parseInt(e.replace("__",""));t=t.replace(e,String.fromCharCode(i))}),t},T=function(t,e,i){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!D(t[n],e[n],i+1))return!1;return!0},E=function(t,e,i){for(var n in t)if(t.hasOwnProperty(n)&&!D(t[n],e[n],i+1))return!1;for(n in e)if(!(n in t))return!1;return!0},D=function(t,e,i){if(t===e)return!0;var n=3;return i=i||0,i>=n||(c.isObject(t)&&c.isObject(e)?E(t,e,i):Array.isArray(t)&&Array.isArray(e)?T(t,e,i):!(!c.isDate(t)||!c.isDate(e))&&t.getTime()===e.getTime())},k=function(t){if(c.isObject(t)||Array.isArray(t))try{var e=JSON.stringify(t);return"{}"===e?t:e}catch(e){return t}return t},B=function(t){return t.replace(/[[\]{}\-()*+?.\\^$|\s]/g,"\\$&")},A=function(t){var e=o().serverDecimalSeparator;return c.isDefined(t)&&(t=t.toString().replace(".",e)),t},M=function(){},O=function(t,e,i){for(var n,o=[],a=!i,s=0;s<t.length;s++)n=!!e(t[s],s),n===a&&o.push(t[s]);return o};e.ensureDefined=h,e.executeAsync=d,e.deferRender=m,e.deferRenderer=v,e.deferUpdate=g,e.deferUpdater=b,e.splitPair=x,e.splitQuad=w,e.findBestMatches=y,e.normalizeKey=S,e.denormalizeKey=I,e.equalByValue=D,e.getKeyHash=k,e.escapeRegExp=B,e.applyServerDecimalSeparator=A,e.noop=M,e.grep=O},function(t,e,i){var n=i(9),o={rtlEnabled:!1,defaultCurrency:"USD",designMode:!1,serverDecimalSeparator:".",decimalSeparator:".",thousandsSeparator:",",forceIsoDateParsing:!0,wrapActionsBeforeExecute:!0,useJQuery:void 0},a=function(){return arguments.length?void n.extend(o,arguments[0]):o};window&&window.DevExpress&&window.DevExpress.config&&a(window.DevExpress.config),t.exports=a},function(t,e,i){var n=i(10),o=n.isPromise,a=n.isDeferred,s=i(9).extend,r=i(16),l=[{method:"resolve",handler:"done",state:"resolved"},{method:"reject",handler:"fail",state:"rejected"},{method:"notify",handler:"progress"}],c=function(){var t=this;this._state="pending",this._promise={},l.forEach(function(e){var i=e.method;this[i+"Callbacks"]=new r,this[i]=function(){return this[i+"With"](this._promise,arguments)}.bind(this),this._promise[e.handler]=function(e){if(!e)return this;var n=t[i+"Callbacks"];return n.fired()?e.apply(t[i+"Context"],t[i+"Args"]):n.add(function(t,i){e.apply(t,i)}.bind(this)),this}}.bind(this)),this._promise.always=function(t){return this.done(t).fail(t)},this._promise.catch=function(t){return this.then(null,t)},this._promise.then=function(t,e){var i=new c;return["done","fail"].forEach(function(n){var s="done"===n?t:e;this[n](function(){if(!s)return void i["done"===n?"resolve":"reject"].apply(this,arguments);var t=s&&s.apply(this,arguments);a(t)?t.done(i.resolve).fail(i.reject):o(t)?t.then(i.resolve,i.reject):i.resolve.apply(this,t?[t]:arguments)})}.bind(this)),i.promise()},this._promise.state=function(){return t._state},this._promise.promise=function(e){return e?s(e,t._promise):t._promise},this._promise.promise(this)};l.forEach(function(t){var e=t.method,i=t.state;c.prototype[e+"With"]=function(t,n){var o=this[e+"Callbacks"];return"pending"===this.state()&&(this[e+"Args"]=n,this[e+"Context"]=t,i&&(this._state=i),o.fire(t,n)),this}}),e.fromPromise=function(t,e){if(a(t))return t;if(o(t)){var i=new c;return t.then(function(){i.resolveWith.apply(i,[e].concat([[].slice.call(arguments)]))},function(){i.rejectWith.apply(i,[e].concat([[].slice.call(arguments)]))}),i}return(new c).resolveWith(e,[t])};var h=function(){if(1===arguments.length)return e.fromPromise(arguments[0]);for(var t=[].slice.call(arguments),i=[],n=0,o=new c,s=function(e){return function(a){i[e]=this,t[e]=arguments.length>1?[].slice.call(arguments):a,n++,n===t.length&&o.resolveWith(i,t)}},r=0;r<t.length;r++)a(t[r])?t[r].promise().done(s(r)).fail(o.reject):n++;return n===t.length&&o.resolveWith(i,t),o.promise()};e.setStrategy=function(t){c=t.Deferred,h=t.when},e.Deferred=function(){return new c},e.when=function(){return h.apply(this,arguments)}},function(t,e,i){var n=i(10).isFunction,o=function(t){this._options=t||{},this._list=[],this._queue=[],this._firing=!1,this._fired=!1,this._firingIndexes=[]};o.prototype._fireCore=function(t,e){var i=this._firingIndexes,n=this._list,o=this._options.stopOnFalse,a=i.length;for(i[a]=0;i[a]<n.length;i[a]++){var s=n[i[a]].apply(t,e);if(s===!1&&o)break}i.pop()},o.prototype.add=function(t){return!n(t)||this._options.unique&&this.has(t)||this._list.push(t),this},o.prototype.remove=function(t){var e=this._list,i=this._firingIndexes,n=e.indexOf(t);if(n>-1&&(e.splice(n,1),this._firing&&i.length))for(var o=0;o<i.length;o++)n<=i[o]&&i[o]--;return this},o.prototype.has=function(t){var e=this._list;return t?e.indexOf(t)>-1:!!e.length},o.prototype.empty=function(t){return this._list=[],this},o.prototype.fireWith=function(t,e){var i=this._queue;if(e=e||[],e=e.slice?e.slice():e,this._options.syncStrategy)this._firing=!0,this._fireCore(t,e);else{if(i.push([t,e]),this._firing)return;for(this._firing=!0;i.length;){var n=i.shift();this._fireCore(n[0],n[1])}}return this._firing=!1,this._fired=!0,this},o.prototype.fire=function(){this.fireWith(this,arguments)},o.prototype.fired=function(){return this._fired};var a=function(t){return new o(t)};t.exports=a},function(t,e){var i=function(t,e,i,n){var o=i(e[t],t);null!=o&&n.push(o)},n=function(t,e){var n=[];if("length"in t)for(var o=0;o<t.length;o++)i(o,t,e,n);else for(var a in t)i(a,t,e,n);return[].concat.apply([],n)},o=function(t,e){if(t){if("length"in t)for(var i=0;i<t.length&&e.call(t[i],i,t[i])!==!1;i++);else for(var n in t)if(e.call(t[n],n,t[n])===!1)break;return t}};e.map=n,e.each=o},function(t,e){t.exports="17.2.18"},function(t,e,i){var n=i(20).fileSaver,o=i(10).isFunction;e.export=function(t,e,i){if(t){var a=e.exportingAction,s=e.exportedAction,r=e.fileSavingAction,l={fileName:e.fileName,format:e.format,cancel:!1};o(a)&&a(l),l.cancel||i(t,e,function(t){o(s)&&s(),o(r)&&(l.data=t,r(l)),l.cancel||n.saveAs(l.fileName,e.format,t,e.proxyUrl)})}},e.fileSaver=n,e.excel={creator:i(42).ExcelCreator,getData:i(42).getData,formatConverter:i(44)},e.image={creator:i(56).imageCreator,getData:i(56).getData},e.pdf={getData:i(58).getData},e.svg={creator:i(59).svgCreator,getData:i(59).getData}},function(t,e,i){var n=i(21),o=i(30),a=i(40),s=i(41),r=i(10),l={EXCEL:"xlsx",CSS:"css",PNG:"png",JPEG:"jpeg",GIF:"gif",SVG:"svg",PDF:"pdf"},c=e.MIME_TYPES={CSS:"text/css",EXCEL:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",PNG:"image/png",JPEG:"image/jpeg",GIF:"image/gif",SVG:"image/svg+xml",PDF:"application/pdf"};e.fileSaver={_getDataUri:function(t,e){return"data:"+c[t]+";base64,"+e},_linkDownloader:function(t,e,i){var a=document.createElement("a"),s={download:t,href:e};return o.on(n(a),"click",function(){n(a).remove(),i&&i.apply(this,arguments)}),document.body.appendChild(a),n(a).css({display:"none"}).text("load").attr(s)[0].click(),a},_formDownloader:function(t,e,i,a){var s={method:"post",action:t,enctype:"multipart/form-data"},r=n("<form>").css({display:"none"}).attr(s);r.append('<input type="hidden" name="fileName" value="'+e+'" />'),r.append('<input type="hidden" name="contentType" value="'+i+'" />'),r.append('<input type="hidden" name="data" value="'+a+'" />'),r.appendTo("body"),o.trigger(r,"submit"),o.trigger(r,"submit")&&r.remove()},_saveByProxy:function(t,e,i,n){return this._formDownloader(t,e,c[i],n)},_winJSBlobSave:function(t,e,i){var n=new Windows.Storage.Pickers.FileSavePicker;n.suggestedStartLocation=Windows.Storage.Pickers.PickerLocationId.documentsLibrary,n.fileTypeChoices.insert(c[i],["."+l[i]]),n.suggestedFileName=e,n.pickSaveFileAsync().then(function(e){e&&e.openAsync(Windows.Storage.FileAccessMode.readWrite).then(function(e){var i=t.msDetachStream();Windows.Storage.Streams.RandomAccessStream.copyAsync(i,e).then(function(){e.flushAsync().done(function(){i.close(),e.close()})})})})},_saveBlobAs:function(t,e,i,n){var o=this;if(o._blobSaved=!1,r.isDefined(navigator.msSaveOrOpenBlob))navigator.msSaveOrOpenBlob(i,t),o._blobSaved=!0;else if(r.isDefined(window.WinJS))o._winJSBlobSave(i,t,e),o._blobSaved=!0;else{var a=window.URL||window.webkitURL||window.mozURL||window.msURL||window.oURL;if(r.isDefined(a)){var s=a.createObjectURL(i),l=function(t){setTimeout(function(){a.revokeObjectURL(s)})};return o._linkDownloader(t,s,l)}}},saveAs:function(t,e,i,n,o){if(t+="."+l[e],r.isFunction(window.Blob))this._saveBlobAs(t,e,i);else if(r.isDefined(n)&&!r.isDefined(navigator.userAgent.match(/iPad/i)))this._saveByProxy(n,t,e,i);else{if(r.isDefined(navigator.userAgent.match(/iPad/i))||a.log("E1034"),s.msie&&parseInt(s.version)<10)return;this._linkDownloader(t,this._getDataUri(e,i),o)}}}},function(t,e,i){var n=i(22);t.exports=n.get()},function(t,e,i){var n=i(23),o=i(35),a=i(10),s=i(36),r=i(38),l=i(39),c=i(33),h=function(t,e){return new d(t,e)},d=function(t,e){return t?"string"==typeof t?(e=e||document,"body"===t?(this[0]=e.body,this.length=1,this):"<"===t[0]?(this[0]=o.createElement(t.slice(1,-1),void 0,e),this.length=1,this):([].push.apply(this,e.querySelectorAll(t)),this)):t.nodeType||a.isWindow(t)?(this[0]=t,this.length=1,this):t instanceof HTMLCollection||t instanceof NodeList||Array.isArray(t)?([].push.apply(this,t),this):h(t.toArray?t.toArray():[t]):(this.length=0,this)};h.fn={dxRenderer:!0},d.prototype=h.fn;var u=function(t,e){for(var i=0;i<this.length;i++){var n=h(this[i]);n[t].apply(n,e)}return this},p=function(t,e,i){void 0!==i&&null!==i?o.setAttribute(t,e,i):o.removeAttribute(t,e)};d.prototype.show=function(){return this.toggle(!0)},d.prototype.hide=function(){return this.toggle(!1)},d.prototype.toggle=function(t){return this[0]&&this.toggleClass("dx-state-invisible",!t),this},d.prototype.attr=function(t,e){if(this.length>1&&arguments.length>1)return u.call(this,"attr",arguments);if(!this[0])return a.isObject(t)||void 0!==e?this:void 0;if(!this[0].getAttribute)return this.prop(t,e);if("string"==typeof t&&1===arguments.length){var i=this[0].getAttribute(t);return null==i?void 0:i}if(a.isPlainObject(t))for(var n in t)this.attr(n,t[n]);else p(this[0],t,e);return this},d.prototype.removeAttr=function(t){return this[0]&&o.removeAttribute(this[0],t),this},d.prototype.prop=function(t,e){if(!this[0])return this;if("string"==typeof t&&1===arguments.length)return this[0][t];if(a.isPlainObject(t))for(var i in t)this.prop(i,t[i]);else o.setProperty(this[0],t,e);return this},d.prototype.addClass=function(t){return this.toggleClass(t,!0)},d.prototype.removeClass=function(t){return this.toggleClass(t,!1)},d.prototype.hasClass=function(t){if(!this[0]||void 0===this[0].className)return!1;for(var e=t.split(" "),i=0;i<e.length;i++)if(this[0].classList){if(this[0].classList.contains(e[i]))return!0}else if(this[0].className.split(" ").indexOf(e[i])>=0)return!0;return!1},d.prototype.toggleClass=function(t,e){if(this.length>1)return u.call(this,"toggleClass",arguments);if(!this[0]||!t)return this;e=void 0===e?!this.hasClass(t):e;for(var i=t.split(" "),n=0;n<i.length;n++)o.setClass(this[0],i[n],e);return this},["width","height","outerWidth","outerHeight","innerWidth","innerHeight"].forEach(function(t){var e=t.toLowerCase().indexOf("width")>=0?"Width":"Height",i=e.toLowerCase(),n=0===t.indexOf("outer"),s=0===t.indexOf("inner");d.prototype[t]=function(l){if(this.length>1&&arguments.length>0)return u.call(this,t,arguments);var c=this[0];if(c){if(a.isWindow(c))return n?c["inner"+e]:c.document.documentElement["client"+e];if(c.nodeType===Node.DOCUMENT_NODE){var h=c.documentElement;return Math.max(c.body["scroll"+e],c.body["offset"+e],h["scroll"+e],h["offset"+e],h["client"+e])}if(0===arguments.length||"boolean"==typeof l){var d={paddings:s||n,borders:n,margins:l};return r.getSize(c,i,d)}if(void 0===l||null===l)return this;if(a.isNumeric(l)){var p=window.getComputedStyle(c),f=r.getElementBoxParams(i,p),_="border-box"===p.boxSizing;n?l-=_?0:f.border+f.padding:s?l+=_?f.border:-f.padding:_&&(l+=f.border+f.padding)}return l+=a.isNumeric(l)?"px":"",o.setStyle(c,i,l),this}}}),d.prototype.html=function(t){return arguments.length?(this.empty(),"string"==typeof t&&!l.isTablePart(t)||"number"==typeof t?(this[0].innerHTML=t,this):this.append(l.parseHTML(t))):this[0].innerHTML};var f=function(t,e){if(this[0]&&t){"string"==typeof t?t=l.parseHTML(t):t.nodeType?t=[t]:a.isNumeric(t)&&(t=[o.createElement("#text",t)]);for(var i=0;i<t.length;i++){var n=t[i],s=this[0],r="TABLE"===s.tagName&&"TR"===n.tagName;r&&s.tBodies.length&&(s=s.tBodies[0]),o.insertElement(s,n.nodeType?n:n[0],e)}}},_=["fillOpacity","columnCount","flexGrow","flexShrink","fontWeight","lineHeight","opacity","zIndex","zoom"],m=function(t,e){if(this[0]&&this[0].style){t=s.styleProp(t);for(var i=0;i<this.length;i++)a.isNumeric(e)&&_.indexOf(t)===-1&&(e+="px"),this[i].style[t]=e}};d.prototype.css=function(t,e){if(a.isString(t)){if(2!==arguments.length){if(!this[0])return;t=s.styleProp(t);var i=window.getComputedStyle(this[0])[t]||this[0].style[t];return a.isNumeric(i)?i.toString():i}m.call(this,t,e)}else if(a.isPlainObject(t))for(var n in t)m.call(this,n,t[n]);return this},d.prototype.prepend=function(t){if(arguments.length>1){for(var e=0;e<arguments.length;e++)this.prepend(arguments[e]);return this}return f.apply(this,[t,this[0].firstChild]),this},d.prototype.append=function(t){if(arguments.length>1){for(var e=0;e<arguments.length;e++)this.append(arguments[e]);return this}return f.apply(this,[t]),this},d.prototype.prependTo=function(t){return t=h(t),t[0]&&o.insertElement(t[0],this[0],t[0].firstChild),this},d.prototype.appendTo=function(t){return this.length>1?u.call(this,"appendTo",arguments):(o.insertElement(h(t)[0],this[0]),this)},d.prototype.insertBefore=function(t){return t&&t[0]&&o.insertElement(t[0].parentNode,this[0],t[0]),this},d.prototype.insertAfter=function(t){return t&&t[0]&&o.insertElement(t[0].parentNode,this[0],t[0].nextSibling),this},d.prototype.before=function(t){return this[0]&&o.insertElement(this[0].parentNode,t[0],this[0]),this},d.prototype.after=function(t){return this[0]&&o.insertElement(this[0].parentNode,t[0],this[0].nextSibling),this},d.prototype.wrap=function(t){if(this[0]){var e=h(t);e.insertBefore(this),e.append(this)}return this},d.prototype.wrapInner=function(t){var e=this.contents();return e.length?e.wrap(t):this.append(t),this},d.prototype.replaceWith=function(t){if(t&&t[0])return t.insertBefore(this),this.remove(),t},d.prototype.remove=function(){return this.length>1?u.call(this,"remove",arguments):(n.cleanDataRecursive(this[0],!0),o.removeElement(this[0]),this)},d.prototype.detach=function(){return this.length>1?u.call(this,"detach",arguments):(o.removeElement(this[0]),this)},d.prototype.empty=function(){return this.length>1?u.call(this,"empty",arguments):(n.cleanDataRecursive(this[0]),o.setText(this[0],""),this)},d.prototype.clone=function(){for(var t=[],e=0;e<this.length;e++)t.push(this[e].cloneNode(!0));return h(t)},d.prototype.text=function(t){if(!arguments.length){for(var e="",i=0;i<this.length;i++)e+=this[i]&&this[i].textContent||"";return e}var s=a.isFunction(t)?t():t;return n.cleanDataRecursive(this[0],!1),o.setText(this[0],a.isDefined(s)?s:""),this},d.prototype.val=function(t){return 1===arguments.length?this.prop("value",a.isDefined(t)?t:""):this.prop("value")},d.prototype.contents=function(){return h(this[0]?this[0].childNodes:[])},d.prototype.find=function(t){var e=h();if(!t)return e;var i,n=[];if("string"==typeof t)for(t=t.trim(),i=0;i<this.length;i++){var o=this[i];if(o.nodeType===Node.ELEMENT_NODE){var a=o.getAttribute("id"),s=a||"dx-query-children";a||p(o,"id",s),s="[id='"+s+"'] ";var r=s+t.replace(/([^\\])(\,)/g,"$1, "+s);n.push.apply(n,o.querySelectorAll(r)),p(o,"id",a)}else o.nodeType===Node.DOCUMENT_NODE&&n.push.apply(n,o.querySelectorAll(t))}else for(i=0;i<this.length;i++)t=t.nodeType?t:t[0],this[i]!==t&&this[i].contains(t)&&n.push(t);return e.add(n)};var g=function(t,e){return!e.nodeType||!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)};d.prototype.filter=function(t){if(!t)return h();if(":visible"===t)return this.filter(g);if(":hidden"===t)return this.filter(function(t,e){return!g(t,e)});for(var e=[],i=0;i<this.length;i++){var n=this[i];if(n.nodeType===Node.ELEMENT_NODE&&"string"===a.type(t))c(n,t)&&e.push(n);else if(t.nodeType||a.isWindow(t))t===n&&e.push(n);else if(a.isFunction(t))t.call(n,i,n)&&e.push(n);else for(var o=0;o<t.length;o++)t[o]===n&&e.push(n)}return h(e)},d.prototype.not=function(t){for(var e=[],i=this.filter(t).toArray(),n=0;n<this.length;n++)i.indexOf(this[n])===-1&&e.push(this[n]);return h(e)},d.prototype.is=function(t){return!!this.filter(t).length},d.prototype.children=function(t){for(var e=[],i=0;i<this.length;i++)for(var n=this[i]?this[i].childNodes:[],o=0;o<n.length;o++)n[o].nodeType===Node.ELEMENT_NODE&&e.push(n[o]);return e=h(e),t?e.filter(t):e},d.prototype.siblings=function(){var t=this[0];if(!t||!t.parentNode)return h();for(var e=[],i=t.parentNode.childNodes||[],n=0;n<i.length;n++){var o=i[n];o.nodeType===Node.ELEMENT_NODE&&o!==t&&e.push(o)}return h(e)},d.prototype.each=function(t){for(var e=0;e<this.length&&t.call(this[e],e,this[e])!==!1;e++);},d.prototype.index=function(t){return t?(t=h(t),this.toArray().indexOf(t[0])):this.parent().children().index(this)},d.prototype.get=function(t){return this[t<0?this.length+t:t]},d.prototype.eq=function(t){return t=t<0?this.length+t:t,h(this[t])},d.prototype.first=function(){return this.eq(0)},d.prototype.last=function(){return this.eq(-1)},d.prototype.parent=function(t){if(!this[0])return h();var e=h(this[0].parentNode);return!t||e.is(t)?e:h()},d.prototype.parents=function(t){for(var e=[],i=this.parent();i&&i[0]&&i[0].nodeType!==Node.DOCUMENT_NODE;)i[0].nodeType===Node.ELEMENT_NODE&&(!t||t&&i.is(t))&&e.push(i.get(0)),i=i.parent();return h(e)},d.prototype.closest=function(t){if(this.is(t))return this;for(var e=this.parent();e&&e.length;){if(e.is(t))return e;e=e.parent()}return h()},d.prototype.next=function(t){if(!this[0])return h();var e=h(this[0].nextSibling);if(!arguments.length)return e;for(;e&&e.length;){if(e.is(t))return e;e=e.next()}return h()},d.prototype.prev=function(){return this[0]?h(this[0].previousSibling):h()},d.prototype.add=function(t){for(var e=h(t),i=this.toArray(),n=0;n<e.length;n++){var o=e[n];i.indexOf(o)===-1&&i.push(o)}return h(i)};var v=[];d.prototype.splice=function(){return h(v.splice.apply(this,arguments))},d.prototype.slice=function(){return h(v.slice.apply(this,arguments))},d.prototype.toArray=function(){return v.slice.call(this)};var b=function(t){return a.isWindow(t)?t:t.defaultView};d.prototype.offset=function(){if(this[0]){if(!this[0].getClientRects().length)return{top:0,left:0};var t=this[0].getBoundingClientRect(),e=b(this[0].ownerDocument),i=this[0].ownerDocument.documentElement;return{top:t.top+e.pageYOffset-i.clientTop,left:t.left+e.pageXOffset-i.clientLeft}}},d.prototype.offsetParent=function(){if(!this[0])return h();for(var t=h(this[0].offsetParent);t[0]&&"static"===t.css("position");)t=h(t[0].offsetParent);return t=t[0]?t:h(document.documentElement)},d.prototype.position=function(){if(this[0]){var t,e=parseFloat(this.css("marginTop")),i=parseFloat(this.css("marginLeft"));if("fixed"===this.css("position"))return t=this[0].getBoundingClientRect(),{top:t.top-e,left:t.left-i};t=this.offset();var n=this.offsetParent(),o={top:0,left:0};return"HTML"!==n[0].nodeName&&(o=n.offset()),o={top:o.top+parseFloat(n.css("borderTopWidth")),
|
|
10
10
|
left:o.left+parseFloat(n.css("borderLeftWidth"))},{top:t.top-o.top-e,left:t.left-o.left-i}}},[{name:"scrollLeft",offsetProp:"pageXOffset",scrollWindow:function(t,e){t.scrollTo(e,t.pageYOffset)}},{name:"scrollTop",offsetProp:"pageYOffset",scrollWindow:function(t,e){t.scrollTo(t.pageXOffset,e)}}].forEach(function(t){var e=t.name;d.prototype[e]=function(i){if(this[0]){var n=b(this[0]);return void 0===i?n?n[t.offsetProp]:this[0][e]:(n?t.scrollWindow(n,i):this[0][e]=i,this)}}}),d.prototype.data=function(t,e){if(this[0])return arguments.length<2?n.data.call(h,this[0],t):(n.data.call(h,this[0],t,e),this)},d.prototype.removeData=function(t){return this[0]&&n.removeData(this[0],t),this};var y=function(){return h.apply(this,arguments)};Object.defineProperty(y,"fn",{enumerable:!0,configurable:!0,get:function(){return h.fn},set:function(t){h.fn=t}}),t.exports={set:function(t){h=t},get:function(){return y}}},function(t,e,i){var n,o=i(24),a=i(30),s=i(32),r=new o,l=new s,c=function(){},h=function(){},d=e.setDataStrategy=function(t){l.fire(t),n=t;var e=n.cleanData;n.cleanData=function(t){c(t);var i=e.call(this,t);return h(t),i}};d({data:function(){var t=arguments[0],e=arguments[1],i=arguments[2];if(t){var n=r.get(t);return n||(n={},r.set(t,n)),void 0===e?n:2===arguments.length?n[e]:(n[e]=i,i)}},removeData:function(t,e){if(t)if(void 0===e)r.delete(t);else{var i=r.get(t);i&&delete i[e]}},cleanData:function(t){for(var e=0;e<t.length;e++)a.off(t[e]),r.delete(t[e])}}),e.setDataStrategy=d,e.getDataStrategy=function(){return n},e.data=function(){return n.data.apply(this,arguments)},e.strategyChanging=l,e.beforeCleanData=function(t){c=t},e.afterCleanData=function(t){h=t},e.cleanData=function(t){return n.cleanData.call(this,t)},e.removeData=function(t,e){return n.removeData.call(this,t,e)},e.cleanDataRecursive=function(t,e){if(t instanceof Element){var i=t.getElementsByTagName("*");n.cleanData(i),e&&n.cleanData([t])}}},function(t,e,i){var n=i(25).inArray,o=window.WeakMap;o||(o=function(){var t=[],e=[];this.set=function(i,o){var a=n(i,t);a===-1?(t.push(i),e.push(o)):e[a]=o},this.get=function(i){var o=n(i,t);if(o!==-1)return e[o]},this.has=function(e){var i=n(e,t);return i!==-1},this.delete=function(i){var o=n(i,t);o!==-1&&(t.splice(o,1),e.splice(o,1))}}),t.exports=o},function(t,e,i){var n=i(10).isDefined,o=i(17).each,a=i(26),s=function(t){return Array.isArray(t)&&!t.length},r=function(t){return Array.isArray(t)?t:[t]},l=function(t,e){if(!Array.isArray(t)||0===t.length||!Array.isArray(e)||0===e.length)return[];var i=[];return o(t,function(t,n){var o=d(n,e);o!==-1&&i.push(n)}),i},c=function(t,e){if(!Array.isArray(t)||0===t.length)return[];if(!Array.isArray(e)||0===e.length)return t.slice();var i=[];return o(t,function(t,n){var o=d(n,e);o===-1&&i.push(n)}),i},h=function(t,e,i,s){var r={},l=0;return o(t,function(t,o){t=o[e],n(t)&&(r[t]=r[t]||[],o===i?r[t].unshift(o):r[t].push(o),delete o[e])}),a.orderEach(r,function(t,i){o(i,function(){t>=0&&(this[e]=l++)})}),o(t,function(){n(this[e])||s&&!s(this)||(this[e]=l++)}),l},d=function(t,e){if(!e)return-1;var i=Array.isArray(e)?e:e.toArray();return i.indexOf(t)},u=function(t,e){for(var i=0;i<e.length;i++)t[t.length]=e[i];return t};e.isEmpty=s,e.wrapToArray=r,e.intersection=l,e.removeDuplicates=c,e.normalizeIndexes=h,e.inArray=d,e.merge=u},function(t,e,i){var n=i(10),o=i(27),a=function(){function t(){}return function(e){return t.prototype=e,new t}}(),s=function(t,e){var i,o,a=[];for(i in t)t.hasOwnProperty(i)&&a.push(i);for(a.sort(function(t,e){var i=n.isNumeric(t),o=n.isNumeric(e);return i&&o?t-e:i&&!o?-1:!i&&o?1:t<e?-1:t>e?1:0}),o=0;o<a.length;o++)i=a[o],e(i,t[i])},r=function(t,e,i,n){!n&&o.isWrapped(t[e])?o.assign(t[e],i):t[e]=i},l=function(t,e,i,o){var a,s;for(var c in e)if(a=t[c],s=e[c],"__proto__"!==c&&t!==s){if(n.isPlainObject(s)){var h=i?n.isObject(a):n.isPlainObject(a);s=l(h?a:{},s,i,o)}void 0!==s&&r(t,c,s,o)}return t};e.clone=a,e.orderEach=s,e.deepExtendArraySafe=l},function(t,e,i){var n=i(11).logger,o=i(28);t.exports=o({isWrapped:function(){return!1},isWritableWrapped:function(){return!1},wrap:function(t){return t},unwrap:function(t){return t},assign:function(){n.error("Method 'assign' should not be used for not wrapped variables. Use 'isWrapped' method for ensuring.")}})},function(t,e,i){t.exports=function(t){var e=i(9).extend,n=i(10).isFunction,o=i(17).each,a=i(29),s=a.inherit(t),r=s,l=new r(t),c={},h=function(e,i){o(e,function(e){n(l[e])?!i&&t[e]||(t[e]=function(){return l[e].apply(t,arguments)}):(i&&(c[e]=t[e]),t[e]=l[e])})};return h(t,!0),t.inject=function(t){r=r.inherit(t),l=new r,h(t)},t.resetInjection=function(){e(t,c),r=s,l=new s},t}},function(t,e,i){var n=i(7),o=function(t,e,i){return function(){var n=this.callBase;this.callBase=t[e];try{return i.apply(this,arguments)}finally{this.callBase=n}}},a=function(t){var e=function(){};return e.prototype=t.prototype,new e},s=function(t){var e,i,n,a=this;if(!t)return a;for(i in t)n=t[i],e="function"==typeof a.prototype[i]&&"function"==typeof n,a.prototype[i]=e?o(a.parent.prototype,i,n):n;return a},r=function(){var t,e,i,n=this;for(i=0;i<arguments.length;i++){t=arguments[i],t.ctor&&n._includedCtors.push(t.ctor),t.postCtor&&n._includedPostCtors.push(t.postCtor);for(e in t)"ctor"!==e&&"postCtor"!==e&&(n.prototype[e]=t[e])}return n},l=function(t){return this.parent===t||!(!this.parent||!this.parent.subclassOf)&&this.parent.subclassOf(t)},c=function(){throw n.Error("E0001")},h=function(){var t=Object.prototype.hasOwnProperty;return function(e,i){for(var n in e){if(!t.call(e,n))return;i[n]=e[n]}}}(),d=function(){};d.inherit=function(t){var e=function(){if(!this||this===window||"function"!=typeof this.constructor)throw n.Error("E0003");var t,e=this,i=e.ctor,o=e.constructor._includedCtors,a=e.constructor._includedPostCtors;for(t=0;t<o.length;t++)o[t].call(e);for(i&&i.apply(e,arguments),t=0;t<a.length;t++)a[t].call(e)};return e.prototype=a(this),h(this,e),e.inherit=this.inherit,e.abstract=c,e.redefine=s,e.include=r,e.subclassOf=l,e.parent=this,e._includedCtors=this._includedCtors?this._includedCtors.slice(0):[],e._includedPostCtors=this._includedPostCtors?this._includedPostCtors.slice(0):[],e.prototype.constructor=e,e.redefine(t),e},d.abstract=c,t.exports=d},function(t,e,i){var n,o=i(31),a=i(9).extend,s=i(28),r=i(10),l=i(16),c=r.isWindow,h=r.isFunction,d=i(33),u=i(24),p=i(34),f="dxEmptyEventType",_={mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},m={focusin:"focus",focusout:"blur"},g=["blur","focusout","focus","focusin","load"],v=["touchmove","wheel","mousewheel"],b=function(t,e){return!c(t)&&"#document"!==t.nodeName&&d(t,e)},y=new u,C=0,x=function(){var t={};return o.add(function(e,i){t[e]=i}),{getField:function(e,i){return t[e]&&t[e][i]},callMethod:function(e,i,n,o){return t[e]&&t[e][i]&&t[e][i].apply(n,o)}}}(),w=function(t,e){var i=t[0];if(i)if(i.nodeType||c(i))e.apply($,t);else if(i.each){var n=Array.prototype.slice.call(t,0);i.each(function(){n[0]=this,w(n,e)})}},S=function(t){return function(){w(arguments,t)}},I=function(t,e){var i=y.get(t);e=e||"";var o=e.split("."),a=o.slice(1),s=!!o[0];e=o[0]||f,i||(i={},y.set(t,i)),i[e]||(i[e]={handleObjects:[],nativeHandler:null});var r=i[e];return{addHandler:function(i,o,l){var c=function(n,o){var a,s,r=[n],c=n.currentTarget,h=n.relatedTarget;e in _&&(a=h&&c&&(h===c||c.contains(h))),void 0!==o&&r.push(o),x.callMethod(e,"handle",t,[n,l]),a||(s=i.apply(c,r)),s===!1&&(n.preventDefault(),n.stopPropagation())},h=function(e,i){if(!n||e.type!==n)if(e.data=l,e.delegateTarget=t,o)for(var a=e.target;a&&a!==t;)b(a,o)&&(e.currentTarget=a,c(e,i)),a=a.parentNode;else c(e,i)},d={handler:i,wrappedHandler:h,selector:o,type:e,data:l,namespace:a.join("."),namespaces:a,guid:++C};r.handleObjects.push(d);var u,p=1===r.handleObjects.length,f=p&&s;f&&(f=!x.callMethod(e,"setup",t,[l,a,i])),f&&(r.nativeHandler=T(e),v.indexOf(e)>-1&&(u={passive:!1}),t.addEventListener(_[e]||e,r.nativeHandler,u)),x.callMethod(e,"add",t,[d])},removeHandler:function(n,o){var r=function(e){var s=i[e];if(!s.handleObjects.length)return void delete i[e];var r;s.handleObjects=s.handleObjects.filter(function(i){var s=a.length&&!E(i.namespaces,a)||n&&i.handler!==n||o&&i.selector!==o;return s||(r=i.handler,x.callMethod(e,"remove",t,[i])),s});var l=!s.handleObjects.length,c=l&&e!==f;c&&(x.callMethod(e,"teardown",t,[a,r]),s.nativeHandler&&t.removeEventListener(e,s.nativeHandler),delete i[e])};if(s)r(e);else for(var l in i)r(l);var c=0===Object.keys(i).length;c&&y.delete(t)},callHandlers:function(t,e){var n=!1,o=function(i){n||a.length&&!E(i.namespaces,a)||(i.wrappedHandler(t,e),n=t.isImmediatePropagationStopped())};r.handleObjects.forEach(o),a.length&&i[f]&&i[f].handleObjects.forEach(o)}}},T=function(t){return function(e,i){var n=I(this,t);e=$.Event(e),n.callHandlers(e,i)}},E=function(t,e){for(var i=0;i<e.length;i++)if(t.indexOf(e[i])<0)return!1;return!0},D=function(t){return function(e,i,n,o,a){a||(a=o,o=void 0),"string"!=typeof n&&(o=n,n=void 0),a||"string"!=typeof i||(a=o||n,n=void 0,o=void 0),t(e,i,n,o,a)}},k=function(t){return function(e,i,n,o){"function"==typeof n&&(o=n,n=void 0),t(e,i,n,o)}},B=function(t){return function(e,i,n){"string"==typeof i&&(i={type:i}),i.target||(i.target=e),i.currentTarget=e,i.delegateTarget||(i.delegateTarget=e),!i.type&&i.originalEvent&&(i.type=i.originalEvent.type),t(e,i instanceof $.Event?i:$.Event(i),n)}},A=function(t){return function(e,i){return this instanceof $.Event?(e||(e={}),"string"==typeof e&&(e={type:e}),i||(i={}),void t.call(this,e,i)):new $.Event(e,i)}},M=function(t){var e=function(e,i){if(i&&i.indexOf(" ")>-1){var n=Array.prototype.slice.call(arguments,0);i.split(" ").forEach(function(e){n[1]=e,t.apply(this,n)})}else t.apply(this,arguments)};return function(t,i){if("object"==typeof i){var n=Array.prototype.slice.call(arguments,0);for(var o in i)n[1]=o,n[n.length-1]=i[o],e.apply(this,n)}else e.apply(this,arguments)}},O=function(t,e){var i=m[t]||t,o=function(t,e){return"click"===t&&"a"===e.localName};o(t,e)||h(e[i])&&(n=t,e[i](),n=void 0)},P=function(t){var e=function(t){var e=/^(?:mouse|pointer|contextmenu|drag|drop)|click/;return!t.which&&void 0!==t.button&&e.test(t.type)},i=function(t){return null==t.which&&0===t.type.indexOf("key")};if(i(t))return null!=t.charCode?t.charCode:t.keyCode;if(e(t)){var n={1:1,2:3,3:1,4:2};return n[t.button]}return t.which},$=s({on:S(D(M(function(t,e,i,n,o){var a=I(t,e);a.addHandler(o,i,n)}))),one:S(D(function(t,e,i,n,o){var a=function(){$.off(t,e,i,a),o.apply(this,arguments)};$.on(t,e,i,n,a)})),off:S(k(M(function(t,e,i,n){var o=I(t,e);o.removeHandler(n,i)}))),trigger:S(B(function(t,e,i){var n=e.type,o=I(t,e.type);x.callMethod(n,"trigger",t,[e,i]),o.callHandlers(e,i);var s=x.getField(n,"noBubble")||e.isPropagationStopped()||g.indexOf(n)!==-1;if(!s){var r=[],l=function(t){var e=t.parentNode;e&&(r.push(e),l(e))};l(t),r.push(window);for(var h=0;r[h]&&!e.isPropagationStopped();){var d=I(r[h],e.type);d.callHandlers(a(e,{currentTarget:r[h]}),i),h++}}(t.nodeType||c(t))&&(x.callMethod(n,"_default",t,[e,i]),O(n,t))})),triggerHandler:S(B(function(t,e,i){var n=I(t,e.type);n.callHandlers(e,i)}))}),H=function(t){t&&($.Event=t,$.Event.prototype=t.prototype)};H(A(function(t,e){var i=this,n=!1,o=!1,s=!1;a(i,t),(t instanceof $.Event||t instanceof Event)&&(i.originalEvent=t,i.currentTarget=void 0),t instanceof $.Event||a(i,{isPropagationStopped:function(){return!!(n||i.originalEvent&&i.originalEvent.propagationStopped)},stopPropagation:function(){n=!0,i.originalEvent&&i.originalEvent.stopPropagation()},isImmediatePropagationStopped:function(){return o},stopImmediatePropagation:function(){this.stopPropagation(),o=!0,i.originalEvent&&i.originalEvent.stopImmediatePropagation()},isDefaultPrevented:function(){return!!(s||i.originalEvent&&i.originalEvent.defaultPrevented)},preventDefault:function(){s=!0,i.originalEvent&&i.originalEvent.preventDefault()}}),V("which",P,i),0===t.type.indexOf("touch")&&(delete e.pageX,delete e.pageY),a(i,e),i.guid=++C}));var V=function(t,e,i){Object.defineProperty(i||$.Event.prototype,t,{enumerable:!0,configurable:!0,get:function(){return this.originalEvent&&e(this.originalEvent)},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})};p(V);var R=l(),F=l();$.set=function(t){R.fire(),$.inject(t),H(t.Event),F.fire()},$.subscribeGlobal=function(){w(arguments,D(function(){var t=arguments;$.on.apply(this,t),R.add(function(){var e=Array.prototype.slice.call(t,0);e.splice(3,1),$.off.apply(this,e)}),F.add(function(){$.on.apply(this,t)})}))},$.forcePassiveFalseEventNames=v,t.exports=$},function(t,e,i){var n=i(32);t.exports=new n},function(t,e,i){var n=i(17).each,o=i(16),a=function(){var t=[],e=o();this.add=function(i){n(t,function(t,e){i.apply(i,e)}),e.add(i)},this.remove=function(t){e.remove(t)},this.fire=function(){t.push(arguments),e.fire.apply(e,arguments)}};t.exports=a},function(t,e){var i=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(t){for(var e=(this.document||this.ownerDocument).querySelectorAll(t),i=0;i<e.length;i++)if(e[i]===this)return!0};t.exports=function(t,e){return i.call(t,e)}},function(t,e){var i=["pageX","pageY","screenX","screenY","clientX","clientY"],n=function(t,e){if(e[t]&&!e.touches||!e.touches)return e[t];var i=e.touches.length?e.touches:e.changedTouches;if(i.length)return i[0][t]};t.exports=function(t){i.forEach(function(e){t(e,function(t){return n(e,t)})},this)}},function(t,e){t.exports={createElement:function(t,e,i){return i=i||document,"#text"===t?i.createTextNode(e):i.createElement("string"==typeof t?t:"div")},removeElement:function(t){var e=t&&t.parentNode;e&&e.removeChild(t)},insertElement:function(t,e,i){t&&e&&t!==e&&(i?t.insertBefore(e,i):t.appendChild(e))},setAttribute:function(t,e,i){t.setAttribute(e,i)},removeAttribute:function(t,e){t.removeAttribute(e)},setProperty:function(t,e,i){t[e]=i},setEvent:function(t,e,i){t.addEventListener(e,i)},setText:function(t,e){t&&(t.textContent=e)},setClass:function(t,e,i){if(1===t.nodeType&&e)if(t.classList)i?t.classList.add(e):t.classList.remove(e);else{var n=t.className.split(" "),o=n.indexOf(e);i&&o<0&&(t.className=t.className?t.className+" "+e:e),!i&&o>=0&&(n.splice(o,1),t.className=n.join(" "))}},setStyle:function(t,e,i){t.style[e]=i||""}}},function(t,e,i){var n=i(37).camelize,o=["","Webkit","Moz","O","Ms"],a={"":"",Webkit:"-webkit-",Moz:"-moz-",O:"-o-",ms:"-ms-"},s=document.createElement("dx").style,r=function(t,e){t=n(t,!0);for(var i,a=0,s=o.length;a<s;a++){var r=o[a],l=r+t,c=n(l);if(i=e(c,r),void 0===i&&(i=e(l,r)),void 0!==i)break}return i},l=function(t){if(t in s)return t;t=t.charAt(0).toUpperCase()+t.substr(1);for(var e=1;e<o.length;e++){var i=o[e].toLowerCase()+t;if(i in s)return i}},c=function(t){return r(t,function(t,e){if(t in s)return a[e]})};e.styleProp=l,e.stylePropPrefix=c},function(t,e,i){var n=i(17).map,o=function(t){return void 0===t||null===t?"":String(t)},a=function(t){return o(t).charAt(0).toUpperCase()+t.substr(1)},s=function(t){return o(t).replace(/([a-z\d])([A-Z])/g,"$1 $2").split(/[\s_-]+/)},r=function(t){return n(s(t),function(t){return t.toLowerCase()}).join("-")},l=function(t){return r(t).replace(/-/g,"_")},c=function(t,e){return n(s(t),function(t,i){return t=t.toLowerCase(),(e||i>0)&&(t=a(t)),t}).join("")},h=function(t){return a(r(t).replace(/-/g," "))},d=function(t){return n(s(t),function(t){return a(t.toLowerCase())}).join(" ")},u=["0","1","2","3","4","5","6","7","8","9"],p=function(t){var e,i,n=[],o=!1,a=!1;for(e=0;e<t.length;e++)i=t.charAt(e),a=i===i.toUpperCase()&&"-"!==i&&")"!==i||i in u,"_"===i||"."===i?(i=" ",a=!0):0===e?(i=i.toUpperCase(),a=!0):!o&&a&&n.length>0&&n.push(" "),n.push(i),o=a;return n.join("")};e.dasherize=r,e.camelize=c,e.humanize=h,e.titleize=d,e.underscore=l,e.captionize=p},function(t,e){var i=function(t,e){var i=0;return e.forEach(function(e){i+=parseFloat(t[e])||0}),i},n=function(t,e){var n="width"===t?"Left":"Top",o="width"===t?"Right":"Bottom";return{padding:i(e,["padding"+n,"padding"+o]),border:i(e,["border"+n+"Width","border"+o+"Width"]),margin:i(e,["margin"+n,"margin"+o])}},o=function(t,e,i){var n=e[t];return"border-box"===e.boxSizing&&n.length&&"%"!==n[n.length-1]?i.border+i.padding:0},a=function(t,e,i){var a=window.getComputedStyle(t),s=n(e,a),r=t.getClientRects().length,l=t.getBoundingClientRect()[e],c=r?l:0;return c<=0?(c=parseFloat(a[e]||t.style[e])||0,c-=o(e,a,s)):c-=s.padding+s.border,i.paddings&&(c+=s.padding),i.borders&&(c+=s.border),i.margins&&(c+=s.margin),c};e.getSize=a,e.getElementBoxParams=n},function(t,e,i){var n=i(25).merge,o=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,a={"default":{tagsCount:0,startTags:"",endTags:""},thead:{tagsCount:1,startTags:"<table>",endTags:"</table>"},td:{tagsCount:3,startTags:"<table><tbody><tr>",endTags:"</tr></tbody></table>"},col:{tagsCount:2,startTags:"<table><colgroup>",endTags:"</colgroup></table>"},tr:{tagsCount:2,startTags:"<table><tbody>",endTags:"</tbody></table>"}};a.tbody=a.colgroup=a.caption=a.tfoot=a.thead,a.th=a.td;var s=function(t){if("string"!=typeof t)return null;var e=document.createDocumentFragment(),i=e.appendChild(document.createElement("div")),s=o.exec(t),r=s&&s[1].toLowerCase(),l=a[r]||a.default;i.innerHTML=l.startTags+t+l.endTags;for(var c=0;c<l.tagsCount;c++)i=i.lastChild;return n([],i.childNodes)},r=function(t){var e=o.exec(t);return e&&e[1]in a};e.parseHTML=s,e.isTablePart=r},function(t,e,i){var n=i(8),o=i(7);t.exports=n(o.ERROR_MESSAGES,{E1001:"Module '{0}'. Controller '{1}' is already registered",E1002:"Module '{0}'. Controller '{1}' does not inherit from DevExpress.ui.dxDataGrid.Controller",E1003:"Module '{0}'. View '{1}' is already registered",E1004:"Module '{0}'. View '{1}' does not inherit from DevExpress.ui.dxDataGrid.View",E1005:"Public method '{0}' is already registered",E1006:"Public method '{0}.{1}' does not exist",E1007:"State storing cannot be provided due to the restrictions of the browser",E1010:"The template does not contain the TextBox widget",E1011:'Items cannot be deleted from the List. Implement the "remove" function in the data store',E1012:"Editing type '{0}' with the name '{1}' is unsupported",E1016:"Unexpected type of data source is provided for a lookup column",E1018:"The 'collapseAll' method cannot be called if you use a remote data source",E1019:"Search mode '{0}' is unavailable",E1020:"The type cannot be changed after initialization",E1021:"{0} '{1}' you are trying to remove does not exist",E1022:'The "markers" option is given an invalid value. Assign an array instead',E1023:'The "routes" option is given an invalid value. Assign an array instead',E1025:"This layout is too complex to render",E1026:'The "calculateCustomSummary" function is missing from a field whose "summaryType" option is set to "custom"',E1030:"Unknown ScrollView refresh strategy: '{0}'",E1031:"Unknown subscription in the Scheduler widget: '{0}'",E1032:"Unknown start date in an appointment: '{0}'",E1033:"Unknown step in the date navigator: '{0}'",E1034:"The browser does not implement an API for saving files",E1035:"The editor cannot be created because of an internal error: {0}",E1036:"Validation rules are not defined for any form item",E1037:"Invalid structure of grouped data",E1038:"The browser does not support local storages for local web pages",E1039:"A cell's position cannot be calculated",E1040:"The '{0}' key value is not unique within the data array",E1041:"The JSZip script is referenced after the DevExtreme scripts or not referenced at all",E1042:'Deferred selection cannot be performed. Set the "key" field for the data store',E1043:"Changes cannot be processed due to the incorrectly set key",E1044:"The key field specified by the keyExpr option does not match the key field specified in the data store",E1045:"Editing requires the key field to be specified in the data store",E1046:"The '{0}' key field is not found in data objects",E1047:'The "{0}" field is not found in the fields array',E1048:'The "{0}" operation is not found in the filterOperations array',W1001:'The "key" option cannot be modified after initialization',W1002:"An item with the key '{0}' does not exist",W1003:"A group with the key '{0}' in which you are trying to select items does not exist",W1004:"The item '{0}' you are trying to select in the group '{1}' does not exist",W1005:"Due to column data types being unspecified, data has been loaded twice in order to apply initial filter settings. To resolve this issue, specify data types for all grid columns.",W1006:"The map service returned the '{0}' error",W1007:"No item with key {0} was found in the data source, but this key was used as the parent key for item {1}",W1008:"Cannot scroll to the '{0}' date because it does not exist on the current view",W1009:"Searching works only if data is specified using the dataSource option",W1010:"The capability to select all items works with source data of plain structure only",W1011:'The "keyExpr" option is not applied when dataSource is not an array',W1012:"The '{0}' key field is not found in data objects"})},function(t,e,i){var n=i(9).extend,o=/(webkit)[ \/]([\w.]+)/,a=/(msie) (\d{1,2}\.\d)/,s=/(trident).*rv:(\d{1,2}\.\d)/,r=/(edge)\/((\d+)?[\w\.]+)/,l=/(safari)/i,c=/(mozilla)(?:.*? rv:([\w.]+))/,h=function(t){t=t.toLowerCase();var e={},i=a.exec(t)||s.exec(t)||r.exec(t)||t.indexOf("compatible")<0&&c.exec(t)||o.exec(t)||[],n=i[1],h=i[2];return"webkit"===n&&t.indexOf("chrome")<0&&l.exec(t)&&(n="safari",e.webkit=!0,h=/Version\/([0-9.]+)/i.exec(t),h=h&&h[1]),"trident"!==n&&"edge"!==n||(n="msie"),n&&(e[n]=!0,e.version=h),e};t.exports=n({_fromUA:h},h(navigator.userAgent))},function(t,e,i){var n=i(29),o=i(10),a=i(9).extend,s=i(25).inArray,r=i(40),l=i(12),c=i(43),h=i(20),d=i(44),u='<?xml version="1.0" encoding="utf-8"?>',p='<sheetPr><outlinePr summaryBelow="0"/></sheetPr>',f="<sheetPr/>",_='<fonts count="2"><font><sz val="11"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font><font><b/><sz val="11"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts><fills count="1"><fill><patternFill patternType="none"/></fill></fills><borders count="1"><border><left style="thin"><color rgb="FFD3D3D3"/></left><right style="thin"><color rgb="FFD3D3D3"/></right><top style="thin"><color rgb="FFD3D3D3"/></top><bottom style="thin"><color rgb="FFD3D3D3"/></bottom></border></borders><cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',m="http://schemas.openxmlformats.org",g="rels",v="xl",b="workbook.xml",y="[Content_Types].xml",C="sharedStrings.xml",x="styles.xml",w="worksheets",S="sheet1.xml",I={"boolean":"b",date:"d",number:"n",string:"s"},T=Date.UTC(1899,11,30),E=60,D=4,k=7,B=165;e.ExcelCreator=n.inherit({_getXMLTag:function(t,e,i){var n,a,s="<"+t,r=e.length;for(n=0;n<r;n++)a=e[n],s=s+" "+a.name+'="'+a.value+'"';return o.isDefined(i)?s+">"+i+"</"+t+">":s+" />"},_getCellIndex:function(t,e){var i,n="",o=26;for(this._maxIndex[0]<Number(t)&&(this._maxIndex[0]=Number(t)),this._maxIndex[1]<Number(e)&&(this._maxIndex[1]=Number(e));;){if(i=65+(e>=o?e%o:Math.ceil(e)),n=String.fromCharCode(i)+n,!(e>=o))break;e=Math.floor(e/o)-1}return n+t},_getDataType:function(t){return I[t]||"s"},_formatObjectConverter:function(t,e,i){var n={format:t,precision:e,dataType:i};return o.isObject(t)?a(n,t,{format:t.formatter||t.type,currency:t.currency}):n},_appendFormat:function(t,e,i){var n,o=this._formatObjectConverter(t,e,i);if(t=o.format,e=o.precision,n=o.currency,i=o.dataType,t=d.convertFormat(t,e,i,n))return s(t,this._styleFormat)===-1&&this._styleFormat.push(t),s(t,this._styleFormat)+1},_appendString:function(t){if(o.isDefined(t)&&(t=String(t),t.length))return t=l.encodeHtml(t),void 0===this._stringHash[t]&&(this._stringHash[t]=this._stringArray.length,this._stringArray.push(t)),this._stringHash[t]},_getExcelDateValue:function(t){var e,i;if(o.isDate(t))return e=Math.floor((Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())-T)/864e5),e<E&&e--,i=(3600*t.getHours()+60*t.getMinutes()+t.getSeconds())/86400,e+i},_prepareValue:function(t,e){var i=this._dataProvider,n=i.getCellValue(t,e),a=this._getDataType(i.getCellType(t,e)),s=this._styleArray[this._dataProvider.getStyleId(t,e)].formatID,r=o.isNumeric(s)?this._styleFormat[s-1]:null;switch("d"!==a||o.isDate(n)||(a="s"),a){case"s":n=this._appendString(n);break;case"d":n=this._getExcelDateValue(n,r),a="n"}return{value:n,type:a}},_getDataArray:function(){var t,e,i,n,o,a=this,s=[],r=a._dataProvider,l=r.getRowsCount(),c=r.getColumns();for(t=0;t<l;t++){for(i=[],o=c.length,e=0;e!==o;e++)n=a._prepareValue(t,e),i.push({style:r.getStyleId(t,e),value:n.value,type:n.type});!a._needSheetPr&&r.getGroupLevel(t)>0&&(a._needSheetPr=!0),s.push(i)}return s},_getBoldStyleID:function(t){for(var e=0;e<D-1;e++)if(this._styleArray[e].alignment===t)return e},_calculateWidth:function(t){return t=parseInt(t,10),(!t||t<5)&&(t=100),Math.min(255,Math.floor((t-5)/k*100+.5)/100)},_prepareStyleData:function(){var t=this,e=t._dataProvider.getStyles();t._dataProvider.getColumns().forEach(function(e){t._colsArray.push(t._calculateWidth(e.width))}),e.forEach(function(e){t._styleArray.push({bold:!!e.bold,alignment:e.alignment||"left",formatID:t._appendFormat(e.format,e.precision,e.dataType),wrapText:e.wrapText})})},_prepareCellData:function(){this._cellsArray=this._getDataArray()},_createXMLRelationships:function(t){return this._getXMLTag("Relationships",[{name:"xmlns",value:m+"/package/2006/relationships"}],t)},_createXMLRelationship:function(t,e,i){return this._getXMLTag("Relationship",[{name:"Id",value:"rId"+t},{name:"Type",value:m+"/officeDocument/2006/relationships/"+e},{name:"Target",value:i}])},_getWorkbookContent:function(){var t='<bookViews><workbookView xWindow="0" yWindow="0" windowWidth="0" windowHeight="0"/></bookViews><sheets><sheet name="Sheet" sheetId="1" r:id="rId1" /></sheets><definedNames><definedName name="_xlnm.Print_Titles" localSheetId="0">Sheet!$1:$1</definedName><definedName name="_xlnm._FilterDatabase" hidden="0" localSheetId="0">Sheet!$A$1:$F$6332</definedName></definedNames>';return u+this._getXMLTag("workbook",[{name:"xmlns:r",value:m+"/officeDocument/2006/relationships"},{name:"xmlns",value:m+"/spreadsheetml/2006/main"}],t)},_getContentTypesContent:function(){return u+'<Types xmlns="'+m+'/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" /><Default Extension="xml" ContentType="application/xml" /><Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" /><Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" /><Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml" /><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" /></Types>'},_generateStylesXML:function(){var t,e=this,i=e._zip.folder(v),n=[],a="";for(t=0;t<e._styleFormat.length;t++)e._styleFormat[t]=e._getXMLTag("numFmt",[{name:"numFmtId",value:Number(t)+B},{name:"formatCode",value:e._styleFormat[t]}]);a=a+e._getXMLTag("numFmts",[{name:"count",value:e._styleFormat.length}],e._styleFormat.join(""))+_,this._styleArray.forEach(function(t){n.push(e._getXMLTag("xf",[{name:"xfId",value:0},{name:"applyAlignment",value:1},{name:"fontId",value:Number(!!t.bold)},{name:"applyNumberFormat",value:o.isDefined(t.formatID)?1:0},{name:"numFmtId",value:o.isDefined(t.formatID)?Number(t.formatID)+B-1:0}],e._getXMLTag("alignment",[{name:"vertical",value:"top"},{name:"wrapText",value:Number(!!t.wrapText)},{name:"horizontal",value:t.alignment}])))}),a+=e._getXMLTag("cellXfs",[{name:"count",value:n.length}],n.join("")),a+=e._getXMLTag("cellStyles",[{name:"count",value:1}],e._getXMLTag("cellStyle",[{name:"name",value:"Normal"},{name:"xfId",value:0},{name:"builtinId",value:0}])),a=u+e._getXMLTag("styleSheet",[{name:"xmlns",value:m+"/spreadsheetml/2006/main"}],a),i.file(x,a),e._styleArray=[]},_generateStringsXML:function(){var t,e=this._zip.folder(v),i=this._stringArray.length,n=u;for(t=0;t<i;t++)this._stringArray[t]=this._getXMLTag("si",[],this._getXMLTag("t",[],this._stringArray[t]));n+=this._getXMLTag("sst",[{name:"xmlns",value:m+"/spreadsheetml/2006/main"},{name:"count",value:this._stringArray.length},{name:"uniqueCount",value:this._stringArray.length}],this._stringArray.join("")),e.file(C,n),this._stringArray=[]},_getPaneXML:function(){var t=[{name:"activePane",value:"bottomLeft"},{name:"state",value:"frozen"}],e=this._dataProvider.getFrozenArea();return e.x||e.y?(e.x&&t.push({name:"xSplit",value:e.x}),e.y&&t.push({name:"ySplit",value:e.y}),t.push({name:"topLeftCell",value:this._getCellIndex(e.y+1,e.x)}),this._getXMLTag("pane",t)):""},_getAutoFilterXML:function(t){return this._options.autoFilterEnabled?'<autoFilter ref="A'+this._dataProvider.getHeaderRowCount()+":"+t+'" />':""},_getIgnoredErrorsXML:function(t){return this._options.ignoreErrors?'<ignoredErrors><ignoredError sqref="A1:'+t+'" numberStoredAsText="1" /></ignoredErrors>':""},_generateWorksheetXML:function(){var t,e,i,n,a,s,r=0,l=[],c=this._cellsArray.length,h=this._colsArray.length,d="1:"+h,u=this._dataProvider.getHeaderRowCount?this._dataProvider.getHeaderRowCount():1,_=[['<?xml version="1.0" encoding="UTF-8" standalone="yes"?><worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac">',this._needSheetPr?p:f,'<dimension ref="A1:',this._getCellIndex(this._maxIndex[0],this._maxIndex[1])+'"/><sheetViews><sheetView '+(this._rtlEnabled?'rightToLeft="1" ':"")+'tabSelected="1" workbookViewId="0">'+this._getPaneXML()+'</sheetView></sheetViews><sheetFormatPr defaultRowHeight="15" outlineLevelRow="',this._dataProvider.getRowsCount()>0?this._dataProvider.getGroupLevel(0):0,'" x14ac:dyDescent="0.25"/>'].join("")];for(t=0;t<h;t++)this._colsArray[t]=this._getXMLTag("col",[{name:"width",value:this._colsArray[t]},{name:"min",value:Number(t)+1},{name:"max",value:Number(t)+1}]);for(_.push(this._getXMLTag("cols",[],this._colsArray.join(""))+"<sheetData>"),e=0;e<c;e++){for(n=[],s=this._cellsArray[e].length,t=0;t<s;t++)e=Number(e),i=this._cellsArray[e][t],n.push(this._getXMLTag("c",[{name:"r",value:this._getCellIndex(e+1,t)},{name:"s",value:i.style},{name:"t",value:i.type}],o.isDefined(i.value)?this._getXMLTag("v",[],i.value):null));l.push(this._getXMLTag("row",[{name:"r",value:Number(e)+1},{name:"spans",value:d},{name:"outlineLevel",value:e>=u?this._dataProvider.getGroupLevel(e):0},{name:"x14ac:dyDescent",value:"0.25"}],n.join(""))),this._cellsArray[e]=null,r++>1e4&&(_.push(l.join("")),l=[],r=0)}_.push(l.join("")),l=[],a=this._getCellIndex(this._maxIndex[0],this._maxIndex[1]),_.push("</sheetData>"+this._getAutoFilterXML(a)+this._generateMergingXML()+this._getIgnoredErrorsXML(a)+"</worksheet>"),this._zip.folder(v).folder(w).file(S,_.join("")),this._colsArray=[],this._cellsArray=[],_=[]},_generateMergingXML:function(){var t,e,i,n,a,s,r=o.isDefined(this._dataProvider.getHeaderRowCount)?this._dataProvider.getHeaderRowCount():this._dataProvider.getRowsCount(),l=this._dataProvider.getColumns().length,c=[],h=[],d="";for(n=0;n<r;n++)for(i=0;i!==l;i++)if(!o.isDefined(c[n])||!o.isDefined(c[n][i])){var u=this._dataProvider.getCellMerging(n,i);if(u.colspan||u.rowspan)for(h.push({start:this._getCellIndex(n+1,i),end:this._getCellIndex(n+1+(u.rowspan||0),i+(u.colspan||0))
|
|
11
11
|
}),t=n;t<=n+u.rowspan;t++)for(e=i;e<=i+u.colspan;e++)o.isDefined(c[t])||(c[t]=[]),c[t][e]=!0}for(a=h.length,s=0;s<a;s++)d+=this._getXMLTag("mergeCell",[{name:"ref",value:h[s].start+":"+h[s].end}]);return d.length?this._getXMLTag("mergeCells",[{name:"count",value:a}],d):""},_generateCommonXML:function(){var t,e=u+this._createXMLRelationships(this._createXMLRelationship(1,"officeDocument","xl/"+b)),i=this._zip.folder(v),n=u;this._zip.folder("_"+g).file("."+g,e),t=this._createXMLRelationship(1,"worksheet","worksheets/"+S)+this._createXMLRelationship(2,"styles",x)+this._createXMLRelationship(3,"sharedStrings",C),n+=this._createXMLRelationships(t),i.folder("_"+g).file(b+".rels",n),i.file(b,this._getWorkbookContent()),this._zip.file(y,this._getContentTypesContent())},_generateContent:function(){this._prepareStyleData(),this._prepareCellData(),this._generateWorkXML(),this._generateCommonXML()},_generateWorkXML:function(){this._generateStylesXML(),this._generateStringsXML(),this._generateWorksheetXML()},ctor:function(t,e){this._rtlEnabled=e&&!!e.rtlEnabled,this._options=e,this._maxIndex=[1,2],this._stringArray=[],this._stringHash={},this._styleArray=[],this._colsArray=[],this._cellsArray=[],this._styleFormat=[],this._needSheetPr=!1,this._dataProvider=t,o.isDefined(c)?this._zip=new c:this._zip=null},_checkZipState:function(){if(!this._zip)throw r.Error("E1041")},ready:function(){return this._dataProvider.ready()},getData:function(t){var e={type:t?"blob":"base64",compression:"DEFLATE",mimeType:h.MIME_TYPES.EXCEL};return this._checkZipState(),this._generateContent(),this._zip.generateAsync?this._zip.generateAsync(e):this._zip.generate(e)}}),e.getData=function(t,i,n){var a=new e.ExcelCreator(t,i);a._checkZipState(),a.ready().done(function(){a._zip.generateAsync?a.getData(o.isFunction(window.Blob)).then(n):n(a.getData(o.isFunction(window.Blob)))})}},function(t,e){t.exports=window.JSZip},function(t,e,i){var n=i(10),o=i(12),a=i(45),s=i(48),r=i(50).getFormat,l=i(54).getLanguageId,c={quarter:"shortDate",quarterAndYear:"shortDate",minute:"longTime",millisecond:"longTime"},h=1632,d={thousands:"#,##0{0},"K"",millions:"#,##0{0},,"M"",billions:"#,##0{0},,,"B"",trillions:"#,##0{0},,,,"T"",percent:"0{0}%",decimal:"#{0}",fixedpoint:"#,##0{0}",exponential:"0{0}E+00",currency:" "},u=/a+/g,p=/E/g,f=/dE+/g,_=/L/g,m=/h/g,g=/\//g,v=/\[/g,b=/]/g,y=/./g;i(55);var C=t.exports={_applyPrecision:function(t,e){var i,n;if(e>0){for(i="decimal"!==t?".":"",n=0;n<e;n++)i+="0";return i}return""},_getCurrencyFormat:function(t){return a.getOpenXmlCurrencyFormat(t)},_hasArabicDigits:function(t){for(var e,i=0;i<t.length;i++)if(e=t.charCodeAt(i),e>=h&&e<h+10)return!0;return!1},_convertDateFormatToOpenXml:function(t){return t.replace(g,"\\/").split("'").map(function(t,e){return e%2===0?t.replace(u,"AM/PM").replace(f,"d").replace(p,"d").replace(_,"M").replace(m,"H").replace(v,"\\[").replace(b,"\\]"):t?t.replace(y,"\\$&"):"'"}).join("")},_convertDateFormat:function(t){t=c[t&&t.type||t]||t;var e=this,i=(s.format(new Date(2009,8,8,6,5,4),t)||"").toString(),n=r(function(e){return s.format(e,t)});return n=e._convertDateFormatToOpenXml(n),n=e._getLanguageInfo(i)+n},_getLanguageInfo:function(t){var e=l(),i=e?e.toString(16):"",n="";if(this._hasArabicDigits(t)){for(;i.length<3;)i="0"+i;n="[$-2010"+i+"]"}else i&&(n="[$-"+i+"]");return n},_convertNumberFormat:function(t,e,i){var n,a="currency"===t?this._getCurrencyFormat(i):d[t.toLowerCase()];return a&&(n=o.format(a,this._applyPrecision(t,e))),n},convertFormat:function(t,e,i,o){if(n.isDefined(t)){if("date"===i)return C._convertDateFormat(t);if(n.isString(t)&&d[t.toLowerCase()])return C._convertNumberFormat(t,e,o)}}}},function(t,e,i){var n=i(28),o=i(25).inArray,a=i(13).escapeRegExp,s=i(17).each,r=i(10).isPlainObject,l=i(46),c=i(14),h=i(7),d=4,u=10,p=["currency","fixedpoint","exponential","percent","decimal"],f={1:"K",2:"M",3:"B",4:"T"},_={largenumber:"auto",thousands:1,millions:2,billions:3,trillions:4},m=n({numericFormats:p,defaultLargeNumberFormatPostfixes:f,_parseNumberFormatString:function(t){var e,i={};if(t&&"string"==typeof t)return e=t.toLowerCase().split(" "),s(e,function(t,e){o(e,p)>-1?i.formatType=e:e in _&&(i.power=_[e])}),i.power&&!i.formatType&&(i.formatType="fixedpoint"),i.formatType?i:void 0},_calculateNumberPower:function(t,e,i,n){var o=Math.abs(t),a=0;if(o>1)for(;o&&o>=e&&(void 0===n||a<n);)a++,o/=e;else if(o>0&&o<1)for(;o<1&&(void 0===i||a>i);)a--,o*=e;return a},_getNumberByPower:function(t,e,i){for(var n=t;e>0;)n/=i,e--;for(;e<0;)n*=i,e++;return n},_formatNumber:function(t,e,i){var n,o;return"auto"===e.power&&(e.power=this._calculateNumberPower(t,1e3,0,d)),e.power&&(t=this._getNumberByPower(t,e.power,1e3)),n=this.defaultLargeNumberFormatPostfixes[e.power]||"",o=this._formatNumberCore(t,e.formatType,i),o=o.replace(/(\d|.$)(\D*)$/,"$1"+n+"$2")},_formatNumberExponential:function(t,e){var i,n=this._calculateNumberPower(t,u),o=this._getNumberByPower(t,n,u);return void 0===e.precision&&(e.precision=1),o.toFixed(e.precision||0)>=u&&(n++,o/=u),i=(n>=0?"+":"")+n.toString(),this._formatNumberCore(o,"fixedpoint",e)+"E"+i},_addZeroes:function(t,e){var i=Math.pow(10,e),n=t<0?"-":"";t=(Math.abs(t)*i>>>0)/i;for(var o=t.toString();o.length<e;)o="0"+o;return n+o},_addGroupSeparators:function(t){var e=t.toString().split(".");return e[0].replace(/\B(?=(\d{3})+(?!\d))/g,c().thousandsSeparator)+(e[1]?c().decimalSeparator+e[1]:"")},_formatNumberCore:function(t,e,i){return"exponential"===e?this._formatNumberExponential(t,i):("decimal"!==e&&null!==i.precision&&(i.precision=i.precision||0),"percent"===e&&(t=100*t),void 0!==i.precision&&(t="decimal"===e?this._addZeroes(t,i.precision):null===i.precision?t.toPrecision():t.toFixed(i.precision)),t="decimal"!==e?this._addGroupSeparators(t):t.toString().replace(".",c().decimalSeparator),"percent"===e&&(t+="%"),t)},_normalizeFormat:function(t){return t?"function"==typeof t?t:(r(t)||(t={type:t}),t):{}},_getSeparators:function(){return{decimalSeparator:this.getDecimalSeparator(),thousandsSeparator:this.getThousandsSeparator()}},getThousandsSeparator:function(){return this.format(1e3,"fixedPoint")[1]},getDecimalSeparator:function(){return this.format(1.2,{type:"fixedPoint",precision:1})[1]},convertDigits:function(t,e){var i=this.format(90,"decimal");if("string"!=typeof t||"0"===i[1])return t;var n=e?i[1]:"0",o=e?"0":i[1],a=e?i[0]:"9",s=new RegExp("["+n+"-"+a+"]","g");return t.replace(s,function(t){return String.fromCharCode(t.charCodeAt(0)+(o.charCodeAt(0)-n.charCodeAt(0)))})},getSign:function(t,e){if("-"===t.replace(/[^0-9\-]/g,"").charAt(0))return-1;if(!e)return 1;var i=this._getSeparators(),n=new RegExp("[0-9"+a(i.decimalSeparator+i.thousandsSeparator)+"]+","g"),o=this.format(-1,e).replace(n,"1"),s=t.replace(n,"1");return s===o?-1:1},format:function(t,e){if("number"!=typeof t)return t;if("number"==typeof e)return t;if(e=e&&e.formatter||e,"function"==typeof e)return e(t);e=this._normalizeFormat(e),e.type||(e.type="decimal");var i=this._parseNumberFormatString(e.type);return i?this._formatNumber(t,i,e):this.convertDigits(l.getFormatter(e.type,this._getSeparators())(t))},parse:function(t,e){if(t){if(e&&e.parser)return e.parser(t);t=this.convertDigits(t,!0),e&&"string"!=typeof e&&h.log("W0011");var i=this.getDecimalSeparator(),n=new RegExp("[^0-9"+a(i)+"]","g"),o=t.replace(n,"").replace(i,".").replace(/\.$/g,""),s=+o;return o=o.replace(/^\./g,""),o.length>15?NaN:""===o?null:s*this.getSign(t,e)}}});t.exports=m},function(t,e,i){function n(t){return t.split(",").slice(1).map(function(t){return t.split("").filter(function(t){return"#"===t||"0"===t}).length})}function o(t){var e=t.split(";");return 1===e.length&&e.push("-"+e[0]),e}function a(t){return t.toString().split("").reverse().join("")}function s(t){return t.indexOf("%")!==-1&&!t.match(/'[^']*%[^']*'/g)}function r(t){return t?t.length-t.replace(/[#]/g,"").length:0}function l(t){return t?t.length-t.replace(/[0]/g,"").length:0}function c(t,e,i){if(!t)return"";for(t.length>i&&(t=t.substr(0,i));t.length>e&&"0"===t.slice(-1);)t=t.substr(0,t.length-1);for(;t.length<e;)t+="0";return t}function h(t,e,i){if(!e.length)return t;for(var n=[],o=0;t;){var a=e[o];n.push(t.slice(0,a)),t=t.slice(a),o<e.length-1&&o++}return n.join(i)}function d(t,e){return t.split(y).map(function(t,i){var n=i%2;return!t&&n?y:n?t:t.replace(/[,#0]+/,e)}).join("")}function u(t){for(var e=!1,i=0;i<t.length;i++)if("'"===t[i]&&(e=!e),"."===t[i]&&!e)return i;return t.length}function p(t,e){return e=e||b,function(i){if("number"!=typeof i||isNaN(i))return"";var p=o(t),f=1/i===1/0,_=i>0||f,m=p[_?0:1];s(m)&&(i=100*i),_||(i=-i);var g=u(m),b=[m.substr(0,g),m.substr(g+1)],y=l(b[1]),x=y+r(b[1]),w=l(b[0]),S=r(b[0])?void 0:w,I=Math.floor(i).toString().length,T=v(x,0,C-I),E=n(b[0]).reverse(),D=i.toFixed(T<0?0:T).split("."),k=c(a(D[0]),w,S),B=c(D[1],y,x);k=h(k,E,e.thousandsSeparator);var A=a(d(a(b[0]),k)),M=x?d(b[1],B):"",O=A+(M.match(/\d/)?e.decimalSeparator:"")+M;return O}}function f(t,e,i){var n=(e?.01:1)*parseFloat(t)||0;return i?-n:n}function _(t,e,i,n){var o,a,s,r=t;do s&&(o=a.length===s.length?"0":"1",t=n?o+t:t+o),a=s||e(f(r,i)),r=n?"1"+r:r+"1",s=e(f(r,i));while(a!==s&&(n?a.length===s.length:a.length<=s.length));if(n&&s.length>a.length){var l=e(12345).indexOf("12345")===-1;do t="1"+t;while(l&&f(t,i)<1e5)}return t}function m(t,e,i,n){var o=e(f(t,i,n)),a=t.split("."),s=a[0]+".3"+a[1].slice(1),r=f(s,i,n),l=e(r).indexOf("3")-1;return o=o.replace(/(\d)\D(\d)/g,"$1,$2"),l>=0&&(o=o.slice(0,l)+"."+o.slice(l+1)),o=o.replace(/1+/,"1").replace(/1/g,"#"),i||(o=o.replace("%","'%'")),o}function g(t){var e=".",i=t(1).indexOf("100")>=0;e=_(e,t,i,!0),e=_(e,t,i,!1);var n=m(e,t,i,!1),o=m(e,t,i,!0);return o==="-"+n?n:n+";"+o}var v=i(47).fitIntoRange,b={thousandsSeparator:",",decimalSeparator:"."},y="'",C=15;e.getFormatter=p,e.getFormat=g},function(t,e,i){function n(t){return Math.abs(parseInt(t.toExponential().split("e")[1]))}function o(t,e){var i,o=a(e||0)+2,l=t.toString().split("."),c=t,h=Math.abs(t),d=s.msie&&s.version>=13,u=r(t),p=h>1?10:0;return 1===l.length?t:(u||(r(e)&&(o=l[0].length+n(e)),t=h,t=t-Math.floor(t)+p),o=d&&n(t)>6||o>7?15:7,u||(i=parseFloat(t.toPrecision(o)).toString().split("."),i[0]!==p.toString())?parseFloat(c.toPrecision(o)):parseFloat(l[0]+"."+i[1]))}function a(t){var e,i,n=t.toString();return n.indexOf(".")<0?0:(e=n.split("."),i=e[1].indexOf("e"),i>=0?i:e[1].length)}var s=i(41),r=i(10).isExponential,l=function(t){return 0===t?0:t/Math.abs(t)},c=function(t,e,i){var n=!e&&0!==e,o=!i&&0!==i;return n&&(e=o?t:Math.min(t,i)),o&&(i=n?t:Math.max(t,e)),Math.min(Math.max(t,e),i)},h=function(t,e,i){return t>=e&&t<=i};e.sign=l,e.fitIntoRange=c,e.inRange=h,e.adjust=o,e.getPrecision=a,e.getExponent=n},function(t,e,i){var n=i(28),o=i(10).isString,a=i(17),s=i(25).inArray,r=i(49).getFormatter,l=i(50).getFormat,c=i(51).getParser,h=i(52),d=i(45),u=i(7);i(53);var p={shortdate:"M/d/y",shorttime:"h:mm a",longdate:"EEEE, MMMM d, y",longtime:"h:mm:ss a",monthandday:"MMMM d",monthandyear:"MMMM y",quarterandyear:"QQQ y",day:"d",year:"y",shortdateshorttime:"M/d/y, h:mm a",mediumdatemediumtime:"MMMM d, h:mm a",longdatelongtime:"EEEE, MMMM d, y, h:mm:ss a",month:"LLLL",shortyear:"yy",dayofweek:"EEEE",quarter:"QQQ",hour:"HH",minute:"mm",second:"ss",millisecond:"SSS","datetime-local":"yyyy-MM-ddTHH':'mm':'ss"},f={year:["y","yy","yyyy"],day:["d","dd"],month:["M","MM","MMM","MMMM"],hours:["H","HH","h","hh","ah"],minutes:["m","mm"],seconds:["s","ss"],milliseconds:["S","SS","SSS"]},_=n({_getPatternByFormat:function(t){return p[t.toLowerCase()]},_expandPattern:function(t){return this._getPatternByFormat(t)||t},formatUsesMonthName:function(t){return this._expandPattern(t).indexOf("MMMM")!==-1},formatUsesDayName:function(t){return this._expandPattern(t).indexOf("EEEE")!==-1},getFormatParts:function(t){var e=this._getPatternByFormat(t)||t,i=[];return a.each(e.split(/\W+/),function(t,e){a.each(f,function(t,n){s(e,n)>-1&&i.push(t)})}),i},getMonthNames:function(t){return h.getMonthNames(t)},getDayNames:function(t){return h.getDayNames(t)},getQuarterNames:function(t){return h.getQuarterNames(t)},getPeriodNames:function(t){return h.getPeriodNames(t)},getTimeSeparator:function(){return":"},is24HourFormat:function(t){for(var e=new Date(2017,0,20,11,0,0,0),i=new Date(2017,0,20,23,0,0,0),n=this.format(e,t),o=this.format(i,t),a=0;a<n.length;a++)if(n[a]!==o[a])return!isNaN(parseInt(n[a]))},format:function(t,e){if(t){if(!e)return t;var i;if("function"==typeof e)i=e;else if(e.formatter)i=e.formatter;else if(e=e.type||e,o(e))return e=p[e.toLowerCase()]||e,d.convertDigits(r(e,this)(t));if(i)return i(t)}},parse:function(t,e){var i,n,o,a=this;if(t){if(!e)return this.parse(t,"shortdate");if(e.parser)return e.parser(t);if("string"!=typeof e||p[e.toLowerCase()]){o=function(t){var i=a.format(t,e);return d.convertDigits(i,!0)};try{n=l(o)}catch(t){}}else n=e;if(n)return t=d.convertDigits(t,!0),c(n,this)(t);if(u.log("W0012"),i=new Date(t),i&&!isNaN(i.getTime()))return i}},firstDayOfWeekIndex:function(){return 0}});t.exports=_},function(t,e){function i(t,e){for(;t.length<e;)t="0"+t;return t}var n={3:"abbreviated",4:"wide",5:"narrow"},o={y:function(t,e,n){var o=t[n?"getUTCFullYear":"getFullYear"]();return 2===e&&(o%=100),i(o.toString(),e)},M:function(t,e,o,a){var s=t[o?"getUTCMonth":"getMonth"](),r=n[e];return r?a.getMonthNames(r,"format")[s]:i((s+1).toString(),Math.min(e,2))},L:function(t,e,o,a){var s=t[o?"getUTCMonth":"getMonth"](),r=n[e];return r?a.getMonthNames(r,"standalone")[s]:i((s+1).toString(),Math.min(e,2))},Q:function(t,e,o,a){var s=t[o?"getUTCMonth":"getMonth"](),r=Math.floor(s/3),l=n[e];return l?a.getQuarterNames(l)[r]:i((r+1).toString(),Math.min(e,2))},E:function(t,e,i,o){var a=t[i?"getUTCDay":"getDay"](),s=n[e<3?3:e];return o.getDayNames(s)[a]},a:function(t,e,i,o){var a=t[i?"getUTCHours":"getHours"](),s=a<12?0:1,r=n[e];return o.getPeriodNames(r)[s]},d:function(t,e,n){return i(t[n?"getUTCDate":"getDate"]().toString(),Math.min(e,2))},H:function(t,e,n){return i(t[n?"getUTCHours":"getHours"]().toString(),Math.min(e,2))},h:function(t,e,n){var o=t[n?"getUTCHours":"getHours"]();return i((o%12||12).toString(),Math.min(e,2))},m:function(t,e,n){return i(t[n?"getUTCMinutes":"getMinutes"]().toString(),Math.min(e,2))},s:function(t,e,n){return i(t[n?"getUTCSeconds":"getSeconds"]().toString(),Math.min(e,2))},S:function(t,e,n){return i(t[n?"getUTCMilliseconds":"getMilliseconds"]().toString(),3).substr(0,e)},x:function(t,e,n){var o=n?0:t.getTimezoneOffset(),a=o>0?"-":"+",s=Math.abs(o),r=Math.floor(s/60),l=s%60,c=i(r.toString(),2),h=i(l.toString(),2);return a+c+(e>=3?":":"")+(e>1||l?h:"")},X:function(t,e,i){return i||!t.getTimezoneOffset()?"Z":o.x(t,e,i)},Z:function(t,e,i){return o.X(t,e>=5?3:2,i)}},a=function(t,e){return function(i){var n,a,s,r,l=0,c="'",h=!1,d="";if(!i)return null;if(!t)return i;var u="Z"===t[t.length-1]||"'Z'"===t.slice(-3);for(n=0;n<t.length;n++)s=t[n],a=o[s],r=s===t[n+1],l++,r||(a&&!h&&(d+=a(i,l,u,e)),l=0),s!==c||r?!h&&a||(d+=s):h=!h,s===c&&r&&n++;return d}};t.exports.getFormatter=a},function(t,e){var i="،",n=" .,:;/\\<>()-[]"+i,o=1632,a=function(t){var e=t&&t.charCodeAt(0);return t>="0"&&t<="9"||e>=o&&e<o+10},s=function(t,e,i){var o=t[e],s=t[e-1],r=t[e+1];if(!i){if("."===o||" "===o&&"."===s)return!0;if("-"===o&&!a(r))return!0}return n.indexOf(o)<0&&i===a(o)},r=function(t,e){if(!a(t[e]))for(;e>0&&!a(t[e-1])&&("."===t[e-1]||n.indexOf(t[e-1])<0);)e--;return e},l=function(t,e,i,n){var o=0,l=[],c=function(e){return t[o]!==e[o]&&(void 0===n||a(t[o])===n)};for(Array.isArray(e)||(e=[e]),o=0;o<t.length;o++)if(i.indexOf(o)<0&&e.filter(c).length){o=r(t,o);do{if(n=a(t[o]),!l.length&&!n&&a(e[0][o]))break;l.push(o),i.unshift(o),o++}while(t[o]&&s(t,o,n));break}return 1!==l.length||"0"!==t[i[0]-1]&&"٠"!==t[i[0]-1]||i.unshift(i[0]-1),l},c=function(t,e,i,n){var o=e[0],a=o<n.length?n[o]:o;return e.forEach(function(e,n){t=t.substr(0,a+n)+(i.length>1?i[n]:i)+t.substr(a+n+1)}),1===e.length&&(t=t.replace("0"+i,i+i),t=t.replace("٠"+i,i+i)),t},h=function(t,e,i,n){var o,s,r;if(!a(t[e[0]]||"0")){for(var l=Math.max(e.length<=3?3:4,i.length);e.length>l;){for(s=e.pop(),r=n[s],n[s]=-1,o=s+1;o<n.length;o++)n[o]--;t=t.substr(0,r)+t.substr(r+1)}for(s=e[e.length-1]+1,r=s<n.length?n[s]:s;e.length<l;){for(e.push(e[e.length-1]+1),o=s;o<n.length;o++)n[o]++;t=t.substr(0,r)+" "+t.substr(r)}}return t=c(t,e,i,n)},d=function(t,e){return Array.isArray(t)?t.map(function(t){return(e(t)||"").toString()}):(e(t)||"").toString()},u=/[a-zA-Z]/g,p=function(t,e,i,n){var o=e.split("").map(function(t,e){return i.indexOf(e)<0&&(t.match(u)||"'"===t)?n[e]:-1});return t=t.split("").map(function(t,e){var i=t,n=o.indexOf(e)>=0,a=e>0&&o.indexOf(e-1)>=0,s=o.indexOf(e+1)>=0;return n&&(a||(i="'"+i),s||(i+="'")),i}).join("")},f=function(t){var e=[],i=d(new Date(2009,8,8,6,5,4),t),n=i.split("").map(function(t,e){return e}),o=i,a={},s=[{date:new Date(2009,8,8,6,5,4,100),pattern:"S"},{date:new Date(2009,8,8,6,5,2),pattern:"s"},{date:new Date(2009,8,8,6,2,4),pattern:"m"},{date:new Date(2009,8,8,18,5,4),pattern:"H",isDigit:!0},{date:new Date(2009,8,8,2,5,4),pattern:"h",isDigit:!0},{date:new Date(2009,8,8,18,5,4),pattern:"a",isDigit:!1},{date:new Date(2009,8,1,6,5,4),pattern:"d"},{date:[new Date(2009,8,2,6,5,4),new Date(2009,8,3,6,5,4),new Date(2009,8,4,6,5,4)],pattern:"E"},{date:new Date(2009,9,6,6,5,4),pattern:"M"},{date:new Date(1998,8,8,6,5,4),pattern:"y"}];if(o)return s.forEach(function(s){var r=l(i,d(s.date,t),e,s.isDigit),c="M"!==s.pattern||a.d?s.pattern:"L";o=h(o,r,c,n),a[c]=r.length}),o=p(o,i,e,n),e.length?o:void 0};e.getFormat=f},function(t,e,i){var n=i(13).escapeRegExp,o={3:"abbreviated",4:"wide",5:"narrow"},a=function(t,e){return t>2?Object.keys(o).map(function(t){return["format","standalone"].map(function(i){return e.getMonthNames(o[t],i).join("|")}).join("|")}).join("|"):"0?[1-9]|1[012]"},s={y:function(t){return"[0-9]+"},M:a,L:a,Q:function(t,e){return t>2?e.getQuarterNames(o[t],"format").join("|"):"0?[1-4]"},E:function(t,e){return"\\D*"},a:function(t,e){return e.getPeriodNames(o[t<3?3:t],"format").join("|")},d:function(t){return"0?[1-9]|[12][0-9]|3[01]"},H:function(t){return"0?[0-9]|1[0-9]|2[0-3]"},h:function(t){return"0?[1-9]|1[012]"},m:function(t){return"0?[0-9]|[1-5][0-9]"},s:function(t){return"0?[0-9]|[1-5][0-9]"},S:function(t){return"[0-9]{1,"+t+"}"}},r=Number,l=function(t,e,i){return e>2?["format","standalone"].map(function(e){return Object.keys(o).map(function(n){return i.getMonthNames(o[n],e).indexOf(t)})}).reduce(function(t,e){return t.concat(e)}).filter(function(t){return t>=0})[0]:r(t)-1},c={y:function(t,e){var i=r(t);return 2===e?i<30?2e3+i:1900+i:i},M:l,L:l,Q:function(t,e,i){return e>2?i.getQuarterNames(o[e],"format").indexOf(t):r(t)-1},E:function(t,e,i){return i.getDayNames(o[e<3?3:e],"format").indexOf(t)},a:function(t,e,i){return i.getPeriodNames(o[e<3?3:e],"format").indexOf(t)},d:r,H:r,h:r,m:r,s:r,S:function(t,e){for(e=Math.max(e,3),t=t.slice(0,3);e<3;)t+="0",e++;return r(t)}},h=["y","M","d","h","m","s","S"],d={y:"setFullYear",M:"setMonth",L:"setMonth",a:function(t,e){var i=t.getHours();e||12!==i?e&&12!==i&&t.setHours(i+12):t.setHours(0)},d:"setDate",H:"setHours",h:"setHours",m:"setMinutes",s:"setSeconds",S:"setMilliseconds"},u=function(t,e){var i=t[e],n=0;do e++,n++;while(t[e]===i);return n},p=function(t,e){for(var i="",n=0;n<e;n++)i+=t;return i},f=function(t,e){var i,o="",a=[];t=n(t);for(var r=0;r<t.length;r++){var l=t[r],c="'"===l,h=s[l];if(!c||(i=!i,"'"===t[r-1]))if(h&&!i){var d=u(t,r),f=p(l,d);a.push(f),o+="("+h(d,e)+")",r+=d-1}else o+=l}return{patterns:a,regexp:new RegExp("^"+o+"$")}},_=function(t,e,i,n){var o=e[0],a=d[o],s=c[o];if(a&&s){var r=s(i,e.length,n);t[a]?t[a](r):a(t,r)}},m=function(t,e,i){var n=d[e],o="g"+n.substr(1);t[n](i[o]())},g=function(t){return t.map(function(t){return"H"===t[0]?"h":t[0]})},v=function(t){var e=t.map(function(t){return h.indexOf(t)});return Math.max.apply(Math,e)},b=function(t){var e=t.filter(function(t){return h.indexOf(t)<0});return h.concat(e)},y=function(t,e){var i=f(t,e);return function(t){var n=i.regexp.exec(t);if(n){var o=new Date,a=new Date(o.getFullYear(),0,1),s=g(i.patterns),r=v(s),l=b(s);return l.forEach(function(t,l){if(!(l<h.length&&l>r)){var c=s.indexOf(t);c>=0?_(a,i.patterns[c],n[c+1],e):m(a,t,o)}}),a}return null}};e.getParser=y},function(t,e,i){var n=i(17),o=["January","February","March","April","May","June","July","August","September","October","November","December"],a=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],s=["AM","PM"],r=["Q1","Q2","Q3","Q4"],l=function(t,e){var i={abbreviated:3,"short":2,narrow:1};return n.map(t,function(t){return t.substr(0,i[e])})};t.exports={getMonthNames:function(t){return l(o,t)},getDayNames:function(t){return l(a,t)},getQuarterNames:function(t){return r},getPeriodNames:function(t){return s}}},function(t,e,i){var n=i(28);t.exports=n({locale:function(){var t="en";return function(e){return e?void(t=e):t}}()})},function(t,e,i){var n=i(53).locale,o={ar:1,bg:2,ca:3,"zh-Hans":4,cs:5,da:6,de:7,el:8,en:9,es:10,fi:11,fr:12,he:13,hu:14,is:15,it:16,ja:17,ko:18,nl:19,no:20,pl:21,pt:22,rm:23,ro:24,ru:25,hr:26,sk:27,sq:28,sv:29,th:30,tr:31,ur:32,id:33,uk:34,be:35,sl:36,et:37,lv:38,lt:39,tg:40,fa:41,vi:42,hy:43,az:44,eu:45,hsb:46,mk:47,tn:50,xh:52,zu:53,af:54,ka:55,fo:56,hi:57,mt:58,se:59,ga:60,ms:62,kk:63,ky:64,sw:65,tk:66,uz:67,tt:68,bn:69,pa:70,gu:71,or:72,ta:73,te:74,kn:75,ml:76,as:77,mr:78,sa:79,mn:80,bo:81,cy:82,km:83,lo:84,gl:86,kok:87,syr:90,si:91,iu:93,am:94,tzm:95,ne:97,fy:98,ps:99,fil:100,dv:101,ha:104,yo:106,quz:107,nso:108,ba:109,lb:110,kl:111,ig:112,ii:120,arn:122,moh:124,br:126,ug:128,mi:129,oc:130,co:131,gsw:132,sah:133,qut:134,rw:135,wo:136,prs:140,gd:145,"ar-SA":1025,"bg-BG":1026,"ca-ES":1027,"zh-TW":1028,"cs-CZ":1029,"da-DK":1030,"de-DE":1031,"el-GR":1032,"en-US":1033,"fi-FI":1035,"fr-FR":1036,"he-IL":1037,"hu-HU":1038,"is-IS":1039,"it-IT":1040,"ja-JP":1041,"ko-KR":1042,"nl-NL":1043,"nb-NO":1044,"pl-PL":1045,"pt-BR":1046,"rm-CH":1047,"ro-RO":1048,"ru-RU":1049,"hr-HR":1050,"sk-SK":1051,"sq-AL":1052,"sv-SE":1053,"th-TH":1054,"tr-TR":1055,"ur-PK":1056,"id-ID":1057,"uk-UA":1058,"be-BY":1059,"sl-SI":1060,"et-EE":1061,"lv-LV":1062,"lt-LT":1063,"tg-Cyrl-TJ":1064,"fa-IR":1065,"vi-VN":1066,"hy-AM":1067,"az-Latn-AZ":1068,"eu-ES":1069,"hsb-DE":1070,"mk-MK":1071,"tn-ZA":1074,"xh-ZA":1076,"zu-ZA":1077,"af-ZA":1078,"ka-GE":1079,"fo-FO":1080,"hi-IN":1081,"mt-MT":1082,"se-NO":1083,"ms-MY":1086,"kk-KZ":1087,"ky-KG":1088,"sw-KE":1089,"tk-TM":1090,"uz-Latn-UZ":1091,"tt-RU":1092,"bn-IN":1093,"pa-IN":1094,"gu-IN":1095,"or-IN":1096,"ta-IN":1097,"te-IN":1098,"kn-IN":1099,"ml-IN":1100,"as-IN":1101,"mr-IN":1102,"sa-IN":1103,"mn-MN":1104,"bo-CN":1105,"cy-GB":1106,"km-KH":1107,"lo-LA":1108,"gl-ES":1110,"kok-IN":1111,"syr-SY":1114,"si-LK":1115,"iu-Cans-CA":1117,"am-ET":1118,"ne-NP":1121,"fy-NL":1122,"ps-AF":1123,"fil-PH":1124,"dv-MV":1125,"ha-Latn-NG":1128,"yo-NG":1130,"quz-BO":1131,"nso-ZA":1132,"ba-RU":1133,"lb-LU":1134,"kl-GL":1135,"ig-NG":1136,"ii-CN":1144,"arn-CL":1146,"moh-CA":1148,"br-FR":1150,"ug-CN":1152,"mi-NZ":1153,"oc-FR":1154,"co-FR":1155,"gsw-FR":1156,"sah-RU":1157,"qut-GT":1158,"rw-RW":1159,"wo-SN":1160,"prs-AF":1164,"gd-GB":1169,"ar-IQ":2049,"zh-CN":2052,"de-CH":2055,"en-GB":2057,"es-MX":2058,"fr-BE":2060,"it-CH":2064,"nl-BE":2067,"nn-NO":2068,"pt-PT":2070,"sr-Latn-CS":2074,"sv-FI":2077,"az-Cyrl-AZ":2092,"dsb-DE":2094,"se-SE":2107,"ga-IE":2108,"ms-BN":2110,"uz-Cyrl-UZ":2115,"bn-BD":2117,"mn-Mong-CN":2128,"iu-Latn-CA":2141,"tzm-Latn-DZ":2143,"quz-EC":2155,"ar-EG":3073,"zh-HK":3076,"de-AT":3079,"en-AU":3081,"es-ES":3082,"fr-CA":3084,"sr-Cyrl-CS":3098,"se-FI":3131,"quz-PE":3179,"ar-LY":4097,"zh-SG":4100,"de-LU":4103,"en-CA":4105,"es-GT":4106,"fr-CH":4108,"hr-BA":4122,"smj-NO":4155,"ar-DZ":5121,"zh-MO":5124,"de-LI":5127,"en-NZ":5129,"es-CR":5130,"fr-LU":5132,"bs-Latn-BA":5146,"smj-SE":5179,"ar-MA":6145,"en-IE":6153,"es-PA":6154,"fr-MC":6156,"sr-Latn-BA":6170,"sma-NO":6203,"ar-TN":7169,"en-ZA":7177,"es-DO":7178,"sr-Cyrl-BA":7194,"sma-SE":7227,"ar-OM":8193,"en-JM":8201,"es-VE":8202,"bs-Cyrl-BA":8218,"sms-FI":8251,"ar-YE":9217,"en-029":9225,"es-CO":9226,"sr-Latn-RS":9242,"smn-FI":9275,"ar-SY":10241,"en-BZ":10249,"es-PE":10250,"sr-Cyrl-RS":10266,"ar-JO":11265,"en-TT":11273,"es-AR":11274,"sr-Latn-ME":11290,"ar-LB":12289,"en-ZW":12297,"es-EC":12298,"sr-Cyrl-ME":12314,"ar-KW":13313,"en-PH":13321,"es-CL":13322,"ar-AE":14337,"es-UY":14346,"ar-BH":15361,"es-PY":15370,"ar-QA":16385,"en-IN":16393,"es-BO":16394,"en-MY":17417,"es-SV":17418,"en-SG":18441,"es-HN":18442,"es-NI":19466,"es-PR":20490,"es-US":21514,"bs-Cyrl":25626,"bs-Latn":26650,"sr-Cyrl":27674,"sr-Latn":28698,smn:28731,"az-Cyrl":29740,sms:29755,zh:30724,nn:30740,bs:30746,"az-Latn":30764,sma:30779,"uz-Cyrl":30787,"mn-Cyrl":30800,"iu-Cans":30813,"zh-Hant":31748,nb:31764,sr:31770,"tg-Cyrl":31784,dsb:31790,smj:31803,"uz-Latn":31811,"mn-Mong":31824,"iu-Latn":31837,"tzm-Latn":31839,"ha-Latn":31848};e.getLanguageId=function(){return o[n()]}},function(t,e,i){var n=i(9).extend,o=i(45);o.inject({_formatNumberCore:function(t,e,i){if("currency"===e){i.precision=i.precision||0;var o=this.format(t,n({},i,{type:"fixedpoint"})),a=this.getCurrencySymbol().symbol.replace("$","$$$$");return o=o.replace(/^(\D*)(\d.*)/,"$1"+a+"$2")}return this.callBase.apply(this,arguments)},getCurrencySymbol:function(){return{symbol:"$"}},getOpenXmlCurrencyFormat:function(){return"$#,##0{0}_);\\($#,##0{0}\\)"}})},function(t,e,i){function n(t,e,i){var n=R("<canvas>")[0];return n.width=t+(i?0:2*rt.x),n.height=e+(i?0:2*rt.y),n}function o(t,e){var i=t.toDataURL(e,at),n=atob(i.substring(("data:"+e+";base64,").length));return n}function a(t,e,i,n,o,a,s,r){var l,c,h,d,u,p,f=(t+i)/2,_=(e+n)/2,m=J(e-n,t-i),g=a?1:-1;m+=90*(q/180)*(s?1:-1),l=Z(Q(i-t,2)+Q(n-e,2))/2,c=Z(X(Q(o,2)-Q(l,2))),h=f+g*(c*tt(m)),d=_+g*(c*et(m)),u=J(e-d,t-h),p=J(n-d,i-h),r.arc(h,d,o,u,p,!s)}function s(t){var e,i=dt(t.attributes||{}),n=t.style||{},o=nt({},i,{text:t.textContent.replace(/\s+/g," "),textAlign:"middle"===i["text-anchor"]?"center":i["text-anchor"]}),a=i.transform;return a&&(e=a.match(/translate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*)*/),e&&(e=e[0].match(/-*\d+([.]\d+)*/g),o.translateX=ot(e[0]),o.translateY=e[1]?ot(e[1]):0),e=a.match(/rotate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*,*\s*-*\d+([.]\d+)*)*/),e&&(e=e[0].match(/-*\d+([.]\d+)*/g),o.rotationAngle=ot(e[0]),o.rotationX=e[1]&&ot(e[1]),o.rotationY=e[2]&&ot(e[2]))),h(n,o),o}function r(t,e){var i=e.x,n=e.y,o=e.width,a=e.height,s=e.rx;s?(s=Y(s,o/2,a/2),t.save(),t.translate(i,n),t.moveTo(o/2,0),t.arcTo(o,0,o,a,s),t.arcTo(o,a,0,a,s),t.arcTo(0,a,0,0,s),t.arcTo(0,0,s,0,s),t.lineTo(o/2,0),t.restore()):t.rect(e.x,e.y,e.width,e.height)}function l(t,e){var i=new U,n=new Image;n.onload=function(){t.save(),t.globalAlpha=e.globalAlpha,x(t,e),w(t,e),t.drawImage(n,e.x,e.y,e.width,e.height),t.restore(),i.resolve()},n.onerror=function(){i.resolve()},$.push(i),n.setAttribute("crossOrigin","anonymous"),n.src=e["xlink:href"]}function c(t,e){var i,n,o=e.split(" "),s=0;do switch(i=ot(o[s+1]),n=ot(o[s+2]),o[s]){case"M":t.moveTo(i,n),s+=3;break;case"L":t.lineTo(i,n),s+=3;break;case"C":t.bezierCurveTo(i,n,ot(o[s+3]),ot(o[s+4]),ot(o[s+5]),ot(o[s+6])),s+=7;break;case"A":a(ot(o[s-2]),ot(o[s-1]),ot(o[s+6]),ot(o[s+7]),i,ot(o[s+4]),ot(o[s+5]),t),s+=8;break;case"Z":t.closePath(),s+=1}while(s<o.length)}function h(t,e){it(t,function(i,n){""!==t[n]&&(e[z(n)]=t[n])}),e.textDecoration=e.textDecoration||e.textDecorationLine,e.globalAlpha=e.opacity||e.globalAlpha}function d(t){var e=t&&t.match(/url\(.*\#(.*?)["']?\)/i);return e&&e[1]}function u(t,e){var i=[];e.fontSize=e.fontSize||lt,e.fontFamily||ct,e.fill=e.fill||ht,e.fontStyle&&i.push(e.fontStyle),e.fontWeight&&i.push(e.fontWeight),i.push(e.fontSize),i.push(e.fontFamily),t.font=i.join(" "),t.textAlign=e.textAlign,t.fillStyle=e.fill,t.globalAlpha=e.globalAlpha}function p(t,e){u(t,e),C(t,e),e.text&&t.fillText(e.text,e.x||0,e.y||0),D(t,e,!0),f(t,e)}function f(t,e){if(e.textDecoration&&"none"!==e.textDecoration){var i=e.x,n=t.measureText(e.text).width,o=parseInt(e.fontSize,10),a=o*st<1?1:o*st,s=e.y;switch(e.textDecoration){case"line-through":s-=o/3+a/2;break;case"overline":s-=o-a;break;case"underline":s+=a}t.rect(i,s,n,a),B(t,e),D(t,e)}}function _(t){P[t.attributes.id.textContent]=t.childNodes[0]}function m(t){H[t.attributes.id.textContent]=t}function g(t){t.strokeOpacity=void 0!==t["stroke-opacity"]?t["stroke-opacity"]:1,t.fillOpacity=void 0!==t["fill-opacity"]?t["fill-opacity"]:1,void 0!==t.opacity&&(t.strokeOpacity*=t.opacity,t.fillOpacity*=t.opacity)}function v(t){for(var e=t.childNodes,i=0;i<e.length;i++)if("tspan"===e[i].tagName)return!0;return!1}function b(t,e,i){for(var n,o=[],a=0,r=0;r<t.length;r++){var l=t[r];if(void 0===l.tagName)y(l,e,i);else if("tspan"===l.tagName||"text"===l.tagName){var c=s(l),h=nt({},i,c);if("tspan"===l.tagName&&v(l)){b(l.childNodes,e,h);continue}h.textAlign="start",n&&void 0===c.x||(n={elements:[],options:[],widths:[],offsets:[]},o.push(n)),void 0!==c.y&&(a=0),void 0!==c.dy&&(a+=parseFloat(c.dy)),n.elements.push(l),n.options.push(h),n.offsets.push(a),u(e,h),n.widths.push(e.measureText(h.text).width)}}o.forEach(function(t){var n=t.widths.reduce(function(t,e){return t+e},0),o=0,a=0;"center"===i.textAlign&&(o=n/2),"end"===i.textAlign&&(o=n),t.options.forEach(function(e,i){var n=t.widths[i];e.x=e.x-o+a,e.y+=t.offsets[i],a+=n}),t.elements.forEach(function(i,n){b(i.childNodes,e,t.options[n])})})}function y(t,e,i){var n=t.tagName,o="text"===n||"tspan"===n||void 0===n,a="image"===n,h=nt({},i,s(t));if("hidden"!==h.visibility){switch(e.save(),!a&&x(e,h),w(e,h),g(h),e.beginPath(),t.tagName){case void 0:p(e,h);break;case"text":case"tspan":b(t.childNodes,e,h);break;case"image":l(e,h);break;case"path":c(e,h.d);break;case"rect":r(e,h),e.closePath();break;case"circle":e.arc(h.cx,h.cy,h.r,0,2*q,1)}o||(C(e,h),B(e,h),D(e,h)),e.restore()}}function C(t,e){var i,n=d(e.filter);n&&(i=V&&V[n],i||(i={offsetX:0,offsetY:0,blur:0,color:"#000"}),t.shadowOffsetX=i.offsetX,t.shadowOffsetY=i.offsetY,t.shadowColor=i.color,t.shadowBlur=i.blur)}function x(t,e){t.translate(e.translateX||0,e.translateY||0),delete e.translateX,delete e.translateY,e.rotationAngle&&(t.translate(e.rotationX||0,e.rotationY||0),t.rotate(e.rotationAngle*q/180),t.translate(-(e.rotationX||0),-(e.rotationY||0)),delete e.rotationAngle,delete e.rotationX,delete e.rotationY)}function w(t,e){e["clip-path"]&&(y(P[d(e["clip-path"])],t,{}),t.clip(),delete e["clip-path"])}function S(t,e){var i=new F(t);return"rgba("+i.r+","+i.g+","+i.b+","+e+")"}function I(t){var e,i,n={};it(t.childNodes,function(t,o){var a=o.attributes;if(a.result)switch(a.result.value){case"gaussianBlurResult":a.stdDeviation&&(n.blur=ot(a.stdDeviation.value));break;case"offsetResult":n.offsetX=ot(a.dx.value),n.offsetY=ot(a.dy.value);break;case"floodResult":e=a["flood-color"]?a["flood-color"].value:"#000",i=a["flood-opacity"]?a["flood-opacity"].value:1,n.color=S(e,i)}}),V[t.id]=n}function T(t,e,i){var n;it(t,function(t,o){switch(o.tagName&&o.tagName.toLowerCase()){case"g":n=nt({},i,s(o)),e.save(),x(e,n),w(e,n),T(o.childNodes,e,n),e.restore();break;case"defs":P={},H={},V={},T(o.childNodes,e);break;case"clippath":_(o);break;case"pattern":m(o);break;case"filter":I(o);break;default:y(o,e,i)}})}function E(t,e){var i=e["stroke-dasharray"]&&e["stroke-dasharray"].match(/(\d+)/g);i&&i.length&&t.setLineDash&&(i=N.map(i,function(t){return ot(t)}),t.setLineDash(i))}function D(t,e,i){var n=e.stroke;n&&"none"!==n&&0!==e["stroke-width"]&&(E(t,e),t.lineJoin=e["stroke-linejoin"],t.lineWidth=e["stroke-width"],t.globalAlpha=e.strokeOpacity,t.strokeStyle=n,i?t.strokeText(e.text,e.x,e.y):t.stroke(),t.globalAlpha=1)}function k(t,e){var i=H[d(e)],o=s(i),a=n(o.width,o.height,!0),r=a.getContext("2d");return T(i.childNodes,r,o),t.createPattern(a,"repeat")}function B(t,e){var i=e.fill;i&&"none"!==i&&(t.fillStyle=i.search(/url/)===-1?i:k(t,i),t.globalAlpha=e.fillOpacity,
|
|
12
12
|
t.fill(),t.globalAlpha=1)}function A(t,e,i,n){t.fillStyle=n||"#ffffff",t.fillRect(-rt.x,-rt.y,e+2*rt.x,i+2*rt.y)}function M(t,e,i,o){var a=n(e,i),s=a.getContext("2d"),r=new DOMParser,l=r.parseFromString(t,"image/svg+xml"),c=l.childNodes[0];return s.translate(rt.x,rt.y),$=[],document.body.appendChild(a),c.attributes.direction&&(a.dir=c.attributes.direction.textContent),A(s,e,i,o),T(c.childNodes,s,{}),document.body.removeChild(a),a}function O(t,e,i){G.apply(R,$).done(function(){var n=o(e,i);t.resolve(n)})}var P,$,H,V,R=i(21),F=i(57),L=i(10).isFunction,N=i(17),W=i(9).extend,z=i(37).camelize,K=i(15),G=K.when,U=K.Deferred,j=Math,q=j.PI,Y=j.min,X=j.abs,Z=j.sqrt,Q=j.pow,J=j.atan2,tt=j.cos,et=j.sin,it=N.each,nt=W,ot=Number,at=1,st=.05,rt={x:30,y:20},lt="10px",ct="sans-serif",ht="#000",dt=function(t){var e,i={};return N.each(t,function(t,n){e=n.textContent,isFinite(e)&&(e=ot(e)),i[n.name.toLowerCase()]=e}),i};e.imageCreator={getImageData:function(t,e){var i="image/"+e.format,n=new U,o=e.width,a=e.height,s=e.backgroundColor;return L(e.__parseAttributesFn)&&(dt=e.__parseAttributesFn),O(n,M(t,o,a,s),i),n},getData:function(t,i){var n=this,o=e.imageCreator.getImageData(t,i),a="image/"+i.format,s=new U;return G(o).done(function(t){o=L(window.Blob)?n._getBlob(t,a):n._getBase64(t),s.resolve(o)}),s},_getBlob:function(t,e){var i,n=new Uint8Array(t.length);for(i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return new Blob([n.buffer],{type:e})},_getBase64:function(t){return window.btoa(t)}},e.getData=function(t,i,n){e.imageCreator.getData(t,i).done(n)}},function(t,e){function i(t){this.baseColor=t;var e;t&&(e=String(t).toLowerCase().replace(/ /g,""),e=m[e]?"#"+m[e]:e,e=n(e)),e||(this.colorIsInvalid=!0),e=e||{},this.r=o(e[0]),this.g=o(e[1]),this.b=o(e[2]),this.a=o(e[3],1,1),e[4]?this.hsv={h:e[4][0],s:e[4][1],v:e[4][2]}:this.hsv=s(this.r,this.g,this.b),e[5]?this.hsl={h:e[5][0],s:e[5][1],l:e[5][2]}:this.hsl=c(this.r,this.g,this.b)}function n(t){if("transparent"===t)return[0,0,0,0];for(var e,i=0,n=g.length;i<n;++i)if(e=g[i].re.exec(t))return g[i].process(e);return null}function o(t,e,i){return e=e||0,i=i||255,t<0||isNaN(t)?e:t>i?i:t}function a(t,e,i){return"#"+(16777216|t<<16|e<<8|i).toString(16).slice(1)}function s(t,e,i){var n,o,a,s=Math.max(t,e,i),r=Math.min(t,e,i),l=s-r;if(a=s,o=0===s?0:1-r/s,s===r)n=0;else switch(s){case t:n=60*((e-i)/l),e<i&&(n+=360);break;case e:n=60*((i-t)/l)+120;break;case i:n=60*((t-e)/l)+240}return o*=100,a*=100/255,{h:Math.round(n),s:Math.round(o),v:Math.round(a)}}function r(t,e,i){var n,o,a,s,r,l,c,h;switch(s=Math.floor(t%360/60),a=(100-e)*i/100,r=(i-a)*(t%60/60),o=a+r,n=i-r,s){case 0:l=i,c=o,h=a;break;case 1:l=n,c=i,h=a;break;case 2:l=a,c=i,h=o;break;case 3:l=a,c=n,h=i;break;case 4:l=o,c=a,h=i;break;case 5:l=i,c=a,h=n}return[Math.round(2.55*l),Math.round(2.55*c),Math.round(2.55*h)]}function l(t,e,i,n){var o=Math.max(t,e,i);switch(o){case t:return(e-i)/n+(e<i?6:0);case e:return(i-t)/n+2;case i:return(t-e)/n+4}}function c(t,e,i){t=f(t,255),e=f(e,255),i=f(i,255);var n,o,a=Math.max(t,e,i),s=Math.min(t,e,i),r=a+s,c=r/2;if(a===s)n=o=0;else{var h=a-s;o=c>.5?h/(2-r):h/r,n=l(t,e,i,h),n/=6}return{h:v(360*n),s:v(100*o),l:v(100*c)}}function h(t,e){var i=e;return"r"===t&&(i=e+1/3),"b"===t&&(i=e-1/3),i}function d(t){return t<0&&(t+=1),t>1&&(t-=1),t}function u(t,e,i){return i=d(i),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}function p(t,e,i){var n,o,a;if(t=f(t,360),e=f(e,100),i=f(i,100),0===e)n=o=a=i;else{var s=i<.5?i*(1+e):i+e-i*e,r=2*i-s;n=u(r,s,h("r",t)),o=u(r,s,h("g",t)),a=u(r,s,h("b",t))}return[v(255*n),v(255*o),v(255*a)]}function f(t,e){return t=Math.min(e,Math.max(0,parseFloat(t))),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function _(t,e,i){return e=e||0,i=i||255,!(t%1!==0||t<e||t>i||"number"!=typeof t||isNaN(t))}var m={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"},g=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(t){return[parseInt(t[1],10),parseInt(t[2],10),parseInt(t[3],10)]}},{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d*\.*\d+)\)$/,process:function(t){return[parseInt(t[1],10),parseInt(t[2],10),parseInt(t[3],10),parseFloat(t[4])]}},{re:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/,process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^#([a-f0-9]{1})([a-f0-9]{1})([a-f0-9]{1})$/,process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/^hsv\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(t){var e=parseInt(t[1],10),i=parseInt(t[2],10),n=parseInt(t[3],10),o=r(e,i,n);return[o[0],o[1],o[2],1,[e,i,n]]}},{re:/^hsl\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(t){var e=parseInt(t[1],10),i=parseInt(t[2],10),n=parseInt(t[3],10),o=p(e,i,n);return[o[0],o[1],o[2],1,null,[e,i,n]]}}],v=Math.round;i.prototype={constructor:i,highlight:function(t){return t=t||10,this.alter(t).toHex()},darken:function(t){return t=t||10,this.alter(-t).toHex()},alter:function(t){var e=new i;return e.r=o(this.r+t),e.g=o(this.g+t),e.b=o(this.b+t),e},blend:function(t,e){var n=t instanceof i?t:new i(t),a=new i;return a.r=o(v(this.r*(1-e)+n.r*e)),a.g=o(v(this.g*(1-e)+n.g*e)),a.b=o(v(this.b*(1-e)+n.b*e)),a},toHex:function(){return a(this.r,this.g,this.b)},getPureColor:function(){var t=r(this.hsv.h,100,100);return new i("rgb("+t.join(",")+")")},isValidHex:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},isValidRGB:function(t,e,i){return!!(_(t)&&_(e)&&_(i))},isValidAlpha:function(t){return!(isNaN(t)||t<0||t>1||"number"!=typeof t)},colorIsInvalid:!1},t.exports=i},function(t,e,i){var n=i(18),o=i(56).imageCreator,a=i(10).isFunction,s=i(9).extend,r=i(15),l=r.when,c=r.Deferred,h="%PDF-1.3\r\n2 0 obj\r\n<</ProcSet[/PDF/ImageB/ImageC/ImageI]/XObject<</I0 5 0 R>>>>\r\nendobj\r\n4 0 obj\r\n<</Type/Pages/Kids[1 0 R]/Count 1>>\r\nendobj\r\n7 0 obj\r\n<</OpenAction[1 0 R /FitH null]/Type/Catalog/Pages 4 0 R/PageLayout/OneColumn>>\r\nendobj\r\n1 0 obj\r\n<</Type/Page/Resources 2 0 R/MediaBox[0 0 _width_ _height_]/Contents 3 0 R/Parent 4 0 R>>\r\nendobj\r\n",d="3 0 obj\r\n<</Length 52>>stream\r\n0.20 w\n0 G\nq _width_ 0 0 _height_ 0.00 0.00 cm /I0 Do Q\r\nendstream\r\nendobj\r\n",u="6 0 obj\r\n<</CreationDate _date_/Producer(DevExtreme _version_)>>\r\nendobj\r\n",p="5 0 obj\r\n<</Type/XObject/Subtype/Image/Width _width_/Height _height_/ColorSpace/DeviceRGB/BitsPerComponent 8/Filter/DCTDecode/Length _length_>>stream\r\n",f="\r\nendstream\r\nendobj\r\n",_="trailer\r\n<<\r\n/Size 8\r\n/Root 7 0 R\r\n/Info 6 0 R\r\n>>\r\nstartxref\r\n_length_\r\n%%EOF",m="xref\r\n0 8\r\n0000000000 65535 f\r\n0000000241 00000 n\r\n0000000010 00000 n\r\n_main_ 00000 n\r\n0000000089 00000 n\r\n_image_ 00000 n\r\n_info_ 00000 n\r\n0000000143 00000 n\r\n",g=60,v=40,b=function(t,e){return t.length<e?b("0"+t,e):t},y=function(t,e,i){var o=e.width+g,a=e.height+v,s=(.75*o).toFixed(2),r=(.75*a).toFixed(2),l=h.replace("_width_",s).replace("_height_",r),c=d.replace("_width_",s).replace("_height_",r),m=u.replace("_date_",i).replace("_version_",n),b=p.replace("_width_",o).replace("_height_",a).replace("_length_",t.length)+t+f,y=C(l.length,c.length,m.length),x=l+c+m+b,w=_.replace("_length_",x.length);return x+y+w},C=function(t,e,i){return m.replace("_main_",b(t+"",10)).replace("_info_",b(t+e+"",10)).replace("_image_",b(t+e+i+"",10))},x=function(){return new Date},w=function(t){for(var e=0,i=new Uint8Array(t.length);e<t.length;e++)i[e]=t.charCodeAt(e);return new Blob([i.buffer],{type:"application/pdf"})},S=function(t){return window.btoa(t)};e.getData=function(t,e,i){var n=o.getImageData(t,s({},e,{format:"jpeg"})),r=new c;r.done(i),l(n).done(function(t){var i=y(t,e,x()),n=a(window.Blob)?w(i):S(i);r.resolve(n)})}},function(t,e,i){var n=i(21),o=i(60),a=i(10).isFunction,s=i(17).each,r=i(62).getSvgMarkup,l=i(15),c=l.when,h=l.Deferred;e.svgCreator={_markup:"",_imageArray:{},_imageDeferreds:[],_getBinaryFile:function(t,e){o.sendRequest({url:t,method:"GET",responseType:"arraybuffer"}).done(e).fail(function(){e(!1)})},_loadImages:function(){var t=this;s(t._imageArray,function(e){var i=new h;t._imageDeferreds.push(i),t._getBinaryFile(e,function(n){if(!n)return delete t._imageArray[e],void i.resolve();var o,a="",s=new Uint8Array(n),r=s.byteLength;for(o=0;o<r;o++)a+=String.fromCharCode(s[o]);t._imageArray[e]="data:image/png;base64,"+btoa(a),i.resolve()})})},_parseImages:function(t){var e,i=this;"image"===t.tagName&&(e=n(t).attr("xlink:href"),i._imageArray[e]||(i._imageArray[e]="")),s(t.childNodes,function(t,e){i._parseImages(e)})},_prepareImages:function(t){return this._parseImages(t),this._loadImages(),c.apply(n,this._imageDeferreds)},getData:function(t,e){var i,o=this,l='<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>',c=new h,d=new DOMParser,u=d.parseFromString(t,"image/svg+xml"),p=u.childNodes[0],f=n(p);return f.css("background-color",e.backgroundColor),i=l+r(f.get(0)),o._prepareImages(p).done(function(){s(o._imageArray,function(t,e){i=i.split(t).join(e)}),c.resolve(a(window.Blob)?o._getBlob(i):o._getBase64(i))}),c},_getBlob:function(t){return new Blob([t],{type:"image/svg+xml"})},_getBase64:function(t){return window.btoa(t)}},e.getData=function(t,i,n){e.svgCreator.getData(t,i).done(n)}},function(t,e,i){var n,o=i(15).Deferred,a=i(9).extendFromObject,s=i(10).isDefined,r=i(61),l="success",c="error",h="timeout",d="nocontent",u="parsererror",p=function(t){return 200<=t&&t<300},f=function(t){return 204!==t},_=function(t){var e=[];for(var i in t){var n=t[i];void 0!==n&&(null===n&&(n=""),e.push(encodeURIComponent(i)+"="+encodeURIComponent(n)))}return e.join("&")},m=function(t){var e=document.createElement("script");for(var i in t)e[i]=t[i];return e},g=function(t){t.parentNode.removeChild(t)},v=function(t){return document.head.appendChild(t)},b=function(t){var e=m({text:t});v(e),g(e)},y=function(t){var e=m({src:t});return new r(function(t,i){var n={load:t,error:i},o=function(t){n[t.type](),g(e)};for(var a in n)e.addEventListener(a,o);v(e)})},C=function(t){var e=t.dataType||"*",i="text/javascript, application/javascript, application/ecmascript, application/x-ecmascript",n={"*":"*/*",text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript",jsonp:i,script:i};return a(n,t.accepts,!0),n[e]?n[e]+("*"!==e?", */*; q=0.01":""):n["*"]},x=function(t){var e;return t.data&&!t.upload&&"GET"!==k(t)&&(e="application/x-www-form-urlencoded;charset=utf-8"),t.contentType||e},w=function(t){return t.responseType&&"text"!==t.responseType||"string"!=typeof t.responseText?t.response:t.responseText},S=function(t,e,i){var n=w(e);switch(i){case"jsonp":b(n);break;case"script":b(n),t.resolve(n,l,e);break;case"json":try{t.resolve(JSON.parse(n),l,e)}catch(i){t.reject(e,u,i)}break;default:t.resolve(n,l,e)}},I=function(t){var e=!1,i=document.createElement("a"),n=document.createElement("a");i.href=location.href;try{n.href=t,n.href=n.href,e=i.protocol+"//"+i.host!=n.protocol+"//"+n.host}catch(t){e=!0}return e},T=function(t,e){return t&&setTimeout(function(){e.customStatus=h,e.abort()},t)},E=function(t){if("jsonp"===t.dataType){var e=Math.random().toString().replace(/\D/g,""),i=t.jsonpCallback||"dxCallback"+Date.now()+"_"+e,n=t.jsonp||"callback";return t.data=t.data||{},t.data[n]=i,i}},D=function(t,e){var i=t.data,n=t.url||location.href;return t.cache||(i=i||{},i._=Date.now()),i&&!t.upload&&("string"!=typeof i&&(i=_(i)),"GET"===k(t)?(""!==i&&(n+=(n.indexOf("?")>-1?"&":"?")+i),i=null):e["Content-Type"]&&e["Content-Type"].indexOf("application/x-www-form-urlencoded")>-1&&(i=i.replace(/%20/g,"+"))),{url:n,parameters:i}},k=function(t){return(t.method||"GET").toUpperCase()},B=function(t){var e=t.headers||{};return e["Content-Type"]=e["Content-Type"]||x(t),e.Accept=e.Accept||C(t),t.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e},A=function(t){if(n&&!t.responseType&&!t.upload)return n(t);var e,i=new XMLHttpRequest,a=new o,r=a.promise(),h=!s(t.async)||t.async,u=t.dataType,_=t.timeout||0;t.crossDomain=I(t.url);var m="jsonp"===u||"script"===u;void 0===t.cache&&(t.cache=!m);var g=E(t),v=B(t),b=D(t,v),C=b.url,x=b.parameters;if(g&&(window[g]=function(t){a.resolve(t,l,i)}),t.crossDomain&&m){var w=function(){a.reject(i,c)},A=function(){"jsonp"!==u&&a.resolve(null,l,i)};return y(C).then(A,w),r}if(t.crossDomain&&!("withCredentials"in i))return a.reject(i,c),r;if(i.open(k(t),C,h,t.username,t.password),h&&(i.timeout=_,e=T(_,i,a)),i.onreadystatechange=function(t){4===i.readyState&&(clearTimeout(e),p(i.status)?f(i.status)?S(a,i,u):a.resolve(null,d,i):a.reject(i,i.customStatus||c))},t.upload&&(i.upload.onprogress=t.upload.onprogress,i.upload.onloadstart=t.upload.onloadstart,i.upload.onabort=t.upload.onabort),t.xhrFields)for(var M in t.xhrFields)i[M]=t.xhrFields[M];"arraybuffer"===t.responseType&&(i.responseType=t.responseType);for(var O in v)v.hasOwnProperty(O)&&s(v[O])&&i.setRequestHeader(O,v[O]);return t.beforeSend&&t.beforeSend(i),i.send(x),r.abort=function(){i.abort()},r};e.sendRequest=A,e.setStrategy=function(t){n=t}},function(t,e,i){var n=i(15),o=n.Deferred,a=n.when,s=window.Promise;s||(s=function(t){var e=new o;return t(e.resolve.bind(this),e.reject.bind(this)),e.promise()},s.resolve=function(t){return(new o).resolve(t).promise()},s.reject=function(t){return(new o).reject(t).promise()},s.all=function(t){return a.apply(this,t).then(function(){return[].slice.call(arguments)})}),t.exports=s},function(t,e){function i(t){var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}function n(t){var e=!0;return t.indexOf("xmlns:xlink")===-1&&(t=t.replace("<svg",'<svg xmlns:xlink="http://www.w3.org/1999/xlink"')),t=t.replace(/xmlns="[\s\S]*?"/gi,function(t){return e?(e=!1,t):""}),t.replace(/xmlns:NS1="[\s\S]*?"/gi,"").replace(/NS1:xmlns:xlink="([\s\S]*?)"/gi,'xmlns:xlink="$1"')}function o(t){return t.replace(/"/gi,""").replace(/&/gi,"&").replace(/'/gi,"'").replace(/</gi,"<").replace(/>/gi,">").replace(/ /gi," ").replace(/­/gi,"­")}e.getSvgMarkup=function(t){return n(o(i(t)))}},function(t,e,i){var n=i(21),o=i(30),a=i(9).extend,s=i(14),r=i(7),l=i(64).getPublicElement,c=i(65).resizeCallbacks,h=i(13),d=i(17).each,u=i(10),p=i(25).inArray,f=i(66),_=i(23),m=i(69),g=m.abstract,v="dx-rtl",b="dx-visibility-change-handler",y="VisibilityChange",C=m.inherit({_getDefaultOptions:function(){return a(this.callBase(),{width:void 0,height:void 0,rtlEnabled:s().rtlEnabled,elementAttr:{},disabled:!1,integrationOptions:{}})},ctor:function(t,e){this._$element=n(t),f.attachInstanceToElement(this._$element,this,this._dispose),this.callBase(e)},_visibilityChanged:g,_dimensionChanged:g,_init:function(){this.callBase(),this._attachWindowResizeCallback()},_setOptionsByDevice:function(t){this.callBase([].concat(this.constructor._classCustomRules||[],t||[]))},_isInitialOptionValue:function(t){var e=this.constructor._classCustomRules&&this._convertRulesToOptions(this.constructor._classCustomRules).hasOwnProperty(t);return!e&&this.callBase(t)},_attachWindowResizeCallback:function(){if(this._isDimensionChangeSupported()){var t=this._windowResizeCallBack=this._dimensionChanged.bind(this);c.add(t)}},_isDimensionChangeSupported:function(){return this._dimensionChanged!==g},_render:function(){this._renderElementAttributes(),this._toggleRTLDirection(this.option("rtlEnabled")),this._renderVisibilityChange(),this._renderDimensions()},_renderElementAttributes:function(){var t=a({},this.option("elementAttr")),e=t.class;delete t.class,this.$element().attr(t).addClass(e)},_renderVisibilityChange:function(){this._isDimensionChangeSupported()&&this._attachDimensionChangeHandlers(),this._isVisibilityChangeSupported()&&(this.$element().addClass(b),this._attachVisibilityChangeHandlers())},_renderDimensions:function(){var t=this.$element(),e=t.get(0),i=this._getOptionValue("width",e),n=this._getOptionValue("height",e);t.outerWidth(i),t.outerHeight(n)},_attachDimensionChangeHandlers:function(){var t=this,e="dxresize."+this.NAME+y;o.off(t.$element(),e),o.on(t.$element(),e,function(){t._dimensionChanged()})},_attachVisibilityChangeHandlers:function(){var t=this,e="dxhiding."+this.NAME+y,i="dxshown."+this.NAME+y;t._isHidden=!t._isVisible(),o.off(t.$element(),e),o.on(t.$element(),e,function(){t._checkVisibilityChanged("hiding")}),o.off(t.$element(),i),o.on(t.$element(),i,function(){t._checkVisibilityChanged("shown")})},_isVisible:function(){return this.$element().is(":visible")},_checkVisibilityChanged:function(t){"hiding"===t&&this._isVisible()&&!this._isHidden?(this._visibilityChanged(!1),this._isHidden=!0):"shown"===t&&this._isVisible()&&this._isHidden&&(this._isHidden=!1,this._visibilityChanged(!0))},_isVisibilityChangeSupported:function(){return this._visibilityChanged!==g},_clean:h.noop,_modelByElement:function(){var t=this.option("modelByElement")||h.noop;return t(this.$element())},_invalidate:function(){if(!this._updateLockCount)throw r.Error("E0007");this._requireRefresh=!0},_refresh:function(){this._clean(),this._render()},_dispose:function(){this.callBase(),this._clean(),this._detachWindowResizeCallback()},_detachWindowResizeCallback:function(){this._isDimensionChangeSupported()&&c.remove(this._windowResizeCallBack)},_toggleRTLDirection:function(t){this.$element().toggleClass(v,t)},_createComponent:function(t,e,i){var o=this;i=i||{};var s=h.grep(["rtlEnabled","disabled"],function(t){return!(t in i)}),r=o.option("nestedComponentOptions")||h.noop;o._extendConfig(i,a({integrationOptions:this.option("integrationOptions"),rtlEnabled:this.option("rtlEnabled"),disabled:this.option("disabled")},r(this)));var l;if(u.isString(e)){var c=n(t)[e](i);l=c[e]("instance")}else t&&(l=e.getInstance(t),l?l.option(i):l=new e(t,i));if(l){var d=function(t){p(t.name,s)>=0&&l.option(t.name,t.value)};o.on("optionChanged",d),l.on("disposing",function(){o.off("optionChanged",d)})}return l},_extendConfig:function(t,e){d(e,function(e,i){t[e]=t.hasOwnProperty(e)?t[e]:i})},_defaultActionConfig:function(){return a(this.callBase(),{context:this._modelByElement(this.$element())})},_defaultActionArgs:function(){var t=this._modelByElement(this.$element());return a(this.callBase(),{element:this.element(),model:t})},_optionChanged:function(t){switch(t.name){case"width":case"height":this._renderDimensions();break;case"rtlEnabled":case"elementAttr":this._invalidate();break;case"disabled":case"integrationOptions":break;default:this.callBase(t)}},_removeAttributes:function(t){for(var e=t.attributes.length-1;e>=0;e--){var i=t.attributes[e].name;0!==i.indexOf("aria-")&&i.indexOf("dx-")===-1&&"role"!==i&&"style"!==i&&"tabindex"!==i||t.removeAttribute(i)}},_removeClasses:function(t){var e=t.className.split(" ").filter(function(t){return 0!==t.lastIndexOf("dx-",0)});t.className=e.join(" ")},endUpdate:function(){var t=!this._initializing&&!this._initialized;this.callBase.apply(this,arguments),this._updateLockCount||(t?this._render():this._requireRefresh&&(this._requireRefresh=!1,this._refresh()))},$element:function(){return this._$element},element:function(){return l(this.$element())},dispose:function(){var t=this.$element().get(0);_.cleanDataRecursive(t,!0),t.textContent="",this._removeAttributes(t),this._removeClasses(t)}});C.getInstance=function(t){return f.getInstanceByElement(n(t),this)},C.defaultOptions=function(t){this._classCustomRules=this._classCustomRules||[],this._classCustomRules.push(t)},t.exports=C},function(t,e,i){var n,o=i(21),a=i(30),s=i(7),r=i(25).inArray,l=i(10),c=l.isDefined,h=l.isRenderer,d=i(39),u=function(){var t=document.activeElement;t&&t!==document.body&&t.blur&&t.blur()},p=function(){var t=window.getSelection();if(t&&"Caret"!==t.type)if(t.empty)t.empty();else if(t.removeAllRanges)try{t.removeAllRanges()}catch(t){}},f=function(t,e){var i=o(t),n=o(e);if(i[0]===n[0])return i[0];for(var a=i.parents(),s=n.parents(),r=Math.min(a.length,s.length),l=-r;l<0;l++)if(a.get(l)===s.get(l))return a.get(l)},_=function(t){var e=".dx-visibility-change-handler";return function(i){for(var n=o(i||"body"),s=n.filter(e).add(n.find(e)),r=0;r<s.length;r++)a.triggerHandler(s[r],t)}},m=function(){var t=0;return function(e){return(e||"")+t++}}(),g="data-options",v=function(t){var e,i=o(t).attr(g)||"";"{"!==i.trim().charAt(0)&&(i="{"+i+"}");try{e=new Function("return "+i)()}catch(t){throw s.Error("E3018",t,i)}return e},b=function(t,e){var i=[],n="["+g+"]",a=t.find(n).add(t.filter(n));return a.each(function(t,n){var a=o(n),s=v(n);for(var l in s)(!e||r(l,e)>-1)&&a[l]&&(a[l](s[l]),i.push(a[l]("instance")))}),i},y=function(t){if(!window.WinJS)return o(d.parseHTML(t));var e=o("<div>");return window.WinJS.Utilities.setInnerHTMLUnsafe(e.get(0),t),e.contents()},C=function(t){var e=c(t)&&(t.nodeType||h(t))?o(t):o("<div>").html(t).contents();return 1===e.length&&(e.is("script")?e=C(e.html().trim()):e.is("table")&&(e=e.children("tbody").contents())),e},x=function(t,e,i){i?t.attr(e,i):t.removeAttr(e)},w=function(t,e){var i=t.originalEvent&&t.originalEvent.clipboardData||window.clipboardData;return 1===arguments.length?i&&i.getData("Text"):void(i&&i.setData("Text",e))},S=function(t,e){return e&&(e=e.nodeType===Node.TEXT_NODE?e.parentNode:e),t.nodeType===Node.DOCUMENT_NODE?t.body.contains(e):t.contains(e)},I=function(t){return n(t)},T=function(t){n=t};T(function(t){return t&&t.get(0)}),e.setPublicElementWrapper=T,e.resetActiveElement=u,e.createMarkupFromString=y,e.triggerShownEvent=_("dxshown"),e.triggerHidingEvent=_("dxhiding"),e.triggerResizeEvent=_("dxresize"),e.getElementOptions=v,e.createComponents=b,e.normalizeTemplateElement=C,e.clearSelection=p,e.uniqueId=m,e.closestCommonParent=f,e.clipboardText=w,e.toggleAttr=x,e.contains=S,e.getPublicElement=I},function(t,e,i){var n=i(21),o=i(30),a=i(16),s=function(){var t,e=a(),i=!1,s=e.add,r=e.remove,l=function(){var t=n(window);return{width:t.width(),height:t.height()}},c=function(){var i=l();if(i.width!==t.width||i.height!==t.height){var n;i.width===t.width&&(n="height"),i.height===t.height&&(n="width"),t=i,e.fire(n)}};return t=l(),e.add=function(){var t=s.apply(e,arguments),a=n(window);return!i&&e.has()&&(o.subscribeGlobal(a,"resize",c),i=!0),t},e.remove=function(){var t=r.apply(e,arguments),a=n(window);return!e.has()&&i&&(o.off(a,"resize",c),i=!1),t},e}(),r=function(t){return t<768?"xs":t<992?"sm":t<1200?"md":"lg"},l=function(t){var e=t||r;return e(n(window).width())};e.resizeCallbacks=s,e.defaultScreenFactorFunc=r,e.getCurrentScreenFactor=l},function(t,e,i){var n=i(23),o=i(30),a=i(24),s=i(10).isDefined,r=i(67),l="dxComponents",c="dxPrivateComponent",h=new a,d=0,u=e.name=function(t,e){if(s(e))return void h.set(t,e);if(!h.has(t)){var i=c+d++;return h.set(t,i),i}return h.get(t)};e.attachInstanceToElement=function(t,e,i){var a=n.data(t.get(0)),s=u(e.constructor);a[s]=e,i&&o.one(t,r,function(){i.call(e)}),a[l]||(a[l]=[]),a[l].push(s)},e.getInstanceByElement=function(t,e){var i=u(e);return n.data(t.get(0),i)}},function(t,e,i){var n=i(21),o=i(23).beforeCleanData,a=i(30),s=i(68),r="dxremove",l="dxRemoveEvent";o(function(t){t=[].slice.call(t);for(var e=0;e<t.length;e++){var i=n(t[e]);i.prop(l)&&(i[0][l]=null,a.triggerHandler(i,r))}}),s(r,{noBubble:!0,setup:function(t){n(t).prop(l,!0)}}),t.exports=r},function(t,e,i){var n=i(17).each,o=i(31),a=function(t,e){var i={};"noBubble"in e&&(i.noBubble=e.noBubble),"bindType"in e&&(i.bindType=e.bindType),"delegateType"in e&&(i.delegateType=e.delegateType),n(["setup","teardown","add","remove","trigger","handle","_default","dispose"],function(t,n){e[n]&&(i[n]=function(){var t=[].slice.call(arguments);return t.unshift(this),e[n].apply(e,t)})}),o.fire(t,i)};a.callbacks=o,t.exports=a},function(t,e,i){var n=i(14),o=i(9).extend,a=i(29),s=i(70),r=i(7),l=i(71),c=i(13),h=i(10),d=i(17).map,u=i(16),p=i(72),f=i(66),_=i(74),m=h.isFunction,g=c.noop,v={},b={},y=a.inherit({_setDeprecatedOptions:function(){this._deprecatedOptions={}},_getDeprecatedOptions:function(){return this._deprecatedOptions},_getOptionAliasesByName:function(t){return d(this._deprecatedOptions,function(e,i){return t===e.alias?i:void 0})},_getDefaultOptions:function(){return{onInitialized:null,onOptionChanged:null,onDisposing:null,defaultOptionsRules:null}},_setDefaultOptions:function(){this._options=this._getDefaultOptions()},_defaultOptionsRules:function(){return[]},_setOptionsByDevice:function(t){var e=this._defaultOptionsRules();Array.isArray(t)&&(e=e.concat(t));var i=this._convertRulesToOptions(e);o(!0,this._options,i);for(var n in this._optionsByReference)i.hasOwnProperty(n)&&(this._options[n]=i[n])},_convertRulesToOptions:function(t){for(var e={},i=_.current(),n=function(t,e){var i=[];return Array.prototype.push.call(i,e),1===i.length&&h.isEmptyObject(i[0])||c.findBestMatches(t,i).length>0},a=0;a<t.length;a++){var s,r=t[a],l=r.device||{};s=m(l)?l(i):n(i,l),s&&o(e,r.options)}return e},_isInitialOptionValue:function(t){var e=this.option(t),i=this.initialOption(t),n=m(e)&&m(i)?e.toString()===i.toString():c.equalByValue(e,i);return n},_setOptionsByReference:function(){this._optionsByReference={}},_getOptionsByReference:function(){return this._optionsByReference},ctor:function(t){this.NAME=f.name(this.constructor),t=t||{},t.eventsStrategy&&this.setEventsStrategy(t.eventsStrategy),this._options={},this._updateLockCount=0,this._optionChangedCallbacks=t._optionChangedCallbacks||u(),this._disposingCallbacks=t._disposingCallbacks||u(),this.beginUpdate();try{this._suppressDeprecatedWarnings(),this._setOptionsByReference(),this._setDeprecatedOptions(),this._setDefaultOptions(),t&&t.onInitializing&&t.onInitializing.apply(this,[t]),this._setOptionsByDevice(t.defaultOptionsRules),this._resumeDeprecatedWarnings(),this._initOptions(t)}finally{this.endUpdate()}},_initOptions:function(t){this.option(t)},_optionValuesEqual:function(t,e,i){if(e=l.toComparable(e,!0),i=l.toComparable(i,!0),e&&i&&h.isRenderer(e)&&h.isRenderer(i))return i.is(e);var n=e!==e,o=i!==i;return!(!n||!o)||(null===e||"object"!=typeof e||e instanceof HTMLElement)&&e===i},_init:function(){this._createOptionChangedAction(),this.on("disposing",function(t){this._disposingCallbacks.fireWith(this,[t])}.bind(this))},_createOptionChangedAction:function(){this._optionChangedAction=this._createActionByOption("onOptionChanged",{excludeValidators:["disabled","readOnly","designMode"]})},_createDisposingAction:function(){this._disposingAction=this._createActionByOption("onDisposing",{excludeValidators:["disabled","readOnly","designMode"]})},_optionChanged:function(t){switch(t.name){case"onDisposing":case"onInitialized":break;case"onOptionChanged":this._createOptionChangedAction();break;case"defaultOptionsRules":}},_dispose:function(){this._optionChangedCallbacks.empty(),this._createDisposingAction(),this._disposingAction(),this._disposeEvents(),this._disposed=!0},instance:function(){return this},beginUpdate:function(){this._updateLockCount++},endUpdate:function(){if(this._updateLockCount=Math.max(this._updateLockCount-1,0),!this._updateLockCount&&!this._initializing&&!this._initialized){this._initializing=!0;try{this._init()}finally{this._initializing=!1,this._updateLockCount++,this._createActionByOption("onInitialized",{excludeValidators:["disabled","readOnly","designMode"]})(),this._updateLockCount--,this._initialized=!0}}},_logWarningIfDeprecated:function(t){var e=this._deprecatedOptions[t];e&&!this._deprecatedOptionsSuppressed&&this._logDeprecatedWarning(t,e)},_logDeprecatedWarningCount:0,_logDeprecatedWarning:function(t,e){var i=e.message||"Use the '"+e.alias+"' option instead";r.log("W0001",this.NAME,t,e.since,i),++this._logDeprecatedWarningCount},_suppressDeprecatedWarnings:function(){this._deprecatedOptionsSuppressed=!0},_resumeDeprecatedWarnings:function(){this._deprecatedOptionsSuppressed=!1},_optionChanging:g,_notifyOptionChanged:function(t,e,i){var n=this;if(this._initialized)for(var a=[t].concat(n._getOptionAliasesByName(t)),s=0;s<a.length;s++){var r=a[s],l={name:r.split(/[.\[]/)[0],fullName:r,value:e,previousValue:i};n._optionChangedCallbacks.fireWith(n,[o(n._defaultActionArgs(),l)]),n._optionChangedAction(o({},l)),n._disposed||n._optionChanged(l)}},initialOption:function(t){var e,i=this._initialized;return this._initialOptions||(e=this._options,this._options={},this._initialized=!1,this._setDefaultOptions(),this._setOptionsByDevice(e.defaultOptionsRules),this._initialOptions=this._options,this._options=e,this._initialized=i),this._initialOptions[t]},_defaultActionConfig:function(){return{context:this,component:this}},_defaultActionArgs:function(){return{component:this}},_createAction:function(t,e){var i,n=this;return function(a){return arguments.length||(a={}),h.isPlainObject(a)||(a={actionValue:a}),i=i||new s(t,o(e,n._defaultActionConfig())),i.execute.call(i,o(a,n._defaultActionArgs()))}},_createActionByOption:function(t,e){var i,o,a,s=this,l=function(){if(!o){if(e=e||{},"string"!=typeof t)throw r.Error("E0008");0===t.indexOf("on")&&(o=s._getEventName(t)),a=s.option(t)}if(i||a||e.beforeExecute||e.afterExecute||s.hasEvent(o)){if(!i){var l=e.beforeExecute;e.beforeExecute=function(t){l&&l.apply(s,arguments),s.fireEvent(o,t.args)},s._suppressDeprecatedWarnings(),i=s._createAction(a,e),s._resumeDeprecatedWarnings()}if(n().wrapActionsBeforeExecute){var c=s.option("beforeActionExecute")||g,h=c(s,i,e)||i;return h.apply(s,arguments);
|
|
13
13
|
}return i.apply(s,arguments)}};if(!n().wrapActionsBeforeExecute){var c=s.option("onActionCreated")||g;l=c(s,l,e)||l}return l},_getEventName:function(t){return t.charAt(2).toLowerCase()+t.substr(3)},hasActionSubscription:function(t){return!!this.option(t)||this.hasEvent(this._getEventName(t))},isOptionDeprecated:function(t){var e=this._getDeprecatedOptions();return e.hasOwnProperty(t)},option:function(){var t=function(t,e){var i;if(e){if(!t._cachedDeprecateNames){t._cachedDeprecateNames=[];for(var n in t._deprecatedOptions)t._cachedDeprecateNames.push(n)}for(var o=0;o<t._cachedDeprecateNames.length;o++)if(t._cachedDeprecateNames[o]===e){i=t._deprecatedOptions[e];break}if(i){t._logWarningIfDeprecated(e);var a=i.alias;a&&(e=a)}}return e},e=function(t){var e=t.split(".");return e.pop(),e.join(".")},i=function(t){var e=t.split(".");return e[e.length-1]},n=function(t,e,i){var n=v[e];return n||(n=v[e]=l.compileGetter(e)),n(t,{functionsAsIs:!0,unwrapObservables:i})},o=function(t,o){delete t[o];var a=e(o),s=i(o),r=a?n(t,a,!1):t;r&&delete r[s]},a=function(t,o,a){var s,r="";do r&&(r="."+r),r=i(o)+r,o=e(o),s=o?n(t,o,!1):t;while(!s);s[r]=a},s=function(e,i,n,s){if(n){var r=t(e,n);r&&r!==n&&(a(i,r,s),o(i,n))}},r=function(t,e,i,n){if(h.isPlainObject(n))for(var o in n)r(t,e,i+"."+o,n[o]);s(t,e,i,n)},c=function(t,e,i){b[e]||(b[e]=l.compileSetter(e));var n=e.split(/[.\[]/);b[e](t._options,i,{functionsAsIs:!0,merge:!t._getOptionsByReference()[e],unwrapObservables:n.length>1&&!!t._getOptionsByReference()[n[0]]})},d=function(t,e,i){var o=n(t._options,e,!1);t._optionValuesEqual(e,o,i)||(t._initialized&&t._optionChanging(e,o,i),c(t,e,i),t._notifyOptionChanged(e,i,o))};return function(e,i){var o=this,a=e;if(arguments.length<2&&"object"!==h.type(a))return a=t(o,a),n(o._options,a);"string"==typeof a&&(e={},e[a]=i),o.beginUpdate();try{var s;for(s in e)r(o,e,s,e[s]);for(s in e)d(o,s,e[s])}finally{o.endUpdate()}}}(),_getOptionValue:function(t,e){var i=this.option(t);return m(i)?i.bind(e)():i}}).include(p);t.exports=y},function(t,e,i){var n=i(21),o=i(14),a=i(10),s=i(17).each,r=i(29),l=i(7),c=r.inherit({ctor:function(t,e){e=e||{},this._action=t,this._context=e.context||window,this._beforeExecute=e.beforeExecute,this._afterExecute=e.afterExecute,this._component=e.component,this._validatingTargetName=e.validatingTargetName;var i=this._excludeValidators={};if(e.excludeValidators)for(var n=0;n<e.excludeValidators.length;n++)i[e.excludeValidators[n]]=!0},execute:function(){var t={action:this._action,args:Array.prototype.slice.call(arguments),context:this._context,component:this._component,validatingTargetName:this._validatingTargetName,cancel:!1,handled:!1},e=this._beforeExecute,i=this._afterExecute,n=t.args[0]||{};if("jQueryEvent"in n||!n.event||!o().useJQuery||Object.defineProperty(n,"jQueryEvent",{get:function(){return l.log("W0003","Handler argument","jQueryEvent","17.2","Use the 'event' field instead"),n.event},set:function(t){l.log("W0003","Handler argument","jQueryEvent","17.2","Use the 'event' field instead"),n.event=t}}),this._validateAction(t)&&(e&&e.call(this._context,t),!t.cancel)){var a=this._executeAction(t);if(!n.cancel)return i&&i.call(this._context,t),a}},_validateAction:function(t){var e=this._excludeValidators,i=c.executors;for(var n in i)if(!e[n]){var o=i[n];if(o.validate&&o.validate(t),t.cancel)return!1}return!0},_executeAction:function(t){var e,i=c.executors;for(var n in i){var o=i[n];if(o.execute&&o.execute(t),t.handled){e=t.result;break}}return e}});c.executors={},c.registerExecutor=function(t,e){return a.isPlainObject(t)?void s(t,c.registerExecutor):void(c.executors[t]=e)},c.unregisterExecutor=function(){var t=[].slice.call(arguments);s(t,function(){delete c.executors[this]})},c.registerExecutor({undefined:{execute:function(t){t.action||(t.result=void 0,t.handled=!0)}},func:{execute:function(t){a.isFunction(t.action)&&(t.result=t.action.call(t.context,t.args[0]),t.handled=!0)}}});var h=function(t){return function(e){if(e.args.length){var i=e.args[0],o=i[e.validatingTargetName]||i.element;o&&t(n(o))&&(e.cancel=!0)}}};c.registerExecutor({designMode:{validate:function(t){o().designMode&&(t.cancel=!0)}},disabled:{validate:h(function(t){return t.is(".dx-state-disabled, .dx-state-disabled *")})},readOnly:{validate:h(function(t){return t.is(".dx-state-readonly, .dx-state-readonly *")})}}),t.exports=c},function(t,e,i){var n=i(7),o=i(29),a=i(26),s=i(10),r=i(17).each,l=i(27),c=l.unwrap,h=l.isWrapped,d=l.assign,u=function(t){return t.replace(/\[/g,".").replace(/\]/g,"")},p=function(t,e,i){return i=i||{},"this"===e?m(t,i):m(t[e],i)},f=function(t,e,i,o){if("this"===e)throw new n.Error("E4016");var a=t[e];o.unwrapObservables&&h(a)?d(a,i):t[e]=i},_=function(t){return t=t||{},t.unwrapObservables=void 0===t.unwrapObservables||t.unwrapObservables,t},m=function(t,e){return e.unwrapObservables?c(t):t},g=function(t){if(arguments.length>1&&(t=[].slice.call(arguments)),!t||"this"===t)return function(t){return t};if("string"==typeof t){t=u(t);var e=t.split(".");return function(t,i){i=_(i);for(var n=i.functionsAsIs,o=m(t,i),a=0;a<e.length&&o;a++){var r=m(o[e[a]],i);!n&&s.isFunction(r)&&(r=r.call(o)),o=r}return o}}return Array.isArray(t)?v(t):s.isFunction(t)?t:void 0},v=function(t){for(var e={},i=0,n=t.length;i<n;i++){var o=t[i];e[o]=g(o)}return function(t,i){var n;return r(e,function(e){var o,a,s,r,l=this(t,i);if(void 0!==l){for(o=n||(n={}),a=e.split("."),s=a.length-1,r=0;r<s;r++)o=o[a[r]]={};o[a[r]]=l}}),n}},b=function(t,e,i,n){if(s.isDefined(i))return i;var o={};return f(t,e,o,n),o},y=function(t){t=u(t||"this").split(".");var e=t.length-1;return function(i,n,o){o=_(o);var r=m(i,o);t.forEach(function(t,i){var l=p(r,t,o),c=!o.functionsAsIs&&s.isFunction(l)&&!h(l);i===e?o.merge&&s.isPlainObject(n)&&(!s.isDefined(l)||s.isPlainObject(l))?(l=b(r,t,l,o),a.deepExtendArraySafe(l,n,!1,!0)):c?r[t](n):f(r,t,n,o):(l=b(r,t,l,o),c&&(l=l.call(r)),r=l)})}},C=function(t,e){return t instanceof Date?t.getTime():t&&t instanceof o&&t.valueOf?t.valueOf():e||"string"!=typeof t?t:t.toLowerCase()};e.compileGetter=g,e.compileSetter=y,e.toComparable=C},function(t,e,i){var n=i(73),o=i(17).each,a=i(10).isPlainObject;t.exports={ctor:function(){this._events={},this.setEventsStrategy(new n(this))},setEventsStrategy:function(t){"function"==typeof t&&(t=t(this)),this._eventsStrategy=t},hasEvent:function(t){return this._eventsStrategy.hasEvent(t)},fireEvent:function(t,e){return this._eventsStrategy.fireEvent(t,e),this},on:function(t,e){return a(t)?o(t,function(t,e){this.on(t,e)}.bind(this)):this._eventsStrategy.on(t,e),this},off:function(t,e){return this._eventsStrategy.off(t,e),this},_disposeEvents:function(){this._eventsStrategy.dispose()}}},function(t,e,i){var n=i(16),o=i(10).isFunction,a=i(17).each,s=i(29);t.exports=s.inherit({ctor:function(t){this._events={},this._owner=t},hasEvent:function(t){var e=this._events[t];return!!e&&e.has()},fireEvent:function(t,e){var i=this._events[t];i&&i.fireWith(this._owner,e)},on:function(t,e){var i,o=this._events[t];o||(o=n(),this._events[t]=o),i=o.originalAdd||o.add,i.call(o,e)},off:function(t,e){var i=this._events[t];i&&(o(e)?i.remove(e):i.empty())},dispose:function(){a(this._events,function(){this.empty()})}})},function(t,e,i){var n=i(21),o=i(9).extend,a=i(10).isPlainObject,s=i(17).each,r=i(29),l=i(7),c=i(16),h=i(65).resizeCallbacks,d=i(72),u=i(75).sessionStorage,p=i(76),f=i(14),_={iPhone:"iPhone",iPhone5:"iPhone",iPhone6:"iPhone",iPhone6plus:"iPhone",iPad:"iPad",iPadMini:"iPad Mini",androidPhone:"Android Mobile",androidTablet:"Android",win8:"MSAppHost",win8Phone:"Windows Phone 8.0",msSurface:"Windows ARM Tablet PC",desktop:"desktop",win10Phone:"Windows Phone 10.0",win10:"MSAppHost/3.0"},m={deviceType:"desktop",platform:"generic",version:[],phone:!1,tablet:!1,android:!1,ios:!1,win:!1,generic:!0,grade:"A",mac:!1},g={win:function(t){var e=/windows phone/i.test(t)||t.match(/WPDesktop/),i=!e&&/Windows(.*)arm(.*)Tablet PC/i.test(t),n=!e&&!i&&/msapphost/i.test(t);if(e||i||n){var o=t.match(/windows phone (\d+).(\d+)/i)||t.match(/windows nt (\d+).(\d+)/i),a=[];return o?a.push(parseInt(o[1],10),parseInt(o[2],10)):(o=t.match(/msapphost(\/(\d+).(\d+))?/i),o&&a.push(3===parseInt(o[2],10)?10:8)),{deviceType:e?"phone":i?"tablet":"desktop",platform:"win",version:a,grade:"A"}}},ios:function(t){if(/ip(hone|od|ad)/i.test(t)){var e=/ip(hone|od)/i.test(t),i=t.match(/os (\d+)_(\d+)_?(\d+)?/i),n=i?[parseInt(i[1],10),parseInt(i[2],10),parseInt(i[3]||0,10)]:[],o=480===window.screen.height,a=o?"B":"A";return{deviceType:e?"phone":"tablet",platform:"ios",version:n,grade:a}}},android:function(t){if(/android|htc_|silk/i.test(t)){var e=/mobile/i.test(t),i=t.match(/android (\d+)\.(\d+)\.?(\d+)?/i),n=i?[parseInt(i[1],10),parseInt(i[2],10),parseInt(i[3]||0,10)]:[],o=n.length>1&&(n[0]<4||4===n[0]&&n[1]<4),a=o?"B":"A";return{deviceType:e?"phone":"tablet",platform:"android",version:n,grade:a}}}},v=r.inherit({ctor:function(t){this._window=t&&t.window||window,this._realDevice=this._getDevice(),this._currentDevice=void 0,this._currentOrientation=void 0,this.changed=c(),this._recalculateOrientation(),h.add(this._recalculateOrientation.bind(this))},current:function(t){if(t)return this._currentDevice=this._getDevice(t),this._forced=!0,this.changed.fire(),void("win"===this._currentDevice.platform&&(8===this._currentDevice.version[0]?l.log("W0010","The 'win8' theme","16.1","Use the 'generic' theme instead."):l.log("W0010","The 'win10' theme","17.2","Use the 'generic' theme instead.")));if(!this._currentDevice){t=void 0;try{t=this._getDeviceOrNameFromWindowScope()}catch(e){t=this._getDeviceNameFromSessionStorage()}finally{t||(t=this._getDeviceNameFromSessionStorage()),t&&(this._forced=!0)}this._currentDevice=this._getDevice(t)}return this._currentDevice},real:function(){return o({},this._realDevice)},orientation:function(){return this._currentOrientation},isForced:function(){return this._forced},isRippleEmulator:function(){return!!this._window.tinyHippos},_getCssClasses:function(t){var e=[],i=this._realDevice;return t=t||this.current(),t.deviceType&&(e.push("dx-device-"+t.deviceType),"desktop"!==t.deviceType&&e.push("dx-device-mobile")),e.push("dx-device-"+i.platform),i.version&&i.version.length&&e.push("dx-device-"+i.platform+"-"+i.version[0]),b.isSimulator()&&e.push("dx-simulator"),f().rtlEnabled&&e.push("dx-rtl"),e},attachCssClasses:function(t,e){this._deviceClasses=this._getCssClasses(e).join(" "),n(t).addClass(this._deviceClasses)},detachCssClasses:function(t){n(t).removeClass(this._deviceClasses)},isSimulator:function(){try{return this._isSimulator||this._window.top!==this._window.self&&this._window.top["dx-force-device"]||this.isRippleEmulator()}catch(t){return!1}},forceSimulator:function(){this._isSimulator=!0},_getDevice:function(t){if("genericPhone"===t&&(t={deviceType:"phone",platform:"generic",generic:!0}),a(t))return this._fromConfig(t);var e;if(t){if(e=_[t],!e)throw l.Error("E0005")}else e=navigator.userAgent;return this._fromUA(e)},_getDeviceOrNameFromWindowScope:function(){var t;return(this._window.top["dx-force-device-object"]||this._window.top["dx-force-device"])&&(t=this._window.top["dx-force-device-object"]||this._window.top["dx-force-device"]),t},_getDeviceNameFromSessionStorage:function(){var t=u();if(t){var e=t.getItem("dx-force-device");try{return JSON.parse(e)}catch(t){return e}}},_fromConfig:function(t){var e=o({},m,this._currentDevice,t),i={phone:"phone"===e.deviceType,tablet:"tablet"===e.deviceType,android:"android"===e.platform,ios:"ios"===e.platform,win:"win"===e.platform,generic:"generic"===e.platform};return o(e,i)},_fromUA:function(t){var e;if(s(g,function(i,n){return e=n(t),!e}),e)return this._fromConfig(e);var i=/(mac os)/.test(t.toLowerCase()),n=m;return n.mac=i,n},_changeOrientation:function(){var t=n(this._window),e=t.height()>t.width()?"portrait":"landscape";this._currentOrientation!==e&&(this._currentOrientation=e,this.fireEvent("orientationChanged",[{orientation:e}]))},_recalculateOrientation:function(){var t=n(this._window).width();this._currentWidth!==t&&(this._currentWidth=t,this._changeOrientation())}}).include(d),b=new v;p.changeCallback.add(function(t,e){b.detachCssClasses(e),b.attachCssClasses(t)}),b.isForced()||"win"!==b.current().platform||b.current({version:[10]}),t.exports=b},function(t,e){var i=function(){var t;try{t=window.sessionStorage}catch(t){}return t};e.sessionStorage=i},function(t,e,i){var n=i(21),o=i(77),a=i(16)(),s=n(),r=function(){var t;return function(e){if(!arguments.length)return t;var i=n(e);s=i;var o=!!i.length,l=r();t=o?i:n("body"),a.fire(o?r():n(),l)}}();o(function(){r(".dx-viewport")}),e.value=r,e.changeCallback=a,e.originalViewPort=function(){return s}},function(t,e){t.exports=function(t){if("complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll)return void t();var e=function(){t(),document.removeEventListener("DOMContentLoaded",e)};document.addEventListener("DOMContentLoaded",e)}},function(t,e,i){var n=i(21),o=i(79),a=i(7),s=i(66),r=function(t,e,i){i?e[t]=i:i=e,s.name(i,t),o.fire(t,i)},l=function(t,e){n.fn[t]=function(i){var n,o="string"==typeof i;if(o){var s=i,r=[].slice.call(arguments).slice(1);this.each(function(){var i=e.getInstance(this);if(!i)throw a.Error("E0009",t);var o=i[s],l=o.apply(i,r);void 0===n&&(n=l)})}else this.each(function(){var t=e.getInstance(this);t?t.option(i):new e(this,i)}),n=this;return n}};o.add(l),t.exports=r},function(t,e,i){var n=i(32);t.exports=new n},function(t,e){var i=1e3/60,n=function(t){return this.setTimeout(t,i)},o=function(t){this.clearTimeout(t)},a=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame,s=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame;if(a&&s&&(n=a,o=s),a&&!s){var r={};n=function(t){var e=a.call(window,function(){try{if(e in r)return;t.apply(this,arguments)}finally{delete r[e]}});return e},o=function(t){r[t]=!0}}e.requestAnimationFrame=n.bind(window),e.cancelAnimationFrame=o.bind(window)},function(t,e,i){var n=i(21),o=i(30),a=i(9).extend,s=i(65).resizeCallbacks,r=i(82),l=i(36),c=i(74),h=function(t){t=a({},t);var e=c.real(),i=t.allowZoom,h=t.allowPan,d="allowSelection"in t?t.allowSelection:"generic"===e.platform,u="meta[name=viewport]";n(u).length||n("<meta>").attr("name","viewport").appendTo("head");var p=["width=device-width"],f=[];if(i?f.push("pinch-zoom"):p.push("initial-scale=1.0","maximum-scale=1.0, user-scalable=no"),h&&f.push("pan-x","pan-y"),h||i?n("html").css("-ms-overflow-style","-ms-autohiding-scrollbar"):n("html, body").css({"-ms-content-zooming":"none","-ms-user-select":"none",overflow:"hidden"}),!d&&r.supportProp("user-select")&&n(".dx-viewport").css(l.styleProp("user-select"),"none"),n(u).attr("content",p.join()),n("html").css("-ms-touch-action",f.join(" ")||"none"),e=c.real(),!r.touch||"win"===e.platform&&10===e.version[0]||(o.off(document,".dxInitMobileViewport"),o.on(document,"dxpointermove.dxInitMobileViewport",function(t){var e=t.pointers.length,n="touch"===t.pointerType,o=!i&&e>1,a=!h&&1===e&&!t.isScrollingEvent;n&&(o||a)&&t.preventDefault()})),e.ios){var _="file:"===document.location.protocol;_||s.add(function(){var t=n(window).width();n("body").width(t)})}e.android&&s.add(function(){setTimeout(function(){var t=document.activeElement;t.scrollIntoViewIfNeeded?t.scrollIntoViewIfNeeded():t.scrollIntoView(!1)})})};e.initMobileViewport=h},function(t,e,i){var n=i(25).inArray,o=i(74),a=i(36),s={webkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MsTransitionEnd",transition:"transitionend"},r=function(t){return!!a.styleProp(t)},l=function(){var t=o.real(),e=t.platform,i=t.version,a=i&&i[0]<4&&"android"===e,s=!a&&n(e,["ios","android","win"])>-1||t.mac;return s},c=function(t){if("text"===t)return!0;var e=document.createElement("input");try{return e.setAttribute("type",t),e.value="wrongValue",!e.value}catch(t){return!1}},h="ontouchstart"in window&&!("callPhantom"in window),d=!!window.navigator.pointerEnabled||!!window.navigator.msPointerEnabled,u=!!window.navigator.maxTouchPoints||!!window.navigator.msMaxTouchPoints;e.touchEvents=h,e.pointerEvents=d,e.touch=h||d&&u,e.transition=r("transition"),e.transitionEndEventName=s[a.styleProp("transition")],e.animation=r("animation"),e.nativeScrolling=l(),e.styleProp=a.styleProp,e.stylePropPrefix=a.stylePropPrefix,e.supportProp=r,e.hasKo=!!window.ko,e.inputType=c},function(t,e,i){function n(t){function e(){for(;s.length;){r=!0;var t=s.shift(),i=t();if(void 0!==i){if(i.then)return void a(i).always(e);throw o.Error("E0015")}}r=!1}function i(i,n){t?(s[0]&&n&&n(s[0]),s=[i]):s.push(i),r||e()}function n(){return r}var s=[],r=!1;return{add:i,busy:n}}var o=i(7),a=i(15).when;e.create=n,e.enqueue=n().add},function(t,e,i){function n(t){return C[y(t)]||""}function o(t,e,i){var n=new Date(t.getTime()),o=h(e)?F(e.toLowerCase()):a.isNumeric(e)?g(e):e;return o.years&&n.setFullYear(n.getFullYear()+o.years*i),o.quarters&&n.setMonth(n.getMonth()+3*o.quarters*i),o.months&&n.setMonth(n.getMonth()+o.months*i),o.weeks&&n.setDate(n.getDate()+7*o.weeks*i),o.days&&n.setDate(n.getDate()+o.days*i),o.hours&&n.setTime(n.getTime()+36e5*o.hours*i),o.minutes&&n.setTime(n.getTime()+6e4*o.minutes*i),o.seconds&&n.setTime(n.getTime()+1e3*o.seconds*i),o.milliseconds&&n.setTime(n.getTime()+o.milliseconds*i),n}var a=i(10),s=i(47).adjust,r=i(17).each,l=i(37).camelize,c=a.isObject,h=a.isString,d=a.isDate,u=a.isDefined,p=["millisecond","second","minute","hour","day","week","month","quarter","year"],f=function(t){switch(t){case"millisecond":return 1;case"second":return 1e3*f("millisecond");case"minute":return 60*f("second");case"hour":return 60*f("minute");case"day":return 24*f("hour");case"week":return 7*f("day");case"month":return 30*f("day");case"quarter":return 3*f("month");case"year":return 365*f("day");default:return 0}},_=function(t,e,i){var n=e.getTime()-t.getTime(),o=f(i)||1;return Math.floor(n/o)},m=function(t,e){var i=y(t);switch(i){case"millisecond":return"second";case"second":return"minute";case"minute":return"hour";case"hour":return"day";case"day":return e?"week":"month";case"week":return"month";case"month":return"quarter";case"quarter":return"year";case"year":return"year";default:return 0}},g=function(t){var e,i,n,o=["millisecond","second","minute","hour","day","month","year"],a={};for(e=o.length-1;e>=0;e--)n=o[e],i=Math.floor(t/f(n)),i>0&&(a[n+"s"]=i,t-=b(n,i));return a},v=function(t){var e=0;return c(t)&&r(t,function(t,i){e+=b(t.substr(0,t.length-1),i)}),h(t)&&(e=b(t,1)),e},b=function(t,e){return f(t)*e},y=function(t){var e,i=-1;return h(t)?t:c(t)?(r(t,function(t,n){for(e=0;e<p.length;e++)n&&(t===p[e]+"s"||t===p[e])&&i<e&&(i=e)}),p[i]):""},C={millisecond:"millisecond",second:"longtime",minute:"shorttime",hour:"shorttime",day:"day",week:"day",month:"month",quarter:"quarter",year:"year"},x=function(t){return Math.floor(t/3)},w=function(t){return 3*x(t)},S=function(t,e,i,n){t=new Date(t.getTime());var o,a=new Date(t.getTime()),s=y(e);switch(s){case"second":t=new Date(1e3*Math.floor(a.getTime()/1e3));break;case"minute":t=new Date(6e4*Math.floor(a.getTime()/6e4));break;case"hour":t=new Date(36e5*Math.floor(a.getTime()/36e5));break;case"year":t.setMonth(0);case"month":t.setDate(1);case"day":t.setHours(0,0,0,0);break;case"week":t=X(t,n||0),t.setHours(0,0,0,0);break;case"quarter":o=w(t.getMonth()),t.getMonth()!==o&&t.setMonth(o),t.setDate(1),t.setHours(0,0,0,0)}return i&&"hour"!==s&&"minute"!==s&&"second"!==s&&tt(a,t),t},I=function(t){return ot.correctDateWithUnitBeginning(t,"day")},T=function(t,e){var i,n=0;return i={year:t.getFullYear()!==e.getFullYear(),month:t.getMonth()!==e.getMonth(),day:t.getDate()!==e.getDate(),hour:t.getHours()!==e.getHours(),minute:t.getMinutes()!==e.getMinutes(),second:t.getSeconds()!==e.getSeconds(),millisecond:t.getMilliseconds()!==e.getMilliseconds()},r(i,function(t,e){e&&n++}),0===n&&0!==it(t,e)&&(i.hour=!0,n++),i.count=n,i},E=function(t,e,i){var n=i?-1:1;return d(t)?o(t,e,n):s(t+e*n,e)},D=function(t,e,i){var n,o=[];for(o.push(d(t)?new Date(t.getTime()):t),n=t;n<e;)n=E(n,i),o.push(n);return o},k=function(t,e){return"month"===t?new Date(e.getFullYear(),e.getMonth(),1):"year"===t?new Date(e.getFullYear(),0,e.getDate()):"decade"===t?new Date(U(e),e.getMonth(),e.getDate()):"century"===t?new Date(G(e),e.getMonth(),e.getDate()):void 0},B=function(t,e){return"month"===t?new Date(e.getFullYear(),e.getMonth(),O(e)):"year"===t?new Date(e.getFullYear(),11,e.getDate()):"decade"===t?new Date(U(e)+9,e.getMonth(),e.getDate()):"century"===t?new Date(G(e)+90,e.getMonth(),e.getDate()):void 0},A=function(t,e){var i=new Date(e.getFullYear(),e.getMonth(),1);return"month"===t?i:(i.setMonth(0),"year"===t?i:("decade"===t&&i.setFullYear(U(e)),"century"===t&&i.setFullYear(G(e)),i))},M=function(t,e){var i=new Date(e.getFullYear(),e.getMonth(),O(e));return"month"===t?i:(i.setMonth(11),i.setDate(O(i)),"year"===t?i:("decade"===t&&i.setFullYear(U(e)+9),"century"===t&&i.setFullYear(G(e)+99),i))},O=function(t){var e=new Date(t.getFullYear(),t.getMonth()+1,0);return e.getDate()},P=function(t,e,i){return ot[l("same "+t)](e,i)},$=function(t){switch(t){case"month":return"year";case"year":return"decade";case"decade":return"century"}},H=function(t){switch(t){case"century":return"decade";case"decade":return"year";case"year":return"month"}},V=function(t){var e=1;return"year"===t&&(e=12),"decade"===t&&(e=120),"century"===t&&(e=1200),e},R=function(t){var e=1;return"decade"===t&&(e=12),"century"===t&&(e=120),e},F=function(t){var e={};switch(t){case"year":e.years=1;break;case"month":e.months=1;break;case"quarter":e.months=3;break;case"week":e.weeks=1;break;case"day":e.days=1;break;case"hour":e.hours=1;break;case"minute":e.minutes=1;break;case"second":e.seconds=1;break;case"millisecond":e.milliseconds=1}return e},L=function(t,e){return N(t,e)&&t.getDate()===e.getDate()},N=function(t,e){return W(t,e)&&t.getMonth()===e.getMonth()},W=function(t,e){return t&&e&&t.getFullYear()===e.getFullYear()},z=function(t,e){if(u(t)&&u(e)){var i=t.getFullYear()-t.getFullYear()%10,n=e.getFullYear()-e.getFullYear()%10;return t&&e&&i===n}},K=function(t,e){if(u(t)&&u(e)){var i=t.getFullYear()-t.getFullYear()%100,n=e.getFullYear()-e.getFullYear()%100;return t&&e&&i===n}},G=function(t){return t&&t.getFullYear()-t.getFullYear()%100},U=function(t){return t&&t.getFullYear()-t.getFullYear()%10},j=function(){return"yyyy/MM/dd"},q=function(t){if(u(t)){var e=new Date(t.getFullYear(),t.getMonth(),1);return e}},Y=function(t){if(u(t)){var e=new Date(t.getFullYear(),t.getMonth()+1,0);return e}},X=function(t,e){var i=(t.getDay()-e+7)%7,n=new Date(t);return n.setDate(t.getDate()-i),n},Z=function(t,e){var i=ot.getDatesInterval(t,e,"day"),n=new Date(t);return i>=6&&(n=new Date(n.setDate(n.getDate()+7))),n},Q=function(t,e,i,n){return"date"===n&&(e=e&&ot.correctDateWithUnitBeginning(e,"day"),i=i&&ot.correctDateWithUnitBeginning(i,"day"),t=t&&ot.correctDateWithUnitBeginning(t,"day")),J(t,e,i)===t},J=function(t,e,i){var n=t;return u(t)?(u(e)&&t<e&&(n=e),u(i)&&t>i&&(n=i),n):t},tt=function(t,e){if(u(t)){var i,n,o=e.getHours()-t.getHours();0!==o&&(i=1===o||o===-23?-1:1,n=new Date(e.getTime()+36e5*i),(i>0||n.getDate()===e.getDate())&&e.setTime(n.getTime()))}},et=function(t){return t.setHours(t.getHours()+1),t.setMinutes(0),t},it=function(t,e){return 60*(e.getTimezoneOffset()-t.getTimezoneOffset())*1e3},nt=function(t){return new Date(t)},ot={dateUnitIntervals:p,convertMillisecondsToDateUnits:g,dateToMilliseconds:v,getNextDateUnit:m,convertDateUnitToMilliseconds:b,getDateUnitInterval:y,getDateFormatByTickInterval:n,getDatesDifferences:T,correctDateWithUnitBeginning:S,trimTime:I,addDateInterval:o,addInterval:E,getSequenceByInterval:D,getDateIntervalByString:F,sameDate:L,sameMonthAndYear:N,sameMonth:N,sameYear:W,sameDecade:z,sameCentury:K,sameView:P,getDifferenceInMonth:V,getDifferenceInMonthForCells:R,getFirstYearInDecade:U,getFirstDecadeInCentury:G,getShortDateFormat:j,getViewFirstCellDate:k,getViewLastCellDate:B,getViewDown:H,getViewUp:$,getLastMonthDay:O,getLastMonthDate:Y,getFirstMonthDate:q,getFirstWeekDate:X,normalizeDateByWeek:Z,getQuarter:x,getFirstQuarterMonth:w,dateInRange:Q,roundToHour:et,normalizeDate:J,getViewMinBoundaryDate:A,getViewMaxBoundaryDate:M,fixTimezoneGap:tt,getTimezonesDifference:it,makeDate:nt,getDatesInterval:_};t.exports=ot},function(t,e,i){var n=i(16)();t.exports=function(){n.fire()},t.exports.processCallback=n},function(t,e,i){var n=i(25).inArray,o=function(){var t=[];return{add:function(e){var i=n(e,t);i===-1&&t.push(e)},remove:function(e){var i=n(e,t);i!==-1&&t.splice(i,1)},fire:function(){var e=t.pop(),i=!!e;return i&&e(),i},hasCallback:function(){return t.length>0}}}();t.exports=function(){return o.fire()},t.exports.hideCallback=o},function(t,e,i){var n=i(10),o=i(84),a=i(45),s=i(48),r=i(28),l=i(11).logger;i(55),t.exports=r({format:function(t,e,i){var o=n.isString(e)&&""!==e||n.isPlainObject(e)||n.isFunction(e),r=n.isNumeric(t)||n.isDate(t);return o&&r?n.isFunction(e)?e(t):(void 0!==i&&l.warn("Option 'precision' is deprecated. Use field 'precision' of a format object instead."),n.isString(e)&&(e={type:e,precision:i}),n.isNumeric(t)?a.format(t,e):n.isDate(t)?s.format(t,e):void 0):n.isDefined(t)?t.toString():""},getTimeFormat:function(t){return t?"longtime":"shorttime"},_normalizeFormat:function(t){return Array.isArray(t)?1===t.length?t[0]:function(e){return t.map(function(t){return s.format(e,t)}).join(" ")}:t},getDateFormatByDifferences:function(t,e){var i=[],n=e&&t.millisecond&&!(t.year||t.month||t.day);if(n){var o=function(t){return t.getSeconds()+t.getMilliseconds()/1e3+"s"};i.push(o)}else t.millisecond&&i.push("millisecond");if((t.hour||t.minute||!n&&t.second)&&i.unshift(this.getTimeFormat(t.second)),t.year&&t.month&&t.day)return e&&"year"!==e?"monthandyear":(i.unshift("shortdate"),this._normalizeFormat(i));if(t.year&&t.month)return"monthandyear";if(t.year&&t.quarter)return"quarterandyear";if(t.year)return"year";if(t.quarter)return"quarter";if(t.month&&t.day){if(e){var a=function(t){return s.getMonthNames("abbreviated")[t.getMonth()]+" "+s.format(t,"day")};i.unshift(a)}else i.unshift("monthandday");return this._normalizeFormat(i)}if(t.month)return"month";if(t.day){if(e)i.unshift("day");else{var r=function(t){return s.format(t,"dayofweek")+", "+s.format(t,"day")};i.unshift(r)}return this._normalizeFormat(i)}return this._normalizeFormat(i)},getDateFormatByTicks:function(t){var e,i,n,a;if(t.length>1)for(i=o.getDatesDifferences(t[0],t[1]),a=1;a<t.length-1;a++)n=o.getDatesDifferences(t[a],t[a+1]),i.count<n.count&&(i=n);else i={year:!0,month:!0,day:!0,hour:t[0].getHours()>0,minute:t[0].getMinutes()>0,second:t[0].getSeconds()>0,millisecond:t[0].getMilliseconds()>0};return e=this.getDateFormatByDifferences(i)},getDateFormatByTickInterval:function(t,e,i){var a,s,r,l={week:"day"},c=function(t,e,i){switch(e){case"year":case"quarter":t.month=i;case"month":t.day=i;case"week":case"day":t.hour=i;case"hour":t.minute=i;case"minute":t.second=i;case"second":t.millisecond=i}},h=function(t,e,i){!i.getMilliseconds()&&i.getSeconds()?i.getSeconds()-e.getSeconds()===1&&(t.millisecond=!0,t.second=!1):!i.getSeconds()&&i.getMinutes()?i.getMinutes()-e.getMinutes()===1&&(t.second=!0,t.minute=!1):!i.getMinutes()&&i.getHours()?i.getHours()-e.getHours()===1&&(t.minute=!0,t.hour=!1):!i.getHours()&&i.getDate()>1?i.getDate()-e.getDate()===1&&(t.hour=!0,t.day=!1):1===i.getDate()&&i.getMonth()?i.getMonth()-e.getMonth()===1&&(t.day=!0,t.month=!1):!i.getMonth()&&i.getFullYear()&&i.getFullYear()-e.getFullYear()===1&&(t.month=!0,t.year=!1)};return i=n.isString(i)?i.toLowerCase():i,s=o.getDatesDifferences(t,e),t!==e&&h(s,t>e?e:t,t>e?t:e),r=o.getDateUnitInterval(s),c(s,r,!0),r=o.getDateUnitInterval(i||"second"),c(s,r,!1),s[l[r]||r]=!0,a=this.getDateFormatByDifferences(s)}})},function(t,e,i){var n=i(69),o=i(17).each,a=i(9).extend,s=i(74),r=i(89),l={forward:" dx-forward",backward:" dx-backward",none:" dx-no-direction",undefined:" dx-no-direction"},c="preset_",h=n.inherit({ctor:function(){this.callBase.apply(this,arguments),this._registeredPresets=[],this.resetToDefaults()},_getDefaultOptions:function(){return a(this.callBase(),{defaultAnimationDuration:400,defaultAnimationDelay:0,defaultStaggerAnimationDuration:300,defaultStaggerAnimationDelay:40,defaultStaggerAnimationStartDelay:500})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(t){return t.phone},options:{defaultStaggerAnimationDuration:350,defaultStaggerAnimationDelay:50,defaultStaggerAnimationStartDelay:0}},{device:function(){return s.current().android||s.real.android},options:{defaultAnimationDelay:100}}])},_getPresetOptionName:function(t){return c+t},_createAndroidSlideAnimationConfig:function(t,e){var i=this,n=function(t){return{type:"slide",delay:void 0===t.delay?i.option("defaultAnimationDelay"):t.delay,duration:void 0===t.duration?i.option("defaultAnimationDuration"):t.duration}};return{enter:function(i,o){var a=i.parent().width()*e,s=o.direction,l=n(o);return l.to={left:0,opacity:1},"forward"===s?l.from={left:a,opacity:t}:"backward"===s?l.from={left:-a,opacity:t}:l.from={left:0,opacity:0},r.createAnimation(i,l)},leave:function(i,o){var a=i.parent().width()*e,s=o.direction,l=n(o);return l.from={left:0,opacity:1},"forward"===s?l.to={left:-a,opacity:t}:"backward"===s?l.to={left:a,opacity:t}:l.to={left:0,opacity:0},r.createAnimation(i,l)}}},_createOpenDoorConfig:function(){var t=this,e=function(e){return{type:"css",extraCssClasses:"dx-opendoor-animation",delay:void 0===e.delay?t.option("defaultAnimationDelay"):e.delay,duration:void 0===e.duration?t.option("defaultAnimationDuration"):e.duration}};return{enter:function(t,i){var n=i.direction,o=e(i);return o.delay="none"===n?o.delay:o.duration,o.from="dx-enter dx-opendoor-animation"+l[n],o.to="dx-enter-active",r.createAnimation(t,o)},leave:function(t,i){var n=i.direction,o=e(i);return o.from="dx-leave dx-opendoor-animation"+l[n],o.to="dx-leave-active",r.createAnimation(t,o)}}},_createWinPopConfig:function(){var t=this,e={type:"css",extraCssClasses:"dx-win-pop-animation",duration:t.option("defaultAnimationDuration")};return{enter:function(i,n){var o=e,a=n.direction;return o.delay="none"===a?t.option("defaultAnimationDelay"):t.option("defaultAnimationDuration")/2,o.from="dx-enter dx-win-pop-animation"+l[a],o.to="dx-enter-active",r.createAnimation(i,o)},leave:function(i,n){var o=e,a=n.direction;return o.delay=t.option("defaultAnimationDelay"),o.from="dx-leave dx-win-pop-animation"+l[a],o.to="dx-leave-active",r.createAnimation(i,o)}}},resetToDefaults:function(){this.clear(),this.registerDefaultPresets(),this.applyChanges()},clear:function(t){var e=this,i=[];o(this._registeredPresets,function(n,o){t&&t!==o.name?i.push(o):e.option(e._getPresetOptionName(o.name),void 0)}),this._registeredPresets=i,this.applyChanges()},registerPreset:function(t,e){this._registeredPresets.push({name:t,config:e})},applyChanges:function(){var t=this,e=[];o(this._registeredPresets,function(i,n){var o={device:n.config.device,options:{}};o.options[t._getPresetOptionName(n.name)]=n.config.animation,e.push(o)}),this._setOptionsByDevice(e)},getPreset:function(t){for(var e=t;"string"==typeof e;)e=this.option(this._getPresetOptionName(e));return e},registerDefaultPresets:function(){this.registerPreset("pop",{animation:{extraCssClasses:"dx-android-pop-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("openDoor",{animation:this._createOpenDoorConfig()}),this.registerPreset("win-pop",{animation:this._createWinPopConfig()}),this.registerPreset("fade",{animation:{extraCssClasses:"dx-fade-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),
|
|
14
14
|
this.registerPreset("slide",{device:function(){return s.current().android||s.real.android},animation:this._createAndroidSlideAnimationConfig(1,1)}),this.registerPreset("slide",{device:function(){return!s.current().android&&!s.real.android},animation:{extraCssClasses:"dx-slide-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-slide",{animation:{extraCssClasses:"dx-ios7-slide-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("overflow",{animation:{extraCssClasses:"dx-overflow-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-toolbar",{device:function(){return!s.current().android&&!s.real.android},animation:{extraCssClasses:"dx-ios7-toolbar-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-toolbar",{device:function(){return s.current().android||s.real.android},animation:this._createAndroidSlideAnimationConfig(0,.4)}),this.registerPreset("stagger-fade",{animation:{extraCssClasses:"dx-fade-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-slide",{animation:{extraCssClasses:"dx-slide-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-slide",{animation:{extraCssClasses:"dx-fade-slide-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-drop",{animation:{extraCssClasses:"dx-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-drop",{animation:{extraCssClasses:"dx-fade-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-rise",{animation:{extraCssClasses:"dx-fade-rise-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-3d-drop",{animation:{extraCssClasses:"dx-3d-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-zoom",{animation:{extraCssClasses:"dx-fade-zoom-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}})}});e.PresetCollection=h;var d=new h;e.presets=d},function(t,e,i){var n=i(21),o=i(30),a=i(7),s=i(64).getPublicElement,r=i(9).extend,l=i(10),c=i(17),h=i(90),d=i(91),u=i(80),p=i(82),f=i(92),_=i(67),m=i(93),g=i(15),v=g.when,b=g.Deferred,y=p.transitionEndEventName+".dxFX",C=m.addNamespace(_,"dxFX"),x=l.isFunction,w=l.isPlainObject,S=i(13).noop,I=/^([+-])=(.*)/i,T="dxAnimData",E="dxAnimQueue",D="transform",k={initAnimation:function(t,e){t.css({transitionProperty:"none"}),"string"==typeof e.from?t.addClass(e.from):ct(t,e.from);var i=this,n=new b,o=e.cleanupWhen;e.transitionAnimation={deferred:n,finish:function(){i._finishTransition(t),o?v(n,o).always(function(){i._cleanup(t,e)}):i._cleanup(t,e),n.resolveWith(t,[e,t])}},this._completeAnimationCallback(t,e).done(function(){e.transitionAnimation.finish()}).fail(function(){n.rejectWith(t,[e,t])}),e.duration||e.transitionAnimation.finish(),t.css("transform")},animate:function(t,e){return this._startAnimation(t,e),e.transitionAnimation.deferred.promise()},_completeAnimationCallback:function(t,e){var i,n,a=this,s=Date.now()+e.delay,r=new b,l=new b,c=new b;return e.transitionAnimation.cleanup=function(){clearTimeout(i),clearTimeout(n),o.off(t,y),o.off(t,C)},o.one(t,y,function(){Date.now()-s>=e.duration&&l.reject()}),o.off(t,C),o.on(t,C,function(){a.stop(t,e),r.reject()}),n=setTimeout(function(){i=setTimeout(function(){c.reject()},e.duration+e.delay+dt._simulatedTransitionEndDelay),v(l,c).fail(function(){r.resolve()}.bind(this))}),r.promise()},_startAnimation:function(t,e){t.css({transitionProperty:"all",transitionDelay:e.delay+"ms",transitionDuration:e.duration+"ms",transitionTimingFunction:e.easing}),"string"==typeof e.to?t[0].className+=" "+e.to:e.to&&ct(t,e.to)},_finishTransition:function(t){t.css("transition","none")},_cleanup:function(t,e){e.transitionAnimation.cleanup(),"string"==typeof e.from&&(t.removeClass(e.from),t.removeClass(e.to))},stop:function(t,e,i){e&&(i?e.transitionAnimation.finish():(w(e.to)&&c.each(e.to,function(e){t.css(e,t.css(e))}),this._finishTransition(t),this._cleanup(t,e)))}},B={initAnimation:function(t,e){ct(t,e.from)},animate:function(t,e){var i=new b,n=this;return e?(c.each(e.to,function(i){void 0===e.from[i]&&(e.from[i]=n._normalizeValue(t.css(i)))}),e.to[D]&&(e.from[D]=n._parseTransform(e.from[D]),e.to[D]=n._parseTransform(e.to[D])),e.frameAnimation={to:e.to,from:e.from,currentValue:e.from,easing:d.convertTransitionTimingFuncToEasing(e.easing),duration:e.duration,startTime:(new Date).valueOf(),finish:function(){this.currentValue=this.to,this.draw(),u.cancelAnimationFrame(e.frameAnimation.animationFrameId),i.resolve()},draw:function(){if(e.draw)return void e.draw(this.currentValue);var i=r({},this.currentValue);i[D]&&(i[D]=c.map(i[D],function(t,e){return"translate"===e?h.getTranslateCss(t):"scale"===e?"scale("+t+")":"rotate"===e.substr(0,e.length-1)?e+"("+t+"deg)":void 0}).join(" ")),t.css(i)}},e.delay?(e.frameAnimation.startTime+=e.delay,e.frameAnimation.delayTimeout=setTimeout(function(){n._startAnimation(t,e)},e.delay)):n._startAnimation(t,e),i.promise()):i.reject().promise()},_startAnimation:function(t,e){o.off(t,C),o.on(t,C,function(){e.frameAnimation&&u.cancelAnimationFrame(e.frameAnimation.animationFrameId)}),this._animationStep(t,e)},_parseTransform:function(t){var e={};return c.each(t.match(/\w+\d*\w*\([^)]*\)\s*/g),function(t,i){var n=h.parseTranslate(i),o=i.match(/scale\((.+?)\)/),a=i.match(/(rotate.)\((.+)deg\)/);n&&(e.translate=n),o&&o[1]&&(e.scale=parseFloat(o[1])),a&&a[1]&&(e[a[1]]=parseFloat(a[2]))}),e},stop:function(t,e,i){var n=e&&e.frameAnimation;n&&(u.cancelAnimationFrame(n.animationFrameId),clearTimeout(n.delayTimeout),i&&n.finish(),delete e.frameAnimation)},_animationStep:function(t,e){var i=e&&e.frameAnimation;if(i){var n=(new Date).valueOf();if(n>=i.startTime+i.duration)return void i.finish();i.currentValue=this._calcStepValue(i,n-i.startTime),i.draw();var o=this;i.animationFrameId=u.requestAnimationFrame(function(){o._animationStep(t,e)})}},_calcStepValue:function(t,e){var i=function(n,o){var a=Array.isArray(o)?[]:{},s=function(i){var a=e/t.duration,s=e,r=1*n[i],l=o[i]-n[i],c=t.duration;return d.getEasing(t.easing)(a,s,r,l,c)};return c.each(o,function(t,e){return"string"==typeof e&&parseFloat(e,10)===!1||void(a[t]="object"==typeof e?i(n[t],e):s(t))}),a};return i(t.from,t.to)},_normalizeValue:function(t){var e=parseFloat(t,10);return e===!1?t:e}},A={initAnimation:function(){},animate:function(){return(new b).resolve().promise()},stop:S,isSynchronous:!0},M={transition:p.transition?k:B,frame:B,noAnimation:A},O=function(t){t=t||{};var e=t.strategy||"transition";return"css"!==t.type||p.transition||(e="noAnimation"),M[e]},P=function(t,e,i,n){c.each(["from","to"],function(){if(!i(t[this]))throw a.Error("E0010",e,this,n)})},$=function(t,e){return P(t,e,function(t){return w(t)},"a plain object")},H=function(t,e){return P(t,e,function(t){return"string"==typeof t},"a string")},V={setup:function(){}},R={validateConfig:function(t){H(t,"css")},setup:function(){}},F={top:{my:"bottom center",at:"top center"},bottom:{my:"top center",at:"bottom center"},right:{my:"left center",at:"right center"},left:{my:"right center",at:"left center"}},L={validateConfig:function(t){$(t,"slide")},setup:function(t,e){var i=h.locate(t);if("slide"!==e.type){var n="slideIn"===e.type?e.from:e.to;n.position=r({of:window},F[e.direction]),lt(t,n)}this._setUpConfig(i,e.from),this._setUpConfig(i,e.to),h.clearCache(t)},_setUpConfig:function(t,e){e.left="left"in e?e.left:"+=0",e.top="top"in e?e.top:"+=0",this._initNewPosition(t,e)},_initNewPosition:function(t,e){var i={left:e.left,top:e.top};delete e.left,delete e.top;var n=this._getRelativeValue(i.left);void 0!==n?i.left=n+t.left:e.left=0,n=this._getRelativeValue(i.top),void 0!==n?i.top=n+t.top:e.top=0,e[D]=h.getTranslateCss({x:i.left,y:i.top})},_getRelativeValue:function(t){var e;if("string"==typeof t&&(e=I.exec(t)))return parseInt(e[1]+"1")*e[2]}},N={setup:function(t,e){var i,n=e.from,o=w(n)?e.skipElementInitialStyles?0:t.css("opacity"):String(n);switch(e.type){case"fadeIn":i=1;break;case"fadeOut":i=0;break;default:i=String(e.to)}e.from={visibility:"visible",opacity:o},e.to={opacity:i}}},W={validateConfig:function(t){$(t,"pop")},setup:function(t,e){var i=e.from,n=e.to,o="opacity"in i?i.opacity:t.css("opacity"),a="opacity"in n?n.opacity:1,s="scale"in i?i.scale:0,r="scale"in n?n.scale:1;e.from={opacity:o};var l=h.getTranslate(t);e.from[D]=this._getCssTransform(l,s),e.to={opacity:a},e.to[D]=this._getCssTransform(l,r)},_getCssTransform:function(t,e){return h.getTranslateCss(t)+"scale("+e+")"}},z={custom:V,slide:L,slideIn:L,slideOut:L,fade:N,fadeIn:N,fadeOut:N,pop:W,css:R},K=function(t){var e=z[t.type];if(!e)throw a.Error("E0011",t.type);return e},G={type:"custom",from:{},to:{},duration:400,start:S,complete:S,easing:"ease",delay:0},U={duration:400,easing:"ease",delay:0},j=function(){var t=this,e=t.element,i=t.config;if(lt(e,i.from),lt(e,i.to),t.configurator.setup(e,i),e.data(T,t),dt.off&&(i.duration=0,i.delay=0),t.strategy.initAnimation(e,i),i.start){var n=s(e);i.start.apply(this,[n,i])}},q=function(t){var e=t.element,i=t.config;if(e.removeData(T),i.complete){var n=s(e);i.complete.apply(this,[n,i])}t.deferred.resolveWith(this,[e,i])},Y=function(){var t=this,e=t.element,i=t.config;return t.isStarted=!0,t.strategy.animate(e,i).done(function(){q(t)}).fail(function(){t.deferred.rejectWith(this,[e,i])})},X=function(t){var e=this,i=e.element,n=e.config;clearTimeout(e.startTimeout),e.isStarted||e.start(),e.strategy.stop(i,n,t)},Z=m.addNamespace(_,"dxFXStartAnimation"),Q=function(t){o.off(t.element,Z),o.on(t.element,Z,function(){dt.stop(t.element)}),t.deferred.always(function(){o.off(t.element,Z)})},J=function(t,e){var i="css"===e.type?U:G,o=r(!0,{},i,e),a=K(o),s=O(o),l={element:n(t),config:o,configurator:a,strategy:s,isSynchronous:s.isSynchronous,setup:j,start:Y,stop:X,deferred:new b};return x(a.validateConfig)&&a.validateConfig(o),Q(l),l},tt=function(t,e){var i=n(t);if(!i.length)return(new b).resolve().promise();var o=J(i,e);return et(i,o),o.deferred.promise()},et=function(t,e){var i=it(t);nt(t,i),i.push(e),at(t)||st(t,i)},it=function(t){return t.data(E)||[]},nt=function(t,e){t.data(E,e)},ot=function(t){t.removeData(E)},at=function(t){return!!t.data(T)},st=function(t,e){if(e=it(t),e.length){var i=e.shift();0===e.length&&ot(t),rt(i).done(function(){at(t)||st(t)})}},rt=function(t){return t.setup(),dt.off||t.isSynchronous?t.start():t.startTimeout=setTimeout(function(){t.start()}),t.deferred.promise()},lt=function(t,e){if(e&&e.position){var i=n(window),o=0,a=0,s=f.calculate(t,e.position),l=t.offset(),c=t.position();c.top>l.top&&(a=i.scrollTop()),c.left>l.left&&(o=i.scrollLeft()),r(e,{left:s.h.location-l.left+c.left-o,top:s.v.location-l.top+c.top-a}),delete e.position}},ct=function(t,e){c.each(e,function(e,i){try{t.css(e,l.isFunction(i)?i():i)}catch(t){}})},ht=function(t,e){var i=n(t),o=it(i);c.each(o,function(t,e){e.config.delay=0,e.config.duration=0,e.isSynchronous=!0}),at(i)||st(i,o);var a=i.data(T);a&&a.stop(e),i.removeData(T),ot(i)},dt={off:!1,animationTypes:z,animate:tt,createAnimation:J,isAnimating:at,stop:ht,_simulatedTransitionEndDelay:100};t.exports=dt},function(t,e,i){var n=i(23),o=i(10).type,a="dxTranslator",s=/matrix(3d)?\((.+?)\)/,r=/translate(?:3d)?\((.+?)\)/,l=function(t){var e=d(t);return{left:e.x,top:e.y}},c=function(t,e){var i,n=e.left,o=e.top;void 0===n?(i=d(t),i.y=o||0):void 0===o?(i=d(t),i.x=n||0):(i={x:n||0,y:o||0,z:0},u(t,i)),t.css({transform:m(i)}),(h(n)||h(o))&&p(t)},h=function(t){return"string"===o(t)&&"%"===t[t.length-1]},d=function(t){var e=t.length?n.data(t.get(0),a):null;if(!e){var i=t.css("transform")||m({x:0,y:0}),o=i.match(s),r=o&&o[1];o?(o=o[2].split(","),"3d"===r?o=o.slice(12,15):(o.push(0),o=o.slice(4,7))):o=[0,0,0],e={x:parseFloat(o[0]),y:parseFloat(o[1]),z:parseFloat(o[2])},u(t,e)}return e},u=function(t,e){t.length&&n.data(t.get(0),a,e)},p=function(t){t.length&&n.removeData(t.get(0),a)},f=function(t){t.css({left:0,top:0,transform:"none"}),p(t)},_=function(t){var e=t.match(r);if(e&&e[1])return e=e[1].split(","),e={x:parseFloat(e[0]),y:parseFloat(e[1]),z:parseFloat(e[2])}},m=function(t){t.x=t.x||0,t.y=t.y||0;var e=h(t.x)?t.x:t.x+"px",i=h(t.y)?t.y:t.y+"px";return"translate("+e+", "+i+")"};e.move=c,e.locate=l,e.clearCache=p,e.parseTranslate=_,e.getTranslate=d,e.getTranslateCss=m,e.resetPosition=f},function(t,e,i){var n=i(10).isFunction,o=/cubic-bezier\((\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\)/,a={linear:"cubic-bezier(0, 0, 1, 1)",swing:"cubic-bezier(0.445, 0.05, 0.55, 0.95)",ease:"cubic-bezier(0.25, 0.1, 0.25, 1)","ease-in":"cubic-bezier(0.42, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.58, 1)","ease-in-out":"cubic-bezier(0.42, 0, 0.58, 1)"},s=function(t,e,i,n){var o=3*t,a=3*(i-t)-o,s=1-o-a,r=3*e,l=3*(n-e)-r,c=1-r-l,h=function(t){return t*(o+t*(a+t*s))},d=function(t){return t*(r+t*(l+t*c))},u=function(t){for(var e,i=t,n=0;n<14&&(e=h(i)-t,!(Math.abs(e)<.001));)i-=e/p(i),n++;return i},p=function(t){return o+t*(2*a+3*t*s)};return function(t){return d(u(t))}},r={},l=function(t){t=a[t]||t;var e,i=t.match(o);i||(e="linear",i=a[e].match(o)),i=i.slice(1,5);for(var l=0;l<i.length;l++)i[l]=parseFloat(i[l]);var c=e||"cubicbezier_"+i.join("_").replace(/\./g,"p");return n(r[c])||(r[c]=function(t,e,n,o,a){return o*s(i[0],i[1],i[2],i[3])(e/a)+n}),c};e.setEasing=function(t){r=t},e.getEasing=function(t){return r[t]},e.convertTransitionTimingFuncToEasing=l},function(t,e,i){var n,o=i(21),a=i(13),s=i(17).each,r=i(10).isWindow,l=i(12),c=i(9).extend,h=i(90),d=i(82),u=/left|right/,p=/top|bottom/,f=/fit|flip|none/,_=function(t){var e={h:"center",v:"center"},i=a.splitPair(t);return i&&s(i,function(){var t=String(this).toLowerCase();u.test(t)?e.h=t:p.test(t)&&(e.v=t)}),e},m=function(t){return l.pairToObject(t)},g=function(t){var e=a.splitPair(t),i=String(e&&e[0]).toLowerCase(),n=String(e&&e[1]).toLowerCase();return f.test(i)||(i="none"),f.test(n)||(n=i),{h:i,v:n}},v=function(t){switch(t){case"center":return.5;case"right":case"bottom":return 1;default:return 0}},b=function(t){switch(t){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";default:return t}},y=function(t,e){var i=0;return t.myLocation<e.min&&(i+=e.min-t.myLocation),t.myLocation>e.max&&(i+=t.myLocation-e.max),i},C=function(t,e,i){return e.myLocation<i.min?"h"===t?"left":"top":e.myLocation>i.max?"h"===t?"right":"bottom":"none"},x=function(t){t.myLocation=t.atLocation+v(t.atAlign)*t.atSize-v(t.myAlign)*t.mySize+t.offset},w={fit:function(t,e){var i=!1;t.myLocation>e.max&&(t.myLocation=e.max,i=!0),t.myLocation<e.min&&(t.myLocation=e.min,i=!0),t.fit=i},flip:function(t,e){if(t.flip=!1,("center"!==t.myAlign||"center"!==t.atAlign)&&(t.myLocation<e.min||t.myLocation>e.max)){var i=c({},t,{myAlign:b(t.myAlign),atAlign:b(t.atAlign),offset:-t.offset});x(i),i.oversize=y(i,e),(i.myLocation>=e.min&&i.myLocation<=e.max||t.oversize>i.oversize)&&(t.myLocation=i.myLocation,t.oversize=i.oversize,t.flip=!0)}},flipfit:function(t,e){this.flip(t,e),this.fit(t,e)},none:function(t){t.oversize=0}},S=function(){var t=o("<div>").css({width:100,height:100,overflow:"scroll",position:"absolute",top:-9999}).appendTo(o("body")),e=t.get(0).offsetWidth-t.get(0).clientWidth;t.remove(),n=e},I={h:{location:0,flip:!1,fit:!1,oversize:0},v:{location:0,flip:!1,fit:!1,oversize:0}},T=function(t,e){var i=o(t),a=i.offset(),s=c(!0,{},I,{h:{location:a.left},v:{location:a.top}});if(!e)return s;var l=_(e.my),h=_(e.at),u=o(e.of).length&&e.of||window,p=m(e.offset),f=g(e.collision),v=e.boundary,b=m(e.boundaryOffset),T={mySize:i.outerWidth(),myAlign:l.h,atAlign:h.h,offset:p.h,collision:f.h,boundaryOffset:b.h},E={mySize:i.outerHeight(),myAlign:l.v,atAlign:h.v,offset:p.v,collision:f.v,boundaryOffset:b.v};if(u.preventDefault)T.atLocation=u.pageX,E.atLocation=u.pageY,T.atSize=0,E.atSize=0;else if(u=o(u),r(u[0]))T.atLocation=u.scrollLeft(),E.atLocation=u.scrollTop(),T.atSize=u[0].innerWidth>u[0].outerWidth?u[0].innerWidth:u.width(),E.atSize=u[0].innerHeight>u[0].outerHeight?u[0].innerHeight:u.height();else if(9===u[0].nodeType)T.atLocation=0,E.atLocation=0,T.atSize=u.width(),E.atSize=u.height();else{var D=u.offset();T.atLocation=D.left,E.atLocation=D.top,T.atSize=u.outerWidth(),E.atSize=u.outerHeight()}x(T),x(E);var k=function(){var t=o(window),e=t.width(),i=t.height(),a=t.scrollLeft(),s=t.scrollTop(),r=document.width>document.documentElement.clientWidth,l=document.height>document.documentElement.clientHeight,c=d.touch?document.documentElement.clientWidth/(l?e-n:e):1,h=d.touch?document.documentElement.clientHeight/(r?i-n:i):1;void 0===n&&S();var u=e,p=i;if(v){var f=o(v),_=f.offset();a=_.left,s=_.top,u=f.width(),p=f.height()}return{h:{min:a+T.boundaryOffset,max:a+u/c-T.mySize-T.boundaryOffset},v:{min:s+E.boundaryOffset,max:s+p/h-E.mySize-E.boundaryOffset}}}();T.oversize=y(T,k.h),E.oversize=y(E,k.v),T.collisionSide=C("h",T,k.h),E.collisionSide=C("v",E,k.v),w[T.collision]&&w[T.collision](T,k.h),w[E.collision]&&w[E.collision](E,k.v);var B=function(t){return e.precise?t:Math.round(t)};return c(!0,s,{h:{location:B(T.myLocation),oversize:B(T.oversize),fit:T.fit,flip:T.flip,collisionSide:T.collisionSide},v:{location:B(E.myLocation),oversize:B(E.oversize),fit:E.fit,flip:E.flip,collisionSide:E.collisionSide},precise:e.precise}),s},E=function(t,e){var i=o(t);if(!e)return i.offset();h.resetPosition(i);var n=i.offset(),a=e.h&&e.v?e:T(i,e),s=function(t){return e.precise?t:Math.round(t)};return h.move(i,{left:a.h.location-s(n.left),top:a.v.location-s(n.top)}),a},D=function(t){return t=o(t).get(0),r(t)?null:t&&"pageY"in t&&"pageX"in t?{top:t.pageY,left:t.pageX}:o(t).offset()};E.inverseAlign||(E.inverseAlign=b),E.normalizeAlign||(E.normalizeAlign=_),t.exports={calculateScrollbarWidth:S,calculate:T,setup:E,offset:D}},function(t,e,i){var n=i(21),o=i(30),a=i(7),s=i(94).focused,r=i(9).extend,l=i(17).each,c=function(){var t={dx:/^dx/i,mouse:/(mouse|wheel)/i,touch:/^touch/i,keyboard:/^key/i,pointer:/^(ms)?pointer/i};return function(e){var i="other";return l(t,function(t){if(this.test(e.type))return i=t,!1}),i}}(),h=function(t){return"dx"===c(t)},d=function(t){return"mouse"===c(t)},u=function(t){return"touch"===c(t)},p=function(t){return"pointer"===c(t)},f=function(t){return d(t)||(p(t)||h(t))&&"mouse"===t.pointerType},_=function(t){return u(t)||(p(t)||h(t))&&"touch"===t.pointerType},m=function(t){return"keyboard"===c(t)},g=function(t){return 0===t.screenX&&!t.offsetX&&0===t.pageX},v=function(t){return{x:t.pageX,y:t.pageY,time:t.timeStamp}},b=function(t,e){return{x:e.x-t.x,y:e.y-t.y,time:e.time-t.time||1}},y=function(t){return u(t)?(t.originalEvent.touches||[]).length:h(t)?(t.pointers||[]).length:0},C=function(t){var e=n(t.target),i=e.is("input, textarea, select");return!!e.is(".dx-skip-gesture-event *, .dx-skip-gesture-event")||("dxmousewheel"===t.type?e.is("input[type='number'], textarea, select")&&e.is(":focus"):f(t)?i||t.which>1:_(t)?i&&s(e):void 0)},x=function(t){return t},w=function(t){x=t},S=function(t){return x(o.Event(t,t),t)},I=function(t,e){var i=S(t);return e&&r(i,e),i},T=function(t){var e=I(t.originalEvent,t);return o.trigger(t.delegateTarget||e.target,e),e},E=function(t,e){if(!e)throw a.Error("E0017");return"string"==typeof t?t.indexOf(" ")===-1?t+"."+e:E(t.split(/\s+/g),e):(l(t,function(i,n){t[i]=n+"."+e}),t.join(" "))};t.exports={eventSource:c,isPointerEvent:p,isMouseEvent:f,isTouchEvent:_,isKeyboardEvent:m,isFakeClickEvent:g,hasTouches:y,eventData:v,eventDelta:b,needSkipEvent:C,createEvent:I,fireEvent:T,addNamespace:E,setEventFixMethod:w}},function(t,e,i){var n=i(21),o=function(t,e){if(!a(t))return!1;var i=t.nodeName.toLowerCase(),n=!isNaN(e),o=t.disabled,s=/^(input|select|textarea|button|object|iframe)$/.test(i),r="a"===i,l=!0,c=t.isContentEditable;return l=s||c?!o:r?t.href||n:n},a=function(t){var e=n(t);return e.is(":visible")&&"hidden"!==e.css("visibility")&&"hidden"!==e.parents().css("visibility")};t.exports={focusable:function(t,e){return o(e,n(e).attr("tabIndex"))},tabbable:function(t,e){var i=n(e).attr("tabIndex");return(isNaN(i)||i>=0)&&o(e,i)},focused:function(t){var e=n(t).get(0);return document.activeElement===e}}},function(t,e,i){var n=i(21),o=i(29),a=i(9).extend,s=i(13),r=i(10),l=i(17),c=i(89),h=i(88),d=i(15),u=d.when,p=d.Deferred,f={forward:" dx-forward",backward:" dx-backward",none:" dx-no-direction",undefined:" dx-no-direction"},_="dx-animating",m=o.inherit({ctor:function(){this._accumulatedDelays={enter:0,leave:0},this._animations=[],this.reset()},_createAnimations:function(t,e,i,o){var a,s=this,r=[];return i=i||{},a=this._prepareElementAnimationConfig(e,i,o),a&&t.each(function(){var t=s._createAnimation(n(this),a,i);t&&(t.element.addClass(_),t.setup(),r.push(t))}),r},_prepareElementAnimationConfig:function(t,e,i){var n;if("string"==typeof t){var o=t;t=h.presets.getPreset(o)}if(t)if(r.isFunction(t[i]))n=t[i];else{if(n=a({skipElementInitialStyles:!0,cleanupWhen:this._completePromise},t,e),!n.type||"css"===n.type){var s="dx-"+i,l=(n.extraCssClasses?" "+n.extraCssClasses:"")+f[n.direction];n.type="css",n.from=(n.from||s)+l,n.to=n.to||s+"-active"}n.staggerDelay=n.staggerDelay||0,n.delay=n.delay||0,n.staggerDelay&&(n.delay+=this._accumulatedDelays[i],this._accumulatedDelays[i]+=n.staggerDelay)}else n=void 0;return n},_createAnimation:function(t,e,i){var n;return r.isPlainObject(e)?n=c.createAnimation(t,e):r.isFunction(e)&&(n=e(t,i)),n},_startAnimations:function(){for(var t=this._animations,e=0;e<t.length;e++)t[e].start()},_stopAnimations:function(t){for(var e=this._animations,i=0;i<e.length;i++)e[i].stop(t)},_clearAnimations:function(){for(var t=this._animations,e=0;e<t.length;e++)t[e].element.removeClass(_);this._animations.length=0},reset:function(){this._accumulatedDelays.enter=0,this._accumulatedDelays.leave=0,this._clearAnimations(),this._completeDeferred=new p,this._completePromise=this._completeDeferred.promise()},enter:function(t,e,i){var n=this._createAnimations(t,e,i,"enter");this._animations.push.apply(this._animations,n)},leave:function(t,e,i){var n=this._createAnimations(t,e,i,"leave");this._animations.push.apply(this._animations,n)},start:function(){var t,e=this;if(this._animations.length){var i=l.map(this._animations,function(t){var e=new p;return t.deferred.always(function(){e.resolve()}),e.promise()});t=u.apply(n,i).always(function(){e._completeDeferred.resolve(),e.reset()}),s.executeAsync(function(){e._startAnimations()})}else e.reset(),t=(new p).resolve().promise();return t},stop:function(t){this._stopAnimations(t)}});e.TransitionExecutor=m},function(t,e,i){var n=i(30);e.on=n.on,e.one=n.one,e.off=n.off,e.trigger=n.trigger,e.triggerHandler=n.triggerHandler,e.Event=n.Event},function(t,e,i){var n=i(21),o=i(30),a=i(74),s=i(64),r=i(80),l=i(93),c=i(98),h=i(105),d=i(106),u=i(108).compare,p="dxclick",f=10,_=Math.abs,m=function(t){return n(t).is("input, textarea, select, button ,:focus, :focus *")},g={requestAnimationFrame:r.requestAnimationFrame,cancelAnimationFrame:r.cancelAnimationFrame},v=h.inherit({ctor:function(t){this.callBase(t),this._makeElementClickable(n(t))},_makeElementClickable:function(t){t.attr("onclick")||t.attr("onclick","void(0)")},start:function(t){this._blurPrevented=t.isDefaultPrevented(),this._startTarget=t.target,this._startEventData=l.eventData(t)},end:function(t){return this._eventOutOfElement(t,this.getElement().get(0))||t.type===c.cancel?void this._cancel(t):(m(t.target)||this._blurPrevented||s.resetActiveElement(),this._accept(t),void(this._clickAnimationFrame=g.requestAnimationFrame(function(){this._fireClickEvent(t)}.bind(this))))},_eventOutOfElement:function(t,e){var i=t.target,n=!s.contains(e,i)&&e!==i,o=l.eventDelta(l.eventData(t),this._startEventData),a=_(o.x)>f||_(o.y)>f;return n||a},_fireClickEvent:function(t){this._fireEvent(p,t,{target:s.closestCommonParent(this._startTarget,t.target)})},dispose:function(){g.cancelAnimationFrame(this._clickAnimationFrame)}});!function(){var t="dx-native-click",e=a.real(),i=e.generic||e.ios&&u(e.version,[9,3])>=0||e.android&&u(e.version,[5])>=0,s=function(e){return i||n(e).closest("."+t).length},r=null,c=null,h=function(t){var e=t.originalEvent,i=c!==e,n=!t.which||1===t.which;n&&!r&&s(t.target)&&i&&(c=e,l.fireEvent({type:p,originalEvent:t}))};v=v.inherit({_makeElementClickable:function(t){s(t)||this.callBase(t),o.on(t,"click",h)},configure:function(e){this.callBase(e),e.useNative&&this.getElement().addClass(t)},start:function(t){r=null,s(t.target)||this.callBase(t)},end:function(t){s(t.target)||this.callBase(t)},cancel:function(){r=!0},dispose:function(){this.callBase(),o.off(this.getElement(),"click",h)}})}(),function(){var t=a.real().generic;if(!t){var e=null,i=!1,r=function(t){e=t.target,i=t.isDefaultPrevented()},h=function(t){var o=n(t.target);i||!e||o.is(e)||n(e).is("label")||!m(o)||s.resetActiveElement(),e=null,i=!1},d="NATIVE_CLICK_FIXER";o.subscribeGlobal(document,l.addNamespace(c.down,d),r),o.subscribeGlobal(document,l.addNamespace("click",d),h)}}(),d({emitter:v,bubble:!0,events:[p]}),e.name=p},function(t,e,i){var n=i(82),o=i(17).each,a=i(74),s=i(68),r=i(99),l=i(101),c=i(103),h=i(104),d=function(){if(n.pointerEvents)return l;var t=a.real();return!n.touch||t.tablet||t.phone?n.touch?r:c:h}();o(d.map,function(t,e){s(t,new d(t,e))}),t.exports={down:"dxpointerdown",up:"dxpointerup",move:"dxpointermove",cancel:"dxpointercancel",enter:"dxpointerenter",leave:"dxpointerleave",over:"dxpointerover",out:"dxpointerout"}},function(t,e,i){var n=i(74),o=i(9).extend,a=i(17).each,s=i(100),r={dxpointerdown:"touchstart",dxpointermove:"touchmove",dxpointerup:"touchend",dxpointercancel:"touchcancel",dxpointerover:"",dxpointerout:"",dxpointerenter:"",dxpointerleave:""},l=function(t){var e=[];return a(t.touches,function(t,i){e.push(o({pointerId:i.identifier},i))}),{pointers:e,pointerId:t.changedTouches[0].identifier}},c=function(t){return"ios"===n.real().platform&&("dxpointerdown"===t||"dxpointerup"===t)},h=s.inherit({ctor:function(){this.callBase.apply(this,arguments),this._pointerId=0},_handler:function(t){if(c(this._eventName)){var e=t.changedTouches[0];if(this._pointerId===e.identifier&&0!==this._pointerId)return;this._pointerId=e.identifier}return this.callBase.apply(this,arguments)},_fireEvent:function(t){return this.callBase(o(l(t.originalEvent),t))}});h.map=r,h.normalize=l,t.exports=h},function(t,e,i){var n=i(30),o=i(41),a=i(29),s=i(93),r="dxPointerEvents",l=a.inherit({ctor:function(t,e){this._eventName=t,this._originalEvents=s.addNamespace(e,r),this._handlerCount=0,this.noBubble=this._isNoBubble()},_isNoBubble:function(){var t=this._eventName;return"dxpointerenter"===t||"dxpointerleave"===t},_handler:function(t){var e=this._getDelegateTarget(t);return this._fireEvent({type:this._eventName,pointerType:t.pointerType||s.eventSource(t),originalEvent:t,delegateTarget:e,timeStamp:o.mozilla?(new Date).getTime():t.timeStamp})},_getDelegateTarget:function(t){var e;return this.noBubble&&(e=t.delegateTarget),e},_fireEvent:function(t){return s.fireEvent(t)},_setSelector:function(t){this._selector=this.noBubble&&t?t.selector:null},_getSelector:function(){return this._selector},setup:function(){return!0},add:function(t,e){if(this._handlerCount<=0||this.noBubble){t=this.noBubble?t:document,this._setSelector(e);var i=this;n.on(t,this._originalEvents,this._getSelector(),function(t){i._handler(t)})}this.noBubble||this._handlerCount++},remove:function(t){this._setSelector(t),this.noBubble||this._handlerCount--},teardown:function(t){this._handlerCount&&!this.noBubble||(t=this.noBubble?t:document,this._originalEvents!=="."+r&&n.off(t,this._originalEvents,this._getSelector()))},dispose:function(t){t=this.noBubble?t:document,n.off(t,this._originalEvents)}});t.exports=l},function(t,e,i){var n,o=i(100),a=i(102),s=i(9).extend,r=!window.PointerEvent&&window.MSPointerEvent,l={dxpointerdown:r?"MSPointerDown":"pointerdown",dxpointermove:r?"MSPointerMove":"pointermove",dxpointerup:r?"MSPointerUp":"pointerup",dxpointercancel:r?"MSPointerCancel":"pointercancel",dxpointerover:r?"MSPointerOver":"pointerover",dxpointerout:r?"MSPointerOut":"pointerout",dxpointerenter:r?"mouseenter":"pointerenter",dxpointerleave:r?"mouseleave":"pointerleave"},c=!1,h=function(){c||(n=new a(l,function(t,e){return t.pointerId===e.pointerId},function(t){t.isPrimary&&n.reset()}),c=!0)},d=o.inherit({ctor:function(){this.callBase.apply(this,arguments),h()},_fireEvent:function(t){return this.callBase(s({pointers:n.pointers(),pointerId:t.originalEvent.pointerId},t))}});d.map=l,d.resetObserver=function(){n.reset()},t.exports=d},function(t,e,i){var n=i(17).each,o=function(t,e){t.split(" ").forEach(function(t){document.addEventListener(t,e,!0)})},a=function(t,e,i){i=i||function(){};var a=[],s=function(t){var i=-1;return n(a,function(n,o){return!e(t,o)||(i=n,!1)}),i},r=function(t){s(t)===-1&&(i(t),a.push(t))},l=function(t){var e=s(t);e>-1&&a.splice(e,1)},c=function(t){a[s(t)]=t};o(t.dxpointerdown,r),o(t.dxpointermove,c),o(t.dxpointerup,l),o(t.dxpointercancel,l),this.pointers=function(){return a},this.reset=function(){a=[]}};t.exports=a},function(t,e,i){var n,o=i(9).extend,a=i(100),s=i(102),r={dxpointerdown:"mousedown",dxpointermove:"mousemove",dxpointerup:"mouseup",dxpointercancel:"",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},l=function(t){return t.pointerId=1,{pointers:n.pointers(),pointerId:1}},c=!1,h=function(){c||(n=new s(r,function(){return!0}),c=!0)},d=a.inherit({ctor:function(){this.callBase.apply(this,arguments),h()},_fireEvent:function(t){return this.callBase(o(l(t.originalEvent),t))}});d.map=r,d.normalize=l,d.activate=h,d.resetObserver=function(){n.reset()},t.exports=d},function(t,e,i){var n=i(9).extend,o=i(100),a=i(103),s=i(99),r=i(93),l={dxpointerdown:"touchstart mousedown",dxpointermove:"touchmove mousemove",dxpointerup:"touchend mouseup",dxpointercancel:"touchcancel",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},c=!1,h=function(){c||(a.activate(),c=!0)},d=o.inherit({EVENT_LOCK_TIMEOUT:100,ctor:function(){this.callBase.apply(this,arguments),h()},_handler:function(t){var e=r.isMouseEvent(t);if(e||(this._skipNextEvents=!0),!e||!this._mouseLocked){if(e&&this._skipNextEvents){this._skipNextEvents=!1,this._mouseLocked=!0,clearTimeout(this._unlockMouseTimer);var i=this;return void(this._unlockMouseTimer=setTimeout(function(){i._mouseLocked=!1},this.EVENT_LOCK_TIMEOUT))}return this.callBase(t)}},_fireEvent:function(t){var e=r.isMouseEvent(t.originalEvent),i=e?a.normalize:s.normalize;return this.callBase(n(i(t.originalEvent),t))},dispose:function(){this.callBase(),this._skipNextEvents=!1,this._mouseLocked=!1,
|
|
15
|
-
clearTimeout(this._unlockMouseTimer)}});d.map=l,d.resetObserver=a.resetObserver,t.exports=d},function(t,e,i){var n=i(21),o=i(13).noop,a=i(29),s=i(16),r=i(9).extend,l=i(93),c=a.inherit({ctor:function(t){this._$element=n(t),this._cancelCallback=s(),this._acceptCallback=s()},getElement:function(){return this._$element},validate:function(t){return"dxmousewheel"!==t.type},validatePointers:function(t){return 1===l.hasTouches(t)},allowInterruptionByMouseWheel:function(){return!0},configure:function(t){r(this,t)},addCancelCallback:function(t){this._cancelCallback.add(t)},removeCancelCallback:function(){this._cancelCallback.empty()},_cancel:function(t){this._cancelCallback.fire(this,t)},addAcceptCallback:function(t){this._acceptCallback.add(t)},removeAcceptCallback:function(){this._acceptCallback.empty()},_accept:function(t){this._acceptCallback.fire(this,t)},_requestAccept:function(t){this._acceptRequestEvent=t},_forgetAccept:function(){this._accept(this._acceptRequestEvent),this._acceptRequestEvent=null},start:o,move:o,end:o,cancel:o,reset:function(){this._acceptRequestEvent&&this._accept(this._acceptRequestEvent)},_fireEvent:function(t,e,i){var n=r({type:t,originalEvent:e,target:this._getEmitterTarget(e),delegateTarget:this.getElement().get(0)},i);return e=l.fireEvent(n),e.cancel&&this._cancel(e),e},_getEmitterTarget:function(t){return(this.delegateSelector?n(t.target).closest(this.delegateSelector):this.getElement()).get(0)},dispose:o});t.exports=c},function(t,e,i){var n=i(21),o=i(30),a=i(23),s=i(29),r=i(9).extend,l=i(25).inArray,c=i(17).each,h=i(68),d=i(93),u=i(98),p=i(107),f="dxEventManager",_="dxEmitter",m=s.inherit({ctor:function(){this._attachHandlers(),this.reset(),this._proxiedCancelHandler=this._cancelHandler.bind(this),this._proxiedAcceptHandler=this._acceptHandler.bind(this)},_attachHandlers:function(){o.subscribeGlobal(document,d.addNamespace(u.down,f),this._pointerDownHandler.bind(this)),o.subscribeGlobal(document,d.addNamespace(u.move,f),this._pointerMoveHandler.bind(this)),o.subscribeGlobal(document,d.addNamespace([u.up,u.cancel].join(" "),f),this._pointerUpHandler.bind(this)),o.subscribeGlobal(document,d.addNamespace(p.name,f),this._mouseWheelHandler.bind(this))},_eachEmitter:function(t){for(var e=this._activeEmitters||[],i=0;e.length>i;){var n=e[i];if(t(n)===!1)break;e[i]===n&&i++}},_applyToEmitters:function(t,e){this._eachEmitter(function(i){i[t].call(i,e)})},reset:function(){this._eachEmitter(this._proxiedCancelHandler),this._activeEmitters=[]},resetEmitter:function(t){this._proxiedCancelHandler(t)},_pointerDownHandler:function(t){d.isMouseEvent(t)&&t.which>1||this._updateEmitters(t)},_updateEmitters:function(t){this._isSetChanged(t)&&(this._cleanEmitters(t),this._fetchEmitters(t))},_isSetChanged:function(t){var e=this._closestEmitter(t),i=this._emittersSet||[],n=e.length!==i.length;return c(e,function(t,e){return n=n||i[t]!==e,!n}),this._emittersSet=e,n},_closestEmitter:function(t){function e(e,n){n&&n.validatePointers(t)&&n.validate(t)&&(n.addCancelCallback(i._proxiedCancelHandler),n.addAcceptCallback(i._proxiedAcceptHandler),o.push(n))}for(var i=this,o=[],s=n(t.target);s.length;){var r=a.data(s.get(0),_)||[];c(r,e),s=s.parent()}return o},_acceptHandler:function(t,e){var i=this;this._eachEmitter(function(n){n!==t&&i._cancelEmitter(n,e)})},_cancelHandler:function(t,e){this._cancelEmitter(t,e)},_cancelEmitter:function(t,e){var i=this._activeEmitters;e?t.cancel(e):t.reset(),t.removeCancelCallback(),t.removeAcceptCallback();var n=l(t,i);n>-1&&i.splice(n,1)},_cleanEmitters:function(t){this._applyToEmitters("end",t),this.reset(t)},_fetchEmitters:function(t){this._activeEmitters=this._emittersSet.slice(),this._applyToEmitters("start",t)},_pointerMoveHandler:function(t){this._applyToEmitters("move",t)},_pointerUpHandler:function(t){this._updateEmitters(t)},_mouseWheelHandler:function(t){this._allowInterruptionByMouseWheel()&&(t.pointers=[null],this._pointerDownHandler(t),this._adjustWheelEvent(t),this._pointerMoveHandler(t),t.pointers=[],this._pointerUpHandler(t))},_allowInterruptionByMouseWheel:function(){var t=!0;return this._eachEmitter(function(e){return t=e.allowInterruptionByMouseWheel()&&t}),t},_adjustWheelEvent:function(t){var e=null;if(this._eachEmitter(function(i){if(i.gesture){var n=i.getDirection(t);return"horizontal"!==n&&!t.shiftKey||"vertical"!==n&&t.shiftKey?(e=i,!1):void 0}}),e){var i=e.getDirection(t),n="both"===i&&!t.shiftKey||"vertical"===i,o=n?"pageY":"pageX";t[o]+=t.delta}},isActive:function(t){var e=!1;return this._eachEmitter(function(i){e=e||i.getElement().is(t)}),e}}),g=new m,v="dxEmitterSubscription",b=function(t){var e=t.emitter,i=t.events[0],n=t.events;c(n,function(o,s){h(s,{noBubble:!t.bubble,setup:function(t){var n=a.data(t,v)||{},o=a.data(t,_)||{},r=o[i]||new e(t);n[s]=!0,o[i]=r,a.data(t,_,o),a.data(t,v,n)},add:function(t,e){var n=a.data(t,_),o=n[i];o.configure(r({delegateSelector:e.selector},e.data),e.type)},teardown:function(t){var e=a.data(t,v),o=a.data(t,_),r=o[i];delete e[s];var l=!0;c(n,function(t,i){return l=l&&!e[i]}),l&&(g.isActive(t)&&g.resetEmitter(r),r&&r.dispose(),delete o[i])}})})};t.exports=b},function(t,e,i){var n=i(21),o=i(30),a=i(68),s=i(93),r="dxmousewheel",l="dxWheel",c=void 0!==document.onwheel?"wheel":"mousewheel",h={setup:function(t){var e=n(t);o.on(e,s.addNamespace(c,l),h._wheelHandler.bind(h))},teardown:function(t){o.off(t,"."+l)},_wheelHandler:function(t){var e=this._getWheelDelta(t.originalEvent);s.fireEvent({type:r,originalEvent:t,delta:e,pointerType:"mouse"}),t.stopPropagation()},_getWheelDelta:function(t){return t.wheelDelta?t.wheelDelta:30*-t.deltaY}};a(r,h),e.name=r},function(t,e){e.compare=function(t,e,i){function n(t){return"string"==typeof t?t.split("."):"number"==typeof t?[t]:t}t=n(t),e=n(e);var o=Math.max(t.length,e.length);isFinite(i)&&(o=Math.min(o,i));for(var a=0;a<o;a++){var s=parseInt(t[a]||0,10),r=parseInt(e[a]||0,10);if(s<r)return-1;if(s>r)return 1}return 0}},function(t,e,i){var n=i(21),o=i(30),a=i(74),s=i(36),r=i(41),l=i(64),c=i(77),h=i(47),d=i(13).noop,u=i(10).isDefined,p=i(93),f=i(105),_=h.sign,m=Math.abs,g=0,v=1,b=2,y=10,C=0,x=180,w=function(t){return t&&"dxmousewheel"===t.type},S=function(){var t=s.styleProp("pointer-events"),e=r.msie&&parseInt(r.version,10)<11;return t&&!e},I=function(){var t="dx-gesture-cover",e="generic"===a.real().platform;if(!S()||!e)return d;var i=n("<div>").addClass(t).css("pointerEvents","none");return o.subscribeGlobal(i,"dxmousewheel",function(t){t.preventDefault()}),c(function(){i.appendTo("body")}),function(t,e){i.css("pointerEvents",t?"all":"none"),t&&i.css("cursor",e)}}(),T=f.inherit({gesture:!0,configure:function(t){this.getElement().css("msTouchAction",t.immediate?"pinch-zoom":""),this.callBase(t)},allowInterruptionByMouseWheel:function(){return this._stage!==b},getDirection:function(){return this.direction},_cancel:function(){this.callBase.apply(this,arguments),this._toggleGestureCover(!1),this._stage=g},start:function(t){return p.needSkipEvent(t)?void this._cancel(t):(this._startEvent=p.createEvent(t),this._startEventData=p.eventData(t),this._stage=v,this._init(t),void this._setupImmediateTimer())},_setupImmediateTimer:function(){clearTimeout(this._immediateTimer),this._immediateAccepted=!1,this.immediate&&(this._immediateTimer=setTimeout(function(){this._immediateAccepted=!0}.bind(this),x))},move:function(t){if(this._stage===v&&this._directionConfirmed(t)){if(this._stage=b,this._resetActiveElement(),this._toggleGestureCover(!0),this._clearSelection(t),this._adjustStartEvent(t),this._start(this._startEvent),this._stage===g)return;this._requestAccept(t),this._move(t),this._forgetAccept()}else this._stage===b&&(this._clearSelection(t),this._move(t))},_directionConfirmed:function(t){var e=this._getTouchBoundary(t),i=p.eventDelta(this._startEventData,p.eventData(t)),n=m(i.x),o=m(i.y),a=this._validateMove(e,n,o),s=this._validateMove(e,o,n),r=this.getDirection(t),l="both"===r&&(a||s),c="horizontal"===r&&a,h="vertical"===r&&s;return l||c||h||this._immediateAccepted},_validateMove:function(t,e,i){return e&&e>=t&&(!this.immediate||e>=i)},_getTouchBoundary:function(t){return this.immediate||w(t)?C:y},_adjustStartEvent:function(t){var e=this._getTouchBoundary(t),i=p.eventDelta(this._startEventData,p.eventData(t));this._startEvent.pageX+=_(i.x)*e,this._startEvent.pageY+=_(i.y)*e},_resetActiveElement:function(){"ios"===a.real().platform&&this.getElement().find(":focus").length&&l.resetActiveElement()},_toggleGestureCover:function(t){var e=this._stage===b;e&&I(t,this.getElement().css("cursor"))},_clearSelection:function(t){w(t)||p.isTouchEvent(t)||l.clearSelection()},end:function(t){this._toggleGestureCover(!1),this._stage===b?this._end(t):this._stage===v&&this._stop(t),this._stage=g},dispose:function(){clearTimeout(this._immediateTimer),this.callBase.apply(this,arguments),this._toggleGestureCover(!1)},_init:d,_start:d,_move:d,_stop:d,_end:d});T.initialTouchBoundary=y,T.touchBoundary=function(t){return u(t)?void(y=t):y},t.exports=T},function(t,e,i){e.locale=i(53).locale,e.loadMessages=i(111).load,e.message=i(111),e.number=i(45),e.date=i(48),e.currency=i(55)},function(t,e,i){var n=i(21),o=i(28),a=i(9).extend,s=i(17).each,r=i(12).format,l=i(37).humanize,c=i(53);i(53);var h="-",d=a(!0,{},i(112)),u=i(113),p=function(t){var e=u[t];return e?"root"!==e&&e:t.substr(0,t.lastIndexOf(h))},f=function(t,e){return t[e]||{}},_=function(t,e,i){for(var n,o=f(t,e)[i];!o&&!n;)e=p(e),e?o=f(t,e)[i]:n=!0;return o},m={},g=o({_dictionary:d,load:function(t){a(!0,this._dictionary,t)},_localizablePrefix:"@",setup:function(t){this._localizablePrefix=t},localizeString:function(t){var e=this,i=new RegExp("(^|[^a-zA-Z_0-9"+e._localizablePrefix+"-]+)("+e._localizablePrefix+"{1,2})([a-zA-Z_0-9-]+)","g"),n=e._localizablePrefix+e._localizablePrefix;return t.replace(i,function(t,i,o,a){var s,r=e._localizablePrefix+a;return o!==n&&(s=e.format(a)),s||(m[a]=l(a)),i+(s||r)})},_messageLoaded:function(t,e){return void 0!==_(this._dictionary,e||c.locale(),t)},localizeNode:function(t){var e=this;n(t).each(function(t,i){i.nodeType&&(3===i.nodeType?i.nodeValue=e.localizeString(i.nodeValue):n(i).is("iframe")||(s(i.attributes||[],function(t,i){if("string"==typeof i.value){var n=e.localizeString(i.value);i.value!==n&&(i.value=n)}}),n(i).contents().each(function(t,i){e.localizeNode(i)})))})},getMessagesByLocales:function(){return this._dictionary},getDictionary:function(t){return t?m:a({},m,this.getMessagesByLocales()[c.locale()])},getFormatter:function(t){return this._getFormatterBase(t)||this._getFormatterBase(t,"en")},_getFormatterBase:function(t,e){var i=_(this._dictionary,e||c.locale(),t);if(i)return function(){var t=1===arguments.length&&Array.isArray(arguments[0])?arguments[0].slice(0):Array.prototype.slice.call(arguments,0);return t.unshift(i),r.apply(this,t)}},format:function(t){var e=this.getFormatter(t);return e&&e()||""}});t.exports=g},function(t,e){t.exports={en:{Yes:"Yes",No:"No",Cancel:"Cancel",Clear:"Clear",Done:"Done",Loading:"Loading...",Select:"Select...",Search:"Search",Back:"Back",OK:"OK","dxCollectionWidget-noDataText":"No data to display","validation-required":"Required","validation-required-formatted":"{0} is required","validation-numeric":"Value must be a number","validation-numeric-formatted":"{0} must be a number","validation-range":"Value is out of range","validation-range-formatted":"{0} is out of range","validation-stringLength":"The length of the value is not correct","validation-stringLength-formatted":"The length of {0} is not correct","validation-custom":"Value is invalid","validation-custom-formatted":"{0} is invalid","validation-compare":"Values do not match","validation-compare-formatted":"{0} does not match","validation-pattern":"Value does not match pattern","validation-pattern-formatted":"{0} does not match pattern","validation-email":"Email is invalid","validation-email-formatted":"{0} is invalid","validation-mask":"Value is invalid","dxLookup-searchPlaceholder":"Minimum character number: {0}","dxList-pullingDownText":"Pull down to refresh...","dxList-pulledDownText":"Release to refresh...","dxList-refreshingText":"Refreshing...","dxList-pageLoadingText":"Loading...","dxList-nextButtonText":"More","dxList-selectAll":"Select All","dxListEditDecorator-delete":"Delete","dxListEditDecorator-more":"More","dxScrollView-pullingDownText":"Pull down to refresh...","dxScrollView-pulledDownText":"Release to refresh...","dxScrollView-refreshingText":"Refreshing...","dxScrollView-reachBottomText":"Loading...","dxDateBox-simulatedDataPickerTitleTime":"Select time","dxDateBox-simulatedDataPickerTitleDate":"Select date","dxDateBox-simulatedDataPickerTitleDateTime":"Select date and time","dxDateBox-validation-datetime":"Value must be a date or time","dxFileUploader-selectFile":"Select file","dxFileUploader-dropFile":"or Drop file here","dxFileUploader-bytes":"bytes","dxFileUploader-kb":"kb","dxFileUploader-Mb":"Mb","dxFileUploader-Gb":"Gb","dxFileUploader-upload":"Upload","dxFileUploader-uploaded":"Uploaded","dxFileUploader-readyToUpload":"Ready to upload","dxFileUploader-uploadFailedMessage":"Upload failed","dxRangeSlider-ariaFrom":"From","dxRangeSlider-ariaTill":"Till","dxSwitch-onText":"ON","dxSwitch-offText":"OFF","dxForm-optionalMark":"optional","dxForm-requiredMessage":"{0} is required","dxNumberBox-invalidValueMessage":"Value must be a number","dxDataGrid-columnChooserTitle":"Column Chooser","dxDataGrid-columnChooserEmptyText":"Drag a column here to hide it","dxDataGrid-groupContinuesMessage":"Continues on the next page","dxDataGrid-groupContinuedMessage":"Continued from the previous page","dxDataGrid-groupHeaderText":"Group by This Column","dxDataGrid-ungroupHeaderText":"Ungroup","dxDataGrid-ungroupAllText":"Ungroup All","dxDataGrid-editingEditRow":"Edit","dxDataGrid-editingSaveRowChanges":"Save","dxDataGrid-editingCancelRowChanges":"Cancel","dxDataGrid-editingDeleteRow":"Delete","dxDataGrid-editingUndeleteRow":"Undelete","dxDataGrid-editingConfirmDeleteMessage":"Are you sure you want to delete this record?","dxDataGrid-validationCancelChanges":"Cancel changes","dxDataGrid-groupPanelEmptyText":"Drag a column header here to group by that column","dxDataGrid-noDataText":"No data","dxDataGrid-searchPanelPlaceholder":"Search...","dxDataGrid-filterRowShowAllText":"(All)","dxDataGrid-filterRowResetOperationText":"Reset","dxDataGrid-filterRowOperationEquals":"Equals","dxDataGrid-filterRowOperationNotEquals":"Does not equal","dxDataGrid-filterRowOperationLess":"Less than","dxDataGrid-filterRowOperationLessOrEquals":"Less than or equal to","dxDataGrid-filterRowOperationGreater":"Greater than","dxDataGrid-filterRowOperationGreaterOrEquals":"Greater than or equal to","dxDataGrid-filterRowOperationStartsWith":"Starts with","dxDataGrid-filterRowOperationContains":"Contains","dxDataGrid-filterRowOperationNotContains":"Does not contain","dxDataGrid-filterRowOperationEndsWith":"Ends with","dxDataGrid-filterRowOperationBetween":"Between","dxDataGrid-filterRowOperationBetweenStartText":"Start","dxDataGrid-filterRowOperationBetweenEndText":"End","dxDataGrid-applyFilterText":"Apply filter","dxDataGrid-trueText":"true","dxDataGrid-falseText":"false","dxDataGrid-sortingAscendingText":"Sort Ascending","dxDataGrid-sortingDescendingText":"Sort Descending","dxDataGrid-sortingClearText":"Clear Sorting","dxDataGrid-editingSaveAllChanges":"Save changes","dxDataGrid-editingCancelAllChanges":"Discard changes","dxDataGrid-editingAddRow":"Add a row","dxDataGrid-summaryMin":"Min: {0}","dxDataGrid-summaryMinOtherColumn":"Min of {1} is {0}","dxDataGrid-summaryMax":"Max: {0}","dxDataGrid-summaryMaxOtherColumn":"Max of {1} is {0}","dxDataGrid-summaryAvg":"Avg: {0}","dxDataGrid-summaryAvgOtherColumn":"Avg of {1} is {0}","dxDataGrid-summarySum":"Sum: {0}","dxDataGrid-summarySumOtherColumn":"Sum of {1} is {0}","dxDataGrid-summaryCount":"Count: {0}","dxDataGrid-columnFixingFix":"Fix","dxDataGrid-columnFixingUnfix":"Unfix","dxDataGrid-columnFixingLeftPosition":"To the left","dxDataGrid-columnFixingRightPosition":"To the right","dxDataGrid-exportTo":"Export","dxDataGrid-exportToExcel":"Export to Excel file","dxDataGrid-excelFormat":"Excel file","dxDataGrid-selectedRows":"Selected rows","dxDataGrid-exportSelectedRows":"Export selected rows","dxDataGrid-exportAll":"Export all data","dxDataGrid-headerFilterEmptyValue":"(Blanks)","dxDataGrid-headerFilterOK":"OK","dxDataGrid-headerFilterCancel":"Cancel","dxDataGrid-ariaColumn":"Column","dxDataGrid-ariaValue":"Value","dxDataGrid-ariaFilterCell":"Filter cell","dxDataGrid-ariaCollapse":"Collapse","dxDataGrid-ariaExpand":"Expand","dxDataGrid-ariaDataGrid":"Data grid","dxDataGrid-ariaSearchInGrid":"Search in data grid","dxDataGrid-ariaSelectAll":"Select all","dxDataGrid-ariaSelectRow":"Select row","dxTreeList-ariaTreeList":"Tree list","dxTreeList-editingAddRowToNode":"Add","dxPager-infoText":"Page {0} of {1} ({2} items)","dxPager-pagesCountText":"of","dxPivotGrid-grandTotal":"Grand Total","dxPivotGrid-total":"{0} Total","dxPivotGrid-fieldChooserTitle":"Field Chooser","dxPivotGrid-showFieldChooser":"Show Field Chooser","dxPivotGrid-expandAll":"Expand All","dxPivotGrid-collapseAll":"Collapse All","dxPivotGrid-sortColumnBySummary":'Sort "{0}" by This Column',"dxPivotGrid-sortRowBySummary":'Sort "{0}" by This Row',"dxPivotGrid-removeAllSorting":"Remove All Sorting","dxPivotGrid-dataNotAvailable":"N/A","dxPivotGrid-rowFields":"Row Fields","dxPivotGrid-columnFields":"Column Fields","dxPivotGrid-dataFields":"Data Fields","dxPivotGrid-filterFields":"Filter Fields","dxPivotGrid-allFields":"All Fields","dxPivotGrid-columnFieldArea":"Drop Column Fields Here","dxPivotGrid-dataFieldArea":"Drop Data Fields Here","dxPivotGrid-rowFieldArea":"Drop Row Fields Here","dxPivotGrid-filterFieldArea":"Drop Filter Fields Here","dxScheduler-editorLabelTitle":"Subject","dxScheduler-editorLabelStartDate":"Start Date","dxScheduler-editorLabelEndDate":"End Date","dxScheduler-editorLabelDescription":"Description","dxScheduler-editorLabelRecurrence":"Repeat","dxScheduler-openAppointment":"Open appointment","dxScheduler-recurrenceNever":"Never","dxScheduler-recurrenceDaily":"Daily","dxScheduler-recurrenceWeekly":"Weekly","dxScheduler-recurrenceMonthly":"Monthly","dxScheduler-recurrenceYearly":"Yearly","dxScheduler-recurrenceEvery":"Every","dxScheduler-recurrenceEnd":"End repeat","dxScheduler-recurrenceAfter":"After","dxScheduler-recurrenceOn":"On","dxScheduler-recurrenceRepeatDaily":"day(s)","dxScheduler-recurrenceRepeatWeekly":"week(s)","dxScheduler-recurrenceRepeatMonthly":"month(s)","dxScheduler-recurrenceRepeatYearly":"year(s)","dxScheduler-switcherDay":"Day","dxScheduler-switcherWeek":"Week","dxScheduler-switcherWorkWeek":"Work Week","dxScheduler-switcherMonth":"Month","dxScheduler-switcherAgenda":"Agenda","dxScheduler-switcherTimelineDay":"Timeline Day","dxScheduler-switcherTimelineWeek":"Timeline Week","dxScheduler-switcherTimelineWorkWeek":"Timeline Work Week","dxScheduler-switcherTimelineMonth":"Timeline Month","dxScheduler-recurrenceRepeatOnDate":"on date","dxScheduler-recurrenceRepeatCount":"occurrence(s)","dxScheduler-allDay":"All day","dxScheduler-confirmRecurrenceEditMessage":"Do you want to edit only this appointment or the whole series?","dxScheduler-confirmRecurrenceDeleteMessage":"Do you want to delete only this appointment or the whole series?","dxScheduler-confirmRecurrenceEditSeries":"Edit series","dxScheduler-confirmRecurrenceDeleteSeries":"Delete series","dxScheduler-confirmRecurrenceEditOccurrence":"Edit appointment","dxScheduler-confirmRecurrenceDeleteOccurrence":"Delete appointment","dxScheduler-noTimezoneTitle":"No timezone","dxScheduler-moreAppointments":"{0} more","dxCalendar-todayButtonText":"Today","dxCalendar-ariaWidgetName":"Calendar","dxColorView-ariaRed":"Red","dxColorView-ariaGreen":"Green","dxColorView-ariaBlue":"Blue","dxColorView-ariaAlpha":"Transparency","dxColorView-ariaHex":"Color code","dxTagBox-selected":"{0} selected","dxTagBox-allSelected":"All selected ({0})","dxTagBox-moreSelected":"{0} more","vizExport-printingButtonText":"Print","vizExport-titleMenuText":"Exporting/Printing","vizExport-exportButtonText":"{0} file","dxFilterBuilder-and":"And","dxFilterBuilder-or":"Or","dxFilterBuilder-notAnd":"Not And","dxFilterBuilder-notOr":"Not Or","dxFilterBuilder-addCondition":"Add Condition","dxFilterBuilder-addGroup":"Add Group","dxFilterBuilder-enterValueText":"<enter a value>","dxFilterBuilder-filterOperationEquals":"Equals","dxFilterBuilder-filterOperationNotEquals":"Does not equal","dxFilterBuilder-filterOperationLess":"Less than","dxFilterBuilder-filterOperationLessOrEquals":"Less than or equal to","dxFilterBuilder-filterOperationGreater":"Greater than","dxFilterBuilder-filterOperationGreaterOrEquals":"Greater than or equal to","dxFilterBuilder-filterOperationStartsWith":"Starts with","dxFilterBuilder-filterOperationContains":"Contains","dxFilterBuilder-filterOperationNotContains":"Does not contain","dxFilterBuilder-filterOperationEndsWith":"Ends with","dxFilterBuilder-filterOperationIsBlank":"Is blank","dxFilterBuilder-filterOperationIsNotBlank":"Is not blank"}}},function(t,e){t.exports={"en-150":"en-001","en-AG":"en-001","en-AI":"en-001","en-AU":"en-001","en-BB":"en-001","en-BM":"en-001","en-BS":"en-001","en-BW":"en-001","en-BZ":"en-001","en-CA":"en-001","en-CC":"en-001","en-CK":"en-001","en-CM":"en-001","en-CX":"en-001","en-CY":"en-001","en-DG":"en-001","en-DM":"en-001","en-ER":"en-001","en-FJ":"en-001","en-FK":"en-001","en-FM":"en-001","en-GB":"en-001","en-GD":"en-001","en-GG":"en-001","en-GH":"en-001","en-GI":"en-001","en-GM":"en-001","en-GY":"en-001","en-HK":"en-001","en-IE":"en-001","en-IL":"en-001","en-IM":"en-001","en-IN":"en-001","en-IO":"en-001","en-JE":"en-001","en-JM":"en-001","en-KE":"en-001","en-KI":"en-001","en-KN":"en-001","en-KY":"en-001","en-LC":"en-001","en-LR":"en-001","en-LS":"en-001","en-MG":"en-001","en-MO":"en-001","en-MS":"en-001","en-MT":"en-001","en-MU":"en-001","en-MW":"en-001","en-MY":"en-001","en-NA":"en-001","en-NF":"en-001","en-NG":"en-001","en-NR":"en-001","en-NU":"en-001","en-NZ":"en-001","en-PG":"en-001","en-PH":"en-001","en-PK":"en-001","en-PN":"en-001","en-PW":"en-001","en-RW":"en-001","en-SB":"en-001","en-SC":"en-001","en-SD":"en-001","en-SG":"en-001","en-SH":"en-001","en-SL":"en-001","en-SS":"en-001","en-SX":"en-001","en-SZ":"en-001","en-TC":"en-001","en-TK":"en-001","en-TO":"en-001","en-TT":"en-001","en-TV":"en-001","en-TZ":"en-001","en-UG":"en-001","en-VC":"en-001","en-VG":"en-001","en-VU":"en-001","en-WS":"en-001","en-ZA":"en-001","en-ZM":"en-001","en-ZW":"en-001","en-AT":"en-150","en-BE":"en-150","en-CH":"en-150","en-DE":"en-150","en-DK":"en-150","en-FI":"en-150","en-NL":"en-150","en-SE":"en-150","en-SI":"en-150","es-AR":"es-419","es-BO":"es-419","es-BR":"es-419","es-BZ":"es-419","es-CL":"es-419","es-CO":"es-419","es-CR":"es-419","es-CU":"es-419","es-DO":"es-419","es-EC":"es-419","es-GT":"es-419","es-HN":"es-419","es-MX":"es-419","es-NI":"es-419","es-PA":"es-419","es-PE":"es-419","es-PR":"es-419","es-PY":"es-419","es-SV":"es-419","es-US":"es-419","es-UY":"es-419","es-VE":"es-419","pt-AO":"pt-PT","pt-CH":"pt-PT","pt-CV":"pt-PT","pt-FR":"pt-PT","pt-GQ":"pt-PT","pt-GW":"pt-PT","pt-LU":"pt-PT","pt-MO":"pt-PT","pt-MZ":"pt-PT","pt-ST":"pt-PT","pt-TL":"pt-PT","az-Arab":"root","az-Cyrl":"root","blt-Latn":"root","bm-Nkoo":"root","bs-Cyrl":"root","byn-Latn":"root","cu-Glag":"root","dje-Arab":"root","dyo-Arab":"root","en-Dsrt":"root","en-Shaw":"root","ff-Adlm":"root","ff-Arab":"root","ha-Arab":"root","hi-Latn":"root","iu-Latn":"root","kk-Arab":"root","ks-Deva":"root","ku-Arab":"root","ky-Arab":"root","ky-Latn":"root","ml-Arab":"root","mn-Mong":"root","mni-Mtei":"root","ms-Arab":"root","pa-Arab":"root","sat-Deva":"root","sd-Deva":"root","sd-Khoj":"root","sd-Sind":"root","shi-Latn":"root","so-Arab":"root","sr-Latn":"root","sw-Arab":"root","tg-Arab":"root","ug-Cyrl":"root","uz-Arab":"root","uz-Cyrl":"root","vai-Latn":"root","wo-Arab":"root","yo-Arab":"root","yue-Hans":"root","zh-Hant":"root","zh-Hant-MO":"zh-Hant-HK"}},function(t,e,i){i(6),i(115),t.exports=DevExpress.framework={},DevExpress.framework.dxCommand=i(143),DevExpress.framework.Router=i(159),DevExpress.framework.StateManager=i(160),DevExpress.framework.ViewCache=i(161),DevExpress.framework.NullViewCache=i(161).NullViewCache,DevExpress.framework.ConditionalViewCacheDecorator=i(161).ConditionalViewCacheDecorator,DevExpress.framework.CapacityViewCacheDecorator=i(161).CapacityViewCacheDecorator,DevExpress.framework.HistoryDependentViewCacheDecorator=i(161).HistoryDependentViewCacheDecorator,DevExpress.framework.dxCommandContainer=i(162),DevExpress.framework.dxView=i(164).dxView,DevExpress.framework.dxLayout=i(164).dxLayout,DevExpress.framework.dxViewPlaceholder=i(164).dxViewPlaceholder,DevExpress.framework.dxContentPlaceholder=i(164).dxContentPlaceholder,DevExpress.framework.dxTransition=i(164).dxTransition,DevExpress.framework.dxContent=i(164).dxContent,DevExpress.framework.html={},DevExpress.framework.html.HtmlApplication=i(165),DevExpress.framework.Route=i(159).Route,DevExpress.framework.MemoryKeyValueStorage=i(160).MemoryKeyValueStorage,DevExpress.framework.NavigationDevices=i(170),DevExpress.framework.NavigationManager=i(169),DevExpress.framework.createActionExecutors=i(168).createActionExecutors,DevExpress.framework.Application=i(166).Application;var n=i(171);DevExpress.framework.DefaultBrowserAdapter=n.DefaultBrowserAdapter,DevExpress.framework.OldBrowserAdapter=n.OldBrowserAdapter,DevExpress.framework.BuggyAndroidBrowserAdapter=n.BuggyAndroidBrowserAdapter,DevExpress.framework.HistorylessBrowserAdapter=n.HistorylessBrowserAdapter,DevExpress.framework.BuggyCordovaWP81BrowserAdapter=n.BuggyCordovaWP81BrowserAdapter,DevExpress.framework.CommandMapping=i(172),DevExpress.framework.HistoryBasedNavigationDevice=i(170).HistoryBasedNavigationDevice,DevExpress.framework.StackBasedNavigationDevice=i(170).StackBasedNavigationDevice,DevExpress.framework.HistoryBasedNavigationManager=i(169).HistoryBasedNavigationManager,DevExpress.framework.StackBasedNavigationManager=i(169).StackBasedNavigationManager,DevExpress.framework.NavigationStack=i(169).NavigationStack,DevExpress.framework.utils=i(167).utils,DevExpress.framework.templateProvider=i(167).templateProvider,DevExpress.framework.html.CommandManager=i(175),DevExpress.framework.html.HtmlApplication=i(165),DevExpress.framework.html.layoutSets=i(174).layoutSets,DevExpress.framework.html.animationSets=i(174).animationSets,DevExpress.framework.html.DefaultLayoutController=i(178).DefaultLayoutController,DevExpress.framework.html.layoutSets=i(178).layoutSets,DevExpress.framework.html.MarkupComponent=i(163).MarkupComponent,DevExpress.framework.html.ViewEngine=i(177).ViewEngine,DevExpress.framework.html.ViewEngineComponents=i(164);var o=i(176);DevExpress.framework.html.commandToDXWidgetAdapters={dxToolbar:o.dxToolbar,dxList:o.dxList,dxNavBar:o.dxNavBar,dxPivot:o.dxPivot,dxSlideOut:o.dxSlideOut}},function(t,e,i){var n=i(116);if(n){var o=i(7),a=i(108).compare;if(a(n.version,[2,3])<0)throw o.Error("E0013");i(117),i(135),i(136),i(138),i(140),i(141),i(142)}},function(t,e){t.exports=window.ko},function(t,e,i){var n=i(21),o=i(116),a=i(16),s=i(7),r=i(37),l=i(10).isPlainObject,c=i(79),h=i(118),d=i(127),u=i(128),p=i(134),f=i(14),_="dxKoLocks",m="dxKoCreation",g=[],v=function(t,e){e.subclassOf(u)&&g.push(t),o.bindingHandlers[t]={init:function(t,i){var c,u,g=n(t),v=a(),b={},y=f().knockout,C=y&&y.isBindingPropertyPredicateName,x={onInitializing:function(){b=this._getOptionsByReference(),o.computed(function(){var t=o.unwrap(i());c&&c.beginUpdate(),u=C&&t&&t[C],D(t),c&&c.endUpdate()},null,{disposeWhenNodeIsRemoved:t}),c=this},modelByElement:function(t){if(t.length)return o.dataFor(t.get(0))},nestedComponentOptions:function(t){return{modelByElement:t.option("modelByElement"),nestedComponentOptions:t.option("nestedComponentOptions")}},_optionChangedCallbacks:v,integrationOptions:{watchMethod:function(t,e,i){i=i||{};var n=i.skipImmediate,a=o.computed(function(){var i=o.unwrap(t());n||e(i),n=!1});return function(){a.dispose()}},templates:{"dx-polymorph-widget":{render:function(t){var e=o.utils.unwrapObservable(t.model.widget);if(e){if("button"===e||"tabs"===e||"dropDownMenu"===e){var i=e;e=r.camelize("dx-"+e),s.log("W0001","dxToolbar - 'widget' item field",i,"16.1","Use: '"+e+"' instead")}var a=n("<div>").attr("data-bind",e+": options").get(0);n(t.container).append(a),o.applyBindings(t.model,a)}}}},createTemplate:function(t){return new d(t)}}},w={},S=function(t,e,i){var n=g.data(_),a=i?o.unwrap(e):e;if(o.isWriteableObservable(e)&&(w[t]=e),c){if(n.locked(t))return;n.obtain(t);try{o.ignoreDependencies?o.ignoreDependencies(c.option,c,[t,a]):c.option(t,a)}finally{n.release(t)}}else x[t]=a},I=function(t){var e=t.fullName,i=t.value;if(e in w){var n=this._$element,o=n.data(_);if(!o.locked(e)){o.obtain(e);try{w[e](i)}finally{o.release(e)}}}},T=function(){v.add(I),g.data(m,!0).data(_,new p),new e(g,x),x=null},E=function(e,i,n){if(n!==C)if(!u||u(n,i,e)){var a;o.computed(function(){var t=e[i];S(n,t,!0),a=o.unwrap(t)},null,{disposeWhenNodeIsRemoved:t}),l(a)&&(b[n]||D(a,n))}else S(n,e[i],!1)},D=function(t,e){for(var i in t)t.hasOwnProperty(i)&&E(t,i,e?[e,i].join("."):i)};return T(),{controlsDescendantBindings:e.subclassOf(h)}}},"dxValidator"===t&&(o.bindingHandlers.dxValidator.after=g)};c.add(function(t,e){v(t,e)})},function(t,e,i){var n=i(21),o=i(30),a=i(40),s=i(70),r=i(9).extend,l=i(25).inArray,c=i(17).each,h=i(13),d=i(10),u=i(64),p=i(74),f=i(63),_=i(119),m=i(121),g=i(122),v=i(123),b=i(124),y=i(94),C=i(93),x=i(125),w=i(126),S=i(97),I=i(37),T="UIFeedback",E="dx-widget",D="dx-state-active",k="dx-state-disabled",B="dx-state-invisible",A="dx-state-hover",M="dx-state-focused",O=30,P=400,$="Focus",H="template",V=3,R="[data-options*='dxTemplate']",F="dx-template-wrapper",L=new m(function(t){var e=t.model.widget;if(e){var i=n("<div>"),o=t.model.options||{};if("button"===e||"tabs"===e||"dropDownMenu"===e){var s=e;e=I.camelize("dx-"+e),a.log("W0001","dxToolbar - 'widget' item field",s,"16.1","Use: '"+e+"' instead")}return i[e](o),i}return n()}),N=void 0!==document.onbeforeactivate,W=f.inherit({_supportedKeys:function(){return{}},_getDefaultOptions:function(){return r(this.callBase(),{disabled:!1,visible:!0,hint:void 0,activeStateEnabled:!1,onContentReady:null,hoverStateEnabled:!1,focusStateEnabled:!1,tabIndex:0,accessKey:null,onFocusIn:null,onFocusOut:null,integrationOptions:{watchMethod:function(t,e,i){return i=i||{},i.skipImmediate||e(t()),h.noop},templates:{"dx-polymorph-widget":L},createTemplate:function(t){return new _(t)}},_keyboardProcessor:void 0})},_feedbackShowTimeout:O,_feedbackHideTimeout:P,_init:function(){this.callBase(),this._tempTemplates=[],this._defaultTemplates={},this._initTemplates(),this._initContentReadyAction()},_initTemplates:function(){this._extractTemplates(),this._extractAnonymousTemplate()},_extractTemplates:function(){var t=this.option("integrationOptions.templates"),e=this.$element().contents().filter(R),i={};e.each(function(t,e){var o=u.getElementOptions(e).dxTemplate;if(o){if(!o.name)throw a.Error("E0023");n(e).addClass(F).detach(),i[o.name]=i[o.name]||[],i[o.name].push(e)}}),c(i,function(e,i){var n=this._findTemplateByDevice(i);n&&(t[e]=this._createTemplate(n))}.bind(this))},_findTemplateByDevice:function(t){var e=h.findBestMatches(p.current(),t,function(t){return u.getElementOptions(t).dxTemplate})[0];return c(t,function(t,i){i!==e&&n(i).remove()}),e},_extractAnonymousTemplate:function(){var t=this.option("integrationOptions.templates"),e=this._getAnonymousTemplateName(),i=this.$element().contents().detach(),o=i.filter(function(t,e){var i=e.nodeType===V,o=n(e).text().trim().length<1;return!(i&&o)}),a=o.length<1;t[e]||a||(t[e]=this._createTemplate(i))},_getAriaTarget:function(){return this._focusTarget()},_getAnonymousTemplateName:function(){return H},_getTemplateByOption:function(t){
|
|
16
|
-
return this._getTemplate(this.option(t))},_getTemplate:function(t){return d.isFunction(t)?new m(function(e){var i=t.apply(this,this._getNormalizedTemplateArgs(e));if(!d.isDefined(i))return new g;var o=!1,a=this._acquireTemplate(i,function(t){return t.nodeType||d.isRenderer(t)&&!n(t).is("script")?new m(function(){return t}):(o=!0,this._createTemplate(t))}.bind(this)),s=a.render(e);return o&&a.dispose&&a.dispose(),s}.bind(this)):this._acquireTemplate(t,this._createTemplateIfNeeded.bind(this))},_acquireTemplate:function(t,e){if(null==t)return new g;if(t instanceof v)return this._defaultTemplates[t.name];if(d.isFunction(t.render)&&!d.isRenderer(t))return t;if(t.nodeType||d.isRenderer(t))return t=n(t),e(t);if("string"==typeof t){var i=this.option("integrationOptions.templates")[t];if(i)return i;var o=this._defaultTemplates[t];return o?o:e(t)}return this._acquireTemplate(t.toString(),e)},_createTemplateIfNeeded:function(t){var e=function(t){return d.isRenderer(t)&&t[0]||t},i=this._tempTemplates.filter(function(i){return t=e(t),i.source===t})[0];if(i)return i.template;var n=this._createTemplate(t);return this._tempTemplates.push({template:n,source:e(t)}),n},_createTemplate:function(t){return t="string"==typeof t?u.normalizeTemplateElement(t):t,this.option("integrationOptions.createTemplate")(t)},_getNormalizedTemplateArgs:function(t){var e=[];return"model"in t&&e.push(t.model),"index"in t&&e.push(t.index),e.push(t.container),e},_cleanTemplates:function(){this._tempTemplates.forEach(function(t){t.template.dispose&&t.template.dispose()}),this._tempTemplates=[]},_initContentReadyAction:function(){this._contentReadyAction=this._createActionByOption("onContentReady",{excludeValidators:["designMode","disabled","readOnly"]})},_render:function(){this.$element().addClass(E),this.callBase(),this._toggleDisabledState(this.option("disabled")),this._toggleVisibility(this.option("visible")),this._renderHint(),this._renderContent(),this._renderFocusState(),this._attachFeedbackEvents(),this._attachHoverEvents()},_renderHint:function(){u.toggleAttr(this.$element(),"title",this.option("hint"))},_renderContent:function(){var t=this;h.deferRender(function(){t._renderContentImpl()}),t._fireContentReadyAction()},_renderContentImpl:h.noop,_fireContentReadyAction:function(){this._contentReadyAction()},_dispose:function(){this._cleanTemplates(),this._contentReadyAction=null,this.callBase()},_clean:function(){this._cleanFocusState(),this.callBase(),this.$element().empty()},_toggleVisibility:function(t){this.$element().toggleClass(B,!t),this.setAria("hidden",!t||void 0)},_renderFocusState:function(){this._attachKeyboardEvents(),this.option("focusStateEnabled")&&!this.option("disabled")&&(this._renderFocusTarget(),this._attachFocusEvents(),this._renderAccessKey())},_renderAccessKey:function(){var t=this._focusTarget();t.attr("accesskey",this.option("accessKey"));var e=C.addNamespace(S.name,T);o.off(t,e),this.option("accessKey")&&o.on(t,e,function(t){C.isFakeClickEvent(t)&&(t.stopImmediatePropagation(),this.focus())}.bind(this))},_eventBindingTarget:function(){return this.$element()},_focusTarget:function(){return this._getActiveElement()},_getActiveElement:function(){var t=this._eventBindingTarget();return this._activeStateUnit&&(t=t.find(this._activeStateUnit).not("."+k)),t},_renderFocusTarget:function(){this._focusTarget().attr("tabIndex",this.option("tabIndex"))},_keyboardEventBindingTarget:function(){return this._eventBindingTarget()},_detachFocusEvents:function(){var t=this._focusTarget(),e=this.NAME+$,i=C.addNamespace("focusin",e);i=i+" "+C.addNamespace("focusout",e),N&&(i=i+" "+C.addNamespace("beforeactivate",e)),o.off(t,i)},_attachFocusEvents:function(){var t=this.NAME+$,e=C.addNamespace("focusin",t),i=C.addNamespace("focusout",t),a=this._focusTarget();if(o.on(a,e,this._focusInHandler.bind(this)),o.on(a,i,this._focusOutHandler.bind(this)),N){var s=C.addNamespace("beforeactivate",t);o.on(this._focusTarget(),s,function(t){n(t.target).is(y.focusable)||t.preventDefault()})}},_refreshFocusEvent:function(){this._detachFocusEvents(),this._attachFocusEvents()},_focusInHandler:function(t){var e=this;e._createActionByOption("onFocusIn",{beforeExecute:function(){e._updateFocusState(t,!0)},excludeValidators:["readOnly"]})({event:t})},_focusOutHandler:function(t){var e=this;e._createActionByOption("onFocusOut",{beforeExecute:function(){e._updateFocusState(t,!1)},excludeValidators:["readOnly","disabled"]})({event:t})},_updateFocusState:function(t,e){var i=t.target;l(i,this._focusTarget())!==-1&&this._toggleFocusClass(e,n(i))},_toggleFocusClass:function(t,e){var i=e&&e.length?e:this._focusTarget();i.toggleClass(M,t)},_hasFocusClass:function(t){var e=n(t||this._focusTarget());return e.hasClass(M)},_attachKeyboardEvents:function(){var t=this.option("_keyboardProcessor");t?this._keyboardProcessor=t.reinitialize(this._keyboardHandler,this):this.option("focusStateEnabled")&&(this._keyboardProcessor=new b({element:this._keyboardEventBindingTarget(),handler:this._keyboardHandler,focusTarget:this._focusTarget(),context:this}))},_keyboardHandler:function(t){var e=t.originalEvent,i=t.key,n=this._supportedKeys(),o=n[i];if(void 0!==o){var a=o.bind(this);return a(e)||!1}return!0},_refreshFocusState:function(){this._cleanFocusState(),this._renderFocusState()},_cleanFocusState:function(){var t=this._focusTarget();this._detachFocusEvents(),this._toggleFocusClass(!1),t.removeAttr("tabIndex"),this._keyboardProcessor&&(this._keyboardProcessor.dispose(),delete this._keyboardProcessor)},_attachHoverEvents:function(){var t=this,e=t._activeStateUnit,i=C.addNamespace(x.start,T),a=C.addNamespace(x.end,T);if(o.off(t._eventBindingTarget(),i,e),o.off(t._eventBindingTarget(),a,e),t.option("hoverStateEnabled")){var r=new s(function(e){t._hoverStartHandler(e.event),t._refreshHoveredElement(n(e.element))},{excludeValidators:["readOnly"]}),l=t._eventBindingTarget();o.on(l,i,e,function(t){r.execute({element:n(t.target),event:t})}),o.on(l,a,e,function(e){t._hoverEndHandler(e),t._forgetHoveredElement()})}else t._toggleHoverClass(!1)},_hoverStartHandler:h.noop,_hoverEndHandler:h.noop,_attachFeedbackEvents:function(){var t,e,i=this,a=i._activeStateUnit,r=C.addNamespace(w.active,T),l=C.addNamespace(w.inactive,T);if(o.off(i._eventBindingTarget(),r,a),o.off(i._eventBindingTarget(),l,a),i.option("activeStateEnabled")){var c=function(t){var e=n(t.element),o=t.value,a=t.event;i._toggleActiveState(e,o,a)};o.on(i._eventBindingTarget(),r,a,{timeout:i._feedbackShowTimeout},function(e){t=t||new s(c),t.execute({element:n(e.currentTarget),value:!0,event:e})}),o.on(i._eventBindingTarget(),l,a,{timeout:i._feedbackHideTimeout},function(t){e=e||new s(c,{excludeValidators:["disabled","readOnly"]}),e.execute({element:n(t.currentTarget),value:!1,event:t})})}},_toggleActiveState:function(t,e){this._toggleHoverClass(!e),t.toggleClass(D,e)},_refreshHoveredElement:function(t){var e=this._activeStateUnit||this._eventBindingTarget();this._forgetHoveredElement(),this._hoveredElement=t.closest(e),this._toggleHoverClass(!0)},_forgetHoveredElement:function(){this._toggleHoverClass(!1),delete this._hoveredElement},_toggleHoverClass:function(t){this._hoveredElement&&this._hoveredElement.toggleClass(A,t&&this.option("hoverStateEnabled"))},_toggleDisabledState:function(t){this.$element().toggleClass(k,Boolean(t)),this._toggleHoverClass(!t),this.setAria("disabled",t||void 0)},_setWidgetOption:function(t,e){if(this[t]){if(d.isPlainObject(e[0]))return void c(e[0],function(e,i){this._setWidgetOption(t,[e,i])}.bind(this));var i=e[0],n=e[1];1===e.length&&(n=this.option(i));var o=this[t+"OptionMap"];this[t].option(o?o(i):i,n)}},_optionChanged:function(t){switch(t.name){case"disabled":this._toggleDisabledState(t.value),this._refreshFocusState();break;case"hint":this._renderHint();break;case"activeStateEnabled":this._attachFeedbackEvents();break;case"hoverStateEnabled":this._attachHoverEvents();break;case"tabIndex":case"_keyboardProcessor":case"focusStateEnabled":this._refreshFocusState();break;case"onFocusIn":case"onFocusOut":break;case"accessKey":this._renderAccessKey();break;case"visible":var e=t.value;this._toggleVisibility(e),this._isVisibilityChangeSupported()&&this._checkVisibilityChanged(t.value?"shown":"hiding");break;case"onContentReady":this._initContentReadyAction();break;default:this.callBase(t)}},_isVisible:function(){return this.callBase()&&this.option("visible")},beginUpdate:function(){this._ready(!1),this.callBase()},endUpdate:function(){this.callBase(),this._initialized&&this._ready(!0)},_ready:function(t){return 0===arguments.length?this._isReady:void(this._isReady=t)},setAria:function(){var t=function(t){var e="role"===t.name||"id"===t.name?t.name:"aria-"+t.name,i=t.value;i=null===i||void 0===i?void 0:i.toString(),u.toggleAttr(t.target,e,i)};if(d.isPlainObject(arguments[0])){var e=arguments[1]||this._getAriaTarget();c(arguments[0],function(i,n){t({name:i,value:n,target:e})})}else t({name:arguments[0],value:arguments[1],target:arguments[2]||this._getAriaTarget()})},isReady:function(){return this._ready()},repaint:function(){this._refresh()},focus:function(){o.trigger(this._focusTarget(),"focus")},registerKeyHandler:function(t,e){var i=this._supportedKeys(),n={};n[t]=e,this._supportedKeys=function(){return r(i,n)}}});t.exports=W},function(t,e,i){var n=i(21),o=i(7),a=i(10),s=i(120),r=i(64),l={},c=function(t,e){l[t]=e},h=function(t){t=n(t);var e=t.length&&t[0].nodeName.toLowerCase();return"script"===e?t.html():(t=n("<div>").append(t),t.html())};c("default",{compile:function(t){return r.normalizeTemplateElement(t)},render:function(t){return t.clone()}}),c("jquery-tmpl",{compile:function(t){return h(t)},render:function(t,e){return jQuery.tmpl(t,e)}}),c("jsrender",{compile:function(t){return(jQuery?jQuery:jsrender).templates(h(t))},render:function(t,e){return t.render(e)}}),c("mustache",{compile:function(t){return h(t)},render:function(t,e){return Mustache.render(t,e)}}),c("hogan",{compile:function(t){return Hogan.compile(h(t))},render:function(t,e){return t.render(e)}}),c("underscore",{compile:function(t){return _.template(h(t))},render:function(t,e){return t(e)}}),c("handlebars",{compile:function(t){return Handlebars.compile(h(t))},render:function(t,e){return t(e)}}),c("doT",{compile:function(t){return doT.template(h(t))},render:function(t,e){return t(e)}});var d,u=function(t){if(a.isString(t)){if(d=l[t],!d)throw o.Error("E0020",t)}else d=t};u("default");var p=s.inherit({ctor:function(t){this._element=t,this._compiledTemplate=d.compile(t)},_renderCore:function(t){return n("<div>").append(d.render(this._compiledTemplate,t.model,t.index)).contents()},source:function(){return n(this._element).clone()}});t.exports=p,t.exports.setTemplateEngine=u},function(t,e,i){var n=i(21),o=i(16),a=i(64),s=i(29),r=s.abstract,l=o(),c=s.inherit({render:function(t){t=t||{};var e=this._renderCore(t);return this._ensureResultInContainer(e,t.container),l.fire(e,t.container),e},_ensureResultInContainer:function(t,e){if(e){var i=n(e),o=a.contains(i.get(0),t.get(0));if(i.append(t),!o){var s=document.body.contains(i.get(0));s&&a.triggerShownEvent(t)}}},_renderCore:r});t.exports=c,t.exports.renderedCallbacks=l},function(t,e,i){var n=i(120),o=i(64),a=n.inherit({ctor:function(t){this._render=t},_renderCore:function(t){return o.normalizeTemplateElement(this._render(t))}});t.exports=a},function(t,e,i){var n=i(21),o=i(120),a=o.inherit({_renderCore:function(){return n()}});t.exports=a},function(t,e,i){var n=i(120);t.exports=n.inherit({ctor:function(t){this.name=t}})},function(t,e,i){var n=i(21),o=i(30),a=i(29),s=i(25).inArray,r=i(17).each,l=i(93),c=a.inherit({_keydown:l.addNamespace("keydown","KeyboardProcessor"),codes:{8:"backspace",9:"tab",13:"enter",27:"escape",33:"pageUp",34:"pageDown",35:"end",36:"home",37:"leftArrow",38:"upArrow",39:"rightArrow",40:"downArrow",46:"del",32:"space",70:"F",65:"A",106:"asterisk",109:"minus",189:"minus"},ctor:function(t){var e=this;t=t||{},t.element&&(this._element=n(t.element)),t.focusTarget&&(this._focusTarget=t.focusTarget),this._handler=t.handler,this._context=t.context,this._childProcessors=[],this._element&&(this._processFunction=function(t){e.process(t)},o.on(this._element,this._keydown,this._processFunction))},dispose:function(){this._element&&o.off(this._element,this._keydown,this._processFunction),this._element=void 0,this._handler=void 0,this._context=void 0,this._childProcessors=void 0},clearChildren:function(){this._childProcessors=[]},push:function(t){return this._childProcessors||this.clearChildren(),this._childProcessors.push(t),t},attachChildProcessor:function(){var t=new c;return this._childProcessors.push(t),t},reinitialize:function(t,e){return this._context=e,this._handler=t,this},process:function(t){if(this._focusTarget&&this._focusTarget!==t.target&&s(t.target,this._focusTarget)<0)return!1;var e={key:this.codes[t.which]||t.which,ctrl:t.ctrlKey,shift:t.shiftKey,alt:t.altKey,originalEvent:t},i=this._handler&&this._handler.call(this._context,e);i&&this._childProcessors&&r(this._childProcessors,function(e,i){i.process(t)})}});t.exports=c},function(t,e,i){var n=i(30),o=i(23),a=i(29),s=i(74),r=i(68),l=i(93),c=i(98),h="dxHoverStart",d="dxhoverstart",u=l.addNamespace(c.enter,h),p="dxHoverEnd",f="dxhoverend",_=l.addNamespace(c.leave,p),m=a.inherit({noBubble:!0,ctor:function(){this._handlerArrayKeyPath=this._eventNamespace+"_HandlerStore"},setup:function(t){o.data(t,this._handlerArrayKeyPath,{})},add:function(t,e){var i=this,a=function(t){i._handler(t)};n.on(t,this._originalEventName,e.selector,a),o.data(t,this._handlerArrayKeyPath)[e.guid]=a},_handler:function(t){l.isTouchEvent(t)||s.isSimulator()||l.fireEvent({type:this._eventName,originalEvent:t,delegateTarget:t.delegateTarget})},remove:function(t,e){var i=o.data(t,this._handlerArrayKeyPath)[e.guid];n.off(t,this._originalEventName,e.selector,i)},teardown:function(t){o.removeData(t,this._handlerArrayKeyPath)}}),g=m.inherit({ctor:function(){this._eventNamespace=h,this._eventName=d,this._originalEventName=u,this.callBase()},_handler:function(t){var e=t.pointers||[];e.length||this.callBase(t)}}),v=m.inherit({ctor:function(){this._eventNamespace=p,this._eventName=f,this._originalEventName=_,this.callBase()}});r(d,new g),r(f,new v),e.start=d,e.end=f},function(t,e,i){var n,o=i(29),a=i(13),s=i(64).contains,r=i(74),l=i(93),c=i(98),h=i(105),d=i(106),u="dxactive",p="dxinactive",f=30,_=400,m=o.inherit({ctor:function(t,e){this._timeout=t,this._fire=e},start:function(){var t=this;this._schedule(function(){t.force()})},_schedule:function(t){this.stop(),this._timer=window.setTimeout(t,this._timeout)},stop:function(){clearTimeout(this._timer)},force:function(){this._fired||(this.stop(),this._fire(),this._fired=!0)},fired:function(){return this._fired}}),g=h.inherit({ctor:function(){this.callBase.apply(this,arguments),this._active=new m(0,a.noop),this._inactive=new m(0,a.noop)},configure:function(t,e){switch(e){case u:t.activeTimeout=t.timeout;break;case p:t.inactiveTimeout=t.timeout}this.callBase(t)},start:function(t){if(n){var e=s(this.getElement().get(0),n.getElement().get(0)),i=!n._active.fired();if(e&&i)return void this._cancel();n._inactive.force()}n=this,this._initEvents(t),this._active.start()},_initEvents:function(t){var e=this,i=this._getEmitterTarget(t),o=l.isMouseEvent(t),s=r.isSimulator(),c=s||!o,h=a.ensureDefined(this.activeTimeout,f),d=a.ensureDefined(this.inactiveTimeout,_);this._active=new m(c?h:0,function(){e._fireEvent(u,t,{target:i})}),this._inactive=new m(c?d:0,function(){e._fireEvent(p,t,{target:i}),n=null})},cancel:function(t){this.end(t)},end:function(t){var e=t.type!==c.up;e?this._active.stop():this._active.force(),this._inactive.start(),e&&this._inactive.force()},dispose:function(){this._active.stop(),this._inactive.stop(),this.callBase()},lockInactive:function(){return this._active.force(),this._inactive.stop(),n=null,this._cancel(),this._inactive.force.bind(this._inactive)}});g.lock=function(t){var e=n?n.lockInactive():a.noop;t.done(e)},d({emitter:g,events:[u,p]}),e.lock=g.lock,e.active=u,e.inactive=p},function(t,e,i){var n=i(21),o=i(116),a=i(10),s=i(120),r=i(64),l=function(t){var e=document.createElement("div");o.applyBindingsToNode(e,null,t);var i=o.contextFor(e);return o.cleanNode(e),i},c=s.inherit({ctor:function(t){this._element=t,this._template=n("<div>").append(r.normalizeTemplateElement(t)),this._registerKoTemplate()},_registerKoTemplate:function(){var t=this._template.get(0);new o.templateSources.anonymousTemplate(t).nodes(t)},_prepareDataForContainer:function(t,e){if(e&&e.length){var i=e.get(0),n=o.contextFor(i);if(t=void 0!==t?t:o.dataFor(i)||{},n)return t===n.$data?n:n.createChildContext(t)}return l(t).createChildContext(t)},_renderCore:function(t){var e=this._prepareDataForContainer(t.model,n(t.container));a.isDefined(t.index)&&(e.$index=t.index);var i,s=n("<div>").appendTo(t.container);return o.renderTemplate(this._template.get(0),e,{afterRender:function(t){i=n(t)}},s.get(0),"replaceNode"),i},source:function(){return n(this._element).clone()},dispose:function(){this._template.remove()}});t.exports=c},function(t,e,i){var n=i(21),o=i(23),a=i(16),s=i(13),r=i(129).getDefaultAlignment,l=i(9).extend,c=i(118),h=i(130),d=i(131),u="dx-state-readonly",p="dx-invalid",f="dx-invalid-message",_="dx-invalid-message-auto",m="dx-invalid-message-always",g="dx-validation-target",v=100,b=c.inherit({_init:function(){this.callBase(),this.validationRequest=a();var t=this.$element();t&&o.data(t[0],g,this)},_getDefaultOptions:function(){return l(this.callBase(),{value:null,name:"",onValueChanged:null,readOnly:!1,isValid:!0,validationError:null,validationMessageMode:"auto",validationBoundary:void 0,validationMessageOffset:{h:0,v:0}})},_attachKeyboardEvents:function(){this.option("readOnly")||(this.callBase(),this._keyboardProcessor&&this._attachChildKeyboardEvents())},_attachChildKeyboardEvents:s.noop,_setOptionsByReference:function(){this.callBase(),l(this._optionsByReference,{validationError:!0})},_createValueChangeAction:function(){this._valueChangeAction=this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]})},_suppressValueChangeAction:function(){this._valueChangeActionSuppressed=!0},_resumeValueChangeAction:function(){this._valueChangeActionSuppressed=!1},_render:function(){this.callBase(),this._renderValidationState(),this._toggleReadOnlyState(),this._setSubmitElementName(this.option("name"))},_raiseValueChangeAction:function(t,e){this._valueChangeAction||this._createValueChangeAction(),this._valueChangeAction(this._valueChangeArgs(t,e))},_valueChangeArgs:function(t,e){return{value:t,previousValue:e,event:this._valueChangeEventInstance}},_saveValueChangeEvent:function(t){this._valueChangeEventInstance=t},_renderValidationState:function(){var t=this.option("isValid"),e=this.option("validationError"),i=this.option("validationMessageMode"),o=this.$element();o.toggleClass(p,!t),this.setAria("invalid",!t||void 0),this._$validationMessage&&(this._$validationMessage.remove(),this._$validationMessage=null),!t&&e&&e.message&&(this._$validationMessage=n("<div>").addClass(f).html(e.message).appendTo(o),this._validationMessage=this._createComponent(this._$validationMessage,d,{integrationOptions:{},templatesRenderAsynchronously:!1,target:this._getValidationMessageTarget(),shading:!1,width:"auto",height:"auto",container:o,position:this._getValidationMessagePosition("below"),closeOnOutsideClick:!1,closeOnTargetScroll:!1,animation:null,visible:!0,propagateOutsideClick:!0,_checkParentVisibility:!1}),this._$validationMessage.toggleClass(_,"auto"===i).toggleClass(m,"always"===i),this._setValidationMessageMaxWidth())},_setValidationMessageMaxWidth:function(){if(this._validationMessage){if(0===this._getValidationMessageTarget().outerWidth())return void this._validationMessage.option("maxWidth","100%");var t=Math.max(v,this._getValidationMessageTarget().outerWidth());this._validationMessage.option("maxWidth",t)}},_getValidationMessageTarget:function(){return this.$element()},_getValidationMessagePosition:function(t){var e=this.option("rtlEnabled"),i=r(e),n=this.option("validationMessageOffset"),o={h:n.h,v:n.v},a="below"===t?[" top"," bottom"]:[" bottom"," top"];return e&&(o.h=-o.h),"below"!==t&&(o.v=-o.v),{offset:o,boundary:this.option("validationBoundary"),my:i+a[0],at:i+a[1],collision:"none flip"}},_toggleReadOnlyState:function(){this.$element().toggleClass(u,!!this.option("readOnly")),this.setAria("readonly",this.option("readOnly")||void 0)},_dispose:function(){var t=this.$element()[0];o.data(t,g,null),this.callBase()},_setSubmitElementName:function(t){var e=this._getSubmitElement();e&&(t.length>0?e.attr("name",t):e.removeAttr("name"))},_getSubmitElement:function(){return null},_optionChanged:function(t){switch(t.name){case"onValueChanged":this._createValueChangeAction();break;case"isValid":case"validationError":case"validationBoundary":case"validationMessageMode":this._renderValidationState();break;case"readOnly":this._toggleReadOnlyState(),this._refreshFocusState();break;case"value":this._valueChangeActionSuppressed||(this._raiseValueChangeAction(t.value,t.previousValue),this._saveValueChangeEvent(void 0)),t.value!=t.previousValue&&this.validationRequest.fire({value:t.value,editor:this});break;case"width":this.callBase(t),this._setValidationMessageMaxWidth();break;case"name":this._setSubmitElementName(t.value);break;default:this.callBase(t)}},reset:function(){this.option("value",null)}}).include(h);t.exports=b},function(t,e,i){var n=i(14),o=function(t){var e=t||n().rtlEnabled;return e?"right":"left"};e.getDefaultAlignment=o},function(t,e){var i={_findGroup:function(){var t,e=this.option("validationGroup");return e||(t=this.$element().parents(".dx-validationgroup").first(),e=t.length?t.dxValidationGroup("instance"):this._modelByElement(this.$element())),e}};t.exports=i},function(t,e,i){var n=i(21),o=i(30),a=i(89),s=i(90),r=i(108).compare,l=i(76),c=i(9).extend,h=i(25).inArray,d=i(64).getPublicElement,u=l.changeCallback,p=i(86).hideCallback,f=i(92),_=i(47).fitIntoRange,m=i(64),g=i(13).noop,v=i(10),b=i(17).each,y=i(74),C=i(41),x=i(78),w=i(118),S=i(124),I=i(94),T=i(132),E=i(93),D=i(98),k=i(133),B=i(122),A=i(15).Deferred,M="dx-overlay",O="dx-overlay-wrapper",P="dx-overlay-content",$="dx-overlay-shader",H="dx-overlay-modal",V="dx-state-invisible",R="content",F="dx-rtl",L=["onShowing","onShown","onHiding","onHidden","onPositioning","onPositioned","onResizeStart","onResize","onResizeEnd"],N=1500,W=[],z="dx-state-disabled",K=9,G={top:{my:"top center",at:"top center"},bottom:{my:"bottom center",at:"bottom center"},right:{my:"right center",at:"right center"},left:{my:"left center",at:"left center"},center:{my:"center",at:"center"},"right bottom":{my:"right bottom",at:"right bottom"},"right top":{my:"right top",at:"right top"},"left bottom":{my:"left bottom",at:"left bottom"},"left top":{my:"left top",at:"left top"}},U=y.real(),j=U.version,q=C.mozilla&&"desktop"===U.deviceType,Y="ios"===U.platform,X=Y&&r(j,[7,1])<0,Z="android"===U.platform&&0===r(j,[4,0],2)&&navigator.userAgent.indexOf("Chrome")===-1,Q=function(t){if((X||q)&&t.width(),Z){var e=t.parents(),i=e.is(".dx-scrollable-native");i||(e.css("backface-visibility","hidden"),e.css("backface-visibility"),e.css("backface-visibility","visible"))}},J=function(t){return t&&n(t.target||t)};o.subscribeGlobal(document,D.down,function(t){for(var e=W.length-1;e>=0;e--)if(!W[e]._proxiedDocumentDownHandler(t))return});var tt=w.inherit({_supportedKeys:function(){var t=5,e=function(t,e,i){if(this.option("dragEnabled")){i.preventDefault(),i.stopPropagation();var n=this._allowedOffsets(),o={top:_(t,-n.top,n.bottom),left:_(e,-n.left,n.right)};this._changePosition(o)}};return c(this.callBase(),{escape:function(){this.hide()},upArrow:e.bind(this,-t,0),downArrow:e.bind(this,t,0),leftArrow:e.bind(this,0,-t),rightArrow:e.bind(this,0,t)})},_getDefaultOptions:function(){return c(this.callBase(),{activeStateEnabled:!1,visible:!1,deferRendering:!0,shading:!0,shadingColor:"",position:{my:"center",at:"center"},width:function(){return.8*n(window).width()},minWidth:null,maxWidth:null,height:function(){return.8*n(window).height()},minHeight:null,maxHeight:null,animation:{show:{type:"pop",duration:300,from:{scale:.55}},hide:{type:"pop",duration:300,to:{opacity:0,scale:.55},from:{opacity:1,scale:1}}},closeOnOutsideClick:!1,closeOnBackButton:!0,onShowing:null,onShown:null,onHiding:null,onHidden:null,contentTemplate:"content",dragEnabled:!1,resizeEnabled:!1,onResizeStart:null,onResize:null,onResizeEnd:null,target:void 0,container:void 0,hideTopOverlayHandler:void 0,closeOnTargetScroll:!1,onPositioned:null,boundaryOffset:{h:0,v:0},propagateOutsideClick:!1,_checkParentVisibility:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){var t=y.real(),e=t.platform,i=t.version;return"android"===e&&r(i,[4,2])<0},options:{animation:{show:{type:"fade",duration:400},hide:{type:"fade",duration:400,to:{opacity:0},from:{opacity:1}}}}}])},_setOptionsByReference:function(){this.callBase(),c(this._optionsByReference,{animation:!0})},_getAnonymousTemplateName:function(){return R},_wrapper:function(){return this._$wrapper},_container:function(){return this._$content},_eventBindingTarget:function(){return this._$content},_init:function(){this.callBase(),this._initActions(),this._initCloseOnOutsideClickHandler(),this._initTabTerminatorHandler(),this._$wrapper=n("<div>").addClass(O),this._$content=n("<div>").addClass(P);var t=this.$element();this._$wrapper.addClass(t.attr("class")),t.addClass(M),this._$wrapper.attr("data-bind","dxControlsDescendantBindings: true"),o.on(this._$wrapper,"MSPointerDown",g),o.on(this._$wrapper,"focusin",function(t){t.stopPropagation()}),this._toggleViewPortSubscription(!0)},_initOptions:function(t){this._initTarget(t.target),this._initContainer(t.container),this._initHideTopOverlayHandler(t.hideTopOverlayHandler),this.callBase(t)},_initTarget:function(t){if(v.isDefined(t)){var e=this.option();b(["position.of","animation.show.from.position.of","animation.show.to.position.of","animation.hide.from.position.of","animation.hide.to.position.of"],function(i,n){for(var o=n.split("."),a=e;a;){if(1===o.length){v.isPlainObject(a)&&(a[o.shift()]=t);break}a=a[o.shift()]}})}},_initContainer:function(t){t=void 0===t?l.value():t;var e=this.$element(),i=e.closest(t);i.length||(i=n(t).first()),this._$container=i.length?i:e.parent()},_initHideTopOverlayHandler:function(t){this._hideTopOverlayHandler=void 0!==t?t:this._defaultHideTopOverlayHandler.bind(this)},_defaultHideTopOverlayHandler:function(){this.hide()},_initActions:function(){this._actions={},b(L,function(t,e){this._actions[e]=this._createActionByOption(e,{excludeValidators:["disabled","readOnly"]})||g}.bind(this))},_initCloseOnOutsideClickHandler:function(){var t=this;this._proxiedDocumentDownHandler=function(){return t._documentDownHandler.apply(t,arguments)}},_documentDownHandler:function(t){this._showAnimationProcessing&&this._stopAnimation();var e=this.option("closeOnOutsideClick");if(v.isFunction(e)&&(e=e(t)),e){var i=this._$content,o=!i.is(t.target)&&!m.contains(i.get(0),t.target)&&n(t.target).closest(document).length;o&&(this.option("shading")&&t.preventDefault(),this.hide())}return this.option("propagateOutsideClick")},_initTemplates:function(){this.callBase(),this._defaultTemplates.content=new B(this)},_isTopOverlay:function(){for(var t=this._overlayStack(),e=t.length-1;e>=0;e--){var i=t[e]._findTabbableElements();if(i.length)return t[e]===this}return!1},_overlayStack:function(){return W},_zIndexInitValue:function(){return N},_toggleViewPortSubscription:function(t){u.remove(this._viewPortChangeHandle),t&&(this._viewPortChangeHandle=this._viewPortChangeHandler.bind(this),u.add(this._viewPortChangeHandle))},_viewPortChangeHandler:function(){this._initContainer(this.option("container")),this._refresh()},_renderVisibilityAnimate:function(t){return this._stopAnimation(),t?this._show():this._hide()},_normalizePosition:function(){var t=this.option("position");this._position="function"==typeof t?t():t},_getAnimationConfig:function(){var t=this.option("animation");return v.isFunction(t)&&(t=t.call(this)),t},_show:function(){var t=this,e=new A;if(this._parentHidden=this._isParentHidden(),e.done(function(){delete t._parentHidden}),this._parentHidden)return e.resolve();if(this._currentVisible)return(new A).resolve().promise();this._currentVisible=!0,this._normalizePosition();var i=t._getAnimationConfig()||{},n=this._normalizeAnimation(i.show,"to"),a=n&&n.start||g,s=n&&n.complete||g;if(this._isHidingActionCanceled)delete this._isHidingActionCanceled,e.resolve();else{var r=function(){this._renderVisibility(!0),this._animate(n,function(){t.option("focusStateEnabled")&&o.trigger(t._focusTarget(),"focus"),s.apply(this,arguments),t._showAnimationProcessing=!1,t._actions.onShown(),e.resolve()},function(){a.apply(this,arguments),t._showAnimationProcessing=!0})}.bind(this);this.option("templatesRenderAsynchronously")?this._asyncShowTimeout=setTimeout(r):r()}return e.promise()},_normalizeAnimation:function(t,e){return t&&(t=c({type:"slide"},t),t[e]&&"object"==typeof t[e]&&c(t[e],{position:this._position})),t},_hide:function(){if(!this._currentVisible)return(new A).resolve().promise();this._currentVisible=!1;var t=this,e=new A,i=t._getAnimationConfig()||{},n=this._normalizeAnimation(i.hide,"from"),o=n&&n.start||g,a=n&&n.complete||g,s={cancel:!1};return this._actions.onHiding(s),s.cancel?(this._isHidingActionCanceled=!0,this.option("visible",!0),e.resolve()):(this._forceFocusLost(),this._toggleShading(!1),this._toggleSubscriptions(!1),this._animate(n,function(){t._$content.css("pointerEvents",""),t._renderVisibility(!1),a.apply(this,arguments),t._actions.onHidden(),e.resolve()},function(){t._$content.css("pointerEvents","none"),o.apply(this,arguments)})),e.promise()},_forceFocusLost:function(){document.activeElement&&this._$content.find(document.activeElement).length&&document.activeElement.blur()},_animate:function(t,e,i){t?(i=i||t.start||g,a.animate(this._$content,c({},t,{start:i,complete:e}))):e()},_stopAnimation:function(){a.stop(this._$content,!0)},_renderVisibility:function(t){t&&this._isParentHidden()||(this._currentVisible=t,this._stopAnimation(),clearTimeout(this._asyncShowTimeout),t||m.triggerHidingEvent(this._$content),this._toggleVisibility(t),this._$content.toggleClass(V,!t),this._updateZIndexStackPosition(t),t?(this._renderContent(),this._actions.onShowing(),this._moveToContainer(),this._renderGeometry(),m.triggerShownEvent(this._$content),m.triggerResizeEvent(this._$content)):this._moveFromContainer(),this._toggleShading(t),this._toggleSubscriptions(t))},_updateZIndexStackPosition:function(t){var e=this._overlayStack(),i=h(this,e);if(t){if(i===-1){var n=e.length;this._zIndex=(n?e[n-1]._zIndex:this._zIndexInitValue())+1,e.push(this)}this._$wrapper.css("zIndex",this._zIndex),this._$content.css("zIndex",this._zIndex)}else i!==-1&&e.splice(i,1)},_toggleShading:function(t){this._$wrapper.toggleClass(H,this.option("shading")&&!this.option("container")),this._$wrapper.toggleClass($,t&&this.option("shading")),this._$wrapper.css("background-color",this.option("shading")?this.option("shadingColor"):""),this._toggleTabTerminator(t&&this.option("shading"))},_initTabTerminatorHandler:function(){var t=this;this._proxiedTabTerminatorHandler=function(){t._tabKeyHandler.apply(t,arguments)}},_toggleTabTerminator:function(t){var e=E.addNamespace("keydown",this.NAME);t?o.on(document,e,this._proxiedTabTerminatorHandler):o.off(document,e,this._proxiedTabTerminatorHandler)},_findTabbableElements:function(){return this._$wrapper.find("*").filter(I.tabbable)},_tabKeyHandler:function(t){if(t.keyCode===K&&this._isTopOverlay()){var e=this._findTabbableElements(),i=e.first(),n=e.last(),a=!t.shiftKey&&t.target===n.get(0),s=t.shiftKey&&t.target===i.get(0),r=0===e.length,l=h(t.target,e)===-1;if(a||s||r||l){t.preventDefault();var c=t.shiftKey?n:i;o.trigger(c,"focusin"),
|
|
17
|
-
o.trigger(c,"focus")}}},_toggleSubscriptions:function(t){this._toggleHideTopOverlayCallback(t),this._toggleParentsScrollSubscription(t)},_toggleHideTopOverlayCallback:function(t){this._hideTopOverlayHandler&&(t&&this.option("closeOnBackButton")?p.add(this._hideTopOverlayHandler):p.remove(this._hideTopOverlayHandler))},_toggleParentsScrollSubscription:function(t){if(this._position){var e=this._position.of||n(),i=this.option("closeOnTargetScroll"),a=J(e).parents(),s=E.addNamespace("scroll",this.NAME);"generic"===y.real().platform&&(a=a.add(window)),this._proxiedTargetParentsScrollHandler=this._proxiedTargetParentsScrollHandler||function(t){this._targetParentsScrollHandler(t)}.bind(this),o.off(n().add(this._$prevTargetParents),s,this._proxiedTargetParentsScrollHandler),t&&i&&(o.on(a,s,this._proxiedTargetParentsScrollHandler),this._$prevTargetParents=a)}},_targetParentsScrollHandler:function(t){var e=!1,i=this.option("closeOnTargetScroll");v.isFunction(i)&&(e=i(t)),e||this._showAnimationProcessing||this.hide()},_render:function(){this.callBase(),this._$content.appendTo(this.$element()),this._renderVisibilityAnimate(this.option("visible"))},_renderContent:function(){var t=!this._currentVisible&&this.option("deferRendering"),e=this.option("visible")&&this._isParentHidden();return e?void(this._isHidden=!0):void(this._contentAlreadyRendered||t||(this._contentAlreadyRendered=!0,this.callBase()))},_isParentHidden:function(){if(!this.option("_checkParentVisibility"))return!1;if(void 0!==this._parentHidden)return this._parentHidden;var t=this.$element().parent();if(t.is(":visible"))return!1;var e=!1;return t.add(t.parents()).each(function(){var t=n(this);if("none"===t.css("display"))return e=!0,!1}),e||!document.body.contains(t.get(0))},_renderContentImpl:function(){var t=this.$element();this._$content.appendTo(t);var e=this._getTemplate(this.option("contentTemplate"));e&&e.render({container:d(this.$content()),noModel:!0}),this._renderDrag(),this._renderResize(),this._renderScrollTerminator()},_renderDrag:function(){var t=this._getDragTarget();if(t){var e=E.addNamespace(T.start,this.NAME),i=E.addNamespace(T.move,this.NAME);o.off(t,e),o.off(t,i),this.option("dragEnabled")&&(o.on(t,e,this._dragStartHandler.bind(this)),o.on(t,i,this._dragUpdateHandler.bind(this)))}},_renderResize:function(){this._resizable=this._createComponent(this._$content,k,{handles:this.option("resizeEnabled")?"all":"none",onResizeEnd:this._resizeEndHandler.bind(this),onResize:this._actions.onResize.bind(this),onResizeStart:this._actions.onResizeStart.bind(this),minHeight:100,minWidth:100,area:this._getDragResizeContainer()})},_resizeEndHandler:function(){this._positionChangeHandled=!0;var t=this._resizable.option("width"),e=this._resizable.option("height");t&&this.option("width",t),e&&this.option("height",e),this._actions.onResizeEnd()},_renderScrollTerminator:function(){var t=this._wrapper(),e=E.addNamespace(T.move,this.NAME);o.off(t,e),o.on(t,e,{validate:function(){return!0},getDirection:function(){return"both"},_toggleGestureCover:g,_clearSelection:g,isNative:!0},function(t){var e=t.originalEvent.originalEvent;t._cancelPreventDefault=!0,e&&"mousemove"!==e.type&&t.preventDefault()})},_getDragTarget:function(){return this.$content()},_dragStartHandler:function(t){t.targetElements=[],this._prevOffset={x:0,y:0};var e=this._allowedOffsets();t.maxTopOffset=e.top,t.maxBottomOffset=e.bottom,t.maxLeftOffset=e.left,t.maxRightOffset=e.right},_getDragResizeContainer:function(){var t=l.originalViewPort().get(0)||this.option("container"),e=t?this._$container:n(window);return e},_deltaSize:function(){var t=this._$content,e=this._getDragResizeContainer(),i=t.outerWidth(),o=t.outerHeight(),a=e.outerWidth(),s=e.outerHeight();if(this._isWindow(e)){var r=Math.max(n(document).outerHeight(),s),l=Math.max(n(document).outerWidth(),a);s=r,a=l}return{width:a-i,height:s-o}},_dragUpdateHandler:function(t){var e=t.offset,i=this._prevOffset,n={top:e.y-i.y,left:e.x-i.x};this._changePosition(n),this._prevOffset=e},_changePosition:function(t){var e=s.locate(this._$content);s.move(this._$content,{left:e.left+t.left,top:e.top+t.top}),this._positionChangeHandled=!0},_allowedOffsets:function(){var t=s.locate(this._$content),e=this._deltaSize(),i=e.height>=0&&e.width>=0,n=!this.option("shading")||this.option("container")||this._isWindow(this._getContainer())?{top:0,left:0}:s.locate(this._$wrapper),o=this.option("boundaryOffset");return{top:i?t.top+n.top+o.v:0,bottom:i?-t.top-n.top+e.height-o.v:0,left:i?t.left+n.left+o.h:0,right:i?-t.left-n.left+e.width-o.h:0}},_fireContentReadyAction:function(){this.option("visible")&&this._moveToContainer(),this.callBase.apply(this,arguments)},_moveFromContainer:function(){this._$content.appendTo(this.$element()),this._detachWrapperToContainer()},_detachWrapperToContainer:function(){this._$wrapper.detach()},_moveToContainer:function(){this._attachWrapperToContainer(),this._$content.appendTo(this._$wrapper)},_attachWrapperToContainer:function(){var t=this.$element();this._$container&&this._$container[0]!==t.parent()[0]?this._$wrapper.appendTo(this._$container):this._$wrapper.appendTo(t)},_renderGeometry:function(){this.option("visible")&&this._renderGeometryImpl()},_renderGeometryImpl:function(){this._stopAnimation(),this._normalizePosition(),this._renderShading(),this._renderDimensions();var t=this._renderPosition();this._actions.onPositioned({position:t})},_renderShading:function(){var t=this._$wrapper,e=this._getContainer();t.css("position",this._isWindow(e)&&!Y?"fixed":"absolute"),this._renderShadingDimensions(),this._renderShadingPosition()},_renderShadingPosition:function(){if(this.option("shading")){var t=this._getContainer();f.setup(this._$wrapper,{my:"top left",at:"top left",of:t})}},_renderShadingDimensions:function(){var t,e;if(this.option("shading")){var i=this._getContainer();t=this._isWindow(i)?"100%":i.outerWidth(),e=this._isWindow(i)?"100%":i.outerHeight()}else t="",e="";this._$wrapper.css({width:t,height:e})},_isWindow:function(t){return!!t&&v.isWindow(t.get(0))},_getContainer:function(){var t=this._position,e=this.option("container"),i=t?t.of||window:null;return J(e||i)},_renderDimensions:function(){var t=this._$content.get(0);this._$content.css({minWidth:this._getOptionValue("minWidth",t),maxWidth:this._getOptionValue("maxWidth",t),minHeight:this._getOptionValue("minHeight",t),maxHeight:this._getOptionValue("maxHeight",t)}),this._$content.outerWidth(this._getOptionValue("width",t)).outerHeight(this._getOptionValue("height",t))},_renderPosition:function(){if(!this._positionChangeHandled){this._renderOverlayBoundaryOffset(),s.resetPosition(this._$content);var t=this._transformStringPosition(this._position,G),e=f.setup(this._$content,t);return Q(this._$content),this._actions.onPositioning(),e}var i=this._allowedOffsets();this._changePosition({top:_(0,-i.top,i.bottom),left:_(0,-i.left,i.right)})},_transformStringPosition:function(t,e){return v.isString(t)&&(t=c({},e[t])),t},_renderOverlayBoundaryOffset:function(){var t=this.option("boundaryOffset");this._$content.css("margin",t.v+"px "+t.h+"px")},_focusTarget:function(){return this._$content},_attachKeyboardEvents:function(){this._keyboardProcessor=new S({element:this._$content,handler:this._keyboardHandler,context:this})},_keyboardHandler:function(t){var e=t.originalEvent,i=n(e.target);i.is(this._$content)&&this.callBase.apply(this,arguments)},_isVisible:function(){return this.option("visible")},_visibilityChanged:function(t){t?this.option("visible")&&this._renderVisibilityAnimate(t):this._renderVisibilityAnimate(t)},_dimensionChanged:function(){this._renderGeometry()},_clean:function(){this._contentAlreadyRendered||this.$content().empty(),this._renderVisibility(!1),this._cleanFocusState()},_dispose:function(){a.stop(this._$content,!1),clearTimeout(this._deferShowTimer),this._toggleViewPortSubscription(!1),this._toggleSubscriptions(!1),this._updateZIndexStackPosition(!1),this._toggleTabTerminator(!1),this._actions=null,this.callBase(),this._$wrapper.remove(),this._$content.remove()},_toggleDisabledState:function(t){this.callBase.apply(this,arguments),this._$content.toggleClass(z,Boolean(t))},_toggleRTLDirection:function(t){this._$content.toggleClass(F,t)},_optionChanged:function(t){var e=t.value;if(h(t.name,L)>-1)return void this._initActions();switch(t.name){case"dragEnabled":this._renderDrag(),this._renderGeometry();break;case"resizeEnabled":this._renderResize(),this._renderGeometry();break;case"shading":case"shadingColor":this._toggleShading(this.option("visible"));break;case"width":case"height":case"minWidth":case"maxWidth":case"minHeight":case"maxHeight":case"boundaryOffset":this._renderGeometry();break;case"position":this._positionChangeHandled=!1,this._renderGeometry();break;case"visible":this._renderVisibilityAnimate(e).done(function(){this._animateDeferred&&this._animateDeferred.resolveWith(this)}.bind(this));break;case"target":this._initTarget(e),this._invalidate();break;case"container":this._initContainer(e),this._invalidate();break;case"deferRendering":case"contentTemplate":this._contentAlreadyRendered=!1,this._invalidate();break;case"closeOnBackButton":this._toggleHideTopOverlayCallback(this.option("visible"));break;case"closeOnTargetScroll":this._toggleParentsScrollSubscription(this.option("visible"));break;case"closeOnOutsideClick":case"animation":case"propagateOutsideClick":break;case"rtlEnabled":this._contentAlreadyRendered=!1,this.option("visible",!1),this.callBase(t);break;default:this.callBase(t)}},toggle:function(t){if(t=void 0===t?!this.option("visible"):t,t===this.option("visible"))return(new A).resolve().promise();var e=new A;return this._animateDeferred=e,this.option("visible",t),e.promise().done(function(){delete this._animateDeferred}.bind(this))},$content:function(){return this._$content},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)},content:function(){return d(this._$content)},repaint:function(){this._renderGeometry()}});tt.baseZIndex=function(t){N=t},x("dxOverlay",tt),t.exports=tt},function(t,e,i){var n=i(21),o=i(23),a=i(25).wrapToArray,s=i(25).inArray,r=i(17),l=i(64).contains,c=i(68),h=i(93),d=i(109),u=i(106),p="dxdragstart",f="dxdrag",_="dxdragend",m="dxdragenter",g="dxdragleave",v="dxdrop",b="dxDragEventsCount",y=[],C=[],x=[],w={setup:function(t,e){var i=s(t,y)!==-1;i||(y.push(t),C.push([]),x.push(e||{}))},add:function(t,e){var i=s(t,y);this.updateEventsCounter(t,e.type,1);var n=e.selector;s(n,C[i])===-1&&C[i].push(n)},updateEventsCounter:function(t,e,i){if([m,g,v].indexOf(e)>-1){var n=o.data(t,b)||0;o.data(t,b,Math.max(0,n+i))}},remove:function(t,e){this.updateEventsCounter(t,e.type,-1)},teardown:function(t){var e=o.data(t,b);if(!e){var i=s(t,y);y.splice(i,1),C.splice(i,1),x.splice(i,1),o.removeData(t,b)}}};c(m,w),c(g,w),c(v,w);var S=function(t){var e=s(t.get(0),y),i=C[e],n=t.find(i.join(", "));return s(void 0,i)!==-1&&(n=n.add(t)),n},I=function(t){var e=s(t.get(0),y);return x[e]},T=function(t,e){return t.itemPositionFunc?t.itemPositionFunc(e):e.offset()},E=function(t,e){return t.itemSizeFunc?t.itemSizeFunc(e):{width:e.get(0).getBoundingClientRect().width,height:e.get(0).getBoundingClientRect().height}},D=d.inherit({ctor:function(t){this.callBase(t),this.direction="both"},_init:function(t){this._initEvent=t},_start:function(t){t=this._fireEvent(p,this._initEvent),this._maxLeftOffset=t.maxLeftOffset,this._maxRightOffset=t.maxRightOffset,this._maxTopOffset=t.maxTopOffset,this._maxBottomOffset=t.maxBottomOffset;var e=a(t.targetElements||(null===t.targetElements?[]:y));this._dropTargets=r.map(e,function(t){return n(t).get(0)})},_move:function(t){var e=h.eventData(t),i=this._calculateOffset(e);t=this._fireEvent(f,t,{offset:i}),this._processDropTargets(t),t._cancelPreventDefault||t.preventDefault()},_calculateOffset:function(t){return{x:this._calculateXOffset(t),y:this._calculateYOffset(t)}},_calculateXOffset:function(t){if("vertical"!==this.direction){var e=t.x-this._startEventData.x;return this._fitOffset(e,this._maxLeftOffset,this._maxRightOffset)}return 0},_calculateYOffset:function(t){if("horizontal"!==this.direction){var e=t.y-this._startEventData.y;return this._fitOffset(e,this._maxTopOffset,this._maxBottomOffset)}return 0},_fitOffset:function(t,e,i){return null!=e&&(t=Math.max(t,-e)),null!=i&&(t=Math.min(t,i)),t},_processDropTargets:function(t){var e=this._findDropTarget(t),i=e===this._currentDropTarget;i||(this._fireDropTargetEvent(t,g),this._currentDropTarget=e,this._fireDropTargetEvent(t,m))},_fireDropTargetEvent:function(t,e){if(this._currentDropTarget){var i={type:e,originalEvent:t,draggingElement:this._$element.get(0),target:this._currentDropTarget};h.fireEvent(i)}},_findDropTarget:function(t){var e,i=this;return r.each(y,function(o,a){if(i._checkDropTargetActive(a)){var s=n(a);r.each(S(s),function(o,a){var r=n(a);i._checkDropTarget(I(s),r,t)&&(e=a)})}}),e},_checkDropTargetActive:function(t){var e=!1;return r.each(this._dropTargets,function(i,n){return e=e||n===t||l(n,t),!e}),e},_checkDropTarget:function(t,e,i){var n=e.get(0)===this._$element.get(0);if(n)return!1;var o=T(t,e);if(i.pageX<o.left)return!1;if(i.pageY<o.top)return!1;var a=E(t,e);return!(i.pageX>o.left+a.width)&&(!(i.pageY>o.top+a.height)&&e)},_end:function(t){var e=h.eventData(t);this._fireEvent(_,t,{offset:this._calculateOffset(e)}),this._fireDropTargetEvent(t,v),delete this._currentDropTarget}});u({emitter:D,events:[p,f,_]}),e.move=f,e.start=p,e.end=_,e.enter=m,e.leave=g,e.drop=v},function(t,e,i){var n=i(21),o=i(30),a=i(78),s=i(12),r=i(9).extend,l=i(25).inArray,c=i(17).each,h=i(10),d=i(90),u=i(47).fitIntoRange,p=i(63),f=i(93),_=i(132),m=h.isPlainObject,g=h.isFunction,v=i(64),b="dxResizable",y="dx-resizable",C="dx-resizable-resizing",x="dx-resizable-handle",w="dx-resizable-handle-top",S="dx-resizable-handle-bottom",I="dx-resizable-handle-left",T="dx-resizable-handle-right",E="dx-resizable-handle-corner",D=f.addNamespace(_.start,b),k=f.addNamespace(_.move,b),B=f.addNamespace(_.end,b),A=p.inherit({_getDefaultOptions:function(){return r(this.callBase(),{handles:"all",step:"1",stepPrecision:"simple",area:void 0,minWidth:30,maxWidth:1/0,minHeight:30,maxHeight:1/0,onResizeStart:null,onResize:null,onResizeEnd:null})},_init:function(){this.callBase(),this.$element().addClass(y)},_render:function(){this.callBase(),this._renderActions(),this._renderHandles()},_renderActions:function(){this._resizeStartAction=this._createActionByOption("onResizeStart"),this._resizeEndAction=this._createActionByOption("onResizeEnd"),this._resizeAction=this._createActionByOption("onResize")},_renderHandles:function(){var t=this.option("handles");if("none"!==t){var e="all"===t?["top","bottom","left","right"]:t.split(" ");c(e,function(t,e){this._renderHandle(e)}.bind(this)),l("bottom",e)+1&&l("right",e)+1&&this._renderHandle("corner-bottom-right"),l("bottom",e)+1&&l("left",e)+1&&this._renderHandle("corner-bottom-left"),l("top",e)+1&&l("right",e)+1&&this._renderHandle("corner-top-right"),l("top",e)+1&&l("left",e)+1&&this._renderHandle("corner-top-left")}},_renderHandle:function(t){var e=this.$element(),i=n("<div>");i.addClass(x).addClass(x+"-"+t).appendTo(e),this._attachEventHandlers(i)},_attachEventHandlers:function(t){if(!this.option("disabled")){var e={};e[D]=this._dragStartHandler.bind(this),e[k]=this._dragHandler.bind(this),e[B]=this._dragEndHandler.bind(this),o.on(t,e,{direction:"both",immediate:!0})}},_dragStartHandler:function(t){var e=this.$element();return e.is(".dx-state-disabled, .dx-state-disabled *")?void(t.cancel=!0):(this._toggleResizingClass(!0),this._movingSides=this._getMovingSides(t),this._elementLocation=d.locate(e),this._elementSize={width:e.outerWidth(),height:e.outerHeight()},this._renderDragOffsets(t),this._resizeStartAction({event:t,width:this._elementSize.width,height:this._elementSize.height,handles:this._movingSides}),void(t.targetElements=null))},_toggleResizingClass:function(t){this.$element().toggleClass(C,t)},_renderDragOffsets:function(t){var e=this._getArea();if(e){var i=n(t.target).closest("."+x),o=i.outerWidth(),a=i.outerHeight(),s=i.offset(),r=e.offset;t.maxLeftOffset=s.left-r.left,t.maxRightOffset=r.left+e.width-s.left-o,t.maxTopOffset=s.top-r.top,t.maxBottomOffset=r.top+e.height-s.top-a}},_getBorderWidth:function(t,e){if(h.isWindow(t.get(0)))return 0;var i=t.css("border-"+e+"-width");return parseInt(i)||0},_dragHandler:function(t){var e=this.$element(),i=this._movingSides,n=this._elementLocation,o=this._elementSize,a=this._getOffset(t),s=o.width+a.x*(i.left?-1:1),r=o.height+a.y*(i.top?-1:1);(a.x||"strict"===this.option("stepPrecision"))&&this._renderWidth(s),(a.y||"strict"===this.option("stepPrecision"))&&this._renderHeight(r);var l=a.y-((this.$element().outerHeight()||r)-r),c=a.x-((this.$element().outerWidth()||s)-s);d.move(e,{top:n.top+(i.top?l:0),left:n.left+(i.left?c:0)}),this._resizeAction({event:t,width:this.option("width")||s,height:this.option("height")||r,handles:this._movingSides}),v.triggerResizeEvent(e)},_getOffset:function(t){var e=t.offset,i=s.pairToObject(this.option("step")),n=this._getMovingSides(t),o="strict"===this.option("stepPrecision");return n.left||n.right||(e.x=0),n.top||n.bottom||(e.y=0),o?this._getStrictOffset(e,i,n):this._getSimpleOffset(e,i)},_getSimpleOffset:function(t,e){return{x:t.x-t.x%e.h,y:t.y-t.y%e.v}},_getStrictOffset:function(t,e,i){var n=this._elementLocation,o=this._elementSize,a=i.left?n.left:n.left+o.width,s=i.top?n.top:n.top+o.height,r=(a+t.x)%e.h,l=(s+t.y)%e.v,c=Math.sign||function(t){return t=+t,0===t||isNaN(t)?t:t>0?1:-1},h=function(t,e){return(1+.2*c(e))%1*t},d=function(t,e){return Math.abs(t)<.2*e},u=t.x-r,p=t.y-l;return r>h(e.h,t.x)&&(u+=e.h),l>h(e.v,t.y)&&(p+=e.v),{x:!i.left&&!i.right||d(t.x,e.h)?0:u,y:!i.top&&!i.bottom||d(t.y,e.v)?0:p}},_getMovingSides:function(t){var e=n(t.target),i=e.hasClass(E+"-top-left"),o=e.hasClass(E+"-top-right"),a=e.hasClass(E+"-bottom-left"),s=e.hasClass(E+"-bottom-right");return{top:e.hasClass(w)||i||o,left:e.hasClass(I)||i||a,bottom:e.hasClass(S)||a||s,right:e.hasClass(T)||o||s}},_getArea:function(){var t=this.option("area");return g(t)&&(t=t.call(this)),m(t)?this._getAreaFromObject(t):this._getAreaFromElement(t)},_getAreaFromObject:function(t){var e={width:t.right-t.left,height:t.bottom-t.top,offset:{left:t.left,top:t.top}};return this._correctAreaGeometry(e),e},_getAreaFromElement:function(t){var e,i=n(t);return i.length&&(e={width:i.innerWidth(),height:i.innerHeight(),offset:r({top:0,left:0},h.isWindow(i[0])?{}:i.offset())},this._correctAreaGeometry(e,i)),e},_correctAreaGeometry:function(t,e){var i=e?this._getBorderWidth(e,"left"):0,n=e?this._getBorderWidth(e,"top"):0;t.offset.left+=i+this._getBorderWidth(this.$element(),"left"),t.offset.top+=n+this._getBorderWidth(this.$element(),"top"),t.width-=this.$element().outerWidth()-this.$element().innerWidth(),t.height-=this.$element().outerHeight()-this.$element().innerHeight()},_dragEndHandler:function(t){var e=this.$element();this._resizeEndAction({event:t,width:e.outerWidth(),height:e.outerHeight(),handles:this._movingSides}),this._toggleResizingClass(!1)},_renderWidth:function(t){this.option("width",u(t,this.option("minWidth"),this.option("maxWidth")))},_renderHeight:function(t){this.option("height",u(t,this.option("minHeight"),this.option("maxHeight")))},_optionChanged:function(t){switch(t.name){case"disabled":case"handles":this._invalidate();break;case"minWidth":case"maxWidth":this._renderWidth(this.$element().outerWidth());break;case"minHeight":case"maxHeight":this._renderHeight(this.$element().outerHeight());break;case"onResize":case"onResizeStart":case"onResizeEnd":this._renderActions();break;case"area":case"stepPrecision":case"step":break;default:this.callBase(t)}},_clean:function(){this.$element().find("."+x).remove()}});a(b,A),t.exports=A},function(t,e,i){var n=i(7),o=function(){var t={},e=function(e){return t[e]||0};return{obtain:function(i){t[i]=e(i)+1},release:function(i){var o=e(i);if(o<1)throw n.Error("E0014");1===o?delete t[i]:t[i]=o-1},locked:function(t){return e(t)>0}}};t.exports=o},function(t,e,i){var n=i(21),o=i(30),a=i(116),s=i(10).isPlainObject,r=i(31),l=i(93);r.add(function(t){var e=l.addNamespace(t,t+"Binding");a.bindingHandlers[t]={update:function(t,i,r,l){var c=n(t),h=a.utils.unwrapObservable(i()),d=h.execute?h.execute:h;o.off(c,e),o.on(c,e,s(h)?h:{},function(t){d.call(l,l,t)})}}})},function(t,e,i){var n=i(21),o=i(30),a=i(70),s=i(71).compileGetter,r=i(9).extend,l=i(116),c=i(137),h=i(97);l.bindingHandlers.dxAction={update:function(t,e,i,c){var d=n(t),u=l.utils.unwrapObservable(e()),p=u,f={context:t};u.execute&&(p=u.execute,r(f,u));var _=new a(p,f);o.off(d,".dxActionBinding"),o.on(d,h.name+".dxActionBinding",function(e){_.execute({element:d,model:c,evaluate:function(e){var i=c;e.length>0&&"$"===e[0]&&(i=l.contextFor(t));var n=s(e);return n(i)},event:e}),f.bubbling||e.stopPropagation()})}},l.bindingHandlers.dxControlsDescendantBindings={init:function(t,e){return{controlsDescendantBindings:l.unwrap(e())}}},l.bindingHandlers.dxIcon={init:function(t,e){var i=l.utils.unwrapObservable(e())||{},n=c.getImageContainer(i);l.virtualElements.emptyNode(t),n&&l.virtualElements.prepend(t,n.get(0))},update:function(t,e){var i=l.utils.unwrapObservable(e())||{},n=c.getImageContainer(i);l.virtualElements.emptyNode(t),n&&l.virtualElements.prepend(t,n.get(0))}},l.virtualElements.allowedBindings.dxIcon=!0},function(t,e,i){var n=i(21),o=function(t){return!(!t||"string"!=typeof t)&&(/data:.*base64|\.|\//.test(t)?"image":/^[\w-_]+$/.test(t)?"dxIcon":"fontIcon")},a=function(t){var e=o(t),i="dx-icon";switch(e){case"image":return n("<img>").attr("src",t).addClass(i);case"fontIcon":return n("<i>").addClass(i+" "+t);case"dxIcon":return n("<i>").addClass(i+" "+i+"-"+t);default:return null}};e.getImageSourceType=o,e.getImageContainer=a},function(t,e,i){var n=i(17).each,o=i(29),a=i(72),s=i(139),r=i(116),l=o.inherit({ctor:function(t,e){var i=this;i.target=t,i.validationRules=e.validationRules,i.name=e.name,i.isValid=r.observable(!0),i.validationError=r.observable(),n(this.validationRules,function(t,e){e.validator=i})},validate:function(){var t=s.validate(this.target(),this.validationRules,this.name);return this._applyValidationResult(t),t},reset:function(){this.target(null);var t={isValid:!0,brokenRule:null};return this._applyValidationResult(t),t},_applyValidationResult:function(t){t.validator=this,this.target.dxValidator.isValid(t.isValid),this.target.dxValidator.validationError(t.brokenRule),this.fireEvent("validated",[t])}}).include(a);r.extenders.dxValidator=function(t,e){return t.dxValidator=new l(t,e),t.subscribe(t.dxValidator.validate.bind(t.dxValidator)),t},s.registerModelForValidation=function(t){n(t,function(e,i){r.isObservable(i)&&i.dxValidator&&s.registerValidatorInGroup(t,i.dxValidator)})},s.unregisterModelForValidation=function(t){n(t,function(e,i){r.isObservable(i)&&i.dxValidator&&s.removeRegisteredValidator(t,i.dxValidator)})},s.validateModel=s.validateGroup},function(t,e,i){var n=i(29),o=i(9).extend,a=i(25).inArray,s=i(17).each,r=i(72),l=i(7),c=i(13),h=i(10),d=i(45),u=i(111),p=n.inherit({NAME:"base",defaultMessage:function(t){return u.getFormatter("validation-"+this.NAME)(t)},defaultFormattedMessage:function(t){return u.getFormatter("validation-"+this.NAME+"-formatted")(t)},validate:function(t,e){var i=Array.isArray(t)?t:[t],n=!0;return i.length?i.every(function(t){return n=this._validate(t,e)},this):n=this._validate(null,e),n}}),f=p.inherit({NAME:"required",_validate:function(t,e){return!!h.isDefined(t)&&(t!==!1&&(t=String(t),!e.trim&&h.isDefined(e.trim)||(t=t.trim()),""!==t))}}),_=p.inherit({NAME:"numeric",_validate:function(t,e){return!x.required.validate(t,{})||(e.useCultureSettings&&h.isString(t)?!isNaN(d.parse(t)):h.isNumeric(t))}}),m=p.inherit({NAME:"range",_validate:function(t,e){if(!x.required.validate(t,{}))return!0;var i=x.numeric.validate(t,e),n=h.isDefined(t),o=i?parseFloat(t):n&&t.valueOf(),a=e.min,s=e.max;if(!i&&!h.isDate(t)&&!n)return!1;if(h.isDefined(a))return h.isDefined(s)?o>=a&&o<=s:o>=a;if(h.isDefined(s))return o<=s;throw l.Error("E0101")}}),g=p.inherit({NAME:"stringLength",_validate:function(t,e){return t=h.isDefined(t)?String(t):"",!e.trim&&h.isDefined(e.trim)||(t=t.trim()),x.range.validate(t.length,o({},e))}}),v=p.inherit({NAME:"custom",validate:function(t,e){var i=e.validator,n=i&&h.isFunction(i.option)&&i.option("dataGetter"),o=h.isFunction(n)&&n(),a={value:t,validator:i,rule:e};return o&&(a.data=o),e.validationCallback(a)}}),b=p.inherit({NAME:"compare",_validate:function(t,e){if(!e.comparisonTarget)throw l.Error("E0102");o(e,{reevaluate:!0});var i=e.comparisonTarget(),n=e.comparisonType||"==";switch(n){case"==":return t==i;case"!=":return t!=i;case"===":return t===i;case"!==":return t!==i;case">":return t>i;case">=":return t>=i;case"<":return t<i;case"<=":return t<=i}}}),y=p.inherit({NAME:"pattern",_validate:function(t,e){if(!x.required.validate(t,{}))return!0;var i=e.pattern;return h.isString(i)&&(i=new RegExp(i)),i.test(t)}}),C=p.inherit({NAME:"email",_validate:function(t,e){return!x.required.validate(t,{})||x.pattern.validate(t,o({},e,{pattern:/^[\d\w._-]+@[\d\w._-]+\.[\w]+$/i}))}}),x={required:new f,numeric:new _,range:new m,stringLength:new g,custom:new v,compare:new b,pattern:new y,email:new C},w=n.inherit({ctor:function(t){this.group=t,this.validators=[]},validate:function(){var t={isValid:!0,brokenRules:[],validators:[]};return s(this.validators,function(e,i){var n=i.validate();t.isValid=t.isValid&&n.isValid,n.brokenRule&&t.brokenRules.push(n.brokenRule),t.validators.push(i)}),this.fireEvent("validated",[{validators:t.validators,brokenRules:t.brokenRules,isValid:t.isValid}]),t},reset:function(){s(this.validators,function(t,e){e.reset()})}}).include(r),S={groups:[],getGroupConfig:function(t){var e=c.grep(this.groups,function(e){return e.group===t});if(e.length)return e[0]},initGroups:function(){this.groups=[],this.addGroup()},addGroup:function(t){var e=this.getGroupConfig(t);return e||(e=new w(t),this.groups.push(e)),e},removeGroup:function(t){var e=this.getGroupConfig(t),i=a(e,this.groups);return i>-1&&this.groups.splice(i,1),e},_setDefaultMessage:function(t,e,i){h.isDefined(t.message)||(e.defaultFormattedMessage&&h.isDefined(i)?t.message=e.defaultFormattedMessage(i):t.message=e.defaultMessage())},validate:function(t,e,i){var n={name:i,value:t,brokenRule:null,isValid:!0,validationRules:e},o=this;return s(e||[],function(e,a){var s,r=x[a.type];if(!r)throw l.Error("E0100");return h.isDefined(a.isValid)&&a.value===t&&!a.reevaluate?!!a.isValid||(n.isValid=!1,n.brokenRule=a,!1):(a.value=t,s=r.validate(t,a),a.isValid=s,s||(n.isValid=!1,o._setDefaultMessage(a,r,i),n.brokenRule=a),!!a.isValid&&void 0)}),n},registerValidatorInGroup:function(t,e){var i=S.addGroup(t);a(e,i.validators)<0&&i.validators.push(e)},_shouldRemoveGroup:function(t,e){var i=void 0===t,n=t&&"dxValidationGroup"===t.NAME;return!i&&!n&&!e.length},removeRegisteredValidator:function(t,e){var i=S.getGroupConfig(t),n=i&&i.validators,o=a(e,n);o>-1&&(n.splice(o,1),this._shouldRemoveGroup(t,n)&&this.removeGroup(t))},validateGroup:function(t){var e=S.getGroupConfig(t);if(!e)throw l.Error("E0110");return e.validate()},resetGroup:function(t){var e=S.getGroupConfig(t);if(!e)throw l.Error("E0110");return e.reset()}};S.initGroups(),t.exports=S},function(t,e,i){var n=i(116),o=i(27);o.inject({isWrapped:n.isObservable,isWritableWrapped:n.isWritableObservable,wrap:n.observable,unwrap:function(t){return n.isObservable(t)?n.utils.unwrapObservable(t):this.callBase(t)},assign:function(t,e){n.isObservable(t)?t(e):this.callBase(t,e)}})},function(t,e,i){var n=i(23),o=n.afterCleanData,a=n.strategyChanging,s=i(116),r=i(108).compare,l=s.utils.domNodeDisposal.cleanExternalData,c=function(){o(function(t){for(var e=0;e<t.length;e++)t[e].cleanedByJquery=!0;for(e=0;e<t.length;e++)t[e].cleanedByKo||s.cleanNode(t[e]),delete t[e].cleanedByKo;for(e=0;e<t.length;e++)delete t[e].cleanedByJquery}),s.utils.domNodeDisposal.cleanExternalData=function(t){t.cleanedByKo=!0,t.cleanedByJquery||n.cleanData([t])}},h=function(){o(function(){}),s.utils.domNodeDisposal.cleanExternalData=l};c(),a.add(function(t){var e=!!t.fn;e&&r(t.fn.jquery,[2,0])<0&&h()})},function(t,e,i){var n=i(116),o=i(108).compare,a=i(23).strategyChanging,s=function(t){var e=function(t,e){var i=function(){n.cleanNode(this)};e?t.each(i):t.find("*").each(i)},i=t.fn.empty;t.fn.empty=function(){return e(this,!1),i.apply(this,arguments)};var o=t.fn.remove;t.fn.remove=function(t,i){if(!i){var n=this;t&&(n=n.filter(t)),e(n,!0)}return o.call(this,t,i)};var a=t.fn.html;t.fn.html=function(t){return"string"==typeof t&&e(this,!1),a.apply(this,arguments)};var s=t.fn.replaceWith;t.fn.replaceWith=function(){var t=s.apply(this,arguments);return this.parent().length||e(this,!0),t}};a.add(function(t){var e=!!t.fn;e&&o(t.fn.jquery,[2,0])<0&&s(t)})},function(t,e,i){i(144);var n=i(145),o=i(158),a=i(9).extend,s=i(10),r=i(78),l=i(63),c=s.isFunction,h=s.isPlainObject,d=i(13).noop;i(115);var u=l.inherit({ctor:function(t,e){h(t)&&(e=t,t=n("<div>")),this.callBase(t,e)},_setDeprecatedOptions:function(){this.callBase(),a(this._deprecatedOptions,{iconSrc:{since:"15.1",alias:"icon"}})},_getDefaultOptions:function(){return a(this.callBase(),{onExecute:null,id:null,title:"",icon:"",visible:!0,disabled:!1,renderStage:"onViewShown"})},execute:function(){var t=this._options.disabled;if(c(t)&&(t=!!t.apply(this,arguments)),t)throw o.Error("E3004",this._options.id);this.fireEvent("beforeExecute",arguments),this._createActionByOption("onExecute").apply(this,arguments),this.fireEvent("afterExecute",arguments)},_render:function(){this.callBase(),this.$element().addClass("dx-command")},_renderDisabledState:d,_dispose:function(){this.callBase(),this.$element().removeData(this.NAME)}});r("dxCommand",u),t.exports=u},function(t,e,i){var n=i(145),o=i(108).compare,a=i(8),s=i(146)();if(s&&o(n.fn.jquery,[1,10])<0)throw a.Error("E0012");i(147),i(148),i(149),i(150),i(152),i(153),i(154),i(155),i(156),i(157)},function(t,e){t.exports=window.jQuery},function(t,e,i){var n=i(145),o=i(14),a=o().useJQuery;n&&a!==!1&&o({useJQuery:!0}),t.exports=function(){return n&&o().useJQuery}},function(t,e,i){var n=i(145),o=i(22),a=i(146)();a&&o.set(n)},function(t,e,i){var n=i(145),o=i(146)(),a=i(108).compare,s=i(17).each,r=i(10).isNumeric,l=i(93).setEventFixMethod,c=i(68),h=i(34);if(o)if(a(n.fn.jquery,[3])<0){var d={2:"touch",3:"pen",4:"mouse"};s(["MSPointerDown","MSPointerMove","MSPointerUp","MSPointerCancel","MSPointerOver","MSPointerOut","mouseenter","mouseleave","pointerdown","pointermove","pointerup","pointercancel","pointerover","pointerout","pointerenter","pointerleave"],function(){n.event.fixHooks[this]={filter:function(t,e){var i=e.pointerType;return r(i)&&(t.pointerType=d[i]),t},props:n.event.mouseHooks.props.concat(["pointerId","pointerType","originalTarget","width","height","pressure","result","tiltX","charCode","tiltY","detail","isPrimary","prevValue"])}}),s(["touchstart","touchmove","touchend","touchcancel"],function(){n.event.fixHooks[this]={filter:function(t,e){return h(function(i,n){t[i]=n(e)}),t},props:n.event.mouseHooks.props.concat(["touches","changedTouches","targetTouches","detail","result","originalTarget","charCode","prevValue"])}}),n.event.fixHooks.wheel=n.event.mouseHooks;var u={props:n.event.mouseHooks.props.concat(["pointerType","pointerId","pointers"])};c.callbacks.add(function(t){n.event.fixHooks[t]=u});var p=function(t,e){for(var i=n.event.fixHooks[e.type]||n.event.mouseHooks,o=i.props?n.event.props.concat(i.props):n.event.props,a=o.length;a--;){var s=o[a];t[s]=e[s]}return i.filter?i.filter(t,e):t};l(p)}else h(function(t,e){n.event.addProp(t,e)})},function(t,e,i){var n=i(145),o=i(15),a=i(146)(),s=i(108).compare;if(a){var r=n.Deferred,l={Deferred:r};l.when=s(n.fn.jquery,[3])<0?n.when:function(t){return 0===arguments.length?(new r).resolve():1===arguments.length?t&&t.then?t:(new r).resolve(t):n.when.apply(n,arguments);
|
|
18
|
-
},o.setStrategy(l)}},function(t,e,i){var n=i(145),o=i(151),a=i(77);if(n&&!o.fired()){var s=n.holdReady||n.fn.holdReady;s(!0),o.add(function(){a(function(){s(!1)})})}},function(t,e,i){var n=i(16);t.exports=new n},function(t,e,i){var n=i(145),o=i(30),a=i(146)(),s=i(31);a&&(s.add(function(t,e){n.event.special[t]=e}),o.forcePassiveFalseEventNames.forEach(function(t){n.event.special[t]={setup:function(e,i,n){this.addEventListener(t,n,{passive:!1})}}}),o.set({on:function(t){n(t).on.apply(n(t),Array.prototype.slice.call(arguments,1))},one:function(t){n(t).one.apply(n(t),Array.prototype.slice.call(arguments,1))},off:function(t){n(t).off.apply(n(t),Array.prototype.slice.call(arguments,1))},trigger:function(t){n(t).trigger.apply(n(t),Array.prototype.slice.call(arguments,1))},triggerHandler:function(t){n(t).triggerHandler.apply(n(t),Array.prototype.slice.call(arguments,1))},Event:n.Event}))},function(t,e,i){var n=i(145),o=i(91);n&&o.setEasing(n.easing)},function(t,e,i){var n=i(145),o=i(23),a=i(146)();a&&o.setDataStrategy(n)},function(t,e,i){var n=i(64).setPublicElementWrapper,o=i(146)(),a=function(t){return t};o&&n(a)},function(t,e,i){var n=i(145),o=i(79),a=i(7);if(n){var s=function(t,e){n.fn[t]=function(i){var n,o="string"==typeof i;if(o){var s=i,r=[].slice.call(arguments).slice(1);this.each(function(){var i=e.getInstance(this);if(!i)throw a.Error("E0009",t);var o=i[s],l=o.apply(i,r);void 0===n&&(n=l)})}else this.each(function(){var t=e.getInstance(this);t?t.option(i):new e(this,i)}),n=this;return n}};o.add(s)}},function(t,e,i){var n=i(145),o=i(60),a=i(146)();a&&o.setStrategy(n.ajax)},function(t,e,i){var n=i(8),o=i(7);t.exports=n(o.ERROR_MESSAGES,{E3001:"Routing rule is not found for the '{0}' URI.",E3002:"The passed object cannot be formatted into a URI string by the application's router. An appropriate route should be registered.",E3003:"Unable to navigate. Application is being initialized.",E3004:"Cannot execute the command: {0}.",E3005:"The '{0}' command {1} is not registered in the application's command mapping. Go to http://dxpr.es/1bTjfj1 for more details.",E3006:"Unknown navigation target: '{0}'. Use the 'current', 'back' or 'blank' values.",E3007:"Error while restoring the application state. The state has been cleared. Refresh the page.",E3008:"Unable to go back.",E3009:"Unable to go forward.",E3010:"The command's 'id' option should be specified.\r\nProcessed markup: {0}\n",E3011:"Layout controller cannot be resolved. There are no appropriate layout controllers for the current context. Check browser console for details.",E3012:"Layout controller cannot be resolved. Two or more layout controllers suit the current context. Check browser console for details.",E3013:"The '{0}' template with the '{1}' name is not found. Make sure the case is correct in the specified view name and the template fits the current context.",E3014:"All the children of the dxView element should be either of the dxCommand or dxContent type.\r\nProcessed markup: {0}",E3015:"The 'exec' method should be called before the 'finalize' method.",E3016:"Unknown transition type '{0}'.",E3018:"Unable to parse options.\nMessage: {0};\nOptions value: {1}.",E3019:"View templates should be updated according to the 13.1 changes. Go to http://dxpr.es/15ikrJA for more details.",E3020:"Concurrent templates are found:\r\n{0}Target device:\r\n{1}.",E3021:"Remote template cannot be loaded.\r\nUrl:{0}\r\nError:{1}.",E3022:"Cannot initialize the HtmlApplication component.",E3023:"Navigation item is not found",E3024:"Layout controller is not initialized",W3001:"A view with the '{0}' key doesn't exist.",W3002:"A view with the '{0}' key has already been released.",W3003:"Layout resolving context:\n{0}\nAvailable layout controller registrations:\n{1}\n",W3004:"Layout resolving context:\n{0}\nConcurent layout controller registrations for the context:\n{1}\n",W3005:'Direct hash-based navigation is detected in a mobile application. Use data-bind="dxAction: url" instead of href="#url" to avoid navigation issues.\nFound markup:\n{0}\n'})},function(t,e,i){var n=i(9).extend,o=i(10),a=i(17),s=i(25).inArray,r=i(29),l=encodeURIComponent("json:"),c=r.inherit({_trimSeparators:function(t){return t.replace(/^[\/.]+|\/+$/g,"")},_escapeRe:function(t){return t.replace(/[^-\w]/g,"\\$1")},_checkConstraint:function(t,e){t=String(t),"string"==typeof e&&(e=new RegExp(e));var i=e.exec(t);return!(!i||i[0]!==t)},_ensureReady:function(){var t=this;return!this._patternRe&&(this._pattern=this._trimSeparators(this._pattern),this._patternRe="",this._params=[],this._segments=[],this._separators=[],this._pattern.replace(/[^\/]+/g,function(e,i){t._segments.push(e),i&&t._separators.push(t._pattern.substr(i-1,1))}),a.each(this._segments,function(e){var i=this,n=e?t._separators[e-1]:"";":"===i.charAt(0)?(i=i.substr(1),t._params.push(i),t._patternRe+="(?:"+n+"([^/]*))",i in t._defaults&&(t._patternRe+="?")):t._patternRe+=n+t._escapeRe(i)}),void(this._patternRe=new RegExp("^"+this._patternRe+"$")))},ctor:function(t,e,i){this._pattern=t||"",this._defaults=e||{},this._constraints=i||{}},parse:function(t){var e=this;this._ensureReady();var i=this._patternRe.exec(t);if(!i)return!1;var o=n({},this._defaults);return a.each(this._params,function(t){var n=t+1;i.length>=n&&i[n]&&(o[this]=e.parseSegment(i[n]))}),a.each(this._constraints,function(t){if(!e._checkConstraint(o[t],e._constraints[t]))return o=!1,!1}),o},format:function(t){var e=this,i="";this._ensureReady();var r=n({},this._defaults),l=0,c=[],h=[],d={};a.each(t,function(i,n){t[i]=e.formatSegment(n),i in r||(d[i]=!0)}),a.each(this._segments,function(i,n){if(c[i]=i?e._separators[i-1]:"",":"===n.charAt(0)){var o=n.substr(1);if(!(o in t||o in e._defaults))return c=null,!1;if(o in e._constraints&&!e._checkConstraint(t[o],e._constraints[o]))return c=null,!1;o in t?(void 0!==t[o]&&(r[o]=t[o],c[i]+=t[o],l=i),delete d[o]):o in r&&(c[i]+=r[o],h.push(i))}else c[i]+=n,l=i}),a.each(r,function(i,n){if(n&&s(":"+i,e._segments)===-1&&t[i]!==n)return c=null,!1});var u=0;if(o.isEmptyObject(d)||(i="?",a.each(d,function(e){i+=e+"="+t[e]+"&",u++}),i=i.substr(0,i.length-1)),null===c)return!1;h.length&&a.map(h,function(t){t>=l&&(c[t]="")});var p=c.join("");return p=p.replace(/\/+$/,""),{uri:p+i,unusedCount:u}},formatSegment:function(t){return Array.isArray(t)||o.isPlainObject(t)?l+encodeURIComponent(JSON.stringify(t)):encodeURIComponent(t)},parseSegment:function(t){if(t.substr(0,l.length)===l)try{return JSON.parse(decodeURIComponent(t.substr(l.length)))}catch(t){}return decodeURIComponent(t)}}),h=r.inherit({ctor:function(){this._registry=[]},_trimSeparators:function(t){return t.replace(/^[\/.]+|\/+$/g,"")},_createRoute:function(t,e,i){return new c(t,e,i)},register:function(t,e,i){this._registry.push(this._createRoute(t,e,i))},_parseQuery:function(t){var e={},i=t.split("&");return a.each(i,function(t,i){var n=i.split("=");e[n[0]]=decodeURIComponent(n[1])}),e},parse:function(t){var e,i=this;t=this._trimSeparators(t);var o=t.split("?",2),s=o[0],r=o[1];return a.each(this._registry,function(){var t=this.parse(s);if(t!==!1)return e=t,r&&(e=n(e,i._parseQuery(r))),!1}),!!e&&e},format:function(t){var e=!1,i=99999;return t=t||{},a.each(this._registry,function(){var o=n(!0,{},t),a=this.format(o);a!==!1&&i>a.unusedCount&&(i=a.unusedCount,e=a.uri)}),e}});t.exports=h,t.exports.Route=c},function(t,e,i){var n=i(29),o=i(25).inArray,a=i(17).each,s=n.inherit({ctor:function(){this.storage={}},getItem:function(t){return this.storage[t]},setItem:function(t,e){this.storage[t]=e},removeItem:function(t){delete this.storage[t]}}),r=n.inherit({ctor:function(t){t=t||{},this.storage=t.storage||new s,this.stateSources=t.stateSources||[]},addStateSource:function(t){this.stateSources.push(t)},removeStateSource:function(t){var e=o(t,this.stateSources);e>-1&&(this.stateSources.splice(e,1),t.removeState(this.storage))},saveState:function(){var t=this;a(this.stateSources,function(e,i){i.saveState(t.storage)})},restoreState:function(){var t=this;a(this.stateSources,function(e,i){i.restoreState(t.storage)})},clearState:function(){var t=this;a(this.stateSources,function(e,i){i.removeState(t.storage)})}});t.exports=r,t.exports.MemoryKeyValueStorage=s},function(t,e,i){function n(t,e,i){e.on(t,function(){i.fireEvent(t,arguments)})}var o=i(25).inArray,a=i(17).each,s=i(29),r=i(72),l=s.inherit({ctor:function(){this._cache={}},setView:function(t,e){this._cache[t]=e},getView:function(t){return this._cache[t]},removeView:function(t){var e=this._cache[t];return e&&(delete this._cache[t],this.fireEvent("viewRemoved",[{viewInfo:e}])),e},clear:function(){var t=this;a(this._cache,function(e){t.removeView(e)})},hasView:function(t){return t in this._cache}}).include(r),c=l.inherit({setView:function(t,e){this.callBase(t,e),this.removeView(t)}}),h=s.inherit({ctor:function(t){this._filter=t.filter,this._viewCache=t.viewCache,this.viewRemoved=this._viewCache.viewRemoved,n("viewRemoved",this._viewCache,this)},setView:function(t,e){this._viewCache.setView(t,e),this._filter(t,e)||this._viewCache.removeView(t)},getView:function(t){return this._viewCache.getView(t)},removeView:function(t){return this._viewCache.removeView(t)},clear:function(){return this._viewCache.clear()},hasView:function(t){return this._viewCache.hasView(t)}}).include(r),d=5,u=s.inherit({ctor:function(t){this._keys=[],this._size=t.size||d,this._viewCache=t.viewCache,this.viewRemoved=this._viewCache.viewRemoved,n("viewRemoved",this._viewCache,this)},setView:function(t,e){this.hasView(t)||(this._keys.length===this._size&&this.removeView(this._keys[0]),this._keys.push(t)),this._viewCache.setView(t,e)},getView:function(t){var e=o(t,this._keys);return e<0?null:(this._keys.push(t),this._keys.splice(e,1),this._viewCache.getView(t))},removeView:function(t){var e=o(t,this._keys);return e>-1&&this._keys.splice(e,1),this._viewCache.removeView(t)},clear:function(){return this._keys=[],this._viewCache.clear()},hasView:function(t){return this._viewCache.hasView(t)}}).include(r),p=s.inherit({ctor:function(t){this._viewCache=t.viewCache||new l,this._navigationManager=t.navigationManager,this._navigationManager.on("itemRemoved",this._onNavigationItemRemoved.bind(this)),this.viewRemoved=this._viewCache.viewRemoved,n("viewRemoved",this._viewCache,this)},_onNavigationItemRemoved:function(t){this.removeView(t.key)},setView:function(t,e){this._viewCache.setView(t,e)},getView:function(t){return this._viewCache.getView(t)},removeView:function(t){return this._viewCache.removeView(t)},clear:function(){return this._viewCache.clear()},hasView:function(t){return this._viewCache.hasView(t)}}).include(r);t.exports=l,t.exports.NullViewCache=c,t.exports.ConditionalViewCacheDecorator=h,t.exports.CapacityViewCacheDecorator=u,t.exports.HistoryDependentViewCacheDecorator=p},function(t,e,i){i(144);var n=i(145),o=i(163).MarkupComponent,a=i(10).isPlainObject,s=i(78);i(115);var r=o.inherit({ctor:function(t,e){a(t)&&(e=t,t=n("<div>")),this.callBase(t,e)},_setDefaultOptions:function(){this.callBase(),this.option({id:null})},_render:function(){this.callBase(),this.element().addClass("dx-command-container")}});s("dxCommandContainer",r),t.exports=r},function(t,e,i){i(144);var n=i(145),o=i(29),a=i(9).extend,s=i(13).noop,r=i(66),l=o.inherit({ctor:function(t,e){this.NAME=r.name(this.constructor),e=e||{},this._$element=n(t),r.attachInstanceToElement(this._$element,this,this._dispose),e.fromCache?this._options=e:(this._options={},this._setDefaultOptions(),e&&this.option(e),this._render())},_setDefaultOptions:s,_render:s,_dispose:s,element:function(){return this._$element},option:function(t,e){if(0===arguments.length)return this._options;if(1===arguments.length){if("string"==typeof t)return this._options[t];e=t,a(this._options,e)}else this._options[t]=e},instance:function(){return this}});l.getInstance=function(t){return r.getInstanceByElement(n(t),this)},e.MarkupComponent=l},function(t,e,i){var n=i(158),o=i(64),a=i(78),s=i(163).MarkupComponent;i(115);var r=s.inherit({_setDefaultOptions:function(){this.callBase(),this.option({name:null,title:null})},ctor:function(){this._id=o.uniqueId(),this.callBase.apply(this,arguments)},_render:function(){this.callBase(),this.element().addClass("dx-view"),this.element().attr("dx-data-template-id",this._id)},getId:function(){return this._id}}),l=s.inherit({_setDefaultOptions:function(){this.callBase(),this.option({name:null})},_render:function(){this.callBase(),this.element().addClass("dx-layout")}}),c=s.inherit({_setDefaultOptions:function(){this.callBase(),this.option({viewName:null})},_render:function(){this.callBase(),this.element().addClass("dx-view-placeholder")}}),h=function(t,e,i,n){"absolute"===n?t.addClass("dx-transition-absolute"):t.addClass("dx-transition-static"),t.addClass("dx-transition").addClass("dx-transition-"+i).addClass("dx-transition-"+e).attr("data-dx-transition-type",e).attr("data-dx-transition-name",i)},d=function(t){t.addClass("dx-transition-inner-wrapper")},u=s.inherit({_setDefaultOptions:function(){this.callBase(),this.option({name:null,type:void 0,animation:"slide"})},_render:function(){this.callBase();var t=this.element();h(t,this.option("type")||this.option("animation"),this.option("name"),"absolute"),t.wrapInner("<div>"),d(t.children()),this.option("type")&&n.log("W0003","dxTransition","type","15.1","Use the 'animation' property instead")},_clean:function(){this.callBase(),this.element().empty()}}),p=s.inherit({_setDefaultOptions:function(){this.callBase(),this.option({name:null,transition:void 0,animation:"none",contentCssPosition:"absolute"})},_render:function(){this.callBase();var t=this.element();t.addClass("dx-content-placeholder").addClass("dx-content-placeholder-"+this.option("name")),t.attr("data-dx-content-placeholder-name",this.option("name")),h(t,this.option("transition")||this.option("animation"),this.option("name"),this.option("contentCssPosition")),this.option("transition")&&n.log("W0003","dxContentPlaceholder","transition","15.1","Use the 'animation' property instead")}}),f=s.inherit({_setDefaultOptions:function(){this.callBase(),this.option({targetPlaceholder:null})},_optionChanged:function(){this._refresh()},_clean:function(){this.callBase(),this.element().removeClass(this._currentClass)},_render:function(){this.callBase();var t=this.element();t.addClass("dx-content"),this._currentClass="dx-content-"+this.option("targetPlaceholder"),t.attr("data-dx-target-placeholder-id",this.option("targetPlaceholder")),t.addClass(this._currentClass),d(t)}});a("dxView",r),a("dxLayout",l),a("dxViewPlaceholder",c),a("dxContentPlaceholder",p),a("dxTransition",u),a("dxContent",f),e.dxView=r,e.dxLayout=l,e.dxViewPlaceholder=c,e.dxContentPlaceholder=p,e.dxTransition=u,e.dxContent=f},function(t,e,i){i(144);var n=i(145),o=i(13),a=i(69),s=i(9),r=i(17).each,l=i(158),c=i(166).Application,h=i(161).ConditionalViewCacheDecorator,d=i(174),u=i(175),p=i(177).ViewEngine,f=i(111),_=i(76).value,m=i(81),g=i(74),v=i(126),b=i(95),y=i(88),C=i(15).when;i(178),i(179);var x="dx-viewport",w="layout-change",S=c.inherit({ctor:function(t){t=t||{},this.callBase(t),this._$root=n(t.rootNode||document.body),this._initViewport(t.viewPort),"mobileApp"===this._applicationMode&&m.initMobileViewport(t.viewPort),this.device=t.device||g.current(),this.commandManager=t.commandManager||new u({commandMapping:this.commandMapping}),this._initTemplateContext(),this.viewEngine=t.viewEngine||new p({$root:this._$root,device:this.device,templateCacheStorage:t.templateCacheStorage||window.localStorage,templatesVersion:t.templatesVersion,templateContext:this._templateContext}),this.components.push(this.viewEngine),this._initMarkupFilters(this.viewEngine),this._layoutSet=t.layoutSet||d.layoutSets.default,this._animationSet=t.animationSet||d.animationSets.default,this._availableLayoutControllers=[],this._activeLayoutControllersStack=[],this.transitionExecutor=new b.TransitionExecutor,this._initAnimations(this._animationSet)},_initAnimations:function(t){t&&(r(t,function(t,e){r(e,function(e,i){y.presets.registerPreset(t,i)})}),y.presets.applyChanges())},_localizeMarkup:function(t){f.localizeNode(t)},_notifyIfBadMarkup:function(t){t.each(function(){var t=n(this).html();/href="#/.test(t)&&l.log("W3005",t)})},_initMarkupFilters:function(t){var e=[];e.push(this._localizeMarkup),t.markupLoaded&&t.markupLoaded.add(function(t){r(e,function(e,i){i(t.markup)})})},_createViewCache:function(t){var e=this.callBase(t);return t.viewCache||(e=new h({filter:function(t,e){return!e.viewTemplateInfo.disableCache},viewCache:e})),e},_initViewport:function(){this._$viewPort=this._getViewPort(),_(this._$viewPort)},_getViewPort:function(){var t=n("."+x);return t.length||(t=n("<div>").addClass(x).appendTo(this._$root)),t},_initTemplateContext:function(){this._templateContext=new a({orientation:g.orientation()}),g.on("orientationChanged",function(t){this._templateContext.option("orientation",t.orientation)}.bind(this))},_showViewImpl:function(t,e){var i=this,o=n.Deferred(),a=o.promise(),s=t.layoutController;return i._obtainViewLink(t),s.showView(t,e).done(function(){i._activateLayoutController(s,i._getTargetNode(t),e).done(function(){o.resolve()})}),v.lock(a),a},_resolveLayoutController:function(t){var e={viewInfo:t,layoutController:null,availableLayoutControllers:this._availableLayoutControllers};return this._processEvent("resolveLayoutController",e,t.model),e.layoutController||this._resolveLayoutControllerImpl(t)},_checkLayoutControllerIsInitialized:function(t){if(t){var e=!1;if(r(this._layoutSet,function(i,n){if(n.controller===t)return e=!0,!1}),!e)throw l.Error("E3024")}},_ensureOneLayoutControllerFound:function(t,e){var i=function(t,e){return"controller"===t?"[controller]: { name:"+e.name+" }":e};if(!e.length)throw l.log("W3003",JSON.stringify(t,null,4),JSON.stringify(this._availableLayoutControllers,i,4)),l.Error("E3011");if(e.length>1)throw l.log("W3004",JSON.stringify(t,null,4),JSON.stringify(e,i,4)),l.Error("E3012")},_resolveLayoutControllerImpl:function(t){var e=t.viewTemplateInfo||{},i=t.navigateOptions||{},n=s.extend({root:!t.canBack,customResolveRequired:!1,pane:e.pane,modal:void 0!==i.modal?i.modal:e.modal||!1},g.current()),a=o.findBestMatches(n,this._availableLayoutControllers);return this._ensureOneLayoutControllerFound(n,a),a[0].controller},_onNavigatingBack:function(t){if(this.callBase.apply(this,arguments),!t.cancel&&!this.canBack()&&this._activeLayoutControllersStack.length>1){var e=this._activeLayoutControllersStack[this._activeLayoutControllersStack.length-2],i=e.activeViewInfo();t.cancel=!0,this._activateLayoutController(e,void 0,"backward"),this.navigationManager.currentItem(i.key)}},_activeLayoutController:function(){return this._activeLayoutControllersStack.length?this._activeLayoutControllersStack[this._activeLayoutControllersStack.length-1]:void 0},_getTargetNode:function(t){var e=(t.navigateOptions||{}).event;return e?n(e.target):void 0},_activateLayoutController:function(t,e,i){var o=this,a=o._activeLayoutController();if(a===t)return n.Deferred().resolve().promise();var s=n.Deferred();return t.ensureActive(e).done(function(e){o._deactivatePreviousLayoutControllers(t,i,e).done(function(){o._activeLayoutControllersStack.push(t),s.resolve()})}),s.promise()},_deactivatePreviousLayoutControllers:function(t,e){var i=this,o=[],a=i._activeLayoutControllersStack.pop();if(!a)return n.Deferred().resolve().promise();if(t.isOverlay)i._activeLayoutControllersStack.push(a),o.push(a.disable());else{for(var s=n.Deferred(),r=!1,l=function(t,e){return function(){t.deactivate().done(function(){e.resolve()})}};a&&a!==t;){var c=n.Deferred();a.isOverlay?r=!0:r||i.transitionExecutor.leave(a.element(),w,{direction:e}),s.promise().done(l(a,c)),o.push(c.promise()),a=i._activeLayoutControllersStack.pop()}r?s.resolve():(i.transitionExecutor.enter(t.element(),w,{direction:e}),i.transitionExecutor.start().done(function(){s.resolve()}))}return C.apply(n,o)},init:function(){var t=this,e=this.callBase();return e.done(function(){t._initLayoutControllers(),t.renderNavigation()}),e},_disposeView:function(t){t.layoutController.disposeView&&t.layoutController.disposeView(t),this.callBase(t)},viewPort:function(){return this._$viewPort},_createViewInfo:function(){var t=this.callBase.apply(this,arguments),e=this.getViewTemplateInfo(t.viewName);if(!e)throw l.Error("E3013","dxView",t.viewName);return t.viewTemplateInfo=e,t.layoutController=this._resolveLayoutController(t),t},_createViewModel:function(t){this.callBase(t),s.extendFromObject(t.model,t.viewTemplateInfo)},_initLayoutControllers:function(){var t=this;r(t._layoutSet,function(e,i){var n=i.controller,a=g.current();o.findBestMatches(a,[i]).length&&(t._availableLayoutControllers.push(i),n.init&&n.init({app:t,$viewPort:t._$viewPort,navigationManager:t.navigationManager,viewEngine:t.viewEngine,templateContext:t._templateContext,commandManager:t.commandManager}),n.on&&(n.on("viewReleased",function(e){t._onViewReleased(e)}),n.on("viewHidden",function(e){t._onViewHidden(e)}),n.on("viewRendered",function(e){t._processEvent("viewRendered",{viewInfo:e},e.model)}),n.on("viewShowing",function(e,i){t._processEvent("viewShowing",{viewInfo:e,direction:i,params:e.routeData},e.model)}),n.on("viewShown",function(e,i){t._processEvent("viewShown",{viewInfo:e,direction:i,params:e.routeData},e.model)})))})},_onViewReleased:function(t){this._releaseViewLink(t)},renderNavigation:function(){var t=this;r(t._availableLayoutControllers,function(e,i){var n=i.controller;n.renderNavigation&&n.renderNavigation(t.navigation)})},getViewTemplate:function(t){return this.viewEngine.getViewTemplate(t)},getViewTemplateInfo:function(t){var e=this.viewEngine.getViewTemplateInfo(t);return e&&e.option()},loadTemplates:function(t){return this.viewEngine.loadTemplates(t)},templateContext:function(){return this._templateContext}});t.exports=S},function(t,e,i){i(144);var n,o=i(145),a=i(29),s=a.abstract,r=i(70),l=i(13),c=i(10),h=i(17),d=i(9).extend,u=i(167).utils.mergeCommands,p=i(168).createActionExecutors,f=i(159),_=i(169),m=i(160),g=i(143),v=i(111),b=i(172),y=i(161),C=i(72),x=i(75).sessionStorage,w=i(173),S=i(158),I=i(15).when,T="InProgress",E="Inited",D=a.inherit({ctor:function(t){t=t||{},this._options=t,this.namespace=t.namespace||window,this._applicationMode=t.mode?t.mode:"mobileApp",this.components=[],n=v.localizeString("@Back"),this.router=t.router||new f;var e={mobileApp:_.StackBasedNavigationManager,webSite:_.HistoryBasedNavigationManager};this.navigationManager=t.navigationManager||new e[this._applicationMode]({keepPositionInStack:"keepHistory"===t.navigateToRootViewMode}),this.navigationManager.on("navigating",this._onNavigating.bind(this)),this.navigationManager.on("navigatingBack",this._onNavigatingBack.bind(this)),this.navigationManager.on("navigated",this._onNavigated.bind(this)),this.navigationManager.on("navigationCanceled",this._onNavigationCanceled.bind(this)),this.stateManager=t.stateManager||new m({storage:t.stateStorage||x()}),this.stateManager.addStateSource(this.navigationManager),this.viewCache=this._createViewCache(t),this.commandMapping=this._createCommandMapping(t.commandMapping),this.createNavigation(t.navigation),this._isNavigating=!1,this._viewLinksHash={},this._removedViewInfos=[],r.registerExecutor(p(this)),this.components.push(this.router),this.components.push(this.navigationManager)},_createViewCache:function(t){var e;return e=t.viewCache?t.viewCache:t.disableViewCache?new y.NullViewCache:new y.CapacityViewCacheDecorator({size:t.viewCacheSize,viewCache:new y}),e.on("viewRemoved",function(t){this._releaseViewLink(t.viewInfo)}.bind(this)),e},_createCommandMapping:function(t){var e=t;return t instanceof b||(e=new b,e.load(b.defaultMapping||{}).load(t||{})),e},createNavigation:function(t){this.navigation=this._createNavigationCommands(t),this._mapNavigationCommands(this.navigation,this.commandMapping)},_createNavigationCommands:function(t){if(!t)return[];var e=0;return h.map(t,function(t){var i;return i=t instanceof g?t:new g(d({root:!0},t)),i.option("id")||i.option("id","navigation_"+e++),i})},_mapNavigationCommands:function(t,e){var i=h.map(t,function(t){return t.option("id")});e.mapCommands("global-navigation",i)},_callComponentMethod:function(t,e){var i=[];return h.each(this.components,function(n,o){if(o[t]&&c.isFunction(o[t])){var a=o[t](e);a&&a.done&&i.push(a)}}),I.apply(o,i)},init:function(){var t=this;return t._initState=T,t._callComponentMethod("init").done(function(){t._initState=E,t._processEvent("initialized")}).fail(function(t){throw t||S.Error("E3022")})},_onNavigatingBack:function(t){this._processEvent("navigatingBack",t)},_onNavigating:function(t){var e=this;if(e._isNavigating)return e._pendingNavigationArgs=t,void(t.cancel=!0);e._isNavigating=!0,delete e._pendingNavigationArgs;var i=this.router.parse(t.uri);if(!i)throw S.Error("E3001",t.uri);var n=this.router.format(i);t.uri!==n&&n?(t.cancel=!0,t.cancelReason="redirect",l.executeAsync(function(){e.navigate(n,t.options)})):e._processEvent("navigating",t)},_onNavigated:function(t){var e,i=this,n=t.options.direction,o=i._acquireViewInfo(t.item,t.options);return o.model||(this._processEvent("beforeViewSetup",{viewInfo:o}),i._createViewModel(o),i._createViewCommands(o),this._processEvent("afterViewSetup",{viewInfo:o})),i._highlightCurrentNavigationCommand(o),e=i._showView(o,n).always(function(){i._isNavigating=!1;var t=i._pendingNavigationArgs;t&&l.executeAsync(function(){i.navigate(t.uri,t.options)})})},_isViewReadyToShow:function(t){return!!t.model},_onNavigationCanceled:function(t){var e=this;if(!e._pendingNavigationArgs||e._pendingNavigationArgs.uri!==t.uri){var i=e.navigationManager.currentItem();i&&l.executeAsync(function(){var n=e._acquireViewInfo(i,t.options);e._highlightCurrentNavigationCommand(n,!0)}),e._isNavigating=!1}},_disposeRemovedViews:function(){var t=this;h.each(t._viewLinksHash,function(e,i){i.linkCount||(t._disposeRemovedView(i.viewInfo),delete t._viewLinksHash[e])}),this._removedViewInfos.forEach(function(e){t._disposeRemovedView(e)}),this._removedViewInfos=[]},_disposeRemovedView:function(t){var e={viewInfo:t};this._processEvent("viewDisposing",e,t.model),this._disposeView(t),this._processEvent("viewDisposed",e,t.model)},_onViewHidden:function(t){var e={viewInfo:t};this._processEvent("viewHidden",e,e.viewInfo.model)},_disposeView:function(t){var e=t.commands||[];h.each(e,function(t,e){e._dispose()})},_acquireViewInfo:function(t,e){var i=this.router.parse(t.uri),n=this._getViewInfoKey(t,i),o=this.viewCache.getView(n);return o?this._updateViewInfo(o,t,e):(o=this._createViewInfo(t,e),this._obtainViewLink(o),this.viewCache.setView(n,o)),o},_getViewInfoKey:function(t,e){var i={key:t.key,navigationItem:t,routeData:e};return this._processEvent("resolveViewCacheKey",i),i.key},_processEvent:function(t,e,i){this._callComponentMethod(t,e),this.fireEvent(t,e&&[e]);var n=(i||{})[t];n&&n.call(i,e)},_updateViewInfo:function(t,e,i){var n=e.uri,o=this.router.parse(n);t.viewName=o.view,t.routeData=o,t.uri=n,t.navigateOptions=i,t.canBack=this.canBack(i.stack),t.previousViewInfo=this._getPreviousViewInfo(i)},_createViewInfo:function(t,e){var i=t.uri,n=this.router.parse(i),o={key:this._getViewInfoKey(t,n)};return this._updateViewInfo(o,t,e),o},_createViewModel:function(t){t.model=t.model||this._callViewCodeBehind(t)},_createViewCommands:function(t){t.commands=t.model.commands||[],t.canBack&&"webSite"!==this._applicationMode&&this._appendBackCommand(t)},_callViewCodeBehind:function(t){var e=l.noop,i=t.routeData;return i.view in this.namespace&&(e=this.namespace[i.view]),e.call(this.namespace,i,t)||{}},_appendBackCommand:function(t){var e=t.commands,i=this,o=n;i._options.useViewTitleAsBackText&&(o=((t.previousViewInfo||{}).model||{}).title||o);var a=[new g({id:"back",title:o,behavior:"back",onExecute:function(){i.back({stack:t.navigateOptions.stack})},icon:"arrowleft",type:"back",renderStage:i._options.useViewTitleAsBackText?"onViewRendering":"onViewShown"})],s=u(a,e);e.length=0,e.push.apply(e,s)},_showView:function(t,e){var i=this,n={viewInfo:t,direction:e,params:t.routeData};return w.processRequestResultLock.obtain(),i._showViewImpl(n.viewInfo,n.direction).done(function(){l.executeAsync(function(){w.processRequestResultLock.release(),i._processEvent("viewShown",n,t.model),i._disposeRemovedViews()})})},_highlightCurrentNavigationCommand:function(t,e){var i,n=this,o=t.model&&t.model.currentNavigationItemId;void 0!==o&&h.each(this.navigation,function(t,e){if(e.option("id")===o)return i=e,!1}),i||h.each(this.navigation,function(t,e){var o=e.option("onExecute");if(c.isString(o)&&(o=o.replace(/^#+/,""),o===n.navigationManager.rootUri()))return i=e,!1}),h.each(this.navigation,function(t,n){e&&n===i&&n.option("highlighted")&&n.fireEvent("optionChanged",[{name:"highlighted",value:!0,previousValue:!0}]),n.option("highlighted",n===i)})},_showViewImpl:s,_obtainViewLink:function(t){var e=t.key,i=this._viewLinksHash[e];i?(i.viewInfo!==t&&(this._removedViewInfos.push(i.viewInfo),i.viewInfo=t),this._viewLinksHash[e].linkCount++):this._viewLinksHash[e]={viewInfo:t,linkCount:1}},_releaseViewLink:function(t){void 0===this._viewLinksHash[t.key]&&S.log("W3001",t.key),0===this._viewLinksHash[t.key].linkCount&&S.log("W3002",t.key),this._viewLinksHash[t.key].linkCount--},navigate:function(t,e){var i=this;if(c.isPlainObject(t)&&(t=i.router.format(t),t===!1))throw S.Error("E3002");if(i._initState){if(i._initState!==E)throw S.Error("E3003");i._isNavigating&&!t||i.navigationManager.navigate(t,e)}else i.init().done(function(){i.restoreState(),i.navigate(t,e)})},canBack:function(t){return this.navigationManager.canBack(t)},_getPreviousViewInfo:function(t){var e,i=this.navigationManager.previousItem(t.stack);if(i){var n=this.router.parse(i.uri);e=this.viewCache.getView(this._getViewInfoKey(i,n))}return e},back:function(t){this.navigationManager.back(t)},saveState:function(){this.stateManager.saveState()},restoreState:function(){this.stateManager.restoreState()},clearState:function(){this.stateManager.clearState()}}).include(C);e.Application=D},function(t,e,i){var n=i(116),o=i(17).each,a=i(127),s=function(t,e,i){for(var n=[],o=0,a=t.length;o<a;o++)i(t[o],e)||n.push(t[o]);return n.push.apply(n,e),n},r=function(t,e){var i=!1;return o(e,function(e,n){var o=t.option("id")===n.option("id")&&n.option("id"),a=t.option("behavior")===n.option("behavior")&&t.option("behavior");if(i=o||a,a&&null===n.option("onExecute")&&n.option("onExecute",t.option("onExecute")),i)return t.$element().remove(),!1}),i},l=function(t,e){return s(t,e,r)},c=function(t,e,i,n){var o=e?e[i]:void 0,a=void 0===o?n:o,s=t.option(i);return void 0===s||s===n?a:s},h=function(t,e){var i=c(t,e,"showText"),n=!!t.option("icon"),o=c(t,e,"title","");return i||!n?o:""},d=function(t,e){var i=c(t,e,"showIcon"),n=!!t.option("title"),o=c(t,e,"icon","");return i||!n?o:""};e.utils={mergeCommands:l,commandToContainer:{resolveIconValue:d,resolveTextValue:h,resolvePropertyValue:c}},e.templateProvider={createTemplate:function(t){return new a(t)},applyTemplate:function(t,e){n.applyBindings(e,t)}}},function(t,e,i){function n(t,e){if(e.args){var i=e.args[0];t.event=i.event}"dxCommand"===(e.component||{}).NAME&&r(t,e.component.option())}function o(t){if(t){var e=a(t.target);e.attr("href")&&t.preventDefault()}}i(144);var a=i(145),s=i(71),r=i(9).extend,l=i(10).isPlainObject,c=i(17).map,h=i(159).Route,d=function(t){return{routing:{execute:function(e){var i,a,s=e.action,r={};l(s)&&(i=s.routeValues,i&&l(i)?r=s.options:i=s,a=t.router.format(i),n(r,e),o(r.event),t.navigate(a,r),e.handled=!0)}},hash:{execute:function(e){if("string"==typeof e.action&&"#"===e.action.charAt(0)){var i=e.action.substr(1),a=e.args[0],r=i,l=function(t){var i=s.compileGetter(t),n=e.args[0].model;return i(n)},d=a.evaluate||l;r=i.replace(/\{([^}]+)\}/g,function(t,e){e=e.trim(),e.indexOf(",")>-1&&(e=c(e.split(","),function(t){return t.trim()}));var i=d(e);return void 0===i&&(i=""),i=h.prototype.formatSegment(i)});var u={};n(u,e),o(u.event),t.navigate(r,u),
|
|
19
|
-
e.handled=!0}}},url:{execute:function(t){"string"==typeof t.action&&"#"!==t.action.charAt(0)&&(document.location=t.action)}}}};e.createActionExecutors=d},function(t,e,i){i(144);var n=i(145),o=i(29),a=i(16),s=i(13),r=i(17),l=i(10).isPlainObject,c=i(9).extend,h=i(170),d=i(72),u=i(158),p=i(85).processCallback,f=i(86),_=i(15).when,m={current:"current",blank:"blank",back:"back"},g="__history",v=o.inherit({ctor:function(t){t=t||{},this._currentItem=void 0,this._previousItem=void 0,this._createNavigationDevice(t)},_createNavigationDevice:function(t){this._navigationDevice=t.navigationDevice||new h.HistoryBasedNavigationDevice,this._navigationDevice.uriChanged.add(this._uriChangedHandler.bind(this))},_uriChangedHandler:function(t){for(;f(););this.navigate(t)},_syncUriWithCurrentNavigationItem:function(){var t=this._currentItem&&this._currentItem.uri;this._navigationDevice.setUri(t,!0)},_cancelNavigation:function(t){this._syncUriWithCurrentNavigationItem(),this.fireEvent("navigationCanceled",[t])},_getDefaultOptions:function(){return{direction:"none",target:m.blank}},_updateHistory:function(t,e){this._previousItem=this._currentItem,this._currentItem={uri:t,key:t},this._navigationDevice.setUri(t,e.target===m.current)},_setCurrentItem:function(t){this._currentItem=t},navigate:function(t,e){e=e||{};var i,o=this,a=!o._currentItem,r=o._currentItem||{},l=e.item||{},h=r.uri,d=r.key,u=l.key;return void 0===t&&(t=o._navigationDevice.getUri()),/^_back$/.test(t)?void o.back():(e=c(o._getDefaultOptions(),e||{}),a&&(e.target=m.current),i={currentUri:h,uri:t,cancel:!1,navigateWhen:[],options:e},o.fireEvent("navigating",[i]),t=i.uri,void(i.cancel||h===t&&(void 0===u||u===d)&&!o._forceNavigate?o._cancelNavigation(i):(o._forceNavigate=!1,_.apply(n,i.navigateWhen).done(function(){s.executeAsync(function(){o._updateHistory(t,e),o.fireEvent("navigated",[{uri:t,previousUri:h,options:e,item:o._currentItem}])})}))))},back:function(){return this._navigationDevice.back()},previousItem:function(){return this._previousItem},currentItem:function(t){if(!(arguments.length>0))return this._currentItem;if(!t)throw u.Error("E3023");this._setCurrentItem(t)},rootUri:function(){return this._currentItem&&this._currentItem.uri},canBack:function(){return!0},saveState:s.noop,restoreState:s.noop,removeState:s.noop}).include(d),b=v.inherit({ctor:function(t){t=t||{},this.callBase(t),this._createNavigationStacks(t),p.add(this._deviceBackInitiated.bind(this)),this._stateStorageKey=t.stateStorageKey||g},init:function(){return this._navigationDevice.init()},_createNavigationDevice:function(t){t.navigationDevice||(t.navigationDevice=new h.StackBasedNavigationDevice),this.callBase(t),this._navigationDevice.backInitiated.add(this._deviceBackInitiated.bind(this))},_uriChangedHandler:function(t){this.navigate(t)},_createNavigationStacks:function(t){this.navigationStacks={},this._keepPositionInStack=t.keepPositionInStack,this.currentStack=new y},_deviceBackInitiated:function(){f()?this._syncUriWithCurrentNavigationItem():this.back({isHardwareButton:!0})},_getDefaultOptions:function(){return{target:m.blank}},_createNavigationStack:function(){var t=new y;return t.itemsRemoved.add(this._removeItems.bind(this)),t},_setCurrentItem:function(t){this._setCurrentStack(t.stack),this.currentStack.currentItem(t),this.callBase(t),this._syncUriWithCurrentNavigationItem()},_setCurrentStack:function(t){var e,i;"string"==typeof t?(i=t,i in this.navigationStacks||(this.navigationStacks[i]=this._createNavigationStack()),e=this.navigationStacks[i]):(e=t,i=r.map(this.navigationStacks,function(e,i){return e===t?i:null})[0]),this.currentStack=e,this.currentStackKey=i},_getViewTargetStackKey:function(t,e){var i;if(e)if(void 0!==this.navigationStacks[t])i=t;else{for(var n in this.navigationStacks)if(this.navigationStacks[n].items[0].uri===t){i=n;break}i=i||t}else i=this.currentStackKey||t;return i},_updateHistory:function(t,e){var i=e.root,n=i,o=!1,a=this.currentStack,s=void 0!==e.keepPositionInStack?e.keepPositionInStack:this._keepPositionInStack;if(e.stack=e.stack||this._getViewTargetStackKey(t,i),this._setCurrentStack(e.stack),!i&&this.currentStack.items.length||(o=this.currentStack===a,n=!0),i&&this.currentStack.items.length)s&&!o||(this.currentStack.currentIndex=0,this.currentItem().uri!==t&&this.currentStack.navigate(t,!0)),e.direction=e.direction||"none";else{var r=this.currentStack.currentIndex,l=this.currentItem()||{};switch(e.target){case m.blank:this.currentStack.navigate(t);break;case m.current:this.currentStack.navigate(t,!0);break;case m.back:this.currentStack.currentIndex>0?this.currentStack.back(t):this.currentStack.navigate(t,!0);break;default:throw u.Error("E3006",e.target)}if(void 0===e.direction){var c=this.currentStack.currentIndex-r;c<0?e.direction=this.currentStack.currentItem().backDirection||"backward":c>0&&this.currentStack.currentIndex>0?e.direction="forward":e.direction="none"}l.backDirection="forward"===e.direction?"backward":"none"}e.root=n,this._currentItem=this.currentStack.currentItem(),this._syncUriWithCurrentNavigationItem()},_removeItems:function(t){var e=this;r.each(t,function(t,i){e.fireEvent("itemRemoved",[i])})},back:function(t){t=t||{};var e=c({cancel:!1},t);if(this.fireEvent("navigatingBack",[e]),e.cancel)return void this._syncUriWithCurrentNavigationItem();var i=this.previousItem(e.stack);i?this.navigate(i.uri,{stack:e.stack,target:m.back,item:i}):this.callBase()},rootUri:function(){return this.currentStack.items.length?this.currentStack.items[0].uri:this.callBase()},canBack:function(t){var e=t?this.navigationStacks[t]:this.currentStack;return!!e&&e.canBack()},saveState:function(t){if(this.currentStack.items.length){var e={navigationStacks:{},currentStackKey:this.currentStackKey};r.each(this.navigationStacks,function(t,i){var n={};e.navigationStacks[t]=n,n.currentIndex=i.currentIndex,n.items=r.map(i.items,function(t){return{key:t.key,uri:t.uri}})});var i=JSON.stringify(e);t.setItem(this._stateStorageKey,i)}else this.removeState(t)},restoreState:function(t){if(!this.disableRestoreState){var e=t.getItem(this._stateStorageKey);if(e)try{var i=this,n=JSON.parse(e);r.each(n.navigationStacks,function(t,e){var n=i._createNavigationStack();i.navigationStacks[t]=n,n.currentIndex=e.currentIndex,n.items=r.map(e.items,function(t){return t.stack=n,t})}),this.currentStackKey=n.currentStackKey,this.currentStack=this.navigationStacks[this.currentStackKey],this._currentItem=this.currentStack.currentItem(),this._navigationDevice.setUri(this.currentItem().uri),this._forceNavigate=!0}catch(e){throw this.removeState(t),u.Error("E3007")}}},removeState:function(t){t.removeItem(this._stateStorageKey)},currentIndex:function(){return this.currentStack.currentIndex},previousItem:function(t){var e=this.navigationStacks[t]||this.currentStack;return e.previousItem()},getItemByIndex:function(t){return this.currentStack.items[t]},clearHistory:function(){this._createNavigationStacks({keepPositionInStack:this._keepPositionInStack})},itemByKey:function(t){var e;return r.each(this.navigationStacks,function(i,n){var o=n.itemByKey(t);if(o)return e=o,!1}),e},currentItem:function(t){var e;return arguments.length>0?("string"==typeof t?e=this.itemByKey(t):l(t)&&(e=t),void this.callBase(e)):this.callBase()}}),y=o.inherit({ctor:function(t){t=t||{},this.itemsRemoved=a(),this.clear()},currentItem:function(t){if(!t)return this.items[this.currentIndex];for(var e=0;e<this.items.length;e++)if(t===this.items[e]){this.currentIndex=e;break}},previousItem:function(){return this.items.length>1?this.items[this.currentIndex-1]:void 0},canBack:function(){return this.currentIndex>0},clear:function(){this._deleteItems(this.items),this.items=[],this.currentIndex=-1},back:function(t){if(this.currentIndex--,this.currentIndex<0)throw u.Error("E3008");var e=this.currentItem();e.uri!==t&&this._updateItem(this.currentIndex,t)},forward:function(){if(this.currentIndex++,this.currentIndex>=this.items.length)throw u.Error("E3009")},navigate:function(t,e){if(!(this.currentIndex<this.items.length&&this.currentIndex>-1&&this.items[this.currentIndex].uri===t)){if(e&&this.currentIndex>-1&&this.currentIndex--,this.currentIndex+1<this.items.length&&this.items[this.currentIndex+1].uri===t)this.currentIndex++;else{var i=this.items.splice(this.currentIndex+1,this.items.length-this.currentIndex-1);this.items.push({stack:this}),this.currentIndex++,this._updateItem(this.currentIndex,t),this._deleteItems(i)}return this.currentItem()}},itemByKey:function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.key===t)return i}},_updateItem:function(t,e){var i=this.items[t];i.uri=e,i.key=this.items[0].uri+"_"+t+"_"+e},_deleteItems:function(t){t&&this.itemsRemoved.fire(t)}});e.HistoryBasedNavigationManager=v,e.StackBasedNavigationManager=b,e.NavigationStack=y},function(t,e,i){i(144);var n=i(145),o=i(13).noop,a=i(29),s=i(16),r=i(171),l=i(75).sessionStorage,c=i(74),h="dxPhoneJSApplication",d=a.inherit({ctor:function(t){t=t||{},this._browserAdapter=t.browserAdapter||this._createBrowserAdapter(t),this.uriChanged=s(),this._browserAdapter.popState.add(this._onPopState.bind(this))},init:o,getUri:function(){return this._browserAdapter.getHash()},setUri:function(t,e){return e?this._browserAdapter.replaceState(t):t!==this.getUri()?this._browserAdapter.pushState(t):n.Deferred().resolve().promise()},back:function(){return this._browserAdapter.back()},_onPopState:function(){this.uriChanged.fire(this.getUri())},_isBuggyAndroid2:function(){var t=c.real(),e=t.version;return"android"===t.platform&&e.length>1&&(2===e[0]&&e[1]<4||e[0]<2)},_isBuggyAndroid4:function(){var t=c.real(),e=t.version;return"android"===t.platform&&e.length>1&&4===e[0]&&0===e[1]},_isWindowsPhone8:function(){var t=c.real();return"win"===t.platform&&t.phone},_createBrowserAdapter:function(t){var e,i=t.window||window,n=i.history.replaceState&&i.history.pushState;return e=this._isWindowsPhone8()?new r.BuggyCordovaWP81BrowserAdapter(t):i!==i.top?new r.HistorylessBrowserAdapter(t):this._isBuggyAndroid4()?new r.BuggyAndroidBrowserAdapter(t):this._isBuggyAndroid2()||!n?new r.OldBrowserAdapter(t):new r.DefaultBrowserAdapter(t)}}),u=d.inherit({ctor:function(t){this.callBase(t),this.backInitiated=s(),this._rootStateHandler=null,n(window).on("unload",this._saveBrowserState)},init:function(){var t=this;return t._browserAdapter.canWorkInPureBrowser?t._initRootPage().done(function(){t._browserAdapter.isRootPage()&&t._browserAdapter.pushState("")}):n.Deferred().resolve().promise()},setUri:function(t){return this.callBase(t,!this._browserAdapter.isRootPage())},_saveBrowserState:function(){var t=l();t&&t.setItem(h,!0)},_initRootPage:function(){var t=this.getUri(),e=l();return!e||e.getItem(h)?n.Deferred().resolve().promise():(e.removeItem(h),this._browserAdapter.createRootPage(),this._browserAdapter.pushState(t))},_onPopState:function(){this._browserAdapter.isRootPage()?this._rootStateHandler?this._rootStateHandler():this.backInitiated.fire():(this._rootStateHandler||this._createRootStateHandler(),this.back())},_createRootStateHandler:function(){var t=this.getUri();this._rootStateHandler=function(){this.uriChanged.fire(t),this._rootStateHandler=null}}});e.HistoryBasedNavigationDevice=d,e.StackBasedNavigationDevice=u},function(t,e,i){i(144);var n=i(145),o=i(29),a=i(16),s=i(83),r="__root__",l="__buffer__",c=o.inherit({ctor:function(t){t=t||{},this._window=t.window||window,this.popState=a(),n(this._window).on("hashchange",this._onHashChange.bind(this)),this._tasks=s.create(),this.canWorkInPureBrowser=!0},replaceState:function(t){var e=this;return this._addTask(function(){t=e._normalizeUri(t),e._window.history.replaceState(null,null,"#"+t),e._currentTask.resolve()})},pushState:function(t){var e=this;return this._addTask(function(){t=e._normalizeUri(t),e._window.history.pushState(null,null,"#"+t),e._currentTask.resolve()})},createRootPage:function(){return this.replaceState(r)},_onHashChange:function(){this._currentTask&&this._currentTask.resolve(),this.popState.fire()},back:function(){var t=this;return this._addTask(function(){t._window.history.back()})},getHash:function(){return this._normalizeUri(this._window.location.hash)},isRootPage:function(){return this.getHash()===r},_normalizeUri:function(t){return(t||"").replace(/^#+/,"")},_addTask:function(t){var e=this,i=n.Deferred();return this._tasks.add(function(){return e._currentTask=i,t(),i}),i.promise()}}),h=c.inherit({ctor:function(){this._innerEventCount=0,this.callBase.apply(this,arguments),this._skipNextEvent=!1},replaceState:function(t){var e=this;return t=e._normalizeUri(t),e.getHash()!==t?(e._addTask(function(){e._skipNextEvent=!0,e._window.history.back()}),e._addTask(function(){e._skipNextEvent=!0,e._window.location.hash=t})):n.Deferred().resolve().promise()},pushState:function(t){var e=this;return t=this._normalizeUri(t),this.getHash()!==t?e._addTask(function(){e._skipNextEvent=!0,e._window.location.hash=t}):n.Deferred().resolve().promise()},createRootPage:function(){return this.pushState(r)},_onHashChange:function(){var t=this._currentTask;this._currentTask=null,this._skipNextEvent?this._skipNextEvent=!1:this.popState.fire(),t&&t.resolve()}}),d=h.inherit({createRootPage:function(){return this.pushState(l),this.callBase()}}),u=c.inherit({ctor:function(t){t=t||{},this._window=t.window||window,this.popState=a(),n(this._window).on("dxback",this._onHashChange.bind(this)),this._currentHash=this._window.location.hash},replaceState:function(t){return this._currentHash=this._normalizeUri(t),n.Deferred().resolve().promise()},pushState:function(t){return this.replaceState(t)},createRootPage:function(){return this.replaceState(r)},getHash:function(){return this._normalizeUri(this._currentHash)},back:function(){return this.replaceState(r)},_onHashChange:function(){var t=this.back();return this.popState.fire(),t}}),p=c.inherit({ctor:function(t){this.callBase(t),this.canWorkInPureBrowser=!1}});e.DefaultBrowserAdapter=c,e.OldBrowserAdapter=h,e.BuggyAndroidBrowserAdapter=d,e.HistorylessBrowserAdapter=u,e.BuggyCordovaWP81BrowserAdapter=p},function(t,e,i){var n=i(29),o=i(13).grep,a=i(9).extend,s=i(17).each,r=i(25).inArray,l=i(158),c=n.inherit({ctor:function(){this._commandMappings={},this._containerDefaults={}},setDefaults:function(t,e){return this._containerDefaults[t]=e,this},mapCommands:function(t,e){var i=this;return s(e,function(e,n){"string"==typeof n&&(n={id:n});var o=n.id,s=i._commandMappings[t]||{};s[o]=a({showIcon:!0,showText:!0},i._containerDefaults[t]||{},n),i._commandMappings[t]=s}),this._initExistingCommands(),this},unmapCommands:function(t,e){var i=this;s(e,function(e,n){var o=i._commandMappings[t]||{};o&&delete o[n]}),this._initExistingCommands()},getCommandMappingForContainer:function(t,e){return(this._commandMappings[e]||{})[t]},checkCommandsExist:function(t){var e=this,i=o(t,function(i,n){return r(i,e._existingCommands)<0&&r(i,t)===n});if(0!==i.length)throw l.Error("E3005",i.join("', '"),1===i.length?" is":"s are")},load:function(t){if(t){var e=this;return s(t,function(t,i){e.setDefaults(t,i.defaults),e.mapCommands(t,i.commands)}),this}},_initExistingCommands:function(){var t=this;this._existingCommands=[],s(t._commandMappings,function(e,i){s(i,function(e,i){r(i.id,t._existingCommands)<0&&t._existingCommands.push(i.id)})})}});c.defaultMapping={"global-navigation":{defaults:{showIcon:!0,showText:!0},commands:[]},"ios-header-toolbar":{defaults:{showIcon:!1,showText:!0,location:"after"},commands:["edit","save",{id:"back",location:"before"},{id:"cancel",location:"before"},{id:"create",showIcon:!0,showText:!1}]},"ios-action-sheet":{defaults:{showIcon:!1,showText:!0},commands:[]},"ios-view-footer":{defaults:{showIcon:!1,showText:!0},commands:[{id:"delete",type:"danger"}]},"android-header-toolbar":{defaults:{showIcon:!0,showText:!1,location:"after"},commands:[{id:"back",showIcon:!1,location:"before"},"create",{id:"save",showText:!0,showIcon:!1,location:"after"},{id:"edit",showText:!1,location:"after"},{id:"cancel",showText:!1,location:"before"},{id:"delete",showText:!1,location:"after"}]},"android-simple-toolbar":{defaults:{showIcon:!0,showText:!1,location:"after"},commands:[{id:"back",showIcon:!1,location:"before"},{id:"create"},{id:"save",showText:!0,showIcon:!1,location:"after"},{id:"edit",showText:!1,location:"after"},{id:"cancel",showText:!1,location:"before"},{id:"delete",showText:!1,location:"after"}]},"android-footer-toolbar":{defaults:{location:"after"},commands:[{id:"create",showText:!1,location:"center"},{id:"edit",showText:!1,location:"before"},{id:"delete",locateInMenu:"always"},{id:"save",showIcon:!1,location:"before"}]},"generic-header-toolbar":{defaults:{showIcon:!1,showText:!0,location:"after"},commands:["edit","save",{id:"back",location:"before"},{id:"cancel",location:"before"},{id:"create",showIcon:!0,showText:!1}]},"generic-view-footer":{defaults:{showIcon:!1,showText:!0},commands:[{id:"delete",type:"danger"}]},"win8-appbar":{defaults:{location:"after"},commands:["edit","cancel","save","delete",{id:"create",location:"before"},{id:"refresh",location:"before"}]},"win8-toolbar":{defaults:{showText:!1,location:"before"},commands:[{id:"previousPage"}]},"win8-phone-appbar":{defaults:{location:"center"},commands:["create","edit","cancel","save","refresh",{id:"delete",locateInMenu:"always"}]},"win8-split-toolbar":{defaults:{showIcon:!0,showText:!1,location:"after"},commands:[{id:"back",showIcon:!1,location:"before"},{id:"create"},{id:"save",showText:!0,location:"before"},{id:"edit",showText:!0,locateInMenu:"always"},{id:"cancel",showText:!0,locateInMenu:"always"},{id:"delete",showText:!0,locateInMenu:"always"}]},"win8-master-detail-toolbar":{defaults:{showText:!1,location:"before"},commands:["back"]},"win10-appbar":{defaults:{showText:!1,location:"after"},commands:[{id:"back",location:"before"},"edit","cancel","save","delete","create","refresh"]},"win10-phone-appbar":{defaults:{location:"after"},commands:["create","edit","cancel","save","refresh",{id:"delete",locateInMenu:"always"}]},"desktop-toolbar":{defaults:{showIcon:!1,showText:!0,location:"after"},commands:["cancel","create","edit","save",{id:"delete",type:"danger"}]}},t.exports=c},function(t,e,i){function n(t){return/^(or|\|\||\|)$/i.test(t)}function o(t){return/^(and|\&\&|\&)$/i.test(t)}var a=i(10).isFunction,s=i(17).map,r=i(71).toComparable,l=i(15).Deferred,c="DEVEXTREME_XHR_ERROR_UNLOAD",h=function(t){return[t[0],t.length<3?"=":String(t[1]).toLowerCase(),t.length<2||t[t.length-1]]},d=function(t){return Array.isArray(t)||(t=[t]),s(t,function(t){var e={selector:a(t)||"string"==typeof t?t:t.getter||t.field||t.selector,desc:!(!t.desc&&"d"!==String(t.dir).charAt(0).toLowerCase())};return t.compare&&(e.compare=t.compare),e})},u=function(){var t,e={timeout:"Network connection timeout",error:"Unspecified network error",parsererror:"Unexpected server response"},i=function(t){var i=e[t];return i?i:t};return window.addEventListener("beforeunload",function(){t=!0}),function(e,n){return t?c:e.status<400?i(n):e.statusText}}(),p={count:{seed:0,step:function(t){return 1+t}},sum:{seed:0,step:function(t,e){return t+e}},min:{step:function(t,e){return e<t?e:t}},max:{step:function(t,e){return e>t?e:t}},avg:{seed:[0,0],step:function(t,e){return[t[0]+e,t[1]+1]},finalize:function(t){return t[1]?t[0]/t[1]:NaN}}},f=function(){var t,e=0,i=function(){0===e&&(t=new l),e++},n=function(){e--,e<1&&t.resolve()},o=function(){var i=0===e?(new l).resolve():t;return i.promise()},a=function(){e=0,t&&t.resolve()};return{obtain:i,release:n,promise:o,reset:a}}(),_=function(t,e,i){if(Array.isArray(t)){for(var n,o=s(e,function(t,e){return e}),a=0;a<o.length;a++)if(n=o[a],r(e[n],!0)!=r(i[n],!0))return!1;return!0}return r(e,!0)==r(i,!0)},m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",g=function(t){function e(t){return m.charAt(t)}Array.isArray(t)||(t=v(String(t)));for(var i="",n=0;n<t.length;n+=3){var o=t[n],a=t[n+1],r=t[n+2];i+=s([o>>2,(3&o)<<4|a>>4,isNaN(a)?64:(15&a)<<2|r>>6,isNaN(r)?64:63&r],e).join("")}return i},v=function(t){var e,i,n=[];for(i=0;i<t.length;i++)e=t.charCodeAt(i),e<128?n.push(e):e<2048?n.push(192+(e>>6),128+(63&e)):e<65536?n.push(224+(e>>12),128+(e>>6&63),128+(63&e)):e<2097152&&n.push(240+(e>>18),128+(e>>12&63),128+(e>>6&63),128+(63&e));return n},b=function(t){return"!"===t[0]&&Array.isArray(t[1])},y={XHR_ERROR_UNLOAD:c,normalizeBinaryCriterion:h,normalizeSortingInfo:d,errorMessageFromXhr:u,aggregators:p,keysEqual:_,isDisjunctiveOperator:n,isConjunctiveOperator:o,processRequestResultLock:f,isUnaryOperation:b,base64_encode:g};t.exports=y},function(t,e){e.layoutSets={},e.animationSets={"native":{"view-content-change":[{animation:"slide"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"none",device:{deviceType:"desktop",platform:"generic"}},{animation:"none",device:{grade:"C"}}],"view-header-toolbar":[{animation:"ios7-toolbar"},{animation:"slide",device:{grade:"B"}},{animation:"none",device:{grade:"C"}}]},"default":{"layout-change":[{animation:"none"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"pop",device:{platform:"android"}},{animation:"openDoor",device:{deviceType:"phone",platform:"win",version:[8]}},{animation:"win-pop",device:{deviceType:"phone",platform:"win"}}],"view-content-change":[{animation:"slide"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"fade",device:{deviceType:"desktop",platform:"generic"}},{animation:"none",device:{grade:"C"}}],"view-content-rendered":[{animation:"fade"},{animation:"none",device:{grade:"C"}}],"view-header-toolbar":[{animation:"ios7-toolbar"},{animation:"slide",device:{grade:"B"}},{animation:"none",device:{grade:"C"}}],"command-rendered-top":[{animation:"stagger-fade-drop"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}},{animation:"none",device:{platform:"win",version:[10]}}],"command-rendered-bottom":[{animation:"stagger-fade-rise"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}},{animation:"none",device:{platform:"win",version:[10]}}],"list-item-rendered":[{animation:"stagger-3d-drop",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"detail-item-rendered":[{animation:"stagger-3d-drop",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"edit-item-rendered":[{animation:"stagger-3d-drop",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}]},slide:{"view-content-change":[{animation:"slide"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"fade",device:{deviceType:"desktop",platform:"generic"}},{animation:"none",device:{grade:"C"}}],"view-content-rendered":[{animation:"fade"},{animation:"none",device:{grade:"C"}}],"view-header-toolbar":[{animation:"ios7-toolbar"},{animation:"slide",device:{grade:"B"}},{animation:"none",device:{grade:"C"}}],"command-rendered-top":[{animation:"stagger-fade-drop"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"command-rendered-bottom":[{animation:"stagger-fade-rise"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"list-item-rendered":[{animation:"stagger-fade-slide",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"detail-item-rendered":[{animation:"stagger-fade-slide",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"edit-item-rendered":[{animation:"stagger-fade-slide",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}]},zoom:{"view-content-change":[{animation:"slide"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"fade",device:{deviceType:"desktop",platform:"generic"}},{animation:"none",device:{grade:"C"}}],"view-content-rendered":[{animation:"fade"},{animation:"none",device:{grade:"C"}}],"view-header-toolbar":[{animation:"ios7-toolbar"},{animation:"slide",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"command-rendered-top":[{animation:"stagger-fade-zoom"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"command-rendered-bottom":[{animation:"stagger-fade-zoom"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"list-item-rendered":[{animation:"stagger-fade-zoom",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"detail-item-rendered":[{animation:"stagger-fade-zoom",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"edit-item-rendered":[{animation:"stagger-fade-zoom",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}]}}},function(t,e,i){i(144);var n=i(145),o=i(29),a=i(13).noop,s=i(17),r=i(158),l=i(172),c=i(176),h=i(15).when;i(143),i(162);var d=o.inherit({ctor:function(t){t=t||{},this.defaultWidgetAdapter=t.defaultWidgetAdapter||this._getDefaultWidgetAdapter(),this.commandMapping=t.commandMapping||new l},_getDefaultWidgetAdapter:function(){return{addCommand:a,clearContainer:a}},_getContainerAdapter:function(t){var e=t.data("dxComponents"),i=c;if(e)for(var n in e){var o=e[n];if(o in i)return i[o]}return this.defaultWidgetAdapter},findCommands:function(t){var e=t.find(".dx-command").add(t.filter(".dx-command")),i=s.map(e,function(t){return n(t).dxCommand("instance")});return i},findCommandContainers:function(t){var e=s.map(t.find(".dx-command-container"),function(t){return n(t).dxCommandContainer("instance")});return e},_checkCommandId:function(t,e){if(null===t)throw r.Error("E3010",e.$element().get(0).outerHTML)},renderCommandsToContainers:function(t,e){var i=this,o={},a=[],r=[];return s.each(t,function(t,e){var n=e.option("id");i._checkCommandId(n,e),a.push(n),o[n]=e}),i.commandMapping.checkCommandsExist(a),s.each(e,function(t,e){var n=[];if(s.each(o,function(t,o){var a=t,s=i.commandMapping.getCommandMappingForContainer(a,e.option("id"));s&&n.push({command:o,options:s})}),n.length){var a=i._attachCommandsToContainer(e.element(),n);a&&r.push(a)}}),h.apply(n,r)},clearContainer:function(t){var e=t.element(),i=this._getContainerAdapter(e);i.clearContainer(e)},_arrangeCommandsToContainers:function(t,e){r.log("W0002","CommandManager","_arrangeCommandsToContainers","14.1","Use the 'renderCommandsToContainers' method instead."),this.renderCommandsToContainers(t,e)},_attachCommandsToContainer:function(t,e){var i,n=this._getContainerAdapter(t);return n.beginUpdate&&n.beginUpdate(t),s.each(e,function(e,i){n.addCommand(t,i.command,i.options)}),n.endUpdate&&(i=n.endUpdate(t)),i}});t.exports=d},function(t,e,i){var n=i(29),o=i(9).extend,a=i(25).inArray,s=i(17),r=i(167).utils.commandToContainer,l=i(89),c=i(95),h="dxCommandToWidgetAdapter",d=n.inherit({ctor:function(t,e){this.command=t,this.widgetItem=this._createWidgetItem(t,e)},_createWidgetItem:function(t,e){var i,n=o({},e,t.option()),a=function(e){t.execute(e)};return n.text=r.resolveTextValue(t,e),n.icon=r.resolveIconValue(t,e),n.type=r.resolvePropertyValue(t,e,"type"),n.location=r.resolvePropertyValue(t,e,"location"),n.locateInMenu=r.resolvePropertyValue(t,e,"locateInMenu"),n.showText=r.resolvePropertyValue(t,e,"showText"),i=this._createWidgetItemCore(n,a),i.command=t,i},_createWidgetItemCore:function(t,e){return t},dispose:function(){delete this.command,delete this.widgetItem}}),u=n.inherit({ctor:function(t){this._commandToWidgetItemOptionNames={},this.$widgetElement=t,this.$widgetElement.data(h,this),this.widget=this._getWidgetByElement(t),this._widgetWidgetContentReadyHandler=this._onWidgetContentReady.bind(this),this._widgetWidgetItemRenderedHandler=this._onWidgetItemRendered.bind(this),this._widgetDisposingHandler=this._onWidgetDisposing.bind(this),this.widget.on("itemRendered",this._widgetWidgetItemRenderedHandler),this.widget.on("contentReady",this._widgetWidgetContentReadyHandler),this.widget.on("disposing",this._widgetDisposingHandler),this.itemWrappers=[],this._transitionExecutor=new c.TransitionExecutor},addCommand:function(t,e){var i=this._createItemWrapper(t,e);this.itemWrappers.push(i),this._addItemToWidget(i),this._commandChangedHandler=this._onCommandChanged.bind(this),i.command.on("optionChanged",this._commandChangedHandler)},beginUpdate:function(){this.widget.beginUpdate()},endUpdate:function(){return this.widget.endUpdate(),this.animationDeferred},_onWidgetItemRendered:function(t){t.itemData.isJustAdded&&t.itemData.command&&t.itemData.command.option("visible")&&this._commandRenderedAnimation&&this._transitionExecutor.enter(t.itemElement,this._commandRenderedAnimation),delete t.itemData.isJustAdded},_onWidgetContentReady:function(t){this.animationDeferred=this._transitionExecutor.start()},_onWidgetDisposing:function(){this.dispose(!0)},_setWidgetItemOption:function(t,e,i){var n=this.widget.option("items"),o=a(i,s.map(n,function(t){return t.command||{}}));if(o>-1){var r="items["+o+"].";!this._requireWidgetRefresh(t)&&this.widget.option("items["+o+"]").options&&(r+="options."),r+=this._commandToWidgetItemOptionNames[t]||t,this.widget.option(r,e)}},_requireWidgetRefresh:function(t){return"visible"===t||"locateInMenu"===t||"location"===t},_onCommandChanged:function(t){"highlighted"===t.name||t.component.isOptionDeprecated(t.name)||this._setWidgetItemOption(t.name,t.value,t.component)},_addItemToWidget:function(t){var e=this.widget.option("items");e.push(t.widgetItem),this.widget.$element().is(":visible")&&(t.widgetItem.isJustAdded=!0),this.widget.option("items",e)},refresh:function(){var t=this.widget.option("items");this.widget.option("items",t)},clear:function(t){var e=this;s.each(e.itemWrappers,function(t,i){i.command.off("optionChanged",e._commandChangedHandler),i.dispose()}),this.itemWrappers.length=0,t||this._clearWidgetItems()},_clearWidgetItems:function(){this.widget.option("items",[])},dispose:function(t){this.clear(t),this.widget&&(this.widget.off("itemRendered",this._widgetWidgetItemRenderedHandler),this.widget.off("contentReady",this._widgetContentReadyHandler),this.widget.off("disposing",this._widgetDisposingHandler),this.$widgetElement.removeData(h),delete this.widget,delete this.$widgetElement)}}),p=n.inherit({ctor:function(t){this.createAdapter=t},_getWidgetAdapter:function(t){var e=t.data(h);return e||(e=this.createAdapter(t)),e},addCommand:function(t,e,i){var n=this._getWidgetAdapter(t);n.addCommand(e,i)},clearContainer:function(t){var e=this._getWidgetAdapter(t);e.clear()},beginUpdate:function(t){var e=this._getWidgetAdapter(t);e.beginUpdate()},endUpdate:function(t){var e=this._getWidgetAdapter(t);return e.endUpdate()}}),f=d.inherit({_createWidgetItemCore:function(t,e){var i;return t.onClick=e,"menu"===t.location||"always"===t.locateInMenu?(i=t,i.isAction=!0):(i={locateInMenu:t.locateInMenu,location:t.location,visible:t.visible,options:t,widget:"dxButton"},"inMenu"===t.showText&&(i.showText=t.showText),t.visible=!0,delete t.location),i}}),_=u.inherit({ctor:function(t){this.callBase(t),this._commandToWidgetItemOptionNames={title:"text"},"topToolbar"===this.widget.option("renderAs")?this._commandRenderedAnimation="command-rendered-top":this._commandRenderedAnimation="command-rendered-bottom"},_getWidgetByElement:function(t){return t.dxToolbar("instance")},_createItemWrapper:function(t,e){return new f(t,e)},addCommand:function(t,e){this.widget.option("visible",!0),this.callBase(t,e)}}),m=d.inherit({_createWidgetItemCore:function(t,e){return t.title=t.text,t.onClick=e,t}}),g=u.inherit({_createItemWrapper:function(t,e){
|
|
20
|
-
return new m(t,e)},_getWidgetByElement:function(t){return t.dxList("instance")}}),v=d.inherit({}),b=u.inherit({ctor:function(t){this.callBase(t),this._commandToWidgetItemOptionNames={title:"text"},this.widget.option("onItemClick",this._onNavBarItemClick.bind(this))},_onNavBarItemClick:function(t){for(var e=this.widget.option("items"),i=e.length;--i;)e[i].command.option("highlighted",!1);t.itemData.command.execute(t)},_getWidgetByElement:function(t){return t.dxNavBar("instance")},_createItemWrapper:function(t,e){return new v(t,e)},addCommand:function(t,e){this.callBase(t,e),this._updateSelectedIndex()},_onCommandChanged:function(t){var e=t.name,i=t.value;"highlighted"===e&&i&&this._updateSelectedIndex(),this.callBase(t)},_updateSelectedIndex:function(){for(var t=this.widget.option("items"),e=0,i=t.length;e<i;e++){var n=t[e].command;if(n&&n.option("highlighted")){this.widget.option("selectedIndex",e);break}}}}),y=d.inherit({_createWidgetItemCore:function(t,e){return t.title=t.text,t}}),C=u.inherit({ctor:function(t){this.callBase(t),this.widget.option("onSelectionChanged",this._onPivotSelectionChange.bind(this))},_onPivotSelectionChange:function(t){t.addedItems.length&&t.removedItems.length&&t.addedItems[0]&&t.addedItems[0].command&&t.addedItems[0].command.execute(t)},_getWidgetByElement:function(t){return t.dxPivot("instance")},_createItemWrapper:function(t,e){return new y(t,e)},addCommand:function(t,e){this.callBase(t,e),this._updateSelectedIndex()},_onCommandChanged:function(t){var e=t.name,i=t.value;"visible"===e?this._reRenderPivot():"highlighted"===e&&i&&this._updateSelectedIndex(),this.callBase(t)},_addItemToWidget:function(t){t.command.option("visible")&&this.callBase(t)},_updateSelectedIndex:function(){var t=this.widget,e=t.option("items")||[];l.off=!0;for(var i=0,n=e.length;i<n;i++){var o=e[i].command;if(o&&o.option("highlighted")){t.option("selectedIndex",i);break}}l.off=!1},_reRenderPivot:function(){var t=this;t.widget.option("items",[]),s.each(t.itemWrappers,function(e,i){i.command.option("visible")&&t._addItemToWidget(i)}),t.refresh(),t._updateSelectedIndex()}}),x=d.inherit({}),w=u.inherit({ctor:function(t){this.callBase(t),this._commandToWidgetItemOptionNames={title:"text"},this.widget.option("onItemClick",this._onSlideOutItemClick.bind(this))},_onSlideOutItemClick:function(t){t.itemData.command.execute(t)},_getWidgetByElement:function(t){return t.dxSlideOut("instance")},_createItemWrapper:function(t,e){return new x(t,e)},_updateSelectedIndex:function(){for(var t=this.widget.option("items")||[],e=0,i=t.length;e<i;e++){var n=t[e].command;if(n&&n.option("highlighted")){this.widget.option("selectedIndex",e);break}}},addCommand:function(t,e){this.callBase(t,e),this._updateSelectedIndex()},_onCommandChanged:function(t){var e=t.name,i=t.value;"highlighted"===e&&i&&this._updateSelectedIndex(),this.callBase(t)}});e.dxToolbar=new p(function(t){return new _(t)}),e.dxList=new p(function(t){return new g(t)}),e.dxNavBar=new p(function(t){return new b(t)}),e.dxPivot=new p(function(t){return new C(t)}),e.dxSlideOut=new p(function(t){return new w(t)})},function(t,e,i){i(144);var n=i(145),o=i(18),a=i(29),s=i(16),r=i(13),l=i(17).each,c=i(25).inArray,h=i(158),d=i(64),u=i(15).when,p=i(60),f="dxView",_="dxLayout",m="MarkupTemplate:";i(164);var g=a.inherit({ctor:function(t){t=t||{},this.$root=t.$root,this.device=t.device||{},this.dataOptionsAttributeName=t.dataOptionsAttributeName||"data-options",this._templateMap={},this._pendingViewContainer=null,this.markupLoaded=s(),this._templateContext=t.templateContext,this._$skippedMarkup=n(),void 0!==t.templatesVersion&&t.templateCacheStorage&&this._isReleaseVersion()&&(this._templateCacheEnabled=!0,this._templatesVersion="v_"+t.templatesVersion,this._templateCacheStorage=t.templateCacheStorage,this._templateCacheKey="dxTemplateCache_"+o+"_"+JSON.stringify(this.device))},_isReleaseVersion:function(){return!/http:\/\/localhost/.test(location.href)},_enumerateTemplates:function(t){var e=this;l(e._templateMap,function(e,i){l(i,function(e,i){l(i,function(e,i){t(i)})})})},_findComponent:function(t,e){var i=(this._templateMap[t]||{})[e]||[],n=this._templateContext&&this._templateContext.option()||{};return i=this._filterTemplates(n,i),this._checkMatchedTemplates(i),i[0]},_findTemplate:function(t,e){var i=this._findComponent(t,e);if(!i)throw this._clearCache(),h.Error("E3013",e,t);var n,o=i.element();return i._isStaticComponentsCreated||(d.createComponents(o,["dxContent","dxContentPlaceholder","dxTransition"]),i._isStaticComponentsCreated=!0),n=o.clone().removeClass("dx-hidden")},_clearCache:function(){this._templateCacheEnabled&&this._templateCacheStorage.removeItem(this._templateCacheKey)},_loadTemplatesFromMarkupCore:function(t){var e=this;if(t.find("[data-dx-role]").length)throw h.Error("E3019");e.markupLoaded.fire({markup:t});var i=d.createComponents(t,[f,_]);l(i,function(t,i){var n=i.element();n.addClass("dx-hidden"),e._registerTemplateComponent(i),i.element().detach()});var n=t.filter("script");n.appendTo(e.$root),e._$skippedMarkup=e._$skippedMarkup.add(n)},_registerTemplateComponent:function(t){var e=t.NAME,i=t.option(),n=i.name,o=this._templateMap[n]||{};o[e]=o[e]||[],o[e].push(t),this._templateMap[n]=o},_applyPartialViews:function(t){var e=this;d.createComponents(t,["dxViewPlaceholder"]),l(t.find(".dx-view-placeholder"),function(){var t=n(this);if(!t.children().length){var i=t.data("dxViewPlaceholder").option("viewName"),o=e._findTemplate(i,f);e._applyPartialViews(o),t.append(o),o.removeClass("dx-hidden")}})},_ajaxImpl:function(){return p.sendRequest.apply(n,arguments)},_loadTemplatesFromURL:function(t){var e=this,i=this._getWinPhonePrefix(),o=n.Deferred();return t=i+t,this._ajaxImpl({url:t,dataType:"html"}).done(function(t){e._loadTemplatesFromMarkupCore(d.createMarkupFromString(t)),o.resolve()}).fail(function(e,i,n){var a=h.Error("E3021",t,n);o.reject(a)}),o.promise()},_getWinPhonePrefix:function(){return location.protocol.indexOf("wmapp")>=0?location.protocol+"www/":""},_loadExternalTemplates:function(){var t=[],e=this;return n("head").find("link[rel='dx-template']").each(function(i,o){var a=e._loadTemplatesFromURL(n(o).attr("href"));t.push(a)}),u.apply(n,t)},_processTemplates:function(){var t=this;l(t._templateMap,function(e,i){l(i,function(e,i){t._filterTemplatesByDevice(i)})}),t._enumerateTemplates(function(e){t._applyPartialViews(e.element())})},_filterTemplatesByDevice:function(t){var e=this._filterTemplates(this.device,t);l(t,function(t,i){c(i,e)<0&&i.element().remove()}),t.length=0,t.push.apply(t,e)},_filterTemplates:function(t,e){return r.findBestMatches(t,e,function(t){return t.option()})},_checkMatchedTemplates:function(t){if(t.length>1){var e="";throw l(t,function(t,i){e+=i.element().attr("data-options")+"\r\n"}),h.Error("E3020",e,JSON.stringify(this.device))}},_wrapViewDefaultContent:function(t){t.wrapInner('<div class="dx-full-height"></div>'),t.children().eq(0).dxContent({targetPlaceholder:"content"})},_initDefaultLayout:function(){this._$defaultLayoutTemplate=n('<div class="dx-full-height" data-options="dxLayout : { name: \'default\' } "> \n <div class="dx-full-height" data-options="dxContentPlaceholder : { name: \'content\' } " ></div> \n</div>'),d.createComponents(this._$defaultLayoutTemplate)},_getDefaultLayoutTemplate:function(){return this._$defaultLayoutTemplate.clone()},applyLayout:function(t,e){void 0!==e&&0!==e.length||(e=this._getDefaultLayoutTemplate()),0===t.children(".dx-content").length&&this._wrapViewDefaultContent(t);var i=n().add(e).add(t),o=i.find(".dx-content");l(o,function(){var t=n(this),e=t.attr("data-dx-target-placeholder-id"),o=i.find(".dx-content-placeholder-"+e);o.empty(),o.append(t)});for(var a=o.length;a>=0;a--){var s=o.eq(a);s.is(".dx-content-placeholder .dx-content")||s.remove()}return e},_loadTemplatesFromCache:function(){if(this._templateCacheEnabled){var t,e=function(t,e){if("string"==typeof e&&0===e.indexOf(m)){var i=JSON.parse(e.substr(m.length)),o=i.type,a=i.options,s=d.createMarkupFromString(i.markup);return a.fromCache=!0,s[o](a)[o]("instance")}return"skippedMarkup"===t?n("<div>").append(d.createMarkupFromString(e)).contents():e},i=this._templateCacheStorage.getItem(this._templateCacheKey);if(i)try{var o=JSON.parse(i,e);t=o[this._templatesVersion]}catch(t){this._clearCache()}if(t)return this._templateMap=t.templates,this.$root.append(t.skippedMarkup),!0}},_putTemplatesToCache:function(){if(this._templateCacheEnabled){var t=function(t,e){return e&&e.element?m+JSON.stringify({markup:e.element().prop("outerHTML"),options:e.option(),type:e.NAME}):"skippedMarkup"===t?n("<div>").append(e.clone()).html():e},e={};e[this._templatesVersion]={templates:this._templateMap,skippedMarkup:this._$skippedMarkup},this._templateCacheStorage.setItem(this._templateCacheKey,JSON.stringify(e,t,4))}},init:function(){var t=this;return this._initDefaultLayout(),this._loadTemplatesFromCache()?n.Deferred().resolve().promise():(t._loadTemplatesFromMarkupCore(t.$root.children()),this._loadExternalTemplates().done(function(){t._processTemplates(),t._putTemplatesToCache()}))},getViewTemplate:function(t){return this._findTemplate(t,f)},getViewTemplateInfo:function(t){return this._findComponent(t,f)},getLayoutTemplate:function(t){return t?this._findTemplate(t,_):this._getDefaultLayoutTemplate()},getLayoutTemplateInfo:function(t){return this._findComponent(t,_)},loadTemplates:function(t){var e;return"string"==typeof t?e=this._loadTemplatesFromURL(t):(this._loadTemplatesFromMarkupCore(t),e=n.Deferred().resolve().promise()),e.done(this._processTemplates.bind(this))}});e.ViewEngine=g},function(t,e,i){i(144);var n=i(145),o=i(30),a=i(29),s=i(13),r=i(17),l=i(167),c=i(174).layoutSets,h=i(72),d=i(158),u=i(64),p=i(15).when,f="__hidden-bag",_=".dx-transition",m=".dx-content",g="onViewShown",v="dxcontentrendered.layoutController",b=".dx-pending-rendering",y=".dx-pending-rendering-manual",C=i(95);i(162),i(164);var x=function(t){return".dx-transition-"+t},w=a.inherit({ctor:function(t){t=t||{},this.name=t.name||"",this._layoutModel=t.layoutModel||{},this._defaultPaneName=t.defaultPaneName||"content",this._transitionDuration=void 0===t.transitionDuration?400:t.transitionDuration,this._showViewFired=!1},init:function(t){t=t||{},this._visibleViews={},this._$viewPort=t.$viewPort||n("body"),this._commandManager=t.commandManager,this._viewEngine=t.viewEngine,this.transitionExecutor=new C.TransitionExecutor,this._prepareTemplates(),this._$viewPort.append(this.element()),this._hideElements(this.element()),t.templateContext&&(this._templateContext=t.templateContext,this._proxiedTemplateContextChangedHandler=this._templateContextChangedHandler.bind(this))},ensureActive:function(t){return this._disabledState?this.enable():this.activate(t)},activate:function(){this._showViewFired=!1;var t=this.element();return this._showElements(t),this._attachRefreshViewRequiredHandler(),n.Deferred().resolve().promise()},deactivate:function(){return this._disabledState=!1,this._showViewFired=!1,this._releaseVisibleViews(),this._hideElements(this.element()),this._detachRefreshViewRequiredHandler(),n.Deferred().resolve().promise()},enable:function(){return this._disabledState=!1,this._showViewFired||this._notifyShowing(),this._showViewFired=!1,n.Deferred().resolve().promise()},disable:function(){this._disabledState=!0,this._showViewFired=!1,this._notifyHidden()},activeViewInfo:function(){return this._visibleViews[this._defaultPaneName]},_fireViewEvents:function(t,e){var i=this;e=e||this._visibleViews,r.each(e,function(e,n){i.fireEvent(t,[n])})},_notifyShowing:function(t){this._fireViewEvents("viewShowing",t)},_notifyShown:function(t){this._fireViewEvents("viewShown",t)},_notifyHidden:function(t){this._fireViewEvents("viewHidden",t)},_applyTemplate:function(t,e){t.each(function(t,i){l.templateProvider.applyTemplate(i,e)})},_releaseVisibleViews:function(){var t=this;r.each(this._visibleViews,function(e,i){t._hideView(i),t._releaseView(i)}),this._visibleViews={}},_templateContextChangedHandler:function(){var t=this,e=[];r.each(t._visibleViews,function(i,n){n.currentViewTemplateId!==t._getViewTemplateId(n)&&e.push(n)}),p.apply(n,r.map(e,function(e){return t.showView(e)})).done(function(){t._notifyShown(e)})},_attachRefreshViewRequiredHandler:function(){this._templateContext&&this._templateContext.on("optionChanged",this._proxiedTemplateContextChangedHandler)},_detachRefreshViewRequiredHandler:function(){this._templateContextChanged&&this._templateContext.off("optionChanged",this._proxiedTemplateContextChangedHandler)},_getPreviousViewInfo:function(t){return this._visibleViews[this._getViewPaneName(t.viewTemplateInfo)]},_prepareTemplates:function(){var t=this,e=t._viewEngine.getLayoutTemplate(this._getLayoutTemplateName());t._$layoutTemplate=e,t._$mainLayout=t._createEmptyLayout(),t._showElements(t._$mainLayout),t._applyTemplate(t._$mainLayout,t._layoutModel),t._$navigationWidget=t._createNavigationWidget()},renderNavigation:function(t){this._clearNavigationWidget(),this._renderNavigationImpl(t)},_renderNavigationImpl:function(t){this._renderCommands(this._$mainLayout,t)},_createNavigationWidget:function(){var t,e=this._findCommandContainers(this._$mainLayout);return r.each(e,function(e,i){if("global-navigation"===i.option("id"))return t=i.element(),!1}),t},_clearNavigationWidget:function(){this._$navigationWidget&&this._commandManager.clearContainer(this._$navigationWidget.dxCommandContainer("instance"))},element:function(){return this._$mainLayout},_getViewFrame:function(t){return this._$mainLayout},_getLayoutTemplateName:function(){return this.name},_applyModelToTransitionElements:function(t,e){var i=this;this._getTransitionElements(t).each(function(t,o){i._applyTemplate(n(o).children(),e)})},_createViewLayoutTemplate:function(){var t=this,e=t._$layoutTemplate.clone();return this._hideElements(e),e},_createEmptyLayout:function(){var t=this,e=t._$layoutTemplate.clone();return this._hideElements(e),this._getTransitionElements(e).empty(),e.children(m).remove(),e},_getTransitionElements:function(t){for(var e=t.find(_).add(t.filter(_)),i=[],o=0;o<e.length;o++){var a=e.eq(o);0===a.parents(_).length&&i.push(a.get(0))}return n(i)},showView:function(t,e){e=e||"forward";var i,o=this,a=o._getPreviousViewInfo(t),s=a===t?a.currentViewTemplateId:void 0;return this._showViewFired=!0,this._updateCurrentViewTemplateId(t),s&&s===t.currentViewTemplateId&&t===a?(o.fireEvent("viewShowing",[t,e]),i=n.Deferred().resolve().promise()):(o._ensureViewRendered(t),o.fireEvent("viewShowing",[t,e]),i=this._showViewImpl(t,e,s).done(function(){o._onViewShown(t)})),i},disposeView:function(t){this._clearRenderResult(t)},_clearRenderResult:function(t){t.renderResult&&(t.renderResult.$markup.remove(),t.renderResult.$viewItems.remove(),delete t.renderResult)},_renderViewImpl:function(t,e){var i,o=this,a=".dx-command,.dx-content,script",s=this._createViewLayoutTemplate(),r=!0,l=n();if(0===t.children(a).length&&this._viewEngine._wrapViewDefaultContent(t),i=t.children(),this._applyModelToTransitionElements(s,e.model),this._viewEngine.applyLayout(t,s),i.each(function(t,i){var s=n(i);o._applyTemplate(s,e.model),s.is(a)?r=!1:l=l.add(s)}),l.length&&!r)throw d.Error("E3014",l[0].outerHTML);e.renderResult=e.renderResult||{},e.renderResult.$viewItems=i,e.renderResult.$markup=s},_renderCommands:function(t,e){var i=this._findCommandContainers(t);return this._commandManager.renderCommandsToContainers(e,i)},_prepareViewCommands:function(t){var e=t.renderResult.$viewItems,i=this._commandManager.findCommands(e),n={};t.commands=l.utils.mergeCommands(t.commands||[],i),t.commandsToRenderMap=n,r.each(t.commands,function(t,e){var i=e.option("renderStage")||g,o=n[i]=n[i]||[];o.push(e)})},_applyViewCommands:function(t,e){e=e||g;var i,o=t.commandsToRenderMap[e],a=t.renderResult.$markup;return o?(i=this._renderCommands(a,o),delete t.commandsToRenderMap[e]):i=n.Deferred().resolve().promise(),i},_findCommandContainers:function(t){return u.createComponents(t,["dxCommandContainer"])},_getViewTemplateId:function(t){var e=t.$viewTemplate?t.$viewTemplate.dxView("instance"):this._viewEngine.getViewTemplateInfo(t.viewName);return e.getId()},_updateCurrentViewTemplateId:function(t){t.currentViewTemplateId=this._getViewTemplateId(t)},_ensureViewRendered:function(t){var e=t.renderResult&&t.renderResult.markupCache[t.currentViewTemplateId];e?t.renderResult.$markup=e:(this._renderView(t),t.renderResult.markupCache=t.renderResult.markupCache||{},t.renderResult.markupCache[t.currentViewTemplateId]=t.renderResult.$markup)},_renderView:function(t){var e=t.$viewTemplate||this._viewEngine.getViewTemplate(t.viewName);this._renderViewImpl(e,t),this._prepareViewCommands(t),this._applyViewCommands(t,"onViewRendering"),this._appendViewToLayout(t),e.remove(),this._onRenderComplete(t),this.fireEvent("viewRendered",[t])},_prepareTransition:function(t,e){0===t.children(".dx-content").length&&(t.wrapInner("<div>"),t.children().dxContent({targetPlaceholder:e}))},_appendViewToLayout:function(t){var e=this,i=e._getViewFrame(t),o=t.renderResult.$markup,a=n(),s=[];r.each(o.find(".dx-content-placeholder"),function(t,i){e._prepareTransition(n(i),n(i).attr("data-dx-content-placeholder-name"))}),r.each(e._getTransitionElements(i),function(t,i){var r=n(i),l=o.find(x(r.attr("data-dx-transition-name"))).children(),c={$element:l,animation:r.attr("data-dx-transition-type")};s.push(c),r.append(l),e._showViewElements(l),u.triggerShownEvent(l),a=a.add(l)}),e._$mainLayout.append(t.renderResult.$viewItems.filter(".dx-command")),o.remove(),t.renderResult.$markup=a,t.renderResult.animationItems=s},_onRenderComplete:function(t){},_onViewShown:function(t){o.trigger(document,"dx.viewchanged")},_enter:function(t,e){var i=this.transitionExecutor;r.each(t,function(t,n){i.enter(n.$element,n.animation,e)})},_leave:function(t,e){var i=this.transitionExecutor;r.each(t,function(t,n){i.leave(n.$element,n.animation,e)})},_doTransition:function(t,e,i){return t&&this._leave(t.renderResult.animationItems,i),this._enter(e.renderResult.animationItems,i),this._showView(e),this.transitionExecutor.start()},_showViewImpl:function(t,e,i){var o=this,a=this._getPreviousViewInfo(t),s={direction:e};a===t&&(a=void 0),a||(s.duration=0,s.delay=0);var r=n.Deferred();return o._doTransition(a,t,s).done(function(){o._changeView(t,i).done(function(t){r.resolve(t)})}),r.promise()},_releaseView:function(t){this.fireEvent("viewReleased",[t])},_getReadyForRenderDeferredItems:function(t){return n.Deferred().resolve().promise()},_changeView:function(t,e){var i=this;if(e)i._hideView(t,e);else{var o=i._getPreviousViewInfo(t);o&&o!==t&&(i._hideView(o),i._releaseView(o)),this._visibleViews[this._getViewPaneName(t.viewTemplateInfo)]=t}this._subscribeToDeferredItems(t);var a=n.Deferred();return this._getReadyForRenderDeferredItems(t).done(function(){i._applyViewCommands(t).done(function(){i._renderDeferredItems(t.renderResult.$markup).done(function(){a.resolve()})})}),a.promise()},_subscribeToDeferredItems:function(t){var e=this,i=t.renderResult.$markup;i.find(b).add(i.filter(b)).each(function(){var i={viewInfo:t,context:e};n(this).on(v,i,e._onDeferredContentRendered)})},_onDeferredContentRendered:function(t){var e=n(t.target),i=t.data.viewInfo,o=t.data.context;e.off(v,o._onDeferredContentRendered),o._renderCommands(e,i.commands)},_renderDeferredItems:function(t){var e=this,i=n.Deferred(),o=t.find(y).add(t.filter(y)).first();if(o.length){var a=o.data("dx-render-delegate");s.executeAsync(function(){a().done(function(){e._renderDeferredItems(t).done(function(){i.resolve()})})})}else i.resolve();return i.promise()},_getViewPaneName:function(t){return this._defaultPaneName},_hideElements:function(t){t.addClass("dx-fast-hidden")},_showElements:function(t){t.removeClass("dx-fast-hidden")},_hideViewElements:function(t){this._patchIds(t),this._disableInputs(t),t.removeClass("dx-active-view").addClass("dx-inactive-view")},_hideView:function(t,e){if(t.renderResult){var i=void 0===e?t.renderResult.$markup:t.renderResult.markupCache[e];this._hideViewElements(i),this.fireEvent("viewHidden",[t])}},_showViewElements:function(t){this._unPatchIds(t),this._enableInputs(t),t.removeClass("dx-inactive-view").addClass("dx-active-view"),this._skipAnimation(t)},_showView:function(t){t.renderResult&&this._showViewElements(t.renderResult.$markup)},_skipAnimation:function(t){t.addClass("dx-skip-animation");for(var e=0;e<t.length;e++)t.eq(e).css("transform");t.removeClass("dx-skip-animation")},_patchIds:function(t){this._processIds(t,function(t){var e=t;return t.indexOf(f)===-1&&(e=f+"-"+t),e})},_unPatchIds:function(t){this._processIds(t,function(t){var e=t;return 0===t.indexOf(f)&&(e=t.substr(f.length+1)),e})},_processIds:function(t,e){var i=t.find("[id]");r.each(i,function(t,i){var o=n(i),a=o.attr("id");o.attr("id",e(a))})},_enableInputs:function(t){var e=this._getInputs(t).filter("[data-disabled='true']");r.each(e,function(t,e){n(e).removeAttr("disabled").removeAttr("data-disabled")})},_disableInputs:function(t){var e=this._getInputs(t);e=e.filter(":not([disabled])").add(e.filter("[disabled=true]")),r.each(e,function(t,e){n(e).attr({disabled:!0,"data-disabled":!0})})},_getInputs:function(t){return t.find("input, button, select, textarea")}}).include(h);c.default=c.default||[],c.default.push({controller:new w}),e.DefaultLayoutController=w,e.layoutSets=c},function(t,e,i){function n(){var t,e=I("<div>",g).addClass("dx-theme-marker").appendTo(g.documentElement);try{return(t=e.css("font-family"))?(t=t.replace(/["']/g,""),t.substr(0,F.length)!==F?null:t.substr(F.length)):null}finally{e.remove()}}function o(t){function e(){C=null,M.fire(),M.empty()}var i;C=t,a()?e():(i=Date.now(),w=setInterval(function(){var t=a(),n=!t&&Date.now()-i>15e3;n&&T.log("W0004",C),(t||n)&&(clearInterval(w),w=void 0,e())},10))}function a(){return!C||n()===C}function s(){var t=I($,g);t.length&&(b={},v=I(E.createMarkupFromString("<link rel=stylesheet>"),g),t.each(function(){var t=I(this,g),e=t.attr(H),i=t.attr("href"),n="true"===t.attr(V);b[e]={url:i,isActive:n}}),t.last().after(v),t.remove())}function r(t){var e=t.split("."),i=null;if(b){if(t in b)return t;k(b,function(t,n){var o=t.split(".");if(o[0]===e[0]&&!(e[1]&&e[1]!==o[1]||e[2]&&e[2]!==o[2]))return i&&!n.isActive||(i=t),!n.isActive&&void 0})}return i}function l(t){try{t!==g&&(b=null)}catch(t){b=null}g=t}function c(t){t=t||{},l(t.context||document),s(),y=void 0,x=void 0,h(t)}function h(t){if(!arguments.length)return y=y||n();f(O()),t=t||{},"string"==typeof t&&(t={theme:t});var e,i=t._autoInit,a=t.loadCallback;if(y=t.theme||y,i&&!y&&(y=d(B.current())),y=r(y),y&&(e=b[y]),a&&M.add(a),e)v.attr("href",b[y].url),!M.has()&&!t._forceTimeout||w?C&&(C=y):o(y);else{if(!i)throw T.Error("E0021",y);M.fire(),M.empty()}x=/android5/.test(y||n()),p(A.originalViewPort(),y)}function d(t){var e=t.platform,i=t.version&&t.version[0];switch(e){case"ios":e+="7";break;case"android":e+="5";break;case"win":e+=i&&8===i?"8":"10"}return e}function u(t){t=t||h();var e=[],i=t&&t.split(".");return i&&(e.push("dx-theme-"+i[0],"dx-theme-"+i[0]+"-typography"),i.length>1&&e.push("dx-color-scheme-"+i[1])),e}function p(t,e){S=u(e).join(" "),I(t).addClass(S);var i=function(){var e=window.devicePixelRatio;if(e&&!(e<2)){var i=I("<div>");i.css("border",".5px solid transparent"),I("body").append(i),1===i.outerHeight()&&(I(t).addClass(R),S+=" "+R),i.remove()}};i()}function f(t){I(t).removeClass(S)}function _(t){M.add(t)}function m(){return x}var g,v,b,y,C,x,w,S,I=i(21),T=i(40),E=i(64),D=i(77),k=i(17).each,B=i(74),A=i(76),M=i(151),O=A.value,P=A.changeCallback,$="link[rel=dx-theme]",H="data-theme",V="data-active",R="dx-hairlines",F="dx.";c({_autoInit:!0,_forceTimeout:!0}),D(function(){if(I($,g).length)throw T.Error("E0022")}),P.add(function(t,e){f(e),p(t)}),B.changed.add(function(){c({_autoInit:!0})}),e.current=h,e.ready=_,e.init=c,e.attachCssClasses=p,e.detachCssClasses=f,e.themeNameFromDevice=d,e.waitForThemeLoad=o,e.isAndroid5=m,e.resetTheme=function(){v&&v.attr("href","about:blank"),y=null,C=null,x=!1}},function(t,e,i){var n=i(181);n&&(i(144),i(182),i(209),i(210),i(211))},function(t,e){t.exports=window.angular},function(t,e,i){var n=i(21),o=i(30),a=i(14),s=i(79),r=i(29),l=i(16),c=i(10),h=i(17).each,d=i(25).inArray,u=i(134),p=i(118),f=i(128),_=i(183),m=i(184),g=i(185),v=i(71).compileSetter,b=i(71).compileGetter,y=i(9).extendFromObject,C=i(37),x=i(7),w="dxItemAlias",S=["rendering"],I="value",T=function(t,e){return e.$root.$$phase?t(e):e.$apply(function(){return t(e)})},E=r.inherit({ctor:function(t){this._componentDisposing=l(),this._optionChangedCallbacks=l(),this._ngLocker=new u,this._scope=t.scope,this._$element=t.$element,this._$templates=t.$templates,this._componentClass=t.componentClass,this._parse=t.parse,this._compile=t.compile,this._itemAlias=t.itemAlias,this._transcludeFn=t.transcludeFn,this._digestCallbacks=t.dxDigestCallbacks,this._normalizeOptions(t.ngOptions),this._initComponentBindings(),this._initComponent(this._scope),t.ngOptions||this._addOptionsStringWatcher(t.ngOptionsString)},_addOptionsStringWatcher:function(t){var e=this,i=e._scope.$watch(t,function(t){t&&(i(),e._normalizeOptions(t),e._initComponentBindings(),e._component.option(e._evalOptions(e._scope)))});e._componentDisposing.add(i)},_normalizeOptions:function(t){var e=this;e._ngOptions=y({},t),t&&(!t.hasOwnProperty("bindingOptions")&&t.bindingOptions&&(e._ngOptions.bindingOptions=t.bindingOptions),t.bindingOptions&&h(t.bindingOptions,function(t,i){"string"===c.type(i)&&(e._ngOptions.bindingOptions[t]={dataPath:i})}))},_initComponent:function(t){this._component=new this._componentClass(this._$element,this._evalOptions(t)),this._component._isHidden=!0,this._handleDigestPhase()},_handleDigestPhase:function(){var t=this,e=function(){t._component.beginUpdate()},i=function(){t._component.endUpdate()};t._digestCallbacks.begin.add(e),t._digestCallbacks.end.add(i),t._componentDisposing.add(function(){t._digestCallbacks.begin.remove(e),t._digestCallbacks.end.remove(i)})},_initComponentBindings:function(){var t=this,e={};t._ngOptions.bindingOptions&&(h(t._ngOptions.bindingOptions,function(i,n){var o,a,s=i.search(/\[|\./),r=s>-1?i.substring(0,s):i,l=n.dataPath,c=!0,h=!1;void 0!==n.deep&&(h=c=!!n.deep),e[r]||(e[r]={}),e[r][i]=l;var d=function(e,n){t._ngLocker.locked(i)||(t._ngLocker.obtain(i),t._component.option(i,e),u(),t._component._optionValuesEqual(i,n,e)&&t._ngLocker.locked(i)&&t._ngLocker.release(i))},u=function(){var e=Array.isArray(t._scope.$eval(l))&&!h?"$watchCollection":"$watch";o!==e&&(a&&a(),a=t._scope[e](l,d,c),o=e)};u(),t._componentDisposing.add(a)}),t._optionChangedCallbacks.add(function(i){var n=i.name,o=i.fullName,a=i.component;if(t._ngLocker.locked(o))return void t._ngLocker.release(o);if(e&&e[n]){var s=t._scope.$root.$$phase,r=function(){t._ngLocker.obtain(o)};s?t._digestCallbacks.begin.add(r):r(),T(function(){h(e[n],function(e,n){if(t._optionsAreLinked(o,e)){var s=a.option(e);t._parse(n).assign(t._scope,s);var r=t._parse(n)(t._scope);r!==s&&i.component.option(e,r)}})},t._scope);var l=function(){t._ngLocker.locked(o)&&t._ngLocker.release(o),t._digestCallbacks.begin.remove(r),t._digestCallbacks.end.remove(l)};s?t._digestCallbacks.end.addPrioritized(l):l()}}))},_optionsAreNested:function(t,e){var i=t[e.length];return 0===t.indexOf(e)&&("."===i||"["===i)},_optionsAreLinked:function(t,e){return t===e||(t.length>e.length?this._optionsAreNested(t,e):this._optionsAreNested(e,t))},_compilerByTemplate:function(t){var e=this,i=this._getScopeItemsPath();return function(a){var s=n(t).clone(),r=a.model&&a.model.constructor===e._scope.$root.constructor,l=r?a.model:a.noModel?e._scope:e._createScopeWithData(a);return i&&e._synchronizeScopes(l,i,a.index),s.appendTo(a.container),a.noModel||o.on(s,"$destroy",function(){var t=!l.$parent;t||l.$destroy()}),e._applyAsync(e._compile(s,e._transcludeFn),l),s}},_applyAsync:function(t,e){var i=this;t(e),e.$root.$$phase||(i._renderingTimer||(i._renderingTimer=setTimeout(function(){e.$apply(),i._renderingTimer=null})),i._componentDisposing.add(function(){clearTimeout(i._renderingTimer)}))},_getScopeItemsPath:function(){if(this._componentClass.subclassOf(g)&&this._ngOptions.bindingOptions&&this._ngOptions.bindingOptions.items)return this._ngOptions.bindingOptions.items.dataPath},_createScopeWithData:function(t){var e=this._scope.$new();return this._itemAlias&&(e[this._itemAlias]=t.model),c.isDefined(t.index)&&(e.$index=t.index),e},_synchronizeScopes:function(t,e,i){this._itemAlias&&"object"!=typeof t[this._itemAlias]&&this._synchronizeScopeField({parentScope:this._scope,childScope:t,fieldPath:this._itemAlias,parentPrefix:e,itemIndex:i})},_synchronizeScopeField:function(t){var e,i=t.parentScope,n=t.childScope,o=t.fieldPath,a=t.parentPrefix,s=t.itemIndex,r=o===this._itemAlias?"":"."+o,l=void 0!==s,h=[a];if(l){if(!c.isNumeric(s))return;h.push("[",s,"]")}h.push(r),e=h.join("");var d=i.$watch(e,function(t,e){t!==e&&v(o)(n,t)}),u=n.$watch(o,function(t,n){if(t!==n){if(l&&!b(a)(i)[s])return void u();v(e)(i,t)}});this._componentDisposing.add([d,u])},_evalOptions:function(t){var e=y({},this._ngOptions);return delete e.bindingOptions,this._ngOptions.bindingOptions&&h(this._ngOptions.bindingOptions,function(i,n){e[i]=t.$eval(n.dataPath)}),e._optionChangedCallbacks=this._optionChangedCallbacks,e._disposingCallbacks=this._componentDisposing,e.onActionCreated=function(e,i,n){if(n&&d(n.category,S)>-1)return i;var o=function(){var e=this,n=arguments;return t&&t.$root&&!t.$root.$$phase?T(function(){return i.apply(e,n)},t):i.apply(e,n)};return o},e.beforeActionExecute=e.onActionCreated,e.nestedComponentOptions=function(t){return{templatesRenderAsynchronously:t.option("templatesRenderAsynchronously"),forceApplyBindings:t.option("forceApplyBindings"),modelByElement:t.option("modelByElement"),onActionCreated:t.option("onActionCreated"),beforeActionExecute:t.option("beforeActionExecute"),nestedComponentOptions:t.option("nestedComponentOptions")}},e.templatesRenderAsynchronously=!0,a().wrapActionsBeforeExecute&&(e.forceApplyBindings=function(){T(function(){},t)}),e.integrationOptions={createTemplate:function(t){return new _(t,this._compilerByTemplate.bind(this))}.bind(this),watchMethod:function(e,i,n){n=n||{};var o,s=n.skipImmediate,r=t.$watch(function(){var t=e();return t instanceof Date&&(t=t.valueOf()),t},function(t){var e=o===t;!s&&(!e||e&&n.deep)&&i(t),s=!1},n.deep);return s||(o=e(),i(o)),a().wrapActionsBeforeExecute&&this._applyAsync(function(){},t),r}.bind(this),templates:{"dx-polymorph-widget":{render:function(t){var e=t.model.widget;if(e){if("button"===e||"tabs"===e||"dropDownMenu"===e){var i=e;e=C.camelize("dx-"+e),x.log("W0001","dxToolbar - 'widget' item field",i,"16.1","Use: '"+e+"' instead")}var o=n("<div>").attr(C.dasherize(e),"options").get(0),a=this._scope.$new();a.options=t.model.options,t.container.append(o),this._compile(o)(a)}}.bind(this)}}},e.modelByElement=function(){return t},e}});E=E.inherit({ctor:function(t){this._componentName=t.componentName,this._ngModel=t.ngModel,this._ngModelController=t.ngModelController,this.callBase.apply(this,arguments)},_isNgModelRequired:function(){return this._componentClass.subclassOf(f)&&this._ngModel},_initComponentBindings:function(){this.callBase.apply(this,arguments),this._initNgModelBinding()},_initNgModelBinding:function(){if(this._isNgModelRequired()){var t=this,e=this._scope.$watch(this._ngModel,function(e,i){t._ngLocker.locked(I)||e!==i&&t._component.option(I,e)});t._optionChangedCallbacks.add(function(e){t._ngLocker.obtain(I);try{if(e.name!==I)return;t._ngModelController.$setViewValue(e.value)}finally{t._ngLocker.locked(I)&&t._ngLocker.release(I)}}),this._componentDisposing.add(e)}},_evalOptions:function(){if(!this._isNgModelRequired())return this.callBase.apply(this,arguments);var t=this.callBase.apply(this,arguments);return t[I]=this._parse(this._ngModel)(this._scope),t}});var D={},k=function(t){var e="dxValidator"!==t?1:10;m.directive(t,["$compile","$parse","dxDigestCallbacks",function(i,n,o){
|
|
15
|
+
clearTimeout(this._unlockMouseTimer)}});d.map=l,d.resetObserver=a.resetObserver,t.exports=d},function(t,e,i){var n=i(21),o=i(13).noop,a=i(29),s=i(16),r=i(9).extend,l=i(93),c=a.inherit({ctor:function(t){this._$element=n(t),this._cancelCallback=s(),this._acceptCallback=s()},getElement:function(){return this._$element},validate:function(t){return"dxmousewheel"!==t.type},validatePointers:function(t){return 1===l.hasTouches(t)},allowInterruptionByMouseWheel:function(){return!0},configure:function(t){r(this,t)},addCancelCallback:function(t){this._cancelCallback.add(t)},removeCancelCallback:function(){this._cancelCallback.empty()},_cancel:function(t){this._cancelCallback.fire(this,t)},addAcceptCallback:function(t){this._acceptCallback.add(t)},removeAcceptCallback:function(){this._acceptCallback.empty()},_accept:function(t){this._acceptCallback.fire(this,t)},_requestAccept:function(t){this._acceptRequestEvent=t},_forgetAccept:function(){this._accept(this._acceptRequestEvent),this._acceptRequestEvent=null},start:o,move:o,end:o,cancel:o,reset:function(){this._acceptRequestEvent&&this._accept(this._acceptRequestEvent)},_fireEvent:function(t,e,i){var n=r({type:t,originalEvent:e,target:this._getEmitterTarget(e),delegateTarget:this.getElement().get(0)},i);return e=l.fireEvent(n),e.cancel&&this._cancel(e),e},_getEmitterTarget:function(t){return(this.delegateSelector?n(t.target).closest(this.delegateSelector):this.getElement()).get(0)},dispose:o});t.exports=c},function(t,e,i){var n=i(21),o=i(30),a=i(23),s=i(29),r=i(9).extend,l=i(25).inArray,c=i(17).each,h=i(68),d=i(93),u=i(98),p=i(107),f="dxEventManager",_="dxEmitter",m=s.inherit({ctor:function(){this._attachHandlers(),this.reset(),this._proxiedCancelHandler=this._cancelHandler.bind(this),this._proxiedAcceptHandler=this._acceptHandler.bind(this)},_attachHandlers:function(){o.subscribeGlobal(document,d.addNamespace(u.down,f),this._pointerDownHandler.bind(this)),o.subscribeGlobal(document,d.addNamespace(u.move,f),this._pointerMoveHandler.bind(this)),o.subscribeGlobal(document,d.addNamespace([u.up,u.cancel].join(" "),f),this._pointerUpHandler.bind(this)),o.subscribeGlobal(document,d.addNamespace(p.name,f),this._mouseWheelHandler.bind(this))},_eachEmitter:function(t){for(var e=this._activeEmitters||[],i=0;e.length>i;){var n=e[i];if(t(n)===!1)break;e[i]===n&&i++}},_applyToEmitters:function(t,e){this._eachEmitter(function(i){i[t].call(i,e)})},reset:function(){this._eachEmitter(this._proxiedCancelHandler),this._activeEmitters=[]},resetEmitter:function(t){this._proxiedCancelHandler(t)},_pointerDownHandler:function(t){d.isMouseEvent(t)&&t.which>1||this._updateEmitters(t)},_updateEmitters:function(t){this._isSetChanged(t)&&(this._cleanEmitters(t),this._fetchEmitters(t))},_isSetChanged:function(t){var e=this._closestEmitter(t),i=this._emittersSet||[],n=e.length!==i.length;return c(e,function(t,e){return n=n||i[t]!==e,!n}),this._emittersSet=e,n},_closestEmitter:function(t){function e(e,n){n&&n.validatePointers(t)&&n.validate(t)&&(n.addCancelCallback(i._proxiedCancelHandler),n.addAcceptCallback(i._proxiedAcceptHandler),o.push(n))}for(var i=this,o=[],s=n(t.target);s.length;){var r=a.data(s.get(0),_)||[];c(r,e),s=s.parent()}return o},_acceptHandler:function(t,e){var i=this;this._eachEmitter(function(n){n!==t&&i._cancelEmitter(n,e)})},_cancelHandler:function(t,e){this._cancelEmitter(t,e)},_cancelEmitter:function(t,e){var i=this._activeEmitters;e?t.cancel(e):t.reset(),t.removeCancelCallback(),t.removeAcceptCallback();var n=l(t,i);n>-1&&i.splice(n,1)},_cleanEmitters:function(t){this._applyToEmitters("end",t),this.reset(t)},_fetchEmitters:function(t){this._activeEmitters=this._emittersSet.slice(),this._applyToEmitters("start",t)},_pointerMoveHandler:function(t){this._applyToEmitters("move",t)},_pointerUpHandler:function(t){this._updateEmitters(t)},_mouseWheelHandler:function(t){this._allowInterruptionByMouseWheel()&&(t.pointers=[null],this._pointerDownHandler(t),this._adjustWheelEvent(t),this._pointerMoveHandler(t),t.pointers=[],this._pointerUpHandler(t))},_allowInterruptionByMouseWheel:function(){var t=!0;return this._eachEmitter(function(e){return t=e.allowInterruptionByMouseWheel()&&t}),t},_adjustWheelEvent:function(t){var e=null;if(this._eachEmitter(function(i){if(i.gesture){var n=i.getDirection(t);return"horizontal"!==n&&!t.shiftKey||"vertical"!==n&&t.shiftKey?(e=i,!1):void 0}}),e){var i=e.getDirection(t),n="both"===i&&!t.shiftKey||"vertical"===i,o=n?"pageY":"pageX";t[o]+=t.delta}},isActive:function(t){var e=!1;return this._eachEmitter(function(i){e=e||i.getElement().is(t)}),e}}),g=new m,v="dxEmitterSubscription",b=function(t){var e=t.emitter,i=t.events[0],n=t.events;c(n,function(o,s){h(s,{noBubble:!t.bubble,setup:function(t){var n=a.data(t,v)||{},o=a.data(t,_)||{},r=o[i]||new e(t);n[s]=!0,o[i]=r,a.data(t,_,o),a.data(t,v,n)},add:function(t,e){var n=a.data(t,_),o=n[i];o.configure(r({delegateSelector:e.selector},e.data),e.type)},teardown:function(t){var e=a.data(t,v),o=a.data(t,_),r=o[i];delete e[s];var l=!0;c(n,function(t,i){return l=l&&!e[i]}),l&&(g.isActive(t)&&g.resetEmitter(r),r&&r.dispose(),delete o[i])}})})};t.exports=b},function(t,e,i){var n=i(21),o=i(30),a=i(68),s=i(93),r="dxmousewheel",l="dxWheel",c=void 0!==document.onwheel?"wheel":"mousewheel",h={setup:function(t){var e=n(t);o.on(e,s.addNamespace(c,l),h._wheelHandler.bind(h))},teardown:function(t){o.off(t,"."+l)},_wheelHandler:function(t){var e=this._getWheelDelta(t.originalEvent);s.fireEvent({type:r,originalEvent:t,delta:e,pointerType:"mouse"}),t.stopPropagation()},_getWheelDelta:function(t){return t.wheelDelta?t.wheelDelta:30*-t.deltaY}};a(r,h),e.name=r},function(t,e){e.compare=function(t,e,i){function n(t){return"string"==typeof t?t.split("."):"number"==typeof t?[t]:t}t=n(t),e=n(e);var o=Math.max(t.length,e.length);isFinite(i)&&(o=Math.min(o,i));for(var a=0;a<o;a++){var s=parseInt(t[a]||0,10),r=parseInt(e[a]||0,10);if(s<r)return-1;if(s>r)return 1}return 0}},function(t,e,i){var n=i(21),o=i(30),a=i(74),s=i(36),r=i(41),l=i(64),c=i(77),h=i(47),d=i(13).noop,u=i(10).isDefined,p=i(93),f=i(105),_=h.sign,m=Math.abs,g=0,v=1,b=2,y=10,C=0,x=180,w=function(t){return t&&"dxmousewheel"===t.type},S=function(){var t=s.styleProp("pointer-events"),e=r.msie&&parseInt(r.version,10)<11;return t&&!e},I=function(){var t="dx-gesture-cover",e="generic"===a.real().platform;if(!S()||!e)return d;var i=n("<div>").addClass(t).css("pointerEvents","none");return o.subscribeGlobal(i,"dxmousewheel",function(t){t.preventDefault()}),c(function(){i.appendTo("body")}),function(t,e){i.css("pointerEvents",t?"all":"none"),t&&i.css("cursor",e)}}(),T=f.inherit({gesture:!0,configure:function(t){this.getElement().css("msTouchAction",t.immediate?"pinch-zoom":""),this.callBase(t)},allowInterruptionByMouseWheel:function(){return this._stage!==b},getDirection:function(){return this.direction},_cancel:function(){this.callBase.apply(this,arguments),this._toggleGestureCover(!1),this._stage=g},start:function(t){return p.needSkipEvent(t)?void this._cancel(t):(this._startEvent=p.createEvent(t),this._startEventData=p.eventData(t),this._stage=v,this._init(t),void this._setupImmediateTimer())},_setupImmediateTimer:function(){clearTimeout(this._immediateTimer),this._immediateAccepted=!1,this.immediate&&(this._immediateTimer=setTimeout(function(){this._immediateAccepted=!0}.bind(this),x))},move:function(t){if(this._stage===v&&this._directionConfirmed(t)){if(this._stage=b,this._resetActiveElement(),this._toggleGestureCover(!0),this._clearSelection(t),this._adjustStartEvent(t),this._start(this._startEvent),this._stage===g)return;this._requestAccept(t),this._move(t),this._forgetAccept()}else this._stage===b&&(this._clearSelection(t),this._move(t))},_directionConfirmed:function(t){var e=this._getTouchBoundary(t),i=p.eventDelta(this._startEventData,p.eventData(t)),n=m(i.x),o=m(i.y),a=this._validateMove(e,n,o),s=this._validateMove(e,o,n),r=this.getDirection(t),l="both"===r&&(a||s),c="horizontal"===r&&a,h="vertical"===r&&s;return l||c||h||this._immediateAccepted},_validateMove:function(t,e,i){return e&&e>=t&&(!this.immediate||e>=i)},_getTouchBoundary:function(t){return this.immediate||w(t)?C:y},_adjustStartEvent:function(t){var e=this._getTouchBoundary(t),i=p.eventDelta(this._startEventData,p.eventData(t));this._startEvent.pageX+=_(i.x)*e,this._startEvent.pageY+=_(i.y)*e},_resetActiveElement:function(){"ios"===a.real().platform&&this.getElement().find(":focus").length&&l.resetActiveElement()},_toggleGestureCover:function(t){var e=this._stage===b;e&&I(t,this.getElement().css("cursor"))},_clearSelection:function(t){w(t)||p.isTouchEvent(t)||l.clearSelection()},end:function(t){this._toggleGestureCover(!1),this._stage===b?this._end(t):this._stage===v&&this._stop(t),this._stage=g},dispose:function(){clearTimeout(this._immediateTimer),this.callBase.apply(this,arguments),this._toggleGestureCover(!1)},_init:d,_start:d,_move:d,_stop:d,_end:d});T.initialTouchBoundary=y,T.touchBoundary=function(t){return u(t)?void(y=t):y},t.exports=T},function(t,e,i){e.locale=i(53).locale,e.loadMessages=i(111).load,e.message=i(111),e.number=i(45),e.date=i(48),e.currency=i(55)},function(t,e,i){var n=i(21),o=i(28),a=i(9).extend,s=i(17).each,r=i(12).format,l=i(37).humanize,c=i(53);i(53);var h="-",d=a(!0,{},i(112)),u=i(113),p=function(t){var e=u[t];return e?"root"!==e&&e:t.substr(0,t.lastIndexOf(h))},f=function(t,e){return t[e]||{}},_=function(t,e,i){for(var n,o=f(t,e)[i];!o&&!n;)e=p(e),e?o=f(t,e)[i]:n=!0;return o},m={},g=o({_dictionary:d,load:function(t){a(!0,this._dictionary,t)},_localizablePrefix:"@",setup:function(t){this._localizablePrefix=t},localizeString:function(t){var e=this,i=new RegExp("(^|[^a-zA-Z_0-9"+e._localizablePrefix+"-]+)("+e._localizablePrefix+"{1,2})([a-zA-Z_0-9-]+)","g"),n=e._localizablePrefix+e._localizablePrefix;return t.replace(i,function(t,i,o,a){var s,r=e._localizablePrefix+a;return o!==n&&(s=e.format(a)),s||(m[a]=l(a)),i+(s||r)})},_messageLoaded:function(t,e){return void 0!==_(this._dictionary,e||c.locale(),t)},localizeNode:function(t){var e=this;n(t).each(function(t,i){i.nodeType&&(3===i.nodeType?i.nodeValue=e.localizeString(i.nodeValue):n(i).is("iframe")||(s(i.attributes||[],function(t,i){if("string"==typeof i.value){var n=e.localizeString(i.value);i.value!==n&&(i.value=n)}}),n(i).contents().each(function(t,i){e.localizeNode(i)})))})},getMessagesByLocales:function(){return this._dictionary},getDictionary:function(t){return t?m:a({},m,this.getMessagesByLocales()[c.locale()])},getFormatter:function(t){return this._getFormatterBase(t)||this._getFormatterBase(t,"en")},_getFormatterBase:function(t,e){var i=_(this._dictionary,e||c.locale(),t);if(i)return function(){var t=1===arguments.length&&Array.isArray(arguments[0])?arguments[0].slice(0):Array.prototype.slice.call(arguments,0);return t.unshift(i),r.apply(this,t)}},format:function(t){var e=this.getFormatter(t);return e&&e()||""}});t.exports=g},function(t,e){t.exports={en:{Yes:"Yes",No:"No",Cancel:"Cancel",Clear:"Clear",Done:"Done",Loading:"Loading...",Select:"Select...",Search:"Search",Back:"Back",OK:"OK","dxCollectionWidget-noDataText":"No data to display","validation-required":"Required","validation-required-formatted":"{0} is required","validation-numeric":"Value must be a number","validation-numeric-formatted":"{0} must be a number","validation-range":"Value is out of range","validation-range-formatted":"{0} is out of range","validation-stringLength":"The length of the value is not correct","validation-stringLength-formatted":"The length of {0} is not correct","validation-custom":"Value is invalid","validation-custom-formatted":"{0} is invalid","validation-compare":"Values do not match","validation-compare-formatted":"{0} does not match","validation-pattern":"Value does not match pattern","validation-pattern-formatted":"{0} does not match pattern","validation-email":"Email is invalid","validation-email-formatted":"{0} is invalid","validation-mask":"Value is invalid","dxLookup-searchPlaceholder":"Minimum character number: {0}","dxList-pullingDownText":"Pull down to refresh...","dxList-pulledDownText":"Release to refresh...","dxList-refreshingText":"Refreshing...","dxList-pageLoadingText":"Loading...","dxList-nextButtonText":"More","dxList-selectAll":"Select All","dxListEditDecorator-delete":"Delete","dxListEditDecorator-more":"More","dxScrollView-pullingDownText":"Pull down to refresh...","dxScrollView-pulledDownText":"Release to refresh...","dxScrollView-refreshingText":"Refreshing...","dxScrollView-reachBottomText":"Loading...","dxDateBox-simulatedDataPickerTitleTime":"Select time","dxDateBox-simulatedDataPickerTitleDate":"Select date","dxDateBox-simulatedDataPickerTitleDateTime":"Select date and time","dxDateBox-validation-datetime":"Value must be a date or time","dxFileUploader-selectFile":"Select file","dxFileUploader-dropFile":"or Drop file here","dxFileUploader-bytes":"bytes","dxFileUploader-kb":"kb","dxFileUploader-Mb":"Mb","dxFileUploader-Gb":"Gb","dxFileUploader-upload":"Upload","dxFileUploader-uploaded":"Uploaded","dxFileUploader-readyToUpload":"Ready to upload","dxFileUploader-uploadFailedMessage":"Upload failed","dxRangeSlider-ariaFrom":"From","dxRangeSlider-ariaTill":"Till","dxSwitch-onText":"ON","dxSwitch-offText":"OFF","dxForm-optionalMark":"optional","dxForm-requiredMessage":"{0} is required","dxNumberBox-invalidValueMessage":"Value must be a number","dxDataGrid-columnChooserTitle":"Column Chooser","dxDataGrid-columnChooserEmptyText":"Drag a column here to hide it","dxDataGrid-groupContinuesMessage":"Continues on the next page","dxDataGrid-groupContinuedMessage":"Continued from the previous page","dxDataGrid-groupHeaderText":"Group by This Column","dxDataGrid-ungroupHeaderText":"Ungroup","dxDataGrid-ungroupAllText":"Ungroup All","dxDataGrid-editingEditRow":"Edit","dxDataGrid-editingSaveRowChanges":"Save","dxDataGrid-editingCancelRowChanges":"Cancel","dxDataGrid-editingDeleteRow":"Delete","dxDataGrid-editingUndeleteRow":"Undelete","dxDataGrid-editingConfirmDeleteMessage":"Are you sure you want to delete this record?","dxDataGrid-validationCancelChanges":"Cancel changes","dxDataGrid-groupPanelEmptyText":"Drag a column header here to group by that column","dxDataGrid-noDataText":"No data","dxDataGrid-searchPanelPlaceholder":"Search...","dxDataGrid-filterRowShowAllText":"(All)","dxDataGrid-filterRowResetOperationText":"Reset","dxDataGrid-filterRowOperationEquals":"Equals","dxDataGrid-filterRowOperationNotEquals":"Does not equal","dxDataGrid-filterRowOperationLess":"Less than","dxDataGrid-filterRowOperationLessOrEquals":"Less than or equal to","dxDataGrid-filterRowOperationGreater":"Greater than","dxDataGrid-filterRowOperationGreaterOrEquals":"Greater than or equal to","dxDataGrid-filterRowOperationStartsWith":"Starts with","dxDataGrid-filterRowOperationContains":"Contains","dxDataGrid-filterRowOperationNotContains":"Does not contain","dxDataGrid-filterRowOperationEndsWith":"Ends with","dxDataGrid-filterRowOperationBetween":"Between","dxDataGrid-filterRowOperationBetweenStartText":"Start","dxDataGrid-filterRowOperationBetweenEndText":"End","dxDataGrid-applyFilterText":"Apply filter","dxDataGrid-trueText":"true","dxDataGrid-falseText":"false","dxDataGrid-sortingAscendingText":"Sort Ascending","dxDataGrid-sortingDescendingText":"Sort Descending","dxDataGrid-sortingClearText":"Clear Sorting","dxDataGrid-editingSaveAllChanges":"Save changes","dxDataGrid-editingCancelAllChanges":"Discard changes","dxDataGrid-editingAddRow":"Add a row","dxDataGrid-summaryMin":"Min: {0}","dxDataGrid-summaryMinOtherColumn":"Min of {1} is {0}","dxDataGrid-summaryMax":"Max: {0}","dxDataGrid-summaryMaxOtherColumn":"Max of {1} is {0}","dxDataGrid-summaryAvg":"Avg: {0}","dxDataGrid-summaryAvgOtherColumn":"Avg of {1} is {0}","dxDataGrid-summarySum":"Sum: {0}","dxDataGrid-summarySumOtherColumn":"Sum of {1} is {0}","dxDataGrid-summaryCount":"Count: {0}","dxDataGrid-columnFixingFix":"Fix","dxDataGrid-columnFixingUnfix":"Unfix","dxDataGrid-columnFixingLeftPosition":"To the left","dxDataGrid-columnFixingRightPosition":"To the right","dxDataGrid-exportTo":"Export","dxDataGrid-exportToExcel":"Export to Excel file","dxDataGrid-excelFormat":"Excel file","dxDataGrid-selectedRows":"Selected rows","dxDataGrid-exportSelectedRows":"Export selected rows","dxDataGrid-exportAll":"Export all data","dxDataGrid-headerFilterEmptyValue":"(Blanks)","dxDataGrid-headerFilterOK":"OK","dxDataGrid-headerFilterCancel":"Cancel","dxDataGrid-ariaColumn":"Column","dxDataGrid-ariaValue":"Value","dxDataGrid-ariaFilterCell":"Filter cell","dxDataGrid-ariaCollapse":"Collapse","dxDataGrid-ariaExpand":"Expand","dxDataGrid-ariaDataGrid":"Data grid","dxDataGrid-ariaSearchInGrid":"Search in data grid","dxDataGrid-ariaSelectAll":"Select all","dxDataGrid-ariaSelectRow":"Select row","dxTreeList-ariaTreeList":"Tree list","dxTreeList-editingAddRowToNode":"Add","dxPager-infoText":"Page {0} of {1} ({2} items)","dxPager-pagesCountText":"of","dxPivotGrid-grandTotal":"Grand Total","dxPivotGrid-total":"{0} Total","dxPivotGrid-fieldChooserTitle":"Field Chooser","dxPivotGrid-showFieldChooser":"Show Field Chooser","dxPivotGrid-expandAll":"Expand All","dxPivotGrid-collapseAll":"Collapse All","dxPivotGrid-sortColumnBySummary":'Sort "{0}" by This Column',"dxPivotGrid-sortRowBySummary":'Sort "{0}" by This Row',"dxPivotGrid-removeAllSorting":"Remove All Sorting","dxPivotGrid-dataNotAvailable":"N/A","dxPivotGrid-rowFields":"Row Fields","dxPivotGrid-columnFields":"Column Fields","dxPivotGrid-dataFields":"Data Fields","dxPivotGrid-filterFields":"Filter Fields","dxPivotGrid-allFields":"All Fields","dxPivotGrid-columnFieldArea":"Drop Column Fields Here","dxPivotGrid-dataFieldArea":"Drop Data Fields Here","dxPivotGrid-rowFieldArea":"Drop Row Fields Here","dxPivotGrid-filterFieldArea":"Drop Filter Fields Here","dxScheduler-editorLabelTitle":"Subject","dxScheduler-editorLabelStartDate":"Start Date","dxScheduler-editorLabelEndDate":"End Date","dxScheduler-editorLabelDescription":"Description","dxScheduler-editorLabelRecurrence":"Repeat","dxScheduler-openAppointment":"Open appointment","dxScheduler-recurrenceNever":"Never","dxScheduler-recurrenceDaily":"Daily","dxScheduler-recurrenceWeekly":"Weekly","dxScheduler-recurrenceMonthly":"Monthly","dxScheduler-recurrenceYearly":"Yearly","dxScheduler-recurrenceEvery":"Every","dxScheduler-recurrenceEnd":"End repeat","dxScheduler-recurrenceAfter":"After","dxScheduler-recurrenceOn":"On","dxScheduler-recurrenceRepeatDaily":"day(s)","dxScheduler-recurrenceRepeatWeekly":"week(s)","dxScheduler-recurrenceRepeatMonthly":"month(s)","dxScheduler-recurrenceRepeatYearly":"year(s)","dxScheduler-switcherDay":"Day","dxScheduler-switcherWeek":"Week","dxScheduler-switcherWorkWeek":"Work Week","dxScheduler-switcherMonth":"Month","dxScheduler-switcherAgenda":"Agenda","dxScheduler-switcherTimelineDay":"Timeline Day","dxScheduler-switcherTimelineWeek":"Timeline Week","dxScheduler-switcherTimelineWorkWeek":"Timeline Work Week","dxScheduler-switcherTimelineMonth":"Timeline Month","dxScheduler-recurrenceRepeatOnDate":"on date","dxScheduler-recurrenceRepeatCount":"occurrence(s)","dxScheduler-allDay":"All day","dxScheduler-confirmRecurrenceEditMessage":"Do you want to edit only this appointment or the whole series?","dxScheduler-confirmRecurrenceDeleteMessage":"Do you want to delete only this appointment or the whole series?","dxScheduler-confirmRecurrenceEditSeries":"Edit series","dxScheduler-confirmRecurrenceDeleteSeries":"Delete series","dxScheduler-confirmRecurrenceEditOccurrence":"Edit appointment","dxScheduler-confirmRecurrenceDeleteOccurrence":"Delete appointment","dxScheduler-noTimezoneTitle":"No timezone","dxScheduler-moreAppointments":"{0} more","dxCalendar-todayButtonText":"Today","dxCalendar-ariaWidgetName":"Calendar","dxColorView-ariaRed":"Red","dxColorView-ariaGreen":"Green","dxColorView-ariaBlue":"Blue","dxColorView-ariaAlpha":"Transparency","dxColorView-ariaHex":"Color code","dxTagBox-selected":"{0} selected","dxTagBox-allSelected":"All selected ({0})","dxTagBox-moreSelected":"{0} more","vizExport-printingButtonText":"Print","vizExport-titleMenuText":"Exporting/Printing","vizExport-exportButtonText":"{0} file","dxFilterBuilder-and":"And","dxFilterBuilder-or":"Or","dxFilterBuilder-notAnd":"Not And","dxFilterBuilder-notOr":"Not Or","dxFilterBuilder-addCondition":"Add Condition","dxFilterBuilder-addGroup":"Add Group","dxFilterBuilder-enterValueText":"<enter a value>","dxFilterBuilder-filterOperationEquals":"Equals","dxFilterBuilder-filterOperationNotEquals":"Does not equal","dxFilterBuilder-filterOperationLess":"Less than","dxFilterBuilder-filterOperationLessOrEquals":"Less than or equal to","dxFilterBuilder-filterOperationGreater":"Greater than","dxFilterBuilder-filterOperationGreaterOrEquals":"Greater than or equal to","dxFilterBuilder-filterOperationStartsWith":"Starts with","dxFilterBuilder-filterOperationContains":"Contains","dxFilterBuilder-filterOperationNotContains":"Does not contain","dxFilterBuilder-filterOperationEndsWith":"Ends with","dxFilterBuilder-filterOperationIsBlank":"Is blank","dxFilterBuilder-filterOperationIsNotBlank":"Is not blank"}}},function(t,e){t.exports={"en-150":"en-001","en-AG":"en-001","en-AI":"en-001","en-AU":"en-001","en-BB":"en-001","en-BM":"en-001","en-BS":"en-001","en-BW":"en-001","en-BZ":"en-001","en-CC":"en-001","en-CK":"en-001","en-CM":"en-001","en-CX":"en-001","en-CY":"en-001","en-DG":"en-001","en-DM":"en-001","en-ER":"en-001","en-FJ":"en-001","en-FK":"en-001","en-FM":"en-001","en-GB":"en-001","en-GD":"en-001","en-GG":"en-001","en-GH":"en-001","en-GI":"en-001","en-GM":"en-001","en-GY":"en-001","en-HK":"en-001","en-IE":"en-001","en-IL":"en-001","en-IM":"en-001","en-IN":"en-001","en-IO":"en-001","en-JE":"en-001","en-JM":"en-001","en-KE":"en-001","en-KI":"en-001","en-KN":"en-001","en-KY":"en-001","en-LC":"en-001","en-LR":"en-001","en-LS":"en-001","en-MG":"en-001","en-MO":"en-001","en-MS":"en-001","en-MT":"en-001","en-MU":"en-001","en-MW":"en-001","en-MY":"en-001","en-NA":"en-001","en-NF":"en-001","en-NG":"en-001","en-NR":"en-001","en-NU":"en-001","en-NZ":"en-001","en-PG":"en-001","en-PK":"en-001","en-PN":"en-001","en-PW":"en-001","en-RW":"en-001","en-SB":"en-001","en-SC":"en-001","en-SD":"en-001","en-SG":"en-001","en-SH":"en-001","en-SL":"en-001","en-SS":"en-001","en-SX":"en-001","en-SZ":"en-001","en-TC":"en-001","en-TK":"en-001","en-TO":"en-001","en-TT":"en-001","en-TV":"en-001","en-TZ":"en-001","en-UG":"en-001","en-VC":"en-001","en-VG":"en-001","en-VU":"en-001","en-WS":"en-001","en-ZA":"en-001","en-ZM":"en-001","en-ZW":"en-001","en-AT":"en-150","en-BE":"en-150","en-CH":"en-150","en-DE":"en-150","en-DK":"en-150","en-FI":"en-150","en-NL":"en-150","en-SE":"en-150","en-SI":"en-150","es-AR":"es-419","es-BO":"es-419","es-BR":"es-419","es-BZ":"es-419","es-CL":"es-419","es-CO":"es-419","es-CR":"es-419","es-CU":"es-419","es-DO":"es-419","es-EC":"es-419","es-GT":"es-419","es-HN":"es-419","es-MX":"es-419","es-NI":"es-419","es-PA":"es-419","es-PE":"es-419","es-PR":"es-419","es-PY":"es-419","es-SV":"es-419","es-US":"es-419","es-UY":"es-419","es-VE":"es-419",nb:"no",nn:"no","pt-AO":"pt-PT","pt-CH":"pt-PT","pt-CV":"pt-PT","pt-FR":"pt-PT","pt-GQ":"pt-PT","pt-GW":"pt-PT","pt-LU":"pt-PT","pt-MO":"pt-PT","pt-MZ":"pt-PT","pt-ST":"pt-PT","pt-TL":"pt-PT","az-Arab":"und","az-Cyrl":"und","bal-Latn":"und","blt-Latn":"und","bm-Nkoo":"und","bs-Cyrl":"und","byn-Latn":"und","cu-Glag":"und","dje-Arab":"und","dyo-Arab":"und","en-Dsrt":"und","en-Shaw":"und","ff-Adlm":"und","ff-Arab":"und","ha-Arab":"und","hi-Latn":"und","iu-Latn":"und","kk-Arab":"und","ks-Deva":"und","ku-Arab":"und","ky-Arab":"und","ky-Latn":"und","ml-Arab":"und","mn-Mong":"und","mni-Mtei":"und","ms-Arab":"und","pa-Arab":"und","sat-Deva":"und","sd-Deva":"und","sd-Khoj":"und","sd-Sind":"und","shi-Latn":"und","so-Arab":"und","sr-Latn":"und","sw-Arab":"und","tg-Arab":"und","ug-Cyrl":"und","uz-Arab":"und","uz-Cyrl":"und","vai-Latn":"und","wo-Arab":"und","yo-Arab":"und","yue-Hans":"und","zh-Hant":"und","zh-Hant-MO":"zh-Hant-HK"}},function(t,e,i){i(6),i(115),t.exports=DevExpress.framework={},DevExpress.framework.dxCommand=i(143),DevExpress.framework.Router=i(159),DevExpress.framework.StateManager=i(160),DevExpress.framework.ViewCache=i(161),DevExpress.framework.NullViewCache=i(161).NullViewCache,DevExpress.framework.ConditionalViewCacheDecorator=i(161).ConditionalViewCacheDecorator,DevExpress.framework.CapacityViewCacheDecorator=i(161).CapacityViewCacheDecorator,DevExpress.framework.HistoryDependentViewCacheDecorator=i(161).HistoryDependentViewCacheDecorator,DevExpress.framework.dxCommandContainer=i(162),DevExpress.framework.dxView=i(164).dxView,DevExpress.framework.dxLayout=i(164).dxLayout,DevExpress.framework.dxViewPlaceholder=i(164).dxViewPlaceholder,DevExpress.framework.dxContentPlaceholder=i(164).dxContentPlaceholder,DevExpress.framework.dxTransition=i(164).dxTransition,DevExpress.framework.dxContent=i(164).dxContent,DevExpress.framework.html={},DevExpress.framework.html.HtmlApplication=i(165),DevExpress.framework.Route=i(159).Route,DevExpress.framework.MemoryKeyValueStorage=i(160).MemoryKeyValueStorage,DevExpress.framework.NavigationDevices=i(170),DevExpress.framework.NavigationManager=i(169),DevExpress.framework.createActionExecutors=i(168).createActionExecutors,DevExpress.framework.Application=i(166).Application;var n=i(171);DevExpress.framework.DefaultBrowserAdapter=n.DefaultBrowserAdapter,DevExpress.framework.OldBrowserAdapter=n.OldBrowserAdapter,DevExpress.framework.BuggyAndroidBrowserAdapter=n.BuggyAndroidBrowserAdapter,DevExpress.framework.HistorylessBrowserAdapter=n.HistorylessBrowserAdapter,DevExpress.framework.BuggyCordovaWP81BrowserAdapter=n.BuggyCordovaWP81BrowserAdapter,DevExpress.framework.CommandMapping=i(172),DevExpress.framework.HistoryBasedNavigationDevice=i(170).HistoryBasedNavigationDevice,DevExpress.framework.StackBasedNavigationDevice=i(170).StackBasedNavigationDevice,DevExpress.framework.HistoryBasedNavigationManager=i(169).HistoryBasedNavigationManager,DevExpress.framework.StackBasedNavigationManager=i(169).StackBasedNavigationManager,DevExpress.framework.NavigationStack=i(169).NavigationStack,DevExpress.framework.utils=i(167).utils,DevExpress.framework.templateProvider=i(167).templateProvider,DevExpress.framework.html.CommandManager=i(175),DevExpress.framework.html.HtmlApplication=i(165),DevExpress.framework.html.layoutSets=i(174).layoutSets,DevExpress.framework.html.animationSets=i(174).animationSets,DevExpress.framework.html.DefaultLayoutController=i(178).DefaultLayoutController,DevExpress.framework.html.layoutSets=i(178).layoutSets,DevExpress.framework.html.MarkupComponent=i(163).MarkupComponent,DevExpress.framework.html.ViewEngine=i(177).ViewEngine,DevExpress.framework.html.ViewEngineComponents=i(164);var o=i(176);DevExpress.framework.html.commandToDXWidgetAdapters={dxToolbar:o.dxToolbar,dxList:o.dxList,dxNavBar:o.dxNavBar,dxPivot:o.dxPivot,dxSlideOut:o.dxSlideOut}},function(t,e,i){var n=i(116);if(n){var o=i(7),a=i(108).compare;if(a(n.version,[2,3])<0)throw o.Error("E0013");i(117),i(135),i(136),i(138),i(140),i(141),i(142)}},function(t,e){t.exports=window.ko},function(t,e,i){var n=i(21),o=i(116),a=i(16),s=i(7),r=i(37),l=i(10).isPlainObject,c=i(79),h=i(118),d=i(127),u=i(128),p=i(134),f=i(14),_="dxKoLocks",m="dxKoCreation",g=[],v=function(t,e){e.subclassOf(u)&&g.push(t),o.bindingHandlers[t]={init:function(t,i){var c,u,g=n(t),v=a(),b={},y=f().knockout,C=y&&y.isBindingPropertyPredicateName,x={onInitializing:function(){b=this._getOptionsByReference(),o.computed(function(){var t=o.unwrap(i());c&&c.beginUpdate(),u=C&&t&&t[C],D(t),c&&c.endUpdate()},null,{disposeWhenNodeIsRemoved:t}),c=this},modelByElement:function(t){if(t.length)return o.dataFor(t.get(0))},nestedComponentOptions:function(t){return{modelByElement:t.option("modelByElement"),nestedComponentOptions:t.option("nestedComponentOptions")}},_optionChangedCallbacks:v,integrationOptions:{watchMethod:function(t,e,i){i=i||{};var n=i.skipImmediate,a=o.computed(function(){var i=o.unwrap(t());n||e(i),n=!1});return function(){a.dispose()}},templates:{"dx-polymorph-widget":{render:function(t){var e=o.utils.unwrapObservable(t.model.widget);if(e){if("button"===e||"tabs"===e||"dropDownMenu"===e){var i=e;e=r.camelize("dx-"+e),s.log("W0001","dxToolbar - 'widget' item field",i,"16.1","Use: '"+e+"' instead")}var a=n("<div>").attr("data-bind",e+": options").get(0);n(t.container).append(a),o.applyBindings(t.model,a)}}}},createTemplate:function(t){return new d(t)}}},w={},S=function(t,e,i){var n=g.data(_),a=i?o.unwrap(e):e;if(o.isWriteableObservable(e)&&(w[t]=e),c){if(n.locked(t))return;n.obtain(t);try{o.ignoreDependencies?o.ignoreDependencies(c.option,c,[t,a]):c.option(t,a)}finally{n.release(t)}}else x[t]=a},I=function(t){var e=t.fullName,i=t.value;if(e in w){var n=this._$element,o=n.data(_);if(!o.locked(e)){o.obtain(e);try{w[e](i)}finally{o.release(e)}}}},T=function(){v.add(I),g.data(m,!0).data(_,new p),new e(g,x),x=null},E=function(e,i,n){if(n!==C)if(!u||u(n,i,e)){var a;o.computed(function(){var t=e[i];S(n,t,!0),a=o.unwrap(t)},null,{disposeWhenNodeIsRemoved:t}),l(a)&&(b[n]||D(a,n))}else S(n,e[i],!1)},D=function(t,e){for(var i in t)t.hasOwnProperty(i)&&E(t,i,e?[e,i].join("."):i)};return T(),{controlsDescendantBindings:e.subclassOf(h)}}},"dxValidator"===t&&(o.bindingHandlers.dxValidator.after=g)};c.add(function(t,e){v(t,e)})},function(t,e,i){var n=i(21),o=i(30),a=i(40),s=i(70),r=i(9).extend,l=i(25).inArray,c=i(17).each,h=i(13),d=i(10),u=i(64),p=i(74),f=i(63),_=i(119),m=i(121),g=i(122),v=i(123),b=i(124),y=i(94),C=i(93),x=i(125),w=i(126),S=i(97),I=i(37),T="UIFeedback",E="dx-widget",D="dx-state-active",k="dx-state-disabled",B="dx-state-invisible",A="dx-state-hover",M="dx-state-focused",O=30,P=400,$="Focus",H="template",V=3,R="[data-options*='dxTemplate']",F="dx-template-wrapper",L=new m(function(t){var e=t.model.widget;if(e){var i=n("<div>"),o=t.model.options||{};if("button"===e||"tabs"===e||"dropDownMenu"===e){var s=e;e=I.camelize("dx-"+e),a.log("W0001","dxToolbar - 'widget' item field",s,"16.1","Use: '"+e+"' instead")}return i[e](o),i}return n()}),N=void 0!==document.onbeforeactivate,W=f.inherit({_supportedKeys:function(){return{}},_getDefaultOptions:function(){return r(this.callBase(),{disabled:!1,visible:!0,hint:void 0,activeStateEnabled:!1,onContentReady:null,hoverStateEnabled:!1,focusStateEnabled:!1,tabIndex:0,accessKey:null,onFocusIn:null,onFocusOut:null,integrationOptions:{watchMethod:function(t,e,i){return i=i||{},i.skipImmediate||e(t()),h.noop},templates:{"dx-polymorph-widget":L},createTemplate:function(t){return new _(t)}},_keyboardProcessor:void 0})},_feedbackShowTimeout:O,_feedbackHideTimeout:P,_init:function(){this.callBase(),this._tempTemplates=[],this._defaultTemplates={},this._initTemplates(),this._initContentReadyAction()},_initTemplates:function(){this._extractTemplates(),this._extractAnonymousTemplate()},_extractTemplates:function(){var t=this.option("integrationOptions.templates"),e=this.$element().contents().filter(R),i={};e.each(function(t,e){var o=u.getElementOptions(e).dxTemplate;if(o){if(!o.name)throw a.Error("E0023");n(e).addClass(F).detach(),i[o.name]=i[o.name]||[],i[o.name].push(e)}}),c(i,function(e,i){var n=this._findTemplateByDevice(i);n&&(t[e]=this._createTemplate(n))}.bind(this))},_findTemplateByDevice:function(t){var e=h.findBestMatches(p.current(),t,function(t){return u.getElementOptions(t).dxTemplate})[0];return c(t,function(t,i){i!==e&&n(i).remove()}),e},_extractAnonymousTemplate:function(){var t=this.option("integrationOptions.templates"),e=this._getAnonymousTemplateName(),i=this.$element().contents().detach(),o=i.filter(function(t,e){var i=e.nodeType===V,o=n(e).text().trim().length<1;return!(i&&o)}),a=o.length<1;t[e]||a||(t[e]=this._createTemplate(i))},_getAriaTarget:function(){return this._focusTarget()},_getAnonymousTemplateName:function(){return H},_getTemplateByOption:function(t){return this._getTemplate(this.option(t));
|
|
16
|
+
},_getTemplate:function(t){return d.isFunction(t)?new m(function(e){var i=t.apply(this,this._getNormalizedTemplateArgs(e));if(!d.isDefined(i))return new g;var o=!1,a=this._acquireTemplate(i,function(t){return t.nodeType||d.isRenderer(t)&&!n(t).is("script")?new m(function(){return t}):(o=!0,this._createTemplate(t))}.bind(this)),s=a.render(e);return o&&a.dispose&&a.dispose(),s}.bind(this)):this._acquireTemplate(t,this._createTemplateIfNeeded.bind(this))},_acquireTemplate:function(t,e){if(null==t)return new g;if(t instanceof v)return this._defaultTemplates[t.name];if(d.isFunction(t.render)&&!d.isRenderer(t))return t;if(t.nodeType||d.isRenderer(t))return t=n(t),e(t);if("string"==typeof t){var i=this.option("integrationOptions.templates")[t];if(i)return i;var o=this._defaultTemplates[t];return o?o:e(t)}return this._acquireTemplate(t.toString(),e)},_createTemplateIfNeeded:function(t){var e=function(t){return d.isRenderer(t)&&t[0]||t},i=this._tempTemplates.filter(function(i){return t=e(t),i.source===t})[0];if(i)return i.template;var n=this._createTemplate(t);return this._tempTemplates.push({template:n,source:e(t)}),n},_createTemplate:function(t){return t="string"==typeof t?u.normalizeTemplateElement(t):t,this.option("integrationOptions.createTemplate")(t)},_getNormalizedTemplateArgs:function(t){var e=[];return"model"in t&&e.push(t.model),"index"in t&&e.push(t.index),e.push(t.container),e},_cleanTemplates:function(){this._tempTemplates.forEach(function(t){t.template.dispose&&t.template.dispose()}),this._tempTemplates=[]},_initContentReadyAction:function(){this._contentReadyAction=this._createActionByOption("onContentReady",{excludeValidators:["designMode","disabled","readOnly"]})},_render:function(){this.$element().addClass(E),this.callBase(),this._toggleDisabledState(this.option("disabled")),this._toggleVisibility(this.option("visible")),this._renderHint(),this._renderContent(),this._renderFocusState(),this._attachFeedbackEvents(),this._attachHoverEvents()},_renderHint:function(){u.toggleAttr(this.$element(),"title",this.option("hint"))},_renderContent:function(){var t=this;h.deferRender(function(){t._renderContentImpl()}),t._fireContentReadyAction()},_renderContentImpl:h.noop,_fireContentReadyAction:function(){this._contentReadyAction()},_dispose:function(){this._cleanTemplates(),this._contentReadyAction=null,this.callBase()},_clean:function(){this._cleanFocusState(),this.callBase(),this.$element().empty()},_toggleVisibility:function(t){this.$element().toggleClass(B,!t),this.setAria("hidden",!t||void 0)},_renderFocusState:function(){this._attachKeyboardEvents(),this.option("focusStateEnabled")&&!this.option("disabled")&&(this._renderFocusTarget(),this._attachFocusEvents(),this._renderAccessKey())},_renderAccessKey:function(){var t=this._focusTarget();t.attr("accesskey",this.option("accessKey"));var e=C.addNamespace(S.name,T);o.off(t,e),this.option("accessKey")&&o.on(t,e,function(t){C.isFakeClickEvent(t)&&(t.stopImmediatePropagation(),this.focus())}.bind(this))},_eventBindingTarget:function(){return this.$element()},_focusTarget:function(){return this._getActiveElement()},_getActiveElement:function(){var t=this._eventBindingTarget();return this._activeStateUnit&&(t=t.find(this._activeStateUnit).not("."+k)),t},_renderFocusTarget:function(){this._focusTarget().attr("tabIndex",this.option("tabIndex"))},_keyboardEventBindingTarget:function(){return this._eventBindingTarget()},_detachFocusEvents:function(){var t=this._focusTarget(),e=this.NAME+$,i=C.addNamespace("focusin",e);i=i+" "+C.addNamespace("focusout",e),N&&(i=i+" "+C.addNamespace("beforeactivate",e)),o.off(t,i)},_attachFocusEvents:function(){var t=this.NAME+$,e=C.addNamespace("focusin",t),i=C.addNamespace("focusout",t),a=this._focusTarget();if(o.on(a,e,this._focusInHandler.bind(this)),o.on(a,i,this._focusOutHandler.bind(this)),N){var s=C.addNamespace("beforeactivate",t);o.on(this._focusTarget(),s,function(t){n(t.target).is(y.focusable)||t.preventDefault()})}},_refreshFocusEvent:function(){this._detachFocusEvents(),this._attachFocusEvents()},_focusInHandler:function(t){var e=this;e._createActionByOption("onFocusIn",{beforeExecute:function(){e._updateFocusState(t,!0)},excludeValidators:["readOnly"]})({event:t})},_focusOutHandler:function(t){var e=this;e._createActionByOption("onFocusOut",{beforeExecute:function(){e._updateFocusState(t,!1)},excludeValidators:["readOnly","disabled"]})({event:t})},_updateFocusState:function(t,e){var i=t.target;l(i,this._focusTarget())!==-1&&this._toggleFocusClass(e,n(i))},_toggleFocusClass:function(t,e){var i=e&&e.length?e:this._focusTarget();i.toggleClass(M,t)},_hasFocusClass:function(t){var e=n(t||this._focusTarget());return e.hasClass(M)},_attachKeyboardEvents:function(){var t=this.option("_keyboardProcessor");t?this._keyboardProcessor=t.reinitialize(this._keyboardHandler,this):this.option("focusStateEnabled")&&(this._keyboardProcessor=new b({element:this._keyboardEventBindingTarget(),handler:this._keyboardHandler,focusTarget:this._focusTarget(),context:this}))},_keyboardHandler:function(t){var e=t.originalEvent,i=t.key,n=this._supportedKeys(),o=n[i];if(void 0!==o){var a=o.bind(this);return a(e)||!1}return!0},_refreshFocusState:function(){this._cleanFocusState(),this._renderFocusState()},_cleanFocusState:function(){var t=this._focusTarget();this._detachFocusEvents(),this._toggleFocusClass(!1),t.removeAttr("tabIndex"),this._keyboardProcessor&&(this._keyboardProcessor.dispose(),delete this._keyboardProcessor)},_attachHoverEvents:function(){var t=this,e=t._activeStateUnit,i=C.addNamespace(x.start,T),a=C.addNamespace(x.end,T);if(o.off(t._eventBindingTarget(),i,e),o.off(t._eventBindingTarget(),a,e),t.option("hoverStateEnabled")){var r=new s(function(e){t._hoverStartHandler(e.event),t._refreshHoveredElement(n(e.element))},{excludeValidators:["readOnly"]}),l=t._eventBindingTarget();o.on(l,i,e,function(t){r.execute({element:n(t.target),event:t})}),o.on(l,a,e,function(e){t._hoverEndHandler(e),t._forgetHoveredElement()})}else t._toggleHoverClass(!1)},_hoverStartHandler:h.noop,_hoverEndHandler:h.noop,_attachFeedbackEvents:function(){var t,e,i=this,a=i._activeStateUnit,r=C.addNamespace(w.active,T),l=C.addNamespace(w.inactive,T);if(o.off(i._eventBindingTarget(),r,a),o.off(i._eventBindingTarget(),l,a),i.option("activeStateEnabled")){var c=function(t){var e=n(t.element),o=t.value,a=t.event;i._toggleActiveState(e,o,a)};o.on(i._eventBindingTarget(),r,a,{timeout:i._feedbackShowTimeout},function(e){t=t||new s(c),t.execute({element:n(e.currentTarget),value:!0,event:e})}),o.on(i._eventBindingTarget(),l,a,{timeout:i._feedbackHideTimeout},function(t){e=e||new s(c,{excludeValidators:["disabled","readOnly"]}),e.execute({element:n(t.currentTarget),value:!1,event:t})})}},_toggleActiveState:function(t,e){this._toggleHoverClass(!e),t.toggleClass(D,e)},_refreshHoveredElement:function(t){var e=this._activeStateUnit||this._eventBindingTarget();this._forgetHoveredElement(),this._hoveredElement=t.closest(e),this._toggleHoverClass(!0)},_forgetHoveredElement:function(){this._toggleHoverClass(!1),delete this._hoveredElement},_toggleHoverClass:function(t){this._hoveredElement&&this._hoveredElement.toggleClass(A,t&&this.option("hoverStateEnabled"))},_toggleDisabledState:function(t){this.$element().toggleClass(k,Boolean(t)),this._toggleHoverClass(!t),this.setAria("disabled",t||void 0)},_setWidgetOption:function(t,e){if(this[t]){if(d.isPlainObject(e[0]))return void c(e[0],function(e,i){this._setWidgetOption(t,[e,i])}.bind(this));var i=e[0],n=e[1];1===e.length&&(n=this.option(i));var o=this[t+"OptionMap"];this[t].option(o?o(i):i,n)}},_optionChanged:function(t){switch(t.name){case"disabled":this._toggleDisabledState(t.value),this._refreshFocusState();break;case"hint":this._renderHint();break;case"activeStateEnabled":this._attachFeedbackEvents();break;case"hoverStateEnabled":this._attachHoverEvents();break;case"tabIndex":case"_keyboardProcessor":case"focusStateEnabled":this._refreshFocusState();break;case"onFocusIn":case"onFocusOut":break;case"accessKey":this._renderAccessKey();break;case"visible":var e=t.value;this._toggleVisibility(e),this._isVisibilityChangeSupported()&&this._checkVisibilityChanged(t.value?"shown":"hiding");break;case"onContentReady":this._initContentReadyAction();break;default:this.callBase(t)}},_isVisible:function(){return this.callBase()&&this.option("visible")},beginUpdate:function(){this._ready(!1),this.callBase()},endUpdate:function(){this.callBase(),this._initialized&&this._ready(!0)},_ready:function(t){return 0===arguments.length?this._isReady:void(this._isReady=t)},setAria:function(){var t=function(t){var e="role"===t.name||"id"===t.name?t.name:"aria-"+t.name,i=t.value;i=null===i||void 0===i?void 0:i.toString(),u.toggleAttr(t.target,e,i)};if(d.isPlainObject(arguments[0])){var e=arguments[1]||this._getAriaTarget();c(arguments[0],function(i,n){t({name:i,value:n,target:e})})}else t({name:arguments[0],value:arguments[1],target:arguments[2]||this._getAriaTarget()})},isReady:function(){return this._ready()},repaint:function(){this._refresh()},focus:function(){o.trigger(this._focusTarget(),"focus")},registerKeyHandler:function(t,e){var i=this._supportedKeys(),n={};n[t]=e,this._supportedKeys=function(){return r(i,n)}}});t.exports=W},function(t,e,i){var n=i(21),o=i(7),a=i(10),s=i(120),r=i(64),l={},c=function(t,e){l[t]=e},h=function(t){t=n(t);var e=t.length&&t[0].nodeName.toLowerCase();return"script"===e?t.html():(t=n("<div>").append(t),t.html())};c("default",{compile:function(t){return r.normalizeTemplateElement(t)},render:function(t){return t.clone()}}),c("jquery-tmpl",{compile:function(t){return h(t)},render:function(t,e){return jQuery.tmpl(t,e)}}),c("jsrender",{compile:function(t){return(jQuery?jQuery:jsrender).templates(h(t))},render:function(t,e){return t.render(e)}}),c("mustache",{compile:function(t){return h(t)},render:function(t,e){return Mustache.render(t,e)}}),c("hogan",{compile:function(t){return Hogan.compile(h(t))},render:function(t,e){return t.render(e)}}),c("underscore",{compile:function(t){return _.template(h(t))},render:function(t,e){return t(e)}}),c("handlebars",{compile:function(t){return Handlebars.compile(h(t))},render:function(t,e){return t(e)}}),c("doT",{compile:function(t){return doT.template(h(t))},render:function(t,e){return t(e)}});var d,u=function(t){if(a.isString(t)){if(d=l[t],!d)throw o.Error("E0020",t)}else d=t};u("default");var p=s.inherit({ctor:function(t){this._element=t,this._compiledTemplate=d.compile(t)},_renderCore:function(t){return n("<div>").append(d.render(this._compiledTemplate,t.model,t.index)).contents()},source:function(){return n(this._element).clone()}});t.exports=p,t.exports.setTemplateEngine=u},function(t,e,i){var n=i(21),o=i(16),a=i(64),s=i(29),r=s.abstract,l=o(),c=s.inherit({render:function(t){t=t||{};var e=this._renderCore(t);return this._ensureResultInContainer(e,t.container),l.fire(e,t.container),e},_ensureResultInContainer:function(t,e){if(e){var i=n(e),o=a.contains(i.get(0),t.get(0));if(i.append(t),!o){var s=document.body.contains(i.get(0));s&&a.triggerShownEvent(t)}}},_renderCore:r});t.exports=c,t.exports.renderedCallbacks=l},function(t,e,i){var n=i(120),o=i(64),a=n.inherit({ctor:function(t){this._render=t},_renderCore:function(t){return o.normalizeTemplateElement(this._render(t))}});t.exports=a},function(t,e,i){var n=i(21),o=i(120),a=o.inherit({_renderCore:function(){return n()}});t.exports=a},function(t,e,i){var n=i(120);t.exports=n.inherit({ctor:function(t){this.name=t}})},function(t,e,i){var n=i(21),o=i(30),a=i(29),s=i(25).inArray,r=i(17).each,l=i(93),c=a.inherit({_keydown:l.addNamespace("keydown","KeyboardProcessor"),codes:{8:"backspace",9:"tab",13:"enter",27:"escape",33:"pageUp",34:"pageDown",35:"end",36:"home",37:"leftArrow",38:"upArrow",39:"rightArrow",40:"downArrow",46:"del",32:"space",70:"F",65:"A",106:"asterisk",109:"minus",189:"minus"},ctor:function(t){var e=this;t=t||{},t.element&&(this._element=n(t.element)),t.focusTarget&&(this._focusTarget=t.focusTarget),this._handler=t.handler,this._context=t.context,this._childProcessors=[],this._element&&(this._processFunction=function(t){e.process(t)},o.on(this._element,this._keydown,this._processFunction))},dispose:function(){this._element&&o.off(this._element,this._keydown,this._processFunction),this._element=void 0,this._handler=void 0,this._context=void 0,this._childProcessors=void 0},clearChildren:function(){this._childProcessors=[]},push:function(t){return this._childProcessors||this.clearChildren(),this._childProcessors.push(t),t},attachChildProcessor:function(){var t=new c;return this._childProcessors.push(t),t},reinitialize:function(t,e){return this._context=e,this._handler=t,this},process:function(t){if(this._focusTarget&&this._focusTarget!==t.target&&s(t.target,this._focusTarget)<0)return!1;var e={key:this.codes[t.which]||t.which,ctrl:t.ctrlKey,shift:t.shiftKey,alt:t.altKey,originalEvent:t},i=this._handler&&this._handler.call(this._context,e);i&&this._childProcessors&&r(this._childProcessors,function(e,i){i.process(t)})}});t.exports=c},function(t,e,i){var n=i(30),o=i(23),a=i(29),s=i(74),r=i(68),l=i(93),c=i(98),h="dxHoverStart",d="dxhoverstart",u=l.addNamespace(c.enter,h),p="dxHoverEnd",f="dxhoverend",_=l.addNamespace(c.leave,p),m=a.inherit({noBubble:!0,ctor:function(){this._handlerArrayKeyPath=this._eventNamespace+"_HandlerStore"},setup:function(t){o.data(t,this._handlerArrayKeyPath,{})},add:function(t,e){var i=this,a=function(t){i._handler(t)};n.on(t,this._originalEventName,e.selector,a),o.data(t,this._handlerArrayKeyPath)[e.guid]=a},_handler:function(t){l.isTouchEvent(t)||s.isSimulator()||l.fireEvent({type:this._eventName,originalEvent:t,delegateTarget:t.delegateTarget})},remove:function(t,e){var i=o.data(t,this._handlerArrayKeyPath)[e.guid];n.off(t,this._originalEventName,e.selector,i)},teardown:function(t){o.removeData(t,this._handlerArrayKeyPath)}}),g=m.inherit({ctor:function(){this._eventNamespace=h,this._eventName=d,this._originalEventName=u,this.callBase()},_handler:function(t){var e=t.pointers||[];e.length||this.callBase(t)}}),v=m.inherit({ctor:function(){this._eventNamespace=p,this._eventName=f,this._originalEventName=_,this.callBase()}});r(d,new g),r(f,new v),e.start=d,e.end=f},function(t,e,i){var n,o=i(29),a=i(13),s=i(64).contains,r=i(74),l=i(93),c=i(98),h=i(105),d=i(106),u="dxactive",p="dxinactive",f=30,_=400,m=o.inherit({ctor:function(t,e){this._timeout=t,this._fire=e},start:function(){var t=this;this._schedule(function(){t.force()})},_schedule:function(t){this.stop(),this._timer=window.setTimeout(t,this._timeout)},stop:function(){clearTimeout(this._timer)},force:function(){this._fired||(this.stop(),this._fire(),this._fired=!0)},fired:function(){return this._fired}}),g=h.inherit({ctor:function(){this.callBase.apply(this,arguments),this._active=new m(0,a.noop),this._inactive=new m(0,a.noop)},configure:function(t,e){switch(e){case u:t.activeTimeout=t.timeout;break;case p:t.inactiveTimeout=t.timeout}this.callBase(t)},start:function(t){if(n){var e=s(this.getElement().get(0),n.getElement().get(0)),i=!n._active.fired();if(e&&i)return void this._cancel();n._inactive.force()}n=this,this._initEvents(t),this._active.start()},_initEvents:function(t){var e=this,i=this._getEmitterTarget(t),o=l.isMouseEvent(t),s=r.isSimulator(),c=s||!o,h=a.ensureDefined(this.activeTimeout,f),d=a.ensureDefined(this.inactiveTimeout,_);this._active=new m(c?h:0,function(){e._fireEvent(u,t,{target:i})}),this._inactive=new m(c?d:0,function(){e._fireEvent(p,t,{target:i}),n=null})},cancel:function(t){this.end(t)},end:function(t){var e=t.type!==c.up;e?this._active.stop():this._active.force(),this._inactive.start(),e&&this._inactive.force()},dispose:function(){this._active.stop(),this._inactive.stop(),this.callBase()},lockInactive:function(){return this._active.force(),this._inactive.stop(),n=null,this._cancel(),this._inactive.force.bind(this._inactive)}});g.lock=function(t){var e=n?n.lockInactive():a.noop;t.done(e)},d({emitter:g,events:[u,p]}),e.lock=g.lock,e.active=u,e.inactive=p},function(t,e,i){var n=i(21),o=i(116),a=i(10),s=i(120),r=i(64),l=function(t){var e=document.createElement("div");o.applyBindingsToNode(e,null,t);var i=o.contextFor(e);return o.cleanNode(e),i},c=s.inherit({ctor:function(t){this._element=t,this._template=n("<div>").append(r.normalizeTemplateElement(t)),this._registerKoTemplate()},_registerKoTemplate:function(){var t=this._template.get(0);new o.templateSources.anonymousTemplate(t).nodes(t)},_prepareDataForContainer:function(t,e){if(e&&e.length){var i=e.get(0),n=o.contextFor(i);if(t=void 0!==t?t:o.dataFor(i)||{},n)return t===n.$data?n:n.createChildContext(t)}return l(t).createChildContext(t)},_renderCore:function(t){var e=this._prepareDataForContainer(t.model,n(t.container));a.isDefined(t.index)&&(e.$index=t.index);var i,s=n("<div>").appendTo(t.container);return o.renderTemplate(this._template.get(0),e,{afterRender:function(t){i=n(t)}},s.get(0),"replaceNode"),i},source:function(){return n(this._element).clone()},dispose:function(){this._template.remove()}});t.exports=c},function(t,e,i){var n=i(21),o=i(23),a=i(16),s=i(13),r=i(129).getDefaultAlignment,l=i(9).extend,c=i(118),h=i(130),d=i(131),u="dx-state-readonly",p="dx-invalid",f="dx-invalid-message",_="dx-invalid-message-auto",m="dx-invalid-message-always",g="dx-validation-target",v=100,b=c.inherit({_init:function(){this.callBase(),this.validationRequest=a();var t=this.$element();t&&o.data(t[0],g,this)},_getDefaultOptions:function(){return l(this.callBase(),{value:null,name:"",onValueChanged:null,readOnly:!1,isValid:!0,validationError:null,validationMessageMode:"auto",validationBoundary:void 0,validationMessageOffset:{h:0,v:0}})},_attachKeyboardEvents:function(){this.option("readOnly")||(this.callBase(),this._keyboardProcessor&&this._attachChildKeyboardEvents())},_attachChildKeyboardEvents:s.noop,_setOptionsByReference:function(){this.callBase(),l(this._optionsByReference,{validationError:!0})},_createValueChangeAction:function(){this._valueChangeAction=this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]})},_suppressValueChangeAction:function(){this._valueChangeActionSuppressed=!0},_resumeValueChangeAction:function(){this._valueChangeActionSuppressed=!1},_render:function(){this.callBase(),this._renderValidationState(),this._toggleReadOnlyState(),this._setSubmitElementName(this.option("name"))},_raiseValueChangeAction:function(t,e){this._valueChangeAction||this._createValueChangeAction(),this._valueChangeAction(this._valueChangeArgs(t,e))},_valueChangeArgs:function(t,e){return{value:t,previousValue:e,event:this._valueChangeEventInstance}},_saveValueChangeEvent:function(t){this._valueChangeEventInstance=t},_renderValidationState:function(){var t=this.option("isValid"),e=this.option("validationError"),i=this.option("validationMessageMode"),o=this.$element();o.toggleClass(p,!t),this.setAria("invalid",!t||void 0),this._$validationMessage&&(this._$validationMessage.remove(),this._$validationMessage=null),!t&&e&&e.message&&(this._$validationMessage=n("<div>").addClass(f).html(e.message).appendTo(o),this._validationMessage=this._createComponent(this._$validationMessage,d,{integrationOptions:{},templatesRenderAsynchronously:!1,target:this._getValidationMessageTarget(),shading:!1,width:"auto",height:"auto",container:o,position:this._getValidationMessagePosition("below"),closeOnOutsideClick:!1,closeOnTargetScroll:!1,animation:null,visible:!0,propagateOutsideClick:!0,_checkParentVisibility:!1}),this._$validationMessage.toggleClass(_,"auto"===i).toggleClass(m,"always"===i),this._setValidationMessageMaxWidth())},_setValidationMessageMaxWidth:function(){if(this._validationMessage){if(0===this._getValidationMessageTarget().outerWidth())return void this._validationMessage.option("maxWidth","100%");var t=Math.max(v,this._getValidationMessageTarget().outerWidth());this._validationMessage.option("maxWidth",t)}},_getValidationMessageTarget:function(){return this.$element()},_getValidationMessagePosition:function(t){var e=this.option("rtlEnabled"),i=r(e),n=this.option("validationMessageOffset"),o={h:n.h,v:n.v},a="below"===t?[" top"," bottom"]:[" bottom"," top"];return e&&(o.h=-o.h),"below"!==t&&(o.v=-o.v),{offset:o,boundary:this.option("validationBoundary"),my:i+a[0],at:i+a[1],collision:"none flip"}},_toggleReadOnlyState:function(){this.$element().toggleClass(u,!!this.option("readOnly")),this.setAria("readonly",this.option("readOnly")||void 0)},_dispose:function(){var t=this.$element()[0];o.data(t,g,null),this.callBase()},_setSubmitElementName:function(t){var e=this._getSubmitElement();e&&(t.length>0?e.attr("name",t):e.removeAttr("name"))},_getSubmitElement:function(){return null},_optionChanged:function(t){switch(t.name){case"onValueChanged":this._createValueChangeAction();break;case"isValid":case"validationError":case"validationBoundary":case"validationMessageMode":this._renderValidationState();break;case"readOnly":this._toggleReadOnlyState(),this._refreshFocusState();break;case"value":this._valueChangeActionSuppressed||(this._raiseValueChangeAction(t.value,t.previousValue),this._saveValueChangeEvent(void 0)),t.value!=t.previousValue&&this.validationRequest.fire({value:t.value,editor:this});break;case"width":this.callBase(t),this._setValidationMessageMaxWidth();break;case"name":this._setSubmitElementName(t.value);break;default:this.callBase(t)}},reset:function(){this.option("value",null)}}).include(h);t.exports=b},function(t,e,i){var n=i(14),o=function(t){var e=t||n().rtlEnabled;return e?"right":"left"};e.getDefaultAlignment=o},function(t,e){var i={_findGroup:function(){var t,e=this.option("validationGroup");return e||(t=this.$element().parents(".dx-validationgroup").first(),e=t.length?t.dxValidationGroup("instance"):this._modelByElement(this.$element())),e}};t.exports=i},function(t,e,i){var n=i(21),o=i(30),a=i(89),s=i(90),r=i(108).compare,l=i(76),c=i(9).extend,h=i(25).inArray,d=i(64).getPublicElement,u=l.changeCallback,p=i(86).hideCallback,f=i(92),_=i(47).fitIntoRange,m=i(64),g=i(13).noop,v=i(10),b=i(17).each,y=i(74),C=i(41),x=i(78),w=i(118),S=i(124),I=i(94),T=i(132),E=i(93),D=i(98),k=i(133),B=i(122),A=i(15).Deferred,M="dx-overlay",O="dx-overlay-wrapper",P="dx-overlay-content",$="dx-overlay-shader",H="dx-overlay-modal",V="dx-state-invisible",R="content",F="dx-rtl",L=["onShowing","onShown","onHiding","onHidden","onPositioning","onPositioned","onResizeStart","onResize","onResizeEnd"],N=1500,W=[],z="dx-state-disabled",K=9,G={top:{my:"top center",at:"top center"},bottom:{my:"bottom center",at:"bottom center"},right:{my:"right center",at:"right center"},left:{my:"left center",at:"left center"},center:{my:"center",at:"center"},"right bottom":{my:"right bottom",at:"right bottom"},"right top":{my:"right top",at:"right top"},"left bottom":{my:"left bottom",at:"left bottom"},"left top":{my:"left top",at:"left top"}},U=y.real(),j=U.version,q=C.mozilla&&"desktop"===U.deviceType,Y="ios"===U.platform,X=Y&&r(j,[7,1])<0,Z="android"===U.platform&&0===r(j,[4,0],2)&&navigator.userAgent.indexOf("Chrome")===-1,Q=function(t){if((X||q)&&t.width(),Z){var e=t.parents(),i=e.is(".dx-scrollable-native");i||(e.css("backface-visibility","hidden"),e.css("backface-visibility"),e.css("backface-visibility","visible"))}},J=function(t){return t&&n(t.target||t)};o.subscribeGlobal(document,D.down,function(t){for(var e=W.length-1;e>=0;e--)if(!W[e]._proxiedDocumentDownHandler(t))return});var tt=w.inherit({_supportedKeys:function(){var t=5,e=function(t,e,i){if(this.option("dragEnabled")){i.preventDefault(),i.stopPropagation();var n=this._allowedOffsets(),o={top:_(t,-n.top,n.bottom),left:_(e,-n.left,n.right)};this._changePosition(o)}};return c(this.callBase(),{escape:function(){this.hide()},upArrow:e.bind(this,-t,0),downArrow:e.bind(this,t,0),leftArrow:e.bind(this,0,-t),rightArrow:e.bind(this,0,t)})},_getDefaultOptions:function(){return c(this.callBase(),{activeStateEnabled:!1,visible:!1,deferRendering:!0,shading:!0,shadingColor:"",position:{my:"center",at:"center"},width:function(){return.8*n(window).width()},minWidth:null,maxWidth:null,height:function(){return.8*n(window).height()},minHeight:null,maxHeight:null,animation:{show:{type:"pop",duration:300,from:{scale:.55}},hide:{type:"pop",duration:300,to:{opacity:0,scale:.55},from:{opacity:1,scale:1}}},closeOnOutsideClick:!1,closeOnBackButton:!0,onShowing:null,onShown:null,onHiding:null,onHidden:null,contentTemplate:"content",dragEnabled:!1,resizeEnabled:!1,onResizeStart:null,onResize:null,onResizeEnd:null,target:void 0,container:void 0,hideTopOverlayHandler:void 0,closeOnTargetScroll:!1,onPositioned:null,boundaryOffset:{h:0,v:0},propagateOutsideClick:!1,_checkParentVisibility:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){var t=y.real(),e=t.platform,i=t.version;return"android"===e&&r(i,[4,2])<0},options:{animation:{show:{type:"fade",duration:400},hide:{type:"fade",duration:400,to:{opacity:0},from:{opacity:1}}}}}])},_setOptionsByReference:function(){this.callBase(),c(this._optionsByReference,{animation:!0})},_getAnonymousTemplateName:function(){return R},_wrapper:function(){return this._$wrapper},_container:function(){return this._$content},_eventBindingTarget:function(){return this._$content},_init:function(){this.callBase(),this._initActions(),this._initCloseOnOutsideClickHandler(),this._initTabTerminatorHandler(),this._$wrapper=n("<div>").addClass(O),this._$content=n("<div>").addClass(P);var t=this.$element();this._$wrapper.addClass(t.attr("class")),t.addClass(M),this._$wrapper.attr("data-bind","dxControlsDescendantBindings: true"),o.on(this._$wrapper,"MSPointerDown",g),o.on(this._$wrapper,"focusin",function(t){t.stopPropagation()}),this._toggleViewPortSubscription(!0)},_initOptions:function(t){this._initTarget(t.target),this._initContainer(t.container),this._initHideTopOverlayHandler(t.hideTopOverlayHandler),this.callBase(t)},_initTarget:function(t){if(v.isDefined(t)){var e=this.option();b(["position.of","animation.show.from.position.of","animation.show.to.position.of","animation.hide.from.position.of","animation.hide.to.position.of"],function(i,n){for(var o=n.split("."),a=e;a;){if(1===o.length){v.isPlainObject(a)&&(a[o.shift()]=t);break}a=a[o.shift()]}})}},_initContainer:function(t){t=void 0===t?l.value():t;var e=this.$element(),i=e.closest(t);i.length||(i=n(t).first()),this._$container=i.length?i:e.parent()},_initHideTopOverlayHandler:function(t){this._hideTopOverlayHandler=void 0!==t?t:this._defaultHideTopOverlayHandler.bind(this)},_defaultHideTopOverlayHandler:function(){this.hide()},_initActions:function(){this._actions={},b(L,function(t,e){this._actions[e]=this._createActionByOption(e,{excludeValidators:["disabled","readOnly"]})||g}.bind(this))},_initCloseOnOutsideClickHandler:function(){var t=this;this._proxiedDocumentDownHandler=function(){return t._documentDownHandler.apply(t,arguments)}},_documentDownHandler:function(t){this._showAnimationProcessing&&this._stopAnimation();var e=this.option("closeOnOutsideClick");if(v.isFunction(e)&&(e=e(t)),e){var i=this._$content,o=!i.is(t.target)&&!m.contains(i.get(0),t.target)&&n(t.target).closest(document).length;o&&(this.option("shading")&&t.preventDefault(),this.hide())}return this.option("propagateOutsideClick")},_initTemplates:function(){this.callBase(),this._defaultTemplates.content=new B(this)},_isTopOverlay:function(){for(var t=this._overlayStack(),e=t.length-1;e>=0;e--){var i=t[e]._findTabbableElements();if(i.length)return t[e]===this}return!1},_overlayStack:function(){return W},_zIndexInitValue:function(){return N},_toggleViewPortSubscription:function(t){u.remove(this._viewPortChangeHandle),t&&(this._viewPortChangeHandle=this._viewPortChangeHandler.bind(this),u.add(this._viewPortChangeHandle))},_viewPortChangeHandler:function(){this._initContainer(this.option("container")),this._refresh()},_renderVisibilityAnimate:function(t){return this._stopAnimation(),t?this._show():this._hide()},_normalizePosition:function(){var t=this.option("position");this._position="function"==typeof t?t():t},_getAnimationConfig:function(){var t=this.option("animation");return v.isFunction(t)&&(t=t.call(this)),t},_show:function(){var t=this,e=new A;if(this._parentHidden=this._isParentHidden(),e.done(function(){delete t._parentHidden}),this._parentHidden)return e.resolve();if(this._currentVisible)return(new A).resolve().promise();this._currentVisible=!0,this._normalizePosition();var i=t._getAnimationConfig()||{},n=this._normalizeAnimation(i.show,"to"),a=n&&n.start||g,s=n&&n.complete||g;if(this._isHidingActionCanceled)delete this._isHidingActionCanceled,e.resolve();else{var r=function(){this._renderVisibility(!0),this._animate(n,function(){t.option("focusStateEnabled")&&o.trigger(t._focusTarget(),"focus"),s.apply(this,arguments),t._showAnimationProcessing=!1,t._actions.onShown(),e.resolve()},function(){a.apply(this,arguments),t._showAnimationProcessing=!0})}.bind(this);this.option("templatesRenderAsynchronously")?this._asyncShowTimeout=setTimeout(r):r()}return e.promise()},_normalizeAnimation:function(t,e){return t&&(t=c({type:"slide"},t),t[e]&&"object"==typeof t[e]&&c(t[e],{position:this._position})),t},_hide:function(){if(!this._currentVisible)return(new A).resolve().promise();this._currentVisible=!1;var t=this,e=new A,i=t._getAnimationConfig()||{},n=this._normalizeAnimation(i.hide,"from"),o=n&&n.start||g,a=n&&n.complete||g,s={cancel:!1};return this._actions.onHiding(s),s.cancel?(this._isHidingActionCanceled=!0,this.option("visible",!0),e.resolve()):(this._forceFocusLost(),this._toggleShading(!1),this._toggleSubscriptions(!1),this._animate(n,function(){t._$content.css("pointerEvents",""),t._renderVisibility(!1),a.apply(this,arguments),t._actions.onHidden(),e.resolve()},function(){t._$content.css("pointerEvents","none"),o.apply(this,arguments)})),e.promise()},_forceFocusLost:function(){document.activeElement&&this._$content.find(document.activeElement).length&&document.activeElement.blur()},_animate:function(t,e,i){t?(i=i||t.start||g,a.animate(this._$content,c({},t,{start:i,complete:e}))):e()},_stopAnimation:function(){a.stop(this._$content,!0)},_renderVisibility:function(t){t&&this._isParentHidden()||(this._currentVisible=t,this._stopAnimation(),clearTimeout(this._asyncShowTimeout),t||m.triggerHidingEvent(this._$content),this._toggleVisibility(t),this._$content.toggleClass(V,!t),this._updateZIndexStackPosition(t),t?(this._renderContent(),this._actions.onShowing(),this._moveToContainer(),this._renderGeometry(),m.triggerShownEvent(this._$content),m.triggerResizeEvent(this._$content)):this._moveFromContainer(),this._toggleShading(t),this._toggleSubscriptions(t))},_updateZIndexStackPosition:function(t){var e=this._overlayStack(),i=h(this,e);if(t){if(i===-1){var n=e.length;this._zIndex=(n?e[n-1]._zIndex:this._zIndexInitValue())+1,e.push(this)}this._$wrapper.css("zIndex",this._zIndex),this._$content.css("zIndex",this._zIndex)}else i!==-1&&e.splice(i,1)},_toggleShading:function(t){this._$wrapper.toggleClass(H,this.option("shading")&&!this.option("container")),this._$wrapper.toggleClass($,t&&this.option("shading")),this._$wrapper.css("background-color",this.option("shading")?this.option("shadingColor"):""),this._toggleTabTerminator(t&&this.option("shading"))},_initTabTerminatorHandler:function(){var t=this;this._proxiedTabTerminatorHandler=function(){t._tabKeyHandler.apply(t,arguments)}},_toggleTabTerminator:function(t){var e=E.addNamespace("keydown",this.NAME);t?o.on(document,e,this._proxiedTabTerminatorHandler):o.off(document,e,this._proxiedTabTerminatorHandler)},_findTabbableElements:function(){return this._$wrapper.find("*").filter(I.tabbable)},_tabKeyHandler:function(t){if(t.keyCode===K&&this._isTopOverlay()){var e=this._findTabbableElements(),i=e.first(),n=e.last(),a=!t.shiftKey&&t.target===n.get(0),s=t.shiftKey&&t.target===i.get(0),r=0===e.length,l=h(t.target,e)===-1;if(a||s||r||l){t.preventDefault();var c=t.shiftKey?n:i;o.trigger(c,"focusin"),o.trigger(c,"focus");
|
|
17
|
+
}}},_toggleSubscriptions:function(t){this._toggleHideTopOverlayCallback(t),this._toggleParentsScrollSubscription(t)},_toggleHideTopOverlayCallback:function(t){this._hideTopOverlayHandler&&(t&&this.option("closeOnBackButton")?p.add(this._hideTopOverlayHandler):p.remove(this._hideTopOverlayHandler))},_toggleParentsScrollSubscription:function(t){if(this._position){var e=this._position.of||n(),i=this.option("closeOnTargetScroll"),a=J(e).parents(),s=E.addNamespace("scroll",this.NAME);"generic"===y.real().platform&&(a=a.add(window)),this._proxiedTargetParentsScrollHandler=this._proxiedTargetParentsScrollHandler||function(t){this._targetParentsScrollHandler(t)}.bind(this),o.off(n().add(this._$prevTargetParents),s,this._proxiedTargetParentsScrollHandler),t&&i&&(o.on(a,s,this._proxiedTargetParentsScrollHandler),this._$prevTargetParents=a)}},_targetParentsScrollHandler:function(t){var e=!1,i=this.option("closeOnTargetScroll");v.isFunction(i)&&(e=i(t)),e||this._showAnimationProcessing||this.hide()},_render:function(){this.callBase(),this._$content.appendTo(this.$element()),this._renderVisibilityAnimate(this.option("visible"))},_renderContent:function(){var t=!this._currentVisible&&this.option("deferRendering"),e=this.option("visible")&&this._isParentHidden();return e?void(this._isHidden=!0):void(this._contentAlreadyRendered||t||(this._contentAlreadyRendered=!0,this.callBase()))},_isParentHidden:function(){if(!this.option("_checkParentVisibility"))return!1;if(void 0!==this._parentHidden)return this._parentHidden;var t=this.$element().parent();if(t.is(":visible"))return!1;var e=!1;return t.add(t.parents()).each(function(){var t=n(this);if("none"===t.css("display"))return e=!0,!1}),e||!document.body.contains(t.get(0))},_renderContentImpl:function(){var t=this.$element();this._$content.appendTo(t);var e=this._getTemplate(this.option("contentTemplate"));e&&e.render({container:d(this.$content()),noModel:!0}),this._renderDrag(),this._renderResize(),this._renderScrollTerminator()},_renderDrag:function(){var t=this._getDragTarget();if(t){var e=E.addNamespace(T.start,this.NAME),i=E.addNamespace(T.move,this.NAME);o.off(t,e),o.off(t,i),this.option("dragEnabled")&&(o.on(t,e,this._dragStartHandler.bind(this)),o.on(t,i,this._dragUpdateHandler.bind(this)))}},_renderResize:function(){this._resizable=this._createComponent(this._$content,k,{handles:this.option("resizeEnabled")?"all":"none",onResizeEnd:this._resizeEndHandler.bind(this),onResize:this._actions.onResize.bind(this),onResizeStart:this._actions.onResizeStart.bind(this),minHeight:100,minWidth:100,area:this._getDragResizeContainer()})},_resizeEndHandler:function(){this._positionChangeHandled=!0;var t=this._resizable.option("width"),e=this._resizable.option("height");t&&this.option("width",t),e&&this.option("height",e),this._actions.onResizeEnd()},_renderScrollTerminator:function(){var t=this._wrapper(),e=E.addNamespace(T.move,this.NAME);o.off(t,e),o.on(t,e,{validate:function(){return!0},getDirection:function(){return"both"},_toggleGestureCover:g,_clearSelection:g,isNative:!0},function(t){var e=t.originalEvent.originalEvent;t._cancelPreventDefault=!0,e&&"mousemove"!==e.type&&t.preventDefault()})},_getDragTarget:function(){return this.$content()},_dragStartHandler:function(t){t.targetElements=[],this._prevOffset={x:0,y:0};var e=this._allowedOffsets();t.maxTopOffset=e.top,t.maxBottomOffset=e.bottom,t.maxLeftOffset=e.left,t.maxRightOffset=e.right},_getDragResizeContainer:function(){var t=l.originalViewPort().get(0)||this.option("container"),e=t?this._$container:n(window);return e},_deltaSize:function(){var t=this._$content,e=this._getDragResizeContainer(),i=t.outerWidth(),o=t.outerHeight(),a=e.outerWidth(),s=e.outerHeight();if(this._isWindow(e)){var r=Math.max(n(document).outerHeight(),s),l=Math.max(n(document).outerWidth(),a);s=r,a=l}return{width:a-i,height:s-o}},_dragUpdateHandler:function(t){var e=t.offset,i=this._prevOffset,n={top:e.y-i.y,left:e.x-i.x};this._changePosition(n),this._prevOffset=e},_changePosition:function(t){var e=s.locate(this._$content);s.move(this._$content,{left:e.left+t.left,top:e.top+t.top}),this._positionChangeHandled=!0},_allowedOffsets:function(){var t=s.locate(this._$content),e=this._deltaSize(),i=e.height>=0&&e.width>=0,n=!this.option("shading")||this.option("container")||this._isWindow(this._getContainer())?{top:0,left:0}:s.locate(this._$wrapper),o=this.option("boundaryOffset");return{top:i?t.top+n.top+o.v:0,bottom:i?-t.top-n.top+e.height-o.v:0,left:i?t.left+n.left+o.h:0,right:i?-t.left-n.left+e.width-o.h:0}},_fireContentReadyAction:function(){this.option("visible")&&this._moveToContainer(),this.callBase.apply(this,arguments)},_moveFromContainer:function(){this._$content.appendTo(this.$element()),this._detachWrapperToContainer()},_detachWrapperToContainer:function(){this._$wrapper.detach()},_moveToContainer:function(){this._attachWrapperToContainer(),this._$content.appendTo(this._$wrapper)},_attachWrapperToContainer:function(){var t=this.$element();this._$container&&this._$container[0]!==t.parent()[0]?this._$wrapper.appendTo(this._$container):this._$wrapper.appendTo(t)},_renderGeometry:function(){this.option("visible")&&this._renderGeometryImpl()},_renderGeometryImpl:function(){this._stopAnimation(),this._normalizePosition(),this._renderShading(),this._renderDimensions();var t=this._renderPosition();this._actions.onPositioned({position:t})},_renderShading:function(){var t=this._$wrapper,e=this._getContainer();t.css("position",this._isWindow(e)&&!Y?"fixed":"absolute"),this._renderShadingDimensions(),this._renderShadingPosition()},_renderShadingPosition:function(){if(this.option("shading")){var t=this._getContainer();f.setup(this._$wrapper,{my:"top left",at:"top left",of:t})}},_renderShadingDimensions:function(){var t,e;if(this.option("shading")){var i=this._getContainer();t=this._isWindow(i)?"100%":i.outerWidth(),e=this._isWindow(i)?"100%":i.outerHeight()}else t="",e="";this._$wrapper.css({width:t,height:e})},_isWindow:function(t){return!!t&&v.isWindow(t.get(0))},_getContainer:function(){var t=this._position,e=this.option("container"),i=t?t.of||window:null;return J(e||i)},_renderDimensions:function(){var t=this._$content.get(0);this._$content.css({minWidth:this._getOptionValue("minWidth",t),maxWidth:this._getOptionValue("maxWidth",t),minHeight:this._getOptionValue("minHeight",t),maxHeight:this._getOptionValue("maxHeight",t)}),this._$content.outerWidth(this._getOptionValue("width",t)).outerHeight(this._getOptionValue("height",t))},_renderPosition:function(){if(!this._positionChangeHandled){this._renderOverlayBoundaryOffset(),s.resetPosition(this._$content);var t=this._transformStringPosition(this._position,G),e=f.setup(this._$content,t);return Q(this._$content),this._actions.onPositioning(),e}var i=this._allowedOffsets();this._changePosition({top:_(0,-i.top,i.bottom),left:_(0,-i.left,i.right)})},_transformStringPosition:function(t,e){return v.isString(t)&&(t=c({},e[t])),t},_renderOverlayBoundaryOffset:function(){var t=this.option("boundaryOffset");this._$content.css("margin",t.v+"px "+t.h+"px")},_focusTarget:function(){return this._$content},_attachKeyboardEvents:function(){this._keyboardProcessor=new S({element:this._$content,handler:this._keyboardHandler,context:this})},_keyboardHandler:function(t){var e=t.originalEvent,i=n(e.target);i.is(this._$content)&&this.callBase.apply(this,arguments)},_isVisible:function(){return this.option("visible")},_visibilityChanged:function(t){t?this.option("visible")&&this._renderVisibilityAnimate(t):this._renderVisibilityAnimate(t)},_dimensionChanged:function(){this._renderGeometry()},_clean:function(){this._contentAlreadyRendered||this.$content().empty(),this._renderVisibility(!1),this._cleanFocusState()},_dispose:function(){a.stop(this._$content,!1),clearTimeout(this._deferShowTimer),this._toggleViewPortSubscription(!1),this._toggleSubscriptions(!1),this._updateZIndexStackPosition(!1),this._toggleTabTerminator(!1),this._actions=null,this.callBase(),this._$wrapper.remove(),this._$content.remove()},_toggleDisabledState:function(t){this.callBase.apply(this,arguments),this._$content.toggleClass(z,Boolean(t))},_toggleRTLDirection:function(t){this._$content.toggleClass(F,t)},_optionChanged:function(t){var e=t.value;if(h(t.name,L)>-1)return void this._initActions();switch(t.name){case"dragEnabled":this._renderDrag(),this._renderGeometry();break;case"resizeEnabled":this._renderResize(),this._renderGeometry();break;case"shading":case"shadingColor":this._toggleShading(this.option("visible"));break;case"width":case"height":case"minWidth":case"maxWidth":case"minHeight":case"maxHeight":case"boundaryOffset":this._renderGeometry();break;case"position":this._positionChangeHandled=!1,this._renderGeometry();break;case"visible":this._renderVisibilityAnimate(e).done(function(){this._animateDeferred&&this._animateDeferred.resolveWith(this)}.bind(this));break;case"target":this._initTarget(e),this._invalidate();break;case"container":this._initContainer(e),this._invalidate();break;case"deferRendering":case"contentTemplate":this._contentAlreadyRendered=!1,this._invalidate();break;case"closeOnBackButton":this._toggleHideTopOverlayCallback(this.option("visible"));break;case"closeOnTargetScroll":this._toggleParentsScrollSubscription(this.option("visible"));break;case"closeOnOutsideClick":case"animation":case"propagateOutsideClick":break;case"rtlEnabled":this._contentAlreadyRendered=!1,this.option("visible",!1),this.callBase(t);break;default:this.callBase(t)}},toggle:function(t){if(t=void 0===t?!this.option("visible"):t,t===this.option("visible"))return(new A).resolve().promise();var e=new A;return this._animateDeferred=e,this.option("visible",t),e.promise().done(function(){delete this._animateDeferred}.bind(this))},$content:function(){return this._$content},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)},content:function(){return d(this._$content)},repaint:function(){this._renderGeometry()}});tt.baseZIndex=function(t){N=t},x("dxOverlay",tt),t.exports=tt},function(t,e,i){var n=i(21),o=i(23),a=i(25).wrapToArray,s=i(25).inArray,r=i(17),l=i(64).contains,c=i(68),h=i(93),d=i(109),u=i(106),p="dxdragstart",f="dxdrag",_="dxdragend",m="dxdragenter",g="dxdragleave",v="dxdrop",b="dxDragEventsCount",y=[],C=[],x=[],w={setup:function(t,e){var i=s(t,y)!==-1;i||(y.push(t),C.push([]),x.push(e||{}))},add:function(t,e){var i=s(t,y);this.updateEventsCounter(t,e.type,1);var n=e.selector;s(n,C[i])===-1&&C[i].push(n)},updateEventsCounter:function(t,e,i){if([m,g,v].indexOf(e)>-1){var n=o.data(t,b)||0;o.data(t,b,Math.max(0,n+i))}},remove:function(t,e){this.updateEventsCounter(t,e.type,-1)},teardown:function(t){var e=o.data(t,b);if(!e){var i=s(t,y);y.splice(i,1),C.splice(i,1),x.splice(i,1),o.removeData(t,b)}}};c(m,w),c(g,w),c(v,w);var S=function(t){var e=s(t.get(0),y),i=C[e],n=t.find(i.join(", "));return s(void 0,i)!==-1&&(n=n.add(t)),n},I=function(t){var e=s(t.get(0),y);return x[e]},T=function(t,e){return t.itemPositionFunc?t.itemPositionFunc(e):e.offset()},E=function(t,e){return t.itemSizeFunc?t.itemSizeFunc(e):{width:e.get(0).getBoundingClientRect().width,height:e.get(0).getBoundingClientRect().height}},D=d.inherit({ctor:function(t){this.callBase(t),this.direction="both"},_init:function(t){this._initEvent=t},_start:function(t){t=this._fireEvent(p,this._initEvent),this._maxLeftOffset=t.maxLeftOffset,this._maxRightOffset=t.maxRightOffset,this._maxTopOffset=t.maxTopOffset,this._maxBottomOffset=t.maxBottomOffset;var e=a(t.targetElements||(null===t.targetElements?[]:y));this._dropTargets=r.map(e,function(t){return n(t).get(0)})},_move:function(t){var e=h.eventData(t),i=this._calculateOffset(e);t=this._fireEvent(f,t,{offset:i}),this._processDropTargets(t),t._cancelPreventDefault||t.preventDefault()},_calculateOffset:function(t){return{x:this._calculateXOffset(t),y:this._calculateYOffset(t)}},_calculateXOffset:function(t){if("vertical"!==this.direction){var e=t.x-this._startEventData.x;return this._fitOffset(e,this._maxLeftOffset,this._maxRightOffset)}return 0},_calculateYOffset:function(t){if("horizontal"!==this.direction){var e=t.y-this._startEventData.y;return this._fitOffset(e,this._maxTopOffset,this._maxBottomOffset)}return 0},_fitOffset:function(t,e,i){return null!=e&&(t=Math.max(t,-e)),null!=i&&(t=Math.min(t,i)),t},_processDropTargets:function(t){var e=this._findDropTarget(t),i=e===this._currentDropTarget;i||(this._fireDropTargetEvent(t,g),this._currentDropTarget=e,this._fireDropTargetEvent(t,m))},_fireDropTargetEvent:function(t,e){if(this._currentDropTarget){var i={type:e,originalEvent:t,draggingElement:this._$element.get(0),target:this._currentDropTarget};h.fireEvent(i)}},_findDropTarget:function(t){var e,i=this;return r.each(y,function(o,a){if(i._checkDropTargetActive(a)){var s=n(a);r.each(S(s),function(o,a){var r=n(a);i._checkDropTarget(I(s),r,t)&&(e=a)})}}),e},_checkDropTargetActive:function(t){var e=!1;return r.each(this._dropTargets,function(i,n){return e=e||n===t||l(n,t),!e}),e},_checkDropTarget:function(t,e,i){var n=e.get(0)===this._$element.get(0);if(n)return!1;var o=T(t,e);if(i.pageX<o.left)return!1;if(i.pageY<o.top)return!1;var a=E(t,e);return!(i.pageX>o.left+a.width)&&(!(i.pageY>o.top+a.height)&&e)},_end:function(t){var e=h.eventData(t);this._fireEvent(_,t,{offset:this._calculateOffset(e)}),this._fireDropTargetEvent(t,v),delete this._currentDropTarget}});u({emitter:D,events:[p,f,_]}),e.move=f,e.start=p,e.end=_,e.enter=m,e.leave=g,e.drop=v},function(t,e,i){var n=i(21),o=i(30),a=i(78),s=i(12),r=i(9).extend,l=i(25).inArray,c=i(17).each,h=i(10),d=i(90),u=i(47).fitIntoRange,p=i(63),f=i(93),_=i(132),m=h.isPlainObject,g=h.isFunction,v=i(64),b="dxResizable",y="dx-resizable",C="dx-resizable-resizing",x="dx-resizable-handle",w="dx-resizable-handle-top",S="dx-resizable-handle-bottom",I="dx-resizable-handle-left",T="dx-resizable-handle-right",E="dx-resizable-handle-corner",D=f.addNamespace(_.start,b),k=f.addNamespace(_.move,b),B=f.addNamespace(_.end,b),A=p.inherit({_getDefaultOptions:function(){return r(this.callBase(),{handles:"all",step:"1",stepPrecision:"simple",area:void 0,minWidth:30,maxWidth:1/0,minHeight:30,maxHeight:1/0,onResizeStart:null,onResize:null,onResizeEnd:null})},_init:function(){this.callBase(),this.$element().addClass(y)},_render:function(){this.callBase(),this._renderActions(),this._renderHandles()},_renderActions:function(){this._resizeStartAction=this._createActionByOption("onResizeStart"),this._resizeEndAction=this._createActionByOption("onResizeEnd"),this._resizeAction=this._createActionByOption("onResize")},_renderHandles:function(){var t=this.option("handles");if("none"!==t){var e="all"===t?["top","bottom","left","right"]:t.split(" ");c(e,function(t,e){this._renderHandle(e)}.bind(this)),l("bottom",e)+1&&l("right",e)+1&&this._renderHandle("corner-bottom-right"),l("bottom",e)+1&&l("left",e)+1&&this._renderHandle("corner-bottom-left"),l("top",e)+1&&l("right",e)+1&&this._renderHandle("corner-top-right"),l("top",e)+1&&l("left",e)+1&&this._renderHandle("corner-top-left")}},_renderHandle:function(t){var e=this.$element(),i=n("<div>");i.addClass(x).addClass(x+"-"+t).appendTo(e),this._attachEventHandlers(i)},_attachEventHandlers:function(t){if(!this.option("disabled")){var e={};e[D]=this._dragStartHandler.bind(this),e[k]=this._dragHandler.bind(this),e[B]=this._dragEndHandler.bind(this),o.on(t,e,{direction:"both",immediate:!0})}},_dragStartHandler:function(t){var e=this.$element();return e.is(".dx-state-disabled, .dx-state-disabled *")?void(t.cancel=!0):(this._toggleResizingClass(!0),this._movingSides=this._getMovingSides(t),this._elementLocation=d.locate(e),this._elementSize={width:e.outerWidth(),height:e.outerHeight()},this._renderDragOffsets(t),this._resizeStartAction({event:t,width:this._elementSize.width,height:this._elementSize.height,handles:this._movingSides}),void(t.targetElements=null))},_toggleResizingClass:function(t){this.$element().toggleClass(C,t)},_renderDragOffsets:function(t){var e=this._getArea();if(e){var i=n(t.target).closest("."+x),o=i.outerWidth(),a=i.outerHeight(),s=i.offset(),r=e.offset;t.maxLeftOffset=s.left-r.left,t.maxRightOffset=r.left+e.width-s.left-o,t.maxTopOffset=s.top-r.top,t.maxBottomOffset=r.top+e.height-s.top-a}},_getBorderWidth:function(t,e){if(h.isWindow(t.get(0)))return 0;var i=t.css("border-"+e+"-width");return parseInt(i)||0},_dragHandler:function(t){var e=this.$element(),i=this._movingSides,n=this._elementLocation,o=this._elementSize,a=this._getOffset(t),s=o.width+a.x*(i.left?-1:1),r=o.height+a.y*(i.top?-1:1);(a.x||"strict"===this.option("stepPrecision"))&&this._renderWidth(s),(a.y||"strict"===this.option("stepPrecision"))&&this._renderHeight(r);var l=a.y-((this.$element().outerHeight()||r)-r),c=a.x-((this.$element().outerWidth()||s)-s);d.move(e,{top:n.top+(i.top?l:0),left:n.left+(i.left?c:0)}),this._resizeAction({event:t,width:this.option("width")||s,height:this.option("height")||r,handles:this._movingSides}),v.triggerResizeEvent(e)},_getOffset:function(t){var e=t.offset,i=s.pairToObject(this.option("step")),n=this._getMovingSides(t),o="strict"===this.option("stepPrecision");return n.left||n.right||(e.x=0),n.top||n.bottom||(e.y=0),o?this._getStrictOffset(e,i,n):this._getSimpleOffset(e,i)},_getSimpleOffset:function(t,e){return{x:t.x-t.x%e.h,y:t.y-t.y%e.v}},_getStrictOffset:function(t,e,i){var n=this._elementLocation,o=this._elementSize,a=i.left?n.left:n.left+o.width,s=i.top?n.top:n.top+o.height,r=(a+t.x)%e.h,l=(s+t.y)%e.v,c=Math.sign||function(t){return t=+t,0===t||isNaN(t)?t:t>0?1:-1},h=function(t,e){return(1+.2*c(e))%1*t},d=function(t,e){return Math.abs(t)<.2*e},u=t.x-r,p=t.y-l;return r>h(e.h,t.x)&&(u+=e.h),l>h(e.v,t.y)&&(p+=e.v),{x:!i.left&&!i.right||d(t.x,e.h)?0:u,y:!i.top&&!i.bottom||d(t.y,e.v)?0:p}},_getMovingSides:function(t){var e=n(t.target),i=e.hasClass(E+"-top-left"),o=e.hasClass(E+"-top-right"),a=e.hasClass(E+"-bottom-left"),s=e.hasClass(E+"-bottom-right");return{top:e.hasClass(w)||i||o,left:e.hasClass(I)||i||a,bottom:e.hasClass(S)||a||s,right:e.hasClass(T)||o||s}},_getArea:function(){var t=this.option("area");return g(t)&&(t=t.call(this)),m(t)?this._getAreaFromObject(t):this._getAreaFromElement(t)},_getAreaFromObject:function(t){var e={width:t.right-t.left,height:t.bottom-t.top,offset:{left:t.left,top:t.top}};return this._correctAreaGeometry(e),e},_getAreaFromElement:function(t){var e,i=n(t);return i.length&&(e={width:i.innerWidth(),height:i.innerHeight(),offset:r({top:0,left:0},h.isWindow(i[0])?{}:i.offset())},this._correctAreaGeometry(e,i)),e},_correctAreaGeometry:function(t,e){var i=e?this._getBorderWidth(e,"left"):0,n=e?this._getBorderWidth(e,"top"):0;t.offset.left+=i+this._getBorderWidth(this.$element(),"left"),t.offset.top+=n+this._getBorderWidth(this.$element(),"top"),t.width-=this.$element().outerWidth()-this.$element().innerWidth(),t.height-=this.$element().outerHeight()-this.$element().innerHeight()},_dragEndHandler:function(t){var e=this.$element();this._resizeEndAction({event:t,width:e.outerWidth(),height:e.outerHeight(),handles:this._movingSides}),this._toggleResizingClass(!1)},_renderWidth:function(t){this.option("width",u(t,this.option("minWidth"),this.option("maxWidth")))},_renderHeight:function(t){this.option("height",u(t,this.option("minHeight"),this.option("maxHeight")))},_optionChanged:function(t){switch(t.name){case"disabled":case"handles":this._invalidate();break;case"minWidth":case"maxWidth":this._renderWidth(this.$element().outerWidth());break;case"minHeight":case"maxHeight":this._renderHeight(this.$element().outerHeight());break;case"onResize":case"onResizeStart":case"onResizeEnd":this._renderActions();break;case"area":case"stepPrecision":case"step":break;default:this.callBase(t)}},_clean:function(){this.$element().find("."+x).remove()}});a(b,A),t.exports=A},function(t,e,i){var n=i(7),o=function(){var t={},e=function(e){return t[e]||0};return{obtain:function(i){t[i]=e(i)+1},release:function(i){var o=e(i);if(o<1)throw n.Error("E0014");1===o?delete t[i]:t[i]=o-1},locked:function(t){return e(t)>0}}};t.exports=o},function(t,e,i){var n=i(21),o=i(30),a=i(116),s=i(10).isPlainObject,r=i(31),l=i(93);r.add(function(t){var e=l.addNamespace(t,t+"Binding");a.bindingHandlers[t]={update:function(t,i,r,l){var c=n(t),h=a.utils.unwrapObservable(i()),d=h.execute?h.execute:h;o.off(c,e),o.on(c,e,s(h)?h:{},function(t){d.call(l,l,t)})}}})},function(t,e,i){var n=i(21),o=i(30),a=i(70),s=i(71).compileGetter,r=i(9).extend,l=i(116),c=i(137),h=i(97);l.bindingHandlers.dxAction={update:function(t,e,i,c){var d=n(t),u=l.utils.unwrapObservable(e()),p=u,f={context:t};u.execute&&(p=u.execute,r(f,u));var _=new a(p,f);o.off(d,".dxActionBinding"),o.on(d,h.name+".dxActionBinding",function(e){_.execute({element:d,model:c,evaluate:function(e){var i=c;e.length>0&&"$"===e[0]&&(i=l.contextFor(t));var n=s(e);return n(i)},event:e}),f.bubbling||e.stopPropagation()})}},l.bindingHandlers.dxControlsDescendantBindings={init:function(t,e){return{controlsDescendantBindings:l.unwrap(e())}}},l.bindingHandlers.dxIcon={init:function(t,e){var i=l.utils.unwrapObservable(e())||{},n=c.getImageContainer(i);l.virtualElements.emptyNode(t),n&&l.virtualElements.prepend(t,n.get(0))},update:function(t,e){var i=l.utils.unwrapObservable(e())||{},n=c.getImageContainer(i);l.virtualElements.emptyNode(t),n&&l.virtualElements.prepend(t,n.get(0))}},l.virtualElements.allowedBindings.dxIcon=!0},function(t,e,i){var n=i(21),o=function(t){return!(!t||"string"!=typeof t)&&(/data:.*base64|\.|\//.test(t)?"image":/^[\w-_]+$/.test(t)?"dxIcon":"fontIcon")},a=function(t){var e=o(t),i="dx-icon";switch(e){case"image":return n("<img>").attr("src",t).addClass(i);case"fontIcon":return n("<i>").addClass(i+" "+t);case"dxIcon":return n("<i>").addClass(i+" "+i+"-"+t);default:return null}};e.getImageSourceType=o,e.getImageContainer=a},function(t,e,i){var n=i(17).each,o=i(29),a=i(72),s=i(139),r=i(116),l=o.inherit({ctor:function(t,e){var i=this;i.target=t,i.validationRules=e.validationRules,i.name=e.name,i.isValid=r.observable(!0),i.validationError=r.observable(),n(this.validationRules,function(t,e){e.validator=i})},validate:function(){var t=s.validate(this.target(),this.validationRules,this.name);return this._applyValidationResult(t),t},reset:function(){this.target(null);var t={isValid:!0,brokenRule:null};return this._applyValidationResult(t),t},_applyValidationResult:function(t){t.validator=this,this.target.dxValidator.isValid(t.isValid),this.target.dxValidator.validationError(t.brokenRule),this.fireEvent("validated",[t])}}).include(a);r.extenders.dxValidator=function(t,e){return t.dxValidator=new l(t,e),t.subscribe(t.dxValidator.validate.bind(t.dxValidator)),t},s.registerModelForValidation=function(t){n(t,function(e,i){r.isObservable(i)&&i.dxValidator&&s.registerValidatorInGroup(t,i.dxValidator)})},s.unregisterModelForValidation=function(t){n(t,function(e,i){r.isObservable(i)&&i.dxValidator&&s.removeRegisteredValidator(t,i.dxValidator)})},s.validateModel=s.validateGroup},function(t,e,i){var n=i(29),o=i(9).extend,a=i(25).inArray,s=i(17).each,r=i(72),l=i(7),c=i(13),h=i(10),d=i(45),u=i(111),p=n.inherit({NAME:"base",defaultMessage:function(t){return u.getFormatter("validation-"+this.NAME)(t)},defaultFormattedMessage:function(t){return u.getFormatter("validation-"+this.NAME+"-formatted")(t)},validate:function(t,e){var i=Array.isArray(t)?t:[t],n=!0;return i.length?i.every(function(t){return n=this._validate(t,e)},this):n=this._validate(null,e),n}}),f=p.inherit({NAME:"required",_validate:function(t,e){return!!h.isDefined(t)&&(t!==!1&&(t=String(t),!e.trim&&h.isDefined(e.trim)||(t=t.trim()),""!==t))}}),_=p.inherit({NAME:"numeric",_validate:function(t,e){return!x.required.validate(t,{})||(e.useCultureSettings&&h.isString(t)?!isNaN(d.parse(t)):h.isNumeric(t))}}),m=p.inherit({NAME:"range",_validate:function(t,e){if(!x.required.validate(t,{}))return!0;var i=x.numeric.validate(t,e),n=h.isDefined(t),o=i?parseFloat(t):n&&t.valueOf(),a=e.min,s=e.max;if(!i&&!h.isDate(t)&&!n)return!1;if(h.isDefined(a))return h.isDefined(s)?o>=a&&o<=s:o>=a;if(h.isDefined(s))return o<=s;throw l.Error("E0101")}}),g=p.inherit({NAME:"stringLength",_validate:function(t,e){return t=h.isDefined(t)?String(t):"",!e.trim&&h.isDefined(e.trim)||(t=t.trim()),x.range.validate(t.length,o({},e))}}),v=p.inherit({NAME:"custom",validate:function(t,e){var i=e.validator,n=i&&h.isFunction(i.option)&&i.option("dataGetter"),o=h.isFunction(n)&&n(),a={value:t,validator:i,rule:e};return o&&(a.data=o),e.validationCallback(a)}}),b=p.inherit({NAME:"compare",_validate:function(t,e){if(!e.comparisonTarget)throw l.Error("E0102");o(e,{reevaluate:!0});var i=e.comparisonTarget(),n=e.comparisonType||"==";switch(n){case"==":return t==i;case"!=":return t!=i;case"===":return t===i;case"!==":return t!==i;case">":return t>i;case">=":return t>=i;case"<":return t<i;case"<=":return t<=i}}}),y=p.inherit({NAME:"pattern",_validate:function(t,e){if(!x.required.validate(t,{}))return!0;var i=e.pattern;return h.isString(i)&&(i=new RegExp(i)),i.test(t)}}),C=p.inherit({NAME:"email",_validate:function(t,e){return!x.required.validate(t,{})||x.pattern.validate(t,o({},e,{pattern:/^[\d\w._-]+@[\d\w._-]+\.[\w]+$/i}))}}),x={required:new f,numeric:new _,range:new m,stringLength:new g,custom:new v,compare:new b,pattern:new y,email:new C},w=n.inherit({ctor:function(t){this.group=t,this.validators=[]},validate:function(){var t={isValid:!0,brokenRules:[],validators:[]};return s(this.validators,function(e,i){var n=i.validate();t.isValid=t.isValid&&n.isValid,n.brokenRule&&t.brokenRules.push(n.brokenRule),t.validators.push(i)}),this.fireEvent("validated",[{validators:t.validators,brokenRules:t.brokenRules,isValid:t.isValid}]),t},reset:function(){s(this.validators,function(t,e){e.reset()})}}).include(r),S={groups:[],getGroupConfig:function(t){var e=c.grep(this.groups,function(e){return e.group===t});if(e.length)return e[0]},initGroups:function(){this.groups=[],this.addGroup()},addGroup:function(t){var e=this.getGroupConfig(t);return e||(e=new w(t),this.groups.push(e)),e},removeGroup:function(t){var e=this.getGroupConfig(t),i=a(e,this.groups);return i>-1&&this.groups.splice(i,1),e},_setDefaultMessage:function(t,e,i){h.isDefined(t.message)||(e.defaultFormattedMessage&&h.isDefined(i)?t.message=e.defaultFormattedMessage(i):t.message=e.defaultMessage())},validate:function(t,e,i){var n={name:i,value:t,brokenRule:null,isValid:!0,validationRules:e},o=this;return s(e||[],function(e,a){var s,r=x[a.type];if(!r)throw l.Error("E0100");return h.isDefined(a.isValid)&&a.value===t&&!a.reevaluate?!!a.isValid||(n.isValid=!1,n.brokenRule=a,!1):(a.value=t,s=r.validate(t,a),a.isValid=s,s||(n.isValid=!1,o._setDefaultMessage(a,r,i),n.brokenRule=a),!!a.isValid&&void 0)}),n},registerValidatorInGroup:function(t,e){var i=S.addGroup(t);a(e,i.validators)<0&&i.validators.push(e)},_shouldRemoveGroup:function(t,e){var i=void 0===t,n=t&&"dxValidationGroup"===t.NAME;return!i&&!n&&!e.length},removeRegisteredValidator:function(t,e){var i=S.getGroupConfig(t),n=i&&i.validators,o=a(e,n);o>-1&&(n.splice(o,1),this._shouldRemoveGroup(t,n)&&this.removeGroup(t))},validateGroup:function(t){var e=S.getGroupConfig(t);if(!e)throw l.Error("E0110");return e.validate()},resetGroup:function(t){var e=S.getGroupConfig(t);if(!e)throw l.Error("E0110");return e.reset()}};S.initGroups(),t.exports=S},function(t,e,i){var n=i(116),o=i(27);o.inject({isWrapped:n.isObservable,isWritableWrapped:n.isWritableObservable,wrap:n.observable,unwrap:function(t){return n.isObservable(t)?n.utils.unwrapObservable(t):this.callBase(t)},assign:function(t,e){n.isObservable(t)?t(e):this.callBase(t,e)}})},function(t,e,i){var n=i(23),o=n.afterCleanData,a=n.strategyChanging,s=i(116),r=i(108).compare,l=s.utils.domNodeDisposal.cleanExternalData,c=function(){o(function(t){for(var e=0;e<t.length;e++)t[e].cleanedByJquery=!0;for(e=0;e<t.length;e++)t[e].cleanedByKo||s.cleanNode(t[e]),delete t[e].cleanedByKo;for(e=0;e<t.length;e++)delete t[e].cleanedByJquery}),s.utils.domNodeDisposal.cleanExternalData=function(t){t.cleanedByKo=!0,t.cleanedByJquery||n.cleanData([t])}},h=function(){o(function(){}),s.utils.domNodeDisposal.cleanExternalData=l};c(),a.add(function(t){var e=!!t.fn;e&&r(t.fn.jquery,[2,0])<0&&h()})},function(t,e,i){var n=i(116),o=i(108).compare,a=i(23).strategyChanging,s=function(t){var e=function(t,e){var i=function(){n.cleanNode(this)};e?t.each(i):t.find("*").each(i)},i=t.fn.empty;t.fn.empty=function(){return e(this,!1),i.apply(this,arguments)};var o=t.fn.remove;t.fn.remove=function(t,i){if(!i){var n=this;t&&(n=n.filter(t)),e(n,!0)}return o.call(this,t,i)};var a=t.fn.html;t.fn.html=function(t){return"string"==typeof t&&e(this,!1),a.apply(this,arguments)};var s=t.fn.replaceWith;t.fn.replaceWith=function(){var t=s.apply(this,arguments);return this.parent().length||e(this,!0),t}};a.add(function(t){var e=!!t.fn;e&&o(t.fn.jquery,[2,0])<0&&s(t)})},function(t,e,i){i(144);var n=i(145),o=i(158),a=i(9).extend,s=i(10),r=i(78),l=i(63),c=s.isFunction,h=s.isPlainObject,d=i(13).noop;i(115);var u=l.inherit({ctor:function(t,e){h(t)&&(e=t,t=n("<div>")),this.callBase(t,e)},_setDeprecatedOptions:function(){this.callBase(),a(this._deprecatedOptions,{iconSrc:{since:"15.1",alias:"icon"}})},_getDefaultOptions:function(){return a(this.callBase(),{onExecute:null,id:null,title:"",icon:"",visible:!0,disabled:!1,renderStage:"onViewShown"})},execute:function(){var t=this._options.disabled;if(c(t)&&(t=!!t.apply(this,arguments)),t)throw o.Error("E3004",this._options.id);this.fireEvent("beforeExecute",arguments),this._createActionByOption("onExecute").apply(this,arguments),this.fireEvent("afterExecute",arguments)},_render:function(){this.callBase(),this.$element().addClass("dx-command")},_renderDisabledState:d,_dispose:function(){this.callBase(),this.$element().removeData(this.NAME)}});r("dxCommand",u),t.exports=u},function(t,e,i){var n=i(145),o=i(108).compare,a=i(8),s=i(146)();if(s&&o(n.fn.jquery,[1,10])<0)throw a.Error("E0012");i(147),i(148),i(149),i(150),i(152),i(153),i(154),i(155),i(156),i(157)},function(t,e){t.exports=window.jQuery},function(t,e,i){var n=i(145),o=i(14),a=o().useJQuery;n&&a!==!1&&o({useJQuery:!0}),t.exports=function(){return n&&o().useJQuery}},function(t,e,i){var n=i(145),o=i(22),a=i(146)();a&&o.set(n)},function(t,e,i){var n=i(145),o=i(146)(),a=i(108).compare,s=i(17).each,r=i(10).isNumeric,l=i(93).setEventFixMethod,c=i(68),h=i(34);if(o)if(a(n.fn.jquery,[3])<0){var d={2:"touch",3:"pen",4:"mouse"};s(["MSPointerDown","MSPointerMove","MSPointerUp","MSPointerCancel","MSPointerOver","MSPointerOut","mouseenter","mouseleave","pointerdown","pointermove","pointerup","pointercancel","pointerover","pointerout","pointerenter","pointerleave"],function(){n.event.fixHooks[this]={filter:function(t,e){var i=e.pointerType;return r(i)&&(t.pointerType=d[i]),t},props:n.event.mouseHooks.props.concat(["pointerId","pointerType","originalTarget","width","height","pressure","result","tiltX","charCode","tiltY","detail","isPrimary","prevValue"])}}),s(["touchstart","touchmove","touchend","touchcancel"],function(){n.event.fixHooks[this]={filter:function(t,e){return h(function(i,n){t[i]=n(e)}),t},props:n.event.mouseHooks.props.concat(["touches","changedTouches","targetTouches","detail","result","originalTarget","charCode","prevValue"])}}),n.event.fixHooks.wheel=n.event.mouseHooks;var u={props:n.event.mouseHooks.props.concat(["pointerType","pointerId","pointers"])};c.callbacks.add(function(t){n.event.fixHooks[t]=u});var p=function(t,e){for(var i=n.event.fixHooks[e.type]||n.event.mouseHooks,o=i.props?n.event.props.concat(i.props):n.event.props,a=o.length;a--;){var s=o[a];t[s]=e[s]}return i.filter?i.filter(t,e):t};l(p)}else h(function(t,e){n.event.addProp(t,e)})},function(t,e,i){var n=i(145),o=i(15),a=i(146)(),s=i(108).compare;if(a){var r=n.Deferred,l={Deferred:r};l.when=s(n.fn.jquery,[3])<0?n.when:function(t){return 0===arguments.length?(new r).resolve():1===arguments.length?t&&t.then?t:(new r).resolve(t):n.when.apply(n,arguments)},o.setStrategy(l);
|
|
18
|
+
}},function(t,e,i){var n=i(145),o=i(151),a=i(77);if(n&&!o.fired()){var s=n.holdReady||n.fn.holdReady;s(!0),o.add(function(){a(function(){s(!1)})})}},function(t,e,i){var n=i(16);t.exports=new n},function(t,e,i){var n=i(145),o=i(30),a=i(146)(),s=i(31);a&&(s.add(function(t,e){n.event.special[t]=e}),o.forcePassiveFalseEventNames.forEach(function(t){n.event.special[t]={setup:function(e,i,n){this.addEventListener(t,n,{passive:!1})}}}),o.set({on:function(t){n(t).on.apply(n(t),Array.prototype.slice.call(arguments,1))},one:function(t){n(t).one.apply(n(t),Array.prototype.slice.call(arguments,1))},off:function(t){n(t).off.apply(n(t),Array.prototype.slice.call(arguments,1))},trigger:function(t){n(t).trigger.apply(n(t),Array.prototype.slice.call(arguments,1))},triggerHandler:function(t){n(t).triggerHandler.apply(n(t),Array.prototype.slice.call(arguments,1))},Event:n.Event}))},function(t,e,i){var n=i(145),o=i(91);n&&o.setEasing(n.easing)},function(t,e,i){var n=i(145),o=i(23),a=i(146)();a&&o.setDataStrategy(n)},function(t,e,i){var n=i(64).setPublicElementWrapper,o=i(146)(),a=function(t){return t};o&&n(a)},function(t,e,i){var n=i(145),o=i(79),a=i(7);if(n){var s=function(t,e){n.fn[t]=function(i){var n,o="string"==typeof i;if(o){var s=i,r=[].slice.call(arguments).slice(1);this.each(function(){var i=e.getInstance(this);if(!i)throw a.Error("E0009",t);var o=i[s],l=o.apply(i,r);void 0===n&&(n=l)})}else this.each(function(){var t=e.getInstance(this);t?t.option(i):new e(this,i)}),n=this;return n}};o.add(s)}},function(t,e,i){var n=i(145),o=i(60),a=i(146)();a&&o.setStrategy(n.ajax)},function(t,e,i){var n=i(8),o=i(7);t.exports=n(o.ERROR_MESSAGES,{E3001:"Routing rule is not found for the '{0}' URI.",E3002:"The passed object cannot be formatted into a URI string by the application's router. An appropriate route should be registered.",E3003:"Unable to navigate. Application is being initialized.",E3004:"Cannot execute the command: {0}.",E3005:"The '{0}' command {1} is not registered in the application's command mapping. Go to http://dxpr.es/1bTjfj1 for more details.",E3006:"Unknown navigation target: '{0}'. Use the 'current', 'back' or 'blank' values.",E3007:"Error while restoring the application state. The state has been cleared. Refresh the page.",E3008:"Unable to go back.",E3009:"Unable to go forward.",E3010:"The command's 'id' option should be specified.\r\nProcessed markup: {0}\n",E3011:"Layout controller cannot be resolved. There are no appropriate layout controllers for the current context. Check browser console for details.",E3012:"Layout controller cannot be resolved. Two or more layout controllers suit the current context. Check browser console for details.",E3013:"The '{0}' template with the '{1}' name is not found. Make sure the case is correct in the specified view name and the template fits the current context.",E3014:"All the children of the dxView element should be either of the dxCommand or dxContent type.\r\nProcessed markup: {0}",E3015:"The 'exec' method should be called before the 'finalize' method.",E3016:"Unknown transition type '{0}'.",E3018:"Unable to parse options.\nMessage: {0};\nOptions value: {1}.",E3019:"View templates should be updated according to the 13.1 changes. Go to http://dxpr.es/15ikrJA for more details.",E3020:"Concurrent templates are found:\r\n{0}Target device:\r\n{1}.",E3021:"Remote template cannot be loaded.\r\nUrl:{0}\r\nError:{1}.",E3022:"Cannot initialize the HtmlApplication component.",E3023:"Navigation item is not found",E3024:"Layout controller is not initialized",W3001:"A view with the '{0}' key doesn't exist.",W3002:"A view with the '{0}' key has already been released.",W3003:"Layout resolving context:\n{0}\nAvailable layout controller registrations:\n{1}\n",W3004:"Layout resolving context:\n{0}\nConcurent layout controller registrations for the context:\n{1}\n",W3005:'Direct hash-based navigation is detected in a mobile application. Use data-bind="dxAction: url" instead of href="#url" to avoid navigation issues.\nFound markup:\n{0}\n'})},function(t,e,i){var n=i(9).extend,o=i(10),a=i(17),s=i(25).inArray,r=i(29),l=encodeURIComponent("json:"),c=r.inherit({_trimSeparators:function(t){return t.replace(/^[\/.]+|\/+$/g,"")},_escapeRe:function(t){return t.replace(/[^-\w]/g,"\\$1")},_checkConstraint:function(t,e){t=String(t),"string"==typeof e&&(e=new RegExp(e));var i=e.exec(t);return!(!i||i[0]!==t)},_ensureReady:function(){var t=this;return!this._patternRe&&(this._pattern=this._trimSeparators(this._pattern),this._patternRe="",this._params=[],this._segments=[],this._separators=[],this._pattern.replace(/[^\/]+/g,function(e,i){t._segments.push(e),i&&t._separators.push(t._pattern.substr(i-1,1))}),a.each(this._segments,function(e){var i=this,n=e?t._separators[e-1]:"";":"===i.charAt(0)?(i=i.substr(1),t._params.push(i),t._patternRe+="(?:"+n+"([^/]*))",i in t._defaults&&(t._patternRe+="?")):t._patternRe+=n+t._escapeRe(i)}),void(this._patternRe=new RegExp("^"+this._patternRe+"$")))},ctor:function(t,e,i){this._pattern=t||"",this._defaults=e||{},this._constraints=i||{}},parse:function(t){var e=this;this._ensureReady();var i=this._patternRe.exec(t);if(!i)return!1;var o=n({},this._defaults);return a.each(this._params,function(t){var n=t+1;i.length>=n&&i[n]&&(o[this]=e.parseSegment(i[n]))}),a.each(this._constraints,function(t){if(!e._checkConstraint(o[t],e._constraints[t]))return o=!1,!1}),o},format:function(t){var e=this,i="";this._ensureReady();var r=n({},this._defaults),l=0,c=[],h=[],d={};a.each(t,function(i,n){t[i]=e.formatSegment(n),i in r||(d[i]=!0)}),a.each(this._segments,function(i,n){if(c[i]=i?e._separators[i-1]:"",":"===n.charAt(0)){var o=n.substr(1);if(!(o in t||o in e._defaults))return c=null,!1;if(o in e._constraints&&!e._checkConstraint(t[o],e._constraints[o]))return c=null,!1;o in t?(void 0!==t[o]&&(r[o]=t[o],c[i]+=t[o],l=i),delete d[o]):o in r&&(c[i]+=r[o],h.push(i))}else c[i]+=n,l=i}),a.each(r,function(i,n){if(n&&s(":"+i,e._segments)===-1&&t[i]!==n)return c=null,!1});var u=0;if(o.isEmptyObject(d)||(i="?",a.each(d,function(e){i+=e+"="+t[e]+"&",u++}),i=i.substr(0,i.length-1)),null===c)return!1;h.length&&a.map(h,function(t){t>=l&&(c[t]="")});var p=c.join("");return p=p.replace(/\/+$/,""),{uri:p+i,unusedCount:u}},formatSegment:function(t){return Array.isArray(t)||o.isPlainObject(t)?l+encodeURIComponent(JSON.stringify(t)):encodeURIComponent(t)},parseSegment:function(t){if(t.substr(0,l.length)===l)try{return JSON.parse(decodeURIComponent(t.substr(l.length)))}catch(t){}return decodeURIComponent(t)}}),h=r.inherit({ctor:function(){this._registry=[]},_trimSeparators:function(t){return t.replace(/^[\/.]+|\/+$/g,"")},_createRoute:function(t,e,i){return new c(t,e,i)},register:function(t,e,i){this._registry.push(this._createRoute(t,e,i))},_parseQuery:function(t){var e={},i=t.split("&");return a.each(i,function(t,i){var n=i.split("=");e[n[0]]=decodeURIComponent(n[1])}),e},parse:function(t){var e,i=this;t=this._trimSeparators(t);var o=t.split("?",2),s=o[0],r=o[1];return a.each(this._registry,function(){var t=this.parse(s);if(t!==!1)return e=t,r&&(e=n(e,i._parseQuery(r))),!1}),!!e&&e},format:function(t){var e=!1,i=99999;return t=t||{},a.each(this._registry,function(){var o=n(!0,{},t),a=this.format(o);a!==!1&&i>a.unusedCount&&(i=a.unusedCount,e=a.uri)}),e}});t.exports=h,t.exports.Route=c},function(t,e,i){var n=i(29),o=i(25).inArray,a=i(17).each,s=n.inherit({ctor:function(){this.storage={}},getItem:function(t){return this.storage[t]},setItem:function(t,e){this.storage[t]=e},removeItem:function(t){delete this.storage[t]}}),r=n.inherit({ctor:function(t){t=t||{},this.storage=t.storage||new s,this.stateSources=t.stateSources||[]},addStateSource:function(t){this.stateSources.push(t)},removeStateSource:function(t){var e=o(t,this.stateSources);e>-1&&(this.stateSources.splice(e,1),t.removeState(this.storage))},saveState:function(){var t=this;a(this.stateSources,function(e,i){i.saveState(t.storage)})},restoreState:function(){var t=this;a(this.stateSources,function(e,i){i.restoreState(t.storage)})},clearState:function(){var t=this;a(this.stateSources,function(e,i){i.removeState(t.storage)})}});t.exports=r,t.exports.MemoryKeyValueStorage=s},function(t,e,i){function n(t,e,i){e.on(t,function(){i.fireEvent(t,arguments)})}var o=i(25).inArray,a=i(17).each,s=i(29),r=i(72),l=s.inherit({ctor:function(){this._cache={}},setView:function(t,e){this._cache[t]=e},getView:function(t){return this._cache[t]},removeView:function(t){var e=this._cache[t];return e&&(delete this._cache[t],this.fireEvent("viewRemoved",[{viewInfo:e}])),e},clear:function(){var t=this;a(this._cache,function(e){t.removeView(e)})},hasView:function(t){return t in this._cache}}).include(r),c=l.inherit({setView:function(t,e){this.callBase(t,e),this.removeView(t)}}),h=s.inherit({ctor:function(t){this._filter=t.filter,this._viewCache=t.viewCache,this.viewRemoved=this._viewCache.viewRemoved,n("viewRemoved",this._viewCache,this)},setView:function(t,e){this._viewCache.setView(t,e),this._filter(t,e)||this._viewCache.removeView(t)},getView:function(t){return this._viewCache.getView(t)},removeView:function(t){return this._viewCache.removeView(t)},clear:function(){return this._viewCache.clear()},hasView:function(t){return this._viewCache.hasView(t)}}).include(r),d=5,u=s.inherit({ctor:function(t){this._keys=[],this._size=t.size||d,this._viewCache=t.viewCache,this.viewRemoved=this._viewCache.viewRemoved,n("viewRemoved",this._viewCache,this)},setView:function(t,e){this.hasView(t)||(this._keys.length===this._size&&this.removeView(this._keys[0]),this._keys.push(t)),this._viewCache.setView(t,e)},getView:function(t){var e=o(t,this._keys);return e<0?null:(this._keys.push(t),this._keys.splice(e,1),this._viewCache.getView(t))},removeView:function(t){var e=o(t,this._keys);return e>-1&&this._keys.splice(e,1),this._viewCache.removeView(t)},clear:function(){return this._keys=[],this._viewCache.clear()},hasView:function(t){return this._viewCache.hasView(t)}}).include(r),p=s.inherit({ctor:function(t){this._viewCache=t.viewCache||new l,this._navigationManager=t.navigationManager,this._navigationManager.on("itemRemoved",this._onNavigationItemRemoved.bind(this)),this.viewRemoved=this._viewCache.viewRemoved,n("viewRemoved",this._viewCache,this)},_onNavigationItemRemoved:function(t){this.removeView(t.key)},setView:function(t,e){this._viewCache.setView(t,e)},getView:function(t){return this._viewCache.getView(t)},removeView:function(t){return this._viewCache.removeView(t)},clear:function(){return this._viewCache.clear()},hasView:function(t){return this._viewCache.hasView(t)}}).include(r);t.exports=l,t.exports.NullViewCache=c,t.exports.ConditionalViewCacheDecorator=h,t.exports.CapacityViewCacheDecorator=u,t.exports.HistoryDependentViewCacheDecorator=p},function(t,e,i){i(144);var n=i(145),o=i(163).MarkupComponent,a=i(10).isPlainObject,s=i(78);i(115);var r=o.inherit({ctor:function(t,e){a(t)&&(e=t,t=n("<div>")),this.callBase(t,e)},_setDefaultOptions:function(){this.callBase(),this.option({id:null})},_render:function(){this.callBase(),this.element().addClass("dx-command-container")}});s("dxCommandContainer",r),t.exports=r},function(t,e,i){i(144);var n=i(145),o=i(29),a=i(9).extend,s=i(13).noop,r=i(66),l=o.inherit({ctor:function(t,e){this.NAME=r.name(this.constructor),e=e||{},this._$element=n(t),r.attachInstanceToElement(this._$element,this,this._dispose),e.fromCache?this._options=e:(this._options={},this._setDefaultOptions(),e&&this.option(e),this._render())},_setDefaultOptions:s,_render:s,_dispose:s,element:function(){return this._$element},option:function(t,e){if(0===arguments.length)return this._options;if(1===arguments.length){if("string"==typeof t)return this._options[t];e=t,a(this._options,e)}else this._options[t]=e},instance:function(){return this}});l.getInstance=function(t){return r.getInstanceByElement(n(t),this)},e.MarkupComponent=l},function(t,e,i){var n=i(158),o=i(64),a=i(78),s=i(163).MarkupComponent;i(115);var r=s.inherit({_setDefaultOptions:function(){this.callBase(),this.option({name:null,title:null})},ctor:function(){this._id=o.uniqueId(),this.callBase.apply(this,arguments)},_render:function(){this.callBase(),this.element().addClass("dx-view"),this.element().attr("dx-data-template-id",this._id)},getId:function(){return this._id}}),l=s.inherit({_setDefaultOptions:function(){this.callBase(),this.option({name:null})},_render:function(){this.callBase(),this.element().addClass("dx-layout")}}),c=s.inherit({_setDefaultOptions:function(){this.callBase(),this.option({viewName:null})},_render:function(){this.callBase(),this.element().addClass("dx-view-placeholder")}}),h=function(t,e,i,n){"absolute"===n?t.addClass("dx-transition-absolute"):t.addClass("dx-transition-static"),t.addClass("dx-transition").addClass("dx-transition-"+i).addClass("dx-transition-"+e).attr("data-dx-transition-type",e).attr("data-dx-transition-name",i)},d=function(t){t.addClass("dx-transition-inner-wrapper")},u=s.inherit({_setDefaultOptions:function(){this.callBase(),this.option({name:null,type:void 0,animation:"slide"})},_render:function(){this.callBase();var t=this.element();h(t,this.option("type")||this.option("animation"),this.option("name"),"absolute"),t.wrapInner("<div>"),d(t.children()),this.option("type")&&n.log("W0003","dxTransition","type","15.1","Use the 'animation' property instead")},_clean:function(){this.callBase(),this.element().empty()}}),p=s.inherit({_setDefaultOptions:function(){this.callBase(),this.option({name:null,transition:void 0,animation:"none",contentCssPosition:"absolute"})},_render:function(){this.callBase();var t=this.element();t.addClass("dx-content-placeholder").addClass("dx-content-placeholder-"+this.option("name")),t.attr("data-dx-content-placeholder-name",this.option("name")),h(t,this.option("transition")||this.option("animation"),this.option("name"),this.option("contentCssPosition")),this.option("transition")&&n.log("W0003","dxContentPlaceholder","transition","15.1","Use the 'animation' property instead")}}),f=s.inherit({_setDefaultOptions:function(){this.callBase(),this.option({targetPlaceholder:null})},_optionChanged:function(){this._refresh()},_clean:function(){this.callBase(),this.element().removeClass(this._currentClass)},_render:function(){this.callBase();var t=this.element();t.addClass("dx-content"),this._currentClass="dx-content-"+this.option("targetPlaceholder"),t.attr("data-dx-target-placeholder-id",this.option("targetPlaceholder")),t.addClass(this._currentClass),d(t)}});a("dxView",r),a("dxLayout",l),a("dxViewPlaceholder",c),a("dxContentPlaceholder",p),a("dxTransition",u),a("dxContent",f),e.dxView=r,e.dxLayout=l,e.dxViewPlaceholder=c,e.dxContentPlaceholder=p,e.dxTransition=u,e.dxContent=f},function(t,e,i){i(144);var n=i(145),o=i(13),a=i(69),s=i(9),r=i(17).each,l=i(158),c=i(166).Application,h=i(161).ConditionalViewCacheDecorator,d=i(174),u=i(175),p=i(177).ViewEngine,f=i(111),_=i(76).value,m=i(81),g=i(74),v=i(126),b=i(95),y=i(88),C=i(15).when;i(178),i(179);var x="dx-viewport",w="layout-change",S=c.inherit({ctor:function(t){t=t||{},this.callBase(t),this._$root=n(t.rootNode||document.body),this._initViewport(t.viewPort),"mobileApp"===this._applicationMode&&m.initMobileViewport(t.viewPort),this.device=t.device||g.current(),this.commandManager=t.commandManager||new u({commandMapping:this.commandMapping}),this._initTemplateContext(),this.viewEngine=t.viewEngine||new p({$root:this._$root,device:this.device,templateCacheStorage:t.templateCacheStorage||window.localStorage,templatesVersion:t.templatesVersion,templateContext:this._templateContext}),this.components.push(this.viewEngine),this._initMarkupFilters(this.viewEngine),this._layoutSet=t.layoutSet||d.layoutSets.default,this._animationSet=t.animationSet||d.animationSets.default,this._availableLayoutControllers=[],this._activeLayoutControllersStack=[],this.transitionExecutor=new b.TransitionExecutor,this._initAnimations(this._animationSet)},_initAnimations:function(t){t&&(r(t,function(t,e){r(e,function(e,i){y.presets.registerPreset(t,i)})}),y.presets.applyChanges())},_localizeMarkup:function(t){f.localizeNode(t)},_notifyIfBadMarkup:function(t){t.each(function(){var t=n(this).html();/href="#/.test(t)&&l.log("W3005",t)})},_initMarkupFilters:function(t){var e=[];e.push(this._localizeMarkup),t.markupLoaded&&t.markupLoaded.add(function(t){r(e,function(e,i){i(t.markup)})})},_createViewCache:function(t){var e=this.callBase(t);return t.viewCache||(e=new h({filter:function(t,e){return!e.viewTemplateInfo.disableCache},viewCache:e})),e},_initViewport:function(){this._$viewPort=this._getViewPort(),_(this._$viewPort)},_getViewPort:function(){var t=n("."+x);return t.length||(t=n("<div>").addClass(x).appendTo(this._$root)),t},_initTemplateContext:function(){this._templateContext=new a({orientation:g.orientation()}),g.on("orientationChanged",function(t){this._templateContext.option("orientation",t.orientation)}.bind(this))},_showViewImpl:function(t,e){var i=this,o=n.Deferred(),a=o.promise(),s=t.layoutController;return i._obtainViewLink(t),s.showView(t,e).done(function(){i._activateLayoutController(s,i._getTargetNode(t),e).done(function(){o.resolve()})}),v.lock(a),a},_resolveLayoutController:function(t){var e={viewInfo:t,layoutController:null,availableLayoutControllers:this._availableLayoutControllers};return this._processEvent("resolveLayoutController",e,t.model),e.layoutController||this._resolveLayoutControllerImpl(t)},_checkLayoutControllerIsInitialized:function(t){if(t){var e=!1;if(r(this._layoutSet,function(i,n){if(n.controller===t)return e=!0,!1}),!e)throw l.Error("E3024")}},_ensureOneLayoutControllerFound:function(t,e){var i=function(t,e){return"controller"===t?"[controller]: { name:"+e.name+" }":e};if(!e.length)throw l.log("W3003",JSON.stringify(t,null,4),JSON.stringify(this._availableLayoutControllers,i,4)),l.Error("E3011");if(e.length>1)throw l.log("W3004",JSON.stringify(t,null,4),JSON.stringify(e,i,4)),l.Error("E3012")},_resolveLayoutControllerImpl:function(t){var e=t.viewTemplateInfo||{},i=t.navigateOptions||{},n=s.extend({root:!t.canBack,customResolveRequired:!1,pane:e.pane,modal:void 0!==i.modal?i.modal:e.modal||!1},g.current()),a=o.findBestMatches(n,this._availableLayoutControllers);return this._ensureOneLayoutControllerFound(n,a),a[0].controller},_onNavigatingBack:function(t){if(this.callBase.apply(this,arguments),!t.cancel&&!this.canBack()&&this._activeLayoutControllersStack.length>1){var e=this._activeLayoutControllersStack[this._activeLayoutControllersStack.length-2],i=e.activeViewInfo();t.cancel=!0,this._activateLayoutController(e,void 0,"backward"),this.navigationManager.currentItem(i.key)}},_activeLayoutController:function(){return this._activeLayoutControllersStack.length?this._activeLayoutControllersStack[this._activeLayoutControllersStack.length-1]:void 0},_getTargetNode:function(t){var e=(t.navigateOptions||{}).event;return e?n(e.target):void 0},_activateLayoutController:function(t,e,i){var o=this,a=o._activeLayoutController();if(a===t)return n.Deferred().resolve().promise();var s=n.Deferred();return t.ensureActive(e).done(function(e){o._deactivatePreviousLayoutControllers(t,i,e).done(function(){o._activeLayoutControllersStack.push(t),s.resolve()})}),s.promise()},_deactivatePreviousLayoutControllers:function(t,e){var i=this,o=[],a=i._activeLayoutControllersStack.pop();if(!a)return n.Deferred().resolve().promise();if(t.isOverlay)i._activeLayoutControllersStack.push(a),o.push(a.disable());else{for(var s=n.Deferred(),r=!1,l=function(t,e){return function(){t.deactivate().done(function(){e.resolve()})}};a&&a!==t;){var c=n.Deferred();a.isOverlay?r=!0:r||i.transitionExecutor.leave(a.element(),w,{direction:e}),s.promise().done(l(a,c)),o.push(c.promise()),a=i._activeLayoutControllersStack.pop()}r?s.resolve():(i.transitionExecutor.enter(t.element(),w,{direction:e}),i.transitionExecutor.start().done(function(){s.resolve()}))}return C.apply(n,o)},init:function(){var t=this,e=this.callBase();return e.done(function(){t._initLayoutControllers(),t.renderNavigation()}),e},_disposeView:function(t){t.layoutController.disposeView&&t.layoutController.disposeView(t),this.callBase(t)},viewPort:function(){return this._$viewPort},_createViewInfo:function(){var t=this.callBase.apply(this,arguments),e=this.getViewTemplateInfo(t.viewName);if(!e)throw l.Error("E3013","dxView",t.viewName);return t.viewTemplateInfo=e,t.layoutController=this._resolveLayoutController(t),t},_createViewModel:function(t){this.callBase(t),s.extendFromObject(t.model,t.viewTemplateInfo)},_initLayoutControllers:function(){var t=this;r(t._layoutSet,function(e,i){var n=i.controller,a=g.current();o.findBestMatches(a,[i]).length&&(t._availableLayoutControllers.push(i),n.init&&n.init({app:t,$viewPort:t._$viewPort,navigationManager:t.navigationManager,viewEngine:t.viewEngine,templateContext:t._templateContext,commandManager:t.commandManager}),n.on&&(n.on("viewReleased",function(e){t._onViewReleased(e)}),n.on("viewHidden",function(e){t._onViewHidden(e)}),n.on("viewRendered",function(e){t._processEvent("viewRendered",{viewInfo:e},e.model)}),n.on("viewShowing",function(e,i){t._processEvent("viewShowing",{viewInfo:e,direction:i,params:e.routeData},e.model)}),n.on("viewShown",function(e,i){t._processEvent("viewShown",{viewInfo:e,direction:i,params:e.routeData},e.model)})))})},_onViewReleased:function(t){this._releaseViewLink(t)},renderNavigation:function(){var t=this;r(t._availableLayoutControllers,function(e,i){var n=i.controller;n.renderNavigation&&n.renderNavigation(t.navigation)})},getViewTemplate:function(t){return this.viewEngine.getViewTemplate(t)},getViewTemplateInfo:function(t){var e=this.viewEngine.getViewTemplateInfo(t);return e&&e.option()},loadTemplates:function(t){return this.viewEngine.loadTemplates(t)},templateContext:function(){return this._templateContext}});t.exports=S},function(t,e,i){i(144);var n,o=i(145),a=i(29),s=a.abstract,r=i(70),l=i(13),c=i(10),h=i(17),d=i(9).extend,u=i(167).utils.mergeCommands,p=i(168).createActionExecutors,f=i(159),_=i(169),m=i(160),g=i(143),v=i(111),b=i(172),y=i(161),C=i(72),x=i(75).sessionStorage,w=i(173),S=i(158),I=i(15).when,T="InProgress",E="Inited",D=a.inherit({ctor:function(t){t=t||{},this._options=t,this.namespace=t.namespace||window,this._applicationMode=t.mode?t.mode:"mobileApp",this.components=[],n=v.localizeString("@Back"),this.router=t.router||new f;var e={mobileApp:_.StackBasedNavigationManager,webSite:_.HistoryBasedNavigationManager};this.navigationManager=t.navigationManager||new e[this._applicationMode]({keepPositionInStack:"keepHistory"===t.navigateToRootViewMode}),this.navigationManager.on("navigating",this._onNavigating.bind(this)),this.navigationManager.on("navigatingBack",this._onNavigatingBack.bind(this)),this.navigationManager.on("navigated",this._onNavigated.bind(this)),this.navigationManager.on("navigationCanceled",this._onNavigationCanceled.bind(this)),this.stateManager=t.stateManager||new m({storage:t.stateStorage||x()}),this.stateManager.addStateSource(this.navigationManager),this.viewCache=this._createViewCache(t),this.commandMapping=this._createCommandMapping(t.commandMapping),this.createNavigation(t.navigation),this._isNavigating=!1,this._viewLinksHash={},this._removedViewInfos=[],r.registerExecutor(p(this)),this.components.push(this.router),this.components.push(this.navigationManager)},_createViewCache:function(t){var e;return e=t.viewCache?t.viewCache:t.disableViewCache?new y.NullViewCache:new y.CapacityViewCacheDecorator({size:t.viewCacheSize,viewCache:new y}),e.on("viewRemoved",function(t){this._releaseViewLink(t.viewInfo)}.bind(this)),e},_createCommandMapping:function(t){var e=t;return t instanceof b||(e=new b,e.load(b.defaultMapping||{}).load(t||{})),e},createNavigation:function(t){this.navigation=this._createNavigationCommands(t),this._mapNavigationCommands(this.navigation,this.commandMapping)},_createNavigationCommands:function(t){if(!t)return[];var e=0;return h.map(t,function(t){var i;return i=t instanceof g?t:new g(d({root:!0},t)),i.option("id")||i.option("id","navigation_"+e++),i})},_mapNavigationCommands:function(t,e){var i=h.map(t,function(t){return t.option("id")});e.mapCommands("global-navigation",i)},_callComponentMethod:function(t,e){var i=[];return h.each(this.components,function(n,o){if(o[t]&&c.isFunction(o[t])){var a=o[t](e);a&&a.done&&i.push(a)}}),I.apply(o,i)},init:function(){var t=this;return t._initState=T,t._callComponentMethod("init").done(function(){t._initState=E,t._processEvent("initialized")}).fail(function(t){throw t||S.Error("E3022")})},_onNavigatingBack:function(t){this._processEvent("navigatingBack",t)},_onNavigating:function(t){var e=this;if(e._isNavigating)return e._pendingNavigationArgs=t,void(t.cancel=!0);e._isNavigating=!0,delete e._pendingNavigationArgs;var i=this.router.parse(t.uri);if(!i)throw S.Error("E3001",t.uri);var n=this.router.format(i);t.uri!==n&&n?(t.cancel=!0,t.cancelReason="redirect",l.executeAsync(function(){e.navigate(n,t.options)})):e._processEvent("navigating",t)},_onNavigated:function(t){var e,i=this,n=t.options.direction,o=i._acquireViewInfo(t.item,t.options);return o.model||(this._processEvent("beforeViewSetup",{viewInfo:o}),i._createViewModel(o),i._createViewCommands(o),this._processEvent("afterViewSetup",{viewInfo:o})),i._highlightCurrentNavigationCommand(o),e=i._showView(o,n).always(function(){i._isNavigating=!1;var t=i._pendingNavigationArgs;t&&l.executeAsync(function(){i.navigate(t.uri,t.options)})})},_isViewReadyToShow:function(t){return!!t.model},_onNavigationCanceled:function(t){var e=this;if(!e._pendingNavigationArgs||e._pendingNavigationArgs.uri!==t.uri){var i=e.navigationManager.currentItem();i&&l.executeAsync(function(){var n=e._acquireViewInfo(i,t.options);e._highlightCurrentNavigationCommand(n,!0)}),e._isNavigating=!1}},_disposeRemovedViews:function(){var t=this;h.each(t._viewLinksHash,function(e,i){i.linkCount||(t._disposeRemovedView(i.viewInfo),delete t._viewLinksHash[e])}),this._removedViewInfos.forEach(function(e){t._disposeRemovedView(e)}),this._removedViewInfos=[]},_disposeRemovedView:function(t){var e={viewInfo:t};this._processEvent("viewDisposing",e,t.model),this._disposeView(t),this._processEvent("viewDisposed",e,t.model)},_onViewHidden:function(t){var e={viewInfo:t};this._processEvent("viewHidden",e,e.viewInfo.model)},_disposeView:function(t){var e=t.commands||[];h.each(e,function(t,e){e._dispose()})},_acquireViewInfo:function(t,e){var i=this.router.parse(t.uri),n=this._getViewInfoKey(t,i),o=this.viewCache.getView(n);return o?this._updateViewInfo(o,t,e):(o=this._createViewInfo(t,e),this._obtainViewLink(o),this.viewCache.setView(n,o)),o},_getViewInfoKey:function(t,e){var i={key:t.key,navigationItem:t,routeData:e};return this._processEvent("resolveViewCacheKey",i),i.key},_processEvent:function(t,e,i){this._callComponentMethod(t,e),this.fireEvent(t,e&&[e]);var n=(i||{})[t];n&&n.call(i,e)},_updateViewInfo:function(t,e,i){var n=e.uri,o=this.router.parse(n);t.viewName=o.view,t.routeData=o,t.uri=n,t.navigateOptions=i,t.canBack=this.canBack(i.stack),t.previousViewInfo=this._getPreviousViewInfo(i)},_createViewInfo:function(t,e){var i=t.uri,n=this.router.parse(i),o={key:this._getViewInfoKey(t,n)};return this._updateViewInfo(o,t,e),o},_createViewModel:function(t){t.model=t.model||this._callViewCodeBehind(t)},_createViewCommands:function(t){t.commands=t.model.commands||[],t.canBack&&"webSite"!==this._applicationMode&&this._appendBackCommand(t)},_callViewCodeBehind:function(t){var e=l.noop,i=t.routeData;return i.view in this.namespace&&(e=this.namespace[i.view]),e.call(this.namespace,i,t)||{}},_appendBackCommand:function(t){var e=t.commands,i=this,o=n;i._options.useViewTitleAsBackText&&(o=((t.previousViewInfo||{}).model||{}).title||o);var a=[new g({id:"back",title:o,behavior:"back",onExecute:function(){i.back({stack:t.navigateOptions.stack})},icon:"arrowleft",type:"back",renderStage:i._options.useViewTitleAsBackText?"onViewRendering":"onViewShown"})],s=u(a,e);e.length=0,e.push.apply(e,s)},_showView:function(t,e){var i=this,n={viewInfo:t,direction:e,params:t.routeData};return w.processRequestResultLock.obtain(),i._showViewImpl(n.viewInfo,n.direction).done(function(){l.executeAsync(function(){w.processRequestResultLock.release(),i._processEvent("viewShown",n,t.model),i._disposeRemovedViews()})})},_highlightCurrentNavigationCommand:function(t,e){var i,n=this,o=t.model&&t.model.currentNavigationItemId;void 0!==o&&h.each(this.navigation,function(t,e){if(e.option("id")===o)return i=e,!1}),i||h.each(this.navigation,function(t,e){var o=e.option("onExecute");if(c.isString(o)&&(o=o.replace(/^#+/,""),o===n.navigationManager.rootUri()))return i=e,!1}),h.each(this.navigation,function(t,n){e&&n===i&&n.option("highlighted")&&n.fireEvent("optionChanged",[{name:"highlighted",value:!0,previousValue:!0}]),n.option("highlighted",n===i)})},_showViewImpl:s,_obtainViewLink:function(t){var e=t.key,i=this._viewLinksHash[e];i?(i.viewInfo!==t&&(this._removedViewInfos.push(i.viewInfo),i.viewInfo=t),this._viewLinksHash[e].linkCount++):this._viewLinksHash[e]={viewInfo:t,linkCount:1}},_releaseViewLink:function(t){void 0===this._viewLinksHash[t.key]&&S.log("W3001",t.key),0===this._viewLinksHash[t.key].linkCount&&S.log("W3002",t.key),this._viewLinksHash[t.key].linkCount--},navigate:function(t,e){var i=this;if(c.isPlainObject(t)&&(t=i.router.format(t),t===!1))throw S.Error("E3002");if(i._initState){if(i._initState!==E)throw S.Error("E3003");i._isNavigating&&!t||i.navigationManager.navigate(t,e)}else i.init().done(function(){i.restoreState(),i.navigate(t,e)})},canBack:function(t){return this.navigationManager.canBack(t)},_getPreviousViewInfo:function(t){var e,i=this.navigationManager.previousItem(t.stack);if(i){var n=this.router.parse(i.uri);e=this.viewCache.getView(this._getViewInfoKey(i,n))}return e},back:function(t){this.navigationManager.back(t)},saveState:function(){this.stateManager.saveState()},restoreState:function(){this.stateManager.restoreState()},clearState:function(){this.stateManager.clearState()}}).include(C);e.Application=D},function(t,e,i){var n=i(116),o=i(17).each,a=i(127),s=function(t,e,i){for(var n=[],o=0,a=t.length;o<a;o++)i(t[o],e)||n.push(t[o]);return n.push.apply(n,e),n},r=function(t,e){var i=!1;return o(e,function(e,n){var o=t.option("id")===n.option("id")&&n.option("id"),a=t.option("behavior")===n.option("behavior")&&t.option("behavior");if(i=o||a,a&&null===n.option("onExecute")&&n.option("onExecute",t.option("onExecute")),i)return t.$element().remove(),!1}),i},l=function(t,e){return s(t,e,r)},c=function(t,e,i,n){var o=e?e[i]:void 0,a=void 0===o?n:o,s=t.option(i);return void 0===s||s===n?a:s},h=function(t,e){var i=c(t,e,"showText"),n=!!t.option("icon"),o=c(t,e,"title","");return i||!n?o:""},d=function(t,e){var i=c(t,e,"showIcon"),n=!!t.option("title"),o=c(t,e,"icon","");return i||!n?o:""};e.utils={mergeCommands:l,commandToContainer:{resolveIconValue:d,resolveTextValue:h,resolvePropertyValue:c}},e.templateProvider={createTemplate:function(t){return new a(t)},applyTemplate:function(t,e){n.applyBindings(e,t)}}},function(t,e,i){function n(t,e){if(e.args){var i=e.args[0];t.event=i.event}"dxCommand"===(e.component||{}).NAME&&r(t,e.component.option())}function o(t){if(t){var e=a(t.target);e.attr("href")&&t.preventDefault()}}i(144);var a=i(145),s=i(71),r=i(9).extend,l=i(10).isPlainObject,c=i(17).map,h=i(159).Route,d=function(t){return{routing:{execute:function(e){var i,a,s=e.action,r={};l(s)&&(i=s.routeValues,i&&l(i)?r=s.options:i=s,a=t.router.format(i),n(r,e),o(r.event),t.navigate(a,r),e.handled=!0)}},hash:{execute:function(e){if("string"==typeof e.action&&"#"===e.action.charAt(0)){var i=e.action.substr(1),a=e.args[0],r=i,l=function(t){var i=s.compileGetter(t),n=e.args[0].model;return i(n)},d=a.evaluate||l;r=i.replace(/\{([^}]+)\}/g,function(t,e){e=e.trim(),e.indexOf(",")>-1&&(e=c(e.split(","),function(t){return t.trim()}));var i=d(e);return void 0===i&&(i=""),i=h.prototype.formatSegment(i)});var u={};n(u,e),o(u.event),t.navigate(r,u),e.handled=!0;
|
|
19
|
+
}}},url:{execute:function(t){"string"==typeof t.action&&"#"!==t.action.charAt(0)&&(document.location=t.action)}}}};e.createActionExecutors=d},function(t,e,i){i(144);var n=i(145),o=i(29),a=i(16),s=i(13),r=i(17),l=i(10).isPlainObject,c=i(9).extend,h=i(170),d=i(72),u=i(158),p=i(85).processCallback,f=i(86),_=i(15).when,m={current:"current",blank:"blank",back:"back"},g="__history",v=o.inherit({ctor:function(t){t=t||{},this._currentItem=void 0,this._previousItem=void 0,this._createNavigationDevice(t)},_createNavigationDevice:function(t){this._navigationDevice=t.navigationDevice||new h.HistoryBasedNavigationDevice,this._navigationDevice.uriChanged.add(this._uriChangedHandler.bind(this))},_uriChangedHandler:function(t){for(;f(););this.navigate(t)},_syncUriWithCurrentNavigationItem:function(){var t=this._currentItem&&this._currentItem.uri;this._navigationDevice.setUri(t,!0)},_cancelNavigation:function(t){this._syncUriWithCurrentNavigationItem(),this.fireEvent("navigationCanceled",[t])},_getDefaultOptions:function(){return{direction:"none",target:m.blank}},_updateHistory:function(t,e){this._previousItem=this._currentItem,this._currentItem={uri:t,key:t},this._navigationDevice.setUri(t,e.target===m.current)},_setCurrentItem:function(t){this._currentItem=t},navigate:function(t,e){e=e||{};var i,o=this,a=!o._currentItem,r=o._currentItem||{},l=e.item||{},h=r.uri,d=r.key,u=l.key;return void 0===t&&(t=o._navigationDevice.getUri()),/^_back$/.test(t)?void o.back():(e=c(o._getDefaultOptions(),e||{}),a&&(e.target=m.current),i={currentUri:h,uri:t,cancel:!1,navigateWhen:[],options:e},o.fireEvent("navigating",[i]),t=i.uri,void(i.cancel||h===t&&(void 0===u||u===d)&&!o._forceNavigate?o._cancelNavigation(i):(o._forceNavigate=!1,_.apply(n,i.navigateWhen).done(function(){s.executeAsync(function(){o._updateHistory(t,e),o.fireEvent("navigated",[{uri:t,previousUri:h,options:e,item:o._currentItem}])})}))))},back:function(){return this._navigationDevice.back()},previousItem:function(){return this._previousItem},currentItem:function(t){if(!(arguments.length>0))return this._currentItem;if(!t)throw u.Error("E3023");this._setCurrentItem(t)},rootUri:function(){return this._currentItem&&this._currentItem.uri},canBack:function(){return!0},saveState:s.noop,restoreState:s.noop,removeState:s.noop}).include(d),b=v.inherit({ctor:function(t){t=t||{},this.callBase(t),this._createNavigationStacks(t),p.add(this._deviceBackInitiated.bind(this)),this._stateStorageKey=t.stateStorageKey||g},init:function(){return this._navigationDevice.init()},_createNavigationDevice:function(t){t.navigationDevice||(t.navigationDevice=new h.StackBasedNavigationDevice),this.callBase(t),this._navigationDevice.backInitiated.add(this._deviceBackInitiated.bind(this))},_uriChangedHandler:function(t){this.navigate(t)},_createNavigationStacks:function(t){this.navigationStacks={},this._keepPositionInStack=t.keepPositionInStack,this.currentStack=new y},_deviceBackInitiated:function(){f()?this._syncUriWithCurrentNavigationItem():this.back({isHardwareButton:!0})},_getDefaultOptions:function(){return{target:m.blank}},_createNavigationStack:function(){var t=new y;return t.itemsRemoved.add(this._removeItems.bind(this)),t},_setCurrentItem:function(t){this._setCurrentStack(t.stack),this.currentStack.currentItem(t),this.callBase(t),this._syncUriWithCurrentNavigationItem()},_setCurrentStack:function(t){var e,i;"string"==typeof t?(i=t,i in this.navigationStacks||(this.navigationStacks[i]=this._createNavigationStack()),e=this.navigationStacks[i]):(e=t,i=r.map(this.navigationStacks,function(e,i){return e===t?i:null})[0]),this.currentStack=e,this.currentStackKey=i},_getViewTargetStackKey:function(t,e){var i;if(e)if(void 0!==this.navigationStacks[t])i=t;else{for(var n in this.navigationStacks)if(this.navigationStacks[n].items[0].uri===t){i=n;break}i=i||t}else i=this.currentStackKey||t;return i},_updateHistory:function(t,e){var i=e.root,n=i,o=!1,a=this.currentStack,s=void 0!==e.keepPositionInStack?e.keepPositionInStack:this._keepPositionInStack;if(e.stack=e.stack||this._getViewTargetStackKey(t,i),this._setCurrentStack(e.stack),!i&&this.currentStack.items.length||(o=this.currentStack===a,n=!0),i&&this.currentStack.items.length)s&&!o||(this.currentStack.currentIndex=0,this.currentItem().uri!==t&&this.currentStack.navigate(t,!0)),e.direction=e.direction||"none";else{var r=this.currentStack.currentIndex,l=this.currentItem()||{};switch(e.target){case m.blank:this.currentStack.navigate(t);break;case m.current:this.currentStack.navigate(t,!0);break;case m.back:this.currentStack.currentIndex>0?this.currentStack.back(t):this.currentStack.navigate(t,!0);break;default:throw u.Error("E3006",e.target)}if(void 0===e.direction){var c=this.currentStack.currentIndex-r;c<0?e.direction=this.currentStack.currentItem().backDirection||"backward":c>0&&this.currentStack.currentIndex>0?e.direction="forward":e.direction="none"}l.backDirection="forward"===e.direction?"backward":"none"}e.root=n,this._currentItem=this.currentStack.currentItem(),this._syncUriWithCurrentNavigationItem()},_removeItems:function(t){var e=this;r.each(t,function(t,i){e.fireEvent("itemRemoved",[i])})},back:function(t){t=t||{};var e=c({cancel:!1},t);if(this.fireEvent("navigatingBack",[e]),e.cancel)return void this._syncUriWithCurrentNavigationItem();var i=this.previousItem(e.stack);i?this.navigate(i.uri,{stack:e.stack,target:m.back,item:i}):this.callBase()},rootUri:function(){return this.currentStack.items.length?this.currentStack.items[0].uri:this.callBase()},canBack:function(t){var e=t?this.navigationStacks[t]:this.currentStack;return!!e&&e.canBack()},saveState:function(t){if(this.currentStack.items.length){var e={navigationStacks:{},currentStackKey:this.currentStackKey};r.each(this.navigationStacks,function(t,i){var n={};e.navigationStacks[t]=n,n.currentIndex=i.currentIndex,n.items=r.map(i.items,function(t){return{key:t.key,uri:t.uri}})});var i=JSON.stringify(e);t.setItem(this._stateStorageKey,i)}else this.removeState(t)},restoreState:function(t){if(!this.disableRestoreState){var e=t.getItem(this._stateStorageKey);if(e)try{var i=this,n=JSON.parse(e);r.each(n.navigationStacks,function(t,e){var n=i._createNavigationStack();i.navigationStacks[t]=n,n.currentIndex=e.currentIndex,n.items=r.map(e.items,function(t){return t.stack=n,t})}),this.currentStackKey=n.currentStackKey,this.currentStack=this.navigationStacks[this.currentStackKey],this._currentItem=this.currentStack.currentItem(),this._navigationDevice.setUri(this.currentItem().uri),this._forceNavigate=!0}catch(e){throw this.removeState(t),u.Error("E3007")}}},removeState:function(t){t.removeItem(this._stateStorageKey)},currentIndex:function(){return this.currentStack.currentIndex},previousItem:function(t){var e=this.navigationStacks[t]||this.currentStack;return e.previousItem()},getItemByIndex:function(t){return this.currentStack.items[t]},clearHistory:function(){this._createNavigationStacks({keepPositionInStack:this._keepPositionInStack})},itemByKey:function(t){var e;return r.each(this.navigationStacks,function(i,n){var o=n.itemByKey(t);if(o)return e=o,!1}),e},currentItem:function(t){var e;return arguments.length>0?("string"==typeof t?e=this.itemByKey(t):l(t)&&(e=t),void this.callBase(e)):this.callBase()}}),y=o.inherit({ctor:function(t){t=t||{},this.itemsRemoved=a(),this.clear()},currentItem:function(t){if(!t)return this.items[this.currentIndex];for(var e=0;e<this.items.length;e++)if(t===this.items[e]){this.currentIndex=e;break}},previousItem:function(){return this.items.length>1?this.items[this.currentIndex-1]:void 0},canBack:function(){return this.currentIndex>0},clear:function(){this._deleteItems(this.items),this.items=[],this.currentIndex=-1},back:function(t){if(this.currentIndex--,this.currentIndex<0)throw u.Error("E3008");var e=this.currentItem();e.uri!==t&&this._updateItem(this.currentIndex,t)},forward:function(){if(this.currentIndex++,this.currentIndex>=this.items.length)throw u.Error("E3009")},navigate:function(t,e){if(!(this.currentIndex<this.items.length&&this.currentIndex>-1&&this.items[this.currentIndex].uri===t)){if(e&&this.currentIndex>-1&&this.currentIndex--,this.currentIndex+1<this.items.length&&this.items[this.currentIndex+1].uri===t)this.currentIndex++;else{var i=this.items.splice(this.currentIndex+1,this.items.length-this.currentIndex-1);this.items.push({stack:this}),this.currentIndex++,this._updateItem(this.currentIndex,t),this._deleteItems(i)}return this.currentItem()}},itemByKey:function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.key===t)return i}},_updateItem:function(t,e){var i=this.items[t];i.uri=e,i.key=this.items[0].uri+"_"+t+"_"+e},_deleteItems:function(t){t&&this.itemsRemoved.fire(t)}});e.HistoryBasedNavigationManager=v,e.StackBasedNavigationManager=b,e.NavigationStack=y},function(t,e,i){i(144);var n=i(145),o=i(13).noop,a=i(29),s=i(16),r=i(171),l=i(75).sessionStorage,c=i(74),h="dxPhoneJSApplication",d=a.inherit({ctor:function(t){t=t||{},this._browserAdapter=t.browserAdapter||this._createBrowserAdapter(t),this.uriChanged=s(),this._browserAdapter.popState.add(this._onPopState.bind(this))},init:o,getUri:function(){return this._browserAdapter.getHash()},setUri:function(t,e){return e?this._browserAdapter.replaceState(t):t!==this.getUri()?this._browserAdapter.pushState(t):n.Deferred().resolve().promise()},back:function(){return this._browserAdapter.back()},_onPopState:function(){this.uriChanged.fire(this.getUri())},_isBuggyAndroid2:function(){var t=c.real(),e=t.version;return"android"===t.platform&&e.length>1&&(2===e[0]&&e[1]<4||e[0]<2)},_isBuggyAndroid4:function(){var t=c.real(),e=t.version;return"android"===t.platform&&e.length>1&&4===e[0]&&0===e[1]},_isWindowsPhone8:function(){var t=c.real();return"win"===t.platform&&t.phone},_createBrowserAdapter:function(t){var e,i=t.window||window,n=i.history.replaceState&&i.history.pushState;return e=this._isWindowsPhone8()?new r.BuggyCordovaWP81BrowserAdapter(t):i!==i.top?new r.HistorylessBrowserAdapter(t):this._isBuggyAndroid4()?new r.BuggyAndroidBrowserAdapter(t):this._isBuggyAndroid2()||!n?new r.OldBrowserAdapter(t):new r.DefaultBrowserAdapter(t)}}),u=d.inherit({ctor:function(t){this.callBase(t),this.backInitiated=s(),this._rootStateHandler=null,n(window).on("unload",this._saveBrowserState)},init:function(){var t=this;return t._browserAdapter.canWorkInPureBrowser?t._initRootPage().done(function(){t._browserAdapter.isRootPage()&&t._browserAdapter.pushState("")}):n.Deferred().resolve().promise()},setUri:function(t){return this.callBase(t,!this._browserAdapter.isRootPage())},_saveBrowserState:function(){var t=l();t&&t.setItem(h,!0)},_initRootPage:function(){var t=this.getUri(),e=l();return!e||e.getItem(h)?n.Deferred().resolve().promise():(e.removeItem(h),this._browserAdapter.createRootPage(),this._browserAdapter.pushState(t))},_onPopState:function(){this._browserAdapter.isRootPage()?this._rootStateHandler?this._rootStateHandler():this.backInitiated.fire():(this._rootStateHandler||this._createRootStateHandler(),this.back())},_createRootStateHandler:function(){var t=this.getUri();this._rootStateHandler=function(){this.uriChanged.fire(t),this._rootStateHandler=null}}});e.HistoryBasedNavigationDevice=d,e.StackBasedNavigationDevice=u},function(t,e,i){i(144);var n=i(145),o=i(29),a=i(16),s=i(83),r="__root__",l="__buffer__",c=o.inherit({ctor:function(t){t=t||{},this._window=t.window||window,this.popState=a(),n(this._window).on("hashchange",this._onHashChange.bind(this)),this._tasks=s.create(),this.canWorkInPureBrowser=!0},replaceState:function(t){var e=this;return this._addTask(function(){t=e._normalizeUri(t),e._window.history.replaceState(null,null,"#"+t),e._currentTask.resolve()})},pushState:function(t){var e=this;return this._addTask(function(){t=e._normalizeUri(t),e._window.history.pushState(null,null,"#"+t),e._currentTask.resolve()})},createRootPage:function(){return this.replaceState(r)},_onHashChange:function(){this._currentTask&&this._currentTask.resolve(),this.popState.fire()},back:function(){var t=this;return this._addTask(function(){t._window.history.back()})},getHash:function(){return this._normalizeUri(this._window.location.hash)},isRootPage:function(){return this.getHash()===r},_normalizeUri:function(t){return(t||"").replace(/^#+/,"")},_addTask:function(t){var e=this,i=n.Deferred();return this._tasks.add(function(){return e._currentTask=i,t(),i}),i.promise()}}),h=c.inherit({ctor:function(){this._innerEventCount=0,this.callBase.apply(this,arguments),this._skipNextEvent=!1},replaceState:function(t){var e=this;return t=e._normalizeUri(t),e.getHash()!==t?(e._addTask(function(){e._skipNextEvent=!0,e._window.history.back()}),e._addTask(function(){e._skipNextEvent=!0,e._window.location.hash=t})):n.Deferred().resolve().promise()},pushState:function(t){var e=this;return t=this._normalizeUri(t),this.getHash()!==t?e._addTask(function(){e._skipNextEvent=!0,e._window.location.hash=t}):n.Deferred().resolve().promise()},createRootPage:function(){return this.pushState(r)},_onHashChange:function(){var t=this._currentTask;this._currentTask=null,this._skipNextEvent?this._skipNextEvent=!1:this.popState.fire(),t&&t.resolve()}}),d=h.inherit({createRootPage:function(){return this.pushState(l),this.callBase()}}),u=c.inherit({ctor:function(t){t=t||{},this._window=t.window||window,this.popState=a(),n(this._window).on("dxback",this._onHashChange.bind(this)),this._currentHash=this._window.location.hash},replaceState:function(t){return this._currentHash=this._normalizeUri(t),n.Deferred().resolve().promise()},pushState:function(t){return this.replaceState(t)},createRootPage:function(){return this.replaceState(r)},getHash:function(){return this._normalizeUri(this._currentHash)},back:function(){return this.replaceState(r)},_onHashChange:function(){var t=this.back();return this.popState.fire(),t}}),p=c.inherit({ctor:function(t){this.callBase(t),this.canWorkInPureBrowser=!1}});e.DefaultBrowserAdapter=c,e.OldBrowserAdapter=h,e.BuggyAndroidBrowserAdapter=d,e.HistorylessBrowserAdapter=u,e.BuggyCordovaWP81BrowserAdapter=p},function(t,e,i){var n=i(29),o=i(13).grep,a=i(9).extend,s=i(17).each,r=i(25).inArray,l=i(158),c=n.inherit({ctor:function(){this._commandMappings={},this._containerDefaults={}},setDefaults:function(t,e){return this._containerDefaults[t]=e,this},mapCommands:function(t,e){var i=this;return s(e,function(e,n){"string"==typeof n&&(n={id:n});var o=n.id,s=i._commandMappings[t]||{};s[o]=a({showIcon:!0,showText:!0},i._containerDefaults[t]||{},n),i._commandMappings[t]=s}),this._initExistingCommands(),this},unmapCommands:function(t,e){var i=this;s(e,function(e,n){var o=i._commandMappings[t]||{};o&&delete o[n]}),this._initExistingCommands()},getCommandMappingForContainer:function(t,e){return(this._commandMappings[e]||{})[t]},checkCommandsExist:function(t){var e=this,i=o(t,function(i,n){return r(i,e._existingCommands)<0&&r(i,t)===n});if(0!==i.length)throw l.Error("E3005",i.join("', '"),1===i.length?" is":"s are")},load:function(t){if(t){var e=this;return s(t,function(t,i){e.setDefaults(t,i.defaults),e.mapCommands(t,i.commands)}),this}},_initExistingCommands:function(){var t=this;this._existingCommands=[],s(t._commandMappings,function(e,i){s(i,function(e,i){r(i.id,t._existingCommands)<0&&t._existingCommands.push(i.id)})})}});c.defaultMapping={"global-navigation":{defaults:{showIcon:!0,showText:!0},commands:[]},"ios-header-toolbar":{defaults:{showIcon:!1,showText:!0,location:"after"},commands:["edit","save",{id:"back",location:"before"},{id:"cancel",location:"before"},{id:"create",showIcon:!0,showText:!1}]},"ios-action-sheet":{defaults:{showIcon:!1,showText:!0},commands:[]},"ios-view-footer":{defaults:{showIcon:!1,showText:!0},commands:[{id:"delete",type:"danger"}]},"android-header-toolbar":{defaults:{showIcon:!0,showText:!1,location:"after"},commands:[{id:"back",showIcon:!1,location:"before"},"create",{id:"save",showText:!0,showIcon:!1,location:"after"},{id:"edit",showText:!1,location:"after"},{id:"cancel",showText:!1,location:"before"},{id:"delete",showText:!1,location:"after"}]},"android-simple-toolbar":{defaults:{showIcon:!0,showText:!1,location:"after"},commands:[{id:"back",showIcon:!1,location:"before"},{id:"create"},{id:"save",showText:!0,showIcon:!1,location:"after"},{id:"edit",showText:!1,location:"after"},{id:"cancel",showText:!1,location:"before"},{id:"delete",showText:!1,location:"after"}]},"android-footer-toolbar":{defaults:{location:"after"},commands:[{id:"create",showText:!1,location:"center"},{id:"edit",showText:!1,location:"before"},{id:"delete",locateInMenu:"always"},{id:"save",showIcon:!1,location:"before"}]},"generic-header-toolbar":{defaults:{showIcon:!1,showText:!0,location:"after"},commands:["edit","save",{id:"back",location:"before"},{id:"cancel",location:"before"},{id:"create",showIcon:!0,showText:!1}]},"generic-view-footer":{defaults:{showIcon:!1,showText:!0},commands:[{id:"delete",type:"danger"}]},"win8-appbar":{defaults:{location:"after"},commands:["edit","cancel","save","delete",{id:"create",location:"before"},{id:"refresh",location:"before"}]},"win8-toolbar":{defaults:{showText:!1,location:"before"},commands:[{id:"previousPage"}]},"win8-phone-appbar":{defaults:{location:"center"},commands:["create","edit","cancel","save","refresh",{id:"delete",locateInMenu:"always"}]},"win8-split-toolbar":{defaults:{showIcon:!0,showText:!1,location:"after"},commands:[{id:"back",showIcon:!1,location:"before"},{id:"create"},{id:"save",showText:!0,location:"before"},{id:"edit",showText:!0,locateInMenu:"always"},{id:"cancel",showText:!0,locateInMenu:"always"},{id:"delete",showText:!0,locateInMenu:"always"}]},"win8-master-detail-toolbar":{defaults:{showText:!1,location:"before"},commands:["back"]},"win10-appbar":{defaults:{showText:!1,location:"after"},commands:[{id:"back",location:"before"},"edit","cancel","save","delete","create","refresh"]},"win10-phone-appbar":{defaults:{location:"after"},commands:["create","edit","cancel","save","refresh",{id:"delete",locateInMenu:"always"}]},"desktop-toolbar":{defaults:{showIcon:!1,showText:!0,location:"after"},commands:["cancel","create","edit","save",{id:"delete",type:"danger"}]}},t.exports=c},function(t,e,i){function n(t){return/^(or|\|\||\|)$/i.test(t)}function o(t){return/^(and|\&\&|\&)$/i.test(t)}var a=i(10).isFunction,s=i(17).map,r=i(71).toComparable,l=i(15).Deferred,c="DEVEXTREME_XHR_ERROR_UNLOAD",h=function(t){return[t[0],t.length<3?"=":String(t[1]).toLowerCase(),t.length<2||t[t.length-1]]},d=function(t){return Array.isArray(t)||(t=[t]),s(t,function(t){var e={selector:a(t)||"string"==typeof t?t:t.getter||t.field||t.selector,desc:!(!t.desc&&"d"!==String(t.dir).charAt(0).toLowerCase())};return t.compare&&(e.compare=t.compare),e})},u=function(){var t,e={timeout:"Network connection timeout",error:"Unspecified network error",parsererror:"Unexpected server response"},i=function(t){var i=e[t];return i?i:t};return window.addEventListener("beforeunload",function(){t=!0}),function(e,n){return t?c:e.status<400?i(n):e.statusText}}(),p={count:{seed:0,step:function(t){return 1+t}},sum:{seed:0,step:function(t,e){return t+e}},min:{step:function(t,e){return e<t?e:t}},max:{step:function(t,e){return e>t?e:t}},avg:{seed:[0,0],step:function(t,e){return[t[0]+e,t[1]+1]},finalize:function(t){return t[1]?t[0]/t[1]:NaN}}},f=function(){var t,e=0,i=function(){0===e&&(t=new l),e++},n=function(){e--,e<1&&t.resolve()},o=function(){var i=0===e?(new l).resolve():t;return i.promise()},a=function(){e=0,t&&t.resolve()};return{obtain:i,release:n,promise:o,reset:a}}(),_=function(t,e,i){if(Array.isArray(t)){for(var n,o=s(e,function(t,e){return e}),a=0;a<o.length;a++)if(n=o[a],r(e[n],!0)!=r(i[n],!0))return!1;return!0}return r(e,!0)==r(i,!0)},m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",g=function(t){function e(t){return m.charAt(t)}Array.isArray(t)||(t=v(String(t)));for(var i="",n=0;n<t.length;n+=3){var o=t[n],a=t[n+1],r=t[n+2];i+=s([o>>2,(3&o)<<4|a>>4,isNaN(a)?64:(15&a)<<2|r>>6,isNaN(r)?64:63&r],e).join("")}return i},v=function(t){var e,i,n=[];for(i=0;i<t.length;i++)e=t.charCodeAt(i),e<128?n.push(e):e<2048?n.push(192+(e>>6),128+(63&e)):e<65536?n.push(224+(e>>12),128+(e>>6&63),128+(63&e)):e<2097152&&n.push(240+(e>>18),128+(e>>12&63),128+(e>>6&63),128+(63&e));return n},b=function(t){return"!"===t[0]&&Array.isArray(t[1])},y={XHR_ERROR_UNLOAD:c,normalizeBinaryCriterion:h,normalizeSortingInfo:d,errorMessageFromXhr:u,aggregators:p,keysEqual:_,isDisjunctiveOperator:n,isConjunctiveOperator:o,processRequestResultLock:f,isUnaryOperation:b,base64_encode:g};t.exports=y},function(t,e){e.layoutSets={},e.animationSets={"native":{"view-content-change":[{animation:"slide"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"none",device:{deviceType:"desktop",platform:"generic"}},{animation:"none",device:{grade:"C"}}],"view-header-toolbar":[{animation:"ios7-toolbar"},{animation:"slide",device:{grade:"B"}},{animation:"none",device:{grade:"C"}}]},"default":{"layout-change":[{animation:"none"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"pop",device:{platform:"android"}},{animation:"openDoor",device:{deviceType:"phone",platform:"win",version:[8]}},{animation:"win-pop",device:{deviceType:"phone",platform:"win"}}],"view-content-change":[{animation:"slide"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"fade",device:{deviceType:"desktop",platform:"generic"}},{animation:"none",device:{grade:"C"}}],"view-content-rendered":[{animation:"fade"},{animation:"none",device:{grade:"C"}}],"view-header-toolbar":[{animation:"ios7-toolbar"},{animation:"slide",device:{grade:"B"}},{animation:"none",device:{grade:"C"}}],"command-rendered-top":[{animation:"stagger-fade-drop"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}},{animation:"none",device:{platform:"win",version:[10]}}],"command-rendered-bottom":[{animation:"stagger-fade-rise"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}},{animation:"none",device:{platform:"win",version:[10]}}],"list-item-rendered":[{animation:"stagger-3d-drop",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"detail-item-rendered":[{animation:"stagger-3d-drop",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"edit-item-rendered":[{animation:"stagger-3d-drop",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}]},slide:{"view-content-change":[{animation:"slide"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"fade",device:{deviceType:"desktop",platform:"generic"}},{animation:"none",device:{grade:"C"}}],"view-content-rendered":[{animation:"fade"},{animation:"none",device:{grade:"C"}}],"view-header-toolbar":[{animation:"ios7-toolbar"},{animation:"slide",device:{grade:"B"}},{animation:"none",device:{grade:"C"}}],"command-rendered-top":[{animation:"stagger-fade-drop"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"command-rendered-bottom":[{animation:"stagger-fade-rise"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"list-item-rendered":[{animation:"stagger-fade-slide",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"detail-item-rendered":[{animation:"stagger-fade-slide",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"edit-item-rendered":[{animation:"stagger-fade-slide",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}]},zoom:{"view-content-change":[{animation:"slide"},{animation:"ios7-slide",device:{platform:"ios"}},{animation:"fade",device:{deviceType:"desktop",platform:"generic"}},{animation:"none",device:{grade:"C"}}],"view-content-rendered":[{animation:"fade"},{animation:"none",device:{grade:"C"}}],"view-header-toolbar":[{animation:"ios7-toolbar"},{animation:"slide",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"command-rendered-top":[{animation:"stagger-fade-zoom"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"command-rendered-bottom":[{animation:"stagger-fade-zoom"},{animation:"fade",device:{grade:"B"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"list-item-rendered":[{animation:"stagger-fade-zoom",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"detail-item-rendered":[{animation:"stagger-fade-zoom",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}],"edit-item-rendered":[{animation:"stagger-fade-zoom",device:{grade:"A"}},{animation:"fade",device:{deviceType:"desktop"}},{animation:"none",device:{grade:"C"}}]}}},function(t,e,i){i(144);var n=i(145),o=i(29),a=i(13).noop,s=i(17),r=i(158),l=i(172),c=i(176),h=i(15).when;i(143),i(162);var d=o.inherit({ctor:function(t){t=t||{},this.defaultWidgetAdapter=t.defaultWidgetAdapter||this._getDefaultWidgetAdapter(),this.commandMapping=t.commandMapping||new l},_getDefaultWidgetAdapter:function(){return{addCommand:a,clearContainer:a}},_getContainerAdapter:function(t){var e=t.data("dxComponents"),i=c;if(e)for(var n in e){var o=e[n];if(o in i)return i[o]}return this.defaultWidgetAdapter},findCommands:function(t){var e=t.find(".dx-command").add(t.filter(".dx-command")),i=s.map(e,function(t){return n(t).dxCommand("instance")});return i},findCommandContainers:function(t){var e=s.map(t.find(".dx-command-container"),function(t){return n(t).dxCommandContainer("instance")});return e},_checkCommandId:function(t,e){if(null===t)throw r.Error("E3010",e.$element().get(0).outerHTML)},renderCommandsToContainers:function(t,e){var i=this,o={},a=[],r=[];return s.each(t,function(t,e){var n=e.option("id");i._checkCommandId(n,e),a.push(n),o[n]=e}),i.commandMapping.checkCommandsExist(a),s.each(e,function(t,e){var n=[];if(s.each(o,function(t,o){var a=t,s=i.commandMapping.getCommandMappingForContainer(a,e.option("id"));s&&n.push({command:o,options:s})}),n.length){var a=i._attachCommandsToContainer(e.element(),n);a&&r.push(a)}}),h.apply(n,r)},clearContainer:function(t){var e=t.element(),i=this._getContainerAdapter(e);i.clearContainer(e)},_arrangeCommandsToContainers:function(t,e){r.log("W0002","CommandManager","_arrangeCommandsToContainers","14.1","Use the 'renderCommandsToContainers' method instead."),this.renderCommandsToContainers(t,e)},_attachCommandsToContainer:function(t,e){var i,n=this._getContainerAdapter(t);return n.beginUpdate&&n.beginUpdate(t),s.each(e,function(e,i){n.addCommand(t,i.command,i.options)}),n.endUpdate&&(i=n.endUpdate(t)),i}});t.exports=d},function(t,e,i){var n=i(29),o=i(9).extend,a=i(25).inArray,s=i(17),r=i(167).utils.commandToContainer,l=i(89),c=i(95),h="dxCommandToWidgetAdapter",d=n.inherit({ctor:function(t,e){this.command=t,this.widgetItem=this._createWidgetItem(t,e)},_createWidgetItem:function(t,e){var i,n=o({},e,t.option()),a=function(e){t.execute(e)};return n.text=r.resolveTextValue(t,e),n.icon=r.resolveIconValue(t,e),n.type=r.resolvePropertyValue(t,e,"type"),n.location=r.resolvePropertyValue(t,e,"location"),n.locateInMenu=r.resolvePropertyValue(t,e,"locateInMenu"),n.showText=r.resolvePropertyValue(t,e,"showText"),i=this._createWidgetItemCore(n,a),i.command=t,i},_createWidgetItemCore:function(t,e){return t},dispose:function(){delete this.command,delete this.widgetItem}}),u=n.inherit({ctor:function(t){this._commandToWidgetItemOptionNames={},this.$widgetElement=t,this.$widgetElement.data(h,this),this.widget=this._getWidgetByElement(t),this._widgetWidgetContentReadyHandler=this._onWidgetContentReady.bind(this),this._widgetWidgetItemRenderedHandler=this._onWidgetItemRendered.bind(this),this._widgetDisposingHandler=this._onWidgetDisposing.bind(this),this.widget.on("itemRendered",this._widgetWidgetItemRenderedHandler),this.widget.on("contentReady",this._widgetWidgetContentReadyHandler),this.widget.on("disposing",this._widgetDisposingHandler),this.itemWrappers=[],this._transitionExecutor=new c.TransitionExecutor},addCommand:function(t,e){var i=this._createItemWrapper(t,e);this.itemWrappers.push(i),this._addItemToWidget(i),this._commandChangedHandler=this._onCommandChanged.bind(this),i.command.on("optionChanged",this._commandChangedHandler)},beginUpdate:function(){this.widget.beginUpdate()},endUpdate:function(){return this.widget.endUpdate(),this.animationDeferred},_onWidgetItemRendered:function(t){t.itemData.isJustAdded&&t.itemData.command&&t.itemData.command.option("visible")&&this._commandRenderedAnimation&&this._transitionExecutor.enter(t.itemElement,this._commandRenderedAnimation),delete t.itemData.isJustAdded},_onWidgetContentReady:function(t){this.animationDeferred=this._transitionExecutor.start()},_onWidgetDisposing:function(){this.dispose(!0)},_setWidgetItemOption:function(t,e,i){var n=this.widget.option("items"),o=a(i,s.map(n,function(t){return t.command||{}}));if(o>-1){var r="items["+o+"].";!this._requireWidgetRefresh(t)&&this.widget.option("items["+o+"]").options&&(r+="options."),r+=this._commandToWidgetItemOptionNames[t]||t,this.widget.option(r,e)}},_requireWidgetRefresh:function(t){return"visible"===t||"locateInMenu"===t||"location"===t},_onCommandChanged:function(t){"highlighted"===t.name||t.component.isOptionDeprecated(t.name)||this._setWidgetItemOption(t.name,t.value,t.component)},_addItemToWidget:function(t){var e=this.widget.option("items");e.push(t.widgetItem),this.widget.$element().is(":visible")&&(t.widgetItem.isJustAdded=!0),this.widget.option("items",e)},refresh:function(){var t=this.widget.option("items");this.widget.option("items",t)},clear:function(t){var e=this;s.each(e.itemWrappers,function(t,i){i.command.off("optionChanged",e._commandChangedHandler),i.dispose()}),this.itemWrappers.length=0,t||this._clearWidgetItems()},_clearWidgetItems:function(){this.widget.option("items",[])},dispose:function(t){this.clear(t),this.widget&&(this.widget.off("itemRendered",this._widgetWidgetItemRenderedHandler),this.widget.off("contentReady",this._widgetContentReadyHandler),this.widget.off("disposing",this._widgetDisposingHandler),this.$widgetElement.removeData(h),delete this.widget,delete this.$widgetElement)}}),p=n.inherit({ctor:function(t){this.createAdapter=t},_getWidgetAdapter:function(t){var e=t.data(h);return e||(e=this.createAdapter(t)),e},addCommand:function(t,e,i){var n=this._getWidgetAdapter(t);n.addCommand(e,i)},clearContainer:function(t){var e=this._getWidgetAdapter(t);e.clear()},beginUpdate:function(t){var e=this._getWidgetAdapter(t);e.beginUpdate()},endUpdate:function(t){var e=this._getWidgetAdapter(t);return e.endUpdate()}}),f=d.inherit({_createWidgetItemCore:function(t,e){var i;return t.onClick=e,"menu"===t.location||"always"===t.locateInMenu?(i=t,i.isAction=!0):(i={locateInMenu:t.locateInMenu,location:t.location,visible:t.visible,options:t,widget:"dxButton"},"inMenu"===t.showText&&(i.showText=t.showText),t.visible=!0,delete t.location),i}}),_=u.inherit({ctor:function(t){this.callBase(t),this._commandToWidgetItemOptionNames={title:"text"},"topToolbar"===this.widget.option("renderAs")?this._commandRenderedAnimation="command-rendered-top":this._commandRenderedAnimation="command-rendered-bottom"},_getWidgetByElement:function(t){return t.dxToolbar("instance")},_createItemWrapper:function(t,e){return new f(t,e)},addCommand:function(t,e){this.widget.option("visible",!0),this.callBase(t,e)}}),m=d.inherit({_createWidgetItemCore:function(t,e){return t.title=t.text,t.onClick=e,t}}),g=u.inherit({_createItemWrapper:function(t,e){return new m(t,e);
|
|
20
|
+
},_getWidgetByElement:function(t){return t.dxList("instance")}}),v=d.inherit({}),b=u.inherit({ctor:function(t){this.callBase(t),this._commandToWidgetItemOptionNames={title:"text"},this.widget.option("onItemClick",this._onNavBarItemClick.bind(this))},_onNavBarItemClick:function(t){for(var e=this.widget.option("items"),i=e.length;--i;)e[i].command.option("highlighted",!1);t.itemData.command.execute(t)},_getWidgetByElement:function(t){return t.dxNavBar("instance")},_createItemWrapper:function(t,e){return new v(t,e)},addCommand:function(t,e){this.callBase(t,e),this._updateSelectedIndex()},_onCommandChanged:function(t){var e=t.name,i=t.value;"highlighted"===e&&i&&this._updateSelectedIndex(),this.callBase(t)},_updateSelectedIndex:function(){for(var t=this.widget.option("items"),e=0,i=t.length;e<i;e++){var n=t[e].command;if(n&&n.option("highlighted")){this.widget.option("selectedIndex",e);break}}}}),y=d.inherit({_createWidgetItemCore:function(t,e){return t.title=t.text,t}}),C=u.inherit({ctor:function(t){this.callBase(t),this.widget.option("onSelectionChanged",this._onPivotSelectionChange.bind(this))},_onPivotSelectionChange:function(t){t.addedItems.length&&t.removedItems.length&&t.addedItems[0]&&t.addedItems[0].command&&t.addedItems[0].command.execute(t)},_getWidgetByElement:function(t){return t.dxPivot("instance")},_createItemWrapper:function(t,e){return new y(t,e)},addCommand:function(t,e){this.callBase(t,e),this._updateSelectedIndex()},_onCommandChanged:function(t){var e=t.name,i=t.value;"visible"===e?this._reRenderPivot():"highlighted"===e&&i&&this._updateSelectedIndex(),this.callBase(t)},_addItemToWidget:function(t){t.command.option("visible")&&this.callBase(t)},_updateSelectedIndex:function(){var t=this.widget,e=t.option("items")||[];l.off=!0;for(var i=0,n=e.length;i<n;i++){var o=e[i].command;if(o&&o.option("highlighted")){t.option("selectedIndex",i);break}}l.off=!1},_reRenderPivot:function(){var t=this;t.widget.option("items",[]),s.each(t.itemWrappers,function(e,i){i.command.option("visible")&&t._addItemToWidget(i)}),t.refresh(),t._updateSelectedIndex()}}),x=d.inherit({}),w=u.inherit({ctor:function(t){this.callBase(t),this._commandToWidgetItemOptionNames={title:"text"},this.widget.option("onItemClick",this._onSlideOutItemClick.bind(this))},_onSlideOutItemClick:function(t){t.itemData.command.execute(t)},_getWidgetByElement:function(t){return t.dxSlideOut("instance")},_createItemWrapper:function(t,e){return new x(t,e)},_updateSelectedIndex:function(){for(var t=this.widget.option("items")||[],e=0,i=t.length;e<i;e++){var n=t[e].command;if(n&&n.option("highlighted")){this.widget.option("selectedIndex",e);break}}},addCommand:function(t,e){this.callBase(t,e),this._updateSelectedIndex()},_onCommandChanged:function(t){var e=t.name,i=t.value;"highlighted"===e&&i&&this._updateSelectedIndex(),this.callBase(t)}});e.dxToolbar=new p(function(t){return new _(t)}),e.dxList=new p(function(t){return new g(t)}),e.dxNavBar=new p(function(t){return new b(t)}),e.dxPivot=new p(function(t){return new C(t)}),e.dxSlideOut=new p(function(t){return new w(t)})},function(t,e,i){i(144);var n=i(145),o=i(18),a=i(29),s=i(16),r=i(13),l=i(17).each,c=i(25).inArray,h=i(158),d=i(64),u=i(15).when,p=i(60),f="dxView",_="dxLayout",m="MarkupTemplate:";i(164);var g=a.inherit({ctor:function(t){t=t||{},this.$root=t.$root,this.device=t.device||{},this.dataOptionsAttributeName=t.dataOptionsAttributeName||"data-options",this._templateMap={},this._pendingViewContainer=null,this.markupLoaded=s(),this._templateContext=t.templateContext,this._$skippedMarkup=n(),void 0!==t.templatesVersion&&t.templateCacheStorage&&this._isReleaseVersion()&&(this._templateCacheEnabled=!0,this._templatesVersion="v_"+t.templatesVersion,this._templateCacheStorage=t.templateCacheStorage,this._templateCacheKey="dxTemplateCache_"+o+"_"+JSON.stringify(this.device))},_isReleaseVersion:function(){return!/http:\/\/localhost/.test(location.href)},_enumerateTemplates:function(t){var e=this;l(e._templateMap,function(e,i){l(i,function(e,i){l(i,function(e,i){t(i)})})})},_findComponent:function(t,e){var i=(this._templateMap[t]||{})[e]||[],n=this._templateContext&&this._templateContext.option()||{};return i=this._filterTemplates(n,i),this._checkMatchedTemplates(i),i[0]},_findTemplate:function(t,e){var i=this._findComponent(t,e);if(!i)throw this._clearCache(),h.Error("E3013",e,t);var n,o=i.element();return i._isStaticComponentsCreated||(d.createComponents(o,["dxContent","dxContentPlaceholder","dxTransition"]),i._isStaticComponentsCreated=!0),n=o.clone().removeClass("dx-hidden")},_clearCache:function(){this._templateCacheEnabled&&this._templateCacheStorage.removeItem(this._templateCacheKey)},_loadTemplatesFromMarkupCore:function(t){var e=this;if(t.find("[data-dx-role]").length)throw h.Error("E3019");e.markupLoaded.fire({markup:t});var i=d.createComponents(t,[f,_]);l(i,function(t,i){var n=i.element();n.addClass("dx-hidden"),e._registerTemplateComponent(i),i.element().detach()});var n=t.filter("script");n.appendTo(e.$root),e._$skippedMarkup=e._$skippedMarkup.add(n)},_registerTemplateComponent:function(t){var e=t.NAME,i=t.option(),n=i.name,o=this._templateMap[n]||{};o[e]=o[e]||[],o[e].push(t),this._templateMap[n]=o},_applyPartialViews:function(t){var e=this;d.createComponents(t,["dxViewPlaceholder"]),l(t.find(".dx-view-placeholder"),function(){var t=n(this);if(!t.children().length){var i=t.data("dxViewPlaceholder").option("viewName"),o=e._findTemplate(i,f);e._applyPartialViews(o),t.append(o),o.removeClass("dx-hidden")}})},_ajaxImpl:function(){return p.sendRequest.apply(n,arguments)},_loadTemplatesFromURL:function(t){var e=this,i=this._getWinPhonePrefix(),o=n.Deferred();return t=i+t,this._ajaxImpl({url:t,dataType:"html"}).done(function(t){e._loadTemplatesFromMarkupCore(d.createMarkupFromString(t)),o.resolve()}).fail(function(e,i,n){var a=h.Error("E3021",t,n);o.reject(a)}),o.promise()},_getWinPhonePrefix:function(){return location.protocol.indexOf("wmapp")>=0?location.protocol+"www/":""},_loadExternalTemplates:function(){var t=[],e=this;return n("head").find("link[rel='dx-template']").each(function(i,o){var a=e._loadTemplatesFromURL(n(o).attr("href"));t.push(a)}),u.apply(n,t)},_processTemplates:function(){var t=this;l(t._templateMap,function(e,i){l(i,function(e,i){t._filterTemplatesByDevice(i)})}),t._enumerateTemplates(function(e){t._applyPartialViews(e.element())})},_filterTemplatesByDevice:function(t){var e=this._filterTemplates(this.device,t);l(t,function(t,i){c(i,e)<0&&i.element().remove()}),t.length=0,t.push.apply(t,e)},_filterTemplates:function(t,e){return r.findBestMatches(t,e,function(t){return t.option()})},_checkMatchedTemplates:function(t){if(t.length>1){var e="";throw l(t,function(t,i){e+=i.element().attr("data-options")+"\r\n"}),h.Error("E3020",e,JSON.stringify(this.device))}},_wrapViewDefaultContent:function(t){t.wrapInner('<div class="dx-full-height"></div>'),t.children().eq(0).dxContent({targetPlaceholder:"content"})},_initDefaultLayout:function(){this._$defaultLayoutTemplate=n('<div class="dx-full-height" data-options="dxLayout : { name: \'default\' } "> \n <div class="dx-full-height" data-options="dxContentPlaceholder : { name: \'content\' } " ></div> \n</div>'),d.createComponents(this._$defaultLayoutTemplate)},_getDefaultLayoutTemplate:function(){return this._$defaultLayoutTemplate.clone()},applyLayout:function(t,e){void 0!==e&&0!==e.length||(e=this._getDefaultLayoutTemplate()),0===t.children(".dx-content").length&&this._wrapViewDefaultContent(t);var i=n().add(e).add(t),o=i.find(".dx-content");l(o,function(){var t=n(this),e=t.attr("data-dx-target-placeholder-id"),o=i.find(".dx-content-placeholder-"+e);o.empty(),o.append(t)});for(var a=o.length;a>=0;a--){var s=o.eq(a);s.is(".dx-content-placeholder .dx-content")||s.remove()}return e},_loadTemplatesFromCache:function(){if(this._templateCacheEnabled){var t,e=function(t,e){if("string"==typeof e&&0===e.indexOf(m)){var i=JSON.parse(e.substr(m.length)),o=i.type,a=i.options,s=d.createMarkupFromString(i.markup);return a.fromCache=!0,s[o](a)[o]("instance")}return"skippedMarkup"===t?n("<div>").append(d.createMarkupFromString(e)).contents():e},i=this._templateCacheStorage.getItem(this._templateCacheKey);if(i)try{var o=JSON.parse(i,e);t=o[this._templatesVersion]}catch(t){this._clearCache()}if(t)return this._templateMap=t.templates,this.$root.append(t.skippedMarkup),!0}},_putTemplatesToCache:function(){if(this._templateCacheEnabled){var t=function(t,e){return e&&e.element?m+JSON.stringify({markup:e.element().prop("outerHTML"),options:e.option(),type:e.NAME}):"skippedMarkup"===t?n("<div>").append(e.clone()).html():e},e={};e[this._templatesVersion]={templates:this._templateMap,skippedMarkup:this._$skippedMarkup},this._templateCacheStorage.setItem(this._templateCacheKey,JSON.stringify(e,t,4))}},init:function(){var t=this;return this._initDefaultLayout(),this._loadTemplatesFromCache()?n.Deferred().resolve().promise():(t._loadTemplatesFromMarkupCore(t.$root.children()),this._loadExternalTemplates().done(function(){t._processTemplates(),t._putTemplatesToCache()}))},getViewTemplate:function(t){return this._findTemplate(t,f)},getViewTemplateInfo:function(t){return this._findComponent(t,f)},getLayoutTemplate:function(t){return t?this._findTemplate(t,_):this._getDefaultLayoutTemplate()},getLayoutTemplateInfo:function(t){return this._findComponent(t,_)},loadTemplates:function(t){var e;return"string"==typeof t?e=this._loadTemplatesFromURL(t):(this._loadTemplatesFromMarkupCore(t),e=n.Deferred().resolve().promise()),e.done(this._processTemplates.bind(this))}});e.ViewEngine=g},function(t,e,i){i(144);var n=i(145),o=i(30),a=i(29),s=i(13),r=i(17),l=i(167),c=i(174).layoutSets,h=i(72),d=i(158),u=i(64),p=i(15).when,f="__hidden-bag",_=".dx-transition",m=".dx-content",g="onViewShown",v="dxcontentrendered.layoutController",b=".dx-pending-rendering",y=".dx-pending-rendering-manual",C=i(95);i(162),i(164);var x=function(t){return".dx-transition-"+t},w=a.inherit({ctor:function(t){t=t||{},this.name=t.name||"",this._layoutModel=t.layoutModel||{},this._defaultPaneName=t.defaultPaneName||"content",this._transitionDuration=void 0===t.transitionDuration?400:t.transitionDuration,this._showViewFired=!1},init:function(t){t=t||{},this._visibleViews={},this._$viewPort=t.$viewPort||n("body"),this._commandManager=t.commandManager,this._viewEngine=t.viewEngine,this.transitionExecutor=new C.TransitionExecutor,this._prepareTemplates(),this._$viewPort.append(this.element()),this._hideElements(this.element()),t.templateContext&&(this._templateContext=t.templateContext,this._proxiedTemplateContextChangedHandler=this._templateContextChangedHandler.bind(this))},ensureActive:function(t){return this._disabledState?this.enable():this.activate(t)},activate:function(){this._showViewFired=!1;var t=this.element();return this._showElements(t),this._attachRefreshViewRequiredHandler(),n.Deferred().resolve().promise()},deactivate:function(){return this._disabledState=!1,this._showViewFired=!1,this._releaseVisibleViews(),this._hideElements(this.element()),this._detachRefreshViewRequiredHandler(),n.Deferred().resolve().promise()},enable:function(){return this._disabledState=!1,this._showViewFired||this._notifyShowing(),this._showViewFired=!1,n.Deferred().resolve().promise()},disable:function(){this._disabledState=!0,this._showViewFired=!1,this._notifyHidden()},activeViewInfo:function(){return this._visibleViews[this._defaultPaneName]},_fireViewEvents:function(t,e){var i=this;e=e||this._visibleViews,r.each(e,function(e,n){i.fireEvent(t,[n])})},_notifyShowing:function(t){this._fireViewEvents("viewShowing",t)},_notifyShown:function(t){this._fireViewEvents("viewShown",t)},_notifyHidden:function(t){this._fireViewEvents("viewHidden",t)},_applyTemplate:function(t,e){t.each(function(t,i){l.templateProvider.applyTemplate(i,e)})},_releaseVisibleViews:function(){var t=this;r.each(this._visibleViews,function(e,i){t._hideView(i),t._releaseView(i)}),this._visibleViews={}},_templateContextChangedHandler:function(){var t=this,e=[];r.each(t._visibleViews,function(i,n){n.currentViewTemplateId!==t._getViewTemplateId(n)&&e.push(n)}),p.apply(n,r.map(e,function(e){return t.showView(e)})).done(function(){t._notifyShown(e)})},_attachRefreshViewRequiredHandler:function(){this._templateContext&&this._templateContext.on("optionChanged",this._proxiedTemplateContextChangedHandler)},_detachRefreshViewRequiredHandler:function(){this._templateContextChanged&&this._templateContext.off("optionChanged",this._proxiedTemplateContextChangedHandler)},_getPreviousViewInfo:function(t){return this._visibleViews[this._getViewPaneName(t.viewTemplateInfo)]},_prepareTemplates:function(){var t=this,e=t._viewEngine.getLayoutTemplate(this._getLayoutTemplateName());t._$layoutTemplate=e,t._$mainLayout=t._createEmptyLayout(),t._showElements(t._$mainLayout),t._applyTemplate(t._$mainLayout,t._layoutModel),t._$navigationWidget=t._createNavigationWidget()},renderNavigation:function(t){this._clearNavigationWidget(),this._renderNavigationImpl(t)},_renderNavigationImpl:function(t){this._renderCommands(this._$mainLayout,t)},_createNavigationWidget:function(){var t,e=this._findCommandContainers(this._$mainLayout);return r.each(e,function(e,i){if("global-navigation"===i.option("id"))return t=i.element(),!1}),t},_clearNavigationWidget:function(){this._$navigationWidget&&this._commandManager.clearContainer(this._$navigationWidget.dxCommandContainer("instance"))},element:function(){return this._$mainLayout},_getViewFrame:function(t){return this._$mainLayout},_getLayoutTemplateName:function(){return this.name},_applyModelToTransitionElements:function(t,e){var i=this;this._getTransitionElements(t).each(function(t,o){i._applyTemplate(n(o).children(),e)})},_createViewLayoutTemplate:function(){var t=this,e=t._$layoutTemplate.clone();return this._hideElements(e),e},_createEmptyLayout:function(){var t=this,e=t._$layoutTemplate.clone();return this._hideElements(e),this._getTransitionElements(e).empty(),e.children(m).remove(),e},_getTransitionElements:function(t){for(var e=t.find(_).add(t.filter(_)),i=[],o=0;o<e.length;o++){var a=e.eq(o);0===a.parents(_).length&&i.push(a.get(0))}return n(i)},showView:function(t,e){e=e||"forward";var i,o=this,a=o._getPreviousViewInfo(t),s=a===t?a.currentViewTemplateId:void 0;return this._showViewFired=!0,this._updateCurrentViewTemplateId(t),s&&s===t.currentViewTemplateId&&t===a?(o.fireEvent("viewShowing",[t,e]),i=n.Deferred().resolve().promise()):(o._ensureViewRendered(t),o.fireEvent("viewShowing",[t,e]),i=this._showViewImpl(t,e,s).done(function(){o._onViewShown(t)})),i},disposeView:function(t){this._clearRenderResult(t)},_clearRenderResult:function(t){t.renderResult&&(t.renderResult.$markup.remove(),t.renderResult.$viewItems.remove(),delete t.renderResult)},_renderViewImpl:function(t,e){var i,o=this,a=".dx-command,.dx-content,script",s=this._createViewLayoutTemplate(),r=!0,l=n();if(0===t.children(a).length&&this._viewEngine._wrapViewDefaultContent(t),i=t.children(),this._applyModelToTransitionElements(s,e.model),this._viewEngine.applyLayout(t,s),i.each(function(t,i){var s=n(i);o._applyTemplate(s,e.model),s.is(a)?r=!1:l=l.add(s)}),l.length&&!r)throw d.Error("E3014",l[0].outerHTML);e.renderResult=e.renderResult||{},e.renderResult.$viewItems=i,e.renderResult.$markup=s},_renderCommands:function(t,e){var i=this._findCommandContainers(t);return this._commandManager.renderCommandsToContainers(e,i)},_prepareViewCommands:function(t){var e=t.renderResult.$viewItems,i=this._commandManager.findCommands(e),n={};t.commands=l.utils.mergeCommands(t.commands||[],i),t.commandsToRenderMap=n,r.each(t.commands,function(t,e){var i=e.option("renderStage")||g,o=n[i]=n[i]||[];o.push(e)})},_applyViewCommands:function(t,e){e=e||g;var i,o=t.commandsToRenderMap[e],a=t.renderResult.$markup;return o?(i=this._renderCommands(a,o),delete t.commandsToRenderMap[e]):i=n.Deferred().resolve().promise(),i},_findCommandContainers:function(t){return u.createComponents(t,["dxCommandContainer"])},_getViewTemplateId:function(t){var e=t.$viewTemplate?t.$viewTemplate.dxView("instance"):this._viewEngine.getViewTemplateInfo(t.viewName);return e.getId()},_updateCurrentViewTemplateId:function(t){t.currentViewTemplateId=this._getViewTemplateId(t)},_ensureViewRendered:function(t){var e=t.renderResult&&t.renderResult.markupCache[t.currentViewTemplateId];e?t.renderResult.$markup=e:(this._renderView(t),t.renderResult.markupCache=t.renderResult.markupCache||{},t.renderResult.markupCache[t.currentViewTemplateId]=t.renderResult.$markup)},_renderView:function(t){var e=t.$viewTemplate||this._viewEngine.getViewTemplate(t.viewName);this._renderViewImpl(e,t),this._prepareViewCommands(t),this._applyViewCommands(t,"onViewRendering"),this._appendViewToLayout(t),e.remove(),this._onRenderComplete(t),this.fireEvent("viewRendered",[t])},_prepareTransition:function(t,e){0===t.children(".dx-content").length&&(t.wrapInner("<div>"),t.children().dxContent({targetPlaceholder:e}))},_appendViewToLayout:function(t){var e=this,i=e._getViewFrame(t),o=t.renderResult.$markup,a=n(),s=[];r.each(o.find(".dx-content-placeholder"),function(t,i){e._prepareTransition(n(i),n(i).attr("data-dx-content-placeholder-name"))}),r.each(e._getTransitionElements(i),function(t,i){var r=n(i),l=o.find(x(r.attr("data-dx-transition-name"))).children(),c={$element:l,animation:r.attr("data-dx-transition-type")};s.push(c),r.append(l),e._showViewElements(l),u.triggerShownEvent(l),a=a.add(l)}),e._$mainLayout.append(t.renderResult.$viewItems.filter(".dx-command")),o.remove(),t.renderResult.$markup=a,t.renderResult.animationItems=s},_onRenderComplete:function(t){},_onViewShown:function(t){o.trigger(document,"dx.viewchanged")},_enter:function(t,e){var i=this.transitionExecutor;r.each(t,function(t,n){i.enter(n.$element,n.animation,e)})},_leave:function(t,e){var i=this.transitionExecutor;r.each(t,function(t,n){i.leave(n.$element,n.animation,e)})},_doTransition:function(t,e,i){return t&&this._leave(t.renderResult.animationItems,i),this._enter(e.renderResult.animationItems,i),this._showView(e),this.transitionExecutor.start()},_showViewImpl:function(t,e,i){var o=this,a=this._getPreviousViewInfo(t),s={direction:e};a===t&&(a=void 0),a||(s.duration=0,s.delay=0);var r=n.Deferred();return o._doTransition(a,t,s).done(function(){o._changeView(t,i).done(function(t){r.resolve(t)})}),r.promise()},_releaseView:function(t){this.fireEvent("viewReleased",[t])},_getReadyForRenderDeferredItems:function(t){return n.Deferred().resolve().promise()},_changeView:function(t,e){var i=this;if(e)i._hideView(t,e);else{var o=i._getPreviousViewInfo(t);o&&o!==t&&(i._hideView(o),i._releaseView(o)),this._visibleViews[this._getViewPaneName(t.viewTemplateInfo)]=t}this._subscribeToDeferredItems(t);var a=n.Deferred();return this._getReadyForRenderDeferredItems(t).done(function(){i._applyViewCommands(t).done(function(){i._renderDeferredItems(t.renderResult.$markup).done(function(){a.resolve()})})}),a.promise()},_subscribeToDeferredItems:function(t){var e=this,i=t.renderResult.$markup;i.find(b).add(i.filter(b)).each(function(){var i={viewInfo:t,context:e};n(this).on(v,i,e._onDeferredContentRendered)})},_onDeferredContentRendered:function(t){var e=n(t.target),i=t.data.viewInfo,o=t.data.context;e.off(v,o._onDeferredContentRendered),o._renderCommands(e,i.commands)},_renderDeferredItems:function(t){var e=this,i=n.Deferred(),o=t.find(y).add(t.filter(y)).first();if(o.length){var a=o.data("dx-render-delegate");s.executeAsync(function(){a().done(function(){e._renderDeferredItems(t).done(function(){i.resolve()})})})}else i.resolve();return i.promise()},_getViewPaneName:function(t){return this._defaultPaneName},_hideElements:function(t){t.addClass("dx-fast-hidden")},_showElements:function(t){t.removeClass("dx-fast-hidden")},_hideViewElements:function(t){this._patchIds(t),this._disableInputs(t),t.removeClass("dx-active-view").addClass("dx-inactive-view")},_hideView:function(t,e){if(t.renderResult){var i=void 0===e?t.renderResult.$markup:t.renderResult.markupCache[e];this._hideViewElements(i),this.fireEvent("viewHidden",[t])}},_showViewElements:function(t){this._unPatchIds(t),this._enableInputs(t),t.removeClass("dx-inactive-view").addClass("dx-active-view"),this._skipAnimation(t)},_showView:function(t){t.renderResult&&this._showViewElements(t.renderResult.$markup)},_skipAnimation:function(t){t.addClass("dx-skip-animation");for(var e=0;e<t.length;e++)t.eq(e).css("transform");t.removeClass("dx-skip-animation")},_patchIds:function(t){this._processIds(t,function(t){var e=t;return t.indexOf(f)===-1&&(e=f+"-"+t),e})},_unPatchIds:function(t){this._processIds(t,function(t){var e=t;return 0===t.indexOf(f)&&(e=t.substr(f.length+1)),e})},_processIds:function(t,e){var i=t.find("[id]");r.each(i,function(t,i){var o=n(i),a=o.attr("id");o.attr("id",e(a))})},_enableInputs:function(t){var e=this._getInputs(t).filter("[data-disabled='true']");r.each(e,function(t,e){n(e).removeAttr("disabled").removeAttr("data-disabled")})},_disableInputs:function(t){var e=this._getInputs(t);e=e.filter(":not([disabled])").add(e.filter("[disabled=true]")),r.each(e,function(t,e){n(e).attr({disabled:!0,"data-disabled":!0})})},_getInputs:function(t){return t.find("input, button, select, textarea")}}).include(h);c.default=c.default||[],c.default.push({controller:new w}),e.DefaultLayoutController=w,e.layoutSets=c},function(t,e,i){function n(){var t,e=I("<div>",g).addClass("dx-theme-marker").appendTo(g.documentElement);try{return(t=e.css("font-family"))?(t=t.replace(/["']/g,""),t.substr(0,F.length)!==F?null:t.substr(F.length)):null}finally{e.remove()}}function o(t){function e(){C=null,M.fire(),M.empty()}var i;C=t,a()?e():(i=Date.now(),w=setInterval(function(){var t=a(),n=!t&&Date.now()-i>15e3;n&&T.log("W0004",C),(t||n)&&(clearInterval(w),w=void 0,e())},10))}function a(){return!C||n()===C}function s(){var t=I($,g);t.length&&(b={},v=I(E.createMarkupFromString("<link rel=stylesheet>"),g),t.each(function(){var t=I(this,g),e=t.attr(H),i=t.attr("href"),n="true"===t.attr(V);b[e]={url:i,isActive:n}}),t.last().after(v),t.remove())}function r(t){var e=t.split("."),i=null;if(b){if(t in b)return t;k(b,function(t,n){var o=t.split(".");if(o[0]===e[0]&&!(e[1]&&e[1]!==o[1]||e[2]&&e[2]!==o[2]))return i&&!n.isActive||(i=t),!n.isActive&&void 0})}return i}function l(t){try{t!==g&&(b=null)}catch(t){b=null}g=t}function c(t){t=t||{},l(t.context||document),s(),y=void 0,x=void 0,h(t)}function h(t){if(!arguments.length)return y=y||n();f(O()),t=t||{},"string"==typeof t&&(t={theme:t});var e,i=t._autoInit,a=t.loadCallback;if(y=t.theme||y,i&&!y&&(y=d(B.current())),y=r(y),y&&(e=b[y]),a&&M.add(a),e)v.attr("href",b[y].url),!M.has()&&!t._forceTimeout||w?C&&(C=y):o(y);else{if(!i)throw T.Error("E0021",y);M.fire(),M.empty()}x=/android5/.test(y||n()),p(A.originalViewPort(),y)}function d(t){var e=t.platform,i=t.version&&t.version[0];switch(e){case"ios":e+="7";break;case"android":e+="5";break;case"win":e+=i&&8===i?"8":"10"}return e}function u(t){t=t||h();var e=[],i=t&&t.split(".");return i&&(e.push("dx-theme-"+i[0],"dx-theme-"+i[0]+"-typography"),i.length>1&&e.push("dx-color-scheme-"+i[1])),e}function p(t,e){S=u(e).join(" "),I(t).addClass(S);var i=function(){var e=window.devicePixelRatio;if(e&&!(e<2)){var i=I("<div>");i.css("border",".5px solid transparent"),I("body").append(i),1===i.outerHeight()&&(I(t).addClass(R),S+=" "+R),i.remove()}};i()}function f(t){I(t).removeClass(S)}function _(t){M.add(t)}function m(){return x}var g,v,b,y,C,x,w,S,I=i(21),T=i(40),E=i(64),D=i(77),k=i(17).each,B=i(74),A=i(76),M=i(151),O=A.value,P=A.changeCallback,$="link[rel=dx-theme]",H="data-theme",V="data-active",R="dx-hairlines",F="dx.";c({_autoInit:!0,_forceTimeout:!0}),D(function(){if(I($,g).length)throw T.Error("E0022")}),P.add(function(t,e){f(e),p(t)}),B.changed.add(function(){c({_autoInit:!0})}),e.current=h,e.ready=_,e.init=c,e.attachCssClasses=p,e.detachCssClasses=f,e.themeNameFromDevice=d,e.waitForThemeLoad=o,e.isAndroid5=m,e.resetTheme=function(){v&&v.attr("href","about:blank"),y=null,C=null,x=!1}},function(t,e,i){var n=i(181);n&&(i(144),i(182),i(209),i(210),i(211))},function(t,e){t.exports=window.angular},function(t,e,i){var n=i(21),o=i(30),a=i(14),s=i(79),r=i(29),l=i(16),c=i(10),h=i(17).each,d=i(25).inArray,u=i(134),p=i(118),f=i(128),_=i(183),m=i(184),g=i(185),v=i(71).compileSetter,b=i(71).compileGetter,y=i(9).extendFromObject,C=i(37),x=i(7),w="dxItemAlias",S=["rendering"],I="value",T=function(t,e){return e.$root.$$phase?t(e):e.$apply(function(){return t(e)})},E=r.inherit({ctor:function(t){this._componentDisposing=l(),this._optionChangedCallbacks=l(),this._ngLocker=new u,this._scope=t.scope,this._$element=t.$element,this._$templates=t.$templates,this._componentClass=t.componentClass,this._parse=t.parse,this._compile=t.compile,this._itemAlias=t.itemAlias,this._transcludeFn=t.transcludeFn,this._digestCallbacks=t.dxDigestCallbacks,this._normalizeOptions(t.ngOptions),this._initComponentBindings(),this._initComponent(this._scope),t.ngOptions||this._addOptionsStringWatcher(t.ngOptionsString)},_addOptionsStringWatcher:function(t){var e=this,i=e._scope.$watch(t,function(t){t&&(i(),e._normalizeOptions(t),e._initComponentBindings(),e._component.option(e._evalOptions(e._scope)))});e._componentDisposing.add(i)},_normalizeOptions:function(t){var e=this;e._ngOptions=y({},t),t&&(!t.hasOwnProperty("bindingOptions")&&t.bindingOptions&&(e._ngOptions.bindingOptions=t.bindingOptions),t.bindingOptions&&h(t.bindingOptions,function(t,i){"string"===c.type(i)&&(e._ngOptions.bindingOptions[t]={dataPath:i})}))},_initComponent:function(t){this._component=new this._componentClass(this._$element,this._evalOptions(t)),this._component._isHidden=!0,this._handleDigestPhase()},_handleDigestPhase:function(){var t=this,e=function(){t._component.beginUpdate()},i=function(){t._component.endUpdate()};t._digestCallbacks.begin.add(e),t._digestCallbacks.end.add(i),t._componentDisposing.add(function(){t._digestCallbacks.begin.remove(e),t._digestCallbacks.end.remove(i)})},_initComponentBindings:function(){var t=this,e={};t._ngOptions.bindingOptions&&(h(t._ngOptions.bindingOptions,function(i,n){var o,a,s=i.search(/\[|\./),r=s>-1?i.substring(0,s):i,l=n.dataPath,c=!0,h=!1;void 0!==n.deep&&(h=c=!!n.deep),e[r]||(e[r]={}),e[r][i]=l;var d=function(e,n){t._ngLocker.locked(i)||(t._ngLocker.obtain(i),t._component.option(i,e),u(),t._component._optionValuesEqual(i,n,e)&&t._ngLocker.locked(i)&&t._ngLocker.release(i))},u=function(){var e=Array.isArray(t._scope.$eval(l))&&!h?"$watchCollection":"$watch";o!==e&&(a&&a(),a=t._scope[e](l,d,c),o=e)};u(),t._componentDisposing.add(a)}),t._optionChangedCallbacks.add(function(i){var n=i.name,o=i.fullName,a=i.component;if(t._ngLocker.locked(o))return void t._ngLocker.release(o);if(e&&e[n]){var s=t._scope.$root.$$phase,r=function(){t._ngLocker.obtain(o)};s?t._digestCallbacks.begin.add(r):r(),T(function(){h(e[n],function(e,n){if(t._optionsAreLinked(o,e)){var s=a.option(e);t._parse(n).assign(t._scope,s);var r=t._parse(n)(t._scope);r!==s&&i.component.option(e,r)}})},t._scope);var l=function(){t._ngLocker.locked(o)&&t._ngLocker.release(o),t._digestCallbacks.begin.remove(r),t._digestCallbacks.end.remove(l)};s?t._digestCallbacks.end.addPrioritized(l):l()}}))},_optionsAreNested:function(t,e){var i=t[e.length];return 0===t.indexOf(e)&&("."===i||"["===i)},_optionsAreLinked:function(t,e){return t===e||(t.length>e.length?this._optionsAreNested(t,e):this._optionsAreNested(e,t))},_compilerByTemplate:function(t){var e=this,i=this._getScopeItemsPath();return function(a){var s=n(t).clone(),r=a.model&&a.model.constructor===e._scope.$root.constructor,l=r?a.model:a.noModel?e._scope:e._createScopeWithData(a);return i&&e._synchronizeScopes(l,i,a.index),s.appendTo(a.container),a.noModel||o.on(s,"$destroy",function(){var t=!l.$parent;t||l.$destroy()}),e._applyAsync(e._compile(s,e._transcludeFn),l),s}},_applyAsync:function(t,e){var i=this;t(e),e.$root.$$phase||(i._renderingTimer||(i._renderingTimer=setTimeout(function(){e.$apply(),i._renderingTimer=null})),i._componentDisposing.add(function(){clearTimeout(i._renderingTimer)}))},_getScopeItemsPath:function(){if(this._componentClass.subclassOf(g)&&this._ngOptions.bindingOptions&&this._ngOptions.bindingOptions.items)return this._ngOptions.bindingOptions.items.dataPath},_createScopeWithData:function(t){var e=this._scope.$new();return this._itemAlias&&(e[this._itemAlias]=t.model),c.isDefined(t.index)&&(e.$index=t.index),e},_synchronizeScopes:function(t,e,i){this._itemAlias&&"object"!=typeof t[this._itemAlias]&&this._synchronizeScopeField({parentScope:this._scope,childScope:t,fieldPath:this._itemAlias,parentPrefix:e,itemIndex:i})},_synchronizeScopeField:function(t){var e,i=t.parentScope,n=t.childScope,o=t.fieldPath,a=t.parentPrefix,s=t.itemIndex,r=o===this._itemAlias?"":"."+o,l=void 0!==s,h=[a];if(l){if(!c.isNumeric(s))return;h.push("[",s,"]")}h.push(r),e=h.join("");var d=i.$watch(e,function(t,e){t!==e&&v(o)(n,t)}),u=n.$watch(o,function(t,n){if(t!==n){if(l&&!b(a)(i)[s])return void u();v(e)(i,t)}});this._componentDisposing.add([d,u])},_evalOptions:function(t){var e=y({},this._ngOptions);return delete e.bindingOptions,this._ngOptions.bindingOptions&&h(this._ngOptions.bindingOptions,function(i,n){e[i]=t.$eval(n.dataPath)}),e._optionChangedCallbacks=this._optionChangedCallbacks,e._disposingCallbacks=this._componentDisposing,e.onActionCreated=function(e,i,n){if(n&&d(n.category,S)>-1)return i;var o=function(){var e=this,n=arguments;return t&&t.$root&&!t.$root.$$phase?T(function(){return i.apply(e,n)},t):i.apply(e,n)};return o},e.beforeActionExecute=e.onActionCreated,e.nestedComponentOptions=function(t){return{templatesRenderAsynchronously:t.option("templatesRenderAsynchronously"),forceApplyBindings:t.option("forceApplyBindings"),modelByElement:t.option("modelByElement"),onActionCreated:t.option("onActionCreated"),beforeActionExecute:t.option("beforeActionExecute"),nestedComponentOptions:t.option("nestedComponentOptions")}},e.templatesRenderAsynchronously=!0,a().wrapActionsBeforeExecute&&(e.forceApplyBindings=function(){T(function(){},t)}),e.integrationOptions={createTemplate:function(t){return new _(t,this._compilerByTemplate.bind(this))}.bind(this),watchMethod:function(e,i,n){n=n||{};var o,s=n.skipImmediate,r=t.$watch(function(){var t=e();return t instanceof Date&&(t=t.valueOf()),t},function(t){var e=o===t;!s&&(!e||e&&n.deep)&&i(t),s=!1},n.deep);return s||(o=e(),i(o)),a().wrapActionsBeforeExecute&&this._applyAsync(function(){},t),r}.bind(this),templates:{"dx-polymorph-widget":{render:function(t){var e=t.model.widget;if(e){if("button"===e||"tabs"===e||"dropDownMenu"===e){var i=e;e=C.camelize("dx-"+e),x.log("W0001","dxToolbar - 'widget' item field",i,"16.1","Use: '"+e+"' instead")}var o=n("<div>").attr(C.dasherize(e),"options").get(0),a=this._scope.$new();a.options=t.model.options,t.container.append(o),this._compile(o)(a)}}.bind(this)}}},e.modelByElement=function(){return t},e}});E=E.inherit({ctor:function(t){this._componentName=t.componentName,this._ngModel=t.ngModel,this._ngModelController=t.ngModelController,this.callBase.apply(this,arguments)},_isNgModelRequired:function(){return this._componentClass.subclassOf(f)&&this._ngModel},_initComponentBindings:function(){this.callBase.apply(this,arguments),this._initNgModelBinding()},_initNgModelBinding:function(){if(this._isNgModelRequired()){var t=this,e=this._scope.$watch(this._ngModel,function(e,i){t._ngLocker.locked(I)||e!==i&&t._component.option(I,e)});t._optionChangedCallbacks.add(function(e){t._ngLocker.obtain(I);try{if(e.name!==I)return;t._ngModelController.$setViewValue(e.value)}finally{t._ngLocker.locked(I)&&t._ngLocker.release(I)}}),this._componentDisposing.add(e)}},_evalOptions:function(){if(!this._isNgModelRequired())return this.callBase.apply(this,arguments);var t=this.callBase.apply(this,arguments);return t[I]=this._parse(this._ngModel)(this._scope),t}});var D={},k=function(t){var e="dxValidator"!==t?1:10;m.directive(t,["$compile","$parse","dxDigestCallbacks",function(i,n,o){
|
|
21
21
|
return{restrict:"A",require:"^?ngModel",priority:e,compile:function(e){var a=D[t],s=a.subclassOf(p)?e.contents().detach():null;return function(e,r,l,c,h){r.append(s),T(function(){new E({componentClass:a,componentName:t,compile:i,parse:n,$element:r,scope:e,ngOptionsString:l[t],ngOptions:l[t]?e.$eval(l[t]):{},ngModel:l.ngModel,ngModelController:c,transcludeFn:h,itemAlias:l[w],dxDigestCallbacks:o})},e)}}}}])};s.add(function(t,e){D[t]||k(t),D[t]=e})},function(t,e,i){var n=i(21),o=i(120),a=i(10).isFunction,s=i(64),r=o.inherit({ctor:function(t,e){this._element=t,this._compiledTemplate=e(s.normalizeTemplateElement(this._element))},_renderCore:function(t){var e=this._compiledTemplate,i=a(e)?e(t):e;return i},source:function(){return n(this._element).clone()}});t.exports=r},function(t,e,i){var n=i(181);t.exports=n.module("dx",[])},function(t,e,i){var n=i(21),o=i(30),a=i(186),s=i(40),r=i(9).extend,l=i(17).each,c=i(13).noop,h=i(10).isDefined,d=i(203),u=i(71).compileGetter,p=i(189).DataSource,f=i(205),_=i(15),m=_.when,g=_.Deferred,v="dxItemDeleting",b=-1,y=function(t){return t!==b},C=a.inherit({_setOptionsByReference:function(){this.callBase(),r(this._optionsByReference,{selectedItem:!0})},_getDefaultOptions:function(){return r(this.callBase(),{selectionMode:"none",selectionRequired:!1,selectionByClick:!0,selectedItems:[],selectedItemKeys:[],maxFilterLengthInRequest:1500,keyExpr:null,selectedIndex:b,selectedItem:null,onSelectionChanged:null,onItemReordered:null,onItemDeleting:null,onItemDeleted:null})},ctor:function(t,e){this._userOptions=e||{},this.callBase(t,e)},_init:function(){this._initEditStrategy(),this.callBase(),this._initKeyGetter(),this._initSelectionModule(),"multi"===this.option("selectionMode")&&this._showDeprecatedSelectionMode()},_initKeyGetter:function(){this._keyGetter=u(this.option("keyExpr"))},_getKeysByItems:function(t){return this._editStrategy.getKeysByItems(t)},_getItemsByKeys:function(t,e){return this._editStrategy.getItemsByKeys(t,e)},_getKeyByIndex:function(t){return this._editStrategy.getKeyByIndex(t)},_getIndexByKey:function(t){return this._editStrategy.getIndexByKey(t)},_getIndexByItemData:function(t){return this._editStrategy.getIndexByItemData(t)},_isKeySpecified:function(){return!(!this._dataSource||!this._dataSource.key())},_getCombinedFilter:function(){return this._dataSource&&this._dataSource.filter()},keyOf:function(t){var e=t,i=this._dataSource&&this._dataSource.store();return this.option("keyExpr")?e=this._keyGetter(t):i&&(e=i.keyOf(t)),e},_initSelectionModule:function(){var t=this,e=t._editStrategy.itemsGetter;this._selection=new f({mode:this.option("selectionMode"),maxFilterLengthInRequest:this.option("maxFilterLengthInRequest"),equalByReference:!this._isKeySpecified(),onSelectionChanged:function(e){(e.addedItemKeys.length||e.removedItemKeys.length)&&(t.option("selectedItems",t._getItemsByKeys(e.selectedItemKeys,e.selectedItems)),t._updateSelectedItems(e))},filter:t._getCombinedFilter.bind(t),totalCount:function(){var e=t.option("items"),i=t._dataSource;return i&&i.totalCount()>=0?i.totalCount():e.length},key:function(){return t.option("keyExpr")?t.option("keyExpr"):t._dataSource&&t._dataSource.key()},keyOf:t.keyOf.bind(t),load:function(e){if(t._dataSource){var i=t._dataSource.loadOptions();e.customQueryParams=i.customQueryParams,e.userData=t._dataSource._userData}var n=t._dataSource&&t._dataSource.store();return n?n.load(e):(new g).resolve([])},dataFields:function(){return t._dataSource&&t._dataSource.select()},plainItems:e.bind(t._editStrategy)})},_initEditStrategy:function(){var t=d;this._editStrategy=new t(this)},_getSelectedItemIndices:function(t){var e=this,i=[];return t=t||this._selection.getSelectedItemKeys(),e._editStrategy.beginCache(),l(t,function(t,n){var o=e._getIndexByKey(n);y(o)&&i.push(o)}),e._editStrategy.endCache(),i},_render:function(){this._rendering=!0,this._dataSource&&this._dataSource.isLoading()||(this._syncSelectionOptions(),this._normalizeSelectedItems()),this.callBase();var t=this._getSelectedItemIndices();this._renderSelection(t,[]),this._rendering=!1},_fireContentReadyAction:function(){this._rendering=!1,this._rendered=!0,this.callBase.apply(this,arguments)},_syncSelectionOptions:function(t){t=t||this._chooseSelectOption();var e,i,n;switch(t){case"selectedIndex":e=this._editStrategy.getItemDataByIndex(this.option("selectedIndex")),h(e)?(this._setOptionSilent("selectedItems",[e]),this._setOptionSilent("selectedItem",e),this._setOptionSilent("selectedItemKeys",this._editStrategy.getKeysByItems([e]))):(this._setOptionSilent("selectedItems",[]),this._setOptionSilent("selectedItemKeys",[]),this._setOptionSilent("selectedItem",null));break;case"selectedItems":if(i=this.option("selectedItems")||[],n=this._editStrategy.getIndexByItemData(i[0]),this.option("selectionRequired")&&!y(n))return void this._syncSelectionOptions("selectedIndex");this._setOptionSilent("selectedItem",i[0]),this._setOptionSilent("selectedIndex",n),this._setOptionSilent("selectedItemKeys",this._editStrategy.getKeysByItems(i));break;case"selectedItem":if(e=this.option("selectedItem"),n=this._editStrategy.getIndexByItemData(e),this.option("selectionRequired")&&!y(n))return void this._syncSelectionOptions("selectedIndex");h(e)?(this._setOptionSilent("selectedItems",[e]),this._setOptionSilent("selectedIndex",n),this._setOptionSilent("selectedItemKeys",this._editStrategy.getKeysByItems([e]))):(this._setOptionSilent("selectedItems",[]),this._setOptionSilent("selectedItemKeys",[]),this._setOptionSilent("selectedIndex",b));break;case"selectedItemKeys":var o=this.option("selectedItemKeys");if(this.option("selectionRequired")&&!y(this._getIndexByKey(o[0])))return void this._syncSelectionOptions("selectedIndex");this._selection.setSelection(o)}},_chooseSelectOption:function(){var t="selectedIndex",e=function(t){var e=this.option(t),i=h(e)&&e.length;return i||t in this._userOptions}.bind(this);return e("selectedItems")?t="selectedItems":e("selectedItem")?t="selectedItem":e("selectedItemKeys")&&(t="selectedItemKeys"),t},_compareKeys:function(t,e){if(t.length!==e.length)return!1;for(var i=0;i<e.length;i++)if(t[i]!==e[i])return!1;return!0},_normalizeSelectedItems:function(){if("none"===this.option("selectionMode"))this._setOptionSilent("selectedItems",[]),this._syncSelectionOptions("selectedItems");else if("single"===this.option("selectionMode")){var t=this.option("selectedItems");if(t.length>1||!t.length&&this.option("selectionRequired")&&this.option("items")&&this.option("items").length){var e=this._selection.getSelectedItems(),i=void 0===t[0]?e[0]:t[0];void 0===i&&(i=this._editStrategy.itemsGetter()[0]),this.option("grouped")&&i&&i.items&&(i.items=[i.items[0]]),this._selection.setSelection(this._getKeysByItems([i])),this._setOptionSilent("selectedItems",[i]),this._syncSelectionOptions("selectedItems")}else this._selection.setSelection(this._getKeysByItems(t))}else{var n=this._getKeysByItems(this.option("selectedItems")),o=this._selection.getSelectedItemKeys();this._compareKeys(o,n)||this._selection.setSelection(n)}},_renderSelection:c,_itemClickHandler:function(t){this._createAction(function(t){this._itemSelectHandler(t.event)}.bind(this),{validatingTargetName:"itemElement"})({itemElement:n(t.currentTarget),event:t}),this.callBase.apply(this,arguments)},_itemSelectHandler:function(t){if(this.option("selectionByClick")){var e=t.currentTarget;this.isItemSelected(e)?this.unselectItem(t.currentTarget):this.selectItem(t.currentTarget)}},_selectedItemElement:function(t){return this._itemElements().eq(t)},_postprocessRenderItem:function(t){if("none"!==this.option("selectionMode")){var e=n(t.itemElement);this._isItemSelected(this._editStrategy.getNormalizedIndex(e))?(e.addClass(this._selectedItemClass()),this._setAriaSelected(e,"true")):this._setAriaSelected(e,"false")}},_updateSelectedItems:function(t){var e=this,i=t.addedItemKeys,n=t.removedItemKeys;if(e._rendered&&(i.length||n.length)){var o=e._selectionChangePromise;if(!e._rendering){var a,s,r=[],l=[];for(e._editStrategy.beginCache(),s=0;s<i.length;s++)a=e._getIndexByKey(i[s]),r.push(a),e._addSelection(a);for(s=0;s<n.length;s++)a=e._getIndexByKey(n[s]),l.push(a),e._removeSelection(a);e._editStrategy.endCache(),e._updateSelection(r,l)}m(o).done(function(){e._fireSelectionChangeEvent(t.addedItems,t.removedItems)})}},_fireSelectionChangeEvent:function(t,e){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:t,removedItems:e})},_updateSelection:function(){this._renderSelection.apply(this,arguments)},_setAriaSelected:function(t,e){this.setAria("selected",e,t)},_removeSelection:function(t){var e=this._editStrategy.getItemElement(t);y(t)&&(e.removeClass(this._selectedItemClass()),this._setAriaSelected(e,"false"),o.triggerHandler(e,"stateChanged",!1))},_showDeprecatedSelectionMode:function(){s.log("W0001",this.NAME,"selectionMode: 'multi'","16.1","Use selectionMode: 'multiple' instead"),this.option("selectionMode","multiple")},_addSelection:function(t){var e=this._editStrategy.getItemElement(t);y(t)&&(e.addClass(this._selectedItemClass()),this._setAriaSelected(e,"true"),o.triggerHandler(e,"stateChanged",!0))},_isItemSelected:function(t){var e=this._getKeyByIndex(t);return this._selection.isItemSelected(e)},_optionChanged:function(t){if(this._cancelOptionChange!==t.name)switch(t.name){case"selectionMode":"multi"===t.value?this._showDeprecatedSelectionMode():this._invalidate();break;case"dataSource":(!t.value||Array.isArray(t.value)&&!t.value.length)&&this.option("selectedItemKeys",[]),this.callBase(t);break;case"selectedIndex":case"selectedItem":case"selectedItems":case"selectedItemKeys":this._syncSelectionOptions(t.name),this._normalizeSelectedItems();break;case"keyExpr":this._initKeyGetter();break;case"selectionRequired":this._normalizeSelectedItems();break;case"selectionByClick":case"onSelectionChanged":case"onItemDeleting":case"onItemDeleted":case"onItemReordered":case"maxFilterLengthInRequest":break;default:this.callBase(t)}},_clearSelectedItems:function(){this._setOptionSilent("selectedItems",[]),this._syncSelectionOptions("selectedItems")},_setOptionSilent:function(t,e){this._cancelOptionChange=t,this.option(t,e),this._cancelOptionChange=!1},_waitDeletingPrepare:function(t){if(t.data(v))return(new g).resolve().promise();t.data(v,!0);var e=new g,i={cancel:!1},n=this._itemEventHandler(t,"onItemDeleting",i,{excludeValidators:["disabled","readOnly"]});return m(n).always(function(o){var a=!n,s=!a&&"resolved"===n.state(),r=!!arguments.length,l=a||s&&!r||s&&o;m(_.fromPromise(i.cancel)).always(function(){t.data(v,!1)}).done(function(t){l&&!t?e.resolve():e.reject()}).fail(e.reject)}.bind(this)),e.promise()},_deleteItemFromDS:function(t){if(!this._dataSource)return(new g).resolve().promise();var e=new g,i=this.option("disabled"),n=this._dataSource.store();if(this.option("disabled",!0),!n.remove)throw s.Error("E1011");return n.remove(n.keyOf(this._getItemData(t))).done(function(t){void 0!==t?e.resolve():e.reject()}).fail(function(){e.reject()}),e.always(function(){this.option("disabled",i)}.bind(this)),e},_tryRefreshLastPage:function(){var t=new g;return this._isLastPage()||this.option("grouped")?t.resolve():this._refreshLastPage().done(function(){t.resolve()}),t.promise()},_refreshLastPage:function(){return this._expectLastItemLoading(),this._dataSource.load()},_updateSelectionAfterDelete:function(t){var e=this._getKeyByIndex(t);this._selection.deselect([e])},_updateIndicesAfterIndex:function(t){for(var e=this._itemElements(),i=t+1;i<e.length;i++)n(e[i]).data(this._itemIndexKey(),i-1)},_simulateOptionChange:function(t){var e=this.option(t);e instanceof p||this._optionChangedAction({name:t,fullName:t,value:e})},isItemSelected:function(t){return this._isItemSelected(this._editStrategy.getNormalizedIndex(t))},selectItem:function(t){if("none"!==this.option("selectionMode")){var e=this._editStrategy.getNormalizedIndex(t);if(y(e)){var i=this._getKeyByIndex(e);if(!this._selection.isItemSelected(i))if("single"===this.option("selectionMode"))this._selection.setSelection([i]);else{var n=this.option("selectedItemKeys");n.push(i),this._selection.setSelection(n)}}}},unselectItem:function(t){var e=this._editStrategy.getNormalizedIndex(t);if(y(e)){var i=this._selection.getSelectedItemKeys();if(!(this.option("selectionRequired")&&i.length<=1)){var n=this._getKeyByIndex(e);this._selection.isItemSelected(n)&&this._selection.deselect([n])}}},deleteItem:function(t){var e=this,i=new g,n=this._editStrategy.getItemElement(t),o=this._editStrategy.getNormalizedIndex(t),a=this._dataSource?"dataSource":"items",s=this._itemResponseWaitClass();return y(o)?this._waitDeletingPrepare(n).done(function(){n.addClass(s);var t=e._extendActionArgs(n);e._deleteItemFromDS(n).done(function(){e._updateSelectionAfterDelete(o),e._updateIndicesAfterIndex(o),e._editStrategy.deleteItemAtIndex(o),e._simulateOptionChange(a),e._itemEventHandler(n,"onItemDeleted",t,{beforeExecute:function(){n.detach()},excludeValidators:["disabled","readOnly"]}),e._renderEmptyMessage(),e._tryRefreshLastPage().done(function(){i.resolveWith(e)})}).fail(function(){n.removeClass(s),i.rejectWith(e)})}).fail(function(){i.rejectWith(e)}):i.rejectWith(e),i.promise()},reorderItem:function(t,e){var i=new g,n=this,o=this._editStrategy,a=o.getItemElement(t),s=o.getItemElement(e),r=o.getNormalizedIndex(t),l=o.getNormalizedIndex(e),c=this._dataSource?"dataSource":"items",h=y(r)&&y(l)&&r!==l;return h?i.resolveWith(this):i.rejectWith(this),i.promise().done(function(){s[o.itemPlacementFunc(r,l)](a),o.moveItemAtIndexToIndex(r,l),this._updateIndicesAfterIndex(r),n.option("selectedItems",n._getItemsByKeys(n._selection.getSelectedItemKeys(),n._selection.getSelectedItems())),"items"===c&&n._simulateOptionChange(c),n._itemEventHandler(a,"onItemReordered",{fromIndex:o.getIndex(r),toIndex:o.getIndex(l)},{excludeValidators:["disabled","readOnly"]})})}});t.exports=C},function(t,e,i){var n=i(21),o=i(30),a=i(13),s=i(64).getPublicElement,r=i(10).isPlainObject,l=i(15).when,c=i(9).extend,h=i(25).inArray,d=i(17),u=i(70),p=i(187),f=i(64),_=i(71),m=i(118),g=i(93),v=i(98),b=i(188),y=i(199),C=i(94),x=i(111),w=i(200),S=i(97),I=i(201),T=i(202),E="dx-collection",D="dx-item",k="-content",B="dx-item-content-placeholder",A="dxItemData",M="dxItemIndex",O="tmpl-",P="[data-options*='dxItem']",$="dx-item-selected",H="dx-item-response-wait",V="dx-empty-collection",R="dx-template-wrapper",F=/^([^.]+\[\d+\]\.)+([\w\.]+)$/,L="up",N="down",W="left",z="right",K="pageup",G="pagedown",U="last",j="first",q=m.inherit({_activeStateUnit:"."+D,_supportedKeys:function(){var t=function(t){var e=n(this.option("focusedElement"));e.length&&(t.target=e,t.currentTarget=e,this._itemClickHandler(t))},e=function(e){e.preventDefault(),t.call(this,e)},i=function(t,e){e.preventDefault(),e.stopPropagation(),this._moveFocus(t,e)};return c(this.callBase(),{space:e,enter:t,leftArrow:i.bind(this,W),rightArrow:i.bind(this,z),upArrow:i.bind(this,L),downArrow:i.bind(this,N),pageUp:i.bind(this,L),pageDown:i.bind(this,N),home:i.bind(this,j),end:i.bind(this,U)})},_getDefaultOptions:function(){return c(this.callBase(),{selectOnFocus:!1,loopItemFocus:!0,items:[],itemTemplate:"item",onItemRendered:null,onItemClick:null,onItemHold:null,itemHoldTimeout:750,onItemContextMenu:null,onFocusedItemChanged:null,noDataText:x.format("dxCollectionWidget-noDataText"),dataSource:null,_itemAttributes:{},itemTemplateProperty:"template",focusOnSelectedItem:!0,focusedElement:null,disabledExpr:function(t){return t?t.disabled:void 0},visibleExpr:function(t){return t?t.visible:void 0}})},_getAnonymousTemplateName:function(){return"item"},_init:function(){this.callBase(),this._cleanRenderedItems(),this._refreshDataSource()},_initTemplates:function(){this._initItemsFromMarkup(),this.callBase(),this._defaultTemplates.item=new T(function(t,e){r(e)?this._prepareDefaultItemTemplate(e,t):t.text(String(e))}.bind(this),["text","html"],this.option("integrationOptions.watchMethod"))},_prepareDefaultItemTemplate:function(t,e){t.text&&e.text(t.text),t.html&&e.html(t.html)},_initItemsFromMarkup:function(){var t=this.$element().contents().filter(P);if(t.length&&!this.option("items").length){var e=d.map(t,function(t){var e=n(t),i=f.getElementOptions(t).dxItem,o=e.html().trim()&&!i.template;return o?i.template=this._prepareItemTemplate(e):e.remove(),i}.bind(this));this.option("items",e)}},_prepareItemTemplate:function(t){var e=O+new p,i='dxTemplate: { name: "'+e+'" }';return t.detach().clone().attr("data-options",i).data("options",i).appendTo(this.$element()),e},_dataSourceOptions:function(){return{paginate:!1}},_cleanRenderedItems:function(){this._renderedItemsCount=0},_focusTarget:function(){return this.$element()},_focusInHandler:function(t){if(this.callBase.apply(this,arguments),h(t.target,this._focusTarget())!==-1){var e=n(this.option("focusedElement"));if(e.length)this._setFocusedItem(e);else{var i=this._getActiveItem();i.length&&this.option("focusedElement",s(i))}}},_focusOutHandler:function(){this.callBase.apply(this,arguments);var t=n(this.option("focusedElement"));t.length&&this._toggleFocusClass(!1,t)},_getActiveItem:function(t){var e=n(this.option("focusedElement"));if(e.length)return e;var i=this.option("focusOnSelectedItem")?this.option("selectedIndex"):0,o=this._getActiveElement(),a=o.length-1;return i<0&&(i=t?a:0),o.eq(i)},_renderFocusTarget:function(){this.callBase.apply(this,arguments),this._refreshActiveDescendant()},_moveFocus:function(t){var e,i=this._getAvailableItems();switch(t){case K:case L:e=this._prevItem(i);break;case G:case N:e=this._nextItem(i);break;case z:e=this.option("rtlEnabled")?this._prevItem(i):this._nextItem(i);break;case W:e=this.option("rtlEnabled")?this._nextItem(i):this._prevItem(i);break;case j:e=i.first();break;case U:e=i.last();break;default:return!1}0!==e.length&&this.option("focusedElement",s(e))},_getAvailableItems:function(t){return t=t||this._itemElements(),t.filter(":visible").not(".dx-state-disabled")},_prevItem:function(t){var e=this._getActiveItem(),i=t.index(e),o=t.last(),a=n(t[i-1]),s=this.option("loopItemFocus");return 0===a.length&&s&&(a=o),a},_nextItem:function(t){var e=this._getActiveItem(!0),i=t.index(e),o=t.first(),a=n(t[i+1]),s=this.option("loopItemFocus");return 0===a.length&&s&&(a=o),a},_selectFocusedItem:function(t){this.selectItem(t)},_removeFocusedItem:function(t){var e=n(t);e.length&&(this._toggleFocusClass(!1,e),e.removeAttr("id"))},_refreshActiveDescendant:function(){this.setAria("activedescendant",""),this.setAria("activedescendant",this.getFocusedItemId())},_setFocusedItem:function(t){t&&t.length&&(t.attr("id",this.getFocusedItemId()),this._toggleFocusClass(!0,t),this.onFocusedItemChanged(this.getFocusedItemId()),this._refreshActiveDescendant(),this.option("selectOnFocus")&&this._selectFocusedItem(t))},_findItemElementByItem:function(t){var e=n(),i=this;return this.itemElements().each(function(){var o=n(this);if(o.data(i._itemDataKey())===t)return e=o,!1}),e},_getIndexByItem:function(t){return this.option("items").indexOf(t)},_itemOptionChanged:function(t,e,i,n){var o=this._findItemElementByItem(t);o.length&&(this.constructor.ItemClass.getInstance(o).setDataField(e,i)||this._refreshItem(o,t))},_refreshItem:function(t){var e=this._getItemData(t),i=t.data(this._itemIndexKey());this._renderItem(i,e,null,t)},_optionChanged:function(t){if("items"===t.name){var e=t.fullName.match(F);if(e&&e.length){var i=e[e.length-1],o=t.fullName.replace("."+i,""),a=this.option(o);return void this._itemOptionChanged(a,i,t.value,t.previousValue)}}switch(t.name){case"items":case"_itemAttributes":case"itemTemplateProperty":this._cleanRenderedItems(),this._invalidate();break;case"dataSource":this.option("items",[]),this._refreshDataSource(),this._renderEmptyMessage();break;case"noDataText":this._renderEmptyMessage();break;case"itemTemplate":this._invalidate();break;case"onItemRendered":this._createItemRenderAction();break;case"onItemClick":break;case"onItemHold":case"itemHoldTimeout":this._attachHoldEvent();break;case"onItemContextMenu":this._attachContextMenuEvent();break;case"onFocusedItemChanged":this.onFocusedItemChanged=this._createActionByOption("onFocusedItemChanged");break;case"selectOnFocus":case"loopItemFocus":case"focusOnSelectedItem":break;case"focusedElement":this._removeFocusedItem(t.previousValue),this._setFocusedItem(n(t.value));break;case"visibleExpr":case"disabledExpr":this._invalidate();break;default:this.callBase(t)}},_loadNextPage:function(){var t=this._dataSource;return this._expectNextPageLoading(),t.pageIndex(1+t.pageIndex()),t.load()},_expectNextPageLoading:function(){this._startIndexForAppendedItems=0},_expectLastItemLoading:function(){this._startIndexForAppendedItems=-1},_forgetNextPageLoading:function(){this._startIndexForAppendedItems=null},_dataSourceChangedHandler:function(t){var e=this.option("items");this._initialized&&e&&this._shouldAppendItems()?(this._renderedItemsCount=e.length,this._isLastPage()&&this._startIndexForAppendedItems===-1||(this.option().items=e.concat(t.slice(this._startIndexForAppendedItems))),this._forgetNextPageLoading(),this._renderContent(),this._renderFocusTarget()):this.option("items",t)},_dataSourceLoadErrorHandler:function(){this._forgetNextPageLoading(),this.option("items",this.option("items"))},_shouldAppendItems:function(){return null!=this._startIndexForAppendedItems&&this._allowDynamicItemsAppend()},_allowDynamicItemsAppend:function(){return!1},_clean:function(){this._cleanFocusState(),this._cleanItemContainer()},_cleanItemContainer:function(){this._itemContainer().empty()},_dispose:function(){this.callBase(),clearTimeout(this._itemFocusTimeout)},_refresh:function(){this._cleanRenderedItems(),this.callBase.apply(this,arguments)},_itemContainer:function(){return this.$element()},_itemClass:function(){return D},_itemContentClass:function(){return this._itemClass()+k},_selectedItemClass:function(){return $},_itemResponseWaitClass:function(){return H},_itemSelector:function(){return"."+this._itemClass()},_itemDataKey:function(){return A},_itemIndexKey:function(){return M},_itemElements:function(){return this._itemContainer().find(this._itemSelector())},_render:function(){this.onFocusedItemChanged=this._createActionByOption("onFocusedItemChanged"),this.callBase(),this.$element().addClass(E),this._attachClickEvent(),this._attachHoldEvent(),this._attachContextMenuEvent()},_attachClickEvent:function(){var t=this._itemSelector(),e=g.addNamespace(S.name,this.NAME),i=g.addNamespace(v.down,this.NAME),a=this,s=new u(function(t){var e=t.event;a._itemPointerDownHandler(e)});o.off(this._itemContainer(),e,t),o.off(this._itemContainer(),i,t),o.on(this._itemContainer(),e,t,function(t){this._itemClickHandler(t)}.bind(this)),o.on(this._itemContainer(),i,t,function(t){s.execute({element:n(t.target),event:t})})},_itemClickHandler:function(t,e,i){this._itemDXEventHandler(t,"onItemClick",e,i)},_itemPointerDownHandler:function(t){this.option("focusStateEnabled")&&(this._itemFocusHandler=function(){if(clearTimeout(this._itemFocusTimeout),this._itemFocusHandler=null,!t.isDefaultPrevented()){var e=n(t.target),i=e.closest(this._itemElements()),o=this._closestFocusable(e);i.length&&o&&h(o.get(0),this._focusTarget())!==-1&&this.option("focusedElement",s(i))}}.bind(this),this._itemFocusTimeout=setTimeout(this._forcePointerDownFocus.bind(this)))},_closestFocusable:function(t){if(t.is(C.focusable))return t;for(t=t.parent();t.length&&!t.is(document);){if(t.is(C.focusable))return t;t=t.parent()}},_forcePointerDownFocus:function(){this._itemFocusHandler&&this._itemFocusHandler()},_updateFocusState:function(){this.callBase.apply(this,arguments),this._forcePointerDownFocus()},_attachHoldEvent:function(){var t=this._itemContainer(),e=this._itemSelector(),i=g.addNamespace(w.name,this.NAME);o.off(t,i,e),o.on(t,i,e,{timeout:this._getHoldTimeout()},this._itemHoldHandler.bind(this))},_getHoldTimeout:function(){return this.option("itemHoldTimeout")},_shouldFireHoldEvent:function(){return this.hasActionSubscription("onItemHold")},_itemHoldHandler:function(t){this._shouldFireHoldEvent()?this._itemDXEventHandler(t,"onItemHold"):t.cancel=!0},_attachContextMenuEvent:function(){var t=this._itemContainer(),e=this._itemSelector(),i=g.addNamespace(I.name,this.NAME);o.off(t,i,e),o.on(t,i,e,this._itemContextMenuHandler.bind(this))},_shouldFireContextMenuEvent:function(){return this.hasActionSubscription("onItemContextMenu")},_itemContextMenuHandler:function(t){this._shouldFireContextMenuEvent()?this._itemDXEventHandler(t,"onItemContextMenu"):t.cancel=!0},_renderContentImpl:function(){var t=this.option("items")||[];this._renderedItemsCount?this._renderItems(t.slice(this._renderedItemsCount)):this._renderItems(t)},_renderItems:function(t){t.length&&d.each(t,this._renderItem.bind(this)),this._renderEmptyMessage()},_renderItem:function(t,e,i,n){t=this._renderedItemsCount+t,i=i||this._itemContainer();var o=this._renderItemFrame(t,e,i,n);this._setElementData(o,e,t),o.attr(this.option("_itemAttributes")),this._attachItemClickEvent(e,o);var a=this._getItemContent(o),r=this._renderItemContent({index:t,itemData:e,container:s(a),contentClass:this._itemContentClass(),defaultTemplateName:this.option("itemTemplate")}),c=this;return l(r).done(function(i){c._postprocessRenderItem({itemElement:o,itemContent:i,itemData:e,itemIndex:t}),c._executeItemRenderAction(t,e,s(o))}),o},_getItemContent:function(t){var e=t.find("."+B);return e.removeClass(B),e},_attachItemClickEvent:function(t,e){t&&t.onClick&&o.on(e,S.name,function(i){this._itemEventHandlerByHandler(e,t.onClick,{event:i})}.bind(this))},_renderItemContent:function(t){var e=this._getItemTemplateName(t),i=this._getTemplate(e);this._addItemContentClasses(t);var o=n(this._createItemByTemplate(i,t));return o.hasClass(R)?this._renderItemContentByNode(t,o):t.container},_renderItemContentByNode:function(t,e){return n(t.container).replaceWith(e),t.container=s(e),this._addItemContentClasses(t),e},_addItemContentClasses:function(t){var e=[D+k,t.contentClass];n(t.container).addClass(e.join(" "))},_renderItemFrame:function(t,e,i,o){var a=n("<div>");return new this.constructor.ItemClass(a,this._itemOptions(),e||{}),o&&o.length?o.replaceWith(a):a.appendTo(i),a},_itemOptions:function(){var t=this;return{watchMethod:function(){return t.option("integrationOptions.watchMethod")},fieldGetter:function(e){var i=t.option(e+"Expr"),n=_.compileGetter(i);return n}}},_postprocessRenderItem:a.noop,_executeItemRenderAction:function(t,e,i){this._getItemRenderAction()({itemElement:i,itemIndex:t,itemData:e})},_setElementData:function(t,e,i){t.addClass([D,this._itemClass()].join(" ")).data(this._itemDataKey(),e).data(this._itemIndexKey(),i)},_createItemRenderAction:function(){return this._itemRenderAction=this._createActionByOption("onItemRendered",{element:this.element(),excludeValidators:["designMode","disabled","readOnly"],category:"rendering"})},_getItemRenderAction:function(){return this._itemRenderAction||this._createItemRenderAction()},_getItemTemplateName:function(t){var e=t.itemData,i=t.templateProperty||this.option("itemTemplateProperty"),n=e&&e[i];return n||t.defaultTemplateName},_createItemByTemplate:function(t,e){return t.render({model:e.itemData,container:e.container,index:e.index})},_emptyMessageContainer:function(){return this._itemContainer()},_renderEmptyMessage:function(t){t=t||this.option("items");var e=this.option("noDataText"),i=!e||t&&t.length||this._isDataSourceLoading();i&&this._$noData&&(this._$noData.remove(),this._$noData=null,this.setAria("label",void 0)),i||(this._$noData=this._$noData||n("<div>").addClass("dx-empty-message"),this._$noData.appendTo(this._emptyMessageContainer()).html(e),this.setAria("label",e)),this.$element().toggleClass(V,!i)},_itemDXEventHandler:function(t,e,i,n){this._itemEventHandler(t.target,e,c(i,{event:t}),n)},_itemEventHandler:function(t,e,i,n){var o=this._createActionByOption(e,c({validatingTargetName:"itemElement"},n));return this._itemEventHandlerImpl(t,o,i)},_itemEventHandlerByHandler:function(t,e,i,n){var o=this._createAction(e,c({validatingTargetName:"itemElement"},n));return this._itemEventHandlerImpl(t,o,i)},_itemEventHandlerImpl:function(t,e,i){var o=this._closestItemElement(n(t)),a=c({},i);return e(c(i,this._extendActionArgs(o),a))},_extendActionArgs:function(t){return{itemElement:s(t),itemIndex:this._itemElements().index(t),itemData:this._getItemData(t)}},_closestItemElement:function(t){return n(t).closest(this._itemSelector())},_getItemData:function(t){return n(t).data(this._itemDataKey())},_getSummaryItemsWidth:function(t,e){var i=0;return t&&d.each(t,function(t,o){i+=n(o).outerWidth(e||!1)}),i},getFocusedItemId:function(){return this._focusedItemId||(this._focusedItemId="dx-"+new p),this._focusedItemId},itemElements:function(){return this._itemElements()},itemsContainer:function(){return this._itemContainer()}}).include(b);q.ItemClass=y,t.exports=q},function(t,e,i){var n=i(29),o=n.inherit({ctor:function(t){t&&(t=String(t)),this._value=this._normalize(t||this._generate())},_normalize:function(t){for(t=t.replace(/[^a-f0-9]/gi,"").toLowerCase();t.length<32;)t+="0";return[t.substr(0,8),t.substr(8,4),t.substr(12,4),t.substr(16,4),t.substr(20,12)].join("-")},_generate:function(){for(var t="",e=0;e<32;e++)t+=Math.round(15*Math.random()).toString(16);return t},toString:function(){return this._value},valueOf:function(){return this._value},toJSON:function(){return this._value}});t.exports=o},function(t,e,i){var n=i(189).DataSource,o=i(9).extend,a=i(189).normalizeDataSourceOptions,s="_dataSourceOptions",r="_dataSourceChangedHandler",l="_dataSourceLoadErrorHandler",c="_dataSourceLoadingChangedHandler",h="_dataSourceFromUrlLoadMode",d="_getSpecificDataSourceOption",u={postCtor:function(){this.on("disposing",function(){this._disposeDataSource()}.bind(this))},_refreshDataSource:function(){this._initDataSource(),this._loadDataSource()},_initDataSource:function(){var t,e,i=d in this?this[d]():this.option("dataSource");this._disposeDataSource(),i&&(i instanceof n?(this._isSharedDataSource=!0,this._dataSource=i):(t=s in this?this[s]():{},e=this._dataSourceType?this._dataSourceType():n,i=a(i,{fromUrlLoadMode:h in this&&this[h]()}),this._dataSource=new e(o(!0,{},t,i))),this._addDataSourceHandlers())},_addDataSourceHandlers:function(){r in this&&this._addDataSourceChangeHandler(),l in this&&this._addDataSourceLoadErrorHandler(),c in this&&this._addDataSourceLoadingChangedHandler(),this._addReadyWatcher()},_addReadyWatcher:function(){this._dataSource.on("loadingChanged",function(t){this._ready&&this._ready(!t)}.bind(this))},_addDataSourceChangeHandler:function(){var t=this._dataSource;this._proxiedDataSourceChangedHandler=function(){this[r](t.items())}.bind(this),t.on("changed",this._proxiedDataSourceChangedHandler)},_addDataSourceLoadErrorHandler:function(){this._proxiedDataSourceLoadErrorHandler=this[l].bind(this),this._dataSource.on("loadError",this._proxiedDataSourceLoadErrorHandler)},_addDataSourceLoadingChangedHandler:function(){this._proxiedDataSourceLoadingChangedHandler=this[c].bind(this),this._dataSource.on("loadingChanged",this._proxiedDataSourceLoadingChangedHandler)},_loadDataSource:function(){if(this._dataSource){var t=this._dataSource;t.isLoaded()?this._proxiedDataSourceChangedHandler&&this._proxiedDataSourceChangedHandler():t.load()}},_loadSingle:function(t,e){return t="this"===t?this._dataSource.key()||"this":t,this._dataSource.loadSingle(t,e)},_isLastPage:function(){return!this._dataSource||this._dataSource.isLastPage()||!this._dataSource._pageSize},_isDataSourceLoading:function(){return this._dataSource&&this._dataSource.isLoading()},_disposeDataSource:function(){this._dataSource&&(this._isSharedDataSource?(delete this._isSharedDataSource,this._proxiedDataSourceChangedHandler&&this._dataSource.off("changed",this._proxiedDataSourceChangedHandler),this._proxiedDataSourceLoadErrorHandler&&this._dataSource.off("loadError",this._proxiedDataSourceLoadErrorHandler),
|
|
22
22
|
this._proxiedDataSourceLoadingChangedHandler&&this._dataSource.off("loadingChanged",this._proxiedDataSourceLoadingChangedHandler)):this._dataSource.dispose(),delete this._dataSource,delete this._proxiedDataSourceChangedHandler,delete this._proxiedDataSourceLoadErrorHandler,delete this._proxiedDataSourceLoadingChangedHandler)},getDataSource:function(){return this._dataSource||null}};t.exports=u},function(t,e,i){function n(){this._counter=-1,this._deferreds={}}function o(t){return"pending"===t.state()}function a(t,e){function i(){var e={};return u.each(["useDefaultSearch","key","load","loadMode","cacheRawData","byKey","lookup","totalCount","insert","update","remove"],function(){e[this]=t[this],delete t[this]}),new v(e)}function n(t){var e=t.type;return delete t.type,m.create(e,t)}function o(t){return new v({load:function(){return p.sendRequest({url:t,dataType:"json"})},loadMode:e&&e.fromUrlLoadMode})}var a;return"string"==typeof t&&(t={paginate:!1,store:o(t)}),void 0===t&&(t=[]),t=Array.isArray(t)||t instanceof m?{store:t}:h({},t),void 0===t.store&&(t.store=[]),a=t.store,"load"in t?a=i():Array.isArray(a)?a=new g(a):f.isPlainObject(a)&&(a=n(h({},a))),t.store=a,t}function s(t){switch(t.length){case 0:return;case 1:return t[0]}return[].slice.call(t)}function r(t){return function(){var e=s(arguments);return void 0===e?this._storeLoadOptions[t]:void(this._storeLoadOptions[t]=e)}}function l(t,e,i){function n(t,i){return Array.isArray(t)?i?o(t,i):u.map(t,e):t}function o(t,e){return u.map(t,function(t){var i={key:t.key,items:n(t.items,e-1)};return"aggregates"in t&&(i.aggregates=t.aggregates),i})}return n(t,i?_.normalizeSortingInfo(i).length:0)}var c=i(29),h=i(9).extend,d=i(13),u=i(17),p=i(60),f=i(10),_=i(173),m=i(190),g=i(194),v=i(198),b=i(72),y=i(191).errors,C=i(25),x=i(83),w=i(15),S=w.when,I=w.Deferred,T=f.isString,E=f.isNumeric,D=f.isBoolean,k=f.isDefined,B="canceled";n.prototype.constructor=n,n.prototype.add=function(t){return this._counter+=1,this._deferreds[this._counter]=t,this._counter},n.prototype.remove=function(t){return delete this._deferreds[t]},n.prototype.cancel=function(t){return t in this._deferreds&&(this._deferreds[t].reject(B),!0)},n.prototype.cancelAll=function(){for(;this._counter>-1;)this.cancel(this._counter),this._counter--};var A=c.inherit({ctor:function(t){var e=this;t=a(t),this._store=t.store,this._storeLoadOptions=this._extractLoadOptions(t),this._mapFunc=t.map,this._postProcessFunc=t.postProcess,this._pageIndex=void 0!==t.pageIndex?t.pageIndex:0,this._pageSize=void 0!==t.pageSize?t.pageSize:20,this._loadingCount=0,this._loadQueue=this._createLoadQueue(),this._searchValue="searchValue"in t?t.searchValue:null,this._searchOperation=t.searchOperation||"contains",this._searchExpr=t.searchExpr,this._paginate=t.paginate,u.each(["onChanged","onLoadError","onLoadingChanged","onCustomizeLoadResult","onCustomizeStoreLoadOptions"],function(i,n){n in t&&e.on(n.substr(2,1).toLowerCase()+n.substr(3),t[n])}),this._operationManager=new n,this._init()},_init:function(){this._items=[],this._userData={},this._totalCount=-1,this._isLoaded=!1,k(this._paginate)||(this._paginate=!this.group()),this._isLastPage=!this._paginate},dispose:function(){this._disposeEvents(),delete this._store,this._delayedLoadTask&&this._delayedLoadTask.abort(),this._operationManager.cancelAll(),this._disposed=!0},_extractLoadOptions:function(t){var e={},i=["sort","filter","select","group","requireTotalCount"],n=this._store._customLoadOptions();return n&&(i=i.concat(n)),u.each(i,function(){e[this]=t[this]}),e},loadOptions:function(){return this._storeLoadOptions},items:function(){return this._items},pageIndex:function(t){return E(t)?(this._pageIndex=t,void(this._isLastPage=!this._paginate)):this._pageIndex},paginate:function(t){return D(t)?void(this._paginate!==t&&(this._paginate=t,this.pageIndex(0))):this._paginate},pageSize:function(t){return E(t)?void(this._pageSize=t):this._pageSize},isLastPage:function(){return this._isLastPage},sort:r("sort"),filter:function(){var t=s(arguments);return void 0===t?this._storeLoadOptions.filter:(this._storeLoadOptions.filter=t,void this.pageIndex(0))},group:r("group"),select:r("select"),requireTotalCount:function(t){return D(t)?void(this._storeLoadOptions.requireTotalCount=t):this._storeLoadOptions.requireTotalCount},searchValue:function(t){return arguments.length<1?this._searchValue:(this._searchValue=t,void this.pageIndex(0))},searchOperation:function(t){return T(t)?(this._searchOperation=t,void this.pageIndex(0)):this._searchOperation},searchExpr:function(t){var e=arguments.length;return 0===e?this._searchExpr:(e>1&&(t=[].slice.call(arguments)),this._searchExpr=t,void this.pageIndex(0))},store:function(){return this._store},key:function(){return this._store&&this._store.key()},totalCount:function(){return this._totalCount},isLoaded:function(){return this._isLoaded},isLoading:function(){return this._loadingCount>0},beginLoading:function(){this._changeLoadingCount(1)},endLoading:function(){this._changeLoadingCount(-1)},_createLoadQueue:function(){return x.create()},_changeLoadingCount:function(t){var e,i=this.isLoading();this._loadingCount+=t,e=this.isLoading(),i^e&&this.fireEvent("loadingChanged",[e])},_scheduleLoadCallbacks:function(t){var e=this;e.beginLoading(),t.always(function(){e.endLoading()})},_scheduleFailCallbacks:function(t){var e=this;t.fail(function(){arguments[0]!==B&&e.fireEvent("loadError",arguments)})},_scheduleChangedCallbacks:function(t){var e=this;t.done(function(){e.fireEvent("changed")})},loadSingle:function(t,e){function i(){return s instanceof v&&!s._byKeyViaLoad()}var n=this,o=new I,a=this.key(),s=this._store,r=this._createStoreLoadOptions(),l=function(t){!k(t)||C.isEmpty(t)?o.reject(new y.Error("E4009")):(Array.isArray(t)||(t=[t]),o.resolve(n._applyMapFunction(t)[0]))};return this._scheduleFailCallbacks(o),arguments.length<2&&(e=t,t=a),delete r.skip,delete r.group,delete r.refresh,delete r.pageIndex,delete r.searchString,function(){return t===a||i()?s.byKey(e,r):(r.take=1,r.filter=r.filter?[r.filter,[t,e]]:[t,e],s.load(r))}().fail(o.reject).done(l),o.promise()},load:function(){function t(){if(!i._disposed&&o(n))return i._loadFromStore(e,n)}var e,i=this,n=new I;return this._scheduleLoadCallbacks(n),this._scheduleFailCallbacks(n),this._scheduleChangedCallbacks(n),e=this._createLoadOperation(n),this.fireEvent("customizeStoreLoadOptions",[e]),this._loadQueue.add(function(){return"number"==typeof e.delay?i._delayedLoadTask=d.executeAsync(t,e.delay):t(),n.promise()}),n.promise({operationId:e.operationId})},_createLoadOperation:function(t){var e=this._operationManager.add(t),i=this._createStoreLoadOptions();return t.always(function(){this._operationManager.remove(e)}.bind(this)),{operationId:e,storeLoadOptions:i}},reload:function(){var t=this.store();return t instanceof v&&t.clearRawDataCache(),this._init(),this.load()},cancel:function(t){return this._operationManager.cancel(t)},_addSearchOptions:function(t){this._disposed||(this.store()._useDefaultSearch?this._addSearchFilter(t):(t.searchOperation=this._searchOperation,t.searchValue=this._searchValue,t.searchExpr=this._searchExpr))},_createStoreLoadOptions:function(){var t=h({},this._storeLoadOptions);return this._addSearchOptions(t),this._paginate&&this._pageSize&&(t.skip=this._pageIndex*this._pageSize,t.take=this._pageSize),t.userData=this._userData,t},_addSearchFilter:function(t){var e=this._searchValue,i=this._searchOperation,n=this._searchExpr,o=[];e&&(n||(n="this"),Array.isArray(n)||(n=[n]),u.each(n,function(t,n){o.length&&o.push("or"),o.push([n,i,e])}),t.filter?t.filter=[o,t.filter]:t.filter=o)},_loadFromStore:function(t,e){function i(i,a){function s(){var o;i&&!Array.isArray(i)&&i.data&&(a=i,i=i.data),Array.isArray(i)||(i=[i]),o=h({data:i,extra:a},t),n.fireEvent("customizeLoadResult",[o]),S(o.data).done(function(t){o.data=t,n._processStoreLoadResult(o,e)}).fail(e.reject)}n._disposed||o(e)&&s()}var n=this;return t.data?(new I).resolve(t.data).done(i):this.store().load(t.storeLoadOptions).done(i).fail(e.reject)},_processStoreLoadResult:function(t,e){function i(){return o._isLoaded=!0,o._totalCount=isFinite(s.totalCount)?s.totalCount:-1,e.resolve(a,s)}function n(){o.store().totalCount(r).done(function(t){s.totalCount=t,i()}).fail(e.reject)}var o=this,a=t.data,s=t.extra,r=t.storeLoadOptions;o._disposed||(a=o._applyPostProcessFunction(o._applyMapFunction(a)),f.isPlainObject(s)||(s={}),o._items=a,(!a.length||!o._paginate||o._pageSize&&a.length<o._pageSize)&&(o._isLastPage=!0),r.requireTotalCount&&!isFinite(s.totalCount)?n():i())},_applyMapFunction:function(t){return this._mapFunc?l(t,this._mapFunc,this.group()):t},_applyPostProcessFunction:function(t){return this._postProcessFunc?this._postProcessFunc(t):t}}).include(b);e.DataSource=A,e.normalizeDataSourceOptions=a},function(t,e,i){var n=i(29),o=n.abstract,a=i(72),s=i(17).each,r=i(191),l=i(173),c=i(71).compileGetter,h=i(192),d=h.queryByOptions,u=i(15).Deferred,p={},f=n.inherit({ctor:function(t){var e=this;t=t||{},s(["onLoaded","onLoading","onInserted","onInserting","onUpdated","onUpdating","onRemoved","onRemoving","onModified","onModifying"],function(i,n){n in t&&e.on(n.slice(2).toLowerCase(),t[n])}),this._key=t.key,this._errorHandler=t.errorHandler,this._useDefaultSearch=!0},_customLoadOptions:function(){return null},key:function(){return this._key},keyOf:function(t){return this._keyGetter||(this._keyGetter=c(this.key())),this._keyGetter(t)},_requireKey:function(){if(!this.key())throw r.errors.Error("E4005")},load:function(t){var e=this;return t=t||{},this.fireEvent("loading",[t]),this._withLock(this._loadImpl(t)).done(function(i){e.fireEvent("loaded",[i,t])})},_loadImpl:function(t){return d(this.createQuery(t),t).enumerate()},_withLock:function(t){var e=new u;return t.done(function(){var t=this,i=arguments;l.processRequestResultLock.promise().done(function(){e.resolveWith(t,i)})}).fail(function(){e.rejectWith(this,arguments)}),e},createQuery:o,totalCount:function(t){return this._totalCountImpl(t)},_totalCountImpl:function(t){return d(this.createQuery(t),t,!0).count()},byKey:function(t,e){return this._addFailHandlers(this._withLock(this._byKeyImpl(t,e)))},_byKeyImpl:o,insert:function(t){var e=this;return e.fireEvent("modifying"),e.fireEvent("inserting",[t]),e._addFailHandlers(e._insertImpl(t).done(function(t,i){e.fireEvent("inserted",[t,i]),e.fireEvent("modified")}))},_insertImpl:o,update:function(t,e){var i=this;return i.fireEvent("modifying"),i.fireEvent("updating",[t,e]),i._addFailHandlers(i._updateImpl(t,e).done(function(t,e){i.fireEvent("updated",[t,e]),i.fireEvent("modified")}))},_updateImpl:o,remove:function(t){var e=this;return e.fireEvent("modifying"),e.fireEvent("removing",[t]),e._addFailHandlers(e._removeImpl(t).done(function(t){e.fireEvent("removed",[t]),e.fireEvent("modified")}))},_removeImpl:o,_addFailHandlers:function(t){return t.fail(this._errorHandler).fail(r._errorHandler)}}).include(a);f.create=function(t,e){if(!(t in p))throw r.errors.Error("E4020",t);return new p[t](e)},f.inherit=function(t){return function(e,i){var n=t.apply(this,[e]);return i&&(p[i]=n),n}}(f.inherit),t.exports=f},function(t,e,i){var n=i(8),o=i(7),a={},s=n(o.ERROR_MESSAGES,{E4000:"[DevExpress.data]: {0}",E4001:"Unknown aggregating function is detected: '{0}'",E4002:"Unsupported OData protocol version is used",E4003:"Unknown filter operation is used: {0}",E4004:"The thenby() method is called before the sortby() method",E4005:"Store requires a key expression for this operation",E4006:"ArrayStore 'data' option must be an array",E4007:"Compound keys cannot be auto-generated",E4008:"Attempt to insert an item with the a duplicated key",E4009:"Data item cannot be found",E4010:"CustomStore does not support creating queries",E4011:"Custom Store method is not implemented or is not a function: {0}",E4012:"Custom Store method returns an invalid value: {0}",E4013:"Local Store requires the 'name' configuration option is specified",E4014:"Unknown data type is specified for ODataStore: {0}",E4015:"Unknown entity name or alias is used: {0}",E4016:"The compileSetter(expr) method is called with 'self' passed as a parameter",E4017:"Keys cannot be modified",E4018:"The server has returned a non-numeric value in a response to an item count request",E4019:"Mixing of group operators inside a single group of filter expression is not allowed",E4020:"Unknown store type is detected: {0}",E4021:"The server response does not provide the totalCount value",E4022:"The server response does not provide the groupCount value",E4023:"Could not parse the following XML: {0}",W4000:"Data returned from the server has an incorrect structure",W4001:'The {0} field is listed in both "keyType" and "fieldTypes". The value of "fieldTypes" is used.',W4002:"Data loading has failed for some cells due to the following error: {0}"}),r=null,l=function(t){a.errorHandler&&a.errorHandler(t)};a={errors:s,errorHandler:r,_errorHandler:l},t.exports=a},function(t,e,i){function n(t,e){return t=t.groupBy(e[0].selector),e.length>1&&(t=t.select(function(t){return r({},t,{items:n(c(t.items),e.slice(1)).toArray()})})),t}function o(t,e){var i=[];return l(t,function(t,n){var o=s(e,function(t){return n.selector===t.selector});o.length<1&&i.push(n)}),i.concat(e)}function a(t,e,i){e=e||{};var a=e.filter,s=e.sort,r=e.select,c=e.group,d=e.skip,u=e.take;return a&&(t=t.filter(a)),c&&(c=h(c)),i||((s||c)&&(s=h(s||[]),c&&(s=o(c,s)),l(s,function(e){t=t[e?"thenBy":"sortBy"](this.selector,this.desc,this.compare)})),r&&(t=t.select(r))),c&&(t=n(t,c)),i||(u||d)&&(t=t.slice(d||0,u)),t}var s=i(13).grep,r=i(9).extend,l=i(17).each,c=i(193),h=i(173).normalizeSortingInfo;t.exports={multiLevelGroup:n,arrangeSortingInfo:o,queryByOptions:a}},function(t,e,i){var n=i(29),o=i(10),a=i(17),s=i(71).compileGetter,r=i(71).toComparable,l=i(15).Deferred,c=i(191),h=i(173),d=n.inherit({toArray:function(){var t=[];for(this.reset();this.next();)t.push(this.current());return t},countable:function(){return!1}}),u=d.inherit({ctor:function(t){this.array=t,this.index=-1},next:function(){return this.index+1<this.array.length&&(this.index++,!0)},current:function(){return this.array[this.index]},reset:function(){this.index=-1},toArray:function(){return this.array.slice(0)},countable:function(){return!0},count:function(){return this.array.length}}),p=d.inherit({ctor:function(t){this.iter=t},next:function(){return this.iter.next()},current:function(){return this.iter.current()},reset:function(){return this.iter.reset()}}),f=p.inherit({ctor:function(t,e){this.callBase(t),this.index=-1,this.mapper=e},current:function(){return this.mapper(this.callBase(),this.index)},next:function(){var t=this.callBase();return t&&this.index++,t}}),_=function(t,e){return t=r(t),e=r(e),null===t&&null!==e?-1:null!==t&&null===e?1:void 0===t&&void 0!==e?1:void 0!==t&&void 0===e?-1:t<e?-1:t>e?1:0},m=d.inherit({ctor:function(t,e,i,n){t instanceof f||(t=new f(t,this._wrap)),this.iter=t,this.rules=[{getter:e,desc:i,compare:n}]},thenBy:function(t,e,i){var n=new m(this.sortedIter||this.iter,t,e,i);return this.sortedIter||(n.rules=this.rules.concat(n.rules)),n},next:function(){return this._ensureSorted(),this.sortedIter.next()},current:function(){return this._ensureSorted(),this.sortedIter.current()},reset:function(){delete this.sortedIter},countable:function(){return this.sortedIter||this.iter.countable()},count:function(){return this.sortedIter?this.sortedIter.count():this.iter.count()},_ensureSorted:function(){var t=this;t.sortedIter||(a.each(t.rules,function(){this.getter=s(this.getter)}),t.sortedIter=new f(new u(this.iter.toArray().sort(function(e,i){return t._compare(e,i)})),t._unwrap))},_wrap:function(t,e){return{index:e,value:t}},_unwrap:function(t){return t.value},_compare:function(t,e){var i=t.index,n=e.index;if(t=t.value,e=e.value,t===e)return i-n;for(var o=0,a=this.rules.length;o<a;o++){var s=this.rules[o],r=s.getter(t),l=s.getter(e),c=s.compare||_,h=c(r,l);if(h)return s.desc?-h:h}return i-n}}),g=function(){function t(t,i,n){return function(o){o=r(t(o));var a=e(i)?o===i:o==i;return n&&(a=!a),a}}function e(t){return""===t||0===t||t===!1}function i(t){var e=t[0],i=g(t[1]);if("!"===e)return function(t){return!i(t)};throw c.errors.Error("E4003",e)}var n=function(t){var e=[],i=!1,n=!1;return a.each(t,function(){if(Array.isArray(this)||o.isFunction(this)){if(e.length>1&&i!==n)throw new c.errors.Error("E4019");e.push(g(this)),i=n,n=!0}else n=h.isConjunctiveOperator(this)}),function(t){for(var n=i,o=0;o<e.length;o++)if(e[o](t)!==i){n=!i;break}return n}},l=function(t){return o.isDefined(t)?t.toString():""},d=function(e){e=h.normalizeBinaryCriterion(e);var i=s(e[0]),n=e[1],o=e[2];switch(o=r(o),n.toLowerCase()){case"=":return t(i,o);case"<>":return t(i,o,!0);case">":return function(t){return r(i(t))>o};case"<":return function(t){return r(i(t))<o};case">=":return function(t){return r(i(t))>=o};case"<=":return function(t){return r(i(t))<=o};case"startswith":return function(t){return 0===r(l(i(t))).indexOf(o)};case"endswith":return function(t){var e=r(l(i(t))),n=l(o);if(e.length<n.length)return!1;var a=e.lastIndexOf(o);return a!==-1&&a===e.length-o.length};case"contains":return function(t){return r(l(i(t))).indexOf(o)>-1};case"notcontains":return function(t){return r(l(i(t))).indexOf(o)===-1}}throw c.errors.Error("E4003",n)};return function(t){return o.isFunction(t)?t:Array.isArray(t[0])?n(t):h.isUnaryOperation(t)?i(t):d(t)}}(),v=p.inherit({ctor:function(t,e){this.callBase(t),this.criteria=g(e)},next:function(){for(;this.iter.next();)if(this.criteria(this.current()))return!0;return!1}}),b=d.inherit({ctor:function(t,e){this.iter=t,this.getter=e},next:function(){return this._ensureGrouped(),this.groupedIter.next()},current:function(){return this._ensureGrouped(),this.groupedIter.current()},reset:function(){delete this.groupedIter},countable:function(){return!!this.groupedIter},count:function(){return this.groupedIter.count()},_ensureGrouped:function(){if(!this.groupedIter){var t={},e=[],i=this.iter,n=s(this.getter);for(i.reset();i.next();){var o=i.current(),r=n(o);r in t?t[r].push(o):(t[r]=[o],e.push(r))}this.groupedIter=new u(a.map(e,function(e){return{key:e,items:t[e]}}))}}}),y=p.inherit({ctor:function(t,e){this.callBase(t),this.getter=s(e)},current:function(){return this.getter(this.callBase())},countable:function(){return this.iter.countable()},count:function(){return this.iter.count()}}),C=p.inherit({ctor:function(t,e,i){this.callBase(t),this.skip=Math.max(0,e),this.take=Math.max(0,i),this.pos=0},next:function(){if(this.pos>=this.skip+this.take)return!1;for(;this.pos<this.skip&&this.iter.next();)this.pos++;return this.pos++,this.iter.next()},reset:function(){this.callBase(),this.pos=0},countable:function(){return this.iter.countable()},count:function(){return Math.min(this.iter.count()-this.skip,this.take)}}),x=function(t,e){e=e||{},t instanceof d||(t=new u(t));var i=function(t){var i=e.errorHandler;i&&i(t),c._errorHandler(t)},n=function(e){var n,o=(new l).fail(i),a=e.step,s=e.finalize;try{t.reset(),n="seed"in e?e.seed:t.next()?t.current():NaN;for(var r=n;t.next();)r=a(r,t.current());o.resolve(s?s(r):r)}catch(t){o.reject(t)}return o.promise()},a=function(t,e,i){return n(arguments.length<2?{step:arguments[0]}:{seed:t,step:e,finalize:i})},r=function(t){return n(h.aggregators[t])},p=function(e){return o.isFunction(e)||Array.isArray(e)||(e=[].slice.call(arguments)),_(new y(t,e))},f=function(t){return p(s(t))},_=function(t){return x(t,e)};return{toArray:function(){return t.toArray()},enumerate:function(){var e=(new l).fail(i);try{e.resolve(t.toArray())}catch(t){e.reject(t)}return e.promise()},sortBy:function(e,i,n){return _(new m(t,e,i,n))},thenBy:function(e,i,n){if(t instanceof m)return _(t.thenBy(e,i,n));throw c.errors.Error("E4004")},filter:function(e){return Array.isArray(e)||(e=[].slice.call(arguments)),_(new v(t,e))},slice:function(e,i){return void 0===i&&(i=Number.MAX_VALUE),_(new C(t,e,i))},select:p,groupBy:function(e){return _(new b(t,e))},aggregate:a,count:function(){if(t.countable()){var e=(new l).fail(i);try{e.resolve(t.count())}catch(t){e.reject(t)}return e.promise()}return r("count")},sum:function(t){return t?f(t).sum():r("sum")},min:function(t){return t?f(t).min():r("min")},max:function(t){return t?f(t).max():r("max")},avg:function(t){return t?f(t).avg():r("avg")}}};t.exports=x},function(t,e,i){var n=i(9).extend,o=i(10),a=i(187),s=i(26),r=i(173).keysEqual,l=i(195),c=i(191).errors,h=i(190),d=i(15).Deferred,u=function(t,e){for(var i,n="string"==typeof e?e.split():e.slice();n.length;)if(i=n.shift(),i in t)return!0;return!1},p=function(){var t=new d;return t.resolve.apply(t,arguments).promise()},f=function(){var t=new d;return t.reject.apply(t,arguments).promise()},_=h.inherit({ctor:function(t){t=Array.isArray(t)?{data:t}:t||{},this.callBase(t);var e=t.data;if(e&&!Array.isArray(e))throw c.Error("E4006");this._array=e||[]},createQuery:function(){return l(this._array,{errorHandler:this._errorHandler})},_byKeyImpl:function(t){var e=this._indexByKey(t);return e===-1?f(c.Error("E4009")):p(this._array[e])},_insertImpl:function(t){var e,i,s=this.key();if(i=o.isPlainObject(t)?n({},t):t,s){if(e=this.keyOf(i),void 0===e||"object"==typeof e&&o.isEmptyObject(e)){if(Array.isArray(s))throw c.Error("E4007");e=i[s]=String(new a)}else if(void 0!==this._array[this._indexByKey(e)])return f(c.Error("E4008"))}else e=i;return this._array.push(i),p(t,e)},_updateImpl:function(t,e){var i,n,o=this.key(),a=!0;if(o){if(u(e,o)&&!r(o,t,this.keyOf(e)))return f(c.Error("E4017"));if(i=this._indexByKey(t),i<0)return f(c.Error("E4009"));n=this._array[i]}else n=t;return s.deepExtendArraySafe(n,e,a),p(t,e)},_removeImpl:function(t){var e=this._indexByKey(t);return e>-1&&this._array.splice(e,1),p(t)},_indexByKey:function(t){for(var e=0,i=this._array.length;e<i;e++)if(r(this.key(),this.keyOf(this._array[e]),t))return e;return-1},clear:function(){this.fireEvent("modifying"),this._array=[],this.fireEvent("modified")}},"array");t.exports=_},function(t,e,i){var n=i(193),o=i(196),a={array:n,remote:o},s=function(){var t=Array.isArray(arguments[0])?"array":"remote";return a[t].apply(this,arguments)};t.exports=s,t.exports.queryImpl=a},function(t,e,i){var n=i(197),o=i(191),a=i(17).each,s=i(10).isFunction,r=i(15).Deferred,l=i(193),c=function(t,e,i){i=i||[],e=e||{};var h=function(t,e){return{name:t,args:e}},d=function(c){function d(t){switch(t.name){case"sortBy":return g=[t.args],!0;case"thenBy":if(!g)throw o.errors.Error("E4004");return g.push(t.args),!0}return!1}function u(){var t=_[0],e=[];t&&"multiSort"===t.name&&(_.shift(),a(t.args[0],function(){e.push(h(e.length?"thenBy":"sortBy",this))})),_=e.concat(_)}var p,f,_,m,g,v=new r,b=function(t){var i=e.errorHandler;i&&i(t),o._errorHandler(t),v.reject(t)};try{p=e.adapter,s(p)||(p=n[p]),f=p(e),_=[].concat(i).concat(c);var y=f.optimize;for(y&&y(_);_.length;){if(m=_[0],!d(m)){if(g){_.unshift(h("multiSort",[g])),g=null;continue}if("enumerate"!==String(m.name)&&(!f[m.name]||f[m.name].apply(f,m.args)===!1))break}_.shift()}u(),f.exec(t).done(function(t,i){if(_.length){var n=l(t,{errorHandler:e.errorHandler});a(_,function(){n=n[this.name].apply(n,this.args)}),n.done(v.resolve).fail(v.reject)}else v.resolve(t,i)}).fail(b)}catch(t){b(t)}return v.promise()},u={};return a(["sortBy","thenBy","filter","slice","select","groupBy"],function(){var n=String(this);u[n]=function(){return c(t,e,i.concat(h(n,arguments)))}}),a(["count","min","max","sum","avg","aggregate","enumerate"],function(){var t=String(this);u[t]=function(){return d.call(this,h(t,arguments))}}),u};t.exports=c},function(t,e){t.exports={}},function(t,e,i){function n(t){return t&&m(t.then)}function o(t){return(new x).resolve(t).promise()}function a(t,e){if(!m(e))throw g.Error("E4011",t)}function s(t){throw g.Error("E4012",t)}function r(t){function e(t){var e=t[0],i=t[1];return e&&e.getResponseHeader?_.errorMessageFromXhr(e,i):null}return function(i){var n;n=i instanceof Error?i:new Error(e(arguments)||i&&String(i)||"Unknown error"),n.message!==_.XHR_ERROR_UNLOAD&&t.reject(n)}}function l(t,e){var i,r=t._loadFunc;return a(T,r),i=r.apply(t,[e]),Array.isArray(i)?i=o(i):null===i||void 0===i?i=o([]):n(i)||s(T),S(i)}function c(t,e){var i,a=t._totalCountFunc;if(!m(a))throw g.Error("E4021");return i=a.apply(t,[e]),n(i)||(i=Number(i),isFinite(i)||s(I),i=o(i)),S(i)}function h(t,e,i){var s,r=t._byKeyFunc;return a(E,r),s=r.apply(t,[e,i]),n(s)||(s=o(s)),S(s)}function d(t,e,i,n){e.__rawData?n(e.__rawData):l(e,i).done(function(t){e._cacheRawData&&(e.__rawData=t),n(t)}).fail(r(t))}function u(t,e,i,n){i=i||{};var o={};"userData"in i&&(o.userData=i.userData),d(t,e,o,function(o){var a,s,r,l,c=b(o,{errorHandler:e._errorHandler}),h=[];n||(a=y(c,i),a===c?r=o.slice(0):h.push(a.enumerate().done(function(t){r=t}))),(i.requireTotalCount||n)&&(s=y(c,i,!0),s===c?l=o.length:h.push(s.count().done(function(t){l=t}))),w.apply(f,h).done(function(){n?t.resolve(l):i.requireTotalCount?t.resolve(r,{totalCount:l}):t.resolve(r)}).fail(function(e){t.reject(e)})})}function p(t,e,i){d(t,e,{},function(n){for(var o,a=e.key(),s=0,r=n.length;s<r;s++)if(o=n[s],_.keysEqual(a,e.keyOf(n[s]),i))return void t.resolve(o);t.reject(g.Error("E4009"))})}var f=i(21),_=i(173),m=i(10).isFunction,g=i(191).errors,v=i(190),b=i(193),y=i(192).queryByOptions,C=i(15),x=C.Deferred,w=C.when,S=C.fromPromise,I="totalCount",T="load",E="byKey",D="insert",k="update",B="remove",A=v.inherit({ctor:function(t){t=t||{},this.callBase(t),this._useDefaultSearch=!!t.useDefaultSearch||"raw"===t.loadMode,this._loadMode=t.loadMode,this._cacheRawData=t.cacheRawData!==!1,this._loadFunc=t[T],this._totalCountFunc=t[I],this._byKeyFunc=t[E],this._insertFunc=t[D],this._updateFunc=t[k],this._removeFunc=t[B]},createQuery:function(){throw g.Error("E4010")},clearRawDataCache:function(){delete this.__rawData},_totalCountImpl:function(t){var e=new x;return"raw"!==this._loadMode||this._totalCountFunc?(c(this,t).done(function(t){e.resolve(Number(t))}).fail(r(e)),e=this._addFailHandlers(e)):u(e,this,t,!0),e.promise()},_loadImpl:function(t){var e=new x;return"raw"===this._loadMode?u(e,this,t,!1):(l(this,t).done(function(t,i){e.resolve(t,i)}).fail(r(e)),e=this._addFailHandlers(e)),e.promise()},_byKeyImpl:function(t,e){var i=new x;return this._byKeyViaLoad()?(this._requireKey(),p(i,this,t)):h(this,t,e).done(function(t){i.resolve(t)}).fail(r(i)),i.promise()},_byKeyViaLoad:function(){return"raw"===this._loadMode&&!this._byKeyFunc},_insertImpl:function(t){var e,i=this._insertFunc,s=new x;return a(D,i),e=i.apply(this,[t]),n(e)||(e=o(e)),S(e).done(function(e){s.resolve(t,e)}).fail(r(s)),s.promise()},_updateImpl:function(t,e){var i,s=this._updateFunc,l=new x;return a(k,s),i=s.apply(this,[t,e]),n(i)||(i=o()),S(i).done(function(){l.resolve(t,e)}).fail(r(l)),l.promise()},_removeImpl:function(t){var e,i=this._removeFunc,s=new x;return a(B,i),e=i.apply(this,[t]),n(e)||(e=o()),S(e).done(function(){s.resolve(t)}).fail(r(s)),s.promise()}});t.exports=A},function(t,e,i){var n=i(21),o=i(29),a=i(17).each,s=i(66),r="dx-state-invisible",l="dx-state-disabled",c="dx-item-content-placeholder",h=function(t,e,i){var n=function(){var t;return function(e){t!==e&&(i(e,t),t=e)}}();return{dispose:t(e,n),force:function(){n(e())}}},d=o.inherit({ctor:function(t,e,i){this._$element=t,this._options=e,this._rawData=i,s.attachInstanceToElement(t,this,this._dispose),this._render()},_render:function(){var t=n("<div>").addClass(c);this._$element.append(t),this._watchers=[],this._renderWatchers()},_renderWatchers:function(){this._startWatcher("disabled",this._renderDisabled.bind(this)),this._startWatcher("visible",this._renderVisible.bind(this))},_startWatcher:function(t,e){var i=this._rawData,n=this._options.fieldGetter(t),o=h(this._options.watchMethod(),function(){return n(i)},function(t,i){this._dirty=!0,e(t,i)}.bind(this));this._watchers.push(o)},setDataField:function(){if(this._dirty=!1,a(this._watchers,function(t,e){e.force()}),this._dirty)return!0},_renderDisabled:function(t,e){this._$element.toggleClass(l,!!t)},_renderVisible:function(t,e){this._$element.toggleClass(r,void 0!==t&&!t)},_dispose:function(){a(this._watchers,function(t,e){e.dispose()})}});d.getInstance=function(t){return s.getInstanceByElement(t,this)},t.exports=d},function(t,e,i){var n=i(93),o=i(105),a=i(106),s=Math.abs,r="dxhold",l=750,c=5,h=o.inherit({start:function(t){this._startEventData=n.eventData(t),this._startTimer(t)},_startTimer:function(t){var e="timeout"in this?this.timeout:l;this._holdTimer=setTimeout(function(){this._requestAccept(t),this._fireEvent(r,t,{target:t.target}),this._forgetAccept()}.bind(this),e)},move:function(t){this._touchWasMoved(t)&&this._cancel(t)},_touchWasMoved:function(t){var e=n.eventDelta(this._startEventData,n.eventData(t));return s(e.x)>c||s(e.y)>c},end:function(){this._stopTimer()},_stopTimer:function(){clearTimeout(this._holdTimer)},cancel:function(){this._stopTimer()},dispose:function(){this._stopTimer()}});a({emitter:h,bubble:!0,events:[r]}),t.exports={name:r}},function(t,e,i){var n=i(21),o=i(30),a=i(82),s=i(74),r=i(29),l=i(68),c=i(93),h=i(200),d="dxContexMenu",u=c.addNamespace("contextmenu",d),p=c.addNamespace(h.name,d),f="dxcontextmenu",_=r.inherit({setup:function(t){var e=n(t);o.on(e,u,this._contextMenuHandler.bind(this)),(a.touch||s.isSimulator())&&o.on(e,p,this._holdHandler.bind(this))},_holdHandler:function(t){c.isMouseEvent(t)&&!s.isSimulator()||this._fireContextMenu(t)},_contextMenuHandler:function(t){this._fireContextMenu(t)},_fireContextMenu:function(t){return c.fireEvent({type:f,originalEvent:t})},teardown:function(t){o.off(t,"."+d)}});l(f,new _),e.name=f},function(t,e,i){var n=i(21),o=i(120),a=i(30),s=i(67),r=i(17),l=i(10).isPrimitive,c=function(){var t=function(t,n,o,a,s){var r,c;return r=e(t,n,function(t){return c&&c(),l(t)?void s(t):void(c=i(t,n,o,a,function(t){s(t)}))}),function(){c&&c(),r&&r()}},e=function(t,e,i){return e(function(){return t},i)},i=function(t,e,i,n,o){var a={},s=i.slice(),l=r.map(i,function(i){var r=n[i];return e(r?function(){return r(t)}:function(){return t[i]},function(t){if(a[i]=t,s.length){var e=s.indexOf(i);e>=0&&s.splice(e,1)}s.length||o(a)})});return function(){r.each(l,function(t,e){e()})}};return t}();t.exports=o.inherit({ctor:function(t,e,i,n){this._render=t,this._fields=e,this._fieldsMap=n||{},this._watchMethod=i},_renderCore:function(t){var e=n(t.container),i=c(t.model,this._watchMethod,this._fields,this._fieldsMap,function(i){e.empty(),this._render(e,i,t.model)}.bind(this));return a.on(e,s,i),e.contents()}})},function(t,e,i){var n=i(25).inArray,o=i(204),a=o.inherit({_getPlainItems:function(){return this._collectionWidget.option("items")||[]},getIndexByItemData:function(t){var e=this._collectionWidget.keyOf.bind(this._collectionWidget);return e?this.getIndexByKey(e(t)):n(t,this._getPlainItems())},getItemDataByIndex:function(t){return this._getPlainItems()[t]},deleteItemAtIndex:function(t){this._getPlainItems().splice(t,1)},itemsGetter:function(){return this._getPlainItems()},getKeysByItems:function(t){var e=this._collectionWidget.keyOf.bind(this._collectionWidget),i=t;if(e){i=[];for(var n=0;n<t.length;n++)i.push(e(t[n]))}return i},getIndexByKey:function(t){var e=this._cache,i=e&&e.keys||this.getKeysByItems(this._getPlainItems());if(e&&!e.keys&&(e.keys=i),"object"!=typeof t)return i.indexOf(t);for(var n=0,o=i.length;n<o;n++)if(this._equalKeys(t,i[n]))return n;return-1},getItemsByKeys:function(t,e){return(e||t).slice()},moveItemAtIndexToIndex:function(t,e){var i=this._getPlainItems(),n=i[t];i.splice(t,1),i.splice(e,0,n)},_isItemIndex:function(t){return"number"==typeof t&&Math.round(t)===t},_getNormalizedItemIndex:function(t){return this._collectionWidget._itemElements().index(t)},_normalizeItemIndex:function(t){return t},_denormalizeItemIndex:function(t){return t},_getItemByNormalizedIndex:function(t){return t>-1?this._collectionWidget._itemElements().eq(t):null},_itemsFromSameParent:function(){return!0}});t.exports=a},function(t,e,i){var n=i(21),o=i(29),a=i(13),s=o.abstract,r=o.inherit({
|
|
23
23
|
ctor:function(t){this._collectionWidget=t},getIndexByItemData:s,getItemDataByIndex:s,getKeysByItems:s,getItemsByKeys:s,itemsGetter:s,getKeyByIndex:function(t){var e=this._denormalizeItemIndex(t);return this.getKeysByItems([this.getItemDataByIndex(e)])[0]},_equalKeys:function(t,e){return this._collectionWidget._isKeySpecified()?a.equalByValue(t,e):t===e},beginCache:function(){this._cache={}},endCache:function(){this._cache=null},getIndexByKey:s,getNormalizedIndex:function(t){return this._isNormalizedItemIndex(t)?t:this._isItemIndex(t)?this._normalizeItemIndex(t):this._isDOMNode(t)?this._getNormalizedItemIndex(t):this._normalizeItemIndex(this.getIndexByItemData(t))},getIndex:function(t){return this._isNormalizedItemIndex(t)?this._denormalizeItemIndex(t):this._isItemIndex(t)?t:this._isDOMNode(t)?this._denormalizeItemIndex(this._getNormalizedItemIndex(t)):this.getIndexByItemData(t)},getItemElement:function(t){return this._isNormalizedItemIndex(t)?this._getItemByNormalizedIndex(t):this._isItemIndex(t)?this._getItemByNormalizedIndex(this._normalizeItemIndex(t)):this._isDOMNode(t)?n(t):this._getItemByNormalizedIndex(this.getIndexByItemData(t))},deleteItemAtIndex:s,itemPlacementFunc:function(t,e){return this._itemsFromSameParent(t,e)&&t<e?"after":"before"},moveItemAtIndexToIndex:s,_isNormalizedItemIndex:function(t){return"number"==typeof t&&Math.round(t)===t},_isDOMNode:function(t){var e;try{e=n(t)}catch(t){return!1}return e&&e.length&&e.get(0).nodeType},_isItemIndex:s,_getNormalizedItemIndex:s,_normalizeItemIndex:s,_denormalizeItemIndex:s,_getItemByNormalizedIndex:s,_itemsFromSameParent:s});t.exports=r},function(t,e,i){var n=i(29),o=i(206),a=i(208),s=i(9).extend,r=i(13).noop,l=i(10).isDefined,c=i(15).Deferred;t.exports=n.inherit({ctor:function(t){this.options=s(this._getDefaultOptions(),t,{selectedItemKeys:t.selectedKeys||[]}),this._selectionStrategy=this.options.deferred?new o(this.options):new a(this.options),this._focusedItemIndex=-1,this.options.equalByReference||this._selectionStrategy.updateSelectedItemKeyHash(this.options.selectedItemKeys)},_getDefaultOptions:function(){return{deferred:!1,equalByReference:!1,mode:"multiple",selectedItems:[],selectionFilter:[],maxFilterLengthInRequest:0,onSelectionChanged:r,key:r,keyOf:function(t){return t},load:function(){return(new c).resolve([])},totalCount:function(){return-1},isSelectableItem:function(){return!0},isItemSelected:function(){return!1},getItemData:function(t){return t},dataFields:r,filter:r}},validate:function(){this._selectionStrategy.validate()},getSelectedItemKeys:function(){return this._selectionStrategy.getSelectedItemKeys()},getSelectedItems:function(){return this._selectionStrategy.getSelectedItems()},selectionFilter:function(t){if(void 0===t)return this.options.selectionFilter;var e=this.options.selectionFilter!==t&&JSON.stringify(this.options.selectionFilter)!==JSON.stringify(t);this.options.selectionFilter=t,e&&this.onSelectionChanged()},setSelection:function(t){return this.selectedItemKeys(t)},select:function(t){return this.selectedItemKeys(t,!0)},deselect:function(t){return this.selectedItemKeys(t,!0,!0)},selectedItemKeys:function(t,e,i,n){var o=this;return t=t||[],t=Array.isArray(t)?t:[t],o.validate(),this._selectionStrategy.selectedItemKeys(t,e,i,n)},clearSelection:function(){return this.selectedItemKeys([])},_addSelectedItem:function(t,e){this._selectionStrategy.addSelectedItem(e,t)},_removeSelectedItem:function(t){this._selectionStrategy.removeSelectedItem(t)},_setSelectedItems:function(t,e){this._selectionStrategy.setSelectedItems(t,e)},onSelectionChanged:function(){this._selectionStrategy.onSelectionChanged()},changeItemSelection:function(t,e){var i,n=this.options.plainItems(),o=n[t];if(!this.isSelectable()||!this.isDataItem(o))return!1;var a=this.options.getItemData(o),s=this.options.keyOf(a);if(e=e||{},e.shift&&"multiple"===this.options.mode&&this._focusedItemIndex>=0)i=this.changeItemSelectionWhenShiftKeyPressed(t,n);else if(e.control){this._resetItemSelectionWhenShiftKeyPressed();var r=this._selectionStrategy.isItemDataSelected(a);"single"===this.options.mode&&this.clearSelectedItems(),r?this._removeSelectedItem(s):this._addSelectedItem(a,s),i=!0}else{this._resetItemSelectionWhenShiftKeyPressed();var l=this._selectionStrategy.equalKeys(this.options.selectedItemKeys[0],s);1===this.options.selectedItemKeys.length&&l||(this._setSelectedItems([s],[a]),i=!0)}return i?(this._focusedItemIndex=t,this.onSelectionChanged(),!0):void 0},isDataItem:function(t){return this.options.isSelectableItem(t)},isSelectable:function(){return"single"===this.options.mode||"multiple"===this.options.mode},isItemSelected:function(t){return this._selectionStrategy.isItemKeySelected(t)},_resetItemSelectionWhenShiftKeyPressed:function(){delete this._shiftFocusedItemIndex},_resetFocusedItemIndex:function(){this._focusedItemIndex=-1},changeItemSelectionWhenShiftKeyPressed:function(t,e){var i,n,o=!1,a=this.options.keyOf,s=e[this._focusedItemIndex],r=this.options.getItemData(s),c=a(r),h=s&&this.isItemSelected(c);l(this._shiftFocusedItemIndex)||(this._shiftFocusedItemIndex=this._focusedItemIndex);var d,u;if(this._shiftFocusedItemIndex!==this._focusedItemIndex)for(i=this._focusedItemIndex<this._shiftFocusedItemIndex?1:-1,n=this._focusedItemIndex;n!==this._shiftFocusedItemIndex;n+=i)this.isDataItem(e[n])&&(u=a(this.options.getItemData(e[n])),this._removeSelectedItem(u),o=!0);if(t!==this._shiftFocusedItemIndex)for(i=t<this._shiftFocusedItemIndex?1:-1,n=t;n!==this._shiftFocusedItemIndex;n+=i)this.isDataItem(e[n])&&(d=this.options.getItemData(e[n]),u=a(d),this._addSelectedItem(d,u),o=!0);return this.isDataItem(s)&&!h&&(this._addSelectedItem(r,c),o=!0),o},clearSelectedItems:function(){this._setSelectedItems([],[])},selectAll:function(t){return this._resetFocusedItemIndex(),t?this._onePageSelectAll(!1):this.selectedItemKeys([],!0,!1,!0)},deselectAll:function(t){return this._resetFocusedItemIndex(),t?this._onePageSelectAll(!0):this.selectedItemKeys([],!0,!0,!0)},_onePageSelectAll:function(t){for(var e=this.options.plainItems(),i=0;i<e.length;i++){var n=e[i];if(this.isDataItem(n)){var o=this.options.getItemData(n),a=this.options.keyOf(o),s=this.isItemSelected(a);s||t||this._addSelectedItem(o,a),s&&t&&this._removeSelectedItem(a)}}return this.onSelectionChanged(),(new c).resolve()},getSelectAllState:function(t){return this._selectionStrategy.getSelectAllState(t)}})},function(t,e,i){var n=i(10),o=i(207),a=i(40),s=i(195),r=i(15).Deferred;t.exports=o.inherit({getSelectedItems:function(){return this._loadFilteredData(this.options.selectionFilter)},getSelectedItemKeys:function(){var t=new r,e=this,i=this.options.key(),o=n.isString(i)?[i]:i;return this._loadFilteredData(this.options.selectionFilter,null,o).done(function(i){var n=i.map(function(t){return e.options.keyOf(t)});t.resolve(n)}).fail(t.reject),t.promise()},selectedItemKeys:function(t,e,i,n){if(n){var o=this.options.filter();o?this._addSelectionFilter(i,o,!1):this._setOption("selectionFilter",i?[]:null)}else{e||this._setOption("selectionFilter",[]);for(var a=0;a<t.length;a++)i?this.removeSelectedItem(t[a]):this.addSelectedItem(t[a])}return this.onSelectionChanged(),(new r).resolve()},setSelectedItems:function(t){this._setOption("selectionFilter",null);for(var e=0;e<t.length;e++)this.addSelectedItem(t[e])},isItemDataSelected:function(t){return this.isItemKeySelected(t)},isItemKeySelected:function(t){var e=this.options.selectionFilter;return!e||!!s([t]).filter(e).toArray().length},_processSelectedItem:function(t){var e=this.options.key(),i=[e,"=",t];if(Array.isArray(e)){i=[];for(var n=0;n<e.length;n++)i.push([e[n],"=",t[e[n]]]),n!==e.length-1&&i.push("and")}return i},addSelectedItem:function(t){var e=this._processSelectedItem(t);this._addSelectionFilter(!1,e,!0)},removeSelectedItem:function(t){var e=this._processSelectedItem(t);this._addSelectionFilter(!0,e,!0)},validate:function(){var t=this.options.key;if(t&&void 0===t())throw a.Error("E1042")},_findSubFilter:function(t,e){if(!t)return-1;for(var i=JSON.stringify(e),n=0;n<t.length;n++){var o=t[n];if(o&&JSON.stringify(o)===i)return n}return-1},_isLastSubFilter:function(t,e){return!(!t||!e)&&(this._findSubFilter(t,e)===t.length-1||0===this._findSubFilter([t],e))},_addFilterOperator:function(t,e){return t.length>1&&n.isString(t[1])&&t[1]!==e&&(t=[t]),t.length&&t.push(e),t},_denormalizeFilter:function(t){return t&&n.isString(t[0])&&(t=[t]),t},_addSelectionFilter:function(t,e,i){var n=this,o=!0,a=t?["!",e]:e,s=n.options.selectionFilter||[];s=n._denormalizeFilter(s),s&&s.length&&(n._removeSameFilter(s,e,t,!0),n._removeSameFilter(s,e,!t,!i)&&(o=s.length&&!i),o&&(s=n._addFilterOperator(s,t?"and":"or"))),o&&s.push(a),s=n._normalizeFilter(s),n._setOption("selectionFilter",t||s.length?s:null)},_normalizeFilter:function(t){return t&&1===t.length&&(t=t[0]),t},_removeSameFilter:function(t,e,i,n){e=i?["!",e]:e;var o=this._findSubFilter(t,e);if(JSON.stringify(e)===JSON.stringify(t))return t.splice(0,t.length),!0;var a=o===t.length-1;return!!(o>=0&&(n||a))&&(o>0?t.splice(o-1,2):t.splice(o,2),!0)},getSelectAllState:function(){var t=this.options.filter(),e=this.options.selectionFilter;if(!e)return!0;if(!e.length)return!1;if(t&&t.length)return e=this._denormalizeFilter(e),!!this._isLastSubFilter(e,t)||!this._isLastSubFilter(e,["!",t])&&void 0}})},function(t,e,i){var n=i(195),o=i(13),a=i(10),s=o.getKeyHash,r=i(29),l=i(15).Deferred;t.exports=r.inherit({ctor:function(t){this.options=t,this._clearItemKeys()},_clearItemKeys:function(){this._setOption("addedItemKeys",[]),this._setOption("removedItemKeys",[]),this._setOption("removedItems",[]),this._setOption("addedItems",[])},validate:o.noop,_setOption:function(t,e){this.options[t]=e},onSelectionChanged:function(){var t=this.options.addedItemKeys,e=this.options.removedItemKeys,i=this.options.addedItems,n=this.options.removedItems,a=this.options.selectedItems,s=this.options.selectedItemKeys,r=this.options.onSelectionChanged||o.noop;this._clearItemKeys(),r({selectedItems:a,selectedItemKeys:s,addedItemKeys:t,removedItemKeys:e,addedItems:i,removedItems:n})},equalKeys:function(t,e){return this.options.equalByReference&&a.isObject(t)&&a.isObject(e)?t===e:o.equalByValue(t,e)},_clearSelection:function(t,e,i,n){return t=t||[],t=Array.isArray(t)?t:[t],this.validate(),this.selectedItemKeys(t,e,i,n)},_loadFilteredData:function(t,e,i){var o=encodeURI(JSON.stringify(t)).length,s=this.options.maxFilterLengthInRequest&&o>this.options.maxFilterLengthInRequest,r=new l,c={filter:s?void 0:t,select:s?this.options.dataFields():i||this.options.dataFields()};return t&&0===t.length?r.resolve([]):this.options.load(c).done(function(i){var o=a.isPlainObject(i)?i.data:i;e?o=o.filter(e):s&&(o=n(o).filter(t).toArray()),r.resolve(o)}).fail(r.reject.bind(r)),r},updateSelectedItemKeyHash:function(t){for(var e=0;e<t.length;e++){var i=s(t[e]);if(!a.isObject(i)){this.options.keyHashIndices[i]=this.options.keyHashIndices[i]||[];var n=this.options.keyHashIndices[i];n.push(e)}}},_isAnyItemSelected:function(t){for(var e=0;e<t.length;e++)if(this.options.isItemSelected(t[e]))return;return!1},_getFullSelectAllState:function(){var t=this.options.plainItems(),e=this.options.filter(),i=this.options.selectedItems;e&&(i=n(i).filter(e).toArray());var o=i.length;return o?o>=this.options.totalCount()||void 0:this._isAnyItemSelected(t)},_getVisibleSelectAllState:function(){for(var t=this.options.plainItems(),e=!1,i=!1,n=0;n<t.length;n++){var o=t[n],a=this.options.getItemData(o),s=this.options.keyOf(a);this.options.isSelectableItem(o)&&(this.isItemKeySelected(s)?e=!0:i=!0)}return!!e&&(!i||void 0)}})},function(t,e,i){function n(t,e,i,n,o,r){this.getLocalFilter=function(){return h},this.getExpr=function(){if(t){for(var n,o=0,s=e.length;o<s;o++){n=n||[];var r,l=e[o];o>0&&n.push(i?"and":"or"),r=a.isString(t)?d(l):u(l),n.push(r)}return n&&1===n.length&&(n=n[0]),this._filter=n,n}},this.getCombinedFilter=function(t){var e=this.getExpr(),n=e;return i&&t&&(e?(n=[],n.push(e),n.push(t)):n=t),n};var l,c=function(t){if(!l){l={};for(var e=0;e<t.length;e++)l[s(t[e])]=!0}return l},h=function(t){var l,h,d=o(t);if(!r&&(l=s(d),!a.isObject(l))){var u=c(e);return u[l]?!i:!!i}for(h=0;h<e.length;h++)if(n(e[h],d))return!i;return!!i},d=function(e,n){return[n||t,i?"<>":"=",e]},u=function(e){for(var n=[],o=0,a=t.length;o<a;o++){o>0&&n.push(i?"or":"and");var s=t[o],r=e&&e[s],l=d(r,s);n.push(l)}return n}}var o=i(13),a=i(10),s=o.getKeyHash,r=i(195),l=i(15),c=l.when,h=l.Deferred,d=i(40),u=i(207);t.exports=u.inherit({ctor:function(t){this.callBase(t),this._initSelectedItemKeyHash()},_initSelectedItemKeyHash:function(){this._setOption("keyHashIndices",this.options.equalByReference?null:{})},getSelectedItemKeys:function(){return this.options.selectedItemKeys.slice(0)},getSelectedItems:function(){return this.options.selectedItems.slice(0)},_preserveSelectionUpdate:function(t,e){var i,n,o,a=this.options.keyOf;if(a){var s=e&&t.length>1&&!this.options.equalByReference;for(s&&(i={}),o=0;o<t.length;o++){var r=t[o],l=a(r);e?(n=this.removeSelectedItem(l,i),i&&n>=0&&(i[n]=!0)):this.addSelectedItem(l,r)}s&&this._batchRemoveSelectedItems(i)}},_batchRemoveSelectedItems:function(t){var e=this.options.selectedItemKeys.slice(0),i=this.options.selectedItems.slice(0);this.options.selectedItemKeys.length=0,this.options.selectedItems.length=0;for(var n=0;n<e.length;n++)t[n]||(this.options.selectedItemKeys.push(e[n]),this.options.selectedItems.push(i[n]));this._initSelectedItemKeyHash(),this.updateSelectedItemKeyHash(this.options.selectedItemKeys)},_loadSelectedItemsCore:function(t,e,i){var o=new h,a=this.options.key;if(!t.length&&!i)return o.resolve([]),o;var s=this.options.filter();if(i&&e&&!s)return o.resolve(this.getSelectedItems()),o;var l=new n(a(),t,i,this.equalKeys.bind(this),this.options.keyOf,this.options.equalByReference),c=l.getCombinedFilter(s),d=[];e&&(d=c?r(this.options.selectedItems).filter(c).toArray():this.options.selectedItems.slice(0));var u=d.length?d:this.options.plainItems().filter(this.options.isSelectableItem).map(this.options.getItemData),p=l.getLocalFilter();return u=u.filter(p),d.length||!i&&u.length===t.length?o.resolve(u):o=this._loadFilteredData(c,p),o},_replaceSelectionUpdate:function(t){var e=[],i=this.options.keyOf;if(i){for(var n=0;n<t.length;n++){var o=t[n],a=i(o);e.push(a)}this.setSelectedItems(e,t)}},_warnOnIncorrectKeys:function(t){for(var e=0;e<t.length;e++)this.isItemKeySelected(t[e])||d.log("W1002",t[e])},_loadSelectedItems:function(t,e,i){var n=this,o=new h;return c(n._lastLoadDeferred).always(function(){n._loadSelectedItemsCore(t,e,i).done(o.resolve).fail(o.reject)}),n._lastLoadDeferred=o,o},selectedItemKeys:function(t,e,i,n){var o=this,a=o._loadSelectedItems(t,i,n);return a.done(function(t){e?o._preserveSelectionUpdate(t,i):o._replaceSelectionUpdate(t),o.onSelectionChanged()}),a},addSelectedItem:function(t,e){var i=this._getKeyHash(t);this._indexOfSelectedItemKey(i)===-1&&(!a.isObject(i)&&this.options.keyHashIndices&&(this.options.keyHashIndices[i]=[this.options.selectedItemKeys.length]),this.options.selectedItemKeys.push(t),this.options.addedItemKeys.push(t),this.options.addedItems.push(e),this.options.selectedItems.push(e))},_getSelectedIndexByKey:function(t,e){for(var i=this.options.selectedItemKeys,n=0;n<i.length;n++)if((!e||!e[n])&&this.equalKeys(i[n],t))return n;return-1},_getSelectedIndexByHash:function(t,e){var i=this.options.keyHashIndices[t];return i&&i.length>1&&e&&(i=i.filter(function(t){return!e[t]})),i&&i[0]>=0?i[0]:-1},_indexOfSelectedItemKey:function(t,e){var i;return i=this.options.equalByReference?this.options.selectedItemKeys.indexOf(t):a.isObject(t)?this._getSelectedIndexByKey(t,e):this._getSelectedIndexByHash(t,e)},_shiftSelectedKeyIndices:function(t){for(var e=t;e<this.options.selectedItemKeys.length;e++){var i=this.options.selectedItemKeys[e],n=s(i),o=this.options.keyHashIndices[n];if(o)for(var a=0;a<o.length;a++)o[a]>t&&o[a]--}},removeSelectedItem:function(t,e){var i=this._getKeyHash(t),n=!!e,o=this._indexOfSelectedItemKey(i,e);if(o<0)return o;if(this.options.removedItemKeys.push(t),this.options.removedItems.push(this.options.selectedItems[o]),n)return o;if(this.options.selectedItemKeys.splice(o,1),this.options.selectedItems.splice(o,1),a.isObject(i)||!this.options.keyHashIndices)return o;var s=this.options.keyHashIndices[i];return s?(s.shift(),s.length||delete this.options.keyHashIndices[i],this._shiftSelectedKeyIndices(o),o):o},_updateAddedItemKeys:function(t,e){for(var i=0;i<t.length;i++)this.isItemKeySelected(t[i])||(this.options.addedItemKeys.push(t[i]),this.options.addedItems.push(e[i]))},_updateRemovedItemKeys:function(t,e,i){for(var n=0;n<e.length;n++)this.isItemKeySelected(e[n])||(this.options.removedItemKeys.push(e[n]),this.options.removedItems.push(i[n]))},_getKeyHash:function(t){return this.options.equalByReference?t:s(t)},setSelectedItems:function(t,e){this._updateAddedItemKeys(t,e);var i=this.options.selectedItemKeys,n=this.options.selectedItems;this.options.equalByReference||(this._initSelectedItemKeyHash(),this.updateSelectedItemKeyHash(t)),this._setOption("selectedItemKeys",t),this._setOption("selectedItems",e),this._updateRemovedItemKeys(t,i,n)},isItemDataSelected:function(t){var e=this.options.keyOf(t);return this.isItemKeySelected(e)},isItemKeySelected:function(t){var e=this._getKeyHash(t),i=this._indexOfSelectedItemKey(e);return i!==-1},getSelectAllState:function(t){return t?this._getVisibleSelectAllState():this._getFullSelectAllState()}})},function(t,e,i){var n=i(31),o=i(30),a=i(184);n.add(function(t){var e=t.slice(0,2)+t.charAt(2).toUpperCase()+t.slice(3);a.directive(e,["$parse",function(i){return function(n,a,s){var r,l=s[e].trim(),c={};"{"===l.charAt(0)?(c=n.$eval(l),r=i(c.execute)):r=i(s[e]),o.on(a,t,c,function(t){n.$apply(function(){r(n,{$event:t})})})}}])})},function(t,e,i){var n=i(16),o=i(184);o.service("dxDigestCallbacks",["$rootScope",function(t){var e=n(),i=n(),o=n(),a=!1;return t.$watch(function(){a||(a=!0,e.fire(),t.$$postDigest(function(){a=!1,i.fire(),o.fire()}))}),{begin:{add:function(t){a&&t(),e.add(t)},remove:e.remove.bind(e)},end:{add:o.add.bind(o),addPrioritized:i.add.bind(i),remove:o.remove.bind(o)}}}])},function(t,e,i){var n=i(70);n.registerExecutor({ngExpression:{execute:function(t){"string"==typeof t.action&&t.context.$eval(t.action)}}})},function(t,e,i){var n=i(213),o=i(53);if(n&&n.load){var a={supplemental:{version:{_cldrVersion:"28",_unicodeVersion:"8.0.0",_number:"$Revision: 11965 $"},likelySubtags:{en:"en-Latn-US",de:"de-Latn-DE",ru:"ru-Cyrl-RU",ja:"ja-Jpan-JP"}}};n.locale()||(n.load(a),n.locale("en")),o.inject({locale:function(t){return t?void n.locale(t):n.locale().locale}})}},function(t,e){t.exports=window.Globalize},function(t,e,i){i(212);var n=i(213),o=i(111),a=i(53);if(i(213),n&&n.formatMessage){var s="en",r=n.loadMessages;n.loadMessages=function(t){o.load(t)};var l={ctor:function(){this.load(this._dictionary)},load:function(t){this.callBase(t),r(t)},getMessagesByLocales:function(){return n.cldr.get("globalize-messages")},getFormatter:function(t,e){var i=e||a.locale(),n=this._getFormatterBase(t,e);return n||(n=this._formatterByGlobalize(t,e)),n||i===s||(n=this.getFormatter(t,s)),n},_formatterByGlobalize:function(t,e){var i,o=e&&e!==a.locale()?new n(e):n;return this._messageLoaded(t,e)&&(i=o.messageFormatter(t)),i},_messageLoaded:function(t,e){var i=e?new n(e).cldr:n.locale(),o=i.get(["globalize-messages/{bundle}",t]);return!!o},_loadSingle:function(t,e,i){var n={};n[i]={},n[i][t]=e,this.load(n)}};o.inject(l)}},function(t,e,i){i(212);var n=i(213),o=i(45),a=i(7);if(i(213),n&&n.formatNumber){var s={main:{en:{identity:{version:{_cldrVersion:"28",_number:"$Revision: 11972 $"},language:"en"},numbers:{defaultNumberingSystem:"latn",otherNumberingSystems:{"native":"latn"},minimumGroupingDigits:"1","symbols-numberSystem-latn":{decimal:".",group:",",list:";",percentSign:"%",plusSign:"+",minusSign:"-",exponential:"E",superscriptingExponent:"×",perMille:"‰",infinity:"∞",nan:"NaN",timeSeparator:":"},"decimalFormats-numberSystem-latn":{standard:"#,##0.###","long":{decimalFormat:{"1000-count-one":"0 thousand","1000-count-other":"0 thousand","10000-count-one":"00 thousand","10000-count-other":"00 thousand","100000-count-one":"000 thousand","100000-count-other":"000 thousand","1000000-count-one":"0 million","1000000-count-other":"0 million","10000000-count-one":"00 million","10000000-count-other":"00 million","100000000-count-one":"000 million","100000000-count-other":"000 million","1000000000-count-one":"0 billion","1000000000-count-other":"0 billion","10000000000-count-one":"00 billion","10000000000-count-other":"00 billion","100000000000-count-one":"000 billion","100000000000-count-other":"000 billion","1000000000000-count-one":"0 trillion","1000000000000-count-other":"0 trillion","10000000000000-count-one":"00 trillion","10000000000000-count-other":"00 trillion","100000000000000-count-one":"000 trillion","100000000000000-count-other":"000 trillion"}},"short":{decimalFormat:{"1000-count-one":"0K","1000-count-other":"0K","10000-count-one":"00K","10000-count-other":"00K","100000-count-one":"000K","100000-count-other":"000K","1000000-count-one":"0M","1000000-count-other":"0M","10000000-count-one":"00M","10000000-count-other":"00M","100000000-count-one":"000M","100000000-count-other":"000M","1000000000-count-one":"0B","1000000000-count-other":"0B","10000000000-count-one":"00B","10000000000-count-other":"00B","100000000000-count-one":"000B","100000000000-count-other":"000B","1000000000000-count-one":"0T","1000000000000-count-other":"0T","10000000000000-count-one":"00T","10000000000000-count-other":"00T","100000000000000-count-one":"000T","100000000000000-count-other":"000T"}}},"scientificFormats-numberSystem-latn":{standard:"#E0"},"percentFormats-numberSystem-latn":{standard:"#,##0%"},"currencyFormats-numberSystem-latn":{currencySpacing:{beforeCurrency:{currencyMatch:"[:^S:]",surroundingMatch:"[:digit:]",insertBetween:" "},afterCurrency:{currencyMatch:"[:^S:]",surroundingMatch:"[:digit:]",insertBetween:" "}},standard:"¤#,##0.00",accounting:"¤#,##0.00;(¤#,##0.00)","short":{standard:{"1000-count-one":"¤0K","1000-count-other":"¤0K","10000-count-one":"¤00K","10000-count-other":"¤00K","100000-count-one":"¤000K","100000-count-other":"¤000K","1000000-count-one":"¤0M","1000000-count-other":"¤0M","10000000-count-one":"¤00M","10000000-count-other":"¤00M","100000000-count-one":"¤000M","100000000-count-other":"¤000M","1000000000-count-one":"¤0B","1000000000-count-other":"¤0B","10000000000-count-one":"¤00B","10000000000-count-other":"¤00B","100000000000-count-one":"¤000B","100000000000-count-other":"¤000B","1000000000000-count-one":"¤0T","1000000000000-count-other":"¤0T","10000000000000-count-one":"¤00T","10000000000000-count-other":"¤00T","100000000000000-count-one":"¤000T","100000000000000-count-other":"¤000T"}},"unitPattern-count-one":"{0} {1}","unitPattern-count-other":"{0} {1}"},"miscPatterns-numberSystem-latn":{atLeast:"{0}+",range:"{0}–{1}"}}}}};"en"===n.locale().locale&&(n.load(s),n.locale("en"));var r={},l=function(t){var e,i;return i="object"==typeof t?n.locale().locale+":"+JSON.stringify(t):n.locale().locale+":"+t,e=r[i],e||(e=r[i]=n.numberFormatter(t)),e},c={_formatNumberCore:function(t,e,i){return"exponential"===e?this.callBase.apply(this,arguments):l(this._normalizeFormatConfig(e,i,t))(t)},_normalizeFormatConfig:function(t,e,i){var n;return n="decimal"===t?{minimumIntegerDigits:e.precision||1,useGrouping:!1,minimumFractionDigits:0,maximumFractionDigits:20,round:i<0?"ceil":"floor"}:this._getPrecisionConfig(e.precision),"percent"===t&&(n.style="percent"),n},_getPrecisionConfig:function(t){var e;return e=null===t?{minimumFractionDigits:0,maximumFractionDigits:20}:{minimumFractionDigits:t||0,maximumFractionDigits:t||0}},format:function(t,e){return"number"!=typeof t?t:(e=this._normalizeFormat(e),e&&("function"==typeof e||e.type||e.formatter)?this.callBase.apply(this,arguments):l(e)(t))},parse:function(t,e){if(t){if(e&&(e.parser||"string"==typeof e))return this.callBase.apply(this,arguments);e&&a.log("W0011");var i=n.parseNumber(t);return isNaN(i)&&(i=this.callBase.apply(this,arguments)),i}}};o.inject(c)}},function(t,e,i){i(212),i(215),i(213);var n={supplemental:{version:{_cldrVersion:"28",_unicodeVersion:"8.0.0",_number:"$Revision: 11969 $"},timeData:{"001":{_allowed:"H h",_preferred:"H"},DE:{_allowed:"H",_preferred:"H"},JP:{_allowed:"H K h",_preferred:"H"},RU:{_allowed:"H",_preferred:"H"},US:{_allowed:"H h",_preferred:"h"}}}},o={main:{en:{identity:{version:{_cldrVersion:"28",_number:"$Revision: 11972 $"},language:"en"},dates:{calendars:{gregorian:{months:{format:{abbreviated:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},narrow:{1:"J",2:"F",3:"M",4:"A",5:"M",6:"J",7:"J",8:"A",9:"S",10:"O",11:"N",12:"D"},wide:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"}},"stand-alone":{abbreviated:{1:"Jan",2:"Feb",3:"Mar",4:"Apr",5:"May",6:"Jun",7:"Jul",8:"Aug",9:"Sep",10:"Oct",11:"Nov",12:"Dec"},narrow:{1:"J",2:"F",3:"M",4:"A",5:"M",6:"J",7:"J",8:"A",9:"S",10:"O",11:"N",12:"D"},wide:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"}}},days:{format:{abbreviated:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},narrow:{sun:"S",mon:"M",tue:"T",wed:"W",thu:"T",fri:"F",sat:"S"},"short":{sun:"Su",mon:"Mo",tue:"Tu",wed:"We",thu:"Th",fri:"Fr",sat:"Sa"},wide:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"}},"stand-alone":{abbreviated:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},narrow:{sun:"S",mon:"M",tue:"T",wed:"W",thu:"T",fri:"F",sat:"S"},"short":{sun:"Su",mon:"Mo",tue:"Tu",wed:"We",thu:"Th",fri:"Fr",sat:"Sa"},wide:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"}}},quarters:{format:{abbreviated:{1:"Q1",2:"Q2",3:"Q3",4:"Q4"},narrow:{1:"1",2:"2",3:"3",4:"4"},wide:{1:"1st quarter",2:"2nd quarter",3:"3rd quarter",4:"4th quarter"}},"stand-alone":{abbreviated:{1:"Q1",2:"Q2",3:"Q3",4:"Q4"},narrow:{1:"1",2:"2",3:"3",4:"4"},wide:{1:"1st quarter",2:"2nd quarter",3:"3rd quarter",4:"4th quarter"}}},dayPeriods:{format:{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"mi",am:"a","am-alt-variant":"am",noon:"n",pm:"p","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"}},"stand-alone":{abbreviated:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},narrow:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"in the morning",afternoon1:"in the afternoon",evening1:"in the evening",night1:"at night"},wide:{midnight:"midnight",am:"AM","am-alt-variant":"am",noon:"noon",pm:"PM","pm-alt-variant":"pm",morning1:"morning",afternoon1:"afternoon",evening1:"evening",night1:"night"}}},eras:{eraNames:{0:"Before Christ","0-alt-variant":"Before Common Era",1:"Anno Domini","1-alt-variant":"Common Era"},eraAbbr:{0:"BC","0-alt-variant":"BCE",1:"AD","1-alt-variant":"CE"},eraNarrow:{0:"B","0-alt-variant":"BCE",1:"A","1-alt-variant":"CE"}},dateFormats:{full:"EEEE, MMMM d, y","long":"MMMM d, y",medium:"MMM d, y","short":"M/d/yy"},timeFormats:{full:"h:mm:ss a zzzz","long":"h:mm:ss a z",medium:"h:mm:ss a","short":"h:mm a"},dateTimeFormats:{full:"{1} 'at' {0}","long":"{1} 'at' {0}",medium:"{1}, {0}","short":"{1}, {0}",availableFormats:{d:"d",E:"ccc",Ed:"d E",Ehm:"E h:mm a",EHm:"E HH:mm",Ehms:"E h:mm:ss a",EHms:"E HH:mm:ss",Gy:"y G",GyMMM:"MMM y G",GyMMMd:"MMM d, y G",GyMMMEd:"E, MMM d, y G",h:"h a",H:"HH",hm:"h:mm a",Hm:"HH:mm",hms:"h:mm:ss a",Hms:"HH:mm:ss",hmsv:"h:mm:ss a v",Hmsv:"HH:mm:ss v",hmv:"h:mm a v",Hmv:"HH:mm v",M:"L",Md:"M/d",MEd:"E, M/d",MMM:"LLL",MMMd:"MMM d",MMMEd:"E, MMM d",MMMMd:"MMMM d",ms:"mm:ss",y:"y",yM:"M/y",yMd:"M/d/y",yMEd:"E, M/d/y",yMMM:"MMM y",yMMMd:"MMM d, y",yMMMEd:"E, MMM d, y",yMMMM:"MMMM y",yQQQ:"QQQ y",yQQQQ:"QQQQ y"},appendItems:{Day:"{0} ({2}: {1})","Day-Of-Week":"{0} {1}",Era:"{0} {1}",Hour:"{0} ({2}: {1})",Minute:"{0} ({2}: {1})",Month:"{0} ({2}: {1})",Quarter:"{0} ({2}: {1})",Second:"{0} ({2}: {1})",Timezone:"{0} {1}",Week:"{0} ({2}: {1})",Year:"{0} {1}"},intervalFormats:{intervalFormatFallback:"{0} – {1}",d:{d:"d – d"},h:{a:"h a – h a",h:"h – h a"},H:{H:"HH – HH"},hm:{a:"h:mm a – h:mm a",h:"h:mm – h:mm a",m:"h:mm – h:mm a"},Hm:{H:"HH:mm – HH:mm",m:"HH:mm – HH:mm"},hmv:{a:"h:mm a – h:mm a v",h:"h:mm – h:mm a v",m:"h:mm – h:mm a v"},Hmv:{H:"HH:mm – HH:mm v",m:"HH:mm – HH:mm v"},hv:{a:"h a – h a v",h:"h – h a v"},Hv:{H:"HH – HH v"},M:{M:"M – M"},Md:{d:"M/d – M/d",M:"M/d – M/d"},MEd:{d:"E, M/d – E, M/d",M:"E, M/d – E, M/d"},MMM:{M:"MMM – MMM"},MMMd:{d:"MMM d – d",M:"MMM d – MMM d"},MMMEd:{d:"E, MMM d – E, MMM d",M:"E, MMM d – E, MMM d"},y:{y:"y – y"},yM:{M:"M/y – M/y",y:"M/y – M/y"},yMd:{d:"M/d/y – M/d/y",M:"M/d/y – M/d/y",y:"M/d/y – M/d/y"},yMEd:{d:"E, M/d/y – E, M/d/y",M:"E, M/d/y – E, M/d/y",y:"E, M/d/y – E, M/d/y"},yMMM:{M:"MMM – MMM y",y:"MMM y – MMM y"},yMMMd:{d:"MMM d – d, y",M:"MMM d – MMM d, y",y:"MMM d, y – MMM d, y"},yMMMEd:{d:"E, MMM d – E, MMM d, y",M:"E, MMM d – E, MMM d, y",y:"E, MMM d, y – E, MMM d, y"},yMMMM:{M:"MMMM – MMMM y",y:"MMMM y – MMMM y"}}}}}}}}},a={supplemental:{version:{_cldrVersion:"28",_unicodeVersion:"8.0.0",_number:"$Revision: 11969 $"},weekData:{minDays:{"001":"1",US:"1",DE:"4"},firstDay:{"001":"mon",DE:"mon",RU:"mon",JP:"sun",US:"sun"},weekendStart:{"001":"sat"},weekendEnd:{"001":"sun"}}}},s=["skeleton","date","time","datetime","raw"],r=i(213),l=i(48),c=i(10).isObject,h=i(25).inArray,d=i(17);if(r&&r.formatDate){"en"===r.locale().locale&&(r.load(a,n,o),r.locale("en"));var u={},p={shortdate:{path:"dateTimeFormats/availableFormats/yMd"},shorttime:{path:"timeFormats/short"},longdate:{path:"dateFormats/full"},longtime:{path:"timeFormats/medium"},monthandday:{path:"dateTimeFormats/availableFormats/MMMMd"},monthandyear:{path:"dateTimeFormats/availableFormats/yMMMM"},quarterandyear:{path:"dateTimeFormats/availableFormats/yQQQ"},day:{path:"dateTimeFormats/availableFormats/d"},year:{path:"dateTimeFormats/availableFormats/y"},shortdateshorttime:{path:"dateTimeFormats/short",parts:["shorttime","shortdate"]},mediumdatemediumtime:{path:"dateTimeFormats/medium",parts:["shorttime","monthandday"]},longdatelongtime:{path:"dateTimeFormats/medium",parts:["longtime","longdate"]},month:{pattern:"LLLL"},shortyear:{pattern:"yy"},dayofweek:{pattern:"EEEE"},quarter:{pattern:"QQQ"},millisecond:{pattern:"SSS"},hour:{pattern:"HH"},minute:{pattern:"mm"},second:{pattern:"ss"}},f={_getPatternByFormat:function(t){var e=this,i=t.toLowerCase(),n=p[i];if("datetime-local"===i)return"yyyy-MM-ddTHH':'mm':'ss";if(n){var o=n.path&&e._getFormatStringByPath(n.path)||n.pattern;return n.parts&&d.each(n.parts,function(t,i){o=o.replace("{"+t+"}",e._getPatternByFormat(i))}),o}},_getFormatStringByPath:function(t){return r.locale().main("dates/calendars/gregorian/"+t)},getMonthNames:function(t){var e=r.locale().main("dates/calendars/gregorian/months/stand-alone/"+(t||"wide"));return d.map(e,function(t){return t})},getDayNames:function(t){var e=r.locale().main("dates/calendars/gregorian/days/stand-alone/"+(t||"wide"));return d.map(e,function(t){return t})},getTimeSeparator:function(){
|