diff --git a/.babelrc b/.babelrc deleted file mode 100644 index e81239406..000000000 --- a/.babelrc +++ /dev/null @@ -1,6 +0,0 @@ -{ - "presets": [ - ["env", { "modules": false }], - "stage-3" - ] -} diff --git a/.babelrc.js b/.babelrc.js new file mode 100644 index 000000000..475cfbd70 --- /dev/null +++ b/.babelrc.js @@ -0,0 +1,14 @@ +module.exports = { + plugins: ['@babel/plugin-syntax-dynamic-import'], + presets: [ + [ + '@babel/preset-env', + { + targets: { + browsers: ['last 2 versions', 'ie >= 11'] + } + } + ] + ] +} + diff --git a/.eslintrc.js b/.eslintrc.js new file mode 100644 index 000000000..340cc1cfa --- /dev/null +++ b/.eslintrc.js @@ -0,0 +1,67 @@ +module.exports = { + root: true, + env: { + browser: true, + es6: true, + node: true, + jest: true + }, + globals: { + t: true, + n: true, + OC: true, + OCA: true, + Vue: true, + VueRouter: true + }, + parserOptions: { + parser: 'babel-eslint', + ecmaVersion: 6 + }, + extends: [ + 'eslint:recommended', + 'plugin:node/recommended', + 'plugin:vue/essential', + 'plugin:vue/recommended', + 'standard' + ], + plugins: ['vue', 'node'], + rules: { + // space before function () + 'space-before-function-paren': ['error', 'never'], + // curly braces always space + 'object-curly-spacing': ['error', 'always'], + // stay consistent with array brackets + 'array-bracket-newline': ['error', 'consistent'], + // 1tbs brace style + 'brace-style': 'error', + // tabs only + indent: ['error', 'tab'], + 'no-tabs': 0, + 'vue/html-indent': ['error', 'tab'], + // only debug console + 'no-console': ['error', { allow: ['error', 'warn', 'debug'] }], + // classes blocks + 'padded-blocks': ['error', { classes: 'always' }], + // always have the operator in front + 'operator-linebreak': ['error', 'before'], + // ternary on multiline + 'multiline-ternary': ['error', 'always-multiline'], + // es6 import/export and require + 'node/no-unpublished-require': ['off'], + 'node/no-unsupported-features/es-syntax': ['off'], + // space before self-closing elements + 'vue/html-closing-bracket-spacing': 'error', + // code spacing with attributes + 'vue/max-attributes-per-line': [ + 'error', + { + singleline: 3, + multiline: { + max: 3, + allowFirstLine: true + } + } + ] + } +} diff --git a/.gitignore b/.gitignore index 3871396b6..422a0e8e2 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,8 @@ .idea/ build/ css/*.map +js/*polls.* +js/*.svg nbproject/ node_modules/ npm-debug.log @@ -15,5 +17,5 @@ yarn-error.log *.iml *.ntvs* *.njsproj -*.sln +*.sln *.suo diff --git a/.l10nignore b/.l10nignore new file mode 100644 index 000000000..2a82246b6 --- /dev/null +++ b/.l10nignore @@ -0,0 +1,2 @@ +# compiled vue templates +js/create-poll.js diff --git a/.scss-lint.yml b/.scss-lint.yml deleted file mode 100644 index 01e0396d0..000000000 --- a/.scss-lint.yml +++ /dev/null @@ -1,4 +0,0 @@ -build: - tests: - override: - - scss-lint-run /css diff --git a/CHANGELOG.md b/CHANGELOG.md index 246a805ca..c44ff67b4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,60 @@ # Changelog - All notable changes to this project will be documented in this file. -## [0.9.0] - eta Nov 2018 +## [0.10.2] - 2019-03-13 + + - #532 - cannot share poll (only share option) + +## [0.10.1] - 2019-03-02 + +### Fixed + + - #528 - pull down on three-dot menu hidden for first participant + +## [0.10.0] - 2019-02-24 + +### Added + + - main list page + - rewrite as a vue app + - improved UI + - ability to clone any poll and shift date options (#323, #245) + - design updates to vote page + - some more UI enhancements + - Maybe option for a poll is configurable + +### Fixed + + - #82 - "user_" / "group_" prefix + - #206 - User name is prefixed with user_, + incorrect translation + - #461 - Polls with expire date could not be created/edited + - #478 - Send comment bug + - #479 - Not possible to vote for none of the options + - #498 - "Create Poll" button disabled after failed validation + - #507 - Fix query params in eventmapper + - #511 - No difference between hidden and open poll + +## [0.9.5] - 2018-12-22 + +### Fixed + + - #457 - update to 0.9.4 failed for postgres database + - #454 - Update to 0.9.3 failed for postgresql database + +## [0.9.4] - 2018-12-18 + +### Fixed + + - #453 - Polls upgrade leads to NotNullConstraintViolationException + - #454 - Update to 0.9.3 failed for postgresql database + - #455 - Fix color variable name in list.scss + +## [0.9.3] - 2018-12-18 + +### Fixed + - Fix minor problem with migration + +## [0.9.1] - 2018-12-11 ### Added - create/edit page @@ -10,7 +62,7 @@ All notable changes to this project will be documented in this file. - improved UI - introduced new NC date time picker from vue-nextcloud - introduced multiselect from vue-nextcloud - - added option to forbid "maybe" vote + - added option to allow "maybe" vote - vote page - made polls table scrollable @@ -19,7 +71,7 @@ All notable changes to this project will be documented in this file. - Users in the admin group should be able to edit polls (#386) ### Changed - - Compatibility to NC 14 + - Compatibility to NC 14 and 15 - Introduced vue - Changing database theme - Polls is a Nextcloud only app now. If you wish to proceed developing the ownCloud version, make a fork from the `stable-0.8` branch. diff --git a/Makefile b/Makefile index 566d5e715..d5c6b49e4 100644 --- a/Makefile +++ b/Makefile @@ -6,85 +6,107 @@ # Dependencies: # * make # * which +# * npm # * curl: used if phpunit and composer are not installed to fetch them from the web # * tar: for building the archive -app_name=$(notdir $(CURDIR)) -build_tools_directory=$(CURDIR)/build/tools -build_source_directory=$(CURDIR)/build/source -appstore_build_directory=$(CURDIR)/build/artifacts/appstore -appstore_package_name=$(appstore_build_directory)/$(app_name) -nc_cert_directory=$(HOME)/.nextcloud/certificates +app_name=polls + +project_dir=$(CURDIR) +build_dir=$(CURDIR)/build +build_tools_dir=$(build_dir)/tools +build_source_dir=$(build_dir)/source +appstore_build_dir=$(build_dir)/artifacts/appstore +appstore_package_name=$(appstore_build_dir)/$(app_name) +nc_cert_dir=$(HOME)/.nextcloud/certificates composer=$(shell which composer 2> /dev/null) -all: composer +all: dev-setup appstore + +# Dev environment setup +dev-setup: clean-dev npm-init composer + +npm-init: + npm install -# Installs and updates the composer dependencies. If composer is not installed # a copy is fetched from the web .PHONY: composer composer: ifeq (,$(composer)) @echo "No composer command available, downloading a copy from the web" - mkdir -p $(build_tools_directory) + mkdir -p $(build_tools_dir) curl -sS https://getcomposer.org/installer | php - mv composer.phar $(build_tools_directory) - php $(build_tools_directory)/composer.phar install --prefer-dist - php $(build_tools_directory)/composer.phar update --prefer-dist + mv composer.phar $(build_tools_dir) + php $(build_tools_dir)/composer.phar install --prefer-dist + php $(build_tools_dir)/composer.phar update --prefer-dist else composer install --prefer-dist composer update --prefer-dist endif -# Removes the appstore build +# Lint +lint: + npm run lint + +lint-fix: + npm run lint:fix + +# Removes the appstore build and compiled js files .PHONY: clean clean: - rm -rf ./build + rm -rf $(build_dir) + rm -f js/polls.js + rm -f js/polls.js.map + +clean-dev: clean + rm -rf node_modules + rm -rf ./vendor + +# Build js +# Installs and updates the composer dependencies. If composer is not installed +build-js-production: + npm run build # Builds the source package for the app store, ignores php and js tests .PHONY: appstore -appstore: - rm -rf $(appstore_build_directory) - rm -rf $(build_source_directory) - mkdir -p $(appstore_build_directory) - mkdir -p $(build_source_directory) - +appstore: clean lint build-js-production + mkdir -p $(build_source_dir) + mkdir -p $(appstore_build_dir) rsync -a \ - --include="js/vendor" \ - --include="css/vendor" \ + --exclude="ISSUE_TEMPLATE.md" \ --exclude="*.log" \ --exclude=".*" \ + --exclude="_*" \ + --exclude="build" \ --exclude="bower.json" \ --exclude="composer.*" \ - --exclude="ISSUE_TEMPLATE.md" \ - --exclude="karma.*" \ - --exclude="Makefile" \ - --exclude="package*" \ - --exclude="phpunit*xml" \ - --exclude="protractor.*" \ - --exclude="build" \ - --exclude="css/*.css" \ - --exclude="js/node_modules" \ - --exclude="js/tests" \ - --exclude="js/test" \ + --exclude="js/.*" \ --exclude="js/*.log" \ - --exclude="js/package.json" \ --exclude="js/bower.json" \ --exclude="js/karma.*" \ + --exclude="js/node_modules" \ + --exclude="js/package.json" \ --exclude="js/protractor.*" \ - --exclude="js/.*" \ + --exclude="js/test" \ + --exclude="js/tests" \ + --exclude="karma.*" \ --exclude="l10n/no-php" \ + --exclude="Makefile" \ --exclude="node_modules" \ + --exclude="package*" \ + --exclude="phpunit*xml" \ + --exclude="protractor.*" \ --exclude="screenshots" \ --exclude="src" \ --exclude="tests" \ --exclude="vendor" \ - ./ $(build_source_directory)/$(app_name) - - tar cvzf $(appstore_package_name).tar.gz --directory="$(build_source_directory)" $(app_name) - - @if [ -f $(nc_cert_directory)/$(app_name).key ]; then \ + --exclude="webpack.*" \ + $(project_dir)/ $(build_source_dir)/$(app_name) + tar -czf $(appstore_package_name).tar.gz \ + --directory="$(build_source_dir)" $(app_name) + @if [ -f $(nc_cert_dir)/$(app_name).key ]; then \ echo "Signing package..."; \ - openssl dgst -sha512 -sign $(nc_cert_directory)/$(app_name).key $(appstore_build_directory)/$(app_name).tar.gz | openssl base64; \ + openssl dgst -sha512 -sign $(nc_cert_dir)/$(app_name).key $(appstore_build_dir)/$(app_name).tar.gz | openssl base64; \ fi .PHONY: test diff --git a/README.md b/README.md index 2e79d5595..741df7957 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,9 @@ This is a poll app, similar to doodle or dudle, for Nextcloud written in PHP and JS / jQuery. It is a rework of the already existing [polls app](https://github.com/raduvatav/polls) written by @raduvatav. +**Note**: ownCloud is **no longer** supported! Last (confirmed) working version is 0.8.1 and is released in the oC marketplace. +**Note**: IE11 users will face some CSS problems (see #541). Please change to a compatible browser (Firefox, Chrome, Edge, etc.) + ### Features - :bar_chart: Create / edit polls (datetimes _and_ texts) - :date: Set expiration date @@ -18,14 +21,19 @@ It is a rework of the already existing [polls app](https://github.com/raduvatav/ - https://github.com/nextcloud/polls/issues ### Screenshots +Overview of all polls ![Overview](https://github.com/nextcloud/polls/blob/master/screenshots/overview.png) +The vote page ![Vote](https://github.com/nextcloud/polls/blob/master/screenshots/vote.png) +Creating a new poll ![New poll](https://github.com/nextcloud/polls/blob/master/screenshots/edit-poll.png) +View the vote page on mobiles ![Vote mobile portrait](https://github.com/nextcloud/polls/blob/master/screenshots/vote-mobile-portrait.png) +Turn phone to landscape to see details ![Vote mobile landscape](https://github.com/nextcloud/polls/blob/master/screenshots/vote-mobile-landscape.png) ## Installation / Update @@ -41,9 +49,13 @@ If you want to run the latest development version from git source, you need to c git clone https://github.com/nextcloud/polls.git ``` +* Install dev environment with ```make dev-setup``` +* Compile polls.js with ```make build-js-production``` or ```npm run build``` +* Run a complete build with ```make all``` (installs dev env, runs linter and builds the polls.js) + ## Contribution Guidelines -Please read the [Code of Conduct](https://nextcloud.com/community/code-of-conduct/). This document offers some guidance -to ensure Nextcloud participants can cooperate effectively in a positive and inspiring atmosphere, and to explain how together +Please read the [Code of Conduct](https://nextcloud.com/community/code-of-conduct/). This document offers some guidance +to ensure Nextcloud participants can cooperate effectively in a positive and inspiring atmosphere, and to explain how together we can strengthen and support each other. For more information please review the [guidelines for contributing](https://github.com/nextcloud/server/blob/master/CONTRIBUTING.md) to this repository. diff --git a/appinfo/info.xml b/appinfo/info.xml index bcb05aaca..2c23754ad 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -5,7 +5,7 @@ Polls A polls app, similar to doodle/dudle with the possibility to restrict access. A polls app, similar to doodle/dudle with the possibility to restrict access (members, certain groups/users, hidden and public). - 0.9.0 + 0.10.3 agpl Vinzenz Rosenkranz René Gieling @@ -23,6 +23,6 @@ https://raw.githubusercontent.com/nextcloud/polls/master/screenshots/vote.png https://raw.githubusercontent.com/nextcloud/polls/master/screenshots/edit-poll.png - + diff --git a/appinfo/routes.php b/appinfo/routes.php index 6fc5dbb5f..836556944 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -25,18 +25,28 @@ 'routes' => [ ['name' => 'page#index', 'url' => '/', 'verb' => 'GET'], ['name' => 'page#goto_poll', 'url' => '/poll/{hash}', 'verb' => 'GET'], + + ['name' => 'page#create_poll', 'url' => '/new', 'verb' => 'GET'], ['name' => 'page#edit_poll', 'url' => '/edit/{hash}', 'verb' => 'GET'], - ['name' => 'page#create_poll', 'url' => '/create', 'verb' => 'GET'], + ['name' => 'page#clone_poll', 'url' => '/clone/{hash}', 'verb' => 'GET'], + ['name' => 'page#delete_poll', 'url' => '/delete', 'verb' => 'POST'], - ['name' => 'page#update_poll', 'url' => '/update', 'verb' => 'POST'], - ['name' => 'page#insert_poll', 'url' => '/insert', 'verb' => 'POST'], ['name' => 'page#insert_vote', 'url' => '/insert/vote', 'verb' => 'POST'], ['name' => 'page#insert_comment', 'url' => '/insert/comment', 'verb' => 'POST'], ['name' => 'page#search', 'url' => '/search', 'verb' => 'POST'], ['name' => 'page#get_display_name', 'url' => '/get/displayname', 'verb' => 'POST'], - ['name' => 'api#write_poll', 'url' => '/write', 'verb' => 'POST'], - ['name' => 'api#get_poll', 'url' => '/get/poll/{hash}', 'verb' => 'GET'], - ['name' => 'api#get_site_users_and_groups', 'url' => '/get/siteusers', 'verb' => 'POST'], - ['name' => 'api#get_system', 'url' => '/get/system', 'verb' => 'GET'] + + ['name' => 'api#write_poll', 'url' => '/write/poll', 'verb' => 'POST'], + ['name' => 'api#get_poll', 'url' => '/get/poll/{pollIdOrHash}', 'verb' => 'GET'], + ['name' => 'api#get_options', 'url' => '/get/options/{pollId}', 'verb' => 'GET'], + ['name' => 'api#get_votes', 'url' => '/get/votes/{pollId}', 'verb' => 'GET'], + ['name' => 'api#get_comments', 'url' => '/get/comments/{pollId}', 'verb' => 'GET'], + ['name' => 'api#get_shares', 'url' => '/get/shares/{pollId}', 'verb' => 'GET'], + ['name' => 'api#get_event', 'url' => '/get/event/{pollId}', 'verb' => 'GET'], + ['name' => 'api#remove_poll', 'url' => '/remove/poll', 'verb' => 'POST'], + ['name' => 'api#get_polls', 'url' => '/get/polls', 'verb' => 'GET'], + + ['name' => 'system#get_site_users_and_groups', 'url' => '/get/siteusers', 'verb' => 'POST'], + ['name' => 'system#get_system', 'url' => '/get/system', 'verb' => 'GET'] ] ]; diff --git a/composer.json b/composer.json index e52ea13c9..84d6427ea 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "polls", + "name": "nextcloud/polls", "type": "project", "license": "AGPLv3", "authors": [ @@ -14,7 +14,7 @@ } ], "require-dev": { - "christophwurst/nextcloud": "^12.0", + "christophwurst/nextcloud": "^15.0", "phpunit/phpunit": "^5.4", "league/factory-muffin": "^3.0", "league/factory-muffin-faker": "^2.0" diff --git a/css/colors.scss b/css/colors.scss index 4ee640730..462a2c798 100644 --- a/css/colors.scss +++ b/css/colors.scss @@ -27,5 +27,5 @@ $fg-yes: #49bc49; @include icon-color('close','actions',$fg-no,1,true) } .icon-maybe { - @include icon-color('maybe-vote','polls',$fg-maybe) + @include icon-color('maybe-vote-variant','polls',$fg-maybe) } diff --git a/css/list.scss b/css/list.scss deleted file mode 100644 index a646779d8..000000000 --- a/css/list.scss +++ /dev/null @@ -1,240 +0,0 @@ -@import 'colors.scss'; - -$row-padding: 15px; -$table-padding: 4px; - -$date-width: 120px; -$participants-width: 95px; -$group-2-2-width: max($date-width, $participants-width); - -$owner-width: 140px; -$access-width: 140px; -$group-2-1-width: max($access-width, $date-width); -$group-2-width: $owner-width + $group-2-1-width + $group-2-2-width; - -$action-width: 44px; -$thumbnail-width: 44px; -$thumbnail-icon-width: 32px; -$name-width: 150px; -$description-width: 150px; -$group-1-1-width: max($name-width, $description-width); -$group-1-width: $thumbnail-width + $group-1-1-width + $action-width; - -$group-master-width: max($group-1-width, $group-2-width); - -$mediabreak-1: ($group-1-width + $owner-width + $access-width + $date-width + $date-width + $participants-width + $row-padding * 2); -$mediabreak-2: ($group-1-width + $group-2-width + $row-padding * 2); -$mediabreak-3: $group-1-width + $owner-width + max($group-2-1-width, $group-2-2-width) + $row-padding *2 ; - -.table { - width: 100%; -} - -#emptycontent { - .icon-polls { - background-color: black; - -webkit-mask: url('../img/app.svg') no-repeat 50% 50%; - mask: url('../img/app.svg') no-repeat 50% 50%; - } -} - -.table-row { - display: flex; - width: 100%; - padding-left: $row-padding; - padding-right: $row-padding; - - line-height: 2em; - transition: background-color 0.3s ease; - background-color: var(--color-main-background); - min-height: 4em; - border-bottom: 1px solid var(--color-border); - - &.table-header { - .name, .description { - padding-left: ($thumbnail-width + $table-padding *2); - } - .owner { - padding-left: 6px; - } - } - - &.table-body { - &:hover, &:focus, &:active, &.mouseOver { - transition: background-color 0.3s ease; - background-color: var(--color-background-dark); - } - .flex-column.owner { - display: flex; - .avatardiv { - margin-right: 4px; - } - } - .icon-more { - right: 14px; - opacity: 0.3; - cursor: pointer; - height: 44px; - width: 44px; - } - - .symbol { - padding: 2px; - } - - } - - &.table-header { - opacity: 0.5; - } -} - -.wrapper { - display: flex; - align-items: center; - position: relative; - div { - } -} - - -.flex-column { - padding: 0 $table-padding; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - align-items: center; - min-height: 16px; -} - -.name { - width: $name-width; -} - -.description { - width: $description-width; - color: var(--text-maxcontrast); - } - -.owner { - width: $owner-width; -} - -.access { - width: $access-width; -} - -.created { - width: $date-width; -} - -.expiry { - width: $date-width; - &.expired { - color: red; - } -} - -.participants{ - width: $participants-width; - div { - &.partic_voted { - &.icon-partic_yes { - background-image: var(--icon-yes); - } - &.icon-partic_no { - background-image: var(--icon-no); - } - } - - &.partic_commented { - &.icon-commented_yes { - background-image: var(--icon-comment-yes); - } - &.icon-commented_no { - background-image: var(--icon-comment-no); - } - } - } - -} - -.actions { - width: $action-width; - position: relative; - overflow: initial; -} - -.thumbnail { - background-size: $thumbnail-icon-width; - width: $thumbnail-width; - height: $thumbnail-width; - padding-right: $table-padding; - background-repeat: no-repeat; - background-position: center; - &.progress, &.endless { - &.partic_yes { - background-image: url('../img/open-voted-vote.svg'); - } - &.partic_no { - background-image: url('../img/open-unvoted-vote.svg'); - } - } - &.expired { - &.partic_yes { - background-image: url('../img/expired-voted-vote.svg'); - } - &.partic_no { - background-image: url('../img/expired-unvoted-vote.svg'); - } - } -} - -.options, .participants { - display: flex; - flex-direction: row; -} - -.group-1, .group-1-1, .group-master { - flex-grow: 1; -} - -.group-1-1 { - flex-direction: column; - width: $group-1-1-width; - > div { - width: 100%; - } -} - -@media all and (max-width: ($mediabreak-1) ) { - .group-1 { - width: $group-1-width; - } - .group-2-1, .group-2-2 { - flex-direction: column; - } - - .access, .created { - width: $group-2-1-width;; - } - .expiry, .participants { - width: $group-2-2-width;; - } -} - -@media all and (max-width: ($mediabreak-2) ) { - .table-row { - padding: 0; - } - - .group-2-1 { - display: none; - } -} - -@media all and (max-width: ($mediabreak-3) ) { - .group-2 { - display: none; - } -} diff --git a/css/vote.scss b/css/vote.scss index 2d570e2be..3a1b95b13 100644 --- a/css/vote.scss +++ b/css/vote.scss @@ -1,117 +1,150 @@ @import 'colors.scss'; $border_current_user: 2px solid; -$border_user: 1px solidvar(--color-border-dark); +$border_user: 1px solid var(--color-border-dark); +$table-padding: 17px; $user-column-width: 265px; +$header-padding: $user-column-width + $table-padding; -#content { - display:flex; -} .flex-row { align-items: center; } #app-content { - width: 100%; + // width: 100%; overflow-x: hidden; + overflow-y: auto; +} +.actions { + width: 44px; + position: relative; + overflow: initial; +} - #votings { - position: relative !important; - padding: 12px 17px; - .table { - overflow-x: auto; - padding-bottom: 10px; - } - .description { - .expired-vote{ - color: var(--color-error); - font-weight: bold; - } +.icon-more { + right: 14px; + opacity: 0.3; + cursor: pointer; + height: 44px; + width: 44px; +} + +.user { + border-bottom: $border_user; + height: 44px; + padding: 0 $table-padding; + order: 2; + &.current-user { + order: 1; + // background-color: #91c8e9; + // background-color: var(--color-primary-element-light); + // background-color: var(--color-main-background-translucent); + // background-color: var(--color-background-dark); + height: 50px; + .name { + font-weight: bold; } - .header { - margin-left: $user-column-width; - padding: 0 17px; - align-items: initial; - - .date-box { - padding: 0 2px; - align-items: center; - .month, .dayow { - font-size: 1.2em; - color: var(--color-text-lighter); - } + } +} - .day { - font-size: 1.8em; - margin: 5px 0 5px 0; - } - } +.table { + overflow-x: auto; + padding-bottom: 10px; + min-height: 280px; +} - .counter { - font-size: 18px; - & > div { - margin: 0 2px; - .svg { - background-position: center; - background-repeat: no-repeat; - background-size: 18px; - height: 24px; - width: 24px; - } - } - .yes { - color: $fg-yes; - .svg { - background-image: var(--icon-yes); - } - } - .no { - color: $fg-no; - .svg { - background-image: var(--icon-no); - } - } - } +.expired-vote{ + color: var(--color-error); + font-weight: bold; +} - .winner { - font-style: italic; - font-weight: bold; - color: $fg-yes; - } - .vote.option { - .date-box { - flex-grow: 1; - } +.header { + padding: 0 $table-padding 0 $header-padding; + align-items: center; + border-bottom: $border_user; - .counter { - flex-grow: 0; - height: 32px; - } + .date-box { + padding: 0 2px; + align-items: center; + .month, .dayow { + font-size: 1.2em; + color: var(--color-text-lighter); + } + + .day { + font-size: 1.8em; + margin: 5px 0 5px 0; + } + } + + .counter { + font-size: 18px; + & > div { + margin: 0 5px; + .svg { + background-position: center; + background-repeat: no-repeat; + background-size: 18px; + height: 24px; + width: 24px; } } - .user { - border-top: $border_user; - height: 44px; - padding: 0 17px; + .yes { + color: $fg-yes; + .svg { + // background-image: var(--icon-yes); + } } - .first { - flex-grow: 0; - flex-shrink: 0; - width: $user-column-width; + .no { + color: $fg-no; + .svg { + // background-image: var(--icon-no); + } } + } - .vote, .poll-cell { + .winner { + font-weight: bold; + color: $fg-yes; + } + .vote.option { + .date-box { flex-grow: 1; - width: 85px; - margin: 2px; - align-items:center; } + + .counter { + flex-grow: 0; + height: 32px; + } + } +} + +#votings { + position: relative !important; + padding: 12px $table-padding; + .first { + flex-grow: 0; + flex-shrink: 0; + width: $user-column-width; + } + + .vote { + flex-grow: 1; + width: 85px; + // min-width: 85px; + margin: 2px; + align-items:center; } } +.date-poll { + .vote, .poll-cell { + width: 85px; + } +} .name { margin-left: 5px; @@ -121,24 +154,27 @@ $user-column-width: 265px; background-position: center; background-repeat: no-repeat; background-size: 32px; - height: 44px; + height: 43px; + display: flex; + flex-grow: 1; + width: 85px; + // min-width: 85px; + margin: 2px; + align-items: center; &.yes { background-color: $bg-yes; color: $fg-yes; - background-image: var(--icon-yes); } &.no { background-color: $bg-no; color: $fg-no; - background-image: var(--icon-no); } &.maybe { background-color: $bg-maybe; color: $fg-maybe; - background-image: var(--icon-maybe); } &.unvoted { @@ -147,26 +183,42 @@ $user-column-width: 265px; &:before { content: attr(data-unvoted); color: $fg-no; - font-size: 14px; - font-style: italic; + font-size: 11px; font-weight: bold; - line-height: 38px; + line-height: 25px; } } &.active { + cursor: pointer; border: 2px solid; border-radius: var(--border-radius); box-sizing: border-box; + width: 30px; + // min-width: 30px; + height: 30px; + background-size: 20px; + margin: auto !important; + background-color: var(--color-main-background); + // color: var(--color-primary); + flex-grow: 0 !important; + // box-shadow: 2px 2px 2px gray; + &.icon-no { + background-image: initial; + } &.unvoted { - background-color: $bg-maybe; - color: $fg-maybe; + background-color: $bg-maybe; + color: $fg-maybe; + } + &:active { + box-shadow: inherit; } } } .toggle-cell { + display: none; height: 28px; height: 32px; width: 32px; @@ -194,10 +246,6 @@ $user-column-width: 265px; } -.current-user { - background-color: var(--color-background-dark); -} - #switchDetails { margin-right: 32px; } @@ -207,7 +255,7 @@ $user-column-width: 265px; position: relative; top: -34px; left: -26px; - background-image: var(--icon-comment-yes); + // background-image: var(--icon-comment-yes); background-repeat: no-repeat; background-size: 33px; padding: 10px; @@ -215,11 +263,11 @@ $user-column-width: 265px; background-position-y: 9px; background-position-x: center; text-shadow: 1px 1px var(--color-box-shadow); - color: var(--color-main-text); - min-width: 34px; + color: var(--color-primary-text); + // min-width: 34px; text-align: center; &.no-comments { - background-image: var(--icon-comment-no); + // background-image: var(--icon-comment-no); } } } @@ -236,7 +284,7 @@ $user-column-width: 265px; } .finish_vote { - padding: 10px 17px; + padding: 10px $table-padding; } @@ -251,7 +299,7 @@ $user-column-width: 265px; } @media all and (max-width: (480px) ) { - #app-content #votings { + #votings { padding: 0px 2px; .flex-row { @@ -276,7 +324,7 @@ $user-column-width: 265px; &.option { align-items: baseline; width: 100%; - border-top: $border_user; + border-bottom: $border_user; } &.time { align-items: center; @@ -297,11 +345,11 @@ $user-column-width: 265px; &.current-user { display: flex; width: 44px; - padding:0; + margin: 0 10px; border: none; background-color: transparent; - .poll-cell { + .poll-cell1 { border:none; border-radius: 0; border-top: 1px solid var(--color-border-dark); @@ -331,6 +379,7 @@ $user-column-width: 265px; .poll-cell, .toggle-cell { width: 44px; height: 44px; + background-size: 30px; background-color: transparent; } } diff --git a/img/maybe-vote-variant.svg b/img/maybe-vote-variant.svg new file mode 100644 index 000000000..1be11a446 --- /dev/null +++ b/img/maybe-vote-variant.svg @@ -0,0 +1,83 @@ + + + + + + + + + image/svg+xml + + + + + + + ( + ) + + diff --git a/js/create-poll.js b/js/create-poll.js deleted file mode 100644 index 8d9673910..000000000 --- a/js/create-poll.js +++ /dev/null @@ -1 +0,0 @@ -!function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/js/",t(t.s=147)}([function(e,t,n){(function(e){!function(t,n){e.exports=n()}(0,function(){"use strict";function t(){return Tr.apply(null,arguments)}function r(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function i(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(e.hasOwnProperty(t))return!1;return!0}function o(e){return void 0===e}function s(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function l(e,t){var n,r=[];for(n=0;n0)for(n=0;n0?"future":"past"];return x(n)?n(t):n.replace(/%s/i,t)}function C(e,t){var n=e.toLowerCase();Fr[n]=Fr[n+"s"]=Fr[t]=e}function N(e){return"string"==typeof e?Fr[e]||Fr[e.toLowerCase()]:void 0}function F(e){var t,n,r={};for(n in e)c(e,n)&&(t=N(n))&&(r[t]=e[n]);return r}function $(e,t){$r[e]=t}function I(e){var t=[];for(var n in e)t.push({unit:n,priority:$r[n]});return t.sort(function(e,t){return e.priority-t.priority}),t}function W(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}function R(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(zr[e]=i),t&&(zr[t[0]]=function(){return W(i.apply(this,arguments),t[1],t[2])}),n&&(zr[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function z(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function U(e){var t,n,r=e.match(Ir);for(t=0,n=r.length;t=0&&Wr.test(e);)e=e.replace(Wr,n),Wr.lastIndex=0,r-=1;return e}function J(e,t,n){si[e]=x(t)?t:function(e,r){return e&&n?n:t}}function G(e,t){return c(si,e)?si[e](t._strict,t._locale):new RegExp(q(e))}function q(e){return K(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i}))}function K(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Z(e,t){var n,r=t;for("string"==typeof e&&(e=[e]),s(t)&&(r=function(e,n){n[t]=L(e)}),n=0;n=0&&isFinite(s.getFullYear())&&s.setFullYear(e),s}function Le(e){var t=new Date(Date.UTC.apply(null,arguments));return e<100&&e>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e),t}function be(e,t,n){var r=7+t-n;return-(7+Le(e,0,r).getUTCDay()-t)%7+r-1}function we(e,t,n,r,i){var a,o,s=(7+n-r)%7,u=be(e,r,i),l=1+7*(t-1)+s+u;return l<=0?(a=e-1,o=ee(a)+l):l>ee(e)?(a=e+1,o=l-ee(e)):(a=e,o=l),{year:a,dayOfYear:o}}function ke(e,t,n){var r,i,a=be(e.year(),t,n),o=Math.floor((e.dayOfYear()-a-1)/7)+1;return o<1?(i=e.year()-1,r=o+Ye(i,t,n)):o>Ye(e.year(),t,n)?(r=o-Ye(e.year(),t,n),i=e.year()+1):(i=e.year(),r=o),{week:r,year:i}}function Ye(e,t,n){var r=be(e,t,n),i=be(e+1,t,n);return(ee(e)-r+i)/7}function xe(e){return ke(e,this._week.dow,this._week.doy).week}function De(){return this._week.dow}function Te(){return this._week.doy}function Se(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function je(e){var t=ke(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Oe(e,t){return"string"!=typeof e?e:isNaN(e)?(e=t.weekdaysParse(e),"number"==typeof e?e:null):parseInt(e,10)}function Ae(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function He(e,t){return e?r(this._weekdays)?this._weekdays[e.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][e.day()]:r(this._weekdays)?this._weekdays:this._weekdays.standalone}function Ee(e){return e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Pe(e){return e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ce(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=f([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?(i=yi.call(this._weekdaysParse,o),-1!==i?i:null):"ddd"===t?(i=yi.call(this._shortWeekdaysParse,o),-1!==i?i:null):(i=yi.call(this._minWeekdaysParse,o),-1!==i?i:null):"dddd"===t?-1!==(i=yi.call(this._weekdaysParse,o))?i:-1!==(i=yi.call(this._shortWeekdaysParse,o))?i:(i=yi.call(this._minWeekdaysParse,o),-1!==i?i:null):"ddd"===t?-1!==(i=yi.call(this._shortWeekdaysParse,o))?i:-1!==(i=yi.call(this._weekdaysParse,o))?i:(i=yi.call(this._minWeekdaysParse,o),-1!==i?i:null):-1!==(i=yi.call(this._minWeekdaysParse,o))?i:-1!==(i=yi.call(this._weekdaysParse,o))?i:(i=yi.call(this._shortWeekdaysParse,o),-1!==i?i:null)}function Ne(e,t,n){var r,i,a;if(this._weekdaysParseExact)return Ce.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=f([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Fe(e){if(!this.isValid())return null!=e?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=Oe(e,this.localeData()),this.add(e-t,"d")):t}function $e(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function Ie(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Ae(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function We(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ue.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Si),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Re(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ue.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ji),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function ze(e){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Ue.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Oi),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ue(){function e(e,t){return t.length-e.length}var t,n,r,i,a,o=[],s=[],u=[],l=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),r=this.weekdaysMin(n,""),i=this.weekdaysShort(n,""),a=this.weekdays(n,""),o.push(r),s.push(i),u.push(a),l.push(r),l.push(i),l.push(a);for(o.sort(e),s.sort(e),u.sort(e),l.sort(e),t=0;t<7;t++)s[t]=K(s[t]),u[t]=K(u[t]),l[t]=K(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Be(){return this.hours()%12||12}function Ve(){return this.hours()||24}function Je(e,t){R(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Ge(e,t){return t._meridiemParse}function qe(e){return"p"===(e+"").toLowerCase().charAt(0)}function Ke(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}function Ze(e){return e?e.toLowerCase().replace("_","-"):e}function Xe(e){for(var t,n,r,i,a=0;a0;){if(r=Qe(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&b(i,n,!0)>=t-1)break;t--}a++}return Ai}function Qe(t){var r=null;if(!Ci[t]&&void 0!==e&&e&&e.exports)try{r=Ai._abbr;n(173)("./"+t),et(r)}catch(e){}return Ci[t]}function et(e,t){var n;return e&&(n=o(t)?rt(e):tt(e,t),n?Ai=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),Ai._abbr}function tt(e,t){if(null!==t){var n,r=Pi;if(t.abbr=e,null!=Ci[e])Y("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=Ci[e]._config;else if(null!=t.parentLocale)if(null!=Ci[t.parentLocale])r=Ci[t.parentLocale]._config;else{if(null==(n=Qe(t.parentLocale)))return Ni[t.parentLocale]||(Ni[t.parentLocale]=[]),Ni[t.parentLocale].push({name:e,config:t}),null;r=n._config}return Ci[e]=new S(T(r,t)),Ni[e]&&Ni[e].forEach(function(e){tt(e.name,e.config)}),et(e),Ci[e]}return delete Ci[e],null}function nt(e,t){if(null!=t){var n,r,i=Pi;r=Qe(e),null!=r&&(i=r._config),t=T(i,t),n=new S(t),n.parentLocale=Ci[e],Ci[e]=n,et(e)}else null!=Ci[e]&&(null!=Ci[e].parentLocale?Ci[e]=Ci[e].parentLocale:null!=Ci[e]&&delete Ci[e]);return Ci[e]}function rt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return Ai;if(!r(e)){if(t=Qe(e))return t;e=[e]}return Xe(e)}function it(){return Hr(Ci)}function at(e){var t,n=e._a;return n&&-2===h(e).overflow&&(t=n[ci]<0||n[ci]>11?ci:n[di]<1||n[di]>le(n[li],n[ci])?di:n[fi]<0||n[fi]>24||24===n[fi]&&(0!==n[pi]||0!==n[hi]||0!==n[_i])?fi:n[pi]<0||n[pi]>59?pi:n[hi]<0||n[hi]>59?hi:n[_i]<0||n[_i]>999?_i:-1,h(e)._overflowDayOfYear&&(tdi)&&(t=di),h(e)._overflowWeeks&&-1===t&&(t=mi),h(e)._overflowWeekday&&-1===t&&(t=vi),h(e).overflow=t),e}function ot(e,t,n){return null!=e?e:null!=t?t:n}function st(e){var n=new Date(t.now());return e._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function ut(e){var t,n,r,i,a,o=[];if(!e._d){for(r=st(e),e._w&&null==e._a[di]&&null==e._a[ci]&<(e),null!=e._dayOfYear&&(a=ot(e._a[li],r[li]),(e._dayOfYear>ee(a)||0===e._dayOfYear)&&(h(e)._overflowDayOfYear=!0),n=Le(a,0,e._dayOfYear),e._a[ci]=n.getUTCMonth(),e._a[di]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=r[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[fi]&&0===e._a[pi]&&0===e._a[hi]&&0===e._a[_i]&&(e._nextDay=!0,e._a[fi]=0),e._d=(e._useUTC?Le:Me).apply(null,o),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[fi]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(h(e).weekdayMismatch=!0)}}function lt(e){var t,n,r,i,a,o,s,u;if(t=e._w,null!=t.GG||null!=t.W||null!=t.E)a=1,o=4,n=ot(t.GG,e._a[li],ke(xt(),1,4).year),r=ot(t.W,1),((i=ot(t.E,1))<1||i>7)&&(u=!0);else{a=e._locale._week.dow,o=e._locale._week.doy;var l=ke(xt(),a,o);n=ot(t.gg,e._a[li],l.year),r=ot(t.w,l.week),null!=t.d?((i=t.d)<0||i>6)&&(u=!0):null!=t.e?(i=t.e+a,(t.e<0||t.e>6)&&(u=!0)):i=a}r<1||r>Ye(n,a,o)?h(e)._overflowWeeks=!0:null!=u?h(e)._overflowWeekday=!0:(s=we(n,r,i,a,o),e._a[li]=s.year,e._dayOfYear=s.dayOfYear)}function ct(e){var t,n,r,i,a,o,s=e._i,u=Fi.exec(s)||$i.exec(s);if(u){for(h(e).iso=!0,t=0,n=Wi.length;t0&&h(e).unusedInput.push(o),s=s.slice(s.indexOf(r)+r.length),l+=r.length),zr[a]?(r?h(e).empty=!1:h(e).unusedTokens.push(a),Q(a,r,e)):e._strict&&!r&&h(e).unusedTokens.push(a);h(e).charsLeftOver=u-l,s.length>0&&h(e).unusedInput.push(s),e._a[fi]<=12&&!0===h(e).bigHour&&e._a[fi]>0&&(h(e).bigHour=void 0),h(e).parsedDateParts=e._a.slice(0),h(e).meridiem=e._meridiem,e._a[fi]=gt(e._locale,e._a[fi],e._meridiem),ut(e),at(e)}function gt(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(r=e.isPM(n),r&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function Mt(e){var t,n,r,i,a;if(0===e._f.length)return h(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;ithis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Jt(){if(!o(this._isDSTShifted))return this._isDSTShifted;var e={};if(v(e,this),e=wt(e),e._a){var t=e._isUTC?f(e._a):xt(e._a);this._isDSTShifted=this.isValid()&&b(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Gt(){return!!this.isValid()&&!this._isUTC}function qt(){return!!this.isValid()&&this._isUTC}function Kt(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Zt(e,t){var n,r,i,a=e,o=null;return Et(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:s(e)?(a={},t?a[t]=e:a.milliseconds=e):(o=Zi.exec(e))?(n="-"===o[1]?-1:1,a={y:0,d:L(o[di])*n,h:L(o[fi])*n,m:L(o[pi])*n,s:L(o[hi])*n,ms:L(Pt(1e3*o[_i]))*n}):(o=Xi.exec(e))?(n="-"===o[1]?-1:(o[1],1),a={y:Xt(o[2],n),M:Xt(o[3],n),w:Xt(o[4],n),d:Xt(o[5],n),h:Xt(o[6],n),m:Xt(o[7],n),s:Xt(o[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(i=en(xt(a.from),xt(a.to)),a={},a.ms=i.milliseconds,a.M=i.months),r=new Ht(a),Et(e)&&c(e,"_locale")&&(r._locale=e._locale),r}function Xt(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Qt(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function en(e,t){var n;return e.isValid()&&t.isValid()?(t=Ft(t,e),e.isBefore(t)?n=Qt(e,t):(n=Qt(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function tn(e,t){return function(n,r){var i,a;return null===r||isNaN(+r)||(Y(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=r,r=a),n="string"==typeof n?+n:n,i=Zt(n,r),nn(this,i,e),this}}function nn(e,n,r,i){var a=n._milliseconds,o=Pt(n._days),s=Pt(n._months);e.isValid()&&(i=null==i||i,s&&he(e,ie(e,"Month")+s*r),o&&ae(e,"Date",ie(e,"Date")+o*r),a&&e._d.setTime(e._d.valueOf()+a*r),i&&t.updateOffset(e,o||s))}function rn(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function an(e,n){var r=e||xt(),i=Ft(r,this).startOf("day"),a=t.calendarFormat(this,i)||"sameElse",o=n&&(x(n[a])?n[a].call(this,r):n[a]);return this.format(o||this.localeData().calendar(a,this,xt(r)))}function on(){return new y(this)}function sn(e,t){var n=g(e)?e:xt(e);return!(!this.isValid()||!n.isValid())&&(t=N(o(t)?"millisecond":t),"millisecond"===t?this.valueOf()>n.valueOf():n.valueOf()9999?B(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):x(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",B(n,"Z")):B(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function vn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="";this.isLocal()||(e=0===this.utcOffset()?"moment.utc":"moment.parseZone",t="Z");var n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i=t+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+i)}function yn(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var n=B(this,e);return this.localeData().postformat(n)}function gn(e,t){return this.isValid()&&(g(e)&&e.isValid()||xt(e).isValid())?Zt({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Mn(e){return this.from(xt(),e)}function Ln(e,t){return this.isValid()&&(g(e)&&e.isValid()||xt(e).isValid())?Zt({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function bn(e){return this.to(xt(),e)}function wn(e){var t;return void 0===e?this._locale._abbr:(t=rt(e),null!=t&&(this._locale=t),this)}function kn(){return this._locale}function Yn(e){switch(e=N(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this}function xn(e){return void 0===(e=N(e))||"millisecond"===e?this:("date"===e&&(e="day"),this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms"))}function Dn(){return this._d.valueOf()-6e4*(this._offset||0)}function Tn(){return Math.floor(this.valueOf()/1e3)}function Sn(){return new Date(this.valueOf())}function jn(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function On(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function An(){return this.isValid()?this.toISOString():null}function Hn(){return _(this)}function En(){return d({},h(this))}function Pn(){return h(this).overflow}function Cn(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Nn(e,t){R(0,[e,e.length],0,t)}function Fn(e){return Rn.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function $n(e){return Rn.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function In(){return Ye(this.year(),1,4)}function Wn(){var e=this.localeData()._week;return Ye(this.year(),e.dow,e.doy)}function Rn(e,t,n,r,i){var a;return null==e?ke(this,r,i).year:(a=Ye(e,r,i),t>a&&(t=a),zn.call(this,e,t,n,r,i))}function zn(e,t,n,r,i){var a=we(e,t,n,r,i),o=Le(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function Un(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}function Bn(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}function Vn(e,t){t[_i]=L(1e3*("0."+e))}function Jn(){return this._isUTC?"UTC":""}function Gn(){return this._isUTC?"Coordinated Universal Time":""}function qn(e){return xt(1e3*e)}function Kn(){return xt.apply(null,arguments).parseZone()}function Zn(e){return e}function Xn(e,t,n,r){var i=rt(),a=f().set(r,t);return i[n](a,e)}function Qn(e,t,n){if(s(e)&&(t=e,e=void 0),e=e||"",null!=t)return Xn(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=Xn(e,r,n,"month");return i}function er(e,t,n,r){"boolean"==typeof e?(s(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,s(t)&&(n=t,t=void 0),t=t||"");var i=rt(),a=e?i._week.dow:0;if(null!=n)return Xn(t,(n+a)%7,r,"day");var o,u=[];for(o=0;o<7;o++)u[o]=Xn(t,(o+a)%7,r,"day");return u}function tr(e,t){return Qn(e,t,"months")}function nr(e,t){return Qn(e,t,"monthsShort")}function rr(e,t,n){return er(e,t,n,"weekdays")}function ir(e,t,n){return er(e,t,n,"weekdaysShort")}function ar(e,t,n){return er(e,t,n,"weekdaysMin")}function or(){var e=this._data;return this._milliseconds=la(this._milliseconds),this._days=la(this._days),this._months=la(this._months),e.milliseconds=la(e.milliseconds),e.seconds=la(e.seconds),e.minutes=la(e.minutes),e.hours=la(e.hours),e.months=la(e.months),e.years=la(e.years),this}function sr(e,t,n,r){var i=Zt(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function ur(e,t){return sr(this,e,t,1)}function lr(e,t){return sr(this,e,t,-1)}function cr(e){return e<0?Math.floor(e):Math.ceil(e)}function dr(){var e,t,n,r,i,a=this._milliseconds,o=this._days,s=this._months,u=this._data;return a>=0&&o>=0&&s>=0||a<=0&&o<=0&&s<=0||(a+=864e5*cr(pr(s)+o),o=0,s=0),u.milliseconds=a%1e3,e=M(a/1e3),u.seconds=e%60,t=M(e/60),u.minutes=t%60,n=M(t/60),u.hours=n%24,o+=M(n/24),i=M(fr(o)),s+=i,o-=cr(pr(i)),r=M(s/12),s%=12,u.days=o,u.months=s,u.years=r,this}function fr(e){return 4800*e/146097}function pr(e){return 146097*e/4800}function hr(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=N(e))||"year"===e)return t=this._days+r/864e5,n=this._months+fr(t),"month"===e?n:n/12;switch(t=this._days+Math.round(pr(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function _r(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*L(this._months/12):NaN}function mr(e){return function(){return this.as(e)}}function vr(){return Zt(this)}function yr(e){return e=N(e),this.isValid()?this[e+"s"]():NaN}function gr(e){return function(){return this.isValid()?this._data[e]:NaN}}function Mr(){return M(this.days()/7)}function Lr(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function br(e,t,n){var r=Zt(e).abs(),i=Ya(r.as("s")),a=Ya(r.as("m")),o=Ya(r.as("h")),s=Ya(r.as("d")),u=Ya(r.as("M")),l=Ya(r.as("y")),c=i<=xa.ss&&["s",i]||i0,c[4]=n,Lr.apply(null,c)}function wr(e){return void 0===e?Ya:"function"==typeof e&&(Ya=e,!0)}function kr(e,t){return void 0!==xa[e]&&(void 0===t?xa[e]:(xa[e]=t,"s"===e&&(xa.ss=t-1),!0))}function Yr(e){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),n=br(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)}function xr(e){return(e>0)-(e<0)||+e}function Dr(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r=Da(this._milliseconds)/1e3,i=Da(this._days),a=Da(this._months);e=M(r/60),t=M(e/60),r%=60,e%=60,n=M(a/12),a%=12;var o=n,s=a,u=i,l=t,c=e,d=r?r.toFixed(3).replace(/\.?0+$/,""):"",f=this.asSeconds();if(!f)return"P0D";var p=f<0?"-":"",h=xr(this._months)!==xr(f)?"-":"",_=xr(this._days)!==xr(f)?"-":"",m=xr(this._milliseconds)!==xr(f)?"-":"";return p+"P"+(o?h+o+"Y":"")+(s?h+s+"M":"")+(u?_+u+"D":"")+(l||c||d?"T":"")+(l?m+l+"H":"")+(c?m+c+"M":"")+(d?m+d+"S":"")}var Tr,Sr;Sr=Array.prototype.some?Array.prototype.some:function(e){for(var t=Object(this),n=t.length>>>0,r=0;r68?1900:2e3)};var yi,gi=re("FullYear",!0);yi=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;tthis?this:e:m()}),Gi=function(){return Date.now?Date.now():+new Date},qi=["year","quarter","month","week","day","hour","minute","second","millisecond"];Ct("Z",":"),Ct("ZZ",""),J("Z",ii),J("ZZ",ii),Z(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Nt(ii,e)});var Ki=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var Zi=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Xi=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Zt.fn=Ht.prototype,Zt.invalid=At;var Qi=tn(1,"add"),ea=tn(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ta=k("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});R(0,["gg",2],0,function(){return this.weekYear()%100}),R(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Nn("gggg","weekYear"),Nn("ggggg","weekYear"),Nn("GGGG","isoWeekYear"),Nn("GGGGG","isoWeekYear"),C("weekYear","gg"),C("isoWeekYear","GG"),$("weekYear",1),$("isoWeekYear",1),J("G",ni),J("g",ni),J("GG",qr,Br),J("gg",qr,Br),J("GGGG",Qr,Jr),J("gggg",Qr,Jr),J("GGGGG",ei,Gr),J("ggggg",ei,Gr),X(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=L(e)}),X(["gg","GG"],function(e,n,r,i){n[i]=t.parseTwoDigitYear(e)}),R("Q",0,"Qo","quarter"),C("quarter","Q"),$("quarter",7),J("Q",Ur),Z("Q",function(e,t){t[ci]=3*(L(e)-1)}),R("D",["DD",2],"Do","date"),C("date","D"),$("date",9),J("D",qr),J("DD",qr,Br),J("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),Z(["D","DD"],di),Z("Do",function(e,t){t[di]=L(e.match(qr)[0])});var na=re("Date",!0);R("DDD",["DDDD",3],"DDDo","dayOfYear"),C("dayOfYear","DDD"),$("dayOfYear",4),J("DDD",Xr),J("DDDD",Vr),Z(["DDD","DDDD"],function(e,t,n){n._dayOfYear=L(e)}),R("m",["mm",2],0,"minute"),C("minute","m"),$("minute",14),J("m",qr),J("mm",qr,Br),Z(["m","mm"],pi);var ra=re("Minutes",!1);R("s",["ss",2],0,"second"),C("second","s"),$("second",15),J("s",qr),J("ss",qr,Br),Z(["s","ss"],hi);var ia=re("Seconds",!1);R("S",0,0,function(){return~~(this.millisecond()/100)}),R(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),R(0,["SSS",3],0,"millisecond"),R(0,["SSSS",4],0,function(){return 10*this.millisecond()}),R(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),R(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),R(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),R(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),R(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),C("millisecond","ms"),$("millisecond",16),J("S",Xr,Ur),J("SS",Xr,Br),J("SSS",Xr,Vr);var aa;for(aa="SSSS";aa.length<=9;aa+="S")J(aa,ti);for(aa="S";aa.length<=9;aa+="S")Z(aa,Vn);var oa=re("Milliseconds",!1);R("z",0,0,"zoneAbbr"),R("zz",0,0,"zoneName");var sa=y.prototype;sa.add=Qi,sa.calendar=an,sa.clone=on,sa.diff=pn,sa.endOf=xn,sa.format=yn,sa.from=gn,sa.fromNow=Mn,sa.to=Ln,sa.toNow=bn,sa.get=oe,sa.invalidAt=Pn,sa.isAfter=sn,sa.isBefore=un,sa.isBetween=ln,sa.isSame=cn,sa.isSameOrAfter=dn,sa.isSameOrBefore=fn,sa.isValid=Hn,sa.lang=ta,sa.locale=wn,sa.localeData=kn,sa.max=Ji,sa.min=Vi,sa.parsingFlags=En,sa.set=se,sa.startOf=Yn,sa.subtract=ea,sa.toArray=jn,sa.toObject=On,sa.toDate=Sn,sa.toISOString=mn,sa.inspect=vn,sa.toJSON=An,sa.toString=_n,sa.unix=Tn,sa.valueOf=Dn,sa.creationData=Cn,sa.year=gi,sa.isLeapYear=ne,sa.weekYear=Fn,sa.isoWeekYear=$n,sa.quarter=sa.quarters=Un,sa.month=_e,sa.daysInMonth=me,sa.week=sa.weeks=Se,sa.isoWeek=sa.isoWeeks=je,sa.weeksInYear=Wn,sa.isoWeeksInYear=In,sa.date=na,sa.day=sa.days=Fe,sa.weekday=$e,sa.isoWeekday=Ie,sa.dayOfYear=Bn,sa.hour=sa.hours=Ei,sa.minute=sa.minutes=ra,sa.second=sa.seconds=ia,sa.millisecond=sa.milliseconds=oa,sa.utcOffset=It,sa.utc=Rt,sa.local=zt,sa.parseZone=Ut,sa.hasAlignedHourOffset=Bt,sa.isDST=Vt,sa.isLocal=Gt,sa.isUtcOffset=qt,sa.isUtc=Kt,sa.isUTC=Kt,sa.zoneAbbr=Jn,sa.zoneName=Gn,sa.dates=k("dates accessor is deprecated. Use date instead.",na),sa.months=k("months accessor is deprecated. Use month instead",_e),sa.years=k("years accessor is deprecated. Use year instead",gi),sa.zone=k("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Wt),sa.isDSTShifted=k("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Jt);var ua=S.prototype;ua.calendar=j,ua.longDateFormat=O,ua.invalidDate=A,ua.ordinal=H,ua.preparse=Zn,ua.postformat=Zn,ua.relativeTime=E,ua.pastFuture=P,ua.set=D,ua.months=ce,ua.monthsShort=de,ua.monthsParse=pe,ua.monthsRegex=ye,ua.monthsShortRegex=ve,ua.week=xe,ua.firstDayOfYear=Te,ua.firstDayOfWeek=De,ua.weekdays=He,ua.weekdaysMin=Pe,ua.weekdaysShort=Ee,ua.weekdaysParse=Ne,ua.weekdaysRegex=We,ua.weekdaysShortRegex=Re,ua.weekdaysMinRegex=ze,ua.isPM=qe,ua.meridiem=Ke,et("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===L(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),t.lang=k("moment.lang is deprecated. Use moment.locale instead.",et),t.langData=k("moment.langData is deprecated. Use moment.localeData instead.",rt);var la=Math.abs,ca=mr("ms"),da=mr("s"),fa=mr("m"),pa=mr("h"),ha=mr("d"),_a=mr("w"),ma=mr("M"),va=mr("y"),ya=gr("milliseconds"),ga=gr("seconds"),Ma=gr("minutes"),La=gr("hours"),ba=gr("days"),wa=gr("months"),ka=gr("years"),Ya=Math.round,xa={ss:44,s:45,m:45,h:22,d:26,M:11},Da=Math.abs,Ta=Ht.prototype;return Ta.isValid=Ot,Ta.abs=or,Ta.add=ur,Ta.subtract=lr,Ta.as=hr,Ta.asMilliseconds=ca,Ta.asSeconds=da,Ta.asMinutes=fa,Ta.asHours=pa,Ta.asDays=ha,Ta.asWeeks=_a,Ta.asMonths=ma,Ta.asYears=va,Ta.valueOf=_r,Ta._bubble=dr,Ta.clone=vr,Ta.get=yr,Ta.milliseconds=ya,Ta.seconds=ga,Ta.minutes=Ma,Ta.hours=La,Ta.days=ba,Ta.weeks=Mr,Ta.months=wa,Ta.years=ka,Ta.humanize=Yr,Ta.toISOString=Dr,Ta.toString=Dr,Ta.toJSON=Dr,Ta.locale=wn,Ta.localeData=kn,Ta.toIsoString=k("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Dr),Ta.lang=ta,R("X",0,0,"unix"),R("x",0,0,"valueOf"),J("x",ni),J("X",ai),Z("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),Z("x",function(e,t,n){n._d=new Date(L(e))}),t.version="2.22.2",function(e){Tr=e}(xt),t.fn=sa,t.min=Tt,t.max=St,t.now=Gi,t.utc=f,t.unix=qn,t.months=tr,t.isDate=u,t.locale=et,t.invalid=m,t.duration=Zt,t.isMoment=g,t.weekdays=rr,t.parseZone=Kn,t.localeData=rt,t.isDuration=Et,t.monthsShort=nr,t.weekdaysMin=ar,t.defineLocale=tt,t.updateLocale=nt,t.locales=it,t.weekdaysShort=ir,t.normalizeUnits=N,t.relativeTimeRounding=wr,t.relativeTimeThreshold=kr,t.calendarFormat=rn,t.prototype=sa,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},t})}).call(t,n(16)(e))},function(e,t,n){"use strict";function r(e){return"[object Array]"===k.call(e)}function i(e){return"[object ArrayBuffer]"===k.call(e)}function a(e){return"undefined"!=typeof FormData&&e instanceof FormData}function o(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer}function s(e){return"string"==typeof e}function u(e){return"number"==typeof e}function l(e){return void 0===e}function c(e){return null!==e&&"object"==typeof e}function d(e){return"[object Date]"===k.call(e)}function f(e){return"[object File]"===k.call(e)}function p(e){return"[object Blob]"===k.call(e)}function h(e){return"[object Function]"===k.call(e)}function _(e){return c(e)&&h(e.pipe)}function m(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams}function v(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}function y(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}function g(e,t){if(null!==e&&void 0!==e)if("object"!=typeof e&&(e=[e]),r(e))for(var n=0,i=e.length;nn.parts.length&&(r.parts.length=n.parts.length)}else{for(var o=[],i=0;i=200&&e<300}};s.headers={common:{Accept:"application/json, text/plain, */*"}},i.forEach(["delete","get","head"],function(e){s.headers[e]={}}),i.forEach(["post","put","patch"],function(e){s.headers[e]=i.merge(o)}),e.exports=s}).call(t,n(8))},function(e,t,n){!function(t,n){e.exports=n()}(window,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var i in e)t.d(r,i,function(t){return e[t]}.bind(null,i));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/dist/",t(t.s=327)}([function(e,t,n){var r=n(2),i=n(8),a=n(13),o=n(10),s=n(21),u=function(e,t,n){var l,c,d,f,p=e&u.F,h=e&u.G,_=e&u.S,m=e&u.P,v=e&u.B,y=h?r:_?r[t]||(r[t]={}):(r[t]||{}).prototype,g=h?i:i[t]||(i[t]={}),M=g.prototype||(g.prototype={});for(l in h&&(n=t),n)d=((c=!p&&y&&void 0!==y[l])?y:n)[l],f=v&&c?s(d,r):m&&"function"==typeof d?s(Function.call,d):d,y&&o(y,l,d,e&u.U),g[l]!=d&&a(g,l,f),m&&M[l]!=d&&(M[l]=d)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(3);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){var r=n(66)("wks"),i=n(31),a=n(2).Symbol,o="function"==typeof a;(e.exports=function(e){return r[e]||(r[e]=o&&a[e]||(o?a:i)("Symbol."+e))}).store=r},function(e,t,n){var r=n(4),i=n(92),a=n(27),o=Object.defineProperty;t.f=n(7)?Object.defineProperty:function(e,t,n){if(r(e),t=a(t,!0),r(n),i)try{return o(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){e.exports=!n(1)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(25),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(2),i=n(13),a=n(12),o=n(31)("src"),s=Function.toString,u=(""+s).split("toString");n(8).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var l="function"==typeof n;l&&(a(n,"name")||i(n,"name",t)),e[t]!==n&&(l&&(a(n,o)||i(n,o,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[o]||s.call(this)})},function(e,t,n){var r=n(0),i=n(1),a=n(24),o=/"/g,s=function(e,t,n,r){var i=String(a(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(r).replace(o,""")+'"'),s+">"+i+""};e.exports=function(e,t){var n={};n[e]=t(s),r(r.P+r.F*i(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",n)}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(6),i=n(30);e.exports=n(7)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(45),i=n(24);e.exports=function(e){return r(i(e))}},function(e,t,n){var r=n(24);e.exports=function(e){return Object(r(e))}},function(e,t,n){"use strict";function r(e){return"[object Array]"===l.call(e)}function i(e){return null!==e&&"object"==typeof e}function a(e){return"[object Function]"===l.call(e)}function o(e,t){if(null!==e&&void 0!==e)if("object"!=typeof e&&(e=[e]),r(e))for(var n=0,i=e.length;nL;L++)if((f||L in y)&&(m=g(_=y[L],L,v),e))if(n)b[L]=m;else if(m)switch(e){case 3:return!0;case 5:return _;case 6:return L;case 2:b.push(_)}else if(c)return!1;return d?-1:l||c?c:b}}},function(e,t,n){var r=n(22);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){"use strict";if(n(7)){var r=n(32),i=n(2),a=n(1),o=n(0),s=n(60),u=n(89),l=n(21),c=n(42),d=n(30),f=n(13),p=n(43),h=n(25),_=n(9),m=n(117),v=n(34),y=n(27),g=n(12),M=n(52),L=n(3),b=n(15),w=n(82),k=n(35),Y=n(37),x=n(36).f,D=n(84),T=n(31),S=n(5),j=n(20),O=n(50),A=n(57),H=n(86),E=n(39),P=n(54),C=n(41),N=n(85),F=n(109),$=n(6),I=n(18),W=$.f,R=I.f,z=i.RangeError,U=i.TypeError,B=i.Uint8Array,V=Array.prototype,J=u.ArrayBuffer,G=u.DataView,q=j(0),K=j(2),Z=j(3),X=j(4),Q=j(5),ee=j(6),te=O(!0),ne=O(!1),re=H.values,ie=H.keys,ae=H.entries,oe=V.lastIndexOf,se=V.reduce,ue=V.reduceRight,le=V.join,ce=V.sort,de=V.slice,fe=V.toString,pe=V.toLocaleString,he=S("iterator"),_e=S("toStringTag"),me=T("typed_constructor"),ve=T("def_constructor"),ye=s.CONSTR,ge=s.TYPED,Me=s.VIEW,Le=j(1,function(e,t){return xe(A(e,e[ve]),t)}),be=a(function(){return 1===new B(new Uint16Array([1]).buffer)[0]}),we=!!B&&!!B.prototype.set&&a(function(){new B(1).set({})}),ke=function(e,t){var n=h(e);if(n<0||n%t)throw z("Wrong offset!");return n},Ye=function(e){if(L(e)&&ge in e)return e;throw U(e+" is not a typed array!")},xe=function(e,t){if(!(L(e)&&me in e))throw U("It is not a typed array constructor!");return new e(t)},De=function(e,t){return Te(A(e,e[ve]),t)},Te=function(e,t){for(var n=0,r=t.length,i=xe(e,r);r>n;)i[n]=t[n++];return i},Se=function(e,t,n){W(e,t,{get:function(){return this._d[n]}})},je=function(e){var t,n,r,i,a,o,s=b(e),u=arguments.length,c=u>1?arguments[1]:void 0,d=void 0!==c,f=D(s);if(void 0!=f&&!w(f)){for(o=f.call(s),r=[],t=0;!(a=o.next()).done;t++)r.push(a.value);s=r}for(d&&u>2&&(c=l(c,arguments[2],2)),t=0,n=_(s.length),i=xe(this,n);n>t;t++)i[t]=d?c(s[t],t):s[t];return i},Oe=function(){for(var e=0,t=arguments.length,n=xe(this,t);t>e;)n[e]=arguments[e++];return n},Ae=!!B&&a(function(){pe.call(new B(1))}),He=function(){return pe.apply(Ae?de.call(Ye(this)):Ye(this),arguments)},Ee={copyWithin:function(e,t){return F.call(Ye(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return X(Ye(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return N.apply(Ye(this),arguments)},filter:function(e){return De(this,K(Ye(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return Q(Ye(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(Ye(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){q(Ye(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ne(Ye(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(Ye(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return le.apply(Ye(this),arguments)},lastIndexOf:function(e){return oe.apply(Ye(this),arguments)},map:function(e){return Le(Ye(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return se.apply(Ye(this),arguments)},reduceRight:function(e){return ue.apply(Ye(this),arguments)},reverse:function(){for(var e,t=Ye(this).length,n=Math.floor(t/2),r=0;r1?arguments[1]:void 0)},sort:function(e){return ce.call(Ye(this),e)},subarray:function(e,t){var n=Ye(this),r=n.length,i=v(e,r);return new(A(n,n[ve]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,_((void 0===t?r:v(t,r))-i))}},Pe=function(e,t){return De(this,de.call(Ye(this),e,t))},Ce=function(e){Ye(this);var t=ke(arguments[1],1),n=this.length,r=b(e),i=_(r.length),a=0;if(i+t>n)throw z("Wrong length!");for(;a255?255:255&r),i.v[p](n*t+i.o,r,be)}(this,n,e)},enumerable:!0})};g?(h=n(function(e,n,r,i){c(e,h,l,"_d");var a,o,s,u,d=0,p=0;if(L(n)){if(!(n instanceof J||"ArrayBuffer"==(u=M(n))||"SharedArrayBuffer"==u))return ge in n?Te(h,n):je.call(h,n);a=n,p=ke(r,t);var v=n.byteLength;if(void 0===i){if(v%t)throw z("Wrong length!");if((o=v-p)<0)throw z("Wrong length!")}else if((o=_(i)*t)+p>v)throw z("Wrong length!");s=o/t}else s=m(n),a=new J(o=s*t);for(f(e,"_d",{b:a,o:p,l:o,e:s,v:new G(a)});d0&&n.unshift(t.target),e.contains(t.target)||function(e,t){if(!e||!t)return!1;for(var n=0,r=t.length;ndocument.F=Object<\/script>"),e.close(),u=e.F;r--;)delete u.prototype[a[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[o]=e):n=u(),void 0===t?n:i(n,t)}},function(e,t,n){var r=n(94),i=n(69).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){var r=n(12),i=n(15),a=n(68)("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},function(e,t,n){var r=n(6).f,i=n(12),a=n(5)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},function(e,t){e.exports={}},function(e,t,n){var r=n(5)("unscopables"),i=Array.prototype;void 0==i[r]&&n(13)(i,r,{}),e.exports=function(e){i[r][e]=!0}},function(e,t,n){"use strict";var r=n(2),i=n(6),a=n(7),o=n(5)("species");e.exports=function(e){var t=r[e];a&&t&&!t[o]&&i.f(t,o,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var r=n(10);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},function(e,t,n){var r=n(3);e.exports=function(e,t){if(!r(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,n){var r=n(23);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=function(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}(r);return[n].concat(r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"})).concat([i]).join("\n")}return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},i=0;in.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(i=0;i3?0:(e-e%10!=10)*e%10]}};var y={D:function(e){return e.getDate()},DD:function(e){return s(e.getDate())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return e.getDay()},dd:function(e){return s(e.getDay())},ddd:function(e,t){return t.dayNamesShort[e.getDay()]},dddd:function(e,t){return t.dayNames[e.getDay()]},M:function(e){return e.getMonth()+1},MM:function(e){return s(e.getMonth()+1)},MMM:function(e,t){return t.monthNamesShort[e.getMonth()]},MMMM:function(e,t){return t.monthNames[e.getMonth()]},YY:function(e){return String(e.getFullYear()).substr(2)},YYYY:function(e){return s(e.getFullYear(),4)},h:function(e){return e.getHours()%12||12},hh:function(e){return s(e.getHours()%12||12)},H:function(e){return e.getHours()},HH:function(e){return s(e.getHours())},m:function(e){return e.getMinutes()},mm:function(e){return s(e.getMinutes())},s:function(e){return e.getSeconds()},ss:function(e){return s(e.getSeconds())},S:function(e){return Math.round(e.getMilliseconds()/100)},SS:function(e){return s(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return s(e.getMilliseconds(),3)},a:function(e,t){return e.getHours()<12?t.amPm[0]:t.amPm[1]},A:function(e,t){return e.getHours()<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},ZZ:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+s(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)}},g={D:[c,function(e,t){e.day=t}],Do:[new RegExp(c.source+d.source),function(e,t){e.day=parseInt(t,10)}],M:[c,function(e,t){e.month=t-1}],YY:[c,function(e,t){var n=+(""+(new Date).getFullYear()).substr(0,2);e.year=""+(t>68?n-1:n)+t}],h:[c,function(e,t){e.hour=t}],m:[c,function(e,t){e.minute=t}],s:[c,function(e,t){e.second=t}],YYYY:[/\d{4}/,function(e,t){e.year=t}],S:[/\d/,function(e,t){e.millisecond=100*t}],SS:[/\d{2}/,function(e,t){e.millisecond=10*t}],SSS:[/\d{3}/,function(e,t){e.millisecond=t}],d:[c,p],ddd:[d,p],MMM:[d,o("monthNamesShort")],MMMM:[d,o("monthNames")],a:[d,function(e,t,n){var r=t.toLowerCase();r===n.amPm[0]?e.isPm=!1:r===n.amPm[1]&&(e.isPm=!0)}],ZZ:[/([\+\-]\d\d:?\d\d|Z)/,function(e,t){"Z"===t&&(t="+00:00");var n,r=(t+"").match(/([\+\-]|\d\d)/gi);r&&(n=60*r[1]+parseInt(r[2],10),e.timezoneOffset="+"===r[0]?n:-n)}]};g.dd=g.d,g.dddd=g.ddd,g.DD=g.D,g.mm=g.m,g.hh=g.H=g.HH=g.h,g.MM=g.M,g.ss=g.s,g.A=g.a,u.masks={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},u.format=function(e,t,n){var r=n||u.i18n;if("number"==typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date in fecha.format");var i=[];return(t=(t=(t=u.masks[t]||t||u.masks.default).replace(f,function(e,t){return i.push(t),"??"})).replace(l,function(t){return t in y?y[t](e,r):t.slice(1,t.length-1)})).replace(/\?\?/g,function(){return i.shift()})},u.parse=function(e,t,n){var r=n||u.i18n;if("string"!=typeof t)throw new Error("Invalid format in fecha.parse");if(t=u.masks[t]||t,e.length>1e3)return!1;var i=!0,a={};if(t.replace(l,function(t){if(g[t]){var n=g[t],o=e.search(n[0]);~o?e.replace(n[0],function(t){return n[1](a,t,r),e=e.substr(o+t.length),t}):i=!1}return g[t]?"":t.slice(1,t.length-1)}),!i)return!1;var o,s=new Date;return!0===a.isPm&&null!=a.hour&&12!=+a.hour?a.hour=+a.hour+12:!1===a.isPm&&12==+a.hour&&(a.hour=0),null!=a.timezoneOffset?(a.minute=+(a.minute||0)-+a.timezoneOffset,o=new Date(Date.UTC(a.year||s.getFullYear(),a.month||0,a.day||1,a.hour||0,a.minute||0,a.second||0,a.millisecond||0))):o=new Date(a.year||s.getFullYear(),a.month||0,a.day||1,a.hour||0,a.minute||0,a.second||0,a.millisecond||0),o},void 0!==e&&e.exports?e.exports=u:void 0===(r=function(){return u}.call(t,n,t,e))||(e.exports=r)}()},function(e,t){function n(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}}var r=/^(attrs|props|on|nativeOn|class|style|hook)$/;e.exports=function(e){return e.reduce(function(e,t){var i,a,o,s,u;for(o in t)if(i=e[o],a=t[o],i&&r.test(o))if("class"===o&&("string"==typeof i&&(u=i,e[o]=i={},i[u]=!0),"string"==typeof a&&(u=a,t[o]=a={},a[u]=!0)),"on"===o||"nativeOn"===o||"hook"===o)for(s in a)i[s]=n(i[s],a[s]);else if(Array.isArray(i))e[o]=i.concat(a);else if(Array.isArray(a))e[o]=[i].concat(a);else for(s in a)i[s]=a[s];else e[o]=t[o];return e},{})}},function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},i=0;in.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(i=0;i=new Date(e[0]).getTime()}function o(e){var t=(e||"").split(":");return t.length>=2?{hours:parseInt(t[0],10),minutes:parseInt(t[1],10)}:null}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"24",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"a",r=e.hours,i=(r=(r="24"===t?r:r%12||12)<10?"0"+r:r)+":"+(e.minutes<10?"0"+e.minutes:e.minutes);if("12"===t){var a=e.hours>=12?"pm":"am";"A"===n&&(a=a.toUpperCase()),i=i+" "+a}return i}function u(e,t){try{return p.a.format(new Date(e),t)}catch(e){return""}}function l(e,t){if(t){for(var n=[],r=t.offsetParent;r&&e!==r&&e.contains(r);)n.push(r),r=r.offsetParent;var i=t.offsetTop+n.reduce(function(e,t){return e+t.offsetTop},0),a=i+t.offsetHeight,o=e.scrollTop,s=o+e.clientHeight;is&&(e.scrollTop=a-e.clientHeight)}else e.scrollTop=0}function c(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t=1&&e<=7}},disabledDate:{type:Function,default:function(){return!1}}},methods:{selectDate:function(e){var t=e.year,n=e.month,r=e.day,i=new Date(t,n,r);this.disabledDate(i)||this.$emit("select",i)},getDays:function(e){var t=this.t("days"),n=parseInt(e,10);return t.concat(t).slice(n,n+7)},getDates:function(e,t,n){var r=[],i=new Date(e,t);i.setDate(0);for(var a=(i.getDay()+7-n)%7+1,o=i.getDate()-(a-1),s=0;sthis.calendarMonth?i.push("next-month"):i.push("cur-month"),a===o&&i.push("today"),this.disabledDate(a)&&i.push("disabled"),s&&(a===s?i.push("actived"):u&&a<=s?i.push("inrange"):l&&a>=s&&i.push("inrange")),i},getCellTitle:function(e){var t=e.year,n=e.month,r=e.day;return u(new Date(t,n,r),this.dateFormat)}},render:function(e){var t=this,n=this.getDays(this.firstDayOfWeek).map(function(t){return e("th",[t])}),r=this.getDates(this.calendarYear,this.calendarMonth,this.firstDayOfWeek),i=Array.apply(null,{length:6}).map(function(n,i){var a=r.slice(7*i,7*i+7).map(function(n){var r={class:t.getCellClasses(n)};return e("td",g()([{class:"cell"},r,{attrs:{title:t.getCellTitle(n)},on:{click:t.selectDate.bind(t,n)}}]),[n.day])});return e("tr",[a])});return e("table",{class:"mx-panel mx-panel-date"},[e("thead",[e("tr",[n])]),e("tbody",[i])])}},PanelYear:{name:"panelYear",props:{value:null,firstYear:Number,disabledYear:Function},methods:{isDisabled:function(e){return!("function"!=typeof this.disabledYear||!this.disabledYear(e))},selectYear:function(e){this.isDisabled(e)||this.$emit("select",e)}},render:function(e){var t=this,n=10*Math.floor(this.firstYear/10),r=this.value&&new Date(this.value).getFullYear(),i=Array.apply(null,{length:10}).map(function(i,a){var o=n+a;return e("span",{class:{cell:!0,actived:r===o,disabled:t.isDisabled(o)},on:{click:t.selectYear.bind(t,o)}},[o])});return e("div",{class:"mx-panel mx-panel-year"},[i])}},PanelMonth:{name:"panelMonth",mixins:[v],props:{value:null,calendarYear:{default:(new Date).getFullYear()},disabledMonth:Function},methods:{isDisabled:function(e){return!("function"!=typeof this.disabledMonth||!this.disabledMonth(e))},selectMonth:function(e){this.isDisabled(e)||this.$emit("select",e)}},render:function(e){var t=this,n=this.t("months"),r=this.value&&new Date(this.value).getFullYear(),i=this.value&&new Date(this.value).getMonth();return n=n.map(function(n,a){return e("span",{class:{cell:!0,actived:r===t.calendarYear&&i===a,disabled:t.isDisabled(a)},on:{click:t.selectMonth.bind(t,a)}},[n])}),e("div",{class:"mx-panel mx-panel-month"},[n])}},PanelTime:{name:"panelTime",props:{timePickerOptions:{type:[Object,Function],default:function(){return null}},minuteStep:{type:Number,default:0,validator:function(e){return e>=0&&e<=60}},value:null,timeType:{type:Array,default:function(){return["24","a"]}},disabledTime:Function},computed:{currentHours:function(){return this.value?new Date(this.value).getHours():0},currentMinutes:function(){return this.value?new Date(this.value).getMinutes():0},currentSeconds:function(){return this.value?new Date(this.value).getSeconds():0}},methods:{stringifyText:function(e){return("00"+e).slice(String(e).length)},selectTime:function(e){"function"==typeof this.disabledTime&&this.disabledTime(e)||this.$emit("select",new Date(e))},pickTime:function(e){"function"==typeof this.disabledTime&&this.disabledTime(e)||this.$emit("pick",new Date(e))},getTimeSelectOptions:function(){var e=[],t=this.timePickerOptions;if(!t)return[];if("function"==typeof t)return t()||[];var n=o(t.start),r=o(t.end),i=o(t.step);if(n&&r&&i)for(var a=n.minutes+60*n.hours,u=r.minutes+60*r.hours,l=i.minutes+60*i.hours,d=Math.floor((u-a)/l),f=0;f<=d;f++){var p=a+f*l,h={hours:Math.floor(p/60),minutes:p%60};e.push({value:h,label:s.apply(void 0,[h].concat(c(this.timeType)))})}return e}},render:function(e){var t=this,n=new Date(this.value),r="function"==typeof this.disabledTime&&this.disabledTime,i=this.getTimeSelectOptions();if(Array.isArray(i)&&i.length)return i=i.map(function(i){var a=i.value.hours,o=i.value.minutes,s=new Date(n).setHours(a,o,0);return e("li",{class:{"mx-time-picker-item":!0,cell:!0,actived:a===t.currentHours&&o===t.currentMinutes,disabled:r&&r(s)},on:{click:t.pickTime.bind(t,s)}},[i.label])}),e("div",{class:"mx-panel mx-panel-time"},[e("ul",{class:"mx-time-list"},[i])]);var a=Array.apply(null,{length:24}).map(function(i,a){var o=new Date(n).setHours(a);return e("li",{class:{cell:!0,actived:a===t.currentHours,disabled:r&&r(o)},on:{click:t.selectTime.bind(t,o)}},[t.stringifyText(a)])}),o=this.minuteStep||1,s=parseInt(60/o),u=Array.apply(null,{length:s}).map(function(i,a){var s=a*o,u=new Date(n).setMinutes(s);return e("li",{class:{cell:!0,actived:s===t.currentMinutes,disabled:r&&r(u)},on:{click:t.selectTime.bind(t,u)}},[t.stringifyText(s)])}),l=Array.apply(null,{length:60}).map(function(i,a){var o=new Date(n).setSeconds(a);return e("li",{class:{cell:!0,actived:a===t.currentSeconds,disabled:r&&r(o)},on:{click:t.selectTime.bind(t,o)}},[t.stringifyText(a)])}),c=[a,u];return 0===this.minuteStep&&c.push(l),c=c.map(function(t){return e("ul",{class:"mx-time-list",style:{width:100/c.length+"%"}},[t])}),e("div",{class:"mx-panel mx-panel-time"},[c])}}},mixins:[v,{methods:{dispatch:function(e,t,n){for(var r=this.$parent||this.$root,i=r.$options.name;r&&(!i||i!==e);)(r=r.$parent)&&(i=r.$options.name);i&&i===e&&(r=r||this).$emit.apply(r,[t].concat(n))}}}],props:{value:{default:null,validator:function(e){return null===e||i(e)}},startAt:null,endAt:null,visible:{type:Boolean,default:!1},type:{type:String,default:"date"},dateFormat:{type:String,default:"YYYY-MM-DD"},firstDayOfWeek:{default:7,type:Number,validator:function(e){return e>=1&&e<=7}},notBefore:{default:null,validator:function(e){return!e||i(e)}},notAfter:{default:null,validator:function(e){return!e||i(e)}},disabledDays:{type:[Array,Function],default:function(){return[]}},minuteStep:{type:Number,default:0,validator:function(e){return e>=0&&e<=60}},timePickerOptions:{type:[Object,Function],default:function(){return null}}},data:function(){var e=new Date,t=e.getFullYear();return{panel:"NONE",dates:[],calendarMonth:e.getMonth(),calendarYear:t,firstYear:10*Math.floor(t/10)}},computed:{now:{get:function(){return new Date(this.calendarYear,this.calendarMonth).getTime()},set:function(e){var t=new Date(e);this.calendarYear=t.getFullYear(),this.calendarMonth=t.getMonth()}},timeType:function(){return[/h+/.test(this.$parent.format)?"12":"24",/A/.test(this.$parent.format)?"A":"a"]},timeHeader:function(){return"time"===this.type?this.$parent.format:this.value&&u(this.value,this.dateFormat)},yearHeader:function(){return this.firstYear+" ~ "+(this.firstYear+10)},months:function(){return this.t("months")},notBeforeTime:function(){return this.getCriticalTime(this.notBefore)},notAfterTime:function(){return this.getCriticalTime(this.notAfter)}},watch:{value:{immediate:!0,handler:"updateNow"},visible:{immediate:!0,handler:"init"},panel:{handler:"handelPanelChange"}},methods:{handelPanelChange:function(e,t){var n=this;this.dispatch("DatePicker","panel-change",[e,t]),"YEAR"===e?this.firstYear=10*Math.floor(this.calendarYear/10):"TIME"===e&&this.$nextTick(function(){for(var e=n.$el.querySelectorAll(".mx-panel-time .mx-time-list"),t=0,r=e.length;tthis.notAfterTime||t&&e>this.getCriticalTime(t)},inDisabledDays:function(e){var t=this;return Array.isArray(this.disabledDays)?this.disabledDays.some(function(n){return t.getCriticalTime(n)===e}):"function"==typeof this.disabledDays&&this.disabledDays(new Date(e))},isDisabledYear:function(e){var t=new Date(e,0).getTime(),n=new Date(e+1,0).getTime()-1;return this.inBefore(n)||this.inAfter(t)||"year"===this.type&&this.inDisabledDays(t)},isDisabledMonth:function(e){var t=new Date(this.calendarYear,e).getTime(),n=new Date(this.calendarYear,e+1).getTime()-1;return this.inBefore(n)||this.inAfter(t)||"month"===this.type&&this.inDisabledDays(t)},isDisabledDate:function(e){var t=new Date(e).getTime(),n=new Date(e).setHours(23,59,59,999);return this.inBefore(n)||this.inAfter(t)||this.inDisabledDays(t)},isDisabledTime:function(e,t,n){var r=new Date(e).getTime();return this.inBefore(r,t)||this.inAfter(r,n)||this.inDisabledDays(r)},selectDate:function(e){if("datetime"===this.type){var t=new Date(e);return r(this.value)&&t.setHours(this.value.getHours(),this.value.getMinutes(),this.value.getSeconds()),this.isDisabledTime(t)&&(t.setHours(0,0,0,0),this.notBefore&&t.getTime()=200?a():n=setTimeout(a,200)}}),window.addEventListener("resize",this._displayPopup),window.addEventListener("scroll",this._displayPopup)},beforeDestroy:function(){this.popupElm&&this.popupElm.parentNode===document.body&&document.body.removeChild(this.popupElm),window.removeEventListener("resize",this._displayPopup),window.removeEventListener("scroll",this._displayPopup)},methods:{initCalendar:function(){this.handleValueChange(this.value),this.displayPopup()},stringify:function(e,t){return u(e,t||this.format)},parseDate:function(e,t){return function(e,t){try{return p.a.parse(e,t)}catch(e){return!1}}(e,t||this.format)},dateEqual:function(e,t){return r(e)&&r(t)&&e.getTime()===t.getTime()},rangeEqual:function(e,t){var n=this;return Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every(function(e,r){return n.dateEqual(e,t[r])})},selectRange:function(e){if("function"==typeof e.onClick)return e.onClick(this);this.currentValue=[new Date(e.start),new Date(e.end)],this.updateDate(!0)},clearDate:function(){var e=this.range?[null,null]:null;this.currentValue=e,this.updateDate(!0),this.$emit("clear")},confirmDate:function(){(this.range?a(this.currentValue):i(this.currentValue))&&this.updateDate(!0),this.$emit("confirm",this.currentValue),this.closePopup()},updateDate:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return!(this.confirm&&!e||this.disabled||(this.range?this.rangeEqual(this.value,this.currentValue):this.dateEqual(this.value,this.currentValue))||(this.$emit("input",this.currentValue),this.$emit("change",this.currentValue),0))},handleValueChange:function(e){this.range?this.currentValue=a(e)?[new Date(e[0]),new Date(e[1])]:[null,null]:this.currentValue=i(e)?new Date(e):null},selectDate:function(e){this.currentValue=e,this.updateDate()&&this.closePopup()},selectStartDate:function(e){this.$set(this.currentValue,0,e),this.currentValue[1]&&this.updateDate()},selectEndDate:function(e){this.$set(this.currentValue,1,e),this.currentValue[0]&&this.updateDate()},selectTime:function(e,t){this.currentValue=e,this.updateDate()&&t&&this.closePopup()},selectStartTime:function(e){this.selectStartDate(e)},selectEndTime:function(e){this.selectEndDate(e)},showPopup:function(){this.disabled||(this.popupVisible=!0)},closePopup:function(){this.popupVisible=!1},getPopupSize:function(e){var t=e.style.display,n=e.style.visibility;e.style.display="block",e.style.visibility="hidden";var r=window.getComputedStyle(e),i={width:e.offsetWidth+parseInt(r.marginLeft)+parseInt(r.marginRight),height:e.offsetHeight+parseInt(r.marginTop)+parseInt(r.marginBottom)};return e.style.display=t,e.style.visibility=n,i},displayPopup:function(){var e=document.documentElement.clientWidth,t=document.documentElement.clientHeight,n=this.$el.getBoundingClientRect(),r=this._popupRect||(this._popupRect=this.getPopupSize(this.$refs.calendar)),i={},a=0,o=0;this.appendToBody&&(a=window.pageXOffset+n.left,o=window.pageYOffset+n.top),e-n.left a {\n color: inherit;\n text-decoration: none;\n cursor: pointer; }\n .mx-calendar-header > a:hover {\n color: #419dec; }\n .mx-icon-last-month, .mx-icon-last-year,\n .mx-icon-next-month,\n .mx-icon-next-year {\n padding: 0 6px;\n font-size: 20px;\n line-height: 30px; }\n .mx-icon-last-month, .mx-icon-last-year {\n float: left; }\n \n .mx-icon-next-month,\n .mx-icon-next-year {\n float: right; }\n\n.mx-calendar-content {\n width: 224px;\n height: 224px; }\n .mx-calendar-content .cell {\n vertical-align: middle;\n cursor: pointer; }\n .mx-calendar-content .cell:hover {\n background-color: #eaf8fe; }\n .mx-calendar-content .cell.actived {\n color: #fff;\n background-color: #1284e7; }\n .mx-calendar-content .cell.inrange {\n background-color: #eaf8fe; }\n .mx-calendar-content .cell.disabled {\n cursor: not-allowed;\n color: #ccc;\n background-color: #f3f3f3; }\n\n.mx-panel {\n width: 100%;\n height: 100%;\n text-align: center; }\n\n.mx-panel-date {\n table-layout: fixed;\n border-collapse: collapse;\n border-spacing: 0; }\n .mx-panel-date td, .mx-panel-date th {\n font-size: 12px;\n width: 32px;\n height: 32px;\n padding: 0;\n overflow: hidden;\n text-align: center; }\n .mx-panel-date td.today {\n color: #2a90e9; }\n .mx-panel-date td.last-month, .mx-panel-date td.next-month {\n color: #ddd; }\n\n.mx-panel-year {\n padding: 7px 0; }\n .mx-panel-year .cell {\n display: inline-block;\n width: 40%;\n margin: 1px 5%;\n line-height: 40px; }\n\n.mx-panel-month .cell {\n display: inline-block;\n width: 30%;\n line-height: 40px;\n margin: 8px 1.5%; }\n\n.mx-time-list {\n position: relative;\n float: left;\n margin: 0;\n padding: 0;\n list-style: none;\n width: 100%;\n height: 100%;\n border-top: 1px solid rgba(0, 0, 0, 0.05);\n border-left: 1px solid rgba(0, 0, 0, 0.05);\n overflow-y: auto;\n /* 滚动条滑块 */ }\n .mx-time-list .mx-time-picker-item {\n display: block;\n text-align: left;\n padding-left: 10px; }\n .mx-time-list:first-child {\n border-left: 0; }\n .mx-time-list .cell {\n width: 100%;\n font-size: 12px;\n height: 30px;\n line-height: 30px; }\n .mx-time-list::-webkit-scrollbar {\n width: 8px;\n height: 8px; }\n .mx-time-list::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.05);\n border-radius: 10px;\n -webkit-box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.1);\n box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.1); }\n .mx-time-list:hover::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.2); }\n",""])},function(e,t,n){var r=n(5);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),(0,n(2).default)("511dbeb0",r,!0,{})}])},function(e,t,n){var r=n(14),i=n(9),a=n(34);e.exports=function(e){return function(t,n,o){var s,u=r(t),l=i(u.length),c=a(o,l);if(e&&n!=n){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(23),i=n(5)("toStringTag"),a="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:a?r(t):"Object"==(o=r(t))&&"function"==typeof t.callee?"Arguments":o}},function(e,t,n){var r=n(0),i=n(24),a=n(1),o=n(73),s="["+o+"]",u=RegExp("^"+s+s+"*"),l=RegExp(s+s+"*$"),c=function(e,t,n){var i={},s=a(function(){return!!o[e]()||"​…"!="​…"[e]()}),u=i[e]=s?t(d):o[e];n&&(i[n]=u),r(r.P+r.F*s,"String",i)},d=c.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(u,"")),2&t&&(e=e.replace(l,"")),e};e.exports=c},function(e,t,n){var r=n(5)("iterator"),i=!1;try{var a=[7][r]();a.return=function(){i=!0},Array.from(a,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var a=[7],o=a[r]();o.next=function(){return{done:n=!0}},a[r]=function(){return o},e(a)}catch(e){}return n}},function(e,t,n){"use strict";var r=n(13),i=n(10),a=n(1),o=n(24),s=n(5);e.exports=function(e,t,n){var u=s(e),l=n(o,u,""[e]),c=l[0],d=l[1];a(function(){var t={};return t[u]=function(){return 7},7!=""[e](t)})&&(i(String.prototype,e,c),r(RegExp.prototype,u,2==t?function(e,t){return d.call(e,this,t)}:function(e){return d.call(e,this)}))}},function(e,t,n){var r=n(21),i=n(107),a=n(82),o=n(4),s=n(9),u=n(84),l={},c={};(t=e.exports=function(e,t,n,d,f){var p,h,_,m,v=f?function(){return e}:u(e),y=r(n,d,t?2:1),g=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(a(v)){for(p=s(e.length);p>g;g++)if((m=t?y(o(h=e[g])[0],h[1]):y(e[g]))===l||m===c)return m}else for(_=v.call(e);!(h=_.next()).done;)if((m=i(_,y,h.value,t))===l||m===c)return m}).BREAK=l,t.RETURN=c},function(e,t,n){var r=n(4),i=n(22),a=n(5)("species");e.exports=function(e,t){var n,o=r(e).constructor;return void 0===o||void 0==(n=r(o)[a])?t:i(n)}},function(e,t,n){var r=n(2).navigator;e.exports=r&&r.userAgent||""},function(e,t,n){"use strict";var r=n(2),i=n(0),a=n(10),o=n(43),s=n(28),u=n(56),l=n(42),c=n(3),d=n(1),f=n(54),p=n(38),h=n(74);e.exports=function(e,t,n,_,m,v){var y=r[e],g=y,M=m?"set":"add",L=g&&g.prototype,b={},w=function(e){var t=L[e];a(L,e,"delete"==e?function(e){return!(v&&!c(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(v&&!c(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!c(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof g&&(v||L.forEach&&!d(function(){(new g).entries().next()}))){var k=new g,Y=k[M](v?{}:-0,1)!=k,x=d(function(){k.has(1)}),D=f(function(e){new g(e)}),T=!v&&d(function(){for(var e=new g,t=5;t--;)e[M](t,t);return!e.has(-0)});D||((g=t(function(t,n){l(t,g,e);var r=h(new y,t,g);return void 0!=n&&u(n,m,r[M],r),r})).prototype=L,L.constructor=g),(x||T)&&(w("delete"),w("has"),m&&w("get")),(T||Y)&&w(M),v&&L.clear&&delete L.clear}else g=_.getConstructor(t,e,m,M),o(g.prototype,n),s.NEED=!0;return p(g,e),b[e]=g,i(i.G+i.W+i.F*(g!=y),b),v||_.setStrong(g,e,m),g}},function(e,t,n){for(var r,i=n(2),a=n(13),o=n(31),s=o("typed_array"),u=o("view"),l=!(!i.ArrayBuffer||!i.DataView),c=l,d=0,f="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");d<9;)(r=i[f[d++]])?(a(r.prototype,s,!0),a(r.prototype,u,!0)):c=!1;e.exports={ABV:l,CONSTR:c,TYPED:s,VIEW:u}},function(e,t,n){var r=n(320);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),(0,n(48).default)("7aebefbb",r,!1,{})},function(e,t,n){var r=n(322);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),(0,n(48).default)("722cdc3c",r,!1,{})},function(e,t,n){var r=n(326);"string"==typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals),(0,n(48).default)("3ce5d415",r,!1,{})},function(e,t,n){"use strict";(function(e){function r(e){return e&&"[object Function]"==={}.toString.call(e)}function i(e,t){if(1!==e.nodeType)return[];var n=getComputedStyle(e,null);return t?n[t]:n}function a(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function o(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=i(e),n=t.overflow,r=t.overflowX;return/(auto|scroll|overlay)/.test(n+t.overflowY+r)?e:o(a(e))}function s(e){return 11===e?ae:10===e?oe:ae||oe}function u(e){if(!e)return document.documentElement;for(var t=s(10)?document.body:null,n=e.offsetParent;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TD","TABLE"].indexOf(n.nodeName)&&"static"===i(n,"position")?u(n):n:e?e.ownerDocument.documentElement:document.documentElement}function l(e){return null!==e.parentNode?l(e.parentNode):e}function c(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,i=n?t:e,a=document.createRange();a.setStart(r,0),a.setEnd(i,0);var o=a.commonAncestorContainer;if(e!==o&&t!==o||r.contains(i))return function(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||u(e.firstElementChild)===e)}(o)?o:u(o);var s=l(e);return s.host?c(s.host,t):c(e,l(t).host)}function d(e){var t="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=e.nodeName;if("BODY"===n||"HTML"===n){var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[t]}return e[t]}function f(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+r+"Width"],10)}function p(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],s(10)?n["offset"+e]+r["margin"+("Height"===e?"Top":"Left")]+r["margin"+("Height"===e?"Bottom":"Right")]:0)}function h(){var e=document.body,t=document.documentElement,n=s(10)&&getComputedStyle(t);return{height:p("Height",e,t,n),width:p("Width",e,t,n)}}function _(e){return ce({},e,{right:e.left+e.width,bottom:e.top+e.height})}function m(e){var t={};try{if(s(10)){t=e.getBoundingClientRect();var n=d(e,"top"),r=d(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var a={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},o="HTML"===e.nodeName?h():{},u=o.width||e.clientWidth||a.right-a.left,l=o.height||e.clientHeight||a.bottom-a.top,c=e.offsetWidth-u,p=e.offsetHeight-l;if(c||p){var m=i(e);c-=f(m,"x"),p-=f(m,"y"),a.width-=c,a.height-=p}return _(a)}function v(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=s(10),a="HTML"===t.nodeName,u=m(e),l=m(t),c=o(e),f=i(t),p=parseFloat(f.borderTopWidth,10),h=parseFloat(f.borderLeftWidth,10);n&&"HTML"===t.nodeName&&(l.top=Math.max(l.top,0),l.left=Math.max(l.left,0));var v=_({top:u.top-l.top-p,left:u.left-l.left-h,width:u.width,height:u.height});if(v.marginTop=0,v.marginLeft=0,!r&&a){var y=parseFloat(f.marginTop,10),g=parseFloat(f.marginLeft,10);v.top-=p-y,v.bottom-=p-y,v.left-=h-g,v.right-=h-g,v.marginTop=y,v.marginLeft=g}return(r&&!n?t.contains(c):t===c&&"BODY"!==c.nodeName)&&(v=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=d(t,"top"),i=d(t,"left"),a=n?-1:1;return e.top+=r*a,e.bottom+=r*a,e.left+=i*a,e.right+=i*a,e}(v,t)),v}function y(e){if(!e||!e.parentElement||s())return document.documentElement;for(var t=e.parentElement;t&&"none"===i(t,"transform");)t=t.parentElement;return t||document.documentElement}function g(e,t,n,r){var s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],u={top:0,left:0},l=s?y(e):c(e,t);if("viewport"===r)u=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=v(e,n),i=Math.max(n.clientWidth,window.innerWidth||0),a=Math.max(n.clientHeight,window.innerHeight||0),o=t?0:d(n),s=t?0:d(n,"left");return _({top:o-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:i,height:a})}(l,s);else{var f=void 0;"scrollParent"===r?"BODY"===(f=o(a(t))).nodeName&&(f=e.ownerDocument.documentElement):f="window"===r?e.ownerDocument.documentElement:r;var p=v(f,l,s);if("HTML"!==f.nodeName||function e(t){var n=t.nodeName;return"BODY"!==n&&"HTML"!==n&&("fixed"===i(t,"position")||e(a(t)))}(l))u=p;else{var m=h(),g=m.height,M=m.width;u.top+=p.top-p.marginTop,u.bottom=g+p.top,u.left+=p.left-p.marginLeft,u.right=M+p.left}}return u.left+=n,u.top+=n,u.right-=n,u.bottom-=n,u}function M(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var o=g(n,r,a,i),s={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}},u=Object.keys(s).map(function(e){return ce({key:e},s[e],{area:function(e){return e.width*e.height}(s[e])})}).sort(function(e,t){return t.area-e.area}),l=u.filter(function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight}),c=l.length>0?l[0].key:u[0].key,d=e.split("-")[1];return c+(d?"-"+d:"")}function L(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return v(n,r?y(t):c(t,n),r)}function b(e){var t=getComputedStyle(e),n=parseFloat(t.marginTop)+parseFloat(t.marginBottom),r=parseFloat(t.marginLeft)+parseFloat(t.marginRight);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function w(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function k(e,t,n){n=n.split("-")[0];var r=b(e),i={width:r.width,height:r.height},a=-1!==["right","left"].indexOf(n),o=a?"top":"left",s=a?"left":"top",u=a?"height":"width",l=a?"width":"height";return i[o]=t[o]+t[u]/2-r[u]/2,i[s]=n===s?t[s]-r[l]:t[w(s)],i}function Y(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function x(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var r=Y(e,function(e){return e[t]===n});return e.indexOf(r)}(e,"name",n))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&r(n)&&(t.offsets.popper=_(t.offsets.popper),t.offsets.reference=_(t.offsets.reference),t=n(t,e))}),t}function D(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function T(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r1&&void 0!==arguments[1]&&arguments[1],n=fe.indexOf(e),r=fe.slice(n+1).concat(fe.slice(0,n));return t?r.reverse():r}function C(e,t,n,r){var i=[0,0],a=-1!==["right","left"].indexOf(r),o=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=o.indexOf(Y(o,function(e){return-1!==e.search(/,|\s/)}));o[s]&&-1===o[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var u=/\s*,\s*|\s+/,l=-1!==s?[o.slice(0,s).concat([o[s].split(u)[0]]),[o[s].split(u)[1]].concat(o.slice(s+1))]:[o];return(l=l.map(function(e,r){var i=(1===r?!a:a)?"height":"width",o=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,o=!0,e):o?(e[e.length-1]+=t,o=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,r){var i=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+i[1],o=i[2];if(!a)return e;if(0===o.indexOf("%")){var s=void 0;switch(o){case"%p":s=n;break;case"%":case"%r":default:s=r}return _(s)[t]/100*a}return"vh"===o||"vw"===o?("vh"===o?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*a:a}(e,i,t,n)})})).forEach(function(e,t){e.forEach(function(n,r){A(n)&&(i[t]+=n*("-"===e[r-1]?-1:1))})}),i}function N(e){return"string"==typeof e&&(e=e.split(" ")),e}function F(e,t){var n=N(t),r=void 0;r=N(e.className instanceof me?e.className.baseVal:e.className),n.forEach(function(e){-1===r.indexOf(e)&&r.push(e)}),e instanceof SVGElement?e.setAttribute("class",r.join(" ")):e.className=r.join(" ")}function $(e,t){var n=N(t),r=void 0;r=N(e.className instanceof me?e.className.baseVal:e.className),n.forEach(function(e){var t=r.indexOf(e);-1!==t&&r.splice(t,1)}),e instanceof SVGElement?e.setAttribute("class",r.join(" ")):e.className=r.join(" ")}function I(e){var t={placement:void 0!==e.placement?e.placement:je.options.defaultPlacement,delay:void 0!==e.delay?e.delay:je.options.defaultDelay,html:void 0!==e.html?e.html:je.options.defaultHtml,template:void 0!==e.template?e.template:je.options.defaultTemplate,arrowSelector:void 0!==e.arrowSelector?e.arrowSelector:je.options.defaultArrowSelector,innerSelector:void 0!==e.innerSelector?e.innerSelector:je.options.defaultInnerSelector,trigger:void 0!==e.trigger?e.trigger:je.options.defaultTrigger,offset:void 0!==e.offset?e.offset:je.options.defaultOffset,container:void 0!==e.container?e.container:je.options.defaultContainer,boundariesElement:void 0!==e.boundariesElement?e.boundariesElement:je.options.defaultBoundariesElement,autoHide:void 0!==e.autoHide?e.autoHide:je.options.autoHide,hideOnTargetClick:void 0!==e.hideOnTargetClick?e.hideOnTargetClick:je.options.defaultHideOnTargetClick,loadingClass:void 0!==e.loadingClass?e.loadingClass:je.options.defaultLoadingClass,loadingContent:void 0!==e.loadingContent?e.loadingContent:je.options.defaultLoadingContent,popperOptions:be({},void 0!==e.popperOptions?e.popperOptions:je.options.defaultPopperOptions)};if(t.offset){var n=ge(t.offset),r=t.offset;("number"===n||"string"===n&&-1===r.indexOf(","))&&(r="0, "+r),t.popperOptions.modifiers||(t.popperOptions.modifiers={}),t.popperOptions.modifiers.offset={offset:r}}return t.trigger&&-1!==t.trigger.indexOf("click")&&(t.hideOnTargetClick=!1),t}function W(e,t){for(var n=e.placement,r=0;r2&&void 0!==arguments[2]?arguments[2]:{},r=R(t),i=void 0!==t.classes?t.classes:je.options.defaultClass,a=be({title:r},I(be({},t,{placement:W(t,n)}))),o=e._tooltip=new Ye(e,a);o.setClasses(i),o._vueEl=e;var s=void 0!==t.targetClasses?t.targetClasses:je.options.defaultTargetClass;return e._tooltipTargetClasses=s,F(e,s),o}(e,n,r),void 0!==n.show&&n.show!==e._tooltipOldShow&&(e._tooltipOldShow=n.show,n.show?a.show():a.hide())}else z(e)}function B(e){e.addEventListener("click",J),e.addEventListener("touchstart",G,!!ve&&{passive:!0})}function V(e){e.removeEventListener("click",J),e.removeEventListener("touchstart",G),e.removeEventListener("touchend",q),e.removeEventListener("touchcancel",K)}function J(e){var t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function G(e){if(1===e.changedTouches.length){var t=e.currentTarget;t.$_vclosepopover_touch=!0;var n=e.changedTouches[0];t.$_vclosepopover_touchPoint=n,t.addEventListener("touchend",q),t.addEventListener("touchcancel",K)}}function q(e){var t=e.currentTarget;if(t.$_vclosepopover_touch=!1,1===e.changedTouches.length){var n=e.changedTouches[0],r=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-r.screenY)<20&&Math.abs(n.screenX-r.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function K(e){e.currentTarget.$_vclosepopover_touch=!1}function Z(){Z.init||(Z.init=!0,Ae=-1!==function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}var r=e.indexOf("Edge/");return r>0?parseInt(e.substring(r+5,e.indexOf(".",r)),10):-1}())}function X(e){var t=je.options.popover[e];return void 0===t?je.options[e]:t}function Q(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];requestAnimationFrame(function(){for(var n=void 0,r=0;r=0){ne=1;break}var ie=ee&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},ne))}},ae=ee&&!(!window.MSInputMethodContext||!document.documentMode),oe=ee&&/MSIE 10/.test(navigator.userAgent),se=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},ue=function(){function e(e,t){for(var n=0;nl[e]&&!t.escapeWithReference&&(r=Math.min(d[n],l[e]-("right"===e?d.width:d.height))),le({},n,r)}};return c.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";d=ce({},d,f[t](e))}),e.offsets.popper=d,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,i=e.placement.split("-")[0],a=Math.floor,o=-1!==["top","bottom"].indexOf(i),s=o?"right":"bottom",u=o?"left":"top",l=o?"width":"height";return n[s]a(r[s])&&(e.offsets.popper[u]=a(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!E(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var a=e.placement.split("-")[0],o=e.offsets,s=o.popper,u=o.reference,l=-1!==["left","right"].indexOf(a),c=l?"height":"width",d=l?"Top":"Left",f=d.toLowerCase(),p=l?"left":"top",h=l?"bottom":"right",m=b(r)[c];u[h]-ms[h]&&(e.offsets.popper[f]+=u[f]+m-s[h]),e.offsets.popper=_(e.offsets.popper);var v=u[f]+u[c]/2-m/2,y=i(e.instance.popper),g=parseFloat(y["margin"+d],10),M=parseFloat(y["border"+d+"Width"],10),L=v-e.offsets.popper[f]-g-M;return L=Math.max(Math.min(s[c]-m,L),0),e.arrowElement=r,e.offsets.arrow=(le(n={},f,Math.round(L)),le(n,p,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(D(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=g(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],i=w(r),a=e.placement.split("-")[1]||"",o=[];switch(t.behavior){case pe.FLIP:o=[r,i];break;case pe.CLOCKWISE:o=P(r);break;case pe.COUNTERCLOCKWISE:o=P(r,!0);break;default:o=t.behavior}return o.forEach(function(s,u){if(r!==s||o.length===u+1)return e;r=e.placement.split("-")[0],i=w(r);var l=e.offsets.popper,c=e.offsets.reference,d=Math.floor,f="left"===r&&d(l.right)>d(c.left)||"right"===r&&d(l.left)d(c.top)||"bottom"===r&&d(l.top)d(n.right),_=d(l.top)d(n.bottom),v="left"===r&&p||"right"===r&&h||"top"===r&&_||"bottom"===r&&m,y=-1!==["top","bottom"].indexOf(r),g=!!t.flipVariations&&(y&&"start"===a&&p||y&&"end"===a&&h||!y&&"start"===a&&_||!y&&"end"===a&&m);(f||v||g)&&(e.flipped=!0,(f||v)&&(r=o[u+1]),g&&(a=function(e){return"end"===e?"start":"start"===e?"end":e}(a)),e.placement=r+(a?"-"+a:""),e.offsets.popper=ce({},e.offsets.popper,k(e.instance.popper,e.offsets.reference,e.placement)),e=x(e.instance.modifiers,e,"flip"))}),e},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,i=r.popper,a=r.reference,o=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return i[o?"left":"top"]=a[n]-(s?i[o?"width":"height"]:0),e.placement=w(t),e.offsets.popper=_(i),e}},hide:{order:800,enabled:!0,fn:function(e){if(!E(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Y(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&void 0!==arguments[2]?arguments[2]:{};se(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=ie(this.update.bind(this)),this.options=ce({},e.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(ce({},e.Defaults.modifiers,a.modifiers)).forEach(function(t){i.options.modifiers[t]=ce({},e.Defaults.modifiers[t]||{},a.modifiers?a.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return ce({name:e},i.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&r(e.onLoad)&&e.onLoad(i.reference,i.popper,i.options,e,i.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return ue(e,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=L(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=M(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=k(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=x(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,D(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[T("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=j(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return O.call(this)}}]),e}();_e.Utils=("undefined"!=typeof window?window:e).PopperUtils,_e.placements=de,_e.Defaults=he;var me=function(){};"undefined"!=typeof window&&(me=window.SVGAnimatedString);var ve=!1;if("undefined"!=typeof window){ve=!1;try{var ye=Object.defineProperty({},"passive",{get:function(){ve=!0}});window.addEventListener("test",null,ye)}catch(e){}}var ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Me=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},Le=function(){function e(e,t){for(var n=0;n
',trigger:"hover focus",offset:0},ke=[],Ye=function(){function e(t,n){Me(this,e),xe.call(this),n=be({},we,n),t.jquery&&(t=t[0]),this.reference=t,this.options=n,this._isOpen=!1,this._init()}return Le(e,[{key:"setClasses",value:function(e){this._classes=e}},{key:"setContent",value:function(e){this.options.title=e,this._tooltipNode&&this._setContent(e,this.options)}},{key:"setOptions",value:function(e){var t=!1,n=e&&e.classes||je.options.defaultClass;this._classes!==n&&(this.setClasses(n),t=!0),e=I(e);var r=!1,i=!1;for(var a in this.options.offset===e.offset&&this.options.placement===e.placement||(r=!0),(this.options.template!==e.template||this.options.trigger!==e.trigger||this.options.container!==e.container||t)&&(i=!0),e)this.options[a]=e[a];if(this._tooltipNode)if(i){var o=this._isOpen;this.dispose(),this._init(),o&&this.show()}else r&&this.popperInstance.update()}},{key:"_init",value:function(){var e="string"==typeof this.options.trigger?this.options.trigger.split(" ").filter(function(e){return-1!==["click","hover","focus"].indexOf(e)}):[];this._isDisposed=!1,this._enableDocumentTouch=-1===e.indexOf("manual"),this._setEventListeners(this.reference,e,this.options)}},{key:"_create",value:function(e,t){var n=window.document.createElement("div");n.innerHTML=t.trim();var r=n.childNodes[0];return r.id="tooltip_"+Math.random().toString(36).substr(2,10),r.setAttribute("aria-hidden","true"),this.options.autoHide&&-1!==this.options.trigger.indexOf("hover")&&(r.addEventListener("mouseenter",this.hide),r.addEventListener("click",this.hide)),r}},{key:"_setContent",value:function(e,t){var n=this;this.asyncContent=!1,this._applyContent(e,t).then(function(){n.popperInstance.update()})}},{key:"_applyContent",value:function(e,t){var n=this;return new Promise(function(r,i){var a=t.html,o=n._tooltipNode;if(o){var s=o.querySelector(n.options.innerSelector);if(1===e.nodeType){if(a){for(;s.firstChild;)s.removeChild(s.firstChild);s.appendChild(e)}}else{if("function"==typeof e){var u=e();return void(u&&"function"==typeof u.then?(n.asyncContent=!0,t.loadingClass&&F(o,t.loadingClass),t.loadingContent&&n._applyContent(t.loadingContent,t),u.then(function(e){return t.loadingClass&&$(o,t.loadingClass),n._applyContent(e,t)}).then(r).catch(i)):n._applyContent(u,t).then(r).catch(i))}a?s.innerHTML=e:s.innerText=e}r()}})}},{key:"_show",value:function(e,t){if(!t||"string"!=typeof t.container||document.querySelector(t.container)){clearTimeout(this._disposeTimer),delete(t=Object.assign({},t)).offset;var n=!0;this._tooltipNode&&(F(this._tooltipNode,this._classes),n=!1);var r=this._ensureShown(e,t);return n&&this._tooltipNode&&F(this._tooltipNode,this._classes),F(e,["v-tooltip-open"]),r}}},{key:"_ensureShown",value:function(e,t){var n=this;if(this._isOpen)return this;if(this._isOpen=!0,ke.push(this),this._tooltipNode)return this._tooltipNode.style.display="",this._tooltipNode.setAttribute("aria-hidden","false"),this.popperInstance.enableEventListeners(),this.popperInstance.update(),this.asyncContent&&this._setContent(t.title,t),this;var r=e.getAttribute("title")||t.title;if(!r)return this;var i=this._create(e,t.template);this._tooltipNode=i,this._setContent(r,t),e.setAttribute("aria-describedby",i.id);var a=this._findContainer(t.container,e);this._append(i,a);var o=be({},t.popperOptions,{placement:t.placement});return o.modifiers=be({},o.modifiers,{arrow:{element:this.options.arrowSelector}}),t.boundariesElement&&(o.modifiers.preventOverflow={boundariesElement:t.boundariesElement}),this.popperInstance=new _e(e,i,o),requestAnimationFrame(function(){!n._isDisposed&&n.popperInstance?(n.popperInstance.update(),requestAnimationFrame(function(){n._isDisposed?n.dispose():n._isOpen&&i.setAttribute("aria-hidden","false")})):n.dispose()}),this}},{key:"_noLongerOpen",value:function(){var e=ke.indexOf(this);-1!==e&&ke.splice(e,1)}},{key:"_hide",value:function(){var e=this;if(!this._isOpen)return this;this._isOpen=!1,this._noLongerOpen(),this._tooltipNode.style.display="none",this._tooltipNode.setAttribute("aria-hidden","true"),this.popperInstance.disableEventListeners(),clearTimeout(this._disposeTimer);var t=je.options.disposeTimeout;return null!==t&&(this._disposeTimer=setTimeout(function(){e._tooltipNode&&(e._tooltipNode.removeEventListener("mouseenter",e.hide),e._tooltipNode.removeEventListener("click",e.hide),e._tooltipNode.parentNode.removeChild(e._tooltipNode),e._tooltipNode=null)},t)),$(this.reference,["v-tooltip-open"]),this}},{key:"_dispose",value:function(){var e=this;return this._isDisposed=!0,this._events.forEach(function(t){var n=t.func,r=t.event;e.reference.removeEventListener(r,n)}),this._events=[],this._tooltipNode?(this._hide(),this._tooltipNode.removeEventListener("mouseenter",this.hide),this._tooltipNode.removeEventListener("click",this.hide),this.popperInstance.destroy(),this.popperInstance.options.removeOnDestroy||(this._tooltipNode.parentNode.removeChild(this._tooltipNode),this._tooltipNode=null)):this._noLongerOpen(),this}},{key:"_findContainer",value:function(e,t){return"string"==typeof e?e=window.document.querySelector(e):!1===e&&(e=t.parentNode),e}},{key:"_append",value:function(e,t){t.appendChild(e)}},{key:"_setEventListeners",value:function(e,t,n){var r=this,i=[],a=[];t.forEach(function(e){switch(e){case"hover":i.push("mouseenter"),a.push("mouseleave"),r.options.hideOnTargetClick&&a.push("click");break;case"focus":i.push("focus"),a.push("blur"),r.options.hideOnTargetClick&&a.push("click");break;case"click":i.push("click"),a.push("click")}}),i.forEach(function(t){var i=function(t){!0!==r._isOpen&&(t.usedByTooltip=!0,r._scheduleShow(e,n.delay,n,t))};r._events.push({event:t,func:i}),e.addEventListener(t,i)}),a.forEach(function(t){var i=function(t){!0!==t.usedByTooltip&&r._scheduleHide(e,n.delay,n,t)};r._events.push({event:t,func:i}),e.addEventListener(t,i)})}},{key:"_onDocumentTouch",value:function(e){this._enableDocumentTouch&&this._scheduleHide(this.reference,this.options.delay,this.options,e)}},{key:"_scheduleShow",value:function(e,t,n){var r=this,i=t&&t.show||t||0;clearTimeout(this._scheduleTimer),this._scheduleTimer=window.setTimeout(function(){return r._show(e,n)},i)}},{key:"_scheduleHide",value:function(e,t,n,r){var i=this,a=t&&t.hide||t||0;clearTimeout(this._scheduleTimer),this._scheduleTimer=window.setTimeout(function(){if(!1!==i._isOpen&&document.body.contains(i._tooltipNode)){if("mouseleave"===r.type&&i._setTooltipNodeEvent(r,e,t,n))return;i._hide(e,n)}},a)}}]),e}(),xe=function(){var e=this;this.show=function(){e._show(e.reference,e.options)},this.hide=function(){e._hide()},this.dispose=function(){e._dispose()},this.toggle=function(){return e._isOpen?e.hide():e.show()},this._events=[],this._setTooltipNodeEvent=function(t,n,r,i){var a=t.relatedreference||t.toElement||t.relatedTarget;return!!e._tooltipNode.contains(a)&&(e._tooltipNode.addEventListener(t.type,function r(a){var o=a.relatedreference||a.toElement||a.relatedTarget;e._tooltipNode.removeEventListener(t.type,r),n.contains(o)||e._scheduleHide(n,i.delay,i,a)}),!0)}};"undefined"!=typeof document&&document.addEventListener("touchstart",function(e){for(var t=0;t
',defaultArrowSelector:".tooltip-arrow, .tooltip__arrow",defaultInnerSelector:".tooltip-inner, .tooltip__inner",defaultDelay:0,defaultTrigger:"hover focus",defaultOffset:0,defaultContainer:"body",defaultBoundariesElement:void 0,defaultPopperOptions:{},defaultLoadingClass:"tooltip-loading",defaultLoadingContent:"...",autoHide:!0,defaultHideOnTargetClick:!0,disposeTimeout:5e3,popover:{defaultPlacement:"bottom",defaultClass:"vue-popover-theme",defaultBaseClass:"tooltip popover",defaultWrapperClass:"wrapper",defaultInnerClass:"tooltip-inner popover-inner",defaultArrowClass:"tooltip-arrow popover-arrow",defaultDelay:0,defaultTrigger:"click",defaultOffset:0,defaultContainer:"body",defaultBoundariesElement:void 0,defaultPopperOptions:{},defaultAutoHide:!0,defaultHandleResize:!0}},je={options:Se,bind:U,update:U,unbind:function(e){z(e)}},Oe={bind:function(e,t){var n=t.value,r=t.modifiers;e.$_closePopoverModifiers=r,(void 0===n||n)&&B(e)},update:function(e,t){var n=t.value,r=t.oldValue,i=t.modifiers;e.$_closePopoverModifiers=i,n!==r&&(void 0===n||n?B(e):V(e))},unbind:function(e){V(e)}},Ae=void 0,He={render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"resize-observer",attrs:{tabindex:"-1"}})},staticRenderFns:[],_scopeId:"data-v-b329ee4c",name:"resize-observer",methods:{notify:function(){this.$emit("notify")},addResizeHandlers:function(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.notify),this._w===this.$el.offsetWidth&&this._h===this.$el.offsetHeight||this.notify()},removeResizeHandlers:function(){this._resizeObject&&this._resizeObject.onload&&(!Ae&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.notify),delete this._resizeObject.onload)}},mounted:function(){var e=this;Z(),this.$nextTick(function(){e._w=e.$el.offsetWidth,e._h=e.$el.offsetHeight});var t=document.createElement("object");this._resizeObject=t,t.setAttribute("style","display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1;"),t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",Ae&&this.$el.appendChild(t),t.data="about:blank",Ae||this.$el.appendChild(t)},beforeDestroy:function(){this.removeResizeHandlers()}},Ee={version:"0.4.4",install:function(e){e.component("resize-observer",He)}},Pe=null;"undefined"!=typeof window?Pe=window.Vue:void 0!==e&&(Pe=e.Vue),Pe&&Pe.use(Ee);var Ce=!1;"undefined"!=typeof window&&"undefined"!=typeof navigator&&(Ce=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);var Ne=[],Fe=function(){};"undefined"!=typeof window&&(Fe=window.Element);var $e={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"v-popover",class:e.cssClass},[n("span",{ref:"trigger",staticClass:"trigger",staticStyle:{display:"inline-block"},attrs:{"aria-describedby":e.popoverId,tabindex:-1!==e.trigger.indexOf("focus")?0:-1}},[e._t("default")],2),e._v(" "),n("div",{ref:"popover",class:[e.popoverBaseClass,e.popoverClass,e.cssClass],style:{visibility:e.isOpen?"visible":"hidden"},attrs:{id:e.popoverId,"aria-hidden":e.isOpen?"false":"true"}},[n("div",{class:e.popoverWrapperClass},[n("div",{ref:"inner",class:e.popoverInnerClass,staticStyle:{position:"relative"}},[n("div",[e._t("popover")],2),e._v(" "),e.handleResize?n("ResizeObserver",{on:{notify:e.$_handleResize}}):e._e()],1),e._v(" "),n("div",{ref:"arrow",class:e.popoverArrowClass})])])])},staticRenderFns:[],name:"VPopover",components:{ResizeObserver:He},props:{open:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placement:{type:String,default:function(){return X("defaultPlacement")}},delay:{type:[String,Number,Object],default:function(){return X("defaultDelay")}},offset:{type:[String,Number],default:function(){return X("defaultOffset")}},trigger:{type:String,default:function(){return X("defaultTrigger")}},container:{type:[String,Object,Fe,Boolean],default:function(){return X("defaultContainer")}},boundariesElement:{type:[String,Fe],default:function(){return X("defaultBoundariesElement")}},popperOptions:{type:Object,default:function(){return X("defaultPopperOptions")}},popoverClass:{type:[String,Array],default:function(){return X("defaultClass")}},popoverBaseClass:{type:[String,Array],default:function(){return je.options.popover.defaultBaseClass}},popoverInnerClass:{type:[String,Array],default:function(){return je.options.popover.defaultInnerClass}},popoverWrapperClass:{type:[String,Array],default:function(){return je.options.popover.defaultWrapperClass}},popoverArrowClass:{type:[String,Array],default:function(){return je.options.popover.defaultArrowClass}},autoHide:{type:Boolean,default:function(){return je.options.popover.defaultAutoHide}},handleResize:{type:Boolean,default:function(){return je.options.popover.defaultHandleResize}},openGroup:{type:String,default:null}},data:function(){return{isOpen:!1,id:Math.random().toString(36).substr(2,10)}},computed:{cssClass:function(){return{open:this.isOpen}},popoverId:function(){return"popover_"+this.id}},watch:{open:function(e){e?this.show():this.hide()},disabled:function(e,t){e!==t&&(e?this.hide():this.open&&this.show())},container:function(e){if(this.isOpen&&this.popperInstance){var t=this.$refs.popover,n=this.$refs.trigger,r=this.$_findContainer(this.container,n);if(!r)return void console.warn("No container for popover",this);r.appendChild(t),this.popperInstance.scheduleUpdate()}},trigger:function(e){this.$_removeEventListeners(),this.$_addEventListeners()},placement:function(e){var t=this;this.$_updatePopper(function(){t.popperInstance.options.placement=e})},offset:"$_restartPopper",boundariesElement:"$_restartPopper",popperOptions:{handler:"$_restartPopper",deep:!0}},created:function(){this.$_isDisposed=!1,this.$_mounted=!1,this.$_events=[],this.$_preventOpen=!1},mounted:function(){var e=this.$refs.popover;e.parentNode&&e.parentNode.removeChild(e),this.$_init(),this.open&&this.show()},beforeDestroy:function(){this.dispose()},methods:{show:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.event,r=(t.skipDelay,t.force);!(void 0!==r&&r)&&this.disabled||(this.$_scheduleShow(n),this.$emit("show")),this.$emit("update:open",!0),this.$_beingShowed=!0,requestAnimationFrame(function(){e.$_beingShowed=!1})},hide:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.event;e.skipDelay,this.$_scheduleHide(t),this.$emit("hide"),this.$emit("update:open",!1)},dispose:function(){if(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.popperInstance&&(this.popperInstance.destroy(),!this.popperInstance.options.removeOnDestroy)){var e=this.$refs.popover;e.parentNode&&e.parentNode.removeChild(e)}this.$_mounted=!1,this.popperInstance=null,this.isOpen=!1,this.$emit("dispose")},$_init:function(){-1===this.trigger.indexOf("manual")&&this.$_addEventListeners()},$_show:function(){var e=this,t=this.$refs.trigger,n=this.$refs.popover;if(clearTimeout(this.$_disposeTimer),!this.isOpen){if(this.popperInstance&&(this.isOpen=!0,this.popperInstance.enableEventListeners(),this.popperInstance.scheduleUpdate()),!this.$_mounted){var r=this.$_findContainer(this.container,t);if(!r)return void console.warn("No container for popover",this);r.appendChild(n),this.$_mounted=!0}if(!this.popperInstance){var i=be({},this.popperOptions,{placement:this.placement});if(i.modifiers=be({},i.modifiers,{arrow:be({},i.modifiers&&i.modifiers.arrow,{element:this.$refs.arrow})}),this.offset){var a=this.$_getOffset();i.modifiers.offset=be({},i.modifiers&&i.modifiers.offset,{offset:a})}this.boundariesElement&&(i.modifiers.preventOverflow=be({},i.modifiers&&i.modifiers.preventOverflow,{boundariesElement:this.boundariesElement})),this.popperInstance=new _e(t,n,i),requestAnimationFrame(function(){!e.$_isDisposed&&e.popperInstance?(e.popperInstance.scheduleUpdate(),requestAnimationFrame(function(){e.$_isDisposed?e.dispose():e.isOpen=!0})):e.dispose()})}var o=this.openGroup;if(o)for(var s=void 0,u=0;u1&&void 0!==arguments[1]&&arguments[1];if(clearTimeout(this.$_scheduleTimer),e)this.$_show();else{var t=parseInt(this.delay&&this.delay.show||this.delay||0);this.$_scheduleTimer=setTimeout(this.$_show.bind(this),t)}},$_scheduleHide:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(clearTimeout(this.$_scheduleTimer),n)this.$_hide();else{var r=parseInt(this.delay&&this.delay.hide||this.delay||0);this.$_scheduleTimer=setTimeout(function(){if(e.isOpen){if(t&&"mouseleave"===t.type&&e.$_setTooltipNodeEvent(t))return;e.$_hide()}},r)}},$_setTooltipNodeEvent:function(e){var t=this,n=this.$refs.trigger,r=this.$refs.popover,i=e.relatedreference||e.toElement||e.relatedTarget;return!!r.contains(i)&&(r.addEventListener(e.type,function i(a){var o=a.relatedreference||a.toElement||a.relatedTarget;r.removeEventListener(e.type,i),n.contains(o)||t.hide({event:a})}),!0)},$_removeEventListeners:function(){var e=this.$refs.trigger;this.$_events.forEach(function(t){var n=t.func,r=t.event;e.removeEventListener(r,n)}),this.$_events=[]},$_updatePopper:function(e){this.popperInstance&&(e(),this.isOpen&&this.popperInstance.scheduleUpdate())},$_restartPopper:function(){if(this.popperInstance){var e=this.isOpen;this.dispose(),this.$_isDisposed=!1,this.$_init(),e&&this.show({skipDelay:!0,force:!0})}},$_handleGlobalClose:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.$_beingShowed||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),n&&(this.$_preventOpen=!0,setTimeout(function(){t.$_preventOpen=!1},300)))},$_handleResize:function(){this.isOpen&&this.popperInstance&&(this.popperInstance.scheduleUpdate(),this.$emit("resize"))}}};"undefined"!=typeof document&&"undefined"!=typeof window&&(Ce?document.addEventListener("touchend",function(e){Q(e,!0)},!ve||{passive:!0,capture:!0}):window.addEventListener("click",function(e){Q(e)},!0));var Ie="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},We=function(e,t){return function(e,t){function n(e,t){return"__proto__"==t?void 0:e[t]}function r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=O}function x(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function D(e){return null!=e&&"object"==typeof e}function T(e){return w(e)?s(e,!0):_(e)}function S(e){return e}var j="__lodash_hash_undefined__",O=9007199254740991,A="[object Arguments]",H="[object AsyncFunction]",E="[object Function]",P="[object GeneratorFunction]",C="[object Null]",N="[object Object]",F="[object Proxy]",$="[object Undefined]",I=/^\[object .+?Constructor\]$/,W=/^(?:0|[1-9]\d*)$/,R={};R["[object Float32Array]"]=R["[object Float64Array]"]=R["[object Int8Array]"]=R["[object Int16Array]"]=R["[object Int32Array]"]=R["[object Uint8Array]"]=R["[object Uint8ClampedArray]"]=R["[object Uint16Array]"]=R["[object Uint32Array]"]=!0,R[A]=R["[object Array]"]=R["[object ArrayBuffer]"]=R["[object Boolean]"]=R["[object DataView]"]=R["[object Date]"]=R["[object Error]"]=R[E]=R["[object Map]"]=R["[object Number]"]=R[N]=R["[object RegExp]"]=R["[object Set]"]=R["[object String]"]=R["[object WeakMap]"]=!1;var z="object"==typeof Ie&&Ie&&Ie.Object===Object&&Ie,U="object"==typeof self&&self&&self.Object===Object&&self,B=z||U||Function("return this")(),V=t&&!t.nodeType&&t,J=V&&e&&!e.nodeType&&e,G=J&&J.exports===V,q=G&&z.process,K=function(){try{return q&&q.binding&&q.binding("util")}catch(e){}}(),Z=K&&K.isTypedArray,X=Array.prototype,Q=Function.prototype,ee=Object.prototype,te=B["__core-js_shared__"],ne=Q.toString,re=ee.hasOwnProperty,ie=function(){var e=/[^.]+$/.exec(te&&te.keys&&te.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),ae=ee.toString,oe=ne.call(Object),se=RegExp("^"+ne.call(re).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ue=G?B.Buffer:void 0,le=B.Symbol,ce=B.Uint8Array,de=(ue&&ue.allocUnsafe,function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object)),fe=Object.create,pe=ee.propertyIsEnumerable,he=X.splice,_e=le?le.toStringTag:void 0,me=function(){try{var e=g(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),ve=ue?ue.isBuffer:void 0,ye=Math.max,ge=Date.now,Me=g(B,"Map"),Le=g(Object,"create"),be=function(){function e(){}return function(t){if(!x(t))return{};if(fe)return fe(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();r.prototype.clear=function(){this.__data__=Le?Le(null):{},this.size=0},r.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},r.prototype.get=function(e){var t=this.__data__;if(Le){var n=t[e];return n===j?void 0:n}return re.call(t,e)?t[e]:void 0},r.prototype.has=function(e){var t=this.__data__;return Le?void 0!==t[e]:re.call(t,e)},r.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Le&&void 0===t?j:t,this},i.prototype.clear=function(){this.__data__=[],this.size=0},i.prototype.delete=function(e){var t=this.__data__,n=c(t,e);return!(n<0||(n==t.length-1?t.pop():he.call(t,n,1),--this.size,0))},i.prototype.get=function(e){var t=this.__data__,n=c(t,e);return n<0?void 0:t[n][1]},i.prototype.has=function(e){return c(this.__data__,e)>-1},i.prototype.set=function(e,t){var n=this.__data__,r=c(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},a.prototype.clear=function(){this.size=0,this.__data__={hash:new r,map:new(Me||i),string:new r}},a.prototype.delete=function(e){var t=y(this,e).delete(e);return this.size-=t?1:0,t},a.prototype.get=function(e){return y(this,e).get(e)},a.prototype.has=function(e){return y(this,e).has(e)},a.prototype.set=function(e,t){var n=y(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},o.prototype.clear=function(){this.__data__=new i,this.size=0},o.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},o.prototype.get=function(e){return this.__data__.get(e)},o.prototype.has=function(e){return this.__data__.has(e)},o.prototype.set=function(e,t){var n=this.__data__;if(n instanceof i){var r=n.__data__;if(!Me||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(r)}return n.set(e,t),this.size=n.size,this};var we=function(e){return function(e,t,n){for(var r=-1,i=Object(e),a=n(e),o=a.length;o--;){var s=a[++r];if(!1===t(i[s],s,i))break}return e}}(),ke=function(e){var t=0,n=0;return function(){var r=ge(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(me?function(e,t){return me(e,"toString",{configurable:!0,enumerable:!1,value:function(e){return function(){return e}}(t),writable:!0})}:S),Ye=p(function(){return arguments}())?p:function(e){return D(e)&&re.call(e,"callee")&&!pe.call(e,"callee")},xe=Array.isArray,De=ve||function(){return!1},Te=Z?function(e){return function(t){return e(t)}}(Z):function(e){return D(e)&&Y(e.length)&&!!R[f(e)]},Se=function(e){return v(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for((a=e.length>3&&"function"==typeof a?(i--,a):void 0,o&&function(e,t,n){if(!x(n))return!1;var r=typeof t;return!!("number"==r?w(n)&&M(t,n.length):"string"==r&&t in n)&&b(n[t],e)}(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),t=Object(t));++r1&&void 0!==arguments[1]?arguments[1]:{};if(!e.installed){e.installed=!0;var r={};We(r,Se,n),ze.options=r,je.options=r,t.directive("tooltip",je),t.directive("close-popover",Oe),t.component("v-popover",$e)}},get enabled(){return De.enabled},set enabled(e){De.enabled=e}},Ue=null;"undefined"!=typeof window?Ue=window.Vue:void 0!==e&&(Ue=e.Vue),Ue&&Ue.use(ze)}).call(this,n(91))},function(e,t,n){var r=n(3),i=n(2).document,a=r(i)&&r(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,t,n){var r=n(8),i=n(2),a=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(32)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){t.f=n(5)},function(e,t,n){var r=n(66)("keys"),i=n(31);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(23);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(2).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(3),i=n(4),a=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(21)(Function.call,n(18).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return a(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:a}},function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(e,t,n){var r=n(3),i=n(72).set;e.exports=function(e,t,n){var a,o=t.constructor;return o!==n&&"function"==typeof o&&(a=o.prototype)!==n.prototype&&r(a)&&i&&i(e,a),e}},function(e,t,n){"use strict";var r=n(25),i=n(24);e.exports=function(e){var t=String(i(this)),n="",a=r(e);if(a<0||a==1/0)throw RangeError("Count can't be negative");for(;a>0;(a>>>=1)&&(t+=t))1&a&&(n+=t);return n}},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t){var n=Math.expm1;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},function(e,t,n){"use strict";var r=n(32),i=n(0),a=n(10),o=n(13),s=n(39),u=n(106),l=n(38),c=n(37),d=n(5)("iterator"),f=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,t,n,h,_,m,v){u(n,t,h);var y,g,M,L=function(e){if(!f&&e in Y)return Y[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},b=t+" Iterator",w="values"==_,k=!1,Y=e.prototype,x=Y[d]||Y["@@iterator"]||_&&Y[_],D=x||L(_),T=_?w?L("entries"):D:void 0,S="Array"==t&&Y.entries||x;if(S&&(M=c(S.call(new e)))!==Object.prototype&&M.next&&(l(M,b,!0),r||"function"==typeof M[d]||o(M,d,p)),w&&x&&"values"!==x.name&&(k=!0,D=function(){return x.call(this)}),r&&!v||!f&&!k&&Y[d]||o(Y,d,D),s[t]=D,s[b]=p,_)if(y={values:w?D:L("values"),keys:m?D:L("keys"),entries:T},v)for(g in y)g in Y||a(Y,g,y[g]);else i(i.P+i.F*(f||k),t,y);return y}},function(e,t,n){var r=n(80),i=n(24);e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},function(e,t,n){var r=n(3),i=n(23),a=n(5)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==i(e))}},function(e,t,n){var r=n(5)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,n){var r=n(39),i=n(5)("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||a[i]===e)}},function(e,t,n){"use strict";var r=n(6),i=n(30);e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},function(e,t,n){var r=n(52),i=n(5)("iterator"),a=n(39);e.exports=n(8).getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||a[r(e)]}},function(e,t,n){"use strict";var r=n(15),i=n(34),a=n(9);e.exports=function(e){for(var t=r(this),n=a(t.length),o=arguments.length,s=i(o>1?arguments[1]:void 0,n),u=o>2?arguments[2]:void 0,l=void 0===u?n:i(u,n);l>s;)t[s++]=e;return t}},function(e,t,n){"use strict";var r=n(40),i=n(110),a=n(39),o=n(14);e.exports=n(78)(Array,"Array",function(e,t){this._t=o(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},function(e,t,n){"use strict";var r=n(4);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){var r,i,a,o=n(21),s=n(99),u=n(71),l=n(65),c=n(2),d=c.process,f=c.setImmediate,p=c.clearImmediate,h=c.MessageChannel,_=c.Dispatch,m=0,v={},y=function(){var e=+this;if(v.hasOwnProperty(e)){var t=v[e];delete v[e],t()}},g=function(e){y.call(e.data)};f&&p||(f=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return v[++m]=function(){s("function"==typeof e?e:Function(e),t)},r(m),m},p=function(e){delete v[e]},"process"==n(23)(d)?r=function(e){d.nextTick(o(y,e,1))}:_&&_.now?r=function(e){_.now(o(y,e,1))}:h?(a=(i=new h).port2,i.port1.onmessage=g,r=o(a.postMessage,a,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(r=function(e){c.postMessage(e+"","*")},c.addEventListener("message",g,!1)):r="onreadystatechange"in l("script")?function(e){u.appendChild(l("script")).onreadystatechange=function(){u.removeChild(this),y.call(e)}}:function(e){setTimeout(o(y,e,1),0)}),e.exports={set:f,clear:p}},function(e,t,n){"use strict";function r(e,t,n){var r,i,a,o=new Array(n),s=8*n-t-1,u=(1<>1,c=23===t?F(2,-24)-F(2,-77):0,d=0,f=e<0||0===e&&1/e<0?1:0;for((e=N(e))!=e||e===P?(i=e!=e?1:0,r=u):(r=$(I(e)/W),e*(a=F(2,-r))<1&&(r--,a*=2),(e+=r+l>=1?c/a:c*F(2,1-l))*a>=2&&(r++,a/=2),r+l>=u?(i=0,r=u):r+l>=1?(i=(e*a-1)*F(2,t),r+=l):(i=e*F(2,l-1)*F(2,t),r=0));t>=8;o[d++]=255&i,i/=256,t-=8);for(r=r<0;o[d++]=255&r,r/=256,s-=8);return o[--d]|=128*f,o}function i(e,t,n){var r,i=8*n-t-1,a=(1<>1,s=i-7,u=n-1,l=e[u--],c=127&l;for(l>>=7;s>0;c=256*c+e[u],u--,s-=8);for(r=c&(1<<-s)-1,c>>=-s,s+=t;s>0;r=256*r+e[u],u--,s-=8);if(0===c)c=1-o;else{if(c===a)return r?NaN:l?-P:P;r+=F(2,t),c-=o}return(l?-1:1)*r*F(2,c-t)}function a(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function o(e){return[255&e]}function s(e){return[255&e,e>>8&255]}function u(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function l(e){return r(e,52,8)}function c(e){return r(e,23,4)}function d(e,t,n){x(e[S],t,{get:function(){return this[n]}})}function f(e,t,n,r){var i=k(+n);if(i+t>e[z])throw E(j);var a=e[R]._b,o=i+e[U],s=a.slice(o,o+t);return r?s:s.reverse()}function p(e,t,n,r,i,a){var o=k(+n);if(o+t>e[z])throw E(j);for(var s=e[R]._b,u=o+e[U],l=r(+i),c=0;cG;)(B=J[G++])in O||y(O,B,C[B]);m||(V.constructor=O)}var q=new A(new O(2)),K=A[S].setInt8;q.setInt8(0,2147483648),q.setInt8(1,2147483649),!q.getInt8(0)&&q.getInt8(1)||g(A[S],{setInt8:function(e,t){K.call(this,e,t<<24>>24)},setUint8:function(e,t){K.call(this,e,t<<24>>24)}},!0)}else O=function(e){L(this,O,"ArrayBuffer");var t=k(e);this._b=D.call(new Array(t),0),this[z]=t},A=function(e,t,n){L(this,A,"DataView"),L(e,O,"DataView");var r=e[z],i=b(t);if(i<0||i>r)throw E("Wrong offset!");if(i+(n=void 0===n?r-i:w(n))>r)throw E("Wrong length!");this[R]=e,this[U]=i,this[z]=n},_&&(d(O,"byteLength","_l"),d(A,"buffer","_b"),d(A,"byteLength","_l"),d(A,"byteOffset","_o")),g(A[S],{getInt8:function(e){return f(this,1,e)[0]<<24>>24},getUint8:function(e){return f(this,1,e)[0]},getInt16:function(e){var t=f(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=f(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return a(f(this,4,e,arguments[1]))},getUint32:function(e){return a(f(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return i(f(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return i(f(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){p(this,1,e,o,t)},setUint8:function(e,t){p(this,1,e,o,t)},setInt16:function(e,t){p(this,2,e,s,t,arguments[2])},setUint16:function(e,t){p(this,2,e,s,t,arguments[2])},setInt32:function(e,t){p(this,4,e,u,t,arguments[2])},setUint32:function(e,t){p(this,4,e,u,t,arguments[2])},setFloat32:function(e,t){p(this,4,e,c,t,arguments[2])},setFloat64:function(e,t){p(this,8,e,l,t,arguments[2])}});T(O,"ArrayBuffer"),T(A,"DataView"),y(A[S],v.VIEW,!0),t.ArrayBuffer=O,t.DataView=A},function(e,t,n){"use strict";(function(t){function r(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var i=n(16),a=n(303),o={"Content-Type":"application/x-www-form-urlencoded"},s={adapter:function(){var e;return"undefined"!=typeof XMLHttpRequest?e=n(123):void 0!==t&&(e=n(123)),e}(),transformRequest:[function(e,t){return a(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e)?e:i.isArrayBufferView(e)?e.buffer:i.isURLSearchParams(e)?(r(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):i.isObject(e)?(r(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],function(e){s.headers[e]={}}),i.forEach(["post","put","patch"],function(e){s.headers[e]=i.merge(o)}),e.exports=s}).call(this,n(302))},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){e.exports=!n(7)&&!n(1)(function(){return 7!=Object.defineProperty(n(65)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(2),i=n(8),a=n(32),o=n(67),s=n(6).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=a?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:o.f(e)})}},function(e,t,n){var r=n(12),i=n(14),a=n(50)(!1),o=n(68)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),u=0,l=[];for(n in s)n!=o&&r(s,n)&&l.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~a(l,n)||l.push(n));return l}},function(e,t,n){var r=n(6),i=n(4),a=n(33);e.exports=n(7)?Object.defineProperties:function(e,t){i(e);for(var n,o=a(t),s=o.length,u=0;s>u;)r.f(e,n=o[u++],t[n]);return e}},function(e,t,n){var r=n(14),i=n(36).f,a={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return o&&"[object Window]"==a.call(e)?function(e){try{return i(e)}catch(e){return o.slice()}}(e):i(r(e))}},function(e,t,n){"use strict";var r=n(33),i=n(51),a=n(46),o=n(15),s=n(45),u=Object.assign;e.exports=!u||n(1)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r})?function(e,t){for(var n=o(e),u=arguments.length,l=1,c=i.f,d=a.f;u>l;)for(var f,p=s(arguments[l++]),h=c?r(p).concat(c(p)):r(p),_=h.length,m=0;_>m;)d.call(p,f=h[m++])&&(n[f]=p[f]);return n}:u},function(e,t,n){"use strict";var r=n(22),i=n(3),a=n(99),o=[].slice,s={};e.exports=Function.bind||function(e){var t=r(this),n=o.call(arguments,1),u=function(){var r=n.concat(o.call(arguments));return this instanceof u?function(e,t,n){if(!(t in s)){for(var r=[],i=0;i>>0||(o.test(n)?16:10))}:r},function(e,t,n){var r=n(2).parseFloat,i=n(53).trim;e.exports=1/r(n(73)+"-0")!=-1/0?function(e){var t=i(String(e),3),n=r(t);return 0===n&&"-"==t.charAt(0)?-0:n}:r},function(e,t,n){var r=n(23);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=r(e))throw TypeError(t);return+e}},function(e,t,n){var r=n(3),i=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&i(e)===e}},function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t,n){var r=n(25),i=n(24);e.exports=function(e){return function(t,n){var a,o,s=String(i(t)),u=r(n),l=s.length;return u<0||u>=l?e?"":void 0:(a=s.charCodeAt(u))<55296||a>56319||u+1===l||(o=s.charCodeAt(u+1))<56320||o>57343?e?s.charAt(u):a:e?s.slice(u,u+2):o-56320+(a-55296<<10)+65536}}},function(e,t,n){"use strict";var r=n(35),i=n(30),a=n(38),o={};n(13)(o,n(5)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(o,{next:i(1,n)}),a(e,t+" Iterator")}},function(e,t,n){var r=n(4);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var a=e.return;throw void 0!==a&&r(a.call(e)),t}}},function(e,t,n){var r=n(22),i=n(15),a=n(45),o=n(9);e.exports=function(e,t,n,s,u){r(t);var l=i(e),c=a(l),d=o(l.length),f=u?d-1:0,p=u?-1:1;if(n<2)for(;;){if(f in c){s=c[f],f+=p;break}if(f+=p,u?f<0:d<=f)throw TypeError("Reduce of empty array with no initial value")}for(;u?f>=0:d>f;f+=p)f in c&&(s=t(s,c[f],f,l));return s}},function(e,t,n){"use strict";var r=n(15),i=n(34),a=n(9);e.exports=[].copyWithin||function(e,t){var n=r(this),o=a(n.length),s=i(e,o),u=i(t,o),l=arguments.length>2?arguments[2]:void 0,c=Math.min((void 0===l?o:i(l,o))-u,o-s),d=1;for(u0;)u in n?n[s]=n[u]:delete n[s],s+=d,u+=d;return n}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){n(7)&&"g"!=/./g.flags&&n(6).f(RegExp.prototype,"flags",{configurable:!0,get:n(87)})},function(e,t,n){"use strict";var r,i,a,o,s=n(32),u=n(2),l=n(21),c=n(52),d=n(0),f=n(3),p=n(22),h=n(42),_=n(56),m=n(57),v=n(88).set,y=n(245)(),g=n(113),M=n(246),L=n(58),b=n(114),w=u.TypeError,k=u.process,Y=k&&k.versions,x=Y&&Y.v8||"",D=u.Promise,T="process"==c(k),S=function(){},j=i=g.f,O=!!function(){try{var e=D.resolve(1),t=(e.constructor={})[n(5)("species")]=function(e){e(S,S)};return(T||"function"==typeof PromiseRejectionEvent)&&e.then(S)instanceof t&&0!==x.indexOf("6.6")&&-1===L.indexOf("Chrome/66")}catch(e){}}(),A=function(e){var t;return!(!f(e)||"function"!=typeof(t=e.then))&&t},H=function(e,t){if(!e._n){e._n=!0;var n=e._c;y(function(){for(var r=e._v,i=1==e._s,a=0;n.length>a;)!function(t){var n,a,o,s=i?t.ok:t.fail,u=t.resolve,l=t.reject,c=t.domain;try{s?(i||(2==e._h&&C(e),e._h=1),!0===s?n=r:(c&&c.enter(),n=s(r),c&&(c.exit(),o=!0)),n===t.promise?l(w("Promise-chain cycle")):(a=A(n))?a.call(n,u,l):u(n)):l(r)}catch(e){c&&!o&&c.exit(),l(e)}}(n[a++]);e._c=[],e._n=!1,t&&!e._h&&E(e)})}},E=function(e){v.call(u,function(){var t,n,r,i=e._v,a=P(e);if(a&&(t=M(function(){T?k.emit("unhandledRejection",i,e):(n=u.onunhandledrejection)?n({promise:e,reason:i}):(r=u.console)&&r.error&&r.error("Unhandled promise rejection",i)}),e._h=T||P(e)?2:1),e._a=void 0,a&&t.e)throw t.v})},P=function(e){return 1!==e._h&&0===(e._a||e._c).length},C=function(e){v.call(u,function(){var t;T?k.emit("rejectionHandled",e):(t=u.onrejectionhandled)&&t({promise:e,reason:e._v})})},N=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),H(t,!0))},F=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw w("Promise can't be resolved itself");(t=A(e))?y(function(){var r={_w:n,_d:!1};try{t.call(e,l(F,r,1),l(N,r,1))}catch(e){N.call(r,e)}}):(n._v=e,n._s=1,H(n,!1))}catch(e){N.call({_w:n,_d:!1},e)}}};O||(D=function(e){h(this,D,"Promise","_h"),p(e),r.call(this);try{e(l(F,this,1),l(N,this,1))}catch(e){N.call(this,e)}},(r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(43)(D.prototype,{then:function(e,t){var n=j(m(this,D));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=T?k.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&H(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),a=function(){var e=new r;this.promise=e,this.resolve=l(F,e,1),this.reject=l(N,e,1)},g.f=j=function(e){return e===D||e===o?new a(e):i(e)}),d(d.G+d.W+d.F*!O,{Promise:D}),n(38)(D,"Promise"),n(41)("Promise"),o=n(8).Promise,d(d.S+d.F*!O,"Promise",{reject:function(e){var t=j(this);return(0,t.reject)(e),t.promise}}),d(d.S+d.F*(s||!O),"Promise",{resolve:function(e){return b(s&&this===o?D:this,e)}}),d(d.S+d.F*!(O&&n(54)(function(e){D.all(e).catch(S)})),"Promise",{all:function(e){var t=this,n=j(t),r=n.resolve,i=n.reject,a=M(function(){var n=[],a=0,o=1;_(e,!1,function(e){var s=a++,u=!1;n.push(void 0),o++,t.resolve(e).then(function(e){u||(u=!0,n[s]=e,--o||r(n))},i)}),--o||r(n)});return a.e&&i(a.v),n.promise},race:function(e){var t=this,n=j(t),r=n.reject,i=M(function(){_(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},function(e,t,n){"use strict";var r=n(22);e.exports.f=function(e){return new function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)}(e)}},function(e,t,n){var r=n(4),i=n(3),a=n(113);e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=a.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var r=n(6).f,i=n(35),a=n(43),o=n(21),s=n(42),u=n(56),l=n(78),c=n(110),d=n(41),f=n(7),p=n(28).fastKey,h=n(44),_=f?"_s":"size",m=function(e,t){var n,r=p(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,l){var c=e(function(e,r){s(e,c,t,"_i"),e._t=t,e._i=i(null),e._f=void 0,e._l=void 0,e[_]=0,void 0!=r&&u(r,n,e[l],e)});return a(c.prototype,{clear:function(){for(var e=h(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[_]=0},delete:function(e){var n=h(this,t),r=m(n,e);if(r){var i=r.n,a=r.p;delete n._i[r.i],r.r=!0,a&&(a.n=i),i&&(i.p=a),n._f==r&&(n._f=i),n._l==r&&(n._l=a),n[_]--}return!!r},forEach:function(e){h(this,t);for(var n,r=o(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!m(h(this,t),e)}}),f&&r(c.prototype,"size",{get:function(){return h(this,t)[_]}}),c},def:function(e,t,n){var r,i,a=m(e,t);return a?a.v=n:(e._l=a={i:i=p(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=a),r&&(r.n=a),e[_]++,"F"!==i&&(e._i[i]=a)),e},getEntry:m,setStrong:function(e,t,n){l(e,t,function(e,n){this._t=h(e,t),this._k=n,this._l=void 0},function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?c(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,c(1))},n?"entries":"values",!n,!0),d(t)}}},function(e,t,n){"use strict";var r=n(43),i=n(28).getWeak,a=n(4),o=n(3),s=n(42),u=n(56),l=n(20),c=n(12),d=n(44),f=l(5),p=l(6),h=0,_=function(e){return e._l||(e._l=new m)},m=function(){this.a=[]},v=function(e,t){return f(e.a,function(e){return e[0]===t})};m.prototype={get:function(e){var t=v(this,e);if(t)return t[1]},has:function(e){return!!v(this,e)},set:function(e,t){var n=v(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=p(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,a){var l=e(function(e,r){s(e,l,t,"_i"),e._t=t,e._i=h++,e._l=void 0,void 0!=r&&u(r,n,e[a],e)});return r(l.prototype,{delete:function(e){if(!o(e))return!1;var n=i(e);return!0===n?_(d(this,t)).delete(e):n&&c(n,this._i)&&delete n[this._i]},has:function(e){if(!o(e))return!1;var n=i(e);return!0===n?_(d(this,t)).has(e):n&&c(n,this._i)}}),l},def:function(e,t,n){var r=i(a(t),!0);return!0===r?_(e).set(t,n):r[e._i]=n,e},ufstore:_}},function(e,t,n){var r=n(25),i=n(9);e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=i(t);if(t!==n)throw RangeError("Wrong length!");return n}},function(e,t,n){var r=n(36),i=n(51),a=n(4),o=n(2).Reflect;e.exports=o&&o.ownKeys||function(e){var t=r.f(a(e)),n=i.f;return n?t.concat(n(e)):t}},function(e,t,n){var r=n(9),i=n(75),a=n(24);e.exports=function(e,t,n,o){var s=String(a(e)),u=s.length,l=void 0===n?" ":String(n),c=r(t);if(c<=u||""==l)return s;var d=c-u,f=i.call(l,Math.ceil(d/l.length));return f.length>d&&(f=f.slice(0,d)),o?f+s:s+f}},function(e,t,n){var r=n(33),i=n(14),a=n(46).f;e.exports=function(e){return function(t){for(var n,o=i(t),s=r(o),u=s.length,l=0,c=[];u>l;)a.call(o,n=s[l++])&&c.push(e?[n,o[n]]:o[n]);return c}}},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(11),i=n(23),a=n(28),o=n(19),s=n(64);e.exports=function(e,t){var n=1==e,u=2==e,l=3==e,c=4==e,d=6==e,f=5==e||d,p=t||s;return function(t,s,h){for(var _,m,v=a(t),y=i(v),g=r(s,h,3),M=o(y.length),L=0,b=n?p(t,M):u?p(t,0):void 0;M>L;L++)if((f||L in y)&&(_=y[L],m=g(_,L,v),e))if(n)b[L]=m;else if(m)switch(e){case 3:return!0;case 5:return _;case 6:return L;case 2:b.push(_)}else if(c)return!1;return d?-1:l||c?c:b}}},function(e,t,n){var r=n(5),i=n(0).document,a=r(i)&&r(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(9);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t){e.exports=!1},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(13).f,i=n(12),a=n(1)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},function(e,t,n){var r=n(49)("keys"),i=n(30);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t,n){var r=n(16);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(5);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t,n){"use strict";var r=n(0),i=n(12),a=n(9),o=n(67),s=n(29),u=n(7),l=n(77).f,c=n(45).f,d=n(13).f,f=n(51).trim,p=r.Number,h=p,_=p.prototype,m="Number"==a(n(44)(_)),v="trim"in String.prototype,y=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){var n,r,i,a=(t=v?t.trim():f(t,3)).charCodeAt(0);if(43===a||45===a){if(88===(n=t.charCodeAt(2))||120===n)return NaN}else if(48===a){switch(t.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+t}for(var o,u=t.slice(2),l=0,c=u.length;li)return NaN;return parseInt(u,r)}}return+t};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof p&&(m?u(function(){_.valueOf.call(n)}):"Number"!=a(n))?o(new h(y(t)),n,p):y(t)};for(var g,M=n(4)?l(h):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),L=0;M.length>L;L++)i(h,g=M[L])&&!i(p,g)&&d(p,g,c(h,g));p.prototype=_,_.constructor=p,n(6)(r,"Number",p)}},function(e,t,n){"use strict";function r(e){return!(0===e||(!Array.isArray(e)||0!==e.length)&&e)}function i(e){return function(){return!e.apply(void 0,arguments)}}function a(e,t,n,r){return e.filter(function(e){return function(e,t){return void 0===e&&(e="undefined"),null===e&&(e="null"),!1===e&&(e="false"),-1!==e.toString().toLowerCase().indexOf(t.trim())}(r(e,n),t)})}function o(e){return e.filter(function(e){return!e.$isLabel})}function s(e,t){return function(n){return n.reduce(function(n,r){return r[e]&&r[e].length?(n.push({$groupLabel:r[t],$isLabel:!0}),n.concat(r[e])):n},[])}}function u(e,t,r,i,o){return function(s){return s.map(function(s){var u;if(!s[r])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];var l=a(s[r],e,t,o);return l.length?(u={},n.i(p.a)(u,i,s[i]),n.i(p.a)(u,r,l),u):[]})}}var l=n(59),c=n(54),d=(n.n(c),n(95)),f=(n.n(d),n(31)),p=(n.n(f),n(58)),h=n(91),_=(n.n(h),n(98)),m=(n.n(_),n(92)),v=(n.n(m),n(88)),y=(n.n(v),n(97)),g=(n.n(y),n(89)),M=(n.n(g),n(96)),L=(n.n(M),n(93)),b=(n.n(L),n(90)),w=(n.n(b),function(){for(var e=arguments.length,t=new Array(e),n=0;n-1},isSelected:function(e){var t=this.trackBy?e[this.trackBy]:e;return this.valueKeys.indexOf(t)>-1},getOptionLabel:function(e){if(r(e))return"";if(e.isTag)return e.label;if(e.$isLabel)return e.$groupLabel;var t=this.customLabel(e,this.label);return r(t)?"":t},select:function(e,t){if(e.$isLabel&&this.groupSelect)this.selectGroup(e);else if(!(-1!==this.blockKeys.indexOf(t)||this.disabled||e.$isDisabled||e.$isLabel)&&(!this.max||!this.multiple||this.internalValue.length!==this.max)&&("Tab"!==t||this.pointerDirty)){if(e.isTag)this.$emit("tag",e.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(e))return void("Tab"!==t&&this.removeElement(e));this.$emit("select",e,this.id),this.multiple?this.$emit("input",this.internalValue.concat([e]),this.id):this.$emit("input",e,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup:function(e){var t=this,n=this.options.find(function(n){return n[t.groupLabel]===e.$groupLabel});if(n)if(this.wholeGroupSelected(n)){this.$emit("remove",n[this.groupValues],this.id);var r=this.internalValue.filter(function(e){return-1===n[t.groupValues].indexOf(e)});this.$emit("input",r,this.id)}else{var a=n[this.groupValues].filter(i(this.isSelected));this.$emit("select",a,this.id),this.$emit("input",this.internalValue.concat(a),this.id)}},wholeGroupSelected:function(e){return e[this.groupValues].every(this.isSelected)},removeElement:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!this.disabled){if(!this.allowEmpty&&this.internalValue.length<=1)return void this.deactivate();var r="object"===n.i(l.a)(e)?this.valueKeys.indexOf(e[this.trackBy]):this.valueKeys.indexOf(e);if(this.$emit("remove",e,this.id),this.multiple){var i=this.internalValue.slice(0,r).concat(this.internalValue.slice(r+1));this.$emit("input",i,this.id)}else this.$emit("input",null,this.id);this.closeOnSelect&&t&&this.deactivate()}},removeLastElement:function(){-1===this.blockKeys.indexOf("Delete")&&0===this.search.length&&Array.isArray(this.internalValue)&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate:function(){var e=this;this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&0===this.pointer&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.$nextTick(function(){return e.$refs.search.focus()})):this.$el.focus(),this.$emit("open",this.id))},deactivate:function(){this.isOpen&&(this.isOpen=!1,this.searchable?this.$refs.search.blur():this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle:function(){this.isOpen?this.deactivate():this.activate()},adjustPosition:function(){if("undefined"!=typeof window){var e=this.$el.getBoundingClientRect().top,t=window.innerHeight-this.$el.getBoundingClientRect().bottom;t>this.maxHeight||t>e||"below"===this.openDirection||"bottom"===this.openDirection?(this.prefferedOpenDirection="below",this.optimizedHeight=Math.min(t-40,this.maxHeight)):(this.prefferedOpenDirection="above",this.optimizedHeight=Math.min(e-40,this.maxHeight))}}}}},function(e,t,n){"use strict";var r=n(54),i=(n.n(r),n(31));n.n(i),t.a={data:function(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition:function(){return this.pointer*this.optionHeight},visibleElements:function(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions:function(){this.pointerAdjust()},isOpen:function(){this.pointerDirty=!1}},methods:{optionHighlight:function(e,t){return{"multiselect__option--highlight":e===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(t)}},groupHighlight:function(e,t){var n=this;if(!this.groupSelect)return["multiselect__option--group","multiselect__option--disabled"];var r=this.options.find(function(e){return e[n.groupLabel]===t.$groupLabel});return["multiselect__option--group",{"multiselect__option--highlight":e===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(r)}]},addPointerElement:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Enter",t=e.key;this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],t),this.pointerReset()},pointerForward:function(){this.pointer0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset:function(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust:function(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet:function(e){this.pointer=e,this.pointerDirty=!0}}}},function(e,t,n){"use strict";var r=n(36),i=n(74),a=n(15),o=n(18);e.exports=n(72)(Array,"Array",function(e,t){this._t=o(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),a.Arguments=a.Array,r("keys"),r("values"),r("entries")},function(e,t,n){"use strict";var r=n(31),i=(n.n(r),n(32)),a=n(33);t.a={name:"vue-multiselect",mixins:[i.a,a.a],props:{name:{type:String,default:""},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:function(e){return"and ".concat(e," more")}},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0}},computed:{isSingleLabelVisible:function(){return this.singleValue&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible:function(){return!(this.internalValue.length||this.searchable&&this.isOpen)},visibleValues:function(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue:function(){return this.internalValue[0]},deselectLabelText:function(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText:function(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText:function(){return this.showLabels?this.selectLabel:""},selectGroupLabelText:function(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText:function(){return this.showLabels?this.selectedLabel:""},inputStyle:function(){if(this.searchable||this.multiple&&this.value&&this.value.length)return this.isOpen?{width:"auto"}:{width:"0",position:"absolute",padding:"0"}},contentStyle:function(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove:function(){return"above"===this.openDirection||"top"===this.openDirection||"below"!==this.openDirection&&"bottom"!==this.openDirection&&"above"===this.prefferedOpenDirection},showSearchInput:function(){return this.searchable&&(!this.hasSingleSelectedSlot||!this.visibleSingleValue&&0!==this.visibleSingleValue||this.isOpen)}}}},function(e,t,n){var r=n(1)("unscopables"),i=Array.prototype;void 0==i[r]&&n(8)(i,r,{}),e.exports=function(e){i[r][e]=!0}},function(e,t,n){var r=n(18),i=n(19),a=n(85);e.exports=function(e){return function(t,n,o){var s,u=r(t),l=i(u.length),c=a(o,l);if(e&&n!=n){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}}},function(e,t,n){var r=n(9),i=n(1)("toStringTag"),a="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:a?r(t):"Object"==(o=r(t))&&"function"==typeof t.callee?"Arguments":o}},function(e,t,n){"use strict";var r=n(2);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){var r=n(0).document;e.exports=r&&r.documentElement},function(e,t,n){e.exports=!n(4)&&!n(7)(function(){return 7!=Object.defineProperty(n(21)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(9);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){"use strict";var r=n(14);e.exports.f=function(e){return new function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)}(e)}},function(e,t,n){var r=n(2),i=n(76),a=n(22),o=n(27)("IE_PROTO"),s=function(){},u=function(){var e,t=n(21)("iframe"),r=a.length;for(t.style.display="none",n(40).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(" - diff --git a/src/js/components/_base-CloudDiv.vue b/src/js/components/_base-CloudDiv.vue index e15b0c951..ec4fd1a78 100644 --- a/src/js/components/_base-CloudDiv.vue +++ b/src/js/components/_base-CloudDiv.vue @@ -22,21 +22,43 @@ /* global Vue, oc_userconfig */ diff --git a/src/js/components/_base-LoadingOverlay.vue b/src/js/components/_base-LoadingOverlay.vue new file mode 100644 index 000000000..dcc982b8c --- /dev/null +++ b/src/js/components/_base-LoadingOverlay.vue @@ -0,0 +1,31 @@ + + + diff --git a/src/js/components/_base-sideBar.vue b/src/js/components/_base-SideBar.vue similarity index 95% rename from src/js/components/_base-sideBar.vue rename to src/js/components/_base-SideBar.vue index 67006b284..934ac7647 100644 --- a/src/js/components/_base-sideBar.vue +++ b/src/js/components/_base-SideBar.vue @@ -21,9 +21,9 @@ --> diff --git a/src/js/components/shareDiv.vue b/src/js/components/shareDiv.vue index b50084014..8d6fb0249 100644 --- a/src/js/components/shareDiv.vue +++ b/src/js/components/shareDiv.vue @@ -21,39 +21,74 @@ --> diff --git a/src/js/components/sideBarClose.vue b/src/js/components/sideBarClose.vue index db2be8b1a..cecd00bca 100644 --- a/src/js/components/sideBarClose.vue +++ b/src/js/components/sideBarClose.vue @@ -21,9 +21,11 @@ --> diff --git a/src/js/main.js b/src/js/main.js index 1c73cd84a..07234a8d9 100644 --- a/src/js/main.js +++ b/src/js/main.js @@ -1,4 +1,4 @@ -/*jshint esversion: 6 */ +/* jshint esversion: 6 */ /** * @copyright Copyright (c) 2018 René Gieling * @@ -21,36 +21,58 @@ * */ -import Vue from 'vue'; -import Create from './Create.vue'; -import {DatetimePicker} from 'nextcloud-vue'; -import Controls from './components/_base-controls.vue'; -import SideBarClose from './components/sideBarClose.vue'; -import UserDiv from './components/_base-UserDiv.vue'; -import SideBar from './components/_base-SideBar.vue'; -import ShareDiv from './components/shareDiv.vue'; - -Vue.config.debug = true -Vue.config.devTools = true -Vue.component('Controls', Controls); -Vue.component('DatePicker', DatetimePicker); -Vue.component('SideBarClose', SideBarClose); -Vue.component('UserDiv', UserDiv); -Vue.component('SideBar', SideBar); -Vue.component('ShareDiv', ShareDiv); - -Vue.mixin({ - methods: { - t: function(app, text, vars, count, options) { - return OC.L10N.translate(app, text, vars, count, options) - }, - n: function(app, textSingular, textPlural, count, vars, options) { - return OC.L10N.translatePlural(app, textSingular, textPlural, count, vars, options) - } - } -}); +import Vue from 'vue' +import router from './router' +import axios from 'nextcloud-axios' +import App from './App.vue' +import vClickOutside from 'v-click-outside' +import VueClipboard from 'vue-clipboard2' +import { DatetimePicker, PopoverMenu, Tooltip } from 'nextcloud-vue' + +import Modal from './plugins/plugin.js' +import Controls from './components/_base-Controls' +import UserDiv from './components/_base-UserDiv' +import SideBar from './components/_base-SideBar' +import SideBarClose from './components/sideBarClose' +import ShareDiv from './components/shareDiv' +import LoadingOverlay from './components/_base-LoadingOverlay' + +Vue.config.debug = process.env.NODE_ENV !== 'production' +Vue.config.devTools = process.env.NODE_ENV !== 'production' +Vue.component('Controls', Controls) +Vue.component('PopoverMenu', PopoverMenu) +Vue.component('DatePicker', DatetimePicker) +Vue.component('UserDiv', UserDiv) +Vue.component('SideBar', SideBar) +Vue.component('SideBarClose', SideBarClose) +Vue.component('ShareDiv', ShareDiv) +Vue.component('LoadingOverlay', LoadingOverlay) + +Vue.directive('tooltip', Tooltip) + +Vue.use(vClickOutside) +Vue.use(VueClipboard) +Vue.use(Modal) + +Vue.prototype.t = t +Vue.prototype.n = n +Vue.prototype.$http = axios +Vue.prototype.OC = OC +Vue.prototype.OCA = OCA + +// CSP config for webpack dynamic chunk loading +// eslint-disable-next-line +__webpack_nonce__ = btoa(OC.requestToken) + +// Correct the root of the app for chunk loading +// OC.linkTo matches the apps folders +// eslint-disable-next-line +__webpack_public_path__ = OC.linkTo('polls', 'js/') + +/* eslint-disable-next-line no-new */ new Vue({ - el: '#create-poll', - render: h => h(Create) -}); + el: '#app-polls', + router: router, + render: h => h(App) +}) diff --git a/src/js/plugins/modalDialog.vue b/src/js/plugins/modalDialog.vue new file mode 100644 index 000000000..43cd6aae4 --- /dev/null +++ b/src/js/plugins/modalDialog.vue @@ -0,0 +1,96 @@ + + + + + diff --git a/src/js/plugins/plugin.js b/src/js/plugins/plugin.js new file mode 100644 index 000000000..4047c86b0 --- /dev/null +++ b/src/js/plugins/plugin.js @@ -0,0 +1,30 @@ +/* jshint esversion: 6 */ +// we need our modal component +import ModalDialog from './modalDialog.vue' + +const Modal = { + // every plugin for Vue.js needs install method + // this method will run after Vue.use() is executed + install(Vue, options) { + // We must create new Eventbus + // which is just another Vue instance that will be listening for and emiting events from our main instance + // this EventBus will be available as Modal.EventBus + this.EventBus = new Vue() + + // making our modal component global + Vue.component('modal-dialog', ModalDialog) + + // exposing global $modal object with method show() + // method show() takes object params as argument + // inside this object we can have modal title, text, styles... and also our callback confirm function + Vue.prototype.$modal = { + show(params) { + // if we use this.$modal.show(params) inside our original Vue instance + // we will emit 'show' event with parameters 'params' + Modal.EventBus.$emit('show', params) + } + } + } +} + +export default Modal diff --git a/src/js/router.js b/src/js/router.js new file mode 100644 index 000000000..de881dd01 --- /dev/null +++ b/src/js/router.js @@ -0,0 +1,72 @@ +/* jshint esversion: 6 */ +/** + * @copyright Copyright (c) 2018 Julius Härtl + * @copyright Copyright (c) 2018 John Molakvoæ + * + * @author Julius Härtl + * @author John Molakvoæ + * + * @license GNU AGPL version 3 or any later version + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + * + */ +import Vue from 'vue' +import Router from 'vue-router' + +// Dynamic loading +const Create = () => import('./views/Create') +const List = () => import('./views/List') + +Vue.use(Router) + +export default new Router({ + mode: 'history', + base: OC.generateUrl(''), + linkActiveClass: 'active', + routes: [ + { + path: '/:index(index.php/)?apps/polls/', + components: { + default: List + }, + props: false, + name: 'list' + }, + { + path: '/:index(index.php/)?apps/polls/edit/:hash', + components: { + default: Create + }, + props: true, + name: 'edit' + }, + { + path: '/:index(index.php/)?apps/polls/clone/:hash', + components: { + default: Create + }, + props: true, + name: 'clone' + }, + { + path: '/:index(index.php/)?apps/polls/new', + components: { + default: Create + }, + props: false, + name: 'create' + } + ] +}) diff --git a/src/js/Create.vue b/src/js/views/Create.vue similarity index 52% rename from src/js/Create.vue rename to src/js/views/Create.vue index 238152704..ba0c204ff 100644 --- a/src/js/Create.vue +++ b/src/js/views/Create.vue @@ -20,16 +20,16 @@ - --> -