.')}r&&(t.staticClass=JSON.stringify(r));var a=Dn(t,"class",!1);a&&(t.classBinding=a)}function Wr(t){var e="";return t.staticClass&&(e+="staticClass:"+t.staticClass+","),t.classBinding&&(e+="class:"+t.classBinding+","),e}function zr(t,e){var n=e.warn||Mn,r=xn(t,"style");if(r){var i=yn(r,e.delimiters);i&&n('style="'+r+'": Interpolation inside attributes has been removed. Use v-bind or the colon shorthand instead. For example, instead of
, use
.'),t.staticStyle=JSON.stringify($a(r))}var a=Dn(t,"style",!1);a&&(t.styleBinding=a)}function $r(t){var e="";return t.staticStyle&&(e+="staticStyle:"+t.staticStyle+","),t.styleBinding&&(e+="style:("+t.styleBinding+"),"),e}function Nr(t,e,n){os=n;var r=e.value,i=e.modifiers,a=t.tag,o=t.attrsMap.type,s=t.attrsMap["v-bind:type"]||t.attrsMap[":type"];return"input"===a&&s&&os('
:\nv-model does not support dynamic input types. Use v-if branches instead.'),"select"===a?Jr(t,r,i):"input"===a&&"checkbox"===o?Vr(t,r,i):"input"===a&&"radio"===o?Br(t,r,i):Ur(t,r,i),!0}function Vr(t,e,n){null!=t.attrsMap.checked&&os("<"+t.tag+' v-model="'+e+"\" checked>:\ninline checked attributes will be ignored when using v-model. Declare initial values in the component's data option instead.");var r=n&&n.number,i=Dn(t,"value")||"null",a=Dn(t,"true-value")||"true",o=Dn(t,"false-value")||"false";Ln(t,"checked","Array.isArray("+e+")?_i("+e+","+i+")>-1:_q("+e+","+a+")"),Yn(t,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+a+"):("+o+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$c){$$i<0&&("+e+"=$$a.concat($$v))}else{$$i>-1&&("+e+"=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{"+e+"=$$c}",null,!0)}function Br(t,e,n){null!=t.attrsMap.checked&&os("<"+t.tag+' v-model="'+e+"\" checked>:\ninline checked attributes will be ignored when using v-model. Declare initial values in the component's data option instead.");var r=n&&n.number,i=Dn(t,"value")||"null";i=r?"_n("+i+")":i,Ln(t,"checked","_q("+e+","+i+")"),Yn(t,"change",qr(e,i),null,!0)}function Ur(t,e,n){"input"===t.tag&&t.attrsMap.value&&os("<"+t.tag+' v-model="'+e+'" value="'+t.attrsMap.value+"\">:\ninline value attributes will be ignored when using v-model. Declare initial values in the component's data option instead."),"textarea"===t.tag&&t.children.length&&os('
\\n\"\nif (module.hot) {(function () { module.hot.accept()\n var hotAPI = require(\"vue-hot-reload-api\")\n hotAPI.install(require(\"vue\"), true)\n if (!hotAPI.compatible) return\n if (!module.hot.data) {\n hotAPI.createRecord(\"_v-857f0b00\", module.exports)\n } else {\n hotAPI.update(\"_v-857f0b00\", module.exports, (typeof module.exports === \"function\" ? module.exports.options : module.exports).template)\n }\n})()}\n},{\"../vuex/actions/mobile\":82,\"../vuex/store\":101,\"./Toast.vue\":78,\"vue\":51,\"vue-hot-reload-api\":46}],57:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = {\n name: 'Episode',\n props: ['episode'],\n computed: {\n isDisabled: function isDisabled() {\n return !this.episode.attributes.has_file;\n }\n }\n};\nif (module.exports.__esModule) module.exports = module.exports.default\n;(typeof module.exports === \"function\"? module.exports.options: module.exports).template = \"\\n
\\n \\n\\n \\n
\\n S{{ episode.attributes.season | zeroPad 2 }}E{{ episode.attributes.episode | zeroPad 2 }} – {{ episode.attributes.name }}\\n
\\n
\\n \\n Watch\\n \\n
\\n
\\n {{ episode.attributes.overview }}\\n
\\n
\\n
\\n\\n\"\nif (module.hot) {(function () { module.hot.accept()\n var hotAPI = require(\"vue-hot-reload-api\")\n hotAPI.install(require(\"vue\"), true)\n if (!hotAPI.compatible) return\n if (!module.hot.data) {\n hotAPI.createRecord(\"_v-dca6744c\", module.exports)\n } else {\n hotAPI.update(\"_v-dca6744c\", module.exports, (typeof module.exports === \"function\" ? module.exports.options : module.exports).template)\n }\n})()}\n},{\"vue\":51,\"vue-hot-reload-api\":46}],58:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _vue = require('vue');\n\nvar _vue2 = _interopRequireDefault(_vue);\n\nvar _chart = require('chart.js');\n\nvar _chart2 = _interopRequireDefault(_chart);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = _vue2.default.extend({\n methods: {\n render: function render(data) {\n var options = {\n type: 'line',\n data: data,\n options: {\n legend: {\n display: false\n },\n scales: {\n yAxes: [{\n ticks: {\n min: 0,\n stepSize: 1,\n beginAtZero: true,\n fontColor: 'rgba(255,255,255,0.5)'\n },\n gridLines: {\n color: 'rgba(255,255,255,0.1)',\n zeroLineColor: 'rgba(255,255,255,0.2)'\n }\n }],\n xAxes: [{\n ticks: {\n fontColor: 'rgba(255,255,255,0.5)'\n },\n gridLines: {\n color: 'rgba(255,255,255,0.1)',\n zeroLineColor: 'rgba(255,255,255,0.2)'\n }\n }]\n }\n }\n };\n\n var chart = new _chart2.default(this.$els.canvas.getContext('2d'), options);\n }\n }\n});\nif (module.exports.__esModule) module.exports = module.exports.default\n;(typeof module.exports === \"function\"? module.exports.options: module.exports).template = \"\\n
\\n \\n
\\n\"\nif (module.hot) {(function () { module.hot.accept()\n var hotAPI = require(\"vue-hot-reload-api\")\n hotAPI.install(require(\"vue\"), true)\n if (!hotAPI.compatible) return\n if (!module.hot.data) {\n hotAPI.createRecord(\"_v-79b5c2e9\", module.exports)\n } else {\n hotAPI.update(\"_v-79b5c2e9\", module.exports, (typeof module.exports === \"function\" ? module.exports.options : module.exports).template)\n }\n})()}\n},{\"chart.js\":1,\"vue\":51,\"vue-hot-reload-api\":46}],59:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _LineChart = require('./LineChart.vue');\n\nvar _LineChart2 = _interopRequireDefault(_LineChart);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = _LineChart2.default.extend({\n name: 'MonthlyChart',\n\n props: ['months'],\n\n ready: function ready() {\n this.render({\n labels: this.months.map(function (month) {\n return month.id;\n }),\n\n datasets: [{\n label: 'Views',\n backgroundColor: \"rgba(151,187,205,0.2)\",\n borderColor: \"rgba(151,187,205,1)\",\n lineTension: 0,\n pointBackgroundColor: \"#fff\",\n pointBorderColor: \"rgba(151,187,205,1)\",\n pointHoverBackgroundColor: \"#fff\",\n pointHoverBorderColor: \"rgba(151,187,205,1)\",\n pointHoverRadius: 6,\n pointRadius: 5,\n data: this.months.map(function (month) {\n return month.total;\n })\n }]\n });\n }\n});\nif (module.exports.__esModule) module.exports = module.exports.default\nif (module.hot) {(function () { module.hot.accept()\n var hotAPI = require(\"vue-hot-reload-api\")\n hotAPI.install(require(\"vue\"), true)\n if (!hotAPI.compatible) return\n if (!module.hot.data) {\n hotAPI.createRecord(\"_v-40119382\", module.exports)\n } else {\n hotAPI.update(\"_v-40119382\", module.exports, (typeof module.exports === \"function\" ? module.exports.options : module.exports).template)\n }\n})()}\n},{\"./LineChart.vue\":58,\"vue\":51,\"vue-hot-reload-api\":46}],60:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _moment = require('moment');\n\nvar _moment2 = _interopRequireDefault(_moment);\n\nvar _momentRange = require('moment-range');\n\nvar _momentRange2 = _interopRequireDefault(_momentRange);\n\nvar _MonthlyChart = require('./MonthlyChart.vue');\n\nvar _MonthlyChart2 = _interopRequireDefault(_MonthlyChart);\n\nvar _Spinner = require('./Spinner.vue');\n\nvar _Spinner2 = _interopRequireDefault(_Spinner);\n\nvar _movies = require('../vuex/actions/movies');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = {\n name: 'Movie',\n components: {\n MonthlyChart: _MonthlyChart2.default,\n Spinner: _Spinner2.default\n },\n vuex: {\n getters: {\n movie: function movie(_ref) {\n var movies = _ref.movies;\n return movies.all.find(function (m) {\n return m.id === movies.currentID;\n });\n },\n genres: function genres(_ref2) {\n var movies = _ref2.movies;\n var _genres = _ref2.genres;\n\n var movie = movies.all.find(function (m) {\n return m.id === movies.currentID;\n });\n return movie.relationships.genres.data.map(function (_ref3) {\n var id = _ref3.id;\n return _genres.all.find(function (g) {\n return g.id === id;\n });\n });\n },\n monthlyViews: function monthlyViews(_ref4) {\n var movies = _ref4.movies;\n var views = _ref4.views;\n\n var movie = movies.all.find(function (m) {\n return m.id === movies.currentID;\n });\n var movieViews = movie.relationships.views.data.map(function (_ref5) {\n var id = _ref5.id;\n return views.movies.find(function (m) {\n return m.id === id;\n });\n });\n\n // Create a moment.js range of the past 12 months\n var currentMonth = (0, _moment2.default)().startOf('month');\n var lastYear = currentMonth.clone().subtract(11, 'M');\n var range = _moment2.default.range(lastYear, currentMonth);\n var months = [];\n\n // Create records for past 12 months and merge API data\n range.by('months', function (month) {\n var label = month.format('MM/YY');\n var view = movieViews.find(function (v) {\n return v.attributes.label === label;\n });\n months.push({\n id: label,\n total: view ? view.attributes.total : 0\n });\n });\n\n return months;\n }\n },\n actions: {\n selectMovie: _movies.selectMovie,\n getMovie: _movies.getMovie\n }\n },\n route: {\n data: function data(transition) {\n this.selectMovie(transition);\n this.getMovie(transition);\n }\n },\n computed: {\n totalViewsLastYear: function totalViewsLastYear() {\n return this.monthlyViews.reduce(function (total, month) {\n return total + month.total;\n }, 0);\n },\n isDisabled: function isDisabled() {\n return !this.movie.attributes.has_file;\n }\n }\n};\nif (module.exports.__esModule) module.exports = module.exports.default\n;(typeof module.exports === \"function\"? module.exports.options: module.exports).template = \"\\n
\\n\"\nif (module.hot) {(function () { module.hot.accept()\n var hotAPI = require(\"vue-hot-reload-api\")\n hotAPI.install(require(\"vue\"), true)\n if (!hotAPI.compatible) return\n if (!module.hot.data) {\n hotAPI.createRecord(\"_v-c938ab62\", module.exports)\n } else {\n hotAPI.update(\"_v-c938ab62\", module.exports, (typeof module.exports === \"function\" ? module.exports.options : module.exports).template)\n }\n})()}\n},{\"../vuex/actions/movies\":83,\"./MonthlyChart.vue\":59,\"./Spinner.vue\":77,\"moment\":44,\"moment-range\":43,\"vue\":51,\"vue-hot-reload-api\":46}],61:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _movies = require('../vuex/actions/movies');\n\nexports.default = {\n name: 'MovieBackdrop',\n props: ['movie', 'backdrop'],\n vuex: {\n actions: {\n patchMovie: _movies.patchMovie\n }\n },\n methods: {\n selectBackdrop: function selectBackdrop() {\n if (this.isActive) {\n return;\n }\n\n var data = {\n 'data': {\n 'type': 'movies',\n 'id': this.movie.id,\n 'attributes': {\n 'backdrop_path': this.backdrop.attributes.file_path\n }\n }\n };\n\n this.patchMovie(this.movie.id, data);\n }\n },\n computed: {\n isActive: function isActive() {\n var currentBackdrop = this.movie.attributes.backdrop_url;\n var backdrop = this.backdrop.attributes.file_path;\n return currentBackdrop.indexOf(backdrop) > -1;\n }\n }\n};\nif (module.exports.__esModule) module.exports = module.exports.default\n;(typeof module.exports === \"function\"? module.exports.options: module.exports).template = \"\\n
\\n \\n \\n \\n\\n\"\nif (module.hot) {(function () { module.hot.accept()\n var hotAPI = require(\"vue-hot-reload-api\")\n hotAPI.install(require(\"vue\"), true)\n if (!hotAPI.compatible) return\n if (!module.hot.data) {\n hotAPI.createRecord(\"_v-50eda4c5\", module.exports)\n } else {\n hotAPI.update(\"_v-50eda4c5\", module.exports, (typeof module.exports === \"function\" ? module.exports.options : module.exports).template)\n }\n})()}\n},{\"../vuex/actions/movies\":83,\"vue\":51,\"vue-hot-reload-api\":46}],62:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = {\n name: 'MovieCard',\n props: ['movie'],\n computed: {\n link: function link() {\n return this.movie.attributes.tmdb_movie_id == 0 ? '/movies/' + this.movie.id + '/edit' : '/movies/' + this.movie.id;\n }\n }\n};\nif (module.exports.__esModule) module.exports = module.exports.default\n;(typeof module.exports === \"function\"? module.exports.options: module.exports).template = \"\\n
\\n\"\nif (module.hot) {(function () { module.hot.accept()\n var hotAPI = require(\"vue-hot-reload-api\")\n hotAPI.install(require(\"vue\"), true)\n if (!hotAPI.compatible) return\n if (!module.hot.data) {\n hotAPI.createRecord(\"_v-89506402\", module.exports)\n } else {\n hotAPI.update(\"_v-89506402\", module.exports, (typeof module.exports === \"function\" ? module.exports.options : module.exports).template)\n }\n})()}\n},{\"vue\":51,\"vue-hot-reload-api\":46}],63:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _MovieBackdrop = require('./MovieBackdrop.vue');\n\nvar _MovieBackdrop2 = _interopRequireDefault(_MovieBackdrop);\n\nvar _MoviePoster = require('./MoviePoster.vue');\n\nvar _MoviePoster2 = _interopRequireDefault(_MoviePoster);\n\nvar _MovieResult = require('./MovieResult.vue');\n\nvar _MovieResult2 = _interopRequireDefault(_MovieResult);\n\nvar _Spinner = require('./Spinner.vue');\n\nvar _Spinner2 = _interopRequireDefault(_Spinner);\n\nvar _movies = require('../vuex/actions/movies');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = {\n name: 'MovieEdit',\n components: {\n MovieBackdrop: _MovieBackdrop2.default,\n MoviePoster: _MoviePoster2.default,\n MovieResult: _MovieResult2.default,\n Spinner: _Spinner2.default\n },\n vuex: {\n getters: {\n backdrops: function backdrops(_ref) {\n var movies = _ref.movies;\n var images = _ref.images;\n\n var movie = movies.all.find(function (m) {\n return m.id === movies.currentID;\n });\n return movie.relationships.backdrops.data.map(function (_ref2) {\n var id = _ref2.id;\n return images.all.find(function (i) {\n return i.id === id;\n });\n });\n },\n movie: function movie(_ref3) {\n var movies = _ref3.movies;\n return movies.all.find(function (m) {\n return m.id === movies.currentID;\n });\n },\n posters: function posters(_ref4) {\n var movies = _ref4.movies;\n var images = _ref4.images;\n\n var movie = movies.all.find(function (m) {\n return m.id === movies.currentID;\n });\n return movie.relationships.posters.data.map(function (_ref5) {\n var id = _ref5.id;\n return images.all.find(function (i) {\n return i.id === id;\n });\n });\n },\n results: function results(_ref6) {\n var movies = _ref6.movies;\n var search = _ref6.search;\n\n var movie = movies.all.find(function (m) {\n return m.id === movies.currentID;\n });\n return movie.relationships.results.data.map(function (_ref7) {\n var id = _ref7.id;\n return search.movies.find(function (m) {\n return m.id === id;\n });\n });\n }\n },\n actions: {\n selectMovie: _movies.selectMovie,\n getMovieWithResults: _movies.getMovieWithResults,\n patchMovie: _movies.patchMovie\n }\n },\n route: {\n data: function data(transition) {\n this.selectMovie(transition);\n this.getMovieWithResults(transition);\n }\n },\n methods: {\n patchTitle: function patchTitle(event) {\n var data = {\n 'data': {\n 'type': 'movies',\n 'id': this.movie.id,\n 'attributes': {\n 'title': event.target.value\n }\n }\n };\n\n this.patchMovie(this.movie.id, data);\n }\n },\n computed: {\n isResolved: function isResolved() {\n return this.movie.attributes.tmdb_movie_id != 0;\n }\n }\n};\nif (module.exports.__esModule) module.exports = module.exports.default\n;(typeof module.exports === \"function\"? module.exports.options: module.exports).template = \"\\n
\\n
\\n\\n
\\n
Edit Movie
\\n\\n
\\n {{ movie.attributes.title }}\\n \\n\\n
\\n
Movie Title
\\n\\n
\\n\\n
\\n\\n
\\n \\n
\\n
\\n\\n
\\n
Please Resolve
\\n
\\n Oops! We can't figure out which movie this is. Please make a selection from the search results below.\\n
\\n
\\n - Folder Name: {{ movie.attributes.folder_name }}
\\n
\\n
\\n\\n
\\n
Search Results
\\n
\\n
\\n
\\n
\\n\"\nif (module.hot) {(function () { module.hot.accept()\n var hotAPI = require(\"vue-hot-reload-api\")\n hotAPI.install(require(\"vue\"), true)\n if (!hotAPI.compatible) return\n if (!module.hot.data) {\n hotAPI.createRecord(\"_v-1b52b3f9\", module.exports)\n } else {\n hotAPI.update(\"_v-1b52b3f9\", module.exports, (typeof module.exports === \"function\" ? module.exports.options : module.exports).template)\n }\n})()}\n},{\"../vuex/actions/movies\":83,\"./MovieBackdrop.vue\":61,\"./MoviePoster.vue\":64,\"./MovieResult.vue\":65,\"./Spinner.vue\":77,\"vue\":51,\"vue-hot-reload-api\":46}],64:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _movies = require('../vuex/actions/movies');\n\nexports.default = {\n name: 'MoviePoster',\n props: ['movie', 'poster'],\n vuex: {\n actions: {\n patchMovie: _movies.patchMovie\n }\n },\n methods: {\n selectPoster: function selectPoster() {\n if (this.isActive) {\n return;\n }\n\n var data = {\n 'data': {\n 'type': 'movies',\n 'id': this.movie.id,\n 'attributes': {\n 'poster_path': this.poster.attributes.file_path\n }\n }\n };\n\n this.patchMovie(this.movie.id, data);\n }\n },\n computed: {\n isActive: function isActive() {\n var currentPoster = this.movie.attributes.poster_url;\n var poster = this.poster.attributes.file_path;\n return currentPoster.indexOf(poster) > -1;\n }\n }\n};\nif (module.exports.__esModule) module.exports = module.exports.default\n;(typeof module.exports === \"function\"? module.exports.options: module.exports).template = \"\\n
\\n \\n \\n \\n\\n\"\nif (module.hot) {(function () { module.hot.accept()\n var hotAPI = require(\"vue-hot-reload-api\")\n hotAPI.install(require(\"vue\"), true)\n if (!hotAPI.compatible) return\n if (!module.hot.data) {\n hotAPI.createRecord(\"_v-4847a008\", module.exports)\n } else {\n hotAPI.update(\"_v-4847a008\", module.exports, (typeof module.exports === \"function\" ? module.exports.options : module.exports).template)\n }\n})()}\n},{\"../vuex/actions/movies\":83,\"vue\":51,\"vue-hot-reload-api\":46}],65:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _movies = require('../vuex/actions/movies');\n\nexports.default = {\n name: 'MovieResult',\n props: ['movie', 'result'],\n vuex: {\n actions: {\n patchMovie: _movies.patchMovie\n }\n },\n methods: {\n selectResult: function selectResult() {\n if (this.isActive) {\n return;\n }\n\n var data = {\n 'data': {\n 'type': 'movies',\n 'id': this.movie.id,\n 'attributes': {\n 'tmdb_movie_id': this.result.id\n }\n }\n };\n\n this.patchMovie(this.movie.id, data, this.$route.router);\n }\n },\n computed: {\n isActive: function isActive() {\n return this.result.id == this.movie.attributes.tmdb_movie_id;\n }\n }\n};\nif (module.exports.__esModule) module.exports = module.exports.default\n;(typeof module.exports === \"function\"? module.exports.options: module.exports).template = \"\\n
\\n \\n \\n {{ result.attributes.title }}\\n \\n\\n\"\nif (module.hot) {(function () { module.hot.accept()\n var hotAPI = require(\"vue-hot-reload-api\")\n hotAPI.install(require(\"vue\"), true)\n if (!hotAPI.compatible) return\n if (!module.hot.data) {\n hotAPI.createRecord(\"_v-3ab712cc\", module.exports)\n } else {\n hotAPI.update(\"_v-3ab712cc\", module.exports, (typeof module.exports === \"function\" ? module.exports.options : module.exports).template)\n }\n})()}\n},{\"../vuex/actions/movies\":83,\"vue\":51,\"vue-hot-reload-api\":46}],66:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _MovieCard = require('./MovieCard.vue');\n\nvar _MovieCard2 = _interopRequireDefault(_MovieCard);\n\nvar _Spinner = require('./Spinner.vue');\n\nvar _Spinner2 = _interopRequireDefault(_Spinner);\n\nvar _movies2 = require('../vuex/actions/movies');\n\nvar _filters = require('../vuex/actions/filters');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = {\n name: 'Movies',\n components: {\n MovieCard: _MovieCard2.default,\n Spinner: _Spinner2.default\n },\n ready: function ready() {\n this.$watch('links.next', function () {\n var _this = this;\n\n // Automatically load paginated results\n setTimeout(function () {\n if (_this.links.next && !_this.loading) {\n _this.getMovies(_this.links.next);\n }\n }, 1000);\n }, { deep: true });\n },\n vuex: {\n getters: {\n column: function column(_ref) {\n var filters = _ref.filters;\n return filters.attributes.movies;\n },\n direction: function direction(_ref2) {\n var filters = _ref2.filters;\n return filters.direction;\n },\n genres: function genres(_ref3) {\n var _genres = _ref3.genres;\n return _genres.all;\n },\n keywords: function keywords(_ref4) {\n var filters = _ref4.filters;\n return filters.keywords;\n },\n links: function links(_ref5) {\n var movies = _ref5.movies;\n return movies.links;\n },\n loading: function loading(_ref6) {\n var movies = _ref6.movies;\n return movies.loading;\n },\n movies: function movies(_ref7) {\n var _movies = _ref7.movies;\n return _movies.all;\n },\n order: function order(_ref8) {\n var filters = _ref8.filters;\n return filters.order;\n },\n orders: function orders(_ref9) {\n var filters = _ref9.filters;\n return filters.orders;\n },\n query: function query(_ref10) {\n var filters = _ref10.filters;\n return filters.queryMovies;\n },\n selectedGenre: function selectedGenre(_ref11) {\n var filters = _ref11.filters;\n return filters.genre;\n }\n },\n actions: {\n clearFilters: _filters.clearFilters,\n clearGenresFilter: _filters.clearGenresFilter,\n getMovies: _movies2.getMovies,\n filterGenres: _filters.filterGenres,\n filterKeywords: _filters.filterKeywords,\n filterOrder: _filters.filterOrder\n }\n },\n route: {\n data: function data(transition) {\n this.clearGenresFilter();\n this.getMovies(this.url, transition);\n }\n },\n methods: {\n loadMore: function loadMore() {\n if (this.links.next && !this.loading && !this._inactive) {\n this.getMovies(this.links.next);\n }\n },\n filterMovieGenres: function filterMovieGenres(event) {\n this.filterGenres(event);\n this.getMovies(this.url);\n },\n filterMovieKeywords: function filterMovieKeywords(event) {\n this.filterKeywords(event);\n this.getMovies(this.url);\n },\n filterMovieOrder: function filterMovieOrder(event) {\n this.filterOrder(event);\n this.getMovies(this.url);\n },\n filterReset: function filterReset() {\n this.clearFilters();\n this.getMovies(this.url);\n }\n },\n computed: {\n url: function url() {\n return '/api/movies' + this.query;\n }\n }\n};\nif (module.exports.__esModule) module.exports = module.exports.default\n;(typeof module.exports === \"function\"? module.exports.options: module.exports).template = \"\\n
\\n\\n
\\n\\n \\n
\\n
\\n
\\n\\n
\\n \\n
\\n\\n
\\n \\n
\\n
\\n
\\n
\\n\\n \\n
\\n
Movies
\\n
\\n \\n \\n
\\n
\\n
\\n\"\nif (module.hot) {(function () { module.hot.accept()\n var hotAPI = require(\"vue-hot-reload-api\")\n hotAPI.install(require(\"vue\"), true)\n if (!hotAPI.compatible) return\n if (!module.hot.data) {\n hotAPI.createRecord(\"_v-56857e98\", module.exports)\n } else {\n hotAPI.update(\"_v-56857e98\", module.exports, (typeof module.exports === \"function\" ? module.exports.options : module.exports).template)\n }\n})()}\n},{\"../vuex/actions/filters\":81,\"../vuex/actions/movies\":83,\"./MovieCard.vue\":62,\"./Spinner.vue\":77,\"vue\":51,\"vue-hot-reload-api\":46}],67:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = {\n name: 'NotFound'\n};\nif (module.exports.__esModule) module.exports = module.exports.default\n;(typeof module.exports === \"function\"? module.exports.options: module.exports).template = \"\\n
\\n
Page Not Found
\\n\\n\"\nif (module.hot) {(function () { module.hot.accept()\n var hotAPI = require(\"vue-hot-reload-api\")\n hotAPI.install(require(\"vue\"), true)\n if (!hotAPI.compatible) return\n if (!module.hot.data) {\n hotAPI.createRecord(\"_v-58e439a0\", module.exports)\n } else {\n hotAPI.update(\"_v-58e439a0\", module.exports, (typeof module.exports === \"function\" ? module.exports.options : module.exports).template)\n }\n})()}\n},{\"vue\":51,\"vue-hot-reload-api\":46}],68:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _moment = require('moment');\n\nvar _moment2 = _interopRequireDefault(_moment);\n\nvar _momentRange = require('moment-range');\n\nvar _momentRange2 = _interopRequireDefault(_momentRange);\n\nvar _Episode = require('./Episode.vue');\n\nvar _Episode2 = _interopRequireDefault(_Episode);\n\nvar _MonthlyChart = require('./MonthlyChart.vue');\n\nvar _MonthlyChart2 = _interopRequireDefault(_MonthlyChart);\n\nvar _Spinner = require('./Spinner.vue');\n\nvar _Spinner2 = _interopRequireDefault(_Spinner);\n\nvar _seasons = require('../vuex/actions/seasons');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = {\n name: 'Season',\n components: {\n Episode: _Episode2.default,\n MonthlyChart: _MonthlyChart2.default,\n Spinner: _Spinner2.default\n },\n vuex: {\n getters: {\n season: function season(_ref) {\n var seasons = _ref.seasons;\n return seasons.all.find(function (s) {\n return s.id === seasons.currentID;\n });\n },\n episodes: function episodes(_ref2) {\n var seasons = _ref2.seasons;\n var _episodes = _ref2.episodes;\n\n var season = seasons.all.find(function (s) {\n return s.id === seasons.currentID;\n });\n return season.relationships.episodes.data.map(function (_ref3) {\n var id = _ref3.id;\n return _episodes.all.find(function (e) {\n return e.id === id;\n });\n });\n },\n monthlyViews: function monthlyViews(_ref4) {\n var seasons = _ref4.seasons;\n var views = _ref4.views;\n\n var season = seasons.all.find(function (s) {\n return s.id === seasons.currentID;\n });\n var seasonViews = season.relationships.views.data.map(function (_ref5) {\n var id = _ref5.id;\n return views.seasons.find(function (s) {\n return s.id === id;\n });\n });\n\n // Create a moment.js range of the past 12 months\n var currentMonth = (0, _moment2.default)().startOf('month');\n var lastYear = currentMonth.clone().subtract(11, 'M');\n var range = _moment2.default.range(lastYear, currentMonth);\n var months = [];\n\n // Create records for past 12 months and merge API data\n range.by('months', function (month) {\n var label = month.format('MM/YY');\n var view = seasonViews.find(function (s) {\n return s.attributes.label === label;\n });\n months.push({\n id: label,\n total: view ? view.attributes.total : 0\n });\n });\n\n return months;\n },\n show: function show(_ref6) {\n var seasons = _ref6.seasons;\n var shows = _ref6.shows;\n\n var season = seasons.all.find(function (s) {\n return s.id === seasons.currentID;\n });\n return shows.all.find(function (s) {\n return s.id === season.relationships.show.data.id;\n });\n }\n },\n actions: {\n selectSeason: _seasons.selectSeason,\n getSeason: _seasons.getSeason\n }\n },\n route: {\n data: function data(transition) {\n this.selectSeason(transition);\n this.getSeason(transition);\n }\n },\n computed: {\n totalViewsLastYear: function totalViewsLastYear() {\n return this.monthlyViews.reduce(function (total, month) {\n return total + month.total;\n }, 0);\n }\n }\n};\nif (module.exports.__esModule) module.exports = module.exports.default\n;(typeof module.exports === \"function\"? module.exports.options: module.exports).template = \"\\n
\\n
\\n\\n
\\n
\\n\\n
{{ show.attributes.name }} – {{ season.attributes.name }}
\\n\\n
\\n {{ show.attributes.name }}\\n \\n\\n
\\n
\\n \\n Overview\\n
\\n\\n
\\n\\n
\\n {{ season.attributes.overview }}\\n
\\n
\\n\\n
\\n \\n Episodes\\n
\\n\\n
\\n
\\n
\\n \\n Stats\\n
\\n\\n
\\n\\n
\\n
\\n
\\n
\\n\"\nif (module.hot) {(function () { module.hot.accept()\n var hotAPI = require(\"vue-hot-reload-api\")\n hotAPI.install(require(\"vue\"), true)\n if (!hotAPI.compatible) return\n if (!module.hot.data) {\n hotAPI.createRecord(\"_v-60193454\", module.exports)\n } else {\n hotAPI.update(\"_v-60193454\", module.exports, (typeof module.exports === \"function\" ? module.exports.options : module.exports).template)\n }\n})()}\n},{\"../vuex/actions/seasons\":84,\"./Episode.vue\":57,\"./MonthlyChart.vue\":59,\"./Spinner.vue\":77,\"moment\":44,\"moment-range\":43,\"vue\":51,\"vue-hot-reload-api\":46}],69:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _settings2 = require('../vuex/actions/settings');\n\nvar _Spinner = require('./Spinner.vue');\n\nvar _Spinner2 = _interopRequireDefault(_Spinner);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = {\n name: 'Settings',\n components: {\n Spinner: _Spinner2.default\n },\n vuex: {\n getters: {\n settings: function settings(_ref) {\n var _settings = _ref.settings;\n return _settings.current;\n }\n },\n actions: {\n clearAll: _settings2.clearAll,\n clearToday: _settings2.clearToday,\n getSettings: _settings2.getSettings,\n patchSettings: _settings2.patchSettings,\n refreshAll: _settings2.refreshAll,\n refreshNew: _settings2.refreshNew,\n setMoviesFolder: _settings2.setMoviesFolder,\n setShowsFolder: _settings2.setShowsFolder\n }\n },\n route: {\n data: function data(transition) {\n this.getSettings(transition);\n }\n },\n methods: {\n patchFolders: function patchFolders() {\n var data = {\n 'data': this.settings\n };\n\n this.patchSettings(data);\n }\n }\n};\nif (module.exports.__esModule) module.exports = module.exports.default\n;(typeof module.exports === \"function\"? module.exports.options: module.exports).template = \"\\n
\\n\"\nif (module.hot) {(function () { module.hot.accept()\n var hotAPI = require(\"vue-hot-reload-api\")\n hotAPI.install(require(\"vue\"), true)\n if (!hotAPI.compatible) return\n if (!module.hot.data) {\n hotAPI.createRecord(\"_v-66083354\", module.exports)\n } else {\n hotAPI.update(\"_v-66083354\", module.exports, (typeof module.exports === \"function\" ? module.exports.options : module.exports).template)\n }\n})()}\n},{\"../vuex/actions/settings\":85,\"./Spinner.vue\":77,\"vue\":51,\"vue-hot-reload-api\":46}],70:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _moment = require('moment');\n\nvar _moment2 = _interopRequireDefault(_moment);\n\nvar _momentRange = require('moment-range');\n\nvar _momentRange2 = _interopRequireDefault(_momentRange);\n\nvar _MonthlyChart = require('./MonthlyChart.vue');\n\nvar _MonthlyChart2 = _interopRequireDefault(_MonthlyChart);\n\nvar _Spinner = require('./Spinner.vue');\n\nvar _Spinner2 = _interopRequireDefault(_Spinner);\n\nvar _shows = require('../vuex/actions/shows');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = {\n name: 'Show',\n components: {\n MonthlyChart: _MonthlyChart2.default,\n Spinner: _Spinner2.default\n },\n vuex: {\n getters: {\n show: function show(_ref) {\n var shows = _ref.shows;\n return shows.all.find(function (s) {\n return s.id === shows.currentID;\n });\n },\n genres: function genres(_ref2) {\n var shows = _ref2.shows;\n var _genres = _ref2.genres;\n\n var show = shows.all.find(function (s) {\n return s.id === shows.currentID;\n });\n return show.relationships.genres.data.map(function (_ref3) {\n var id = _ref3.id;\n return _genres.all.find(function (g) {\n return g.id === id;\n });\n });\n },\n monthlyViews: function monthlyViews(_ref4) {\n var shows = _ref4.shows;\n var views = _ref4.views;\n\n var show = shows.all.find(function (s) {\n return s.id === shows.currentID;\n });\n var showViews = show.relationships.views.data.map(function (_ref5) {\n var id = _ref5.id;\n return views.shows.find(function (s) {\n return s.id === id;\n });\n });\n\n // Create a moment.js range of the past 12 months\n var currentMonth = (0, _moment2.default)().startOf('month');\n var lastYear = currentMonth.clone().subtract(11, 'M');\n var range = _moment2.default.range(lastYear, currentMonth);\n var months = [];\n\n // Create records for past 12 months and merge API data\n range.by('months', function (month) {\n var label = month.format('MM/YY');\n var view = showViews.find(function (s) {\n return s.attributes.label === label;\n });\n months.push({\n id: label,\n total: view ? view.attributes.total : 0\n });\n });\n\n return months;\n },\n seasons: function seasons(_ref6) {\n var shows = _ref6.shows;\n var _seasons = _ref6.seasons;\n\n var show = shows.all.find(function (s) {\n return s.id === shows.currentID;\n });\n return show.relationships.seasons.data.map(function (_ref7) {\n var id = _ref7.id;\n return _seasons.all.find(function (s) {\n return s.id === id;\n });\n });\n }\n },\n actions: {\n selectShow: _shows.selectShow,\n getShow: _shows.getShow\n }\n },\n route: {\n data: function data(transition) {\n this.selectShow(transition);\n this.getShow(transition);\n }\n },\n computed: {\n totalViewsLastYear: function totalViewsLastYear() {\n return this.monthlyViews.reduce(function (total, month) {\n return total + month.total;\n }, 0);\n }\n }\n};\nif (module.exports.__esModule) module.exports = module.exports.default\n;(typeof module.exports === \"function\"? module.exports.options: module.exports).template = \"\\n
\\n
\\n\\n
\\n
\\n \\n
{{ show.attributes.name }}
\\n\\n
\\n Shows\\n \\n
\\n Edit\\n \\n\\n
\\n
\\n \\n Seasons\\n
\\n\\n
\\n
\\n\\n
\\n
\\n \\n Overview\\n
\\n\\n
\\n\\n
\\n {{ show.attributes.overview }}\\n
\\n
\\n\\n
\\n TMDB\\n \\n
\\n IMDB\\n \\n
\\n TVDB\\n \\n\\n
\\n\\n
\\n \\n Genres\\n
\\n\\n
\\n\\n
\\n
\\n \\n Stats\\n
\\n\\n
\\n
\\n
\\n
\\n
\\n\"\nif (module.hot) {(function () { module.hot.accept()\n var hotAPI = require(\"vue-hot-reload-api\")\n hotAPI.install(require(\"vue\"), true)\n if (!hotAPI.compatible) return\n if (!module.hot.data) {\n hotAPI.createRecord(\"_v-d8bd6ca4\", module.exports)\n } else {\n hotAPI.update(\"_v-d8bd6ca4\", module.exports, (typeof module.exports === \"function\" ? module.exports.options : module.exports).template)\n }\n})()}\n},{\"../vuex/actions/shows\":86,\"./MonthlyChart.vue\":59,\"./Spinner.vue\":77,\"moment\":44,\"moment-range\":43,\"vue\":51,\"vue-hot-reload-api\":46}],71:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _shows = require('../vuex/actions/shows');\n\nexports.default = {\n name: 'ShowBackdrop',\n props: ['show', 'backdrop'],\n vuex: {\n actions: {\n patchShow: _shows.patchShow\n }\n },\n methods: {\n selectBackdrop: function selectBackdrop() {\n if (this.isActive) {\n return;\n }\n\n var data = {\n 'data': {\n 'type': 'shows',\n 'id': this.show.id,\n 'attributes': {\n 'backdrop_path': this.backdrop.attributes.file_path\n }\n }\n };\n\n this.patchShow(this.show.id, data);\n }\n },\n computed: {\n isActive: function isActive() {\n var currentBackdrop = this.show.attributes.backdrop_url;\n var backdrop = this.backdrop.attributes.file_path;\n return currentBackdrop.indexOf(backdrop) > -1;\n }\n }\n};\nif (module.exports.__esModule) module.exports = module.exports.default\n;(typeof module.exports === \"function\"? module.exports.options: module.exports).template = \"\\n
\\n \\n \\n \\n\\n\"\nif (module.hot) {(function () { module.hot.accept()\n var hotAPI = require(\"vue-hot-reload-api\")\n hotAPI.install(require(\"vue\"), true)\n if (!hotAPI.compatible) return\n if (!module.hot.data) {\n hotAPI.createRecord(\"_v-42817524\", module.exports)\n } else {\n hotAPI.update(\"_v-42817524\", module.exports, (typeof module.exports === \"function\" ? module.exports.options : module.exports).template)\n }\n})()}\n},{\"../vuex/actions/shows\":86,\"vue\":51,\"vue-hot-reload-api\":46}],72:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = {\n name: 'ShowCard',\n props: ['show'],\n computed: {\n link: function link() {\n return this.show.attributes.tmdb_show_id == 0 ? '/shows/' + this.show.id + '/edit' : '/shows/' + this.show.id;\n }\n }\n};\nif (module.exports.__esModule) module.exports = module.exports.default\n;(typeof module.exports === \"function\"? module.exports.options: module.exports).template = \"\\n
\\n\"\nif (module.hot) {(function () { module.hot.accept()\n var hotAPI = require(\"vue-hot-reload-api\")\n hotAPI.install(require(\"vue\"), true)\n if (!hotAPI.compatible) return\n if (!module.hot.data) {\n hotAPI.createRecord(\"_v-12e8a5de\", module.exports)\n } else {\n hotAPI.update(\"_v-12e8a5de\", module.exports, (typeof module.exports === \"function\" ? module.exports.options : module.exports).template)\n }\n})()}\n},{\"vue\":51,\"vue-hot-reload-api\":46}],73:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _ShowBackdrop = require('./ShowBackdrop.vue');\n\nvar _ShowBackdrop2 = _interopRequireDefault(_ShowBackdrop);\n\nvar _ShowPoster = require('./ShowPoster.vue');\n\nvar _ShowPoster2 = _interopRequireDefault(_ShowPoster);\n\nvar _ShowResult = require('./ShowResult.vue');\n\nvar _ShowResult2 = _interopRequireDefault(_ShowResult);\n\nvar _Spinner = require('./Spinner.vue');\n\nvar _Spinner2 = _interopRequireDefault(_Spinner);\n\nvar _shows = require('../vuex/actions/shows');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = {\n name: 'ShowEdit',\n components: {\n ShowBackdrop: _ShowBackdrop2.default,\n ShowPoster: _ShowPoster2.default,\n ShowResult: _ShowResult2.default,\n Spinner: _Spinner2.default\n },\n vuex: {\n getters: {\n backdrops: function backdrops(_ref) {\n var shows = _ref.shows;\n var images = _ref.images;\n\n var show = shows.all.find(function (s) {\n return s.id === shows.currentID;\n });\n return show.relationships.backdrops.data.map(function (_ref2) {\n var id = _ref2.id;\n return images.all.find(function (i) {\n return i.id === id;\n });\n });\n },\n posters: function posters(_ref3) {\n var shows = _ref3.shows;\n var images = _ref3.images;\n\n var show = shows.all.find(function (s) {\n return s.id === shows.currentID;\n });\n return show.relationships.posters.data.map(function (_ref4) {\n var id = _ref4.id;\n return images.all.find(function (i) {\n return i.id === id;\n });\n });\n },\n results: function results(_ref5) {\n var shows = _ref5.shows;\n var search = _ref5.search;\n\n var show = shows.all.find(function (s) {\n return s.id === shows.currentID;\n });\n return show.relationships.results.data.map(function (_ref6) {\n var id = _ref6.id;\n return search.shows.find(function (s) {\n return s.id === id;\n });\n });\n },\n show: function show(_ref7) {\n var shows = _ref7.shows;\n return shows.all.find(function (s) {\n return s.id === shows.currentID;\n });\n }\n },\n actions: {\n selectShow: _shows.selectShow,\n getShowWithResults: _shows.getShowWithResults,\n patchShow: _shows.patchShow\n }\n },\n route: {\n data: function data(transition) {\n this.selectShow(transition);\n this.getShowWithResults(transition);\n }\n },\n methods: {\n patchName: function patchName(event) {\n var data = {\n 'data': {\n 'type': 'shows',\n 'id': this.show.id,\n 'attributes': {\n 'name': event.target.value\n }\n }\n };\n\n this.patchShow(this.show.id, data);\n }\n },\n computed: {\n isResolved: function isResolved() {\n return this.show.attributes.tmdb_show_id != 0;\n }\n }\n};\nif (module.exports.__esModule) module.exports = module.exports.default\n;(typeof module.exports === \"function\"? module.exports.options: module.exports).template = \"\\n
\\n
\\n\\n
\\n
Edit Show
\\n\\n
\\n {{ show.attributes.name }}\\n \\n\\n
\\n
Show Name
\\n\\n
\\n\\n
\\n\\n
Posters
\\n
\\n \\n
Backdrops
\\n
\\n
\\n\\n
\\n
Please Resolve
\\n
\\n Oops! We can't figure out which show this is. Please make a selection from the search results below.\\n
\\n
\\n - Folder Name: {{ show.attributes.folder_name }}
\\n
\\n
\\n\\n
\\n
Search Results
\\n
\\n
\\n
\\n
\\n\\n\"\nif (module.hot) {(function () { module.hot.accept()\n var hotAPI = require(\"vue-hot-reload-api\")\n hotAPI.install(require(\"vue\"), true)\n if (!hotAPI.compatible) return\n if (!module.hot.data) {\n hotAPI.createRecord(\"_v-72e38bd8\", module.exports)\n } else {\n hotAPI.update(\"_v-72e38bd8\", module.exports, (typeof module.exports === \"function\" ? module.exports.options : module.exports).template)\n }\n})()}\n},{\"../vuex/actions/shows\":86,\"./ShowBackdrop.vue\":71,\"./ShowPoster.vue\":74,\"./ShowResult.vue\":75,\"./Spinner.vue\":77,\"vue\":51,\"vue-hot-reload-api\":46}],74:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _shows = require('../vuex/actions/shows');\n\nexports.default = {\n name: 'ShowPoster',\n props: ['show', 'poster'],\n vuex: {\n actions: {\n patchShow: _shows.patchShow\n }\n },\n methods: {\n selectPoster: function selectPoster() {\n if (this.isActive) {\n return;\n }\n\n var data = {\n 'data': {\n 'type': 'shows',\n 'id': this.show.id,\n 'attributes': {\n 'poster_path': this.poster.attributes.file_path\n }\n }\n };\n\n this.patchShow(this.show.id, data);\n }\n },\n computed: {\n isActive: function isActive() {\n var currentPoster = this.show.attributes.poster_url;\n var poster = this.poster.attributes.file_path;\n return currentPoster.indexOf(poster) > -1;\n }\n }\n};\nif (module.exports.__esModule) module.exports = module.exports.default\n;(typeof module.exports === \"function\"? module.exports.options: module.exports).template = \"\\n
\\n \\n \\n \\n\\n\"\nif (module.hot) {(function () { module.hot.accept()\n var hotAPI = require(\"vue-hot-reload-api\")\n hotAPI.install(require(\"vue\"), true)\n if (!hotAPI.compatible) return\n if (!module.hot.data) {\n hotAPI.createRecord(\"_v-dad2e7ca\", module.exports)\n } else {\n hotAPI.update(\"_v-dad2e7ca\", module.exports, (typeof module.exports === \"function\" ? module.exports.options : module.exports).template)\n }\n})()}\n},{\"../vuex/actions/shows\":86,\"vue\":51,\"vue-hot-reload-api\":46}],75:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _shows = require('../vuex/actions/shows');\n\nexports.default = {\n name: 'ShowResult',\n props: ['show', 'result'],\n vuex: {\n actions: {\n patchShow: _shows.patchShow\n }\n },\n methods: {\n selectResult: function selectResult() {\n if (this.isActive) {\n return;\n }\n\n var data = {\n 'data': {\n 'type': 'shows',\n 'id': this.show.id,\n 'attributes': {\n 'tmdb_show_id': this.result.id\n }\n }\n };\n\n this.patchShow(this.show.id, data, this.$route.router);\n }\n },\n computed: {\n isActive: function isActive() {\n return this.result.id == this.show.attributes.tmdb_show_id;\n }\n }\n};\nif (module.exports.__esModule) module.exports = module.exports.default\n;(typeof module.exports === \"function\"? module.exports.options: module.exports).template = \"\\n
\\n \\n \\n {{ result.attributes.name }}\\n \\n\\n\"\nif (module.hot) {(function () { module.hot.accept()\n var hotAPI = require(\"vue-hot-reload-api\")\n hotAPI.install(require(\"vue\"), true)\n if (!hotAPI.compatible) return\n if (!module.hot.data) {\n hotAPI.createRecord(\"_v-1d1d222a\", module.exports)\n } else {\n hotAPI.update(\"_v-1d1d222a\", module.exports, (typeof module.exports === \"function\" ? module.exports.options : module.exports).template)\n }\n})()}\n},{\"../vuex/actions/shows\":86,\"vue\":51,\"vue-hot-reload-api\":46}],76:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _ShowCard = require('./ShowCard.vue');\n\nvar _ShowCard2 = _interopRequireDefault(_ShowCard);\n\nvar _Spinner = require('./Spinner.vue');\n\nvar _Spinner2 = _interopRequireDefault(_Spinner);\n\nvar _shows2 = require('../vuex/actions/shows');\n\nvar _filters = require('../vuex/actions/filters');\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nexports.default = {\n name: 'Shows',\n components: {\n ShowCard: _ShowCard2.default,\n Spinner: _Spinner2.default\n },\n ready: function ready() {\n this.$watch('links.next', function () {\n var _this = this;\n\n // Automatically load paginated results\n setTimeout(function () {\n if (_this.links.next && !_this.loading) {\n _this.getShows(_this.links.next);\n }\n }, 1000);\n }, { deep: true });\n },\n vuex: {\n getters: {\n column: function column(_ref) {\n var filters = _ref.filters;\n return filters.attributes.shows;\n },\n direction: function direction(_ref2) {\n var filters = _ref2.filters;\n return filters.direction;\n },\n genres: function genres(_ref3) {\n var _genres = _ref3.genres;\n return _genres.all;\n },\n keywords: function keywords(_ref4) {\n var filters = _ref4.filters;\n return filters.keywords;\n },\n links: function links(_ref5) {\n var shows = _ref5.shows;\n return shows.links;\n },\n loading: function loading(_ref6) {\n var movies = _ref6.movies;\n return movies.loading;\n },\n order: function order(_ref7) {\n var filters = _ref7.filters;\n return filters.order;\n },\n orders: function orders(_ref8) {\n var filters = _ref8.filters;\n return filters.orders;\n },\n query: function query(_ref9) {\n var filters = _ref9.filters;\n return filters.queryShows;\n },\n selectedGenre: function selectedGenre(_ref10) {\n var filters = _ref10.filters;\n return filters.genre;\n },\n shows: function shows(_ref11) {\n var _shows = _ref11.shows;\n return _shows.all;\n }\n },\n actions: {\n clearFilters: _filters.clearFilters,\n clearGenresFilter: _filters.clearGenresFilter,\n getShows: _shows2.getShows,\n filterGenres: _filters.filterGenres,\n filterKeywords: _filters.filterKeywords,\n filterOrder: _filters.filterOrder\n }\n },\n route: {\n data: function data(transition) {\n this.clearGenresFilter();\n this.getShows(this.url, transition);\n }\n },\n methods: {\n loadMore: function loadMore() {\n if (this.links.next && !this.loading && !this._inactive) {\n this.getShows(this.links.next);\n }\n },\n filterShowGenres: function filterShowGenres(event) {\n this.filterGenres(event);\n this.getShows(this.url);\n },\n filterShowKeywords: function filterShowKeywords(event) {\n this.filterKeywords(event);\n this.getShows(this.url);\n },\n filterShowOrder: function filterShowOrder(event) {\n this.filterOrder(event);\n this.getShows(this.url);\n },\n filterReset: function filterReset() {\n this.clearFilters();\n this.getShows(this.url);\n }\n },\n computed: {\n url: function url() {\n return '/api/shows' + this.query;\n }\n }\n};\nif (module.exports.__esModule) module.exports = module.exports.default\n;(typeof module.exports === \"function\"? module.exports.options: module.exports).template = \"\\n
\\n\\n
\\n\\n \\n
\\n
\\n
\\n\\n
\\n \\n
\\n\\n
\\n \\n
\\n
\\n
\\n
\\n\\n \\n
\\n
Shows
\\n
\\n \\n \\n
\\n
\\n
\\n\"\nif (module.hot) {(function () { module.hot.accept()\n var hotAPI = require(\"vue-hot-reload-api\")\n hotAPI.install(require(\"vue\"), true)\n if (!hotAPI.compatible) return\n if (!module.hot.data) {\n hotAPI.createRecord(\"_v-3798e596\", module.exports)\n } else {\n hotAPI.update(\"_v-3798e596\", module.exports, (typeof module.exports === \"function\" ? module.exports.options : module.exports).template)\n }\n})()}\n},{\"../vuex/actions/filters\":81,\"../vuex/actions/shows\":86,\"./ShowCard.vue\":72,\"./Spinner.vue\":77,\"vue\":51,\"vue-hot-reload-api\":46}],77:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = {\n name: 'Spinner'\n};\nif (module.exports.__esModule) module.exports = module.exports.default\n;(typeof module.exports === \"function\"? module.exports.options: module.exports).template = \"\\n
\\n\"\nif (module.hot) {(function () { module.hot.accept()\n var hotAPI = require(\"vue-hot-reload-api\")\n hotAPI.install(require(\"vue\"), true)\n if (!hotAPI.compatible) return\n if (!module.hot.data) {\n hotAPI.createRecord(\"_v-7c4e7af8\", module.exports)\n } else {\n hotAPI.update(\"_v-7c4e7af8\", module.exports, (typeof module.exports === \"function\" ? module.exports.options : module.exports).template)\n }\n})()}\n},{\"vue\":51,\"vue-hot-reload-api\":46}],78:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\n\n// this delays trigger of the first toast (queue)\nvar DEBOUNCE = 300; // in ms\n\n// hide toast after default duration\nvar DURATION = 3000; // in ms\n\n// this transition time is set in scss and defines how long it takes to animate in/out the toast element\nvar TOAST_ANIMATION = 300; // in ms\n\nexports.default = {\n name: 'Toast',\n replace: true,\n\n ready: function ready() {\n this.$watch('toast', function (options) {\n this.addToQueue(options);\n });\n },\n vuex: {\n getters: {\n toast: function toast(_ref) {\n var toasts = _ref.toasts;\n return toasts.current;\n }\n }\n },\n computed: {\n toastContext: function toastContext() {\n return !this.context ? '' : 'toast-' + this.context;\n }\n },\n data: function data() {\n return {\n activeToast: false,\n activeProgressBar: false,\n animation: null,\n animationInProgress: false,\n queue: [],\n style: {\n transition: 'width 0s'\n }\n };\n },\n\n props: {\n context: {\n type: String,\n default: ''\n },\n duration: {\n type: Number,\n default: DURATION\n },\n message: {\n type: String,\n default: 'Done!'\n },\n onAjaxErrors: {\n type: Boolean,\n default: false\n },\n position: {\n type: String,\n default: 'bottom left'\n },\n hideProgress: {\n type: Boolean,\n default: false\n },\n debounce: {\n type: Number,\n default: DEBOUNCE\n }\n },\n methods: {\n pause: function pause() {\n this.activeProgressBar = false;\n clearTimeout(this.animation);\n this.style.transition = 'width 0.1s';\n },\n clear: function clear() {\n var _this = this;\n\n this._toastAnimation = setTimeout(function () {\n _this.activeProgressBar = false;\n _this.animationInProgress = false;\n _this.style.transition = 'width 0s';\n _this.activeToast = false;\n clearTimeout(_this.animation);\n // show next toast from the queue\n if (_this.queue.length > 0) {\n _this._toastAnimation = setTimeout(function () {\n var toast = _this.queue.shift();\n _this.show(toast);\n }, 0); // this set to 0 instead of TOAST_ANIMATION in purpose, so queued messages pop a little bit quicker, so user can close them off quickly\n }\n }, TOAST_ANIMATION); // we need to wait till toast is gone off the screen to clear it and then call next toast\n },\n animate: function animate() {\n this.style.transition = 'width ' + this.duration / 1000 + 's';\n this.activeProgressBar = true;\n this.animation = setTimeout(this.clear, this.duration);\n },\n show: function show(options) {\n var _this2 = this;\n\n this.context = 'default';\n this.animationInProgress = true;\n this.message = options.message || this.message;\n this.context = options.context || this.context;\n this.debounce = options.debounce || this.debounce;\n this.duration = options.duration || this.duration;\n this.hideProgress = options.hideProgress || this.hideProgress;\n this.position = options.position || this.position;\n if (options.success) {\n this.context = 'success';\n this.message = options.success;\n }\n if (options.info) {\n this.context = 'info';\n this.message = options.info;\n }\n if (options.warning) {\n this.context = 'warning';\n this.message = options.warning;\n }\n if (options.error) {\n this.context = 'danger';\n this.message = options.error;\n }\n // wait for dom element (so that position class can take effect when triggered via event)\n setTimeout(function () {\n _this2.activeToast = true;\n _this2.animate();\n }, 100);\n },\n addToQueue: function addToQueue(options) {\n var _this3 = this;\n\n if (this.animationInProgress || this.queue.length > 0) {\n // if some other toast is currently animating, add it to the queue\n this.queue.push(options);\n } else {\n // if first toast, show it\n setTimeout(function () {\n _this3.show(options);\n }, this.debounce);\n }\n }\n },\n events: {\n 'end::ajax': function endAjax(options) {\n if (this.onAjaxErrors && options && options.error) {\n this.addToQueue(options);\n }\n },\n 'show::toast': function showToast(options) {\n this.addToQueue(options);\n }\n },\n destroyed: function destroyed() {\n clearTimeout(this._animation);\n clearTimeout(this._toastAnimation);\n }\n};\nif (module.exports.__esModule) module.exports = module.exports.default\n;(typeof module.exports === \"function\"? module.exports.options: module.exports).template = \"\\n
\\n\"\nif (module.hot) {(function () { module.hot.accept()\n var hotAPI = require(\"vue-hot-reload-api\")\n hotAPI.install(require(\"vue\"), true)\n if (!hotAPI.compatible) return\n if (!module.hot.data) {\n hotAPI.createRecord(\"_v-6443adc6\", module.exports)\n } else {\n hotAPI.update(\"_v-6443adc6\", module.exports, (typeof module.exports === \"function\" ? module.exports.options : module.exports).template)\n }\n})()}\n},{\"vue\":51,\"vue-hot-reload-api\":46}],79:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.filterByGenre = filterByGenre;\nexports.filterByHasMovies = filterByHasMovies;\nexports.filterByHasShows = filterByHasShows;\nexports.zeroPad = zeroPad;\nfunction filterByGenre(items, id) {\n return items.filter(function (item) {\n var record = item.relationships.genres.data.find(function (g) {\n return g.id === id;\n });\n return id == '' || record != null;\n });\n}\n\nfunction filterByHasMovies(items) {\n return items.filter(function (item) {\n return item.attributes.total_movies > 0;\n });\n}\n\nfunction filterByHasShows(items) {\n return items.filter(function (item) {\n return item.attributes.total_shows > 0;\n });\n}\n\nfunction zeroPad(value, padding) {\n var absoluteValue = Math.abs(value);\n var places = Math.max(0, padding - Math.floor(absoluteValue).toString().length);\n var paddedString = Math.pow(10, places).toString().substr(1);\n if (value < 0) {\n paddedString = '-' + paddedString;\n }\n\n return paddedString + absoluteValue;\n}\n\n},{}],80:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.configRouter = configRouter;\n\nvar _Movies = require('./components/Movies.vue');\n\nvar _Movies2 = _interopRequireDefault(_Movies);\n\nvar _Movie = require('./components/Movie.vue');\n\nvar _Movie2 = _interopRequireDefault(_Movie);\n\nvar _MovieEdit = require('./components/MovieEdit.vue');\n\nvar _MovieEdit2 = _interopRequireDefault(_MovieEdit);\n\nvar _Settings = require('./components/Settings.vue');\n\nvar _Settings2 = _interopRequireDefault(_Settings);\n\nvar _Shows = require('./components/Shows.vue');\n\nvar _Shows2 = _interopRequireDefault(_Shows);\n\nvar _Show = require('./components/Show.vue');\n\nvar _Show2 = _interopRequireDefault(_Show);\n\nvar _ShowEdit = require('./components/ShowEdit.vue');\n\nvar _ShowEdit2 = _interopRequireDefault(_ShowEdit);\n\nvar _Season = require('./components/Season.vue');\n\nvar _Season2 = _interopRequireDefault(_Season);\n\nvar _NotFound = require('./components/NotFound.vue');\n\nvar _NotFound2 = _interopRequireDefault(_NotFound);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nfunction configRouter(router) {\n // routes\n router.map({\n '/movies': {\n component: _Movies2.default\n },\n '/movies/:id': {\n component: _Movie2.default\n },\n '/movies/:id/edit': {\n component: _MovieEdit2.default\n },\n '/settings': {\n component: _Settings2.default\n },\n '/shows': {\n component: _Shows2.default\n },\n '/shows/:id': {\n component: _Show2.default\n },\n '/shows/:id/edit': {\n component: _ShowEdit2.default\n },\n '/shows/seasons/:id': {\n component: _Season2.default\n },\n // not found handler\n '*': {\n component: _NotFound2.default\n }\n });\n\n // redirects\n router.redirect({\n '/': '/movies'\n });\n} // Import components\n\n},{\"./components/Movie.vue\":60,\"./components/MovieEdit.vue\":63,\"./components/Movies.vue\":66,\"./components/NotFound.vue\":67,\"./components/Season.vue\":68,\"./components/Settings.vue\":69,\"./components/Show.vue\":70,\"./components/ShowEdit.vue\":73,\"./components/Shows.vue\":76}],81:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.filterOrder = exports.filterKeywords = exports.filterGenres = exports.clearGenresFilter = exports.clearFilters = undefined;\n\nvar _vue = require('vue');\n\nvar _vue2 = _interopRequireDefault(_vue);\n\nvar _mutationTypes = require('../mutation-types');\n\nvar types = _interopRequireWildcard(_mutationTypes);\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n// Filters\nvar clearFilters = exports.clearFilters = function clearFilters(state) {\n state.dispatch(types.CLEAR_FILTERS);\n};\n\nvar clearGenresFilter = exports.clearGenresFilter = function clearGenresFilter(state) {\n state.dispatch(types.CLEAR_GENRES_FILTER);\n};\n\nvar filterGenres = exports.filterGenres = function filterGenres(state, event) {\n state.dispatch(types.FILTER_GENRES, event.target.value);\n};\n\nvar filterKeywords = exports.filterKeywords = function filterKeywords(state, event) {\n state.dispatch(types.FILTER_KEYWORDS, event.target.value);\n};\n\nvar filterOrder = exports.filterOrder = function filterOrder(state, event) {\n state.dispatch(types.FILTER_ORDER, event.target.value);\n};\n\n},{\"../mutation-types\":100,\"vue\":51}],82:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.toggleSearch = exports.toggleMenu = exports.hideMenu = undefined;\n\nvar _vue = require('vue');\n\nvar _vue2 = _interopRequireDefault(_vue);\n\nvar _mutationTypes = require('../mutation-types');\n\nvar types = _interopRequireWildcard(_mutationTypes);\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n// Mobile Menus\nvar hideMenu = exports.hideMenu = function hideMenu(state) {\n state.dispatch(types.HIDE_MENU);\n};\n\nvar toggleMenu = exports.toggleMenu = function toggleMenu(state) {\n state.dispatch(types.TOGGLE_MENU);\n};\n\nvar toggleSearch = exports.toggleSearch = function toggleSearch(state) {\n state.dispatch(types.TOGGLE_SEARCH);\n};\n\n},{\"../mutation-types\":100,\"vue\":51}],83:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.patchMovie = exports.getMovieWithResults = exports.getMovie = exports.selectMovie = exports.getMovies = undefined;\n\nvar _vue = require('vue');\n\nvar _vue2 = _interopRequireDefault(_vue);\n\nvar _mutationTypes = require('../mutation-types');\n\nvar types = _interopRequireWildcard(_mutationTypes);\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n// Movies\nvar getMovies = exports.getMovies = function getMovies(state, url, transition) {\n state.dispatch(types.LOADING_MOVIES);\n _vue2.default.http.get(url).then(function (response) {\n // success callback\n var movies = response.data;\n state.dispatch(types.ADD_MOVIES, movies.data);\n state.dispatch(types.ADD_MOVIE_LINKS, movies.links);\n state.dispatch(types.ADD_GENRES, movies.included);\n state.dispatch(types.LOADED_MOVIES);\n if (transition) {\n transition.next();\n }\n }, function (response) {\n // error callback\n state.dispatch(types.ADD_TOAST, {\n error: 'Connection Error'\n });\n if (transition && response.status != 0) {\n transition.abort();\n }\n });\n};\n\nvar selectMovie = exports.selectMovie = function selectMovie(state, transition) {\n state.dispatch(types.SELECT_MOVIE, transition.to.params.id);\n};\n\nvar getMovie = exports.getMovie = function getMovie(state, transition) {\n _vue2.default.http.get('/api/movies/' + transition.to.params.id).then(function (response) {\n // success callback\n var movie = response.data;\n state.dispatch(types.ADD_MOVIE, movie.data);\n state.dispatch(types.ADD_GENRES, movie.included);\n state.dispatch(types.ADD_MOVIE_VIEWS, movie.included);\n if (transition) {\n transition.next();\n }\n }, function (response) {\n // error callback\n state.dispatch(types.ADD_TOAST, {\n error: 'Connection Error'\n });\n if (transition && response.status != 0) {\n transition.abort();\n }\n });\n};\n\nvar getMovieWithResults = exports.getMovieWithResults = function getMovieWithResults(state, transition) {\n _vue2.default.http.get('/api/movies/' + transition.to.params.id + '?include=backdrops,posters,results').then(function (response) {\n // success callback \n var movie = response.data;\n state.dispatch(types.ADD_MOVIE, movie.data);\n state.dispatch(types.ADD_IMAGES, movie.included);\n state.dispatch(types.ADD_MOVIE_RESULTS, movie.included);\n if (transition) {\n transition.next();\n }\n }, function (response) {\n // error callback\n state.dispatch(types.ADD_TOAST, {\n error: 'Connection Error'\n });\n if (transition && response.status != 0) {\n transition.abort();\n }\n });\n};\n\nvar patchMovie = exports.patchMovie = function patchMovie(state, id, data, router) {\n if (router) {\n state.dispatch(types.ADD_TOAST, {\n success: 'Updating Movie'\n });\n }\n\n _vue2.default.http.patch('/api/movies/' + id, data).then(function (response) {\n // success callback\n var movie = response.data;\n state.dispatch(types.ADD_MOVIE, movie.data);\n if (router) {\n router.go('/movies/' + id);\n }\n }, function (response) {\n // error callback\n state.dispatch(types.ADD_TOAST, {\n error: 'Connection Error'\n });\n });\n};\n\n},{\"../mutation-types\":100,\"vue\":51}],84:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.getSeason = exports.selectSeason = undefined;\n\nvar _vue = require('vue');\n\nvar _vue2 = _interopRequireDefault(_vue);\n\nvar _mutationTypes = require('../mutation-types');\n\nvar types = _interopRequireWildcard(_mutationTypes);\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n// Seasons\nvar selectSeason = exports.selectSeason = function selectSeason(state, transition) {\n state.dispatch(types.SELECT_SEASON, transition.to.params.id);\n};\n\nvar getSeason = exports.getSeason = function getSeason(state, transition) {\n _vue2.default.http.get('/api/seasons/' + transition.to.params.id).then(function (response) {\n // success callback\n var season = response.data;\n state.dispatch(types.ADD_SEASON, season.data);\n state.dispatch(types.ADD_EPISODES, season.included);\n state.dispatch(types.ADD_SHOWS, season.included);\n state.dispatch(types.ADD_GENRES, season.included);\n state.dispatch(types.ADD_SEASON_VIEWS, season.included);\n if (transition) {\n transition.next();\n }\n }, function (response) {\n // error callback\n state.dispatch(types.ADD_TOAST, {\n error: 'Connection Error'\n });\n if (transition && response.status != 0) {\n transition.abort();\n }\n });\n};\n\n},{\"../mutation-types\":100,\"vue\":51}],85:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.setShowsFolder = exports.setMoviesFolder = exports.refreshNew = exports.refreshAll = exports.patchSettings = exports.getSettings = exports.clearToday = exports.clearAll = undefined;\n\nvar _vue = require('vue');\n\nvar _vue2 = _interopRequireDefault(_vue);\n\nvar _mutationTypes = require('../mutation-types');\n\nvar types = _interopRequireWildcard(_mutationTypes);\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar clearAll = exports.clearAll = function clearAll(state) {\n _vue2.default.http.delete('/api/settings/history?all').then(function (response) {\n // success callback\n state.dispatch(types.ADD_TOAST, {\n success: 'Clearing All History'\n });\n }, function (response) {\n // error callback\n state.dispatch(types.ADD_TOAST, {\n error: 'Connection Error'\n });\n });\n};\n\nvar clearToday = exports.clearToday = function clearToday(state) {\n _vue2.default.http.delete('/api/settings/history').then(function (response) {\n // success callback\n state.dispatch(types.ADD_TOAST, {\n success: 'Clearing Today\\'s History'\n });\n }, function (response) {\n // error callback\n state.dispatch(types.ADD_TOAST, {\n error: 'Connection Error'\n });\n });\n};\n\n// Shows\nvar getSettings = exports.getSettings = function getSettings(state, transition) {\n _vue2.default.http.get('/api/settings').then(function (response) {\n // success callback\n var settings = response.data;\n state.dispatch(types.ADD_SETTINGS, settings.data);\n if (transition) {\n transition.next();\n }\n }, function (response) {\n // error callback\n state.dispatch(types.ADD_TOAST, {\n error: 'Connection Error'\n });\n if (transition && response.status != 0) {\n transition.abort();\n }\n });\n};\n\nvar patchSettings = exports.patchSettings = function patchSettings(state, data) {\n _vue2.default.http.patch('/api/settings', data).then(function (response) {\n // success callback\n var settings = response.data;\n state.dispatch(types.ADD_SETTINGS, settings.data);\n state.dispatch(types.CLEAR_ALL);\n state.dispatch(types.ADD_TOAST, {\n success: 'Updating Folders'\n });\n }, function (response) {\n // error callback\n state.dispatch(types.ADD_TOAST, {\n error: 'Connection Error'\n });\n });\n};\n\nvar refreshAll = exports.refreshAll = function refreshAll(state) {\n _vue2.default.http.patch('/api/settings/folders?all').then(function (response) {\n // success callback\n state.dispatch(types.ADD_TOAST, {\n success: 'Refreshing All Folders'\n });\n }, function (response) {\n // error callback\n state.dispatch(types.ADD_TOAST, {\n error: 'Connection Error'\n });\n });\n};\n\nvar refreshNew = exports.refreshNew = function refreshNew(state) {\n _vue2.default.http.patch('/api/settings/folders').then(function (response) {\n // success callback\n state.dispatch(types.ADD_TOAST, {\n success: 'Refreshing New Folders'\n });\n }, function (response) {\n // error callback\n state.dispatch(types.ADD_TOAST, {\n error: 'Connection Error'\n });\n });\n};\n\nvar setMoviesFolder = exports.setMoviesFolder = function setMoviesFolder(state, event) {\n var data = { 'movies_folder': event.target.value };\n\n state.dispatch(types.SET_SETTINGS_ATTRIBUTES, data);\n};\n\nvar setShowsFolder = exports.setShowsFolder = function setShowsFolder(state, event) {\n var data = { 'shows_folder': event.target.value };\n\n state.dispatch(types.SET_SETTINGS_ATTRIBUTES, data);\n};\n\n},{\"../mutation-types\":100,\"vue\":51}],86:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.patchShow = exports.getShowWithResults = exports.getShow = exports.selectShow = exports.getShows = undefined;\n\nvar _vue = require('vue');\n\nvar _vue2 = _interopRequireDefault(_vue);\n\nvar _mutationTypes = require('../mutation-types');\n\nvar types = _interopRequireWildcard(_mutationTypes);\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n// Shows\nvar getShows = exports.getShows = function getShows(state, url, transition) {\n state.dispatch(types.LOADING_SHOWS);\n _vue2.default.http.get(url).then(function (response) {\n // success callback\n var shows = response.data;\n state.dispatch(types.ADD_SHOWS, shows.data);\n state.dispatch(types.ADD_SHOW_LINKS, shows.links);\n state.dispatch(types.ADD_GENRES, shows.included);\n state.dispatch(types.LOADED_SHOWS);\n if (transition) {\n transition.next();\n }\n }, function (response) {\n // error callback\n state.dispatch(types.ADD_TOAST, {\n error: 'Connection Error'\n });\n if (transition && response.status != 0) {\n transition.abort();\n }\n });\n};\n\nvar selectShow = exports.selectShow = function selectShow(state, transition) {\n state.dispatch(types.SELECT_SHOW, transition.to.params.id);\n};\n\nvar getShow = exports.getShow = function getShow(state, transition) {\n _vue2.default.http.get('/api/shows/' + transition.to.params.id).then(function (response) {\n // success callback\n var show = response.data;\n state.dispatch(types.ADD_SHOW, show.data);\n state.dispatch(types.ADD_GENRES, show.included);\n state.dispatch(types.ADD_SEASONS, show.included);\n state.dispatch(types.ADD_SHOW_VIEWS, show.included);\n if (transition) {\n transition.next();\n }\n }, function (response) {\n // error callback\n state.dispatch(types.ADD_TOAST, {\n error: 'Connection Error'\n });\n if (transition && response.status != 0) {\n transition.abort();\n }\n });\n};\n\nvar getShowWithResults = exports.getShowWithResults = function getShowWithResults(state, transition) {\n _vue2.default.http.get('/api/shows/' + transition.to.params.id + '?include=backdrops,posters,results').then(function (response) {\n // success callback\n var show = response.data;\n state.dispatch(types.ADD_SHOW, show.data);\n state.dispatch(types.ADD_GENRES, show.included);\n state.dispatch(types.ADD_SEASONS, show.included);\n state.dispatch(types.ADD_IMAGES, show.included);\n state.dispatch(types.ADD_SHOW_RESULTS, show.included);\n if (transition) {\n transition.next();\n }\n }, function (response) {\n // error callback\n state.dispatch(types.ADD_TOAST, {\n error: 'Connection Error'\n });\n if (transition && response.status != 0) {\n transition.abort();\n }\n });\n};\n\nvar patchShow = exports.patchShow = function patchShow(state, id, data, router) {\n if (router) {\n state.dispatch(types.ADD_TOAST, {\n success: 'Updating Show'\n });\n }\n\n _vue2.default.http.patch('/api/shows/' + id, data).then(function (response) {\n // success callback\n var show = response.data;\n state.dispatch(types.ADD_SHOW, show.data);\n if (router) {\n router.go('/shows/' + id);\n }\n }, function (response) {\n // error callback\n state.dispatch(types.ADD_TOAST, {\n error: 'Connection Error'\n });\n });\n};\n\n},{\"../mutation-types\":100,\"vue\":51}],87:[function(require,module,exports){\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.addRecords = addRecords;\nexports.addRecord = addRecord;\nfunction addRecords(records, newRecords, type, callback) {\n if (!newRecords) {\n return;\n }\n\n newRecords.forEach(function (newRecord) {\n addRecord(records, newRecord, type, callback);\n });\n}\n\nfunction addRecord(records, newRecord, type, callback) {\n if (!newRecord || newRecord.type != type) {\n return;\n }\n\n var record = records.find(function (r) {\n return r.id === newRecord.id;\n });\n\n if (!record) {\n records.push(newRecord);\n } else if (callback) {\n record.attributes = newRecord.attributes;\n record.links = newRecord.links;\n\n callback(record, newRecord);\n } else {\n record.attributes = newRecord.attributes;\n record.links = newRecord.links;\n\n if (!newRecord.relationships) {\n record.relationships = {};\n return;\n }\n\n record.relationships = newRecord.relationships ? newRecord.relationships : record.relationships;\n }\n}\n\n},{}],88:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _mutations;\n\nvar _helpers = require('../helpers');\n\nvar _mutationTypes = require('../mutation-types');\n\nvar types = _interopRequireWildcard(_mutationTypes);\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n// initial state\nvar state = {\n currentID: null,\n all: []\n};\n\n// mutations\nvar mutations = (_mutations = {}, _defineProperty(_mutations, types.CLEAR_ALL, function (state) {\n state.all = [];\n}), _defineProperty(_mutations, types.SELECT_EPISODE, function (state, id) {\n state.currentID = id;\n}), _defineProperty(_mutations, types.ADD_EPISODE, function (state, episode) {\n (0, _helpers.addRecord)(state.all, episode, 'episodes');\n}), _defineProperty(_mutations, types.ADD_EPISODES, function (state, episodes) {\n (0, _helpers.addRecords)(state.all, episodes, 'episodes');\n}), _mutations);\n\nexports.default = {\n state: state,\n mutations: mutations\n};\n\n},{\"../helpers\":87,\"../mutation-types\":100}],89:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _mutations;\n\nvar _mutationTypes = require('../mutation-types');\n\nvar types = _interopRequireWildcard(_mutationTypes);\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n// initial state\nvar state = {\n genre: '',\n keywords: '',\n order: 'a-z',\n attributes: {\n movies: 'attributes.title',\n shows: 'attributes.name'\n },\n queryMovies: '',\n queryShows: '',\n direction: 1,\n orders: [{\n id: 'a-z',\n name: 'Title: A-Z',\n prefix: '',\n movies: 'title',\n shows: 'name',\n direction: 1\n }, {\n id: 'z-a',\n name: 'Title: Z-A',\n prefix: '-',\n movies: 'title',\n shows: 'name',\n direction: -1\n }, {\n id: 'newest',\n name: 'Year: Newest',\n prefix: '-',\n movies: 'release_date',\n shows: 'first_air_date',\n direction: -1\n }, {\n id: 'oldest',\n name: 'Year: Oldest',\n prefix: '',\n movies: 'release_date',\n shows: 'first_air_date',\n direction: 1\n }]\n};\n\n// mutations\nvar mutations = (_mutations = {}, _defineProperty(_mutations, types.CLEAR_FILTERS, function (state) {\n state.genre = '';\n state.keywords = '';\n state.order = 'a-z';\n buildFilters();\n}), _defineProperty(_mutations, types.CLEAR_GENRES_FILTER, function (state) {\n state.genre = '';\n buildFilters();\n}), _defineProperty(_mutations, types.FILTER_GENRES, function (state, genre) {\n state.genre = genre;\n buildFilters();\n}), _defineProperty(_mutations, types.FILTER_KEYWORDS, function (state, keywords) {\n state.keywords = keywords;\n buildFilters();\n}), _defineProperty(_mutations, types.FILTER_ORDER, function (state, order) {\n state.order = order;\n buildFilters();\n}), _mutations);\n\nexports.default = {\n state: state,\n mutations: mutations\n};\n\n\nfunction buildFilters() {\n var order = state.orders.find(function (o) {\n return o.id === state.order;\n });\n\n state.attributes.movies = 'attributes.' + order.movies;\n state.attributes.shows = 'attributes.' + order.shows;\n state.direction = order.direction;\n\n buildMovieQuery(order);\n buildShowQuery(order);\n}\n\nfunction buildMovieQuery(order) {\n state.queryMovies = buildQuery(order.prefix + order.movies);\n}\n\nfunction buildShowQuery(order) {\n state.queryShows = buildQuery(order.prefix + order.shows);\n}\n\nfunction buildQuery(order) {\n var parameters = [{ key: 'keywords', value: state.keywords }, { key: 'sort', value: order }, { key: 'genre', value: state.genre }];\n var query = \"\";\n parameters.forEach(function (param) {\n if (shouldAddParameter(param)) {\n query += encodeURIComponent(param.key) + \"=\" + encodeURIComponent(param.value) + \"&\";\n }\n });\n if (query.length > 0) {\n //chop off last \"&\"\n query = query.substring(0, query.length - 1);\n query = \"?\" + query;\n }\n return query;\n}\n\nfunction shouldAddParameter(param) {\n if (param.key == 'sort' && state.order == 'a-z') {\n return false;\n }\n\n return param.value != '';\n}\n\n},{\"../mutation-types\":100}],90:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _mutations;\n\nvar _helpers = require('../helpers');\n\nvar _mutationTypes = require('../mutation-types');\n\nvar types = _interopRequireWildcard(_mutationTypes);\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n// initial state\nvar state = {\n all: []\n};\n\n// mutations\nvar mutations = (_mutations = {}, _defineProperty(_mutations, types.CLEAR_ALL, function (state) {\n state.all = [];\n}), _defineProperty(_mutations, types.ADD_GENRES, function (state, genres) {\n (0, _helpers.addRecords)(state.all, genres, 'genres');\n}), _mutations);\n\nexports.default = {\n state: state,\n mutations: mutations\n};\n\n},{\"../helpers\":87,\"../mutation-types\":100}],91:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _mutations;\n\nvar _helpers = require('../helpers');\n\nvar _mutationTypes = require('../mutation-types');\n\nvar types = _interopRequireWildcard(_mutationTypes);\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n// initial state\nvar state = {\n all: []\n};\n\n// mutations\nvar mutations = (_mutations = {}, _defineProperty(_mutations, types.CLEAR_ALL, function (state) {\n state.all = [];\n}), _defineProperty(_mutations, types.ADD_IMAGES, function (state, images) {\n (0, _helpers.addRecords)(state.all, images, 'images');\n}), _mutations);\n\nexports.default = {\n state: state,\n mutations: mutations\n};\n\n},{\"../helpers\":87,\"../mutation-types\":100}],92:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _mutations;\n\nvar _mutationTypes = require('../mutation-types');\n\nvar types = _interopRequireWildcard(_mutationTypes);\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n// initial state\nvar state = {\n showMenu: false,\n showSearch: false\n};\n\n// mutations\nvar mutations = (_mutations = {}, _defineProperty(_mutations, types.HIDE_MENU, function (state) {\n state.showMenu = false;\n}), _defineProperty(_mutations, types.TOGGLE_MENU, function (state) {\n state.showMenu = !state.showMenu;\n}), _defineProperty(_mutations, types.TOGGLE_SEARCH, function (state) {\n state.showSearch = !state.showSearch;\n}), _mutations);\n\nexports.default = {\n state: state,\n mutations: mutations\n};\n\n},{\"../mutation-types\":100}],93:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _mutations;\n\nvar _helpers = require('../helpers');\n\nvar _mutationTypes = require('../mutation-types');\n\nvar types = _interopRequireWildcard(_mutationTypes);\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n// initial state\nvar state = {\n currentID: null,\n loading: false,\n all: [],\n links: []\n};\n\n// mutations\nvar mutations = (_mutations = {}, _defineProperty(_mutations, types.CLEAR_ALL, function (state) {\n state.all = [];\n}), _defineProperty(_mutations, types.LOADING_MOVIES, function (state) {\n state.loading = true;\n}), _defineProperty(_mutations, types.LOADED_MOVIES, function (state) {\n state.loading = false;\n}), _defineProperty(_mutations, types.SELECT_MOVIE, function (state, id) {\n state.currentID = id;\n}), _defineProperty(_mutations, types.ADD_MOVIE_LINKS, function (state, links) {\n state.links = links;\n}), _defineProperty(_mutations, types.ADD_MOVIE, function (state, movie) {\n (0, _helpers.addRecord)(state.all, movie, 'movies', updateRelationships);\n}), _defineProperty(_mutations, types.ADD_MOVIES, function (state, movies) {\n (0, _helpers.addRecords)(state.all, movies, 'movies', updateRelationships);\n}), _mutations);\n\nexports.default = {\n state: state,\n mutations: mutations\n};\n\n\nfunction updateRelationships(record, movie) {\n if (!movie.relationships) {\n return;\n }\n record.relationships.backdrops = movie.relationships.backdrops ? movie.relationships.backdrops : record.relationships.backdrops;\n record.relationships.genres = movie.relationships.genres ? movie.relationships.genres : record.relationships.genres;\n record.relationships.posters = movie.relationships.posters ? movie.relationships.posters : record.relationships.posters;\n record.relationships.results = movie.relationships.results ? movie.relationships.results : record.relationships.results;\n record.relationships.views = movie.relationships.views ? movie.relationships.views : record.relationships.views;\n}\n\n},{\"../helpers\":87,\"../mutation-types\":100}],94:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _mutations;\n\nvar _helpers = require('../helpers');\n\nvar _mutationTypes = require('../mutation-types');\n\nvar types = _interopRequireWildcard(_mutationTypes);\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n// initial state\nvar state = {\n movies: [],\n shows: []\n};\n\n// mutations\nvar mutations = (_mutations = {}, _defineProperty(_mutations, types.CLEAR_ALL, function (state) {\n state.movies = [];\n state.shows = [];\n}), _defineProperty(_mutations, types.ADD_MOVIE_RESULTS, function (state, results) {\n (0, _helpers.addRecords)(state.movies, results, 'movie-results');\n}), _defineProperty(_mutations, types.ADD_SHOW_RESULTS, function (state, results) {\n (0, _helpers.addRecords)(state.shows, results, 'show-results');\n}), _mutations);\n\nexports.default = {\n state: state,\n mutations: mutations\n};\n\n},{\"../helpers\":87,\"../mutation-types\":100}],95:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _mutations;\n\nvar _helpers = require('../helpers');\n\nvar _mutationTypes = require('../mutation-types');\n\nvar types = _interopRequireWildcard(_mutationTypes);\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n// initial state\nvar state = {\n currentID: null,\n all: []\n};\n\n// mutations\nvar mutations = (_mutations = {}, _defineProperty(_mutations, types.CLEAR_ALL, function (state) {\n state.all = [];\n}), _defineProperty(_mutations, types.SELECT_SEASON, function (state, id) {\n state.currentID = id;\n}), _defineProperty(_mutations, types.ADD_SEASON, function (state, season) {\n (0, _helpers.addRecord)(state.all, season, 'seasons');\n}), _defineProperty(_mutations, types.ADD_SEASONS, function (state, seasons) {\n (0, _helpers.addRecords)(state.all, seasons, 'seasons');\n}), _mutations);\n\nexports.default = {\n state: state,\n mutations: mutations\n};\n\n},{\"../helpers\":87,\"../mutation-types\":100}],96:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _mutations;\n\nvar _mutationTypes = require('../mutation-types');\n\nvar types = _interopRequireWildcard(_mutationTypes);\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n// initial state\nvar state = {\n current: null\n};\n\n// mutations\nvar mutations = (_mutations = {}, _defineProperty(_mutations, types.ADD_SETTINGS, function (state, settings) {\n state.current = settings;\n}), _defineProperty(_mutations, types.SET_SETTINGS_ATTRIBUTES, function (state, data) {\n for (var name in data) {\n state.current.attributes[name] = data[name];\n }\n}), _mutations);\n\nexports.default = {\n state: state,\n mutations: mutations\n};\n\n},{\"../mutation-types\":100}],97:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _mutations;\n\nvar _helpers = require('../helpers');\n\nvar _mutationTypes = require('../mutation-types');\n\nvar types = _interopRequireWildcard(_mutationTypes);\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n// initial state\nvar state = {\n currentID: null,\n loading: false,\n all: [],\n links: []\n};\n\n// mutations\nvar mutations = (_mutations = {}, _defineProperty(_mutations, types.CLEAR_ALL, function (state) {\n state.all = [];\n}), _defineProperty(_mutations, types.LOADING_SHOWS, function (state) {\n state.loading = true;\n}), _defineProperty(_mutations, types.LOADED_SHOWS, function (state) {\n state.loading = false;\n}), _defineProperty(_mutations, types.SELECT_SHOW, function (state, id) {\n state.currentID = id;\n}), _defineProperty(_mutations, types.ADD_SHOW_LINKS, function (state, links) {\n state.links = links;\n}), _defineProperty(_mutations, types.ADD_SHOW, function (state, show) {\n (0, _helpers.addRecord)(state.all, show, 'shows', updateRelationships);\n}), _defineProperty(_mutations, types.ADD_SHOWS, function (state, shows) {\n (0, _helpers.addRecords)(state.all, shows, 'shows', updateRelationships);\n}), _mutations);\n\nexports.default = {\n state: state,\n mutations: mutations\n};\n\n\nfunction updateRelationships(record, show) {\n if (!show.relationships) {\n return;\n }\n record.relationships.backdrops = show.relationships.backdrops ? show.relationships.backdrops : record.relationships.backdrops;\n record.relationships.genres = show.relationships.genres ? show.relationships.genres : record.relationships.genres;\n record.relationships.posters = show.relationships.posters ? show.relationships.posters : record.relationships.posters;\n record.relationships.results = show.relationships.results ? show.relationships.results : record.relationships.results;\n record.relationships.seasons = show.relationships.seasons ? show.relationships.seasons : record.relationships.seasons;\n record.relationships.views = show.relationships.views ? show.relationships.views : record.relationships.views;\n}\n\n},{\"../helpers\":87,\"../mutation-types\":100}],98:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _mutationTypes = require('../mutation-types');\n\nvar types = _interopRequireWildcard(_mutationTypes);\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n// initial state\nvar state = {\n current: null\n};\n\n// mutations\nvar mutations = _defineProperty({}, types.ADD_TOAST, function (state, toast) {\n state.current = toast;\n});\n\nexports.default = {\n state: state,\n mutations: mutations\n};\n\n},{\"../mutation-types\":100}],99:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _mutations;\n\nvar _helpers = require('../helpers');\n\nvar _mutationTypes = require('../mutation-types');\n\nvar types = _interopRequireWildcard(_mutationTypes);\n\nfunction _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\n// initial state\nvar state = {\n movies: [],\n seasons: [],\n shows: []\n};\n\n// mutations\nvar mutations = (_mutations = {}, _defineProperty(_mutations, types.CLEAR_ALL, function (state) {\n state.movies = [];\n state.seasons = [];\n state.shows = [];\n}), _defineProperty(_mutations, types.ADD_MOVIE_VIEWS, function (state, views) {\n (0, _helpers.addRecords)(state.movies, views, 'movie-views');\n}), _defineProperty(_mutations, types.ADD_SEASON_VIEWS, function (state, views) {\n (0, _helpers.addRecords)(state.seasons, views, 'season-views');\n}), _defineProperty(_mutations, types.ADD_SHOW_VIEWS, function (state, views) {\n (0, _helpers.addRecords)(state.shows, views, 'show-views');\n}), _mutations);\n\nexports.default = {\n state: state,\n mutations: mutations\n};\n\n},{\"../helpers\":87,\"../mutation-types\":100}],100:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n// Storage\nvar ADD_EPISODE = exports.ADD_EPISODE = 'ADD_EPISODE';\nvar ADD_EPISODES = exports.ADD_EPISODES = 'ADD_EPISODES';\nvar ADD_GENRES = exports.ADD_GENRES = 'ADD_GENRES';\nvar ADD_IMAGES = exports.ADD_IMAGES = 'ADD_IMAGES';\nvar ADD_MOVIE = exports.ADD_MOVIE = 'ADD_MOVIE';\nvar ADD_MOVIES = exports.ADD_MOVIES = 'ADD_MOVIES';\nvar ADD_SEASON = exports.ADD_SEASON = 'ADD_SEASON';\nvar ADD_SEASONS = exports.ADD_SEASONS = 'ADD_SEASONS';\nvar ADD_SHOW = exports.ADD_SHOW = 'ADD_SHOW';\nvar ADD_SHOWS = exports.ADD_SHOWS = 'ADD_SHOWS';\nvar ADD_TOAST = exports.ADD_TOAST = 'ADD_TOAST';\n// Pagination\nvar LOADED_MOVIES = exports.LOADED_MOVIES = 'LOADED_MOVIES';\nvar LOADED_SHOWS = exports.LOADED_SHOWS = 'LOADED_SHOWS';\nvar LOADING_MOVIES = exports.LOADING_MOVIES = 'LOADING_MOVIES';\nvar LOADING_SHOWS = exports.LOADING_SHOWS = 'LOADING_SHOWS';\nvar ADD_MOVIE_LINKS = exports.ADD_MOVIE_LINKS = 'ADD_MOVIE_LINKS';\nvar ADD_SHOW_LINKS = exports.ADD_SHOW_LINKS = 'ADD_SHOW_LINKS';\n// Settings\nvar ADD_SETTINGS = exports.ADD_SETTINGS = 'ADD_SETTINGS';\nvar CLEAR_ALL = exports.CLEAR_ALL = 'CLEAR_ALL';\nvar SET_SETTINGS_ATTRIBUTES = exports.SET_SETTINGS_ATTRIBUTES = 'SET_SETTINGS_ATTRIBUTES';\n// Search Results\nvar ADD_MOVIE_RESULTS = exports.ADD_MOVIE_RESULTS = 'ADD_MOVIE_RESULTS';\nvar ADD_SHOW_RESULTS = exports.ADD_SHOW_RESULTS = 'ADD_SHOW_RESULTS';\n// Mobile Menus\nvar HIDE_MENU = exports.HIDE_MENU = 'HIDE_MENU';\nvar TOGGLE_MENU = exports.TOGGLE_MENU = 'TOGGLE_MENU';\nvar TOGGLE_SEARCH = exports.TOGGLE_SEARCH = 'TOGGLE_SEARCH';\n// Filters\nvar CLEAR_FILTERS = exports.CLEAR_FILTERS = 'CLEAR_FILTERS';\nvar CLEAR_GENRES_FILTER = exports.CLEAR_GENRES_FILTER = 'CLEAR_GENRES_FILTER';\nvar FILTER_GENRES = exports.FILTER_GENRES = 'FILTER_GENRES';\nvar FILTER_KEYWORDS = exports.FILTER_KEYWORDS = 'FILTER_KEYWORDS';\nvar FILTER_ORDER = exports.FILTER_ORDER = 'FILTER_ORDER';\n// Selections\nvar SELECT_EPISODE = exports.SELECT_EPISODE = 'SELECT_EPISODE';\nvar SELECT_MOVIE = exports.SELECT_MOVIE = 'SELECT_MOVIE';\nvar SELECT_SEASON = exports.SELECT_SEASON = 'SELECT_SEASON';\nvar SELECT_SHOW = exports.SELECT_SHOW = 'SELECT_SHOW';\n// Views\nvar ADD_MOVIE_VIEWS = exports.ADD_MOVIE_VIEWS = 'ADD_MOVIE_VIEWS';\nvar ADD_SEASON_VIEWS = exports.ADD_SEASON_VIEWS = 'ADD_SEASON_VIEWS';\nvar ADD_SHOW_VIEWS = exports.ADD_SHOW_VIEWS = 'ADD_SHOW_VIEWS';\n\n},{}],101:[function(require,module,exports){\n'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _vue = require('vue');\n\nvar _vue2 = _interopRequireDefault(_vue);\n\nvar _vuex = require('vuex');\n\nvar _vuex2 = _interopRequireDefault(_vuex);\n\nvar _logger = require('vuex/logger');\n\nvar _logger2 = _interopRequireDefault(_logger);\n\nvar _episodes = require('./modules/episodes');\n\nvar _episodes2 = _interopRequireDefault(_episodes);\n\nvar _filters = require('./modules/filters');\n\nvar _filters2 = _interopRequireDefault(_filters);\n\nvar _genres = require('./modules/genres');\n\nvar _genres2 = _interopRequireDefault(_genres);\n\nvar _images = require('./modules/images');\n\nvar _images2 = _interopRequireDefault(_images);\n\nvar _mobile = require('./modules/mobile');\n\nvar _mobile2 = _interopRequireDefault(_mobile);\n\nvar _movies = require('./modules/movies');\n\nvar _movies2 = _interopRequireDefault(_movies);\n\nvar _search = require('./modules/search');\n\nvar _search2 = _interopRequireDefault(_search);\n\nvar _seasons = require('./modules/seasons');\n\nvar _seasons2 = _interopRequireDefault(_seasons);\n\nvar _settings = require('./modules/settings');\n\nvar _settings2 = _interopRequireDefault(_settings);\n\nvar _shows = require('./modules/shows');\n\nvar _shows2 = _interopRequireDefault(_shows);\n\nvar _toasts = require('./modules/toasts');\n\nvar _toasts2 = _interopRequireDefault(_toasts);\n\nvar _views = require('./modules/views');\n\nvar _views2 = _interopRequireDefault(_views);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n_vue2.default.use(_vuex2.default);\n\nvar debug = _vue2.default.config.debug;\n\nexports.default = new _vuex2.default.Store({\n modules: {\n episodes: _episodes2.default,\n filters: _filters2.default,\n genres: _genres2.default,\n images: _images2.default,\n mobile: _mobile2.default,\n movies: _movies2.default,\n search: _search2.default,\n seasons: _seasons2.default,\n settings: _settings2.default,\n shows: _shows2.default,\n toasts: _toasts2.default,\n views: _views2.default\n },\n strict: debug,\n middlewares: debug ? [_logger2.default] : []\n});\n\n},{\"./modules/episodes\":88,\"./modules/filters\":89,\"./modules/genres\":90,\"./modules/images\":91,\"./modules/mobile\":92,\"./modules/movies\":93,\"./modules/search\":94,\"./modules/seasons\":95,\"./modules/settings\":96,\"./modules/shows\":97,\"./modules/toasts\":98,\"./modules/views\":99,\"vue\":51,\"vuex\":53,\"vuex/logger\":54}]},{},[55]);\n"],"file":"app.js","sourceRoot":"/source/"}
\ No newline at end of file
diff --git a/public/js/manifest.d41d8cd98f00b204e980.js b/public/js/manifest.d41d8cd98f00b204e980.js
new file mode 100644
index 0000000..d2a2905
--- /dev/null
+++ b/public/js/manifest.d41d8cd98f00b204e980.js
@@ -0,0 +1 @@
+!function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var r=window.webpackJsonp;window.webpackJsonp=function(t,a,u){for(var i,c,f,l=0,s=[];l
0)for(n in Mr)r=Mr[n],a=e[r],g(a)||(t[r]=a);return t}function y(t){v(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),br===!1&&(br=!0,e.updateOffset(this),br=!1)}function M(t){return t instanceof y||null!=t&&null!=t._isAMomentObject}function b(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function L(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=b(e)),n}function k(t,e,n){var r,a=Math.min(t.length,e.length),i=Math.abs(t.length-e.length),o=0;for(r=0;r0?"future":"past"];return D(n)?n(e):n.replace(/%s/i,e)}function I(t,e){var n=t.toLowerCase();Ar[n]=Ar[n+"s"]=Ar[e]=t}function F(t){return"string"==typeof t?Ar[t]||Ar[t.toLowerCase()]:void 0}function W(t){var e,n,r={};for(n in t)d(t,n)&&(e=F(n),e&&(r[e]=t[n]));return r}function R(t,e){Cr[t]=e}function z(t){var e=[];for(var n in t)e.push({unit:n,priority:Cr[n]});return e.sort(function(t,e){return t.priority-e.priority}),e}function N(t,n){return function(r){return null!=r?($(this,t,r),e.updateOffset(this,n),this):V(this,t)}}function V(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function $(t,e,n){t.isValid()&&t._d["set"+(t._isUTC?"UTC":"")+e](n)}function B(t){return t=F(t),D(this[t])?this[t]():this}function U(t,e){if("object"==typeof t){t=W(t);for(var n=z(t),r=0;r=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}function q(t,e,n,r){var a=r;"string"==typeof r&&(a=function(){return this[r]()}),t&&(Ir[t]=a),e&&(Ir[e[0]]=function(){return J(a.apply(this,arguments),e[1],e[2])}),n&&(Ir[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),t)})}function G(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function K(t){var e,n,r=t.match(Pr);for(e=0,n=r.length;e=0&&Or.test(t);)t=t.replace(Or,n),Or.lastIndex=0,r-=1;return t}function Q(t,e,n){ea[t]=D(e)?e:function(t,r){return t&&n?n:e}}function tt(t,e){return d(ea,t)?ea[t](e._strict,e._locale):new RegExp(et(t))}function et(t){return nt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,r,a){return e||n||r||a}))}function nt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function rt(t,e){var n,r=e;for("string"==typeof t&&(t=[t]),s(e)&&(r=function(t,n){n[e]=L(t)}),n=0;n=0&&isFinite(s.getFullYear())&&s.setFullYear(t),s}function bt(t){var e=new Date(Date.UTC.apply(null,arguments));return t<100&&t>=0&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function Lt(t,e,n){var r=7+e-n,a=(7+bt(t,0,r).getUTCDay()-e)%7;return-a+r-1}function kt(t,e,n,r,a){var i,o,s=(7+n-r)%7,u=Lt(t,r,a),l=1+7*(e-1)+s+u;return l<=0?(i=t-1,o=gt(i)+l):l>gt(t)?(i=t+1,o=l-gt(t)):(i=t,o=l),{year:i,dayOfYear:o}}function wt(t,e,n){var r,a,i=Lt(t.year(),e,n),o=Math.floor((t.dayOfYear()-i-1)/7)+1;return o<1?(a=t.year()-1,r=o+Yt(a,e,n)):o>Yt(t.year(),e,n)?(r=o-Yt(t.year(),e,n),a=t.year()+1):(a=t.year(),r=o),{week:r,year:a}}function Yt(t,e,n){var r=Lt(t,e,n),a=Lt(t+1,e,n);return(gt(t)-r+a)/7}function xt(t){return wt(t,this._week.dow,this._week.doy).week}function Dt(){return this._week.dow}function Tt(){return this._week.doy}function St(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function jt(t){var e=wt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Ht(t,e){return"string"!=typeof t?t:isNaN(t)?(t=e.weekdaysParse(t),"number"==typeof t?t:null):parseInt(t,10)}function At(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Ct(t,e){return t?a(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(e)?"format":"standalone"][t.day()]:this._weekdays}function Pt(t){return t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Ot(t){return t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Et(t,e,n){var r,a,i,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=f([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===e?(a=fa.call(this._weekdaysParse,o),a!==-1?a:null):"ddd"===e?(a=fa.call(this._shortWeekdaysParse,o),a!==-1?a:null):(a=fa.call(this._minWeekdaysParse,o),a!==-1?a:null):"dddd"===e?(a=fa.call(this._weekdaysParse,o),a!==-1?a:(a=fa.call(this._shortWeekdaysParse,o),a!==-1?a:(a=fa.call(this._minWeekdaysParse,o),a!==-1?a:null))):"ddd"===e?(a=fa.call(this._shortWeekdaysParse,o),a!==-1?a:(a=fa.call(this._weekdaysParse,o),a!==-1?a:(a=fa.call(this._minWeekdaysParse,o),a!==-1?a:null))):(a=fa.call(this._minWeekdaysParse,o),a!==-1?a:(a=fa.call(this._weekdaysParse,o),a!==-1?a:(a=fa.call(this._shortWeekdaysParse,o),a!==-1?a:null)))}function It(t,e,n){var r,a,i;if(this._weekdaysParseExact)return Et.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=f([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[r].test(t))return r;if(n&&"ddd"===e&&this._shortWeekdaysParse[r].test(t))return r;if(n&&"dd"===e&&this._minWeekdaysParse[r].test(t))return r;if(!n&&this._weekdaysParse[r].test(t))return r}}function Ft(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Ht(t,this.localeData()),this.add(t-e,"d")):e}function Wt(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function Rt(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=At(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function zt(t){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||$t.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(d(this,"_weekdaysRegex")||(this._weekdaysRegex=ka),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Nt(t){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||$t.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(d(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=wa),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Vt(t){return this._weekdaysParseExact?(d(this,"_weekdaysRegex")||$t.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(d(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ya),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function $t(){function t(t,e){return e.length-t.length}var e,n,r,a,i,o=[],s=[],u=[],l=[];for(e=0;e<7;e++)n=f([2e3,1]).day(e),r=this.weekdaysMin(n,""),a=this.weekdaysShort(n,""),i=this.weekdays(n,""),o.push(r),s.push(a),u.push(i),l.push(r),l.push(a),l.push(i);for(o.sort(t),s.sort(t),u.sort(t),l.sort(t),e=0;e<7;e++)s[e]=nt(s[e]),u[e]=nt(u[e]),l[e]=nt(l[e]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Bt(){return this.hours()%12||12}function Ut(){return this.hours()||24}function Jt(t,e){q(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function qt(t,e){return e._meridiemParse}function Gt(t){return"p"===(t+"").toLowerCase().charAt(0)}function Kt(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}function Zt(t){return t?t.toLowerCase().replace("_","-"):t}function Xt(t){for(var e,n,r,a,i=0;i0;){if(r=Qt(a.slice(0,e).join("-")))return r;if(n&&n.length>=e&&k(a,n,!0)>=e-1)break;e--}i++}return null}function Qt(e){var r=null;if(!ja[e]&&"undefined"!=typeof t&&t&&t.exports)try{r=xa._abbr,n(237)("./"+e),te(r)}catch(t){}return ja[e]}function te(t,e){var n;return t&&(n=g(e)?re(t):ee(t,e),n&&(xa=n)),xa._abbr}function ee(t,e){if(null!==e){var n=Sa;if(e.abbr=t,null!=ja[t])x("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=ja[t]._config;else if(null!=e.parentLocale){if(null==ja[e.parentLocale])return Ha[e.parentLocale]||(Ha[e.parentLocale]=[]),Ha[e.parentLocale].push({name:t,config:e}),null;n=ja[e.parentLocale]._config}return ja[t]=new j(S(n,e)),Ha[t]&&Ha[t].forEach(function(t){ee(t.name,t.config)}),te(t),ja[t]}return delete ja[t],null}function ne(t,e){if(null!=e){var n,r=Sa;null!=ja[t]&&(r=ja[t]._config),e=S(r,e),n=new j(e),n.parentLocale=ja[t],ja[t]=n,te(t)}else null!=ja[t]&&(null!=ja[t].parentLocale?ja[t]=ja[t].parentLocale:null!=ja[t]&&delete ja[t]);return ja[t]}function re(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return xa;if(!a(t)){if(e=Qt(t))return e;t=[t]}return Xt(t)}function ae(){return Yr(ja)}function ie(t){var e,n=t._a;return n&&_(t).overflow===-2&&(e=n[aa]<0||n[aa]>11?aa:n[ia]<1||n[ia]>ot(n[ra],n[aa])?ia:n[oa]<0||n[oa]>24||24===n[oa]&&(0!==n[sa]||0!==n[ua]||0!==n[la])?oa:n[sa]<0||n[sa]>59?sa:n[ua]<0||n[ua]>59?ua:n[la]<0||n[la]>999?la:-1,_(t)._overflowDayOfYear&&(eia)&&(e=ia),_(t)._overflowWeeks&&e===-1&&(e=da),_(t)._overflowWeekday&&e===-1&&(e=ca),_(t).overflow=e),t}function oe(t){var e,n,r,a,i,o,s=t._i,u=Aa.exec(s)||Ca.exec(s);if(u){for(_(t).iso=!0,e=0,n=Oa.length;egt(a)&&(_(t)._overflowDayOfYear=!0),n=bt(a,0,t._dayOfYear),t._a[aa]=n.getUTCMonth(),t._a[ia]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=i[e]=r[e];for(;e<7;e++)t._a[e]=i[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[oa]&&0===t._a[sa]&&0===t._a[ua]&&0===t._a[la]&&(t._nextDay=!0,t._a[oa]=0),t._d=(t._useUTC?bt:Mt).apply(null,i),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[oa]=24)}}function ce(t){var e,n,r,a,i,o,s,u;if(e=t._w,null!=e.GG||null!=e.W||null!=e.E)i=1,o=4,n=ue(e.GG,t._a[ra],wt(Me(),1,4).year),r=ue(e.W,1),a=ue(e.E,1),(a<1||a>7)&&(u=!0);else{i=t._locale._week.dow,o=t._locale._week.doy;var l=wt(Me(),i,o);n=ue(e.gg,t._a[ra],l.year),r=ue(e.w,l.week),null!=e.d?(a=e.d,(a<0||a>6)&&(u=!0)):null!=e.e?(a=e.e+i,(e.e<0||e.e>6)&&(u=!0)):a=i}r<1||r>Yt(n,i,o)?_(t)._overflowWeeks=!0:null!=u?_(t)._overflowWeekday=!0:(s=kt(n,r,a,i,o),t._a[ra]=s.year,t._dayOfYear=s.dayOfYear)}function fe(t){if(t._f===e.ISO_8601)return void oe(t);t._a=[],_(t).empty=!0;var n,r,a,i,o,s=""+t._i,u=s.length,l=0;for(a=X(t._f,t._locale).match(Pr)||[],n=0;n0&&_(t).unusedInput.push(o),s=s.slice(s.indexOf(r)+r.length),l+=r.length),Ir[i]?(r?_(t).empty=!1:_(t).unusedTokens.push(i),it(i,r,t)):t._strict&&!r&&_(t).unusedTokens.push(i);_(t).charsLeftOver=u-l,s.length>0&&_(t).unusedInput.push(s),t._a[oa]<=12&&_(t).bigHour===!0&&t._a[oa]>0&&(_(t).bigHour=void 0),_(t).parsedDateParts=t._a.slice(0),_(t).meridiem=t._meridiem,t._a[oa]=he(t._locale,t._a[oa],t._meridiem),de(t),ie(t)}function he(t,e,n){var r;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?(r=t.isPM(n),r&&e<12&&(e+=12),r||12!==e||(e=0),e):e}function _e(t){var e,n,r,a,i;if(0===t._f.length)return _(t).invalidFormat=!0,void(t._d=new Date(NaN));for(a=0;athis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Fe(){if(!g(this._isDSTShifted))return this._isDSTShifted;var t={};if(v(t,this),t=ge(t),t._a){var e=t._isUTC?f(t._a):Me(t._a);this._isDSTShifted=this.isValid()&&k(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function We(){return!!this.isValid()&&!this._isUTC}function Re(){return!!this.isValid()&&this._isUTC}function ze(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Ne(t,e){var n,r,a,i=t,o=null;return Ye(t)?i={ms:t._milliseconds,d:t._days,M:t._months}:s(t)?(i={},e?i[e]=t:i.milliseconds=t):(o=Na.exec(t))?(n="-"===o[1]?-1:1,i={y:0,d:L(o[ia])*n,h:L(o[oa])*n,m:L(o[sa])*n,s:L(o[ua])*n,ms:L(xe(1e3*o[la]))*n}):(o=Va.exec(t))?(n="-"===o[1]?-1:1,i={y:Ve(o[2],n),M:Ve(o[3],n),w:Ve(o[4],n),d:Ve(o[5],n),h:Ve(o[6],n),m:Ve(o[7],n),s:Ve(o[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(a=Be(Me(i.from),Me(i.to)),i={},i.ms=a.milliseconds,i.M=a.months),r=new we(i),Ye(t)&&d(t,"_locale")&&(r._locale=t._locale),r}function Ve(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function $e(t,e){var n={milliseconds:0,months:0};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Be(t,e){var n;return t.isValid()&&e.isValid()?(e=Se(e,t),t.isBefore(e)?n=$e(t,e):(n=$e(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Ue(t,e){return function(n,r){var a,i;return null===r||isNaN(+r)||(x(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),n="string"==typeof n?+n:n,a=Ne(n,r),Je(this,a,t),this}}function Je(t,n,r,a){var i=n._milliseconds,o=xe(n._days),s=xe(n._months);t.isValid()&&(a=null==a||a,i&&t._d.setTime(t._d.valueOf()+i*r),o&&$(t,"Date",V(t,"Date")+o*r),s&&ct(t,V(t,"Month")+s*r),a&&e.updateOffset(t,o||s))}function qe(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Ge(t,n){var r=t||Me(),a=Se(r,this).startOf("day"),i=e.calendarFormat(this,a)||"sameElse",o=n&&(D(n[i])?n[i].call(this,r):n[i]);return this.format(o||this.localeData().calendar(i,this,Me(r)))}function Ke(){return new y(this)}function Ze(t,e){var n=M(t)?t:Me(t);return!(!this.isValid()||!n.isValid())&&(e=F(g(e)?"millisecond":e),"millisecond"===e?this.valueOf()>n.valueOf():n.valueOf()i&&(e=i),Pn.call(this,t,e,n,r,a))}function Pn(t,e,n,r,a){var i=kt(t,e,n,r,a),o=bt(i.year,0,i.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}function On(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}function En(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}function In(t,e){e[la]=L(1e3*("0."+t))}function Fn(){return this._isUTC?"UTC":""}function Wn(){return this._isUTC?"Coordinated Universal Time":""}function Rn(t){return Me(1e3*t)}function zn(){return Me.apply(null,arguments).parseZone()}function Nn(t){return t}function Vn(t,e,n,r){var a=re(),i=f().set(r,e);return a[n](i,t)}function $n(t,e,n){if(s(t)&&(e=t,t=void 0),t=t||"",null!=e)return Vn(t,e,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=Vn(t,r,n,"month");return a}function Bn(t,e,n,r){"boolean"==typeof t?(s(e)&&(n=e,e=void 0),e=e||""):(e=t,n=e,t=!1,s(e)&&(n=e,e=void 0),e=e||"");var a=re(),i=t?a._week.dow:0;
+if(null!=n)return Vn(e,(n+i)%7,r,"day");var o,u=[];for(o=0;o<7;o++)u[o]=Vn(e,(o+i)%7,r,"day");return u}function Un(t,e){return $n(t,e,"months")}function Jn(t,e){return $n(t,e,"monthsShort")}function qn(t,e,n){return Bn(t,e,n,"weekdays")}function Gn(t,e,n){return Bn(t,e,n,"weekdaysShort")}function Kn(t,e,n){return Bn(t,e,n,"weekdaysMin")}function Zn(){var t=this._data;return this._milliseconds=ti(this._milliseconds),this._days=ti(this._days),this._months=ti(this._months),t.milliseconds=ti(t.milliseconds),t.seconds=ti(t.seconds),t.minutes=ti(t.minutes),t.hours=ti(t.hours),t.months=ti(t.months),t.years=ti(t.years),this}function Xn(t,e,n,r){var a=Ne(e,n);return t._milliseconds+=r*a._milliseconds,t._days+=r*a._days,t._months+=r*a._months,t._bubble()}function Qn(t,e){return Xn(this,t,e,1)}function tr(t,e){return Xn(this,t,e,-1)}function er(t){return t<0?Math.floor(t):Math.ceil(t)}function nr(){var t,e,n,r,a,i=this._milliseconds,o=this._days,s=this._months,u=this._data;return i>=0&&o>=0&&s>=0||i<=0&&o<=0&&s<=0||(i+=864e5*er(ar(s)+o),o=0,s=0),u.milliseconds=i%1e3,t=b(i/1e3),u.seconds=t%60,e=b(t/60),u.minutes=e%60,n=b(e/60),u.hours=n%24,o+=b(n/24),a=b(rr(o)),s+=a,o-=er(ar(a)),r=b(s/12),s%=12,u.days=o,u.months=s,u.years=r,this}function rr(t){return 4800*t/146097}function ar(t){return 146097*t/4800}function ir(t){var e,n,r=this._milliseconds;if(t=F(t),"month"===t||"year"===t)return e=this._days+r/864e5,n=this._months+rr(e),"month"===t?n:n/12;switch(e=this._days+Math.round(ar(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return 24*e+r/36e5;case"minute":return 1440*e+r/6e4;case"second":return 86400*e+r/1e3;case"millisecond":return Math.floor(864e5*e)+r;default:throw new Error("Unknown unit "+t)}}function or(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*L(this._months/12)}function sr(t){return function(){return this.as(t)}}function ur(t){return t=F(t),this[t+"s"]()}function lr(t){return function(){return this._data[t]}}function dr(){return b(this.days()/7)}function cr(t,e,n,r,a){return a.relativeTime(e||1,!!n,t,r)}function fr(t,e,n){var r=Ne(t).abs(),a=pi(r.as("s")),i=pi(r.as("m")),o=pi(r.as("h")),s=pi(r.as("d")),u=pi(r.as("M")),l=pi(r.as("y")),d=a0,d[4]=n,cr.apply(null,d)}function hr(t){return void 0===t?pi:"function"==typeof t&&(pi=t,!0)}function _r(t,e){return void 0!==gi[t]&&(void 0===e?gi[t]:(gi[t]=e,!0))}function mr(t){var e=this.localeData(),n=fr(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)}function pr(){var t,e,n,r=vi(this._milliseconds)/1e3,a=vi(this._days),i=vi(this._months);t=b(r/60),e=b(t/60),r%=60,t%=60,n=b(i/12),i%=12;var o=n,s=i,u=a,l=e,d=t,c=r,f=this.asSeconds();return f?(f<0?"-":"")+"P"+(o?o+"Y":"")+(s?s+"M":"")+(u?u+"D":"")+(l||d||c?"T":"")+(l?l+"H":"")+(d?d+"M":"")+(c?c+"S":""):"P0D"}var gr,vr;vr=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,r=0;r68?1900:2e3)};var va=N("FullYear",!0);q("w",["ww",2],"wo","week"),q("W",["WW",2],"Wo","isoWeek"),I("week","w"),I("isoWeek","W"),R("week",5),R("isoWeek",5),Q("w",Vr),Q("ww",Vr,Wr),Q("W",Vr),Q("WW",Vr,Wr),at(["w","ww","W","WW"],function(t,e,n,r){e[r.substr(0,1)]=L(t)});var ya={dow:0,doy:6};q("d",0,"do","day"),q("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),q("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),q("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),q("e",0,0,"weekday"),q("E",0,0,"isoWeekday"),I("day","d"),I("weekday","e"),I("isoWeekday","E"),R("day",11),R("weekday",11),R("isoWeekday",11),Q("d",Vr),Q("e",Vr),Q("E",Vr),Q("dd",function(t,e){return e.weekdaysMinRegex(t)}),Q("ddd",function(t,e){return e.weekdaysShortRegex(t)}),Q("dddd",function(t,e){return e.weekdaysRegex(t)}),at(["dd","ddd","dddd"],function(t,e,n,r){var a=n._locale.weekdaysParse(t,r,n._strict);null!=a?e.d=a:_(n).invalidWeekday=t}),at(["d","e","E"],function(t,e,n,r){e[r]=L(t)});var Ma="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ba="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),La="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ka=ta,wa=ta,Ya=ta;q("H",["HH",2],0,"hour"),q("h",["hh",2],0,Bt),q("k",["kk",2],0,Ut),q("hmm",0,0,function(){return""+Bt.apply(this)+J(this.minutes(),2)}),q("hmmss",0,0,function(){return""+Bt.apply(this)+J(this.minutes(),2)+J(this.seconds(),2)}),q("Hmm",0,0,function(){return""+this.hours()+J(this.minutes(),2)}),q("Hmmss",0,0,function(){return""+this.hours()+J(this.minutes(),2)+J(this.seconds(),2)}),Jt("a",!0),Jt("A",!1),I("hour","h"),R("hour",13),Q("a",qt),Q("A",qt),Q("H",Vr),Q("h",Vr),Q("HH",Vr,Wr),Q("hh",Vr,Wr),Q("hmm",$r),Q("hmmss",Br),Q("Hmm",$r),Q("Hmmss",Br),rt(["H","HH"],oa),rt(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),rt(["h","hh"],function(t,e,n){e[oa]=L(t),_(n).bigHour=!0}),rt("hmm",function(t,e,n){var r=t.length-2;e[oa]=L(t.substr(0,r)),e[sa]=L(t.substr(r)),_(n).bigHour=!0}),rt("hmmss",function(t,e,n){var r=t.length-4,a=t.length-2;e[oa]=L(t.substr(0,r)),e[sa]=L(t.substr(r,2)),e[ua]=L(t.substr(a)),_(n).bigHour=!0}),rt("Hmm",function(t,e,n){var r=t.length-2;e[oa]=L(t.substr(0,r)),e[sa]=L(t.substr(r))}),rt("Hmmss",function(t,e,n){var r=t.length-4,a=t.length-2;e[oa]=L(t.substr(0,r)),e[sa]=L(t.substr(r,2)),e[ua]=L(t.substr(a))});var xa,Da=/[ap]\.?m?\.?/i,Ta=N("Hours",!0),Sa={calendar:xr,longDateFormat:Dr,invalidDate:Tr,ordinal:Sr,ordinalParse:jr,relativeTime:Hr,months:_a,monthsShort:ma,week:ya,weekdays:Ma,weekdaysMin:La,weekdaysShort:ba,meridiemParse:Da},ja={},Ha={},Aa=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ca=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Pa=/Z|[+-]\d\d(?::?\d\d)?/,Oa=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],Ea=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Ia=/^\/?Date\((\-?\d+)/i;e.createFromInputFallback=Y("value provided is not in a recognized ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),e.ISO_8601=function(){};var Fa=Y("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Me.apply(null,arguments);return this.isValid()&&t.isValid()?tthis?this:t:p()}),Ra=function(){return Date.now?Date.now():+new Date};De("Z",":"),De("ZZ",""),Q("Z",Xr),Q("ZZ",Xr),rt(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=Te(Xr,t)});var za=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var Na=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Va=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;Ne.fn=we.prototype;var $a=Ue(1,"add"),Ba=Ue(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Ua=Y("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});q(0,["gg",2],0,function(){return this.weekYear()%100}),q(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Tn("gggg","weekYear"),Tn("ggggg","weekYear"),Tn("GGGG","isoWeekYear"),Tn("GGGGG","isoWeekYear"),I("weekYear","gg"),I("isoWeekYear","GG"),R("weekYear",1),R("isoWeekYear",1),Q("G",Kr),Q("g",Kr),Q("GG",Vr,Wr),Q("gg",Vr,Wr),Q("GGGG",Jr,zr),Q("gggg",Jr,zr),Q("GGGGG",qr,Nr),Q("ggggg",qr,Nr),at(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,r){e[r.substr(0,2)]=L(t)}),at(["gg","GG"],function(t,n,r,a){n[a]=e.parseTwoDigitYear(t)}),q("Q",0,"Qo","quarter"),I("quarter","Q"),R("quarter",7),Q("Q",Fr),rt("Q",function(t,e){e[aa]=3*(L(t)-1)}),q("D",["DD",2],"Do","date"),I("date","D"),R("date",9),Q("D",Vr),Q("DD",Vr,Wr),Q("Do",function(t,e){return t?e._ordinalParse:e._ordinalParseLenient}),rt(["D","DD"],ia),rt("Do",function(t,e){e[ia]=L(t.match(Vr)[0],10)});var Ja=N("Date",!0);q("DDD",["DDDD",3],"DDDo","dayOfYear"),I("dayOfYear","DDD"),R("dayOfYear",4),Q("DDD",Ur),Q("DDDD",Rr),rt(["DDD","DDDD"],function(t,e,n){n._dayOfYear=L(t)}),q("m",["mm",2],0,"minute"),I("minute","m"),R("minute",14),Q("m",Vr),Q("mm",Vr,Wr),rt(["m","mm"],sa);var qa=N("Minutes",!1);q("s",["ss",2],0,"second"),I("second","s"),R("second",15),Q("s",Vr),Q("ss",Vr,Wr),rt(["s","ss"],ua);var Ga=N("Seconds",!1);q("S",0,0,function(){return~~(this.millisecond()/100)}),q(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),q(0,["SSS",3],0,"millisecond"),q(0,["SSSS",4],0,function(){return 10*this.millisecond()}),q(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),q(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),q(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),q(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),q(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),I("millisecond","ms"),R("millisecond",16),Q("S",Ur,Fr),Q("SS",Ur,Wr),Q("SSS",Ur,Rr);var Ka;for(Ka="SSSS";Ka.length<=9;Ka+="S")Q(Ka,Gr);for(Ka="S";Ka.length<=9;Ka+="S")rt(Ka,In);var Za=N("Milliseconds",!1);q("z",0,0,"zoneAbbr"),q("zz",0,0,"zoneName");var Xa=y.prototype;Xa.add=$a,Xa.calendar=Ge,Xa.clone=Ke,Xa.diff=rn,Xa.endOf=gn,Xa.format=ln,Xa.from=dn,Xa.fromNow=cn,Xa.to=fn,Xa.toNow=hn,Xa.get=B,Xa.invalidAt=xn,Xa.isAfter=Ze,Xa.isBefore=Xe,Xa.isBetween=Qe,Xa.isSame=tn,Xa.isSameOrAfter=en,Xa.isSameOrBefore=nn,Xa.isValid=wn,Xa.lang=Ua,Xa.locale=_n,Xa.localeData=mn,Xa.max=Wa,Xa.min=Fa,Xa.parsingFlags=Yn,Xa.set=U,Xa.startOf=pn,Xa.subtract=Ba,Xa.toArray=bn,Xa.toObject=Ln,Xa.toDate=Mn,Xa.toISOString=sn,Xa.inspect=un,Xa.toJSON=kn,Xa.toString=on,Xa.unix=yn,Xa.valueOf=vn,Xa.creationData=Dn,Xa.year=va,Xa.isLeapYear=yt,Xa.weekYear=Sn,Xa.isoWeekYear=jn,Xa.quarter=Xa.quarters=On,Xa.month=ft,Xa.daysInMonth=ht,Xa.week=Xa.weeks=St,Xa.isoWeek=Xa.isoWeeks=jt,Xa.weeksInYear=An,Xa.isoWeeksInYear=Hn,Xa.date=Ja,Xa.day=Xa.days=Ft,Xa.weekday=Wt,Xa.isoWeekday=Rt,Xa.dayOfYear=En,Xa.hour=Xa.hours=Ta,Xa.minute=Xa.minutes=qa,Xa.second=Xa.seconds=Ga,Xa.millisecond=Xa.milliseconds=Za,Xa.utcOffset=He,Xa.utc=Ce,Xa.local=Pe,Xa.parseZone=Oe,Xa.hasAlignedHourOffset=Ee,Xa.isDST=Ie,Xa.isLocal=We,Xa.isUtcOffset=Re,Xa.isUtc=ze,Xa.isUTC=ze,Xa.zoneAbbr=Fn,Xa.zoneName=Wn,Xa.dates=Y("dates accessor is deprecated. Use date instead.",Ja),Xa.months=Y("months accessor is deprecated. Use month instead",ft),Xa.years=Y("years accessor is deprecated. Use year instead",va),Xa.zone=Y("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Ae),Xa.isDSTShifted=Y("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Fe);var Qa=j.prototype;Qa.calendar=H,Qa.longDateFormat=A,Qa.invalidDate=C,Qa.ordinal=P,Qa.preparse=Nn,Qa.postformat=Nn,Qa.relativeTime=O,Qa.pastFuture=E,Qa.set=T,Qa.months=st,Qa.monthsShort=ut,Qa.monthsParse=dt,Qa.monthsRegex=mt,Qa.monthsShortRegex=_t,Qa.week=xt,Qa.firstDayOfYear=Tt,Qa.firstDayOfWeek=Dt,Qa.weekdays=Ct,Qa.weekdaysMin=Ot,Qa.weekdaysShort=Pt,Qa.weekdaysParse=It,Qa.weekdaysRegex=zt,Qa.weekdaysShortRegex=Nt,Qa.weekdaysMinRegex=Vt,Qa.isPM=Gt,Qa.meridiem=Kt,te("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=1===L(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n}}),e.lang=Y("moment.lang is deprecated. Use moment.locale instead.",te),e.langData=Y("moment.langData is deprecated. Use moment.localeData instead.",re);var ti=Math.abs,ei=sr("ms"),ni=sr("s"),ri=sr("m"),ai=sr("h"),ii=sr("d"),oi=sr("w"),si=sr("M"),ui=sr("y"),li=lr("milliseconds"),di=lr("seconds"),ci=lr("minutes"),fi=lr("hours"),hi=lr("days"),_i=lr("months"),mi=lr("years"),pi=Math.round,gi={s:45,m:45,h:22,d:26,M:11},vi=Math.abs,yi=we.prototype;return yi.abs=Zn,yi.add=Qn,yi.subtract=tr,yi.as=ir,yi.asMilliseconds=ei,yi.asSeconds=ni,yi.asMinutes=ri,yi.asHours=ai,yi.asDays=ii,yi.asWeeks=oi,yi.asMonths=si,yi.asYears=ui,yi.valueOf=or,yi._bubble=nr,yi.get=ur,yi.milliseconds=li,yi.seconds=di,yi.minutes=ci,yi.hours=fi,yi.days=hi,yi.weeks=dr,yi.months=_i,yi.years=mi,yi.humanize=mr,yi.toISOString=pr,yi.toString=pr,yi.toJSON=pr,yi.locale=_n,yi.localeData=mn,yi.toIsoString=Y("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",pr),yi.lang=Ua,q("X",0,0,"unix"),q("x",0,0,"valueOf"),Q("x",Kr),Q("X",Qr),rt("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),rt("x",function(t,e,n){n._d=new Date(L(t))}),e.version="2.17.1",r(Me),e.fn=Xa,e.min=Le,e.max=ke,e.now=Ra,e.utc=f,e.unix=Rn,e.months=Un,e.isDate=u,e.locale=te,e.invalid=p,e.duration=Ne,e.isMoment=M,e.weekdays=qn,e.parseZone=zn,e.localeData=re,e.isDuration=Ye,e.monthsShort=Jn,e.weekdaysMin=Kn,e.defineLocale=ee,e.updateLocale=ne,e.locales=ae,e.weekdaysShort=Gn,e.normalizeUnits=F,e.relativeTimeRounding=hr,e.relativeTimeThreshold=_r,e.calendarFormat=qe,e.prototype=Xa,e})}).call(e,n(132)(t))},,function(t,e,n){/**
+ * vuex v2.1.2
+ * (c) 2017 Evan You
+ * @license MIT
+ */
+!function(e,n){t.exports=n()}(this,function(){"use strict";function t(t){b&&(t._devtoolHook=b,b.emit("vuex:init",t),b.on("vuex:travel-to-state",function(e){t.replaceState(e)}),t.subscribe(function(t,e){b.emit("vuex:mutation",t,e)}))}function e(t){return Array.isArray(t)?t.map(function(t){return{key:t,val:t}}):Object.keys(t).map(function(e){return{key:e,val:t[e]}})}function n(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function r(t,e,n){var r=t._modulesNamespaceMap[n];return r}function a(t,e){Object.keys(t).forEach(function(n){return e(t[n],n)})}function i(t){return null!==t&&"object"==typeof t}function o(t){return t&&"function"==typeof t.then}function s(t,e){if(!t)throw new Error("[vuex] "+e)}function u(t,e){if(t.update(e),e.modules)for(var n in e.modules){if(!t.getChild(n))return;u(t.getChild(n),e.modules[n])}}function l(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;c(t,n,[],t._modules.root,!0),d(t,n,e)}function d(t,e,n){var r=t._vm;t.getters={};var i=t._wrappedGetters,o={};a(i,function(e,n){o[n]=function(){return e(t)},Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})});var s=j.config.silent;j.config.silent=!0,t._vm=new j({data:{state:e},computed:o}),j.config.silent=s,t.strict&&g(t),r&&(n&&t._withCommit(function(){r.state=null}),j.nextTick(function(){return r.$destroy()}))}function c(t,e,n,r,a){var i=!n.length,o=t._modules.getNamespace(n);if(o&&(t._modulesNamespaceMap[o]=r),!i&&!a){var s=v(e,n.slice(0,-1)),u=n[n.length-1];t._withCommit(function(){j.set(s,u,r.state)})}var l=r.context=f(t,o,n);r.forEachMutation(function(e,n){var r=o+n;_(t,r,e,l)}),r.forEachAction(function(e,n){var r=o+n;m(t,r,e,l)}),r.forEachGetter(function(e,n){var r=o+n;p(t,r,e,l)}),r.forEachChild(function(r,i){c(t,e,n.concat(i),r,a)})}function f(t,e,n){var r=""===e,a={dispatch:r?t.dispatch:function(n,r,a){var i=y(n,r,a),o=i.payload,s=i.options,u=i.type;if(s&&s.root||(u=e+u,t._actions[u]))return t.dispatch(u,o)},commit:r?t.commit:function(n,r,a){var i=y(n,r,a),o=i.payload,s=i.options,u=i.type;(s&&s.root||(u=e+u,t._mutations[u]))&&t.commit(u,o,s)}};return Object.defineProperties(a,{getters:{get:r?function(){return t.getters}:function(){return h(t,e)}},state:{get:function(){return v(t.state,n)}}}),a}function h(t,e){var n={},r=e.length;return Object.keys(t.getters).forEach(function(a){if(a.slice(0,r)===e){var i=a.slice(r);Object.defineProperty(n,i,{get:function(){return t.getters[a]},enumerable:!0})}}),n}function _(t,e,n,r){var a=t._mutations[e]||(t._mutations[e]=[]);a.push(function(t){n(r.state,t)})}function m(t,e,n,r){var a=t._actions[e]||(t._actions[e]=[]);a.push(function(e,a){var i=n({dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:t.getters,rootState:t.state},e,a);return o(i)||(i=Promise.resolve(i)),t._devtoolHook?i.catch(function(e){throw t._devtoolHook.emit("vuex:error",e),e}):i})}function p(t,e,n,r){t._wrappedGetters[e]||(t._wrappedGetters[e]=function(t){return n(r.state,r.getters,t.state,t.getters)})}function g(t){t._vm.$watch("state",function(){s(t._committing,"Do not mutate vuex store state outside mutation handlers.")},{deep:!0,sync:!0})}function v(t,e){return e.length?e.reduce(function(t,e){return t[e]},t):t}function y(t,e,n){return i(t)&&t.type&&(n=e,e=t,t=t.type),s("string"==typeof t,"Expects string as the type, but found "+typeof t+"."),{type:t,payload:e,options:n}}function M(t){j||(j=t,L(j))}var b="undefined"!=typeof window&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,L=function(t){function e(){var t=this.$options;t.store?this.$store=t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}var n=Number(t.version.split(".")[0]);if(n>=2){var r=t.config._lifecycleHooks.indexOf("init")>-1;t.mixin(r?{init:e}:{beforeCreate:e})}else{var a=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[e].concat(t.init):e,a.call(this,t)}}},k=n(function(t,n){var a={};return e(n).forEach(function(e){var n=e.key,i=e.val;a[n]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var a=r(this.$store,"mapState",t);if(!a)return;e=a.context.state,n=a.context.getters}return"function"==typeof i?i.call(this,e,n):e[i]}}),a}),w=n(function(t,n){var a={};return e(n).forEach(function(e){var n=e.key,i=e.val;i=t+i,a[n]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];if(!t||r(this.$store,"mapMutations",t))return this.$store.commit.apply(this.$store,[i].concat(e))}}),a}),Y=n(function(t,n){var a={};return e(n).forEach(function(e){var n=e.key,i=e.val;i=t+i,a[n]=function(){if((!t||r(this.$store,"mapGetters",t))&&i in this.$store.getters)return this.$store.getters[i]}}),a}),x=n(function(t,n){var a={};return e(n).forEach(function(e){var n=e.key,i=e.val;i=t+i,a[n]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];if(!t||r(this.$store,"mapActions",t))return this.$store.dispatch.apply(this.$store,[i].concat(e))}}),a}),D=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t},T={state:{},namespaced:{}};T.state.get=function(){return this._rawModule.state||{}},T.namespaced.get=function(){return!!this._rawModule.namespaced},D.prototype.addChild=function(t,e){this._children[t]=e},D.prototype.removeChild=function(t){delete this._children[t]},D.prototype.getChild=function(t){return this._children[t]},D.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},D.prototype.forEachChild=function(t){a(this._children,t)},D.prototype.forEachGetter=function(t){this._rawModule.getters&&a(this._rawModule.getters,t)},D.prototype.forEachAction=function(t){this._rawModule.actions&&a(this._rawModule.actions,t)},D.prototype.forEachMutation=function(t){this._rawModule.mutations&&a(this._rawModule.mutations,t)},Object.defineProperties(D.prototype,T);var S=function(t){var e=this;this.root=new D(t,!1),t.modules&&a(t.modules,function(t,n){e.register([n],t,!1)})};S.prototype.get=function(t){return t.reduce(function(t,e){return t.getChild(e)},this.root)},S.prototype.getNamespace=function(t){var e=this.root;return t.reduce(function(t,n){return e=e.getChild(n),t+(e.namespaced?n+"/":"")},"")},S.prototype.update=function(t){u(this.root,t)},S.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=this.get(t.slice(0,-1)),o=new D(e,n);i.addChild(t[t.length-1],o),e.modules&&a(e.modules,function(e,a){r.register(t.concat(a),e,n)})},S.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];e.getChild(n).runtime&&e.removeChild(n)};var j,H=function(e){var n=this;void 0===e&&(e={}),s(j,"must call Vue.use(Vuex) before creating a store instance."),s("undefined"!=typeof Promise,"vuex requires a Promise polyfill in this browser.");var r=e.state;void 0===r&&(r={});var a=e.plugins;void 0===a&&(a=[]);var i=e.strict;void 0===i&&(i=!1),this._committing=!1,this._actions=Object.create(null),this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new S(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new j;var o=this,u=this,l=u.dispatch,f=u.commit;this.dispatch=function(t,e){return l.call(o,t,e)},this.commit=function(t,e,n){return f.call(o,t,e,n)},this.strict=i,c(this,r,[],this._modules.root),d(this,r),a.concat(t).forEach(function(t){return t(n)})},A={state:{}};A.state.get=function(){return this._vm.$data.state},A.state.set=function(t){s(!1,"Use store.replaceState() to explicit replace store state.")},H.prototype.commit=function(t,e,n){var r=this,a=y(t,e,n),i=a.type,o=a.payload,s=a.options,u={type:i,payload:o},l=this._mutations[i];l&&(this._withCommit(function(){l.forEach(function(t){t(o)})}),this._subscribers.forEach(function(t){return t(u,r.state)}),s&&s.silent)},H.prototype.dispatch=function(t,e){var n=y(t,e),r=n.type,a=n.payload,i=this._actions[r];if(i)return i.length>1?Promise.all(i.map(function(t){return t(a)})):i[0](a)},H.prototype.subscribe=function(t){var e=this._subscribers;return e.indexOf(t)<0&&e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}},H.prototype.watch=function(t,e,n){var r=this;return s("function"==typeof t,"store.watch only accepts a function."),this._watcherVM.$watch(function(){return t(r.state,r.getters)},e,n)},H.prototype.replaceState=function(t){var e=this;this._withCommit(function(){e._vm.state=t})},H.prototype.registerModule=function(t,e){"string"==typeof t&&(t=[t]),s(Array.isArray(t),"module path must be a string or an Array."),this._modules.register(t,e),c(this,this.state,t,this._modules.get(t)),d(this,this.state)},H.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),s(Array.isArray(t),"module path must be a string or an Array."),this._modules.unregister(t),this._withCommit(function(){var n=v(e.state,t.slice(0,-1));j.delete(n,t[t.length-1])}),l(this)},H.prototype.hotUpdate=function(t){this._modules.update(t),l(this,!0)},H.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(H.prototype,A),"undefined"!=typeof window&&window.Vue&&M(window.Vue);var C={Store:H,install:M,version:"2.1.2",mapState:k,mapMutations:w,mapGetters:Y,mapActions:x};return C})},function(t,e,n){"use strict";function r(t){return"[object Array]"===k.call(t)}function a(t){return"[object ArrayBuffer]"===k.call(t)}function i(t){return"undefined"!=typeof FormData&&t instanceof FormData}function o(t){var e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer}function s(t){return"string"==typeof t}function u(t){return"number"==typeof t}function l(t){return"undefined"==typeof t}function d(t){return null!==t&&"object"==typeof t}function c(t){return"[object Date]"===k.call(t)}function f(t){return"[object File]"===k.call(t)}function h(t){return"[object Blob]"===k.call(t)}function _(t){return"[object Function]"===k.call(t)}function m(t){return d(t)&&_(t.pipe)}function p(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams}function g(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function v(){return"undefined"!=typeof window&&"undefined"!=typeof document&&"function"==typeof document.createElement}function y(t,e){if(null!==t&&"undefined"!=typeof t)if("object"==typeof t||r(t)||(t=[t]),r(t))for(var n=0,a=t.length;nt.end||a.isSame(t.end)&&!n):r<=t&&(a>t||a.isSame(t)&&!n)},e.prototype.overlaps=function(t){return null!==this.intersect(t)},e.prototype.intersect=function(t){var n=this.start,r=this.end;return n<=t.start&&t.start-1)return t.splice(n,1)}}function o(t,e){return oa.call(t,e)}function s(t){return"string"==typeof t||"number"==typeof t}function u(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}function l(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function d(t,e){e=e||0;for(var n=t.length-e,r=new Array(n);n--;)r[n]=t[n+e];return r}function c(t,e){for(var n in e)t[n]=e[n];return t}function f(t){return null!==t&&"object"==typeof t}function h(t){return fa.call(t)===ha}function _(t){for(var e={},n=0;n1?d(n):n;for(var r=d(arguments,1),a=0,i=n.length;a=0&&Xa[n].id>t.id;)n--;Xa.splice(Math.max(n,ni)+1,0,t)}else Xa.push(t);ti||(ti=!0,Ta(xt))}}function Tt(t){ii.clear(),St(t,ii)}function St(t,e){var n,r,a=Array.isArray(t);if((a||f(t))&&Object.isExtensible(t)){if(t.__ob__){var i=t.__ob__.dep.id;if(e.has(i))return;e.add(i)}if(a)for(n=t.length;n--;)St(t[n],e);else for(r=Object.keys(t),n=r.length;n--;)St(t[r[n]],e)}}function jt(t){t._watchers=[];var e=t.$options;e.props&&Ht(t,e.props),e.methods&&Ot(t,e.methods),e.data?At(t):D(t._data={},!0),e.computed&&Ct(t,e.computed),e.watch&&Et(t,e.watch)}function Ht(t,e){var n=t.$options.propsData||{},r=t.$options._propKeys=Object.keys(e),a=!t.$parent;Ia.shouldConvert=a;for(var i=function(a){var i=r[a];T(t,i,W(i,e,n,t))},o=0;o-1:t.test(e)}function Kt(t,e){for(var n in t){var r=t[n];if(r){var a=qt(r.componentOptions);a&&!e(a)&&(Zt(r),t[n]=null)}}}function Zt(t){t&&(t.componentInstance._inactive||wt(t.componentInstance,"deactivated"),t.componentInstance.$destroy())}function Xt(t){var e={};e.get=function(){return pa},Object.defineProperty(t,"config",e),t.util=za,t.set=S,t.delete=j,t.nextTick=Ta,t.options=Object.create(null),pa._assetTypes.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,c(t.options.components,di),$t(t),Bt(t),Ut(t),Jt(t)}function Qt(t){for(var e=t.data,n=t,r=t;r.componentInstance;)r=r.componentInstance._vnode,r.data&&(e=te(r.data,e));for(;n=n.parent;)n.data&&(e=te(e,n.data));return ee(e)}function te(t,e){return{staticClass:ne(t.staticClass,e.staticClass),class:t.class?[t.class,e.class]:e.class}}function ee(t){var e=t.class,n=t.staticClass;return n||e?ne(n,re(e)):""}function ne(t,e){return t?e?t+" "+e:t:e||""}function re(t){var e="";if(!t)return e;if("string"==typeof t)return t;if(Array.isArray(t)){for(var n,r=0,a=t.length;r-1?xi[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:xi[t]=/HTMLUnknownElement/.test(e.toString())}function oe(t){if("string"==typeof t){if(t=document.querySelector(t),!t)return document.createElement("div")}return t}function se(t,e){var n=document.createElement(t);return"select"!==t?n:(e.data&&e.data.attrs&&"multiple"in e.data.attrs&&n.setAttribute("multiple","multiple"),n)}function ue(t,e){return document.createElementNS(bi[t],e)}function le(t){return document.createTextNode(t)}function de(t){return document.createComment(t)}function ce(t,e,n){t.insertBefore(e,n)}function fe(t,e){t.removeChild(e)}function he(t,e){t.appendChild(e)}function _e(t){return t.parentNode}function me(t){return t.nextSibling}function pe(t){return t.tagName}function ge(t,e){t.textContent=e}function ve(t,e,n){t.setAttribute(e,n)}function ye(t,e){var n=t.data.ref;if(n){var r=t.context,a=t.componentInstance||t.elm,o=r.$refs;e?Array.isArray(o[n])?i(o[n],a):o[n]===a&&(o[n]=void 0):t.data.refInFor?Array.isArray(o[n])&&o[n].indexOf(a)<0?o[n].push(a):o[n]=[a]:o[n]=a}}function Me(t){return null==t}function be(t){return null!=t}function Le(t,e){return t.key===e.key&&t.tag===e.tag&&t.isComment===e.isComment&&!t.data==!e.data}function ke(t,e,n){var r,a,i={};for(r=e;r<=n;++r)a=t[r].key,be(a)&&(i[a]=r);return i}function we(t){function e(t){return new Na(D.tagName(t).toLowerCase(),{},[],void 0,t)}function n(t,e){function n(){0===--n.listeners&&r(t)}return n.listeners=e,n}function r(t){var e=D.parentNode(t);e&&D.removeChild(e,t)}function i(t,e,n,r,a){if(t.isRootInsert=!a,!o(t,e,n,r)){var i=t.data,s=t.children,u=t.tag;be(u)?(t.elm=t.ns?D.createElementNS(t.ns,u):D.createElement(u,t),_(t),c(t,s,e),be(i)&&h(t,e),d(n,t.elm,r)):t.isComment?(t.elm=D.createComment(t.text),d(n,t.elm,r)):(t.elm=D.createTextNode(t.text),d(n,t.elm,r))}}function o(t,e,n,r){var a=t.data;if(be(a)){var i=be(t.componentInstance)&&a.keepAlive;if(be(a=a.hook)&&be(a=a.init)&&a(t,!1,n,r),be(t.componentInstance))return u(t,e),i&&l(t,e,n,r),!0}}function u(t,e){t.data.pendingInsert&&e.push.apply(e,t.data.pendingInsert),t.elm=t.componentInstance.$el,f(t)?(h(t,e),_(t)):(ye(t),e.push(t))}function l(t,e,n,r){for(var a,i=t;i.componentInstance;)if(i=i.componentInstance._vnode,be(a=i.data)&&be(a=a.transition)){for(a=0;af?(l=Me(n[p+1])?null:n[p+1].elm,m(t,l,n,c,p,r)):c>p&&g(t,e,d,f)}function M(t,e,n,r){if(t!==e){if(e.isStatic&&t.isStatic&&e.key===t.key&&(e.isCloned||e.isOnce))return e.elm=t.elm,void(e.componentInstance=t.componentInstance);var a,i=e.data,o=be(i);o&&be(a=i.hook)&&be(a=a.prepatch)&&a(t,e);var s=e.elm=t.elm,u=t.children,l=e.children;if(o&&f(e)){for(a=0;a-1?e.split(/\s+/).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+t.getAttribute("class")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function Be(t,e){if(e&&e.trim())if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e);else{for(var n=" "+t.getAttribute("class")+" ",r=" "+e+" ";n.indexOf(r)>=0;)n=n.replace(r," ");t.setAttribute("class",n.trim())}}function Ue(t){Xi(function(){Xi(t)})}function Je(t,e){(t._transitionClasses||(t._transitionClasses=[])).push(e),$e(t,e)}function qe(t,e){t._transitionClasses&&i(t._transitionClasses,e),Be(t,e)}function Ge(t,e,n){var r=Ke(t,e),a=r.type,i=r.timeout,o=r.propCount;if(!a)return n();var s=a===Ui?Gi:Zi,u=0,l=function(){t.removeEventListener(s,d),n()},d=function(e){e.target===t&&++u>=o&&l()};setTimeout(function(){u0&&(n=Ui,d=o,c=i.length):e===Ji?l>0&&(n=Ji,d=l,c=u.length):(d=Math.max(o,l),n=d>0?o>l?Ui:Ji:null,c=n?n===Ui?i.length:u.length:0);var f=n===Ui&&Qi.test(r[qi+"Property"]);return{type:n,timeout:d,propCount:c,hasTransform:f}}function Ze(t,e){for(;t.length1,A=n._enterCb=nn(function(){j&&(qe(n,Y),qe(n,w)),A.cancelled?(j&&qe(n,k),S&&S(n)):T&&T(n),n._enterCb=null});t.data.show||at(t.data.hook||(t.data.hook={}),"insert",function(){var e=n.parentNode,r=e&&e._pending&&e._pending[t.key];r&&r.tag===t.tag&&r.elm._leaveCb&&r.elm._leaveCb(),D&&D(n,A)},"transition-insert"),x&&x(n),j&&(Je(n,k),Je(n,w),Ue(function(){Je(n,Y),qe(n,k),A.cancelled||H||Ge(n,i,A)})),t.data.show&&(e&&e(),D&&D(n,A)),j||H||A()}}}function tn(t,e){function n(){g.cancelled||(t.data.show||((r.parentNode._pending||(r.parentNode._pending={}))[t.key]=t),d&&d(r),m&&(Je(r,s),Je(r,l),Ue(function(){Je(r,u),qe(r,s),g.cancelled||p||Ge(r,o,g)})),c&&c(r,g),m||p||g())}var r=t.elm;r._enterCb&&(r._enterCb.cancelled=!0,r._enterCb());var a=en(t.data.transition);if(!a)return e();if(!r._leaveCb&&1===r.nodeType){var i=a.css,o=a.type,s=a.leaveClass,u=a.leaveToClass,l=a.leaveActiveClass,d=a.beforeLeave,c=a.leave,f=a.afterLeave,h=a.leaveCancelled,_=a.delayLeave,m=i!==!1&&!La,p=c&&(c._length||c.length)>1,g=r._leaveCb=nn(function(){r.parentNode&&r.parentNode._pending&&(r.parentNode._pending[t.key]=null),m&&(qe(r,u),qe(r,l)),g.cancelled?(m&&qe(r,s),h&&h(r)):(e(),f&&f(r)),r._leaveCb=null});_?_(n):n()}}function en(t){if(t){if("object"==typeof t){var e={};return t.css!==!1&&c(e,to(t.name||"v")),c(e,t),e}return"string"==typeof t?to(t):void 0}}function nn(t){var e=!1;return function(){e||(e=!0,t())}}function rn(t,e){e.data.show||Qe(e)}function an(t,e,n){var r=e.value,a=t.multiple;if(!a||Array.isArray(r)){for(var i,o,s=0,u=t.options.length;s-1,o.selected!==i&&(o.selected=i);else if(g(sn(o),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));a||(t.selectedIndex=-1)}}function on(t,e){for(var n=0,r=e.length;n',n.innerHTML.indexOf(e)>0}function bn(t){return _o=_o||document.createElement("div"),_o.innerHTML=t,_o.textContent}function Ln(t,e){return e&&(t=t.replace(ss,"\n")),t.replace(is,"<").replace(os,">").replace(us,"&").replace(ls,'"')}function kn(t,e){function n(e){c+=e,t=t.substring(e)}function r(){var e=t.match(Yo);if(e){var r={tagName:e[1],attrs:[],start:c};n(e[0].length);for(var a,i;!(a=t.match(xo))&&(i=t.match(Lo));)n(i[0].length),r.attrs.push(i);if(a)return r.unarySlash=a[1],n(a[0].length),r.end=c,r}}function a(t){var n=t.tagName,r=t.unarySlash;l&&("p"===s&&vo(n)&&i(s),go(n)&&s===n&&i(n));for(var a=d(n)||"html"===n&&"head"===s||!!r,o=t.attrs.length,c=new Array(o),f=0;f=0&&u[a].lowerCasedTag!==i;a--);else a=0;if(a>=0){for(var o=u.length-1;o>=a;o--)e.end&&e.end(u[o].tag,n,r);u.length=a,s=a&&u[a-1].tag}else"br"===i?e.start&&e.start(t,[],!0,n,r):"p"===i&&(e.start&&e.start(t,[],!1,n,r),e.end&&e.end(t,n,r))}for(var o,s,u=[],l=e.expectHTML,d=e.isUnaryTag||_a,c=0;t;){if(o=t,s&&rs(s)){var f=s.toLowerCase(),h=as[f]||(as[f]=new RegExp("([\\s\\S]*?)("+f+"[^>]*>)","i")),_=0,m=t.replace(h,function(t,n,r){return _=r.length,"script"!==f&&"style"!==f&&"noscript"!==f&&(n=n.replace(//g,"$1").replace(//g,"$1")),e.chars&&e.chars(n),""});c+=t.length-m.length,t=m,i(f,c-_,c)}else{var p=t.indexOf("<");if(0===p){if(So.test(t)){var g=t.indexOf("-->");if(g>=0){n(g+3);continue}}if(jo.test(t)){var v=t.indexOf("]>");if(v>=0){n(v+2);continue}}var y=t.match(To);if(y){n(y[0].length);continue}var M=t.match(Do);if(M){var b=c;n(M[0].length),i(M[1],b,c);continue}var L=r();if(L){a(L);continue}}var k=void 0,w=void 0,Y=void 0;if(p>0){for(w=t.slice(p);!(Do.test(w)||Yo.test(w)||So.test(w)||jo.test(w)||(Y=w.indexOf("<",1),Y<0));)p+=Y,w=t.slice(p);k=t.substring(0,p),n(p)}p<0&&(k=t,t=""),e.chars&&k&&e.chars(k)}if(t===o&&e.chars){e.chars(t);break}}i()}function wn(t){function e(){(o||(o=[])).push(t.slice(_,a).trim()),_=a+1}var n,r,a,i,o,s=!1,u=!1,l=!1,d=!1,c=0,f=0,h=0,_=0;for(a=0;a=0&&(p=t.charAt(m)," "===p);m--);p&&/[\w$]/.test(p)||(d=!0)}}else void 0===i?(_=a+1,i=t.slice(0,a).trim()):e();if(void 0===i?i=t.slice(0,a).trim():0!==_&&e(),o)for(a=0;ao&&i.push(JSON.stringify(t.slice(o,a)));var s=wn(r[1].trim());i.push("_s("+s+")"),o=a+r[0].length}return o=Ao}function Fn(t){return 34===t||39===t}function Wn(t){var e=1;for(Eo=Oo;!In();)if(t=En(),Fn(t))Rn(t);else if(91===t&&e++,93===t&&e--,0===e){Io=Oo;break}}function Rn(t){for(var e=t;!In()&&(t=En(),t!==e););}function zn(t,e){Fo=e.warn||Dn,Wo=e.getTagNamespace||_a,Ro=e.mustUseProp||_a,zo=e.isPreTag||_a,No=Tn(e.modules,"preTransformNode"),Vo=Tn(e.modules,"transformNode"),$o=Tn(e.modules,"postTransformNode"),Bo=e.delimiters;var n,r,a=[],i=e.preserveWhitespace!==!1,o=!1,s=!1;return kn(t,{expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,shouldDecodeNewlines:e.shouldDecodeNewlines,start:function(t,i,u){function l(t){}var d=r&&r.ns||Wo(t);ba&&"svg"===d&&(i=ir(i));var c={type:1,tag:t,attrsList:i,attrsMap:rr(i),parent:r,children:[]};d&&(c.ns=d),ar(c)&&!xa()&&(c.forbidden=!0);for(var f=0;f-1"+("true"===i?":("+e+")":":_q("+e+","+i+")")),An(t,"click","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+i+"):("+o+");if(Array.isArray($$a)){var $$v="+(r?"_n("+a+")":a)+",$$i=_i($$a,$$v);if($$c){$$i<0&&("+e+"=$$a.concat($$v))}else{$$i>-1&&("+e+"=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{"+e+"=$$c}",null,!0)}function Jr(t,e,n){var r=n&&n.number,a=Cn(t,"value")||"null";a=r?"_n("+a+")":a,Sn(t,"checked","_q("+e+","+a+")"),An(t,"click",Kr(e,a),null,!0)}function qr(t,e,n){var r=t.attrsMap.type,a=n||{},i=a.lazy,o=a.number,s=a.trim,u=i||ba&&"range"===r?"change":"input",l=!i&&"range"!==r,d="input"===t.tag||"textarea"===t.tag,c=d?"$event.target.value"+(s?".trim()":""):s?"(typeof $event === 'string' ? $event.trim() : $event)":"$event";c=o||"number"===r?"_n("+c+")":c;var f=Kr(e,c);d&&l&&(f="if($event.target.composing)return;"+f),Sn(t,"value",d?"_s("+e+")":"("+e+")"),An(t,u,f,null,!0),(s||o||"number"===r)&&An(t,"blur","$forceUpdate()")}function Gr(t,e,n){var r=n&&n.number,a='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(r?"_n(val)":"val")+"})"+(null==t.attrsMap.multiple?"[0]":""),i=Kr(e,a);An(t,"change",i,null,!0)}function Kr(t,e){var n=On(t);return null===n.idx?t+"="+e:"var $$exp = "+n.exp+", $$idx = "+n.idx+";if (!Array.isArray($$exp)){"+t+"="+e+"}else{$$exp.splice($$idx, 1, "+e+")}"}function Zr(t,e){e.value&&Sn(t,"textContent","_s("+e.value+")")}function Xr(t,e){e.value&&Sn(t,"innerHTML","_s("+e.value+")")}function Qr(t,e){return e=e?c(c({},Ps),e):Ps,Rr(t,e)}function ta(t,e,n){var r=(e&&e.warn||ja,e&&e.delimiters?String(e.delimiters)+t:t);if(Cs[r])return Cs[r];var a={},i=Qr(t,e);a.render=ea(i.render);var o=i.staticRenderFns.length;a.staticRenderFns=new Array(o);for(var s=0;s0,ka=Ma&&Ma.indexOf("edge/")>0,wa=Ma&&Ma.indexOf("android")>0,Ya=Ma&&/iphone|ipad|ipod|ios/.test(Ma),xa=function(){return void 0===ra&&(ra=!ya&&"undefined"!=typeof e&&"server"===e.process.env.VUE_ENV),ra},Da=ya&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,Ta=function(){function t(){r=!1;var t=n.slice(0);n.length=0;for(var e=0;e1&&(e[n[0].trim()]=n[1].trim())}}),e}),Wi=/^--/,Ri=/\s*!important$/,zi=function(t,e,n){Wi.test(e)?t.style.setProperty(e,n):Ri.test(n)?t.style.setProperty(e,n.replace(Ri,""),"important"):t.style[Vi(e)]=n},Ni=["Webkit","Moz","ms"],Vi=u(function(t){if(fi=fi||document.createElement("div"),t=ua(t),"filter"!==t&&t in fi.style)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n\/=]+)/,Mo=/(?:=)/,bo=[/"([^"]*)"+/.source,/'([^']*)'+/.source,/([^\s"'=<>`]+)/.source],Lo=new RegExp("^\\s*"+yo.source+"(?:\\s*("+Mo.source+")\\s*(?:"+bo.join("|")+"))?"),ko="[a-zA-Z_][\\w\\-\\.]*",wo="((?:"+ko+"\\:)?"+ko+")",Yo=new RegExp("^<"+wo),xo=/^\s*(\/?)>/,Do=new RegExp("^<\\/"+wo+"[^>]*>"),To=/^]+>/i,So=/^
-
+
-
+
+
+