From 3aa2f6be6900713127f09d28ae4733fc8f0e15cc Mon Sep 17 00:00:00 2001 From: Benjamin David Date: Sat, 18 Nov 2017 13:31:27 +0100 Subject: [PATCH] Use webpack / laravel-mix to build the Plugin Store --- mix-manifest.json | 5 + package.json | 16 + src/web/assets/pluginstore/dist/css/main.css | 591 +------------- .../assets/pluginstore/dist/css/main.css.map | 2 +- src/web/assets/pluginstore/dist/js/main.js | 743 +----------------- src/web/assets/pluginstore/gulpfile.js | 22 - src/web/assets/pluginstore/package.json | 17 - webpack.mix.js | 23 + 8 files changed, 48 insertions(+), 1371 deletions(-) create mode 100644 mix-manifest.json delete mode 100644 src/web/assets/pluginstore/gulpfile.js delete mode 100644 src/web/assets/pluginstore/package.json create mode 100644 webpack.mix.js diff --git a/mix-manifest.json b/mix-manifest.json new file mode 100644 index 0000000000..b397ff54e4 --- /dev/null +++ b/mix-manifest.json @@ -0,0 +1,5 @@ +{ + "/src/web/assets/pluginstore/dist/js/main.js": "/src/web/assets/pluginstore/dist/js/main.js", + "/src/web/assets/pluginstore/dist/css/main.css": "/src/web/assets/pluginstore/dist/css/main.css", + "/src/web/assets/pluginstore/dist/css/main.css.map": "/src/web/assets/pluginstore/dist/css/main.css.map" +} \ No newline at end of file diff --git a/package.json b/package.json index 0e3ba96bb7..0e1aeab11a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,21 @@ { "private": true, "main": "gulpfile.js", + "scripts": { + "dev": "NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", + "watch": "NODE_ENV=development node_modules/webpack/bin/webpack.js --watch --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js", + "hot": "NODE_ENV=development webpack-dev-server --inline --hot --config=node_modules/laravel-mix/setup/webpack.config.js", + "production": "NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js" + }, + "dependencies": { + "lodash": "^4.17.4", + "marked": "^0.3.6", + "vue": "^2.4.4", + "vue-lodash": "^1.0.3", + "vue-resource": "^1.3.3", + "vue-router": "^2.5.3", + "vuex": "^2.3.1" + }, "devDependencies": { "autoprefixer": "^7.1.4", "bootstrap": "3.3.* || 3.2.* || 3.1.*", @@ -28,6 +43,7 @@ "inputmask": "~3.2.2 || ~3.3.5", "jquery": "3.2.* || 3.1.* || 2.2.* || 2.1.* || 1.11.* || 1.12.*", "jquery.payment": "^3.0.0", + "laravel-mix": "^1.6.1", "picturefill": "^3.0.2", "punycode": "1.3.*", "selectize": "^0.12.4", diff --git a/src/web/assets/pluginstore/dist/css/main.css b/src/web/assets/pluginstore/dist/css/main.css index bb7573e52d..554c14585e 100644 --- a/src/web/assets/pluginstore/dist/css/main.css +++ b/src/web/assets/pluginstore/dist/css/main.css @@ -1,589 +1,2 @@ -#main-container { - position: relative; -} - -.stripe-card-form { - margin-bottom: 24px; -} - -.stripe-card { - border: 1px solid #ccc; - border-radius: 3px; - padding: 6px; - max-width: 390px; -} - -.stripe-card.error { - border-color: #da5a47; -} - -/* Grids */ -.ps-grid-wrapper { - display: -ms-grid; - display: grid; - -ms-grid-columns: 1fr; - grid-template-columns: 1fr; - grid-gap: 40px; -} - -.ps-grid-wrapper.has-sidebar { - -ms-grid-columns: 1fr 4fr; - grid-template-columns: 1fr 4fr; -} - -.ps-grid-plugins { - width: 100%; - display: -ms-grid; - display: grid; - -ms-grid-columns: 1fr 1fr 1fr; - grid-template-columns: 1fr 1fr 1fr; - grid-gap: 20px; - color: #444; - margin-bottom: 20px; -} - -.ps-grid-plugins-4 { - -ms-grid-columns: 1fr 1fr 1fr 1fr; - grid-template-columns: 1fr 1fr 1fr 1fr; -} - -.ps-grid-box { - background-color: #fff; - overflow: hidden; -} - -@media only screen and (max-width: 1223px) { - .ps-grid-plugins-4 { - -ms-grid-columns: 1fr 1fr 1fr; - grid-template-columns: 1fr 1fr 1fr; - } -} - -@media only screen and (max-width: 998px) { - .ps-grid-wrapper.has-sidebar { - -ms-grid-columns: 1fr; - grid-template-columns: 1fr; - } - .ps-grid-plugins { - -ms-grid-columns: 1fr 1fr; - grid-template-columns: 1fr 1fr; - } - .ps-grid-plugins-4 { - -ms-grid-columns: 1fr 1fr; - grid-template-columns: 1fr 1fr; - } -} - -@media only screen and (max-width: 673px) { - .ps-grid-plugins { - grid-gap: 10px; - } - .ps-grid-plugins { - -ms-grid-columns: 1fr; - grid-template-columns: 1fr; - } - .ps-grid-plugins-4 { - -ms-grid-columns: 1fr; - grid-template-columns: 1fr; - } -} - -/* Install */ -#thank-you { - width: 320px; - height: 150px; - position: absolute; - top: 50%; - left: 50%; - margin-top: -75px; - margin-left: -160px; - text-align: center; -} - -#thank-you h2 { - margin-top: 24px; -} - -#install { - text-align: center; - padding: 48px; -} - -#graphic { - display: inline-block; - width: 48px; - height: 48px; - background-repeat: no-repeat; - background-position: 50% 50%; -} - -#graphic.error { - background-image: url(../images/error.png); -} - -#graphic.success { - background-image: url(../images/success.png); -} - -@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (min-device-pixel-ratio: 1.5), only screen and (min-resolution: 1.5dppx) { - #graphic.error { - background-image: url(../images/error_2x.png); - background-size: 48px; - } - #graphic.success { - background-image: url(../images/success_2x.png); - background-size: 48px; - } -} - -/* Categories */ -ul.categories li { - position: relative; -} - -ul.categories li:before, ul.categories li:last-child:after { - position: absolute; - border-top: 1px solid #eee; - content: ''; - left: 0; - right: 0; -} - -ul.categories li:before { - top: 0; -} - -ul.categories li:last-child:after { - bottom: 0; -} - -ul.categories li a { - display: block; - position: relative; - padding: 10px; - padding-left: 31px; - border-top: 1px solid transparent; - border-bottom: 1px solid transparent; -} - -ul.categories li a img { - position: absolute; - top: 7px; - left: 0; - width: 24px; -} - -ul.categories li a:hover { - text-decoration: none; - z-index: 1; - background: #fafafa; - border-color: #eee; -} - -ul.categories li:hover + li:before { - border-color: transparent; -} - -/* Category Selector */ -.category-selector-btn { - display: none; - background: #fafafa; - border: 1px solid #e3e5e8; - padding: 10px 20px; - border-radius: 4px; - margin-bottom: 24px; - position: relative; - color: #8f98a3; -} - -.category-selector-btn:before { - font-family: 'Craft'; - speak: none; - -webkit-font-feature-settings: "liga", "dlig"; - -ms-font-feature-settings: "liga", "dlig"; - -o-font-feature-settings: "liga", "dlig"; - font-feature-settings: "liga", "dlig"; - text-rendering: optimizeLegibility; - font-weight: normal; - font-variant: normal; - text-transform: none; - line-height: 1; - direction: ltr; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - display: inline-block; - text-align: center; - font-style: normal; - vertical-align: middle; - word-wrap: normal !important; - -webkit-user-select: none; - -moz-user-select: none; - -ms-user-select: none; - user-select: none; - position: absolute; - top: calc(50% - 10px); - right: 0; - font-size: 16px; - width: 43px; - line-height: 20px; - content: 'downangle'; -} - -.category-selector-btn:hover { - text-decoration: none; -} - -.category-selector { - display: none; - -webkit-box-orient: vertical; - -webkit-box-direction: normal; - flex-direction: column; - position: fixed; - top: 0; - left: 0; - background: #fff; - z-index: 1000; - width: 100vw; - height: 100vh; - box-sizing: border-box; -} - -.category-selector .category-selector-header a { - padding: 14px 24px; - display: block; - color: #000; - background: #fafafa; - border-bottom: 1px solid #eee; -} - -.category-selector .category-selector-header a:hover { - text-decoration: none; -} - -.category-selector .category-selector-body { - overflow: auto; - height: 100%; - box-sizing: border-box; -} - -.category-selector .category-selector-body ul.categories li:first-child a { - border-top: 0; -} - -.category-selector .category-selector-body ul.categories li:first-child:before { - display: none; -} - -.category-selector .category-selector-body ul.categories li:before, .category-selector .category-selector-body ul.categories li:after { - left: 1rem; - right: 1rem; -} - -.category-selector .category-selector-body ul.categories li a { - padding-left: 55px; -} - -.category-selector .category-selector-body ul.categories li a img { - left: 24px; -} - -@media only screen and (max-width: 998px) { - .category-selector-btn { - display: block; - } - .category-selector { - display: -webkit-box; - display: flex; - } - .categories-wrapper { - display: none; - } -} - -/* Cart */ -.cart-review { - padding: 24px; - border: 1px solid #eee; - margin-top: 24px; -} - -.cart-review table th, -.cart-review table td { - padding: 3px 0; - font-size: 1.2em; -} - -.cart-review table th { - width: 100px; -} - -/* CreditCard */ -.credit-card { - margin: 24px 0; -} - -/* GlobalModal */ -.globalmodal { - max-width: 850px; - max-height: 650px; -} - -.globalmodal .globalmodalcontent { - position: relative; - height: 100%; - display: -webkit-box; - display: flex; - -webkit-box-orient: vertical; - -webkit-box-direction: normal; - flex-direction: column; -} - -.globalmodal .globalmodalcontent header .btn-left { - position: absolute; - top: 28px; - left: 24px; -} - -.globalmodal .globalmodalcontent header h1 { - text-align: center; -} - -.globalmodal .globalmodalcontent .body { - position: relative; - display: -webkit-box; - display: flex; - -webkit-box-flex: 1; - flex-grow: 1; -} - -.globalmodal .globalmodalcontent .body .content { - margin: -24px; - padding: 24px; - overflow: auto; - -webkit-box-flex: 1; - flex-grow: 1; -} - -/* Payment */ -.block { - position: relative; -} - -.block .block-toggle { - position: absolute; - top: 0; - right: 0; -} - -/* PluginCard */ -.plugin-card { - display: -webkit-box; - display: flex; - padding: 20px; - border: 1px solid #E3E5E8; - border-radius: 5px; - height: 100px; -} - -.plugin-card:hover { - cursor: pointer; - background: #fafafa; -} - -.plugin-card .plugin-icon { - margin-right: 14px; -} - -@media only screen and (max-width: 673px) { - .plugin-card { - height: 60px; - } -} - -.plugin-icon, -.plugin-icon img { - width: 32px; - height: 32px; - border-radius: 4px; -} - -.plugin-icon-large, -.plugin-icon-large img { - width: 72px; - height: 72px; - border-radius: 6px; -} - -.plugin-icon .default-icon { - display: inline-block; - background: #eee; - overflow: hidden; - width: 32px; - height: 32px; - border-radius: 4px; -} - -/* PluginDetails */ -.plugin-details { - position: relative; - -webkit-box-flex: 1; - flex-grow: 1; - display: -webkit-box; - display: flex; - -webkit-box-orient: vertical; - -webkit-box-direction: normal; - flex-direction: column; -} - -.plugin-details .plugin-details-header { - flex-shrink: 0; - display: -webkit-box; - display: flex; - border-bottom: 1px solid #eee; - padding: 24px; -} - -.plugin-details .plugin-details-header .plugin-icon-large { - margin-right: 14px; -} - -.plugin-details .plugin-details-header .description { - -webkit-box-flex: 1; - flex-grow: 1; - margin-left: 14px; -} - -.plugin-details .plugin-details-header .description h2 { - margin-bottom: 10px; -} - -.plugin-details .plugin-details-header .description p { - margin: 0.4em 0; -} - -.plugin-details .plugin-details-header .buttons { - margin-top: 0; -} - -.plugin-details .plugin-details-body { - -webkit-box-flex: 1; - flex-grow: 1; - display: -webkit-box; - display: flex; - position: relative; -} - -.plugin-details .plugin-details-body .plugin-details-loading { - position: absolute; - top: 50%; - left: 50%; - -webkit-transform: translate(-50%, -50%); - transform: translate(-50%, -50%); -} - -.plugin-details .plugin-details-body .plugin-description { - -webkit-box-flex: 1; - flex-grow: 1; - min-width: 0; - padding: 24px; - overflow: auto; -} - -.plugin-details .plugin-details-body .plugin-description img { - max-width: 100%; -} - -.plugin-details .plugin-details-body .plugin-description pre { - background: #eee; - padding: 24px; - overflow: auto; -} - -.plugin-details .plugin-details-body .plugin-sidebar { - -webkit-box-flex: 0; - flex: 0 0 260px; - width: 260px; - background: #fafafa; - border-left: 1px solid #eee; - overflow: auto; -} - -.plugin-details .plugin-details-body .plugin-sidebar .plugin-meta { - /*border: 1px solid #eee;*/ - border-radius: 4px; - padding: 24px; -} - -.plugin-details .plugin-details-body .plugin-sidebar .plugin-meta ul li { - display: -webkit-box; - display: flex; - border-bottom: 1px solid #eee; - padding: 7px 0; -} - -.plugin-details .plugin-details-body .plugin-sidebar .plugin-meta ul li:last-child { - border-bottom: 0; -} - -.plugin-details .plugin-details-body .plugin-sidebar .plugin-meta ul li span, -.plugin-details .plugin-details-body .plugin-sidebar .plugin-meta ul li strong { - -webkit-box-flex: 1; - flex-grow: 1; -} - -.plugin-details .plugin-details-body .plugin-sidebar .plugin-meta ul li strong { - text-align: right; -} - -.plugin-details .plugin-details-body .screenshots { - margin-top: 24px; -} - -.plugin-details .plugin-details-body .screenshots img { - width: 100%; - margin-bottom: 24px; -} - -/* PluginSearch */ -#container { - position: static !important; - /* #container hack required for modal overlays */ -} - -/* Developer */ -.developer-card { - text-align: center; -} - -.developer-card .spinner { - margin-top: 48px; -} - -.developer-card .avatar { - width: 120px; - height: 120px; - border-radius: 100%; - background: #fafafa; - display: inline-block; - margin-top: 24px; - margin-bottom: 12px; - overflow: hidden; -} - -.developer-card .avatar img { - width: 100%; -} - -.developer-card ul.links { - margin-top: 36px; -} - -.developer-card ul.links li { - margin-bottom: 1em; -} - -.developer-card ul.links li a { - display: block; -} - -/*# sourceMappingURL=main.css.map */ +#main-container{position:relative}.stripe-card-form{margin-bottom:24px}.stripe-card{border:1px solid #ccc;border-radius:3px;padding:6px;max-width:390px}.stripe-card.error{border-color:#da5a47}.ps-grid-wrapper{display:grid;grid-template-columns:1fr;grid-gap:40px}.ps-grid-wrapper.has-sidebar{grid-template-columns:1fr 4fr}.ps-grid-plugins{width:100%;display:grid;grid-template-columns:1fr 1fr 1fr;grid-gap:20px;color:#444;margin-bottom:20px}.ps-grid-plugins-4{grid-template-columns:1fr 1fr 1fr 1fr}.ps-grid-box{background-color:#fff;overflow:hidden}@media only screen and (max-width:1223px){.ps-grid-plugins-4{grid-template-columns:1fr 1fr 1fr}}@media only screen and (max-width:998px){.ps-grid-wrapper.has-sidebar{grid-template-columns:1fr}.ps-grid-plugins,.ps-grid-plugins-4{grid-template-columns:1fr 1fr}}@media only screen and (max-width:673px){.ps-grid-plugins{grid-gap:10px}.ps-grid-plugins,.ps-grid-plugins-4{grid-template-columns:1fr}}#thank-you{width:320px;height:150px;position:absolute;top:50%;left:50%;margin-top:-75px;margin-left:-160px;text-align:center}#thank-you h2{margin-top:24px}#install{text-align:center;padding:48px}#graphic{display:inline-block;width:48px;height:48px;background-repeat:no-repeat;background-position:50% 50%}#graphic.error{background-image:url(../images/error.png)}#graphic.success{background-image:url(../images/success.png)}@media only screen and (-moz-min-device-pixel-ratio:1.5),only screen and (-webkit-min-device-pixel-ratio:1.5),only screen and (min-device-pixel-ratio:1.5),only screen and (min-resolution:1.5dppx){#graphic.error{background-image:url(../images/error_2x.png);background-size:48px}#graphic.success{background-image:url(../images/success_2x.png);background-size:48px}}ul.categories li{position:relative}ul.categories li:before,ul.categories li:last-child:after{position:absolute;border-top:1px solid #eee;content:"";left:0;right:0}ul.categories li:before{top:0}ul.categories li:last-child:after{bottom:0}ul.categories li a{display:block;position:relative;padding:10px;padding-left:31px;border-top:1px solid transparent;border-bottom:1px solid transparent}ul.categories li a img{position:absolute;top:7px;left:0;width:24px}ul.categories li a:hover{text-decoration:none;z-index:1;background:#fafafa;border-color:#eee}ul.categories li:hover+li:before{border-color:transparent}.category-selector-btn{display:none;background:#fafafa;border:1px solid #e3e5e8;padding:10px 20px;border-radius:4px;margin-bottom:24px;position:relative;color:#8f98a3}.category-selector-btn:before{font-family:Craft;speak:none;-webkit-font-feature-settings:"liga","dlig";-ms-font-feature-settings:"liga","dlig";-o-font-feature-settings:"liga","dlig";font-feature-settings:"liga","dlig";text-rendering:optimizeLegibility;font-weight:400;font-variant:normal;text-transform:none;line-height:1;direction:ltr;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;text-align:center;font-style:normal;vertical-align:middle;word-wrap:normal!important;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:absolute;top:calc(50% - 10px);right:0;font-size:16px;width:43px;line-height:20px;content:"downangle"}.category-selector-btn:hover{text-decoration:none}.category-selector{display:none;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:fixed;top:0;left:0;background:#fff;z-index:1000;width:100vw;height:100vh;-webkit-box-sizing:border-box;box-sizing:border-box}.category-selector .category-selector-header a{padding:14px 24px;display:block;color:#000;background:#fafafa;border-bottom:1px solid #eee}.category-selector .category-selector-header a:hover{text-decoration:none}.category-selector .category-selector-body{overflow:auto;height:100%;-webkit-box-sizing:border-box;box-sizing:border-box}.category-selector .category-selector-body ul.categories li:first-child a{border-top:0}.category-selector .category-selector-body ul.categories li:first-child:before{display:none}.category-selector .category-selector-body ul.categories li:after,.category-selector .category-selector-body ul.categories li:before{left:1rem;right:1rem}.category-selector .category-selector-body ul.categories li a{padding-left:55px}.category-selector .category-selector-body ul.categories li a img{left:24px}@media only screen and (max-width:998px){.category-selector-btn{display:block}.category-selector{display:-webkit-box;display:-ms-flexbox;display:flex}.categories-wrapper{display:none}}.cart-review{padding:24px;border:1px solid #eee;margin-top:24px}.cart-review table td,.cart-review table th{padding:3px 0;font-size:1.2em}.cart-review table th{width:100px}.credit-card{margin:24px 0}.globalmodal{max-width:850px;max-height:650px}.globalmodal .globalmodalcontent{position:relative;height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.globalmodal .globalmodalcontent header .btn-left{position:absolute;top:28px;left:24px}.globalmodal .globalmodalcontent header h1{text-align:center}.globalmodal .globalmodalcontent .body{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.globalmodal .globalmodalcontent .body .content{margin:-24px;padding:24px;overflow:auto;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.block{position:relative}.block .block-toggle{position:absolute;top:0;right:0}.plugin-card{display:-webkit-box;display:-ms-flexbox;display:flex;padding:20px;border:1px solid #e3e5e8;border-radius:5px;height:100px}.plugin-card:hover{cursor:pointer;background:#fafafa}.plugin-card .plugin-icon{margin-right:14px}@media only screen and (max-width:673px){.plugin-card{height:60px}}.plugin-icon,.plugin-icon img{width:32px;height:32px;border-radius:4px}.plugin-icon-large,.plugin-icon-large img{width:72px;height:72px;border-radius:6px}.plugin-icon .default-icon{display:inline-block;background:#eee;overflow:hidden;width:32px;height:32px;border-radius:4px}.plugin-details{position:relative;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.plugin-details .plugin-details-header{-ms-flex-negative:0;flex-shrink:0;display:-webkit-box;display:-ms-flexbox;display:flex;border-bottom:1px solid #eee;padding:24px}.plugin-details .plugin-details-header .plugin-icon-large{margin-right:14px}.plugin-details .plugin-details-header .description{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;margin-left:14px}.plugin-details .plugin-details-header .description h2{margin-bottom:10px}.plugin-details .plugin-details-header .description p{margin:.4em 0}.plugin-details .plugin-details-header .buttons{margin-top:0}.plugin-details .plugin-details-body{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;display:-webkit-box;display:-ms-flexbox;display:flex;position:relative}.plugin-details .plugin-details-body .plugin-details-loading{position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.plugin-details .plugin-details-body .plugin-description{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;min-width:0;padding:24px;overflow:auto}.plugin-details .plugin-details-body .plugin-description img{max-width:100%}.plugin-details .plugin-details-body .plugin-description pre{background:#eee;padding:24px;overflow:auto}.plugin-details .plugin-details-body .plugin-sidebar{-webkit-box-flex:0;-ms-flex:0 0 260px;flex:0 0 260px;width:260px;background:#fafafa;border-left:1px solid #eee;overflow:auto}.plugin-details .plugin-details-body .plugin-sidebar .plugin-meta{border-radius:4px;padding:24px}.plugin-details .plugin-details-body .plugin-sidebar .plugin-meta ul li{display:-webkit-box;display:-ms-flexbox;display:flex;border-bottom:1px solid #eee;padding:7px 0}.plugin-details .plugin-details-body .plugin-sidebar .plugin-meta ul li:last-child{border-bottom:0}.plugin-details .plugin-details-body .plugin-sidebar .plugin-meta ul li span,.plugin-details .plugin-details-body .plugin-sidebar .plugin-meta ul li strong{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.plugin-details .plugin-details-body .plugin-sidebar .plugin-meta ul li strong{text-align:right}.plugin-details .plugin-details-body .screenshots{margin-top:24px}.plugin-details .plugin-details-body .screenshots img{width:100%;margin-bottom:24px}#container{position:static!important}.developer-card{text-align:center}.developer-card .spinner{margin-top:48px}.developer-card .avatar{width:120px;height:120px;border-radius:100%;background:#fafafa;display:inline-block;margin-top:24px;margin-bottom:12px;overflow:hidden}.developer-card .avatar img{width:100%}.developer-card ul.links{margin-top:36px}.developer-card ul.links li{margin-bottom:1em}.developer-card ul.links li a{display:block} +/*# sourceMappingURL=main.css.map*/ \ No newline at end of file diff --git a/src/web/assets/pluginstore/dist/css/main.css.map b/src/web/assets/pluginstore/dist/css/main.css.map index 0419efeae0..725a5de712 100644 --- a/src/web/assets/pluginstore/dist/css/main.css.map +++ b/src/web/assets/pluginstore/dist/css/main.css.map @@ -1 +1 @@ -{"version":3,"sources":["main.scss","main.css","../../../../../../../lib/craftcms-sass/_mixins.scss"],"names":[],"mappings":"AAQA;EACE,mBAAmB;CACpB;;AAED;EACE,oBAAoB;CACrB;;AAED;EACE,uBAAuB;EACvB,mBAAmB;EACnB,aAAa;EACb,iBAAiB;CAKlB;;AATD;EAOI,sBAAsB;CACvB;;AAIH,WAAW;AAEX;EACE,kBAAc;EAAd,cAAc;EACd,sBAA2B;EAA3B,2BAA2B;EAC3B,eAAe;CAChB;;AAED;EACE,0BAA+B;EAA/B,+BAA+B;CAChC;;AAED;EACE,YAAY;EACZ,kBAAc;EAAd,cAAc;EACd,8BAAmC;EAAnC,mCAAmC;EACnC,eAAe;EACf,YAAY;EACZ,oBAAoB;CACrB;;AAED;EACE,kCAAuC;EAAvC,uCAAuC;CACxC;;AAED;EACE,uBAAuB;EACvB,iBAAiB;CAClB;;AAED;EACE;IACE,8BAAmC;IAAnC,mCAAmC;GACpC;CCTF;;ADaD;EACE;IACE,sBAA2B;IAA3B,2BAA2B;GAC5B;EACD;IACE,0BAA+B;IAA/B,+BAA+B;GAChC;EACD;IACE,0BAA+B;IAA/B,+BAA+B;GAChC;CCVF;;ADaD;EACE;IACE,eAAe;GAChB;EAED;IACE,sBAA2B;IAA3B,2BAA2B;GAC5B;EACD;IACE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oB;CACrB;;AA5CL;EA+CM,oBAAa;EAAb,aAAa;EACb,aAAa;EACb,cAAc;EACd,eAAe;CAWhB;;AA7DL;EAqDQ,gBAAgB;CACjB;;AAtDP;EAyDQ,iBAAiB;EACjB,cAAc;EACd,eAAe;CAChB;;AA5DP;EAgEM,oBAAgB;EAAhB,gBAAgB;EAChB,aAAa;EACb,oBAAoB;EACpB,4BAA4B;EAC5B,eAAe;CA0BhB;;AA9FL;EAuEQ,2BAA2B;EAC3B,mBAAmB;EACnB,cAAc;CAoBf;;AA7FP;EA4EU,qBAAc;EAAd,cAAc;EACd,8BAA8B;EAC9B,eAAe;CAchB;;AA5FT;EAiFY,iBAAiB;CAClB;;AAlFX;;EAsFY,oBAAa;EAAb,aAAa;CACd;;AAvFX;EA0FY,kBAAkB;CACnB;;AA3FX;EAiGM,iBAAiB;CAMlB;;AAvGL;EAoGQ,YAAY;EACZ,oBAAoB;CACrB;;AAKP,kBAAkB;AAElB;EACE,4BAA4B;EAAE,iDAAiD;CAChF;;AAED,eAAe;AAEf;EACE,mBAAkB;CAgCnB;;AAjCD;EAII,iBAAiB;CAClB;;AALH;EAQI,aAAa;EACb,cAAc;EACd,oBAAoB;EACpB,oBAAoB;EACpB,sBAAsB;EACtB,iBAAiB;EACjB,oBAAoB;EACpB,iBAAiB;CAKlB;;AApBH;EAkBM,YAAY;CACb;;AAnBL;EAuBI,iBAAiB;CASlB;;AAhCH;EA0BM,mBAAmB;CAKpB;;AA/BL;EA6BQ,eAAe;CAChB","file":"main.css","sourcesContent":["@charset \"UTF-8\";\n@import \"../../../../../../../lib/craftcms-sass/mixins\";\n\n$sidebarWidth: 225px;\n$detailsWidth: 350px;\n$minFullUiWidth: 1224px;\n$minHorizontalUiWidth: $minFullUiWidth - $sidebarWidth;\n\n#main-container {\n position: relative;\n}\n\n.stripe-card-form {\n margin-bottom: 24px;\n}\n\n.stripe-card {\n border: 1px solid #ccc;\n border-radius: 3px;\n padding: 6px;\n max-width: 390px;\n\n &.error {\n border-color: #da5a47;\n }\n}\n\n\n/* Grids */\n\n.ps-grid-wrapper {\n display: grid;\n grid-template-columns: 1fr;\n grid-gap: 40px;\n}\n\n.ps-grid-wrapper.has-sidebar {\n grid-template-columns: 1fr 4fr;\n}\n\n.ps-grid-plugins {\n width: 100%;\n display: grid;\n grid-template-columns: 1fr 1fr 1fr;\n grid-gap: 20px;\n color: #444;\n margin-bottom: 20px;\n}\n\n.ps-grid-plugins-4 {\n grid-template-columns: 1fr 1fr 1fr 1fr;\n}\n\n.ps-grid-box {\n background-color: #fff;\n overflow: hidden;\n}\n\n@media only screen and (max-width: $minFullUiWidth - 1px) {\n .ps-grid-plugins-4 {\n grid-template-columns: 1fr 1fr 1fr;\n }\n}\n\n// Rearrange #main-content to flow vertically at < 999\n@media only screen and (max-width: $minHorizontalUiWidth - 1px) {\n .ps-grid-wrapper.has-sidebar {\n grid-template-columns: 1fr;\n }\n .ps-grid-plugins {\n grid-template-columns: 1fr 1fr;\n }\n .ps-grid-plugins-4 {\n grid-template-columns: 1fr 1fr;\n }\n}\n\n@media only screen and (max-width: 673px) {\n .ps-grid-plugins {\n grid-gap: 10px;\n }\n\n .ps-grid-plugins {\n grid-template-columns: 1fr;\n }\n .ps-grid-plugins-4 {\n grid-template-columns: 1fr;\n }\n}\n\n\n/* Install */\n\n#thank-you {\n width: 320px;\n height: 150px;\n position: absolute;\n top: 50%;\n left: 50%;\n margin-top: -75px;\n margin-left: -160px;\n text-align: center;\n}\n\n#thank-you h2 {\n margin-top: 24px;\n}\n\n#install {\n text-align: center;\n padding: 48px;\n}\n\n#graphic {\n display: inline-block;\n width: 48px;\n height: 48px;\n background-repeat: no-repeat;\n background-position: 50% 50%;\n\n &.error {\n background-image: url(../images/error.png);\n }\n\n &.success {\n background-image: url(../images/success.png);\n }\n\n}\n\n@media only screen and (-webkit-min-device-pixel-ratio: 1.5),\nonly screen and (-moz-min-device-pixel-ratio: 1.5),\nonly screen and (-o-min-device-pixel-ratio: 3/2),\nonly screen and (min-device-pixel-ratio: 1.5),\nonly screen and (min-resolution: 1.5dppx) {\n #graphic {\n &.error {\n background-image: url(../images/error_2x.png);\n background-size: 48px;\n }\n &.success {\n background-image: url(../images/success_2x.png);\n background-size: 48px;\n }\n }\n}\n\n\n/* Categories */\n\nul.categories {\n li {\n position: relative;\n\n &:before,\n &:last-child:after {\n position: absolute;\n border-top: 1px solid #eee;\n content: '';\n left: 0;\n right: 0;\n }\n\n &:before {\n top: 0;\n }\n\n &:last-child:after {\n bottom: 0;\n }\n\n a {\n display: block;\n position: relative;\n padding: 10px;\n padding-left: 31px;\n border-top: 1px solid transparent;\n border-bottom: 1px solid transparent;\n\n img {\n position: absolute;\n top: 7px;\n left: 0;\n width: 24px;\n }\n\n &:hover {\n text-decoration: none;\n z-index: 1;\n background: #fafafa;\n border-color: #eee;\n }\n }\n }\n\n li:hover+li:before {\n border-color: transparent;\n }\n}\n\n/* Category Selector */\n\n.category-selector-btn {\n display: none;\n background: $lightBgColor;\n border: 1px solid $hairlineColor;\n padding: 10px 20px;\n border-radius: 4px;\n margin-bottom: 24px;\n position: relative;\n color: $secondarySubmitColor;\n\n &:before {\n @include icon;\n position: absolute;\n top: calc(50% - 10px);\n right: 0;\n font-size: 16px;\n width: 43px;\n line-height: 20px;\n content: 'downangle';\n }\n\n &:hover {\n text-decoration: none;\n }\n}\n\n.category-selector {\n display: none;\n flex-direction: column;\n position: fixed;\n top: 0;\n left: 0;\n background: #fff;\n z-index: 1000;\n width: 100vw;\n height:100vh;\n box-sizing: border-box;\n\n .category-selector-header {\n a {\n padding: 14px 24px;\n display: block;\n color: #000;\n background: #fafafa;\n border-bottom: 1px solid #eee;\n\n &:hover {\n text-decoration: none;\n }\n }\n }\n\n .category-selector-body {\n overflow: auto;\n height: 100%;\n box-sizing: border-box;\n\n ul.categories {\n li {\n &:first-child a {\n border-top: 0;\n }\n\n &:first-child:before {\n display: none;\n }\n\n &:before,\n &:after {\n left: 1rem;\n right: 1rem;\n }\n\n a {\n padding-left: 55px;\n\n img {\n left: 24px;\n }\n }\n }\n }\n }\n}\n\n@media only screen and (max-width: $minHorizontalUiWidth - 1px) {\n .category-selector-btn {\n display: block;\n }\n\n .category-selector {\n display: flex;\n }\n\n .categories-wrapper {\n display: none;\n }\n}\n\n\n/* Cart */\n\n.cart-review {\n padding: 24px;\n border: 1px solid #eee;\n margin-top: 24px;\n\n table {\n th,\n td {\n padding: 3px 0;\n font-size: 1.2em;\n }\n\n th {\n width: 100px;\n }\n }\n}\n\n\n/* CreditCard */\n\n.credit-card {\n margin: 24px 0;\n}\n\n\n/* GlobalModal */\n\n.globalmodal {\n max-width: 850px;\n max-height: 650px;\n\n .globalmodalcontent {\n position: relative;\n height: 100%;\n display: flex;\n flex-direction: column;\n\n header {\n .btn-left {\n position: absolute;\n top: 28px;\n left: 24px;\n }\n\n h1 {\n text-align: center;\n }\n }\n\n .body {\n position: relative;\n display: flex;\n flex-grow: 1;\n\n .content {\n margin: -24px;\n padding: 24px;\n overflow: auto;\n flex-grow: 1;\n }\n }\n }\n}\n\n/* Payment */\n\n.block {\n position: relative;\n\n .block-toggle {\n position: absolute;\n top: 0;\n right: 0;\n }\n}\n\n\n/* PluginCard */\n\n.plugin-card {\n display: flex;\n padding: 20px;\n border: 1px solid #E3E5E8;\n border-radius: 5px;\n height: 100px;\n\n &:hover {\n cursor: pointer;\n background: #fafafa;\n }\n\n .plugin-icon {\n margin-right: 14px;\n }\n}\n\n@media only screen and (max-width: 673px) {\n .plugin-card {\n height: 60px;\n }\n}\n\n.plugin-icon,\n.plugin-icon img {\n width: 32px;\n height: 32px;\n border-radius: 4px;\n}\n\n.plugin-icon-large,\n.plugin-icon-large img {\n width: 72px;\n height: 72px;\n border-radius: 6px;\n}\n\n.plugin-icon .default-icon {\n display: inline-block;\n background: #eee;\n overflow: hidden;\n width: 32px;\n height: 32px;\n border-radius: 4px;\n}\n\n\n/* PluginDetails */\n\n.plugin-details {\n position: relative;\n flex-grow: 1;\n display: flex;\n flex-direction: column;\n\n .plugin-details-header {\n flex-shrink: 0;\n display: flex;\n border-bottom: 1px solid #eee;\n padding: 24px;\n\n .plugin-icon-large {\n margin-right: 14px;\n }\n\n .description {\n flex-grow: 1;\n margin-left: 14px;\n }\n\n .description h2 {\n margin-bottom: 10px;\n }\n\n .description p {\n margin: 0.4em 0;\n }\n\n .buttons {\n margin-top: 0;\n }\n }\n\n .plugin-details-body {\n flex-grow: 1;\n display: flex;\n position: relative;\n\n .plugin-details-loading {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%); \n }\n\n .plugin-description {\n flex-grow: 1;\n min-width: 0;\n padding: 24px;\n overflow: auto;\n\n img {\n max-width: 100%;\n }\n\n pre {\n background: #eee;\n padding: 24px;\n overflow: auto;\n }\n }\n\n .plugin-sidebar {\n flex: 0 0 260px;\n width: 260px;\n background: #fafafa;\n border-left: 1px solid #eee;\n overflow: auto;\n\n .plugin-meta {\n /*border: 1px solid #eee;*/\n border-radius: 4px;\n padding: 24px;\n\n ul li {\n display: flex;\n border-bottom: 1px solid #eee;\n padding: 7px 0;\n\n &:last-child {\n border-bottom: 0;\n }\n\n & span,\n & strong {\n flex-grow: 1;\n }\n\n & strong {\n text-align: right;\n }\n }\n }\n }\n\n .screenshots {\n margin-top: 24px;\n\n img {\n width: 100%;\n margin-bottom: 24px;\n }\n }\n }\n}\n\n/* PluginSearch */\n\n#container {\n position: static !important; /* #container hack required for modal overlays */\n}\n\n/* Developer */\n\n.developer-card {\n text-align:center;\n\n .spinner {\n margin-top: 48px;\n }\n\n .avatar {\n width: 120px;\n height: 120px;\n border-radius: 100%;\n background: #fafafa;\n display: inline-block;\n margin-top: 24px;\n margin-bottom: 12px;\n overflow: hidden;\n\n img {\n width: 100%;\n }\n }\n\n ul.links {\n margin-top: 36px;\n \n li {\n margin-bottom: 1em;\n \n a {\n display: block;\n }\n }\n }\n}","#main-container {\n position: relative;\n}\n\n.stripe-card-form {\n margin-bottom: 24px;\n}\n\n.stripe-card {\n border: 1px solid #ccc;\n border-radius: 3px;\n padding: 6px;\n max-width: 390px;\n}\n\n.stripe-card.error {\n border-color: #da5a47;\n}\n\n/* Grids */\n.ps-grid-wrapper {\n display: grid;\n grid-template-columns: 1fr;\n grid-gap: 40px;\n}\n\n.ps-grid-wrapper.has-sidebar {\n grid-template-columns: 1fr 4fr;\n}\n\n.ps-grid-plugins {\n width: 100%;\n display: grid;\n grid-template-columns: 1fr 1fr 1fr;\n grid-gap: 20px;\n color: #444;\n margin-bottom: 20px;\n}\n\n.ps-grid-plugins-4 {\n grid-template-columns: 1fr 1fr 1fr 1fr;\n}\n\n.ps-grid-box {\n background-color: #fff;\n overflow: hidden;\n}\n\n@media only screen and (max-width: 1223px) {\n .ps-grid-plugins-4 {\n grid-template-columns: 1fr 1fr 1fr;\n }\n}\n\n@media only screen and (max-width: 998px) {\n .ps-grid-wrapper.has-sidebar {\n grid-template-columns: 1fr;\n }\n .ps-grid-plugins {\n grid-template-columns: 1fr 1fr;\n }\n .ps-grid-plugins-4 {\n grid-template-columns: 1fr 1fr;\n }\n}\n\n@media only screen and (max-width: 673px) {\n .ps-grid-plugins {\n grid-gap: 10px;\n }\n .ps-grid-plugins {\n grid-template-columns: 1fr;\n }\n .ps-grid-plugins-4 {\n grid-template-columns: 1fr;\n }\n}\n\n/* Install */\n#thank-you {\n width: 320px;\n height: 150px;\n position: absolute;\n top: 50%;\n left: 50%;\n margin-top: -75px;\n margin-left: -160px;\n text-align: center;\n}\n\n#thank-you h2 {\n margin-top: 24px;\n}\n\n#install {\n text-align: center;\n padding: 48px;\n}\n\n#graphic {\n display: inline-block;\n width: 48px;\n height: 48px;\n background-repeat: no-repeat;\n background-position: 50% 50%;\n}\n\n#graphic.error {\n background-image: url(../images/error.png);\n}\n\n#graphic.success {\n background-image: url(../images/success.png);\n}\n\n@media only screen and (-webkit-min-device-pixel-ratio: 1.5), only screen and (-moz-min-device-pixel-ratio: 1.5), only screen and (-o-min-device-pixel-ratio: 3 / 2), only screen and (min-device-pixel-ratio: 1.5), only screen and (min-resolution: 1.5dppx) {\n #graphic.error {\n background-image: url(../images/error_2x.png);\n background-size: 48px;\n }\n #graphic.success {\n background-image: url(../images/success_2x.png);\n background-size: 48px;\n }\n}\n\n/* Categories */\nul.categories li {\n position: relative;\n}\n\nul.categories li:before, ul.categories li:last-child:after {\n position: absolute;\n border-top: 1px solid #eee;\n content: '';\n left: 0;\n right: 0;\n}\n\nul.categories li:before {\n top: 0;\n}\n\nul.categories li:last-child:after {\n bottom: 0;\n}\n\nul.categories li a {\n display: block;\n position: relative;\n padding: 10px;\n padding-left: 31px;\n border-top: 1px solid transparent;\n border-bottom: 1px solid transparent;\n}\n\nul.categories li a img {\n position: absolute;\n top: 7px;\n left: 0;\n width: 24px;\n}\n\nul.categories li a:hover {\n text-decoration: none;\n z-index: 1;\n background: #fafafa;\n border-color: #eee;\n}\n\nul.categories li:hover + li:before {\n border-color: transparent;\n}\n\n/* Category Selector */\n.category-selector-btn {\n display: none;\n background: #fafafa;\n border: 1px solid #e3e5e8;\n padding: 10px 20px;\n border-radius: 4px;\n margin-bottom: 24px;\n position: relative;\n color: #8f98a3;\n}\n\n.category-selector-btn:before {\n font-family: 'Craft';\n speak: none;\n -webkit-font-feature-settings: \"liga\", \"dlig\";\n -moz-font-feature-settings: \"liga=1, dlig=1\";\n -moz-font-feature-settings: \"liga\", \"dlig\";\n -ms-font-feature-settings: \"liga\", \"dlig\";\n -o-font-feature-settings: \"liga\", \"dlig\";\n font-feature-settings: \"liga\", \"dlig\";\n text-rendering: optimizeLegibility;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n direction: ltr;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n display: inline-block;\n text-align: center;\n font-style: normal;\n vertical-align: middle;\n word-wrap: normal !important;\n user-select: none;\n position: absolute;\n top: calc(50% - 10px);\n right: 0;\n font-size: 16px;\n width: 43px;\n line-height: 20px;\n content: 'downangle';\n}\n\n.category-selector-btn:hover {\n text-decoration: none;\n}\n\n.category-selector {\n display: none;\n flex-direction: column;\n position: fixed;\n top: 0;\n left: 0;\n background: #fff;\n z-index: 1000;\n width: 100vw;\n height: 100vh;\n box-sizing: border-box;\n}\n\n.category-selector .category-selector-header a {\n padding: 14px 24px;\n display: block;\n color: #000;\n background: #fafafa;\n border-bottom: 1px solid #eee;\n}\n\n.category-selector .category-selector-header a:hover {\n text-decoration: none;\n}\n\n.category-selector .category-selector-body {\n overflow: auto;\n height: 100%;\n box-sizing: border-box;\n}\n\n.category-selector .category-selector-body ul.categories li:first-child a {\n border-top: 0;\n}\n\n.category-selector .category-selector-body ul.categories li:first-child:before {\n display: none;\n}\n\n.category-selector .category-selector-body ul.categories li:before, .category-selector .category-selector-body ul.categories li:after {\n left: 1rem;\n right: 1rem;\n}\n\n.category-selector .category-selector-body ul.categories li a {\n padding-left: 55px;\n}\n\n.category-selector .category-selector-body ul.categories li a img {\n left: 24px;\n}\n\n@media only screen and (max-width: 998px) {\n .category-selector-btn {\n display: block;\n }\n .category-selector {\n display: flex;\n }\n .categories-wrapper {\n display: none;\n }\n}\n\n/* Cart */\n.cart-review {\n padding: 24px;\n border: 1px solid #eee;\n margin-top: 24px;\n}\n\n.cart-review table th,\n.cart-review table td {\n padding: 3px 0;\n font-size: 1.2em;\n}\n\n.cart-review table th {\n width: 100px;\n}\n\n/* CreditCard */\n.credit-card {\n margin: 24px 0;\n}\n\n/* GlobalModal */\n.globalmodal {\n max-width: 850px;\n max-height: 650px;\n}\n\n.globalmodal .globalmodalcontent {\n position: relative;\n height: 100%;\n display: flex;\n flex-direction: column;\n}\n\n.globalmodal .globalmodalcontent header .btn-left {\n position: absolute;\n top: 28px;\n left: 24px;\n}\n\n.globalmodal .globalmodalcontent header h1 {\n text-align: center;\n}\n\n.globalmodal .globalmodalcontent .body {\n position: relative;\n display: flex;\n flex-grow: 1;\n}\n\n.globalmodal .globalmodalcontent .body .content {\n margin: -24px;\n padding: 24px;\n overflow: auto;\n flex-grow: 1;\n}\n\n/* Payment */\n.block {\n position: relative;\n}\n\n.block .block-toggle {\n position: absolute;\n top: 0;\n right: 0;\n}\n\n/* PluginCard */\n.plugin-card {\n display: flex;\n padding: 20px;\n border: 1px solid #E3E5E8;\n border-radius: 5px;\n height: 100px;\n}\n\n.plugin-card:hover {\n cursor: pointer;\n background: #fafafa;\n}\n\n.plugin-card .plugin-icon {\n margin-right: 14px;\n}\n\n@media only screen and (max-width: 673px) {\n .plugin-card {\n height: 60px;\n }\n}\n\n.plugin-icon,\n.plugin-icon img {\n width: 32px;\n height: 32px;\n border-radius: 4px;\n}\n\n.plugin-icon-large,\n.plugin-icon-large img {\n width: 72px;\n height: 72px;\n border-radius: 6px;\n}\n\n.plugin-icon .default-icon {\n display: inline-block;\n background: #eee;\n overflow: hidden;\n width: 32px;\n height: 32px;\n border-radius: 4px;\n}\n\n/* PluginDetails */\n.plugin-details {\n position: relative;\n flex-grow: 1;\n display: flex;\n flex-direction: column;\n}\n\n.plugin-details .plugin-details-header {\n flex-shrink: 0;\n display: flex;\n border-bottom: 1px solid #eee;\n padding: 24px;\n}\n\n.plugin-details .plugin-details-header .plugin-icon-large {\n margin-right: 14px;\n}\n\n.plugin-details .plugin-details-header .description {\n flex-grow: 1;\n margin-left: 14px;\n}\n\n.plugin-details .plugin-details-header .description h2 {\n margin-bottom: 10px;\n}\n\n.plugin-details .plugin-details-header .description p {\n margin: 0.4em 0;\n}\n\n.plugin-details .plugin-details-header .buttons {\n margin-top: 0;\n}\n\n.plugin-details .plugin-details-body {\n flex-grow: 1;\n display: flex;\n position: relative;\n}\n\n.plugin-details .plugin-details-body .plugin-details-loading {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n}\n\n.plugin-details .plugin-details-body .plugin-description {\n flex-grow: 1;\n min-width: 0;\n padding: 24px;\n overflow: auto;\n}\n\n.plugin-details .plugin-details-body .plugin-description img {\n max-width: 100%;\n}\n\n.plugin-details .plugin-details-body .plugin-description pre {\n background: #eee;\n padding: 24px;\n overflow: auto;\n}\n\n.plugin-details .plugin-details-body .plugin-sidebar {\n flex: 0 0 260px;\n width: 260px;\n background: #fafafa;\n border-left: 1px solid #eee;\n overflow: auto;\n}\n\n.plugin-details .plugin-details-body .plugin-sidebar .plugin-meta {\n /*border: 1px solid #eee;*/\n border-radius: 4px;\n padding: 24px;\n}\n\n.plugin-details .plugin-details-body .plugin-sidebar .plugin-meta ul li {\n display: flex;\n border-bottom: 1px solid #eee;\n padding: 7px 0;\n}\n\n.plugin-details .plugin-details-body .plugin-sidebar .plugin-meta ul li:last-child {\n border-bottom: 0;\n}\n\n.plugin-details .plugin-details-body .plugin-sidebar .plugin-meta ul li span,\n.plugin-details .plugin-details-body .plugin-sidebar .plugin-meta ul li strong {\n flex-grow: 1;\n}\n\n.plugin-details .plugin-details-body .plugin-sidebar .plugin-meta ul li strong {\n text-align: right;\n}\n\n.plugin-details .plugin-details-body .screenshots {\n margin-top: 24px;\n}\n\n.plugin-details .plugin-details-body .screenshots img {\n width: 100%;\n margin-bottom: 24px;\n}\n\n/* PluginSearch */\n#container {\n position: static !important;\n /* #container hack required for modal overlays */\n}\n\n/* Developer */\n.developer-card {\n text-align: center;\n}\n\n.developer-card .spinner {\n margin-top: 48px;\n}\n\n.developer-card .avatar {\n width: 120px;\n height: 120px;\n border-radius: 100%;\n background: #fafafa;\n display: inline-block;\n margin-top: 24px;\n margin-bottom: 12px;\n overflow: hidden;\n}\n\n.developer-card .avatar img {\n width: 100%;\n}\n\n.developer-card ul.links {\n margin-top: 36px;\n}\n\n.developer-card ul.links li {\n margin-bottom: 1em;\n}\n\n.developer-card ul.links li a {\n display: block;\n}\n","$hue: 212;\n\n$subnavBgColor: hsl($hue, 20%, 30%);\n$bgColor: hsl($hue, 10%, 93%);\n$lightBgColor: #fafafa;\n\n$textColor: hsl($hue, 20%, 20%);\n$mediumDarkTextColor: hsl($hue, 15%, 40%);\n$mediumTextColor: hsl($hue, 10%, 60%);\n$lightTextColor: hsl($hue, 10%, 75%);\n$linkColor: hsl($hue, 90%, 50%);\n\n$hairlineColor: hsl($hue, 10%, 90%);\n$hairlineColorAlpha: hsla(240, 100%, 4%, 0.1);\n$mediumHairlineColorAlpha: hsla(240, 100%, 4%, 0.2);\n$darkHairlineColorAlpha: hsla(240, 100%, 4%, 0.4);\n\n$lightSelColor: hsl($hue, 10%, 85%);\n$darkSelColor: hsl($hue, 10%, 50%);\n\n$submitColor: #da5a47;\n$submitHoverColor: #bf503f;\n$submitActiveColor: #8c3b2e;\n\n$secondarySubmitColor: hsl($hue, 10%, 60%);\n$secondarySubmitHoverColor: hsl($hue, 10%, 50%);\n$secondarySubmitActiveColor: hsl($hue, 10%, 40%);\n\n$errorColor: #da5a47;\n$warningColor: #e78640;\n$successColor: #00b007;\n$noticeColor: #5286d9;\n\n$btnBorderRadius: 2px;\n$textBorderRadius: 0;\n$paneBorderRadius: 5px;\n$menuBorderRadius: 2px;\n$elementBorderRadius: 2px;\n\n@mixin sans-serif-font {\n font-family: \"Helvetica Neue\", HelveticaNeue, sans-serif;\n}\n\n// Flexbox stuff\n\n// Other\n\n@mixin svg-mask($color) {\n rect, circle, ellipse, line, polyline, polygon, path, text {\n fill: $color;\n stroke-width: 0;\n }\n}\n\n@mixin icon {\n font-family: 'Craft';\n speak: none;\n -webkit-font-feature-settings: \"liga\", \"dlig\";\n -moz-font-feature-settings: \"liga=1, dlig=1\";\n -moz-font-feature-settings: \"liga\", \"dlig\";\n -ms-font-feature-settings: \"liga\", \"dlig\";\n -o-font-feature-settings: \"liga\", \"dlig\";\n font-feature-settings: \"liga\", \"dlig\";\n text-rendering: optimizeLegibility;\n font-weight: normal;\n font-variant: normal;\n text-transform: none;\n line-height: 1;\n direction: ltr; // Fixes a rendering issue in Chrome/Win\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n\n display: inline-block;\n text-align: center;\n font-style: normal;\n vertical-align: middle;\n word-wrap: normal !important;\n user-select: none;\n}\n\n@mixin clearafter {\n content: '.';\n display: block;\n height: 0;\n clear: both;\n visibility: hidden;\n}\n\n@mixin pane {\n background: #fff;\n box-shadow: 0 0 0 1px $hairlineColor;\n}\n\n@mixin light-on-dark-text() {\n // Make light on dark text sharp on Macs\n // (sub-pixel antialiasing looks too bold/blurry with light text on dark background)\n -moz-osx-font-smoothing: grayscale;\n -webkit-font-smoothing: antialiased;\n font-weight: 500;\n}\n\n// RTL stuff\n\n@mixin left($left) {\n body.ltr & {\n left: $left;\n }\n body.rtl & {\n right: $left;\n }\n}\n\n@mixin right($right) {\n body.ltr & {\n right: $right;\n }\n body.rtl & {\n left: $right;\n }\n}\n\n@mixin alignleft {\n body.ltr & {\n text-align: left;\n }\n body.rtl & {\n text-align: right;\n }\n}\n\n@mixin alignright {\n body.ltr & {\n text-align: right;\n }\n body.rtl & {\n text-align: left;\n }\n}\n\n@mixin border-left($params...) {\n body.ltr & {\n border-left: $params;\n }\n body.rtl & {\n border-right: $params;\n }\n}\n\n@mixin border-right($params...) {\n body.ltr & {\n border-right: $params;\n }\n body.rtl & {\n border-left: $params;\n }\n}\n\n@mixin border-radius($tl, $tr, $br, $bl) {\n body.ltr & {\n border-radius: $tl $tr $br $bl;\n }\n body.rtl & {\n border-radius: $tr $tl $bl $br;\n }\n}\n\n@mixin border-top-left-radius($params...) {\n body.ltr & {\n border-top-left-radius: $params;\n }\n body.rtl & {\n border-top-right-radius: $params;\n }\n}\n\n@mixin border-top-right-radius($params...) {\n body.ltr & {\n border-top-right-radius: $params;\n }\n body.rtl & {\n border-top-left-radius: $params;\n }\n}\n\n@mixin border-bottom-left-radius($params...) {\n body.ltr & {\n border-bottom-left-radius: $params;\n }\n body.rtl & {\n border-bottom-right-radius: $params;\n }\n}\n\n@mixin border-bottom-right-radius($params...) {\n body.ltr & {\n border-bottom-right-radius: $params;\n }\n body.rtl & {\n border-bottom-left-radius: $params;\n }\n}\n\n@mixin floatleft {\n body.ltr & {\n float: left;\n }\n body.rtl & {\n float: right;\n }\n}\n\n@mixin floatright {\n body.ltr & {\n float: right;\n }\n body.rtl & {\n float: left;\n }\n}\n\n@mixin margin($t, $r, $b, $l, $important: '') {\n body.ltr & {\n margin: $t $r $b $l unquote($important);\n }\n body.rtl & {\n margin: $t $l $b $r unquote($important);\n }\n}\n\n@mixin margin-left($margin...) {\n body.ltr & {\n margin-left: $margin;\n }\n body.rtl & {\n margin-right: $margin;\n }\n}\n\n@mixin margin-right($margin...) {\n body.ltr & {\n margin-right: $margin;\n }\n body.rtl & {\n margin-left: $margin;\n }\n}\n\n@mixin padding($t, $r, $b, $l) {\n body.ltr & {\n padding: $t $r $b $l;\n }\n body.rtl & {\n padding: $t $l $b $r;\n }\n}\n\n@mixin padding-left($padding...) {\n body.ltr & {\n padding-left: $padding;\n }\n body.rtl & {\n padding-right: $padding;\n }\n}\n\n@mixin padding-right($padding...) {\n body.ltr & {\n padding-right: $padding;\n }\n body.rtl & {\n padding-left: $padding;\n }\n}\n\n// Misc\n\n@mixin h6-styles {\n margin: 14px 0 3px;\n font-size: 10px;\n line-height: 1.2;\n color: $lightTextColor;\n text-transform: uppercase;\n font-weight: bold;\n}\n\n@mixin token-styles {\n display: inline-block;\n border: 1px solid #c1c1c1;\n border-radius: 10px;\n padding: 1px 7px;\n font-size: 12px;\n line-height: 14px;\n color: $textColor;\n text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);\n background: #ddd;\n}\n\n@mixin menu-styles {\n z-index: 100;\n border-radius: $menuBorderRadius;\n padding: 0 14px;\n overflow: auto;\n background: #fff;\n user-select: none;\n box-shadow: 0 0 0 1px $hairlineColorAlpha, 0 5px 20px rgba(0, 0, 0, 0.25);\n}\n\n@mixin menu-option-styles {\n margin: 0 -14px;\n padding: 10px 14px;\n color: $textColor;\n text-decoration: none;\n white-space: nowrap;\n}\n\n@mixin menu-option-active-styles {\n color: $textColor;\n background-color: $lightSelColor;\n}\n\n@mixin text-input-styles {\n border: 1px solid $hairlineColorAlpha;\n border-radius: $textBorderRadius;\n transition: border linear 50ms;\n}\n\n@mixin text-input-focused-styles {\n border-color: $darkHairlineColorAlpha;\n outline: none;\n}\n\n@mixin placeholder-styles {\n color: $lightTextColor;\n}\n\n@mixin select-styles {\n position: relative;\n border-radius: $menuBorderRadius;\n white-space: nowrap;\n}\n\n@mixin select-container-styles {\n position: relative;\n background-image: linear-gradient(#fff, hsl($hue, 5%, 98%));\n box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);\n :not(.flex) > & {\n display: inline-block;\n }\n}\n\n@mixin select-arrow-styles {\n @include icon;\n position: absolute;\n z-index: 1;\n top: calc(50% - 5px);\n @include right(9px);\n font-size: 10px;\n content: 'downangle';\n user-select: none;\n pointer-events: none;\n}\n\n@mixin select-input-styles {\n display: block;\n position: relative;\n border: none;\n @include padding(7px, 22px, 7px, 10px);\n font-size: 14px;\n line-height: 18px;\n color: $textColor;\n background: none;\n box-shadow: inset 0 0 0 1px transparent, 0 0 0 1px rgba(0, 0, 0, 0.025), 0 1px 1px rgba(0, 0, 0, 0.1);\n transition: box-shadow linear 50ms;\n appearance: none;\n // from https://stackoverflow.com/a/15933790/1688568\n &::-ms-expand {\n display: none;\n }\n // from https://stackoverflow.com/a/19451423/1688568\n &:-moz-focusring {\n color: transparent;\n text-shadow: 0 0 0 $textColor;\n }\n}\n\n@mixin select-input-fullwidth-styles {\n min-width: 100%;\n}\n\n@mixin select-input-focused-styles {\n outline: none;\n box-shadow: inset 0 0 0 1px $darkHairlineColorAlpha, 0 0 0 1px rgba(0, 0, 0, 0.025), 0 1px 1px rgba(0, 0, 0, 0.1);\n}\n"]} \ No newline at end of file +{"version":3,"file":"src/web/assets/pluginstore/dist/css/main.css","sources":[],"mappings":"","sourceRoot":""} \ No newline at end of file diff --git a/src/web/assets/pluginstore/dist/js/main.js b/src/web/assets/pluginstore/dist/js/main.js index a66be5ad2e..e2b2b8720c 100644 --- a/src/web/assets/pluginstore/dist/js/main.js +++ b/src/web/assets/pluginstore/dist/js/main.js @@ -1,742 +1 @@ -/******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; -/******/ -/******/ // The require function -/******/ function __webpack_require__(moduleId) { -/******/ -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) -/******/ return installedModules[moduleId].exports; -/******/ -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ i: moduleId, -/******/ l: false, -/******/ exports: {} -/******/ }; -/******/ -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); -/******/ -/******/ // Flag the module as loaded -/******/ module.l = true; -/******/ -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } -/******/ -/******/ -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; -/******/ -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; -/******/ -/******/ // identity function for calling harmory imports with the correct context -/******/ __webpack_require__.i = function(value) { return value; }; -/******/ -/******/ // define getter function for harmory exports -/******/ __webpack_require__.d = function(exports, name, getter) { -/******/ Object.defineProperty(exports, name, { -/******/ configurable: false, -/******/ enumerable: true, -/******/ get: getter -/******/ }); -/******/ }; -/******/ -/******/ // getDefaultExport function for compatibility with non-harmony modules -/******/ __webpack_require__.n = function(module) { -/******/ var getter = module && module.__esModule ? -/******/ function getDefault() { return module['default']; } : -/******/ function getModuleExports() { return module; }; -/******/ __webpack_require__.d(getter, 'a', getter); -/******/ return getter; -/******/ }; -/******/ -/******/ // Object.prototype.hasOwnProperty.call -/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); }; -/******/ -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; -/******/ -/******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 104); -/******/ }) -/************************************************************************/ -/******/ ([ -/* 0 */ -/***/ function(module, exports) { - -eval("module.exports = function normalizeComponent (\n rawScriptExports,\n compiledTemplate,\n scopeId,\n cssModules\n) {\n var esModule\n var scriptExports = rawScriptExports = rawScriptExports || {}\n\n // ES6 modules interop\n var type = typeof rawScriptExports.default\n if (type === 'object' || type === 'function') {\n esModule = rawScriptExports\n scriptExports = rawScriptExports.default\n }\n\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // render functions\n if (compiledTemplate) {\n options.render = compiledTemplate.render\n options.staticRenderFns = compiledTemplate.staticRenderFns\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = scopeId\n }\n\n // inject cssModules\n if (cssModules) {\n var computed = options.computed || (options.computed = {})\n Object.keys(cssModules).forEach(function (key) {\n var module = cssModules[key]\n computed[key] = function () { return module }\n })\n }\n\n return {\n esModule: esModule,\n exports: scriptExports,\n options: options\n }\n}\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMC5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL34vdnVlLWxvYWRlci9saWIvY29tcG9uZW50LW5vcm1hbGl6ZXIuanM/ZDRmMyJdLCJzb3VyY2VzQ29udGVudCI6WyJtb2R1bGUuZXhwb3J0cyA9IGZ1bmN0aW9uIG5vcm1hbGl6ZUNvbXBvbmVudCAoXG4gIHJhd1NjcmlwdEV4cG9ydHMsXG4gIGNvbXBpbGVkVGVtcGxhdGUsXG4gIHNjb3BlSWQsXG4gIGNzc01vZHVsZXNcbikge1xuICB2YXIgZXNNb2R1bGVcbiAgdmFyIHNjcmlwdEV4cG9ydHMgPSByYXdTY3JpcHRFeHBvcnRzID0gcmF3U2NyaXB0RXhwb3J0cyB8fCB7fVxuXG4gIC8vIEVTNiBtb2R1bGVzIGludGVyb3BcbiAgdmFyIHR5cGUgPSB0eXBlb2YgcmF3U2NyaXB0RXhwb3J0cy5kZWZhdWx0XG4gIGlmICh0eXBlID09PSAnb2JqZWN0JyB8fCB0eXBlID09PSAnZnVuY3Rpb24nKSB7XG4gICAgZXNNb2R1bGUgPSByYXd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xuICB9XG59XG5cblxuXG4vLy8vLy8vLy8vLy8vLy8vLy9cbi8vIFdFQlBBQ0sgRk9PVEVSXG4vLyAuL34vdnVlLWxvYWRlci9saWIvY29tcG9uZW50LW5vcm1hbGl6ZXIuanNcbi8vIG1vZHVsZSBpZCA9IDBcbi8vIG1vZHVsZSBjaHVua3MgPSAwIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOyIsInNvdXJjZVJvb3QiOiIifQ=="); - -/***/ }, -/* 1 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -eval("/* unused harmony export Store */\n/* unused harmony export mapState */\n/* unused harmony export mapMutations */\n/* harmony export (binding) */ __webpack_require__.d(exports, \"a\", function() { return mapGetters; });\n/* harmony export (binding) */ __webpack_require__.d(exports, \"b\", function() { return mapActions; });\n/**\n * vuex v2.3.0\n * (c) 2017 Evan You\n * @license MIT\n */\nvar applyMixin = function (Vue) {\n var version = Number(Vue.version.split('.')[0]);\n\n if (version >= 2) {\n var usesInit = Vue.config._lifecycleHooks.indexOf('init') > -1;\n Vue.mixin(usesInit ? { init: vuexInit } : { beforeCreate: vuexInit });\n } else {\n // override init and inject vuex init procedure\n // for 1.x backwards compatibility.\n var _init = Vue.prototype._init;\n Vue.prototype._init = function (options) {\n if ( options === void 0 ) options = {};\n\n options.init = options.init\n ? [vuexInit].concat(options.init)\n : vuexInit;\n _init.call(this, options);\n };\n }\n\n /**\n * Vuex init hook, injected into each instances init hooks list.\n */\n\n function vuexInit () {\n var options = this.$options;\n // store injection\n if (options.store) {\n this.$store = options.store;\n } else if (options.parent && options.parent.$store) {\n this.$store = options.parent.$store;\n }\n }\n};\n\nvar devtoolHook =\n typeof window !== 'undefined' &&\n window.__VUE_DEVTOOLS_GLOBAL_HOOK__;\n\nfunction devtoolPlugin (store) {\n if (!devtoolHook) { return }\n\n store._devtoolHook = devtoolHook;\n\n devtoolHook.emit('vuex:init', store);\n\n devtoolHook.on('vuex:travel-to-state', function (targetState) {\n store.replaceState(targetState);\n });\n\n store.subscribe(function (mutation, state) {\n devtoolHook.emit('vuex:mutation', mutation, state);\n });\n}\n\n/**\n * Get the first item that pass the test\n * by second argument function\n *\n * @param {Array} list\n * @param {Function} f\n * @return {*}\n */\n/**\n * Deep copy the given object considering circular structure.\n * This function caches all nested objects and its copies.\n * If it detects circular structure, use cached copy to avoid infinite loop.\n *\n * @param {*} obj\n * @param {Array} cache\n * @return {*}\n */\n\n\n/**\n * forEach for object\n */\nfunction forEachValue (obj, fn) {\n Object.keys(obj).forEach(function (key) { return fn(obj[key], key); });\n}\n\nfunction isObject (obj) {\n return obj !== null && typeof obj === 'object'\n}\n\nfunction isPromise (val) {\n return val && typeof val.then === 'function'\n}\n\nfunction assert (condition, msg) {\n if (!condition) { throw new Error((\"[vuex] \" + msg)) }\n}\n\nvar Module = function Module (rawModule, runtime) {\n this.runtime = runtime;\n this._children = Object.create(null);\n this._rawModule = rawModule;\n var rawState = rawModule.state;\n this.state = (typeof rawState === 'function' ? rawState() : rawState) || {};\n};\n\nvar prototypeAccessors$1 = { namespaced: {} };\n\nprototypeAccessors$1.namespaced.get = function () {\n return !!this._rawModule.namespaced\n};\n\nModule.prototype.addChild = function addChild (key, module) {\n this._children[key] = module;\n};\n\nModule.prototype.removeChild = function removeChild (key) {\n delete this._children[key];\n};\n\nModule.prototype.getChild = function getChild (key) {\n return this._children[key]\n};\n\nModule.prototype.update = function update (rawModule) {\n this._rawModule.namespaced = rawModule.namespaced;\n if (rawModule.actions) {\n this._rawModule.actions = rawModule.actions;\n }\n if (rawModule.mutations) {\n this._rawModule.mutations = rawModule.mutations;\n }\n if (rawModule.getters) {\n this._rawModule.getters = rawModule.getters;\n }\n};\n\nModule.prototype.forEachChild = function forEachChild (fn) {\n forEachValue(this._children, fn);\n};\n\nModule.prototype.forEachGetter = function forEachGetter (fn) {\n if (this._rawModule.getters) {\n forEachValue(this._rawModule.getters, fn);\n }\n};\n\nModule.prototype.forEachAction = function forEachAction (fn) {\n if (this._rawModule.actions) {\n forEachValue(this._rawModule.actions, fn);\n }\n};\n\nModule.prototype.forEachMutation = function forEachMutation (fn) {\n if (this._rawModule.mutations) {\n forEachValue(this._rawModule.mutations, fn);\n }\n};\n\nObject.defineProperties( Module.prototype, prototypeAccessors$1 );\n\nvar ModuleCollection = function ModuleCollection (rawRootModule) {\n var this$1 = this;\n\n // register root module (Vuex.Store options)\n this.root = new Module(rawRootModule, false);\n\n // register all nested modules\n if (rawRootModule.modules) {\n forEachValue(rawRootModule.modules, function (rawModule, key) {\n this$1.register([key], rawModule, false);\n });\n }\n};\n\nModuleCollection.prototype.get = function get (path) {\n return path.reduce(function (module, key) {\n return module.getChild(key)\n }, this.root)\n};\n\nModuleCollection.prototype.getNamespace = function getNamespace (path) {\n var module = this.root;\n return path.reduce(function (namespace, key) {\n module = module.getChild(key);\n return namespace + (module.namespaced ? key + '/' : '')\n }, '')\n};\n\nModuleCollection.prototype.update = function update$1 (rawRootModule) {\n update(this.root, rawRootModule);\n};\n\nModuleCollection.prototype.register = function register (path, rawModule, runtime) {\n var this$1 = this;\n if ( runtime === void 0 ) runtime = true;\n\n var parent = this.get(path.slice(0, -1));\n var newModule = new Module(rawModule, runtime);\n parent.addChild(path[path.length - 1], newModule);\n\n // register nested modules\n if (rawModule.modules) {\n forEachValue(rawModule.modules, function (rawChildModule, key) {\n this$1.register(path.concat(key), rawChildModule, runtime);\n });\n }\n};\n\nModuleCollection.prototype.unregister = function unregister (path) {\n var parent = this.get(path.slice(0, -1));\n var key = path[path.length - 1];\n if (!parent.getChild(key).runtime) { return }\n\n parent.removeChild(key);\n};\n\nfunction update (targetModule, newModule) {\n // update target module\n targetModule.update(newModule);\n\n // update nested modules\n if (newModule.modules) {\n for (var key in newModule.modules) {\n if (!targetModule.getChild(key)) {\n console.warn(\n \"[vuex] trying to add a new module '\" + key + \"' on hot reloading, \" +\n 'manual reload is needed'\n );\n return\n }\n update(targetModule.getChild(key), newModule.modules[key]);\n }\n }\n}\n\nvar Vue; // bind on install\n\nvar Store = function Store (options) {\n var this$1 = this;\n if ( options === void 0 ) options = {};\n\n assert(Vue, \"must call Vue.use(Vuex) before creating a store instance.\");\n assert(typeof Promise !== 'undefined', \"vuex requires a Promise polyfill in this browser.\");\n\n var state = options.state; if ( state === void 0 ) state = {};\n var plugins = options.plugins; if ( plugins === void 0 ) plugins = [];\n var strict = options.strict; if ( strict === void 0 ) strict = false;\n\n // store internal state\n this._committing = false;\n this._actions = Object.create(null);\n this._mutations = Object.create(null);\n this._wrappedGetters = Object.create(null);\n this._modules = new ModuleCollection(options);\n this._modulesNamespaceMap = Object.create(null);\n this._subscribers = [];\n this._watcherVM = new Vue();\n\n // bind commit and dispatch to self\n var store = this;\n var ref = this;\n var dispatch = ref.dispatch;\n var commit = ref.commit;\n this.dispatch = function boundDispatch (type, payload) {\n return dispatch.call(store, type, payload)\n };\n this.commit = function boundCommit (type, payload, options) {\n return commit.call(store, type, payload, options)\n };\n\n // strict mode\n this.strict = strict;\n\n // init root module.\n // this also recursively registers all sub-modules\n // and collects all module getters inside this._wrappedGetters\n installModule(this, state, [], this._modules.root);\n\n // initialize the store vm, which is responsible for the reactivity\n // (also registers _wrappedGetters as computed properties)\n resetStoreVM(this, state);\n\n // apply plugins\n plugins.concat(devtoolPlugin).forEach(function (plugin) { return plugin(this$1); });\n};\n\nvar prototypeAccessors = { state: {} };\n\nprototypeAccessors.state.get = function () {\n return this._vm._data.$$state\n};\n\nprototypeAccessors.state.set = function (v) {\n assert(false, \"Use store.replaceState() to explicit replace store state.\");\n};\n\nStore.prototype.commit = function commit (_type, _payload, _options) {\n var this$1 = this;\n\n // check object-style commit\n var ref = unifyObjectStyle(_type, _payload, _options);\n var type = ref.type;\n var payload = ref.payload;\n var options = ref.options;\n\n var mutation = { type: type, payload: payload };\n var entry = this._mutations[type];\n if (!entry) {\n console.error((\"[vuex] unknown mutation type: \" + type));\n return\n }\n this._withCommit(function () {\n entry.forEach(function commitIterator (handler) {\n handler(payload);\n });\n });\n this._subscribers.forEach(function (sub) { return sub(mutation, this$1.state); });\n\n if (options && options.silent) {\n console.warn(\n \"[vuex] mutation type: \" + type + \". Silent option has been removed. \" +\n 'Use the filter functionality in the vue-devtools'\n );\n }\n};\n\nStore.prototype.dispatch = function dispatch (_type, _payload) {\n // check object-style dispatch\n var ref = unifyObjectStyle(_type, _payload);\n var type = ref.type;\n var payload = ref.payload;\n\n var entry = this._actions[type];\n if (!entry) {\n console.error((\"[vuex] unknown action type: \" + type));\n return\n }\n return entry.length > 1\n ? Promise.all(entry.map(function (handler) { return handler(payload); }))\n : entry[0](payload)\n};\n\nStore.prototype.subscribe = function subscribe (fn) {\n var subs = this._subscribers;\n if (subs.indexOf(fn) < 0) {\n subs.push(fn);\n }\n return function () {\n var i = subs.indexOf(fn);\n if (i > -1) {\n subs.splice(i, 1);\n }\n }\n};\n\nStore.prototype.watch = function watch (getter, cb, options) {\n var this$1 = this;\n\n assert(typeof getter === 'function', \"store.watch only accepts a function.\");\n return this._watcherVM.$watch(function () { return getter(this$1.state, this$1.getters); }, cb, options)\n};\n\nStore.prototype.replaceState = function replaceState (state) {\n var this$1 = this;\n\n this._withCommit(function () {\n this$1._vm._data.$$state = state;\n });\n};\n\nStore.prototype.registerModule = function registerModule (path, rawModule) {\n if (typeof path === 'string') { path = [path]; }\n assert(Array.isArray(path), \"module path must be a string or an Array.\");\n this._modules.register(path, rawModule);\n installModule(this, this.state, path, this._modules.get(path));\n // reset store to update getters...\n resetStoreVM(this, this.state);\n};\n\nStore.prototype.unregisterModule = function unregisterModule (path) {\n var this$1 = this;\n\n if (typeof path === 'string') { path = [path]; }\n assert(Array.isArray(path), \"module path must be a string or an Array.\");\n this._modules.unregister(path);\n this._withCommit(function () {\n var parentState = getNestedState(this$1.state, path.slice(0, -1));\n Vue.delete(parentState, path[path.length - 1]);\n });\n resetStore(this);\n};\n\nStore.prototype.hotUpdate = function hotUpdate (newOptions) {\n this._modules.update(newOptions);\n resetStore(this, true);\n};\n\nStore.prototype._withCommit = function _withCommit (fn) {\n var committing = this._committing;\n this._committing = true;\n fn();\n this._committing = committing;\n};\n\nObject.defineProperties( Store.prototype, prototypeAccessors );\n\nfunction resetStore (store, hot) {\n store._actions = Object.create(null);\n store._mutations = Object.create(null);\n store._wrappedGetters = Object.create(null);\n store._modulesNamespaceMap = Object.create(null);\n var state = store.state;\n // init all modules\n installModule(store, state, [], store._modules.root, true);\n // reset vm\n resetStoreVM(store, state, hot);\n}\n\nfunction resetStoreVM (store, state, hot) {\n var oldVm = store._vm;\n\n // bind store public getters\n store.getters = {};\n var wrappedGetters = store._wrappedGetters;\n var computed = {};\n forEachValue(wrappedGetters, function (fn, key) {\n // use computed to leverage its lazy-caching mechanism\n computed[key] = function () { return fn(store); };\n Object.defineProperty(store.getters, key, {\n get: function () { return store._vm[key]; },\n enumerable: true // for local getters\n });\n });\n\n // use a Vue instance to store the state tree\n // suppress warnings just in case the user has added\n // some funky global mixins\n var silent = Vue.config.silent;\n Vue.config.silent = true;\n store._vm = new Vue({\n data: {\n $$state: state\n },\n computed: computed\n });\n Vue.config.silent = silent;\n\n // enable strict mode for new vm\n if (store.strict) {\n enableStrictMode(store);\n }\n\n if (oldVm) {\n if (hot) {\n // dispatch changes in all subscribed watchers\n // to force getter re-evaluation for hot reloading.\n store._withCommit(function () {\n oldVm._data.$$state = null;\n });\n }\n Vue.nextTick(function () { return oldVm.$destroy(); });\n }\n}\n\nfunction installModule (store, rootState, path, module, hot) {\n var isRoot = !path.length;\n var namespace = store._modules.getNamespace(path);\n\n // register in namespace map\n if (module.namespaced) {\n store._modulesNamespaceMap[namespace] = module;\n }\n\n // set state\n if (!isRoot && !hot) {\n var parentState = getNestedState(rootState, path.slice(0, -1));\n var moduleName = path[path.length - 1];\n store._withCommit(function () {\n Vue.set(parentState, moduleName, module.state);\n });\n }\n\n var local = module.context = makeLocalContext(store, namespace, path);\n\n module.forEachMutation(function (mutation, key) {\n var namespacedType = namespace + key;\n registerMutation(store, namespacedType, mutation, local);\n });\n\n module.forEachAction(function (action, key) {\n var namespacedType = namespace + key;\n registerAction(store, namespacedType, action, local);\n });\n\n module.forEachGetter(function (getter, key) {\n var namespacedType = namespace + key;\n registerGetter(store, namespacedType, getter, local);\n });\n\n module.forEachChild(function (child, key) {\n installModule(store, rootState, path.concat(key), child, hot);\n });\n}\n\n/**\n * make localized dispatch, commit, getters and state\n * if there is no namespace, just use root ones\n */\nfunction makeLocalContext (store, namespace, path) {\n var noNamespace = namespace === '';\n\n var local = {\n dispatch: noNamespace ? store.dispatch : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (!store._actions[type]) {\n console.error((\"[vuex] unknown local action type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n return store.dispatch(type, payload)\n },\n\n commit: noNamespace ? store.commit : function (_type, _payload, _options) {\n var args = unifyObjectStyle(_type, _payload, _options);\n var payload = args.payload;\n var options = args.options;\n var type = args.type;\n\n if (!options || !options.root) {\n type = namespace + type;\n if (!store._mutations[type]) {\n console.error((\"[vuex] unknown local mutation type: \" + (args.type) + \", global type: \" + type));\n return\n }\n }\n\n store.commit(type, payload, options);\n }\n };\n\n // getters and state object must be gotten lazily\n // because they will be changed by vm update\n Object.defineProperties(local, {\n getters: {\n get: noNamespace\n ? function () { return store.getters; }\n : function () { return makeLocalGetters(store, namespace); }\n },\n state: {\n get: function () { return getNestedState(store.state, path); }\n }\n });\n\n return local\n}\n\nfunction makeLocalGetters (store, namespace) {\n var gettersProxy = {};\n\n var splitPos = namespace.length;\n Object.keys(store.getters).forEach(function (type) {\n // skip if the target getter is not match this namespace\n if (type.slice(0, splitPos) !== namespace) { return }\n\n // extract local getter type\n var localType = type.slice(splitPos);\n\n // Add a port to the getters proxy.\n // Define as getter property because\n // we do not want to evaluate the getters in this time.\n Object.defineProperty(gettersProxy, localType, {\n get: function () { return store.getters[type]; },\n enumerable: true\n });\n });\n\n return gettersProxy\n}\n\nfunction registerMutation (store, type, handler, local) {\n var entry = store._mutations[type] || (store._mutations[type] = []);\n entry.push(function wrappedMutationHandler (payload) {\n handler(local.state, payload);\n });\n}\n\nfunction registerAction (store, type, handler, local) {\n var entry = store._actions[type] || (store._actions[type] = []);\n entry.push(function wrappedActionHandler (payload, cb) {\n var res = handler({\n dispatch: local.dispatch,\n commit: local.commit,\n getters: local.getters,\n state: local.state,\n rootGetters: store.getters,\n rootState: store.state\n }, payload, cb);\n if (!isPromise(res)) {\n res = Promise.resolve(res);\n }\n if (store._devtoolHook) {\n return res.catch(function (err) {\n store._devtoolHook.emit('vuex:error', err);\n throw err\n })\n } else {\n return res\n }\n });\n}\n\nfunction registerGetter (store, type, rawGetter, local) {\n if (store._wrappedGetters[type]) {\n console.error((\"[vuex] duplicate getter key: \" + type));\n return\n }\n store._wrappedGetters[type] = function wrappedGetter (store) {\n return rawGetter(\n local.state, // local state\n local.getters, // local getters\n store.state, // root state\n store.getters // root getters\n )\n };\n}\n\nfunction enableStrictMode (store) {\n store._vm.$watch(function () { return this._data.$$state }, function () {\n assert(store._committing, \"Do not mutate vuex store state outside mutation handlers.\");\n }, { deep: true, sync: true });\n}\n\nfunction getNestedState (state, path) {\n return path.length\n ? path.reduce(function (state, key) { return state[key]; }, state)\n : state\n}\n\nfunction unifyObjectStyle (type, payload, options) {\n if (isObject(type) && type.type) {\n options = payload;\n payload = type;\n type = type.type;\n }\n\n assert(typeof type === 'string', (\"Expects string as the type, but found \" + (typeof type) + \".\"));\n\n return { type: type, payload: payload, options: options }\n}\n\nfunction install (_Vue) {\n if (Vue) {\n console.error(\n '[vuex] already installed. Vue.use(Vuex) should be called only once.'\n );\n return\n }\n Vue = _Vue;\n applyMixin(Vue);\n}\n\n// auto install in dist mode\nif (typeof window !== 'undefined' && window.Vue) {\n install(window.Vue);\n}\n\nvar mapState = normalizeNamespace(function (namespace, states) {\n var res = {};\n normalizeMap(states).forEach(function (ref) {\n var key = ref.key;\n var val = ref.val;\n\n res[key] = function mappedState () {\n var state = this.$store.state;\n var getters = this.$store.getters;\n if (namespace) {\n var module = getModuleByNamespace(this.$store, 'mapState', namespace);\n if (!module) {\n return\n }\n state = module.context.state;\n getters = module.context.getters;\n }\n return typeof val === 'function'\n ? val.call(this, state, getters)\n : state[val]\n };\n // mark vuex getter for devtools\n res[key].vuex = true;\n });\n return res\n});\n\nvar mapMutations = normalizeNamespace(function (namespace, mutations) {\n var res = {};\n normalizeMap(mutations).forEach(function (ref) {\n var key = ref.key;\n var val = ref.val;\n\n val = namespace + val;\n res[key] = function mappedMutation () {\n var args = [], len = arguments.length;\n while ( len-- ) args[ len ] = arguments[ len ];\n\n if (namespace && !getModuleByNamespace(this.$store, 'mapMutations', namespace)) {\n return\n }\n return this.$store.commit.apply(this.$store, [val].concat(args))\n };\n });\n return res\n});\n\nvar mapGetters = normalizeNamespace(function (namespace, getters) {\n var res = {};\n normalizeMap(getters).forEach(function (ref) {\n var key = ref.key;\n var val = ref.val;\n\n val = namespace + val;\n res[key] = function mappedGetter () {\n if (namespace && !getModuleByNamespace(this.$store, 'mapGetters', namespace)) {\n return\n }\n if (!(val in this.$store.getters)) {\n console.error((\"[vuex] unknown getter: \" + val));\n return\n }\n return this.$store.getters[val]\n };\n // mark vuex getter for devtools\n res[key].vuex = true;\n });\n return res\n});\n\nvar mapActions = normalizeNamespace(function (namespace, actions) {\n var res = {};\n normalizeMap(actions).forEach(function (ref) {\n var key = ref.key;\n var val = ref.val;\n\n val = namespace + val;\n res[key] = function mappedAction () {\n var args = [], len = arguments.length;\n while ( len-- ) args[ len ] = arguments[ len ];\n\n if (namespace && !getModuleByNamespace(this.$store, 'mapActions', namespace)) {\n return\n }\n return this.$store.dispatch.apply(this.$store, [val].concat(args))\n };\n });\n return res\n});\n\nfunction normalizeMap (map) {\n return Array.isArray(map)\n ? map.map(function (key) { return ({ key: key, val: key }); })\n : Object.keys(map).map(function (key) { return ({ key: key, val: map[key] }); })\n}\n\nfunction normalizeNamespace (fn) {\n return function (namespace, map) {\n if (typeof namespace !== 'string') {\n map = namespace;\n namespace = '';\n } else if (namespace.charAt(namespace.length - 1) !== '/') {\n namespace += '/';\n }\n return fn(namespace, map)\n }\n}\n\nfunction getModuleByNamespace (store, helper, namespace) {\n var module = store._modulesNamespaceMap[namespace];\n if (!module) {\n console.error((\"[vuex] module namespace not found in \" + helper + \"(): \" + namespace));\n }\n return module\n}\n\nvar index_esm = {\n Store: Store,\n install: install,\n version: '2.3.0',\n mapState: mapState,\n mapMutations: mapMutations,\n mapGetters: mapGetters,\n mapActions: mapActions\n};\n\n/* harmony default export */ exports[\"c\"] = index_esm;\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMS5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL34vdnVleC9kaXN0L3Z1ZXguZXNtLmpzP2VkYWEiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiB2dWV4IHYyLjMuMFxuICogKGMpIDIwMTcgRXZhbiBZb3VcbiAqIEBsaWNlbnNlIE1JVFxuICovXG52YXIgYXBwbHlNaXhpbiA9IGZ1bmN0aW9uIChWdWUpIHtcbiAgdmFyIHZlcnNpb24gPSBOdW1iZXIoVnVlLnZlcnNpb24uc3BsaXQoJy4nKVswXSk7XG5cbiAgaWYgKHZlcnNp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BQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOyIsInNvdXJjZVJvb3QiOiIifQ=="); - -/***/ }, -/* 2 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -eval("/* WEBPACK VAR INJECTION */(function(process, global) {/*!\n * Vue.js v2.4.2\n * (c) 2014-2017 Evan You\n * Released under the MIT License.\n */\n'use strict';\n\n/* */\n\n// these helpers produces better vm code in JS engines due to their\n// explicitness and function inlining\nfunction isUndef (v) {\n return v === undefined || v === null\n}\n\nfunction isDef (v) {\n return v !== undefined && v !== null\n}\n\nfunction isTrue (v) {\n return v === true\n}\n\nfunction isFalse (v) {\n return v === false\n}\n\n/**\n * Check if value is primitive\n */\nfunction isPrimitive (value) {\n return (\n typeof value === 'string' ||\n typeof value === 'number' ||\n typeof value === 'boolean'\n )\n}\n\n/**\n * Quick object check - this is primarily used to tell\n * Objects from primitive values when we know the value\n * is a JSON-compliant type.\n */\nfunction isObject (obj) {\n return obj !== null && typeof obj === 'object'\n}\n\nvar _toString = Object.prototype.toString;\n\n/**\n * Strict object type check. Only returns true\n * for plain JavaScript objects.\n */\nfunction isPlainObject (obj) {\n return _toString.call(obj) === '[object Object]'\n}\n\nfunction isRegExp (v) {\n return _toString.call(v) === '[object RegExp]'\n}\n\n/**\n * Check if val is a valid array index.\n */\nfunction isValidArrayIndex (val) {\n var n = parseFloat(val);\n return n >= 0 && Math.floor(n) === n && isFinite(val)\n}\n\n/**\n * Convert a value to a string that is actually rendered.\n */\nfunction toString (val) {\n return val == null\n ? ''\n : typeof val === 'object'\n ? JSON.stringify(val, null, 2)\n : String(val)\n}\n\n/**\n * Convert a input value to a number for persistence.\n * If the conversion fails, return original string.\n */\nfunction toNumber (val) {\n var n = parseFloat(val);\n return isNaN(n) ? val : n\n}\n\n/**\n * Make a map and return a function for checking if a key\n * is in that map.\n */\nfunction makeMap (\n str,\n expectsLowerCase\n) {\n var map = Object.create(null);\n var list = str.split(',');\n for (var i = 0; i < list.length; i++) {\n map[list[i]] = true;\n }\n return expectsLowerCase\n ? function (val) { return map[val.toLowerCase()]; }\n : function (val) { return map[val]; }\n}\n\n/**\n * Check if a tag is a built-in tag.\n */\nvar isBuiltInTag = makeMap('slot,component', true);\n\n/**\n * Check if a attribute is a reserved attribute.\n */\nvar isReservedAttribute = makeMap('key,ref,slot,is');\n\n/**\n * Remove an item from an array\n */\nfunction remove (arr, item) {\n if (arr.length) {\n var index = arr.indexOf(item);\n if (index > -1) {\n return arr.splice(index, 1)\n }\n }\n}\n\n/**\n * Check whether the object has the property.\n */\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction hasOwn (obj, key) {\n return hasOwnProperty.call(obj, key)\n}\n\n/**\n * Create a cached version of a pure function.\n */\nfunction cached (fn) {\n var cache = Object.create(null);\n return (function cachedFn (str) {\n var hit = cache[str];\n return hit || (cache[str] = fn(str))\n })\n}\n\n/**\n * Camelize a hyphen-delimited string.\n */\nvar camelizeRE = /-(\\w)/g;\nvar camelize = cached(function (str) {\n return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })\n});\n\n/**\n * Capitalize a string.\n */\nvar capitalize = cached(function (str) {\n return str.charAt(0).toUpperCase() + str.slice(1)\n});\n\n/**\n * Hyphenate a camelCase string.\n */\nvar hyphenateRE = /([^-])([A-Z])/g;\nvar hyphenate = cached(function (str) {\n return str\n .replace(hyphenateRE, '$1-$2')\n .replace(hyphenateRE, '$1-$2')\n .toLowerCase()\n});\n\n/**\n * Simple bind, faster than native\n */\nfunction bind (fn, ctx) {\n function boundFn (a) {\n var l = arguments.length;\n return l\n ? l > 1\n ? fn.apply(ctx, arguments)\n : fn.call(ctx, a)\n : fn.call(ctx)\n }\n // record original fn length\n boundFn._length = fn.length;\n return boundFn\n}\n\n/**\n * Convert an Array-like object to a real Array.\n */\nfunction toArray (list, start) {\n start = start || 0;\n var i = list.length - start;\n var ret = new Array(i);\n while (i--) {\n ret[i] = list[i + start];\n }\n return ret\n}\n\n/**\n * Mix properties into target object.\n */\nfunction extend (to, _from) {\n for (var key in _from) {\n to[key] = _from[key];\n }\n return to\n}\n\n/**\n * Merge an Array of Objects into a single Object.\n */\nfunction toObject (arr) {\n var res = {};\n for (var i = 0; i < arr.length; i++) {\n if (arr[i]) {\n extend(res, arr[i]);\n }\n }\n return res\n}\n\n/**\n * Perform no operation.\n * Stubbing args to make Flow happy without leaving useless transpiled code\n * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/)\n */\nfunction noop (a, b, c) {}\n\n/**\n * Always return false.\n */\nvar no = function (a, b, c) { return false; };\n\n/**\n * Return same value\n */\nvar identity = function (_) { return _; };\n\n/**\n * Generate a static keys string from compiler modules.\n */\nfunction genStaticKeys (modules) {\n return modules.reduce(function (keys, m) {\n return keys.concat(m.staticKeys || [])\n }, []).join(',')\n}\n\n/**\n * Check if two values are loosely equal - that is,\n * if they are plain objects, do they have the same shape?\n */\nfunction looseEqual (a, b) {\n if (a === b) { return true }\n var isObjectA = isObject(a);\n var isObjectB = isObject(b);\n if (isObjectA && isObjectB) {\n try {\n var isArrayA = Array.isArray(a);\n var isArrayB = Array.isArray(b);\n if (isArrayA && isArrayB) {\n return a.length === b.length && a.every(function (e, i) {\n return looseEqual(e, b[i])\n })\n } else if (!isArrayA && !isArrayB) {\n var keysA = Object.keys(a);\n var keysB = Object.keys(b);\n return keysA.length === keysB.length && keysA.every(function (key) {\n return looseEqual(a[key], b[key])\n })\n } else {\n /* istanbul ignore next */\n return false\n }\n } catch (e) {\n /* istanbul ignore next */\n return false\n }\n } else if (!isObjectA && !isObjectB) {\n return String(a) === String(b)\n } else {\n return false\n }\n}\n\nfunction looseIndexOf (arr, val) {\n for (var i = 0; i < arr.length; i++) {\n if (looseEqual(arr[i], val)) { return i }\n }\n return -1\n}\n\n/**\n * Ensure a function is called only once.\n */\nfunction once (fn) {\n var called = false;\n return function () {\n if (!called) {\n called = true;\n fn.apply(this, arguments);\n }\n }\n}\n\nvar SSR_ATTR = 'data-server-rendered';\n\nvar ASSET_TYPES = [\n 'component',\n 'directive',\n 'filter'\n];\n\nvar LIFECYCLE_HOOKS = [\n 'beforeCreate',\n 'created',\n 'beforeMount',\n 'mounted',\n 'beforeUpdate',\n 'updated',\n 'beforeDestroy',\n 'destroyed',\n 'activated',\n 'deactivated'\n];\n\n/* */\n\nvar config = ({\n /**\n * Option merge strategies (used in core/util/options)\n */\n optionMergeStrategies: Object.create(null),\n\n /**\n * Whether to suppress warnings.\n */\n silent: false,\n\n /**\n * Show production mode tip message on boot?\n */\n productionTip: process.env.NODE_ENV !== 'production',\n\n /**\n * Whether to enable devtools\n */\n devtools: process.env.NODE_ENV !== 'production',\n\n /**\n * Whether to record perf\n */\n performance: false,\n\n /**\n * Error handler for watcher errors\n */\n errorHandler: null,\n\n /**\n * Warn handler for watcher warns\n */\n warnHandler: null,\n\n /**\n * Ignore certain custom elements\n */\n ignoredElements: [],\n\n /**\n * Custom user key aliases for v-on\n */\n keyCodes: Object.create(null),\n\n /**\n * Check if a tag is reserved so that it cannot be registered as a\n * component. This is platform-dependent and may be overwritten.\n */\n isReservedTag: no,\n\n /**\n * Check if an attribute is reserved so that it cannot be used as a component\n * prop. This is platform-dependent and may be overwritten.\n */\n isReservedAttr: no,\n\n /**\n * Check if a tag is an unknown element.\n * Platform-dependent.\n */\n isUnknownElement: no,\n\n /**\n * Get the namespace of an element\n */\n getTagNamespace: noop,\n\n /**\n * Parse the real tag name for the specific platform.\n */\n parsePlatformTagName: identity,\n\n /**\n * Check if an attribute must be bound using property, e.g. value\n * Platform-dependent.\n */\n mustUseProp: no,\n\n /**\n * Exposed for legacy reasons\n */\n _lifecycleHooks: LIFECYCLE_HOOKS\n});\n\n/* */\n\nvar emptyObject = Object.freeze({});\n\n/**\n * Check if a string starts with $ or _\n */\nfunction isReserved (str) {\n var c = (str + '').charCodeAt(0);\n return c === 0x24 || c === 0x5F\n}\n\n/**\n * Define a property.\n */\nfunction def (obj, key, val, enumerable) {\n Object.defineProperty(obj, key, {\n value: val,\n enumerable: !!enumerable,\n writable: true,\n configurable: true\n });\n}\n\n/**\n * Parse simple path.\n */\nvar bailRE = /[^\\w.$]/;\nfunction parsePath (path) {\n if (bailRE.test(path)) {\n return\n }\n var segments = path.split('.');\n return function (obj) {\n for (var i = 0; i < segments.length; i++) {\n if (!obj) { return }\n obj = obj[segments[i]];\n }\n return obj\n }\n}\n\n/* */\n\nvar warn = noop;\nvar tip = noop;\nvar formatComponentName = (null); // work around flow check\n\nif (process.env.NODE_ENV !== 'production') {\n var hasConsole = typeof console !== 'undefined';\n var classifyRE = /(?:^|[-_])(\\w)/g;\n var classify = function (str) { return str\n .replace(classifyRE, function (c) { return c.toUpperCase(); })\n .replace(/[-_]/g, ''); };\n\n warn = function (msg, vm) {\n var trace = vm ? generateComponentTrace(vm) : '';\n\n if (config.warnHandler) {\n config.warnHandler.call(null, msg, vm, trace);\n } else if (hasConsole && (!config.silent)) {\n console.error((\"[Vue warn]: \" + msg + trace));\n }\n };\n\n tip = function (msg, vm) {\n if (hasConsole && (!config.silent)) {\n console.warn(\"[Vue tip]: \" + msg + (\n vm ? generateComponentTrace(vm) : ''\n ));\n }\n };\n\n formatComponentName = function (vm, includeFile) {\n if (vm.$root === vm) {\n return ''\n }\n var name = typeof vm === 'string'\n ? vm\n : typeof vm === 'function' && vm.options\n ? vm.options.name\n : vm._isVue\n ? vm.$options.name || vm.$options._componentTag\n : vm.name;\n\n var file = vm._isVue && vm.$options.__file;\n if (!name && file) {\n var match = file.match(/([^/\\\\]+)\\.vue$/);\n name = match && match[1];\n }\n\n return (\n (name ? (\"<\" + (classify(name)) + \">\") : \"\") +\n (file && includeFile !== false ? (\" at \" + file) : '')\n )\n };\n\n var repeat = function (str, n) {\n var res = '';\n while (n) {\n if (n % 2 === 1) { res += str; }\n if (n > 1) { str += str; }\n n >>= 1;\n }\n return res\n };\n\n var generateComponentTrace = function (vm) {\n if (vm._isVue && vm.$parent) {\n var tree = [];\n var currentRecursiveSequence = 0;\n while (vm) {\n if (tree.length > 0) {\n var last = tree[tree.length - 1];\n if (last.constructor === vm.constructor) {\n currentRecursiveSequence++;\n vm = vm.$parent;\n continue\n } else if (currentRecursiveSequence > 0) {\n tree[tree.length - 1] = [last, currentRecursiveSequence];\n currentRecursiveSequence = 0;\n }\n }\n tree.push(vm);\n vm = vm.$parent;\n }\n return '\\n\\nfound in\\n\\n' + tree\n .map(function (vm, i) { return (\"\" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)\n ? ((formatComponentName(vm[0])) + \"... (\" + (vm[1]) + \" recursive calls)\")\n : formatComponentName(vm))); })\n .join('\\n')\n } else {\n return (\"\\n\\n(found in \" + (formatComponentName(vm)) + \")\")\n }\n };\n}\n\n/* */\n\nfunction handleError (err, vm, info) {\n if (config.errorHandler) {\n config.errorHandler.call(null, err, vm, info);\n } else {\n if (process.env.NODE_ENV !== 'production') {\n warn((\"Error in \" + info + \": \\\"\" + (err.toString()) + \"\\\"\"), vm);\n }\n /* istanbul ignore else */\n if (inBrowser && typeof console !== 'undefined') {\n console.error(err);\n } else {\n throw err\n }\n }\n}\n\n/* */\n/* globals MutationObserver */\n\n// can we use __proto__?\nvar hasProto = '__proto__' in {};\n\n// Browser environment sniffing\nvar inBrowser = typeof window !== 'undefined';\nvar UA = inBrowser && window.navigator.userAgent.toLowerCase();\nvar isIE = UA && /msie|trident/.test(UA);\nvar isIE9 = UA && UA.indexOf('msie 9.0') > 0;\nvar isEdge = UA && UA.indexOf('edge/') > 0;\nvar isAndroid = UA && UA.indexOf('android') > 0;\nvar isIOS = UA && /iphone|ipad|ipod|ios/.test(UA);\nvar isChrome = UA && /chrome\\/\\d+/.test(UA) && !isEdge;\n\n// Firefix has a \"watch\" function on Object.prototype...\nvar nativeWatch = ({}).watch;\n\nvar supportsPassive = false;\nif (inBrowser) {\n try {\n var opts = {};\n Object.defineProperty(opts, 'passive', ({\n get: function get () {\n /* istanbul ignore next */\n supportsPassive = true;\n }\n })); // https://github.com/facebook/flow/issues/285\n window.addEventListener('test-passive', null, opts);\n } catch (e) {}\n}\n\n// this needs to be lazy-evaled because vue may be required before\n// vue-server-renderer can set VUE_ENV\nvar _isServer;\nvar isServerRendering = function () {\n if (_isServer === undefined) {\n /* istanbul ignore if */\n if (!inBrowser && typeof global !== 'undefined') {\n // detect presence of vue-server-renderer and avoid\n // Webpack shimming the process\n _isServer = global['process'].env.VUE_ENV === 'server';\n } else {\n _isServer = false;\n }\n }\n return _isServer\n};\n\n// detect devtools\nvar devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;\n\n/* istanbul ignore next */\nfunction isNative (Ctor) {\n return typeof Ctor === 'function' && /native code/.test(Ctor.toString())\n}\n\nvar hasSymbol =\n typeof Symbol !== 'undefined' && isNative(Symbol) &&\n typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);\n\n/**\n * Defer a task to execute it asynchronously.\n */\nvar nextTick = (function () {\n var callbacks = [];\n var pending = false;\n var timerFunc;\n\n function nextTickHandler () {\n pending = false;\n var copies = callbacks.slice(0);\n callbacks.length = 0;\n for (var i = 0; i < copies.length; i++) {\n copies[i]();\n }\n }\n\n // the nextTick behavior leverages the microtask queue, which can be accessed\n // via either native Promise.then or MutationObserver.\n // MutationObserver has wider support, however it is seriously bugged in\n // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It\n // completely stops working after triggering a few times... so, if native\n // Promise is available, we will use it:\n /* istanbul ignore if */\n if (typeof Promise !== 'undefined' && isNative(Promise)) {\n var p = Promise.resolve();\n var logError = function (err) { console.error(err); };\n timerFunc = function () {\n p.then(nextTickHandler).catch(logError);\n // in problematic UIWebViews, Promise.then doesn't completely break, but\n // it can get stuck in a weird state where callbacks are pushed into the\n // microtask queue but the queue isn't being flushed, until the browser\n // needs to do some other work, e.g. handle a timer. Therefore we can\n // \"force\" the microtask queue to be flushed by adding an empty timer.\n if (isIOS) { setTimeout(noop); }\n };\n } else if (typeof MutationObserver !== 'undefined' && (\n isNative(MutationObserver) ||\n // PhantomJS and iOS 7.x\n MutationObserver.toString() === '[object MutationObserverConstructor]'\n )) {\n // use MutationObserver where native Promise is not available,\n // e.g. PhantomJS IE11, iOS7, Android 4.4\n var counter = 1;\n var observer = new MutationObserver(nextTickHandler);\n var textNode = document.createTextNode(String(counter));\n observer.observe(textNode, {\n characterData: true\n });\n timerFunc = function () {\n counter = (counter + 1) % 2;\n textNode.data = String(counter);\n };\n } else {\n // fallback to setTimeout\n /* istanbul ignore next */\n timerFunc = function () {\n setTimeout(nextTickHandler, 0);\n };\n }\n\n return function queueNextTick (cb, ctx) {\n var _resolve;\n callbacks.push(function () {\n if (cb) {\n try {\n cb.call(ctx);\n } catch (e) {\n handleError(e, ctx, 'nextTick');\n }\n } else if (_resolve) {\n _resolve(ctx);\n }\n });\n if (!pending) {\n pending = true;\n timerFunc();\n }\n if (!cb && typeof Promise !== 'undefined') {\n return new Promise(function (resolve, reject) {\n _resolve = resolve;\n })\n }\n }\n})();\n\nvar _Set;\n/* istanbul ignore if */\nif (typeof Set !== 'undefined' && isNative(Set)) {\n // use native Set when available.\n _Set = Set;\n} else {\n // a non-standard Set polyfill that only works with primitive keys.\n _Set = (function () {\n function Set () {\n this.set = Object.create(null);\n }\n Set.prototype.has = function has (key) {\n return this.set[key] === true\n };\n Set.prototype.add = function add (key) {\n this.set[key] = true;\n };\n Set.prototype.clear = function clear () {\n this.set = Object.create(null);\n };\n\n return Set;\n }());\n}\n\n/* */\n\n\nvar uid = 0;\n\n/**\n * A dep is an observable that can have multiple\n * directives subscribing to it.\n */\nvar Dep = function Dep () {\n this.id = uid++;\n this.subs = [];\n};\n\nDep.prototype.addSub = function addSub (sub) {\n this.subs.push(sub);\n};\n\nDep.prototype.removeSub = function removeSub (sub) {\n remove(this.subs, sub);\n};\n\nDep.prototype.depend = function depend () {\n if (Dep.target) {\n Dep.target.addDep(this);\n }\n};\n\nDep.prototype.notify = function notify () {\n // stabilize the subscriber list first\n var subs = this.subs.slice();\n for (var i = 0, l = subs.length; i < l; i++) {\n subs[i].update();\n }\n};\n\n// the current target watcher being evaluated.\n// this is globally unique because there could be only one\n// watcher being evaluated at any time.\nDep.target = null;\nvar targetStack = [];\n\nfunction pushTarget (_target) {\n if (Dep.target) { targetStack.push(Dep.target); }\n Dep.target = _target;\n}\n\nfunction popTarget () {\n Dep.target = targetStack.pop();\n}\n\n/*\n * not type checking this file because flow doesn't play well with\n * dynamically accessing methods on Array prototype\n */\n\nvar arrayProto = Array.prototype;\nvar arrayMethods = Object.create(arrayProto);[\n 'push',\n 'pop',\n 'shift',\n 'unshift',\n 'splice',\n 'sort',\n 'reverse'\n]\n.forEach(function (method) {\n // cache original method\n var original = arrayProto[method];\n def(arrayMethods, method, function mutator () {\n var args = [], len = arguments.length;\n while ( len-- ) args[ len ] = arguments[ len ];\n\n var result = original.apply(this, args);\n var ob = this.__ob__;\n var inserted;\n switch (method) {\n case 'push':\n case 'unshift':\n inserted = args;\n break\n case 'splice':\n inserted = args.slice(2);\n break\n }\n if (inserted) { ob.observeArray(inserted); }\n // notify change\n ob.dep.notify();\n return result\n });\n});\n\n/* */\n\nvar arrayKeys = Object.getOwnPropertyNames(arrayMethods);\n\n/**\n * By default, when a reactive property is set, the new value is\n * also converted to become reactive. However when passing down props,\n * we don't want to force conversion because the value may be a nested value\n * under a frozen data structure. Converting it would defeat the optimization.\n */\nvar observerState = {\n shouldConvert: true\n};\n\n/**\n * Observer class that are attached to each observed\n * object. Once attached, the observer converts target\n * object's property keys into getter/setters that\n * collect dependencies and dispatches updates.\n */\nvar Observer = function Observer (value) {\n this.value = value;\n this.dep = new Dep();\n this.vmCount = 0;\n def(value, '__ob__', this);\n if (Array.isArray(value)) {\n var augment = hasProto\n ? protoAugment\n : copyAugment;\n augment(value, arrayMethods, arrayKeys);\n this.observeArray(value);\n } else {\n this.walk(value);\n }\n};\n\n/**\n * Walk through each property and convert them into\n * getter/setters. This method should only be called when\n * value type is Object.\n */\nObserver.prototype.walk = function walk (obj) {\n var keys = Object.keys(obj);\n for (var i = 0; i < keys.length; i++) {\n defineReactive$$1(obj, keys[i], obj[keys[i]]);\n }\n};\n\n/**\n * Observe a list of Array items.\n */\nObserver.prototype.observeArray = function observeArray (items) {\n for (var i = 0, l = items.length; i < l; i++) {\n observe(items[i]);\n }\n};\n\n// helpers\n\n/**\n * Augment an target Object or Array by intercepting\n * the prototype chain using __proto__\n */\nfunction protoAugment (target, src, keys) {\n /* eslint-disable no-proto */\n target.__proto__ = src;\n /* eslint-enable no-proto */\n}\n\n/**\n * Augment an target Object or Array by defining\n * hidden properties.\n */\n/* istanbul ignore next */\nfunction copyAugment (target, src, keys) {\n for (var i = 0, l = keys.length; i < l; i++) {\n var key = keys[i];\n def(target, key, src[key]);\n }\n}\n\n/**\n * Attempt to create an observer instance for a value,\n * returns the new observer if successfully observed,\n * or the existing observer if the value already has one.\n */\nfunction observe (value, asRootData) {\n if (!isObject(value)) {\n return\n }\n var ob;\n if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {\n ob = value.__ob__;\n } else if (\n observerState.shouldConvert &&\n !isServerRendering() &&\n (Array.isArray(value) || isPlainObject(value)) &&\n Object.isExtensible(value) &&\n !value._isVue\n ) {\n ob = new Observer(value);\n }\n if (asRootData && ob) {\n ob.vmCount++;\n }\n return ob\n}\n\n/**\n * Define a reactive property on an Object.\n */\nfunction defineReactive$$1 (\n obj,\n key,\n val,\n customSetter,\n shallow\n) {\n var dep = new Dep();\n\n var property = Object.getOwnPropertyDescriptor(obj, key);\n if (property && property.configurable === false) {\n return\n }\n\n // cater for pre-defined getter/setters\n var getter = property && property.get;\n var setter = property && property.set;\n\n var childOb = !shallow && observe(val);\n Object.defineProperty(obj, key, {\n enumerable: true,\n configurable: true,\n get: function reactiveGetter () {\n var value = getter ? getter.call(obj) : val;\n if (Dep.target) {\n dep.depend();\n if (childOb) {\n childOb.dep.depend();\n }\n if (Array.isArray(value)) {\n dependArray(value);\n }\n }\n return value\n },\n set: function reactiveSetter (newVal) {\n var value = getter ? getter.call(obj) : val;\n /* eslint-disable no-self-compare */\n if (newVal === value || (newVal !== newVal && value !== value)) {\n return\n }\n /* eslint-enable no-self-compare */\n if (process.env.NODE_ENV !== 'production' && customSetter) {\n customSetter();\n }\n if (setter) {\n setter.call(obj, newVal);\n } else {\n val = newVal;\n }\n childOb = !shallow && observe(newVal);\n dep.notify();\n }\n });\n}\n\n/**\n * Set a property on an object. Adds the new property and\n * triggers change notification if the property doesn't\n * already exist.\n */\nfunction set (target, key, val) {\n if (Array.isArray(target) && isValidArrayIndex(key)) {\n target.length = Math.max(target.length, key);\n target.splice(key, 1, val);\n return val\n }\n if (hasOwn(target, key)) {\n target[key] = val;\n return val\n }\n var ob = (target).__ob__;\n if (target._isVue || (ob && ob.vmCount)) {\n process.env.NODE_ENV !== 'production' && warn(\n 'Avoid adding reactive properties to a Vue instance or its root $data ' +\n 'at runtime - declare it upfront in the data option.'\n );\n return val\n }\n if (!ob) {\n target[key] = val;\n return val\n }\n defineReactive$$1(ob.value, key, val);\n ob.dep.notify();\n return val\n}\n\n/**\n * Delete a property and trigger change if necessary.\n */\nfunction del (target, key) {\n if (Array.isArray(target) && isValidArrayIndex(key)) {\n target.splice(key, 1);\n return\n }\n var ob = (target).__ob__;\n if (target._isVue || (ob && ob.vmCount)) {\n process.env.NODE_ENV !== 'production' && warn(\n 'Avoid deleting properties on a Vue instance or its root $data ' +\n '- just set it to null.'\n );\n return\n }\n if (!hasOwn(target, key)) {\n return\n }\n delete target[key];\n if (!ob) {\n return\n }\n ob.dep.notify();\n}\n\n/**\n * Collect dependencies on array elements when the array is touched, since\n * we cannot intercept array element access like property getters.\n */\nfunction dependArray (value) {\n for (var e = (void 0), i = 0, l = value.length; i < l; i++) {\n e = value[i];\n e && e.__ob__ && e.__ob__.dep.depend();\n if (Array.isArray(e)) {\n dependArray(e);\n }\n }\n}\n\n/* */\n\n/**\n * Option overwriting strategies are functions that handle\n * how to merge a parent option value and a child option\n * value into the final value.\n */\nvar strats = config.optionMergeStrategies;\n\n/**\n * Options with restrictions\n */\nif (process.env.NODE_ENV !== 'production') {\n strats.el = strats.propsData = function (parent, child, vm, key) {\n if (!vm) {\n warn(\n \"option \\\"\" + key + \"\\\" can only be used during instance \" +\n 'creation with the `new` keyword.'\n );\n }\n return defaultStrat(parent, child)\n };\n}\n\n/**\n * Helper that recursively merges two data objects together.\n */\nfunction mergeData (to, from) {\n if (!from) { return to }\n var key, toVal, fromVal;\n var keys = Object.keys(from);\n for (var i = 0; i < keys.length; i++) {\n key = keys[i];\n toVal = to[key];\n fromVal = from[key];\n if (!hasOwn(to, key)) {\n set(to, key, fromVal);\n } else if (isPlainObject(toVal) && isPlainObject(fromVal)) {\n mergeData(toVal, fromVal);\n }\n }\n return to\n}\n\n/**\n * Data\n */\nfunction mergeDataOrFn (\n parentVal,\n childVal,\n vm\n) {\n if (!vm) {\n // in a Vue.extend merge, both should be functions\n if (!childVal) {\n return parentVal\n }\n if (!parentVal) {\n return childVal\n }\n // when parentVal & childVal are both present,\n // we need to return a function that returns the\n // merged result of both functions... no need to\n // check if parentVal is a function here because\n // it has to be a function to pass previous merges.\n return function mergedDataFn () {\n return mergeData(\n typeof childVal === 'function' ? childVal.call(this) : childVal,\n typeof parentVal === 'function' ? parentVal.call(this) : parentVal\n )\n }\n } else if (parentVal || childVal) {\n return function mergedInstanceDataFn () {\n // instance merge\n var instanceData = typeof childVal === 'function'\n ? childVal.call(vm)\n : childVal;\n var defaultData = typeof parentVal === 'function'\n ? parentVal.call(vm)\n : undefined;\n if (instanceData) {\n return mergeData(instanceData, defaultData)\n } else {\n return defaultData\n }\n }\n }\n}\n\nstrats.data = function (\n parentVal,\n childVal,\n vm\n) {\n if (!vm) {\n if (childVal && typeof childVal !== 'function') {\n process.env.NODE_ENV !== 'production' && warn(\n 'The \"data\" option should be a function ' +\n 'that returns a per-instance value in component ' +\n 'definitions.',\n vm\n );\n\n return parentVal\n }\n return mergeDataOrFn.call(this, parentVal, childVal)\n }\n\n return mergeDataOrFn(parentVal, childVal, vm)\n};\n\n/**\n * Hooks and props are merged as arrays.\n */\nfunction mergeHook (\n parentVal,\n childVal\n) {\n return childVal\n ? parentVal\n ? parentVal.concat(childVal)\n : Array.isArray(childVal)\n ? childVal\n : [childVal]\n : parentVal\n}\n\nLIFECYCLE_HOOKS.forEach(function (hook) {\n strats[hook] = mergeHook;\n});\n\n/**\n * Assets\n *\n * When a vm is present (instance creation), we need to do\n * a three-way merge between constructor options, instance\n * options and parent options.\n */\nfunction mergeAssets (parentVal, childVal) {\n var res = Object.create(parentVal || null);\n return childVal\n ? extend(res, childVal)\n : res\n}\n\nASSET_TYPES.forEach(function (type) {\n strats[type + 's'] = mergeAssets;\n});\n\n/**\n * Watchers.\n *\n * Watchers hashes should not overwrite one\n * another, so we merge them as arrays.\n */\nstrats.watch = function (parentVal, childVal) {\n // work around Firefox's Object.prototype.watch...\n if (parentVal === nativeWatch) { parentVal = undefined; }\n if (childVal === nativeWatch) { childVal = undefined; }\n /* istanbul ignore if */\n if (!childVal) { return Object.create(parentVal || null) }\n if (!parentVal) { return childVal }\n var ret = {};\n extend(ret, parentVal);\n for (var key in childVal) {\n var parent = ret[key];\n var child = childVal[key];\n if (parent && !Array.isArray(parent)) {\n parent = [parent];\n }\n ret[key] = parent\n ? parent.concat(child)\n : Array.isArray(child) ? child : [child];\n }\n return ret\n};\n\n/**\n * Other object hashes.\n */\nstrats.props =\nstrats.methods =\nstrats.inject =\nstrats.computed = function (parentVal, childVal) {\n if (!parentVal) { return childVal }\n var ret = Object.create(null);\n extend(ret, parentVal);\n if (childVal) { extend(ret, childVal); }\n return ret\n};\nstrats.provide = mergeDataOrFn;\n\n/**\n * Default strategy.\n */\nvar defaultStrat = function (parentVal, childVal) {\n return childVal === undefined\n ? parentVal\n : childVal\n};\n\n/**\n * Validate component names\n */\nfunction checkComponents (options) {\n for (var key in options.components) {\n var lower = key.toLowerCase();\n if (isBuiltInTag(lower) || config.isReservedTag(lower)) {\n warn(\n 'Do not use built-in or reserved HTML elements as component ' +\n 'id: ' + key\n );\n }\n }\n}\n\n/**\n * Ensure all props option syntax are normalized into the\n * Object-based format.\n */\nfunction normalizeProps (options) {\n var props = options.props;\n if (!props) { return }\n var res = {};\n var i, val, name;\n if (Array.isArray(props)) {\n i = props.length;\n while (i--) {\n val = props[i];\n if (typeof val === 'string') {\n name = camelize(val);\n res[name] = { type: null };\n } else if (process.env.NODE_ENV !== 'production') {\n warn('props must be strings when using array syntax.');\n }\n }\n } else if (isPlainObject(props)) {\n for (var key in props) {\n val = props[key];\n name = camelize(key);\n res[name] = isPlainObject(val)\n ? val\n : { type: val };\n }\n }\n options.props = res;\n}\n\n/**\n * Normalize all injections into Object-based format\n */\nfunction normalizeInject (options) {\n var inject = options.inject;\n if (Array.isArray(inject)) {\n var normalized = options.inject = {};\n for (var i = 0; i < inject.length; i++) {\n normalized[inject[i]] = inject[i];\n }\n }\n}\n\n/**\n * Normalize raw function directives into object format.\n */\nfunction normalizeDirectives (options) {\n var dirs = options.directives;\n if (dirs) {\n for (var key in dirs) {\n var def = dirs[key];\n if (typeof def === 'function') {\n dirs[key] = { bind: def, update: def };\n }\n }\n }\n}\n\n/**\n * Merge two option objects into a new one.\n * Core utility used in both instantiation and inheritance.\n */\nfunction mergeOptions (\n parent,\n child,\n vm\n) {\n if (process.env.NODE_ENV !== 'production') {\n checkComponents(child);\n }\n\n if (typeof child === 'function') {\n child = child.options;\n }\n\n normalizeProps(child);\n normalizeInject(child);\n normalizeDirectives(child);\n var extendsFrom = child.extends;\n if (extendsFrom) {\n parent = mergeOptions(parent, extendsFrom, vm);\n }\n if (child.mixins) {\n for (var i = 0, l = child.mixins.length; i < l; i++) {\n parent = mergeOptions(parent, child.mixins[i], vm);\n }\n }\n var options = {};\n var key;\n for (key in parent) {\n mergeField(key);\n }\n for (key in child) {\n if (!hasOwn(parent, key)) {\n mergeField(key);\n }\n }\n function mergeField (key) {\n var strat = strats[key] || defaultStrat;\n options[key] = strat(parent[key], child[key], vm, key);\n }\n return options\n}\n\n/**\n * Resolve an asset.\n * This function is used because child instances need access\n * to assets defined in its ancestor chain.\n */\nfunction resolveAsset (\n options,\n type,\n id,\n warnMissing\n) {\n /* istanbul ignore if */\n if (typeof id !== 'string') {\n return\n }\n var assets = options[type];\n // check local registration variations first\n if (hasOwn(assets, id)) { return assets[id] }\n var camelizedId = camelize(id);\n if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }\n var PascalCaseId = capitalize(camelizedId);\n if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }\n // fallback to prototype chain\n var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];\n if (process.env.NODE_ENV !== 'production' && warnMissing && !res) {\n warn(\n 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,\n options\n );\n }\n return res\n}\n\n/* */\n\nfunction validateProp (\n key,\n propOptions,\n propsData,\n vm\n) {\n var prop = propOptions[key];\n var absent = !hasOwn(propsData, key);\n var value = propsData[key];\n // handle boolean props\n if (isType(Boolean, prop.type)) {\n if (absent && !hasOwn(prop, 'default')) {\n value = false;\n } else if (!isType(String, prop.type) && (value === '' || value === hyphenate(key))) {\n value = true;\n }\n }\n // check default value\n if (value === undefined) {\n value = getPropDefaultValue(vm, prop, key);\n // since the default value is a fresh copy,\n // make sure to observe it.\n var prevShouldConvert = observerState.shouldConvert;\n observerState.shouldConvert = true;\n observe(value);\n observerState.shouldConvert = prevShouldConvert;\n }\n if (process.env.NODE_ENV !== 'production') {\n assertProp(prop, key, value, vm, absent);\n }\n return value\n}\n\n/**\n * Get the default value of a prop.\n */\nfunction getPropDefaultValue (vm, prop, key) {\n // no default, return undefined\n if (!hasOwn(prop, 'default')) {\n return undefined\n }\n var def = prop.default;\n // warn against non-factory defaults for Object & Array\n if (process.env.NODE_ENV !== 'production' && isObject(def)) {\n warn(\n 'Invalid default value for prop \"' + key + '\": ' +\n 'Props with type Object/Array must use a factory function ' +\n 'to return the default value.',\n vm\n );\n }\n // the raw prop value was also undefined from previous render,\n // return previous default value to avoid unnecessary watcher trigger\n if (vm && vm.$options.propsData &&\n vm.$options.propsData[key] === undefined &&\n vm._props[key] !== undefined\n ) {\n return vm._props[key]\n }\n // call factory function for non-Function types\n // a value is Function if its prototype is function even across different execution context\n return typeof def === 'function' && getType(prop.type) !== 'Function'\n ? def.call(vm)\n : def\n}\n\n/**\n * Assert whether a prop is valid.\n */\nfunction assertProp (\n prop,\n name,\n value,\n vm,\n absent\n) {\n if (prop.required && absent) {\n warn(\n 'Missing required prop: \"' + name + '\"',\n vm\n );\n return\n }\n if (value == null && !prop.required) {\n return\n }\n var type = prop.type;\n var valid = !type || type === true;\n var expectedTypes = [];\n if (type) {\n if (!Array.isArray(type)) {\n type = [type];\n }\n for (var i = 0; i < type.length && !valid; i++) {\n var assertedType = assertType(value, type[i]);\n expectedTypes.push(assertedType.expectedType || '');\n valid = assertedType.valid;\n }\n }\n if (!valid) {\n warn(\n 'Invalid prop: type check failed for prop \"' + name + '\".' +\n ' Expected ' + expectedTypes.map(capitalize).join(', ') +\n ', got ' + Object.prototype.toString.call(value).slice(8, -1) + '.',\n vm\n );\n return\n }\n var validator = prop.validator;\n if (validator) {\n if (!validator(value)) {\n warn(\n 'Invalid prop: custom validator check failed for prop \"' + name + '\".',\n vm\n );\n }\n }\n}\n\nvar simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;\n\nfunction assertType (value, type) {\n var valid;\n var expectedType = getType(type);\n if (simpleCheckRE.test(expectedType)) {\n valid = typeof value === expectedType.toLowerCase();\n } else if (expectedType === 'Object') {\n valid = isPlainObject(value);\n } else if (expectedType === 'Array') {\n valid = Array.isArray(value);\n } else {\n valid = value instanceof type;\n }\n return {\n valid: valid,\n expectedType: expectedType\n }\n}\n\n/**\n * Use function string name to check built-in types,\n * because a simple equality check will fail when running\n * across different vms / iframes.\n */\nfunction getType (fn) {\n var match = fn && fn.toString().match(/^\\s*function (\\w+)/);\n return match ? match[1] : ''\n}\n\nfunction isType (type, fn) {\n if (!Array.isArray(fn)) {\n return getType(fn) === getType(type)\n }\n for (var i = 0, len = fn.length; i < len; i++) {\n if (getType(fn[i]) === getType(type)) {\n return true\n }\n }\n /* istanbul ignore next */\n return false\n}\n\n/* */\n\nvar mark;\nvar measure;\n\nif (process.env.NODE_ENV !== 'production') {\n var perf = inBrowser && window.performance;\n /* istanbul ignore if */\n if (\n perf &&\n perf.mark &&\n perf.measure &&\n perf.clearMarks &&\n perf.clearMeasures\n ) {\n mark = function (tag) { return perf.mark(tag); };\n measure = function (name, startTag, endTag) {\n perf.measure(name, startTag, endTag);\n perf.clearMarks(startTag);\n perf.clearMarks(endTag);\n perf.clearMeasures(name);\n };\n }\n}\n\n/* not type checking this file because flow doesn't play well with Proxy */\n\nvar initProxy;\n\nif (process.env.NODE_ENV !== 'production') {\n var allowedGlobals = makeMap(\n 'Infinity,undefined,NaN,isFinite,isNaN,' +\n 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +\n 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +\n 'require' // for Webpack/Browserify\n );\n\n var warnNonPresent = function (target, key) {\n warn(\n \"Property or method \\\"\" + key + \"\\\" is not defined on the instance but \" +\n \"referenced during render. Make sure to declare reactive data \" +\n \"properties in the data option.\",\n target\n );\n };\n\n var hasProxy =\n typeof Proxy !== 'undefined' &&\n Proxy.toString().match(/native code/);\n\n if (hasProxy) {\n var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta');\n config.keyCodes = new Proxy(config.keyCodes, {\n set: function set (target, key, value) {\n if (isBuiltInModifier(key)) {\n warn((\"Avoid overwriting built-in modifier in config.keyCodes: .\" + key));\n return false\n } else {\n target[key] = value;\n return true\n }\n }\n });\n }\n\n var hasHandler = {\n has: function has (target, key) {\n var has = key in target;\n var isAllowed = allowedGlobals(key) || key.charAt(0) === '_';\n if (!has && !isAllowed) {\n warnNonPresent(target, key);\n }\n return has || !isAllowed\n }\n };\n\n var getHandler = {\n get: function get (target, key) {\n if (typeof key === 'string' && !(key in target)) {\n warnNonPresent(target, key);\n }\n return target[key]\n }\n };\n\n initProxy = function initProxy (vm) {\n if (hasProxy) {\n // determine which proxy handler to use\n var options = vm.$options;\n var handlers = options.render && options.render._withStripped\n ? getHandler\n : hasHandler;\n vm._renderProxy = new Proxy(vm, handlers);\n } else {\n vm._renderProxy = vm;\n }\n };\n}\n\n/* */\n\nvar VNode = function VNode (\n tag,\n data,\n children,\n text,\n elm,\n context,\n componentOptions,\n asyncFactory\n) {\n this.tag = tag;\n this.data = data;\n this.children = children;\n this.text = text;\n this.elm = elm;\n this.ns = undefined;\n this.context = context;\n this.functionalContext = undefined;\n this.key = data && data.key;\n this.componentOptions = componentOptions;\n this.componentInstance = undefined;\n this.parent = undefined;\n this.raw = false;\n this.isStatic = false;\n this.isRootInsert = true;\n this.isComment = false;\n this.isCloned = false;\n this.isOnce = false;\n this.asyncFactory = asyncFactory;\n this.asyncMeta = undefined;\n this.isAsyncPlaceholder = false;\n};\n\nvar prototypeAccessors = { child: {} };\n\n// DEPRECATED: alias for componentInstance for backwards compat.\n/* istanbul ignore next */\nprototypeAccessors.child.get = function () {\n return this.componentInstance\n};\n\nObject.defineProperties( VNode.prototype, prototypeAccessors );\n\nvar createEmptyVNode = function (text) {\n if ( text === void 0 ) text = '';\n\n var node = new VNode();\n node.text = text;\n node.isComment = true;\n return node\n};\n\nfunction createTextVNode (val) {\n return new VNode(undefined, undefined, undefined, String(val))\n}\n\n// optimized shallow clone\n// used for static nodes and slot nodes because they may be reused across\n// multiple renders, cloning them avoids errors when DOM manipulations rely\n// on their elm reference.\nfunction cloneVNode (vnode) {\n var cloned = new VNode(\n vnode.tag,\n vnode.data,\n vnode.children,\n vnode.text,\n vnode.elm,\n vnode.context,\n vnode.componentOptions,\n vnode.asyncFactory\n );\n cloned.ns = vnode.ns;\n cloned.isStatic = vnode.isStatic;\n cloned.key = vnode.key;\n cloned.isComment = vnode.isComment;\n cloned.isCloned = true;\n return cloned\n}\n\nfunction cloneVNodes (vnodes) {\n var len = vnodes.length;\n var res = new Array(len);\n for (var i = 0; i < len; i++) {\n res[i] = cloneVNode(vnodes[i]);\n }\n return res\n}\n\n/* */\n\nvar normalizeEvent = cached(function (name) {\n var passive = name.charAt(0) === '&';\n name = passive ? name.slice(1) : name;\n var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first\n name = once$$1 ? name.slice(1) : name;\n var capture = name.charAt(0) === '!';\n name = capture ? name.slice(1) : name;\n return {\n name: name,\n once: once$$1,\n capture: capture,\n passive: passive\n }\n});\n\nfunction createFnInvoker (fns) {\n function invoker () {\n var arguments$1 = arguments;\n\n var fns = invoker.fns;\n if (Array.isArray(fns)) {\n var cloned = fns.slice();\n for (var i = 0; i < cloned.length; i++) {\n cloned[i].apply(null, arguments$1);\n }\n } else {\n // return handler return value for single handlers\n return fns.apply(null, arguments)\n }\n }\n invoker.fns = fns;\n return invoker\n}\n\nfunction updateListeners (\n on,\n oldOn,\n add,\n remove$$1,\n vm\n) {\n var name, cur, old, event;\n for (name in on) {\n cur = on[name];\n old = oldOn[name];\n event = normalizeEvent(name);\n if (isUndef(cur)) {\n process.env.NODE_ENV !== 'production' && warn(\n \"Invalid handler for event \\\"\" + (event.name) + \"\\\": got \" + String(cur),\n vm\n );\n } else if (isUndef(old)) {\n if (isUndef(cur.fns)) {\n cur = on[name] = createFnInvoker(cur);\n }\n add(event.name, cur, event.once, event.capture, event.passive);\n } else if (cur !== old) {\n old.fns = cur;\n on[name] = old;\n }\n }\n for (name in oldOn) {\n if (isUndef(on[name])) {\n event = normalizeEvent(name);\n remove$$1(event.name, oldOn[name], event.capture);\n }\n }\n}\n\n/* */\n\nfunction mergeVNodeHook (def, hookKey, hook) {\n var invoker;\n var oldHook = def[hookKey];\n\n function wrappedHook () {\n hook.apply(this, arguments);\n // important: remove merged hook to ensure it's called only once\n // and prevent memory leak\n remove(invoker.fns, wrappedHook);\n }\n\n if (isUndef(oldHook)) {\n // no existing hook\n invoker = createFnInvoker([wrappedHook]);\n } else {\n /* istanbul ignore if */\n if (isDef(oldHook.fns) && isTrue(oldHook.merged)) {\n // already a merged invoker\n invoker = oldHook;\n invoker.fns.push(wrappedHook);\n } else {\n // existing plain hook\n invoker = createFnInvoker([oldHook, wrappedHook]);\n }\n }\n\n invoker.merged = true;\n def[hookKey] = invoker;\n}\n\n/* */\n\nfunction extractPropsFromVNodeData (\n data,\n Ctor,\n tag\n) {\n // we are only extracting raw values here.\n // validation and default values are handled in the child\n // component itself.\n var propOptions = Ctor.options.props;\n if (isUndef(propOptions)) {\n return\n }\n var res = {};\n var attrs = data.attrs;\n var props = data.props;\n if (isDef(attrs) || isDef(props)) {\n for (var key in propOptions) {\n var altKey = hyphenate(key);\n if (process.env.NODE_ENV !== 'production') {\n var keyInLowerCase = key.toLowerCase();\n if (\n key !== keyInLowerCase &&\n attrs && hasOwn(attrs, keyInLowerCase)\n ) {\n tip(\n \"Prop \\\"\" + keyInLowerCase + \"\\\" is passed to component \" +\n (formatComponentName(tag || Ctor)) + \", but the declared prop name is\" +\n \" \\\"\" + key + \"\\\". \" +\n \"Note that HTML attributes are case-insensitive and camelCased \" +\n \"props need to use their kebab-case equivalents when using in-DOM \" +\n \"templates. You should probably use \\\"\" + altKey + \"\\\" instead of \\\"\" + key + \"\\\".\"\n );\n }\n }\n checkProp(res, props, key, altKey, true) ||\n checkProp(res, attrs, key, altKey, false);\n }\n }\n return res\n}\n\nfunction checkProp (\n res,\n hash,\n key,\n altKey,\n preserve\n) {\n if (isDef(hash)) {\n if (hasOwn(hash, key)) {\n res[key] = hash[key];\n if (!preserve) {\n delete hash[key];\n }\n return true\n } else if (hasOwn(hash, altKey)) {\n res[key] = hash[altKey];\n if (!preserve) {\n delete hash[altKey];\n }\n return true\n }\n }\n return false\n}\n\n/* */\n\n// The template compiler attempts to minimize the need for normalization by\n// statically analyzing the template at compile time.\n//\n// For plain HTML markup, normalization can be completely skipped because the\n// generated render function is guaranteed to return Array. There are\n// two cases where extra normalization is needed:\n\n// 1. When the children contains components - because a functional component\n// may return an Array instead of a single root. In this case, just a simple\n// normalization is needed - if any child is an Array, we flatten the whole\n// thing with Array.prototype.concat. It is guaranteed to be only 1-level deep\n// because functional components already normalize their own children.\nfunction simpleNormalizeChildren (children) {\n for (var i = 0; i < children.length; i++) {\n if (Array.isArray(children[i])) {\n return Array.prototype.concat.apply([], children)\n }\n }\n return children\n}\n\n// 2. When the children contains constructs that always generated nested Arrays,\n// e.g.