aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJohannes Zellner <johannes@nebulon.de>2016-03-01 14:11:23 +0100
committerJohannes Zellner <johannes@nebulon.de>2016-03-01 14:11:23 +0100
commit6eb72d64efc4a22aeb6cd5f52d1e4508ffed137f (patch)
treea5f9f3e370082fe58e5a6d736712b2684fde344b
parent0fd8904c881ce9de7fc4737989f0c1e820987f59 (diff)
downloadSurfer-6eb72d64efc4a22aeb6cd5f52d1e4508ffed137f.tar.gz
Surfer-6eb72d64efc4a22aeb6cd5f52d1e4508ffed137f.tar.zst
Surfer-6eb72d64efc4a22aeb6cd5f52d1e4508ffed137f.zip
Add basic admin ui
-rw-r--r--app/css/style.css6
-rw-r--r--app/index.html102
-rw-r--r--app/js/app.js56
-rw-r--r--app/js/superagent.js1383
-rw-r--r--app/js/vue.min.js8
5 files changed, 1541 insertions, 14 deletions
diff --git a/app/css/style.css b/app/css/style.css
index e2e34d7..c75e038 100644
--- a/app/css/style.css
+++ b/app/css/style.css
@@ -24,4 +24,8 @@ pre {
24 margin: auto; 24 margin: auto;
25 text-align: left; 25 text-align: left;
26 width: 400px; 26 width: 400px;
27} \ No newline at end of file 27}
28
29[v-cloak] {
30 display: none;
31}
diff --git a/app/index.html b/app/index.html
index 8fb473d..5807724 100644
--- a/app/index.html
+++ b/app/index.html
@@ -5,21 +5,97 @@
5 <link rel="stylesheet" href="/admin/css/bootstrap.min.css"> 5 <link rel="stylesheet" href="/admin/css/bootstrap.min.css">
6 <link rel="stylesheet" href="/admin/css/style.css"> 6 <link rel="stylesheet" href="/admin/css/style.css">
7 7
8 <script src="/admin/js/jquery-1.12.1.min.js"></script>
9 <script src="/admin/js/bootstrap.min.js"></script>
10
11</head> 8</head>
12<body> 9<body id="app">
13 10
14<div class="wrapper"> 11 <nav class="navbar navbar-default" v-cloak>
15 <div class="content"> 12 <div class="container-fluid">
16 <h1> Surfer Admin </h1> 13 <!-- Brand and toggle get grouped for better mobile display -->
17 <p> 14 <div class="navbar-header">
18 Upload some files using the commandline tool. 15 <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
19 <button class="btn btn-primary">Foobar</button> 16 <span class="sr-only">Toggle navigation</span>
20 </p> 17 <span class="icon-bar"></span>
18 <span class="icon-bar"></span>
19 <span class="icon-bar"></span>
20 </button>
21 <a class="navbar-brand" href="#">Surfer</a>
22 </div>
23
24 <!-- Collect the nav links, forms, and other content for toggling -->
25 <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
26 <ul class="nav navbar-nav navbar-right">
27 <li v-show="session.valid"><a href="#">Upload</a></li>
28 <li v-show="session.valid"><a href="#" ng-click="logout()">Logout</a></li>
29 </ul>
30 </div>
31 </div>
32 </nav>
33
34 <div class="container" v-show="busy" v-cloak>
35 <div class="row">
36 <div class="col-lg-12">
37 <center>
38 Loading...
39 </center>
40 </div>
41 </div>
21 </div> 42 </div>
22</div> 43
44 <div class="container" v-show="!session.valid && !busy" v-cloak>
45 <div class="row">
46 <div class="col-lg-6 col-lg-offset-3">
47 <form v-on:submit.prevent="login()">
48 <div class="form-group">
49 <label for="inputUsername">Username</label>
50 <input type="text" class="form-control" id="inputUsername" v-model="loginData.username" placeholder="Username">
51 </div>
52 <div class="form-group">
53 <label for="inputPassword">Password</label>
54 <input type="password" class="form-control" id="inputPassword" v-model="loginData.password" placeholder="Password">
55 </div>
56 <button type="submit" class="btn btn-default">Submit</button>
57 </form>
58 </div>
59 </div>
60 </div>
61
62 <div class="container" v-show="session.valid && !busy" v-cloak>
63 <div class="row">
64 <div class="col-lg-12">
65 <ol class="breadcrumb">
66 <li><a href="#">Home</a></li>
67 <li><a href="#">Library</a></li>
68 <li class="active">Data</li>
69 </ol>
70 </div>
71 <div class="col-lg-12">
72 <table class="table table-hover">
73 <thead>
74 <tr>
75 <th>Type</th>
76 <th>Name</th>
77 <th>Size</th>
78 <th>Modified</th>
79 </tr>
80 </thead>
81 <tbody>
82 <tr>
83 <th>Type</th>
84 <th>Name</th>
85 <th>Size</th>
86 <th>Modified</th>
87 </tr>
88 </tbody>
89 </table>
90 </div>
91 </div>
92 </div>
93
94 <script src="/admin/js/jquery-1.12.1.min.js"></script>
95 <script src="/admin/js/bootstrap.min.js"></script>
96 <script src="/admin/js/vue.min.js"></script>
97 <script src="/admin/js/superagent.js"></script>
98 <script src="/admin/js/app.js"></script>
23 99
24</body> 100</body>
25</html> 101</html>
diff --git a/app/js/app.js b/app/js/app.js
new file mode 100644
index 0000000..55153d4
--- /dev/null
+++ b/app/js/app.js
@@ -0,0 +1,56 @@
1(function () {
2'use strict';
3
4function login(username, password) {
5 username = username || app.loginData.username;
6 password = password || app.loginData.password;
7
8 app.busy = true;
9
10 superagent.get('/api/files/').query({ username: username, password: password }).end(function (error, result) {
11 app.busy = false;
12
13 if (error) return console.error(error);
14 if (result.statusCode === 401) return console.error('Invalid credentials');
15
16 app.session.valid = true;
17 app.session.username = username;
18 app.session.password = password;
19
20 // clearly not the best option
21 localStorage.username = username;
22 localStorage.password = password;
23 });
24}
25
26function logout() {
27 app.session.valid = false;
28 app.session.username = username;
29 app.session.password = password;
30
31 delete localStorage.username;
32 delete localStorage.password;
33}
34
35var app = new Vue({
36 el: '#app',
37 data: {
38 busy: true,
39 session: {
40 valid: false
41 },
42 loginData: {
43
44 }
45 },
46 methods: {
47 login: login,
48 logout: logout
49 }
50});
51
52window.app = app;
53
54login(localStorage.username, localStorage.password);
55
56})();
diff --git a/app/js/superagent.js b/app/js/superagent.js
new file mode 100644
index 0000000..140bc4d
--- /dev/null
+++ b/app/js/superagent.js
@@ -0,0 +1,1383 @@
1!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.superagent=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
2
3/**
4 * Expose `Emitter`.
5 */
6
7module.exports = Emitter;
8
9/**
10 * Initialize a new `Emitter`.
11 *
12 * @api public
13 */
14
15function Emitter(obj) {
16 if (obj) return mixin(obj);
17};
18
19/**
20 * Mixin the emitter properties.
21 *
22 * @param {Object} obj
23 * @return {Object}
24 * @api private
25 */
26
27function mixin(obj) {
28 for (var key in Emitter.prototype) {
29 obj[key] = Emitter.prototype[key];
30 }
31 return obj;
32}
33
34/**
35 * Listen on the given `event` with `fn`.
36 *
37 * @param {String} event
38 * @param {Function} fn
39 * @return {Emitter}
40 * @api public
41 */
42
43Emitter.prototype.on =
44Emitter.prototype.addEventListener = function(event, fn){
45 this._callbacks = this._callbacks || {};
46 (this._callbacks['$' + event] = this._callbacks['$' + event] || [])
47 .push(fn);
48 return this;
49};
50
51/**
52 * Adds an `event` listener that will be invoked a single
53 * time then automatically removed.
54 *
55 * @param {String} event
56 * @param {Function} fn
57 * @return {Emitter}
58 * @api public
59 */
60
61Emitter.prototype.once = function(event, fn){
62 function on() {
63 this.off(event, on);
64 fn.apply(this, arguments);
65 }
66
67 on.fn = fn;
68 this.on(event, on);
69 return this;
70};
71
72/**
73 * Remove the given callback for `event` or all
74 * registered callbacks.
75 *
76 * @param {String} event
77 * @param {Function} fn
78 * @return {Emitter}
79 * @api public
80 */
81
82Emitter.prototype.off =
83Emitter.prototype.removeListener =
84Emitter.prototype.removeAllListeners =
85Emitter.prototype.removeEventListener = function(event, fn){
86 this._callbacks = this._callbacks || {};
87
88 // all
89 if (0 == arguments.length) {
90 this._callbacks = {};
91 return this;
92 }
93
94 // specific event
95 var callbacks = this._callbacks['$' + event];
96 if (!callbacks) return this;
97
98 // remove all handlers
99 if (1 == arguments.length) {
100 delete this._callbacks['$' + event];
101 return this;
102 }
103
104 // remove specific handler
105 var cb;
106 for (var i = 0; i < callbacks.length; i++) {
107 cb = callbacks[i];
108 if (cb === fn || cb.fn === fn) {
109 callbacks.splice(i, 1);
110 break;
111 }
112 }
113 return this;
114};
115
116/**
117 * Emit `event` with the given args.
118 *
119 * @param {String} event
120 * @param {Mixed} ...
121 * @return {Emitter}
122 */
123
124Emitter.prototype.emit = function(event){
125 this._callbacks = this._callbacks || {};
126 var args = [].slice.call(arguments, 1)
127 , callbacks = this._callbacks['$' + event];
128
129 if (callbacks) {
130 callbacks = callbacks.slice(0);
131 for (var i = 0, len = callbacks.length; i < len; ++i) {
132 callbacks[i].apply(this, args);
133 }
134 }
135
136 return this;
137};
138
139/**
140 * Return array of callbacks for `event`.
141 *
142 * @param {String} event
143 * @return {Array}
144 * @api public
145 */
146
147Emitter.prototype.listeners = function(event){
148 this._callbacks = this._callbacks || {};
149 return this._callbacks['$' + event] || [];
150};
151
152/**
153 * Check if this emitter has `event` handlers.
154 *
155 * @param {String} event
156 * @return {Boolean}
157 * @api public
158 */
159
160Emitter.prototype.hasListeners = function(event){
161 return !! this.listeners(event).length;
162};
163
164},{}],2:[function(require,module,exports){
165
166/**
167 * Reduce `arr` with `fn`.
168 *
169 * @param {Array} arr
170 * @param {Function} fn
171 * @param {Mixed} initial
172 *
173 * TODO: combatible error handling?
174 */
175
176module.exports = function(arr, fn, initial){
177 var idx = 0;
178 var len = arr.length;
179 var curr = arguments.length == 3
180 ? initial
181 : arr[idx++];
182
183 while (idx < len) {
184 curr = fn.call(null, curr, arr[idx], ++idx, arr);
185 }
186
187 return curr;
188};
189},{}],3:[function(require,module,exports){
190/**
191 * Module dependencies.
192 */
193
194var Emitter = require('emitter');
195var reduce = require('reduce');
196
197/**
198 * Root reference for iframes.
199 */
200
201var root;
202if (typeof window !== 'undefined') { // Browser window
203 root = window;
204} else if (typeof self !== 'undefined') { // Web Worker
205 root = self;
206} else { // Other environments
207 root = this;
208}
209
210/**
211 * Noop.
212 */
213
214function noop(){};
215
216/**
217 * Check if `obj` is a host object,
218 * we don't want to serialize these :)
219 *
220 * TODO: future proof, move to compoent land
221 *
222 * @param {Object} obj
223 * @return {Boolean}
224 * @api private
225 */
226
227function isHost(obj) {
228 var str = {}.toString.call(obj);
229
230 switch (str) {
231 case '[object File]':
232 case '[object Blob]':
233 case '[object FormData]':
234 return true;
235 default:
236 return false;
237 }
238}
239
240/**
241 * Determine XHR.
242 */
243
244request.getXHR = function () {
245 if (root.XMLHttpRequest
246 && (!root.location || 'file:' != root.location.protocol
247 || !root.ActiveXObject)) {
248 return new XMLHttpRequest;
249 } else {
250 try { return new ActiveXObject('Microsoft.XMLHTTP'); } catch(e) {}
251 try { return new ActiveXObject('Msxml2.XMLHTTP.6.0'); } catch(e) {}
252 try { return new ActiveXObject('Msxml2.XMLHTTP.3.0'); } catch(e) {}
253 try { return new ActiveXObject('Msxml2.XMLHTTP'); } catch(e) {}
254 }
255 return false;
256};
257
258/**
259 * Removes leading and trailing whitespace, added to support IE.
260 *
261 * @param {String} s
262 * @return {String}
263 * @api private
264 */
265
266var trim = ''.trim
267 ? function(s) { return s.trim(); }
268 : function(s) { return s.replace(/(^\s*|\s*$)/g, ''); };
269
270/**
271 * Check if `obj` is an object.
272 *
273 * @param {Object} obj
274 * @return {Boolean}
275 * @api private
276 */
277
278function isObject(obj) {
279 return obj === Object(obj);
280}
281
282/**
283 * Serialize the given `obj`.
284 *
285 * @param {Object} obj
286 * @return {String}
287 * @api private
288 */
289
290function serialize(obj) {
291 if (!isObject(obj)) return obj;
292 var pairs = [];
293 for (var key in obj) {
294 if (null != obj[key]) {
295 pushEncodedKeyValuePair(pairs, key, obj[key]);
296 }
297 }
298 return pairs.join('&');
299}
300
301/**
302 * Helps 'serialize' with serializing arrays.
303 * Mutates the pairs array.
304 *
305 * @param {Array} pairs
306 * @param {String} key
307 * @param {Mixed} val
308 */
309
310function pushEncodedKeyValuePair(pairs, key, val) {
311 if (Array.isArray(val)) {
312 return val.forEach(function(v) {
313 pushEncodedKeyValuePair(pairs, key, v);
314 });
315 }
316 pairs.push(encodeURIComponent(key)
317 + '=' + encodeURIComponent(val));
318}
319
320/**
321 * Expose serialization method.
322 */
323
324 request.serializeObject = serialize;
325
326 /**
327 * Parse the given x-www-form-urlencoded `str`.
328 *
329 * @param {String} str
330 * @return {Object}
331 * @api private
332 */
333
334function parseString(str) {
335 var obj = {};
336 var pairs = str.split('&');
337 var parts;
338 var pair;
339
340 for (var i = 0, len = pairs.length; i < len; ++i) {
341 pair = pairs[i];
342 parts = pair.split('=');
343 obj[decodeURIComponent(parts[0])] = decodeURIComponent(parts[1]);
344 }
345
346 return obj;
347}
348
349/**
350 * Expose parser.
351 */
352
353request.parseString = parseString;
354
355/**
356 * Default MIME type map.
357 *
358 * superagent.types.xml = 'application/xml';
359 *
360 */
361
362request.types = {
363 html: 'text/html',
364 json: 'application/json',
365 xml: 'application/xml',
366 urlencoded: 'application/x-www-form-urlencoded',
367 'form': 'application/x-www-form-urlencoded',
368 'form-data': 'application/x-www-form-urlencoded'
369};
370
371/**
372 * Default serialization map.
373 *
374 * superagent.serialize['application/xml'] = function(obj){
375 * return 'generated xml here';
376 * };
377 *
378 */
379
380 request.serialize = {
381 'application/x-www-form-urlencoded': serialize,
382 'application/json': JSON.stringify
383 };
384
385 /**
386 * Default parsers.
387 *
388 * superagent.parse['application/xml'] = function(str){
389 * return { object parsed from str };
390 * };
391 *
392 */
393
394request.parse = {
395 'application/x-www-form-urlencoded': parseString,
396 'application/json': JSON.parse
397};
398
399/**
400 * Parse the given header `str` into
401 * an object containing the mapped fields.
402 *
403 * @param {String} str
404 * @return {Object}
405 * @api private
406 */
407
408function parseHeader(str) {
409 var lines = str.split(/\r?\n/);
410 var fields = {};
411 var index;
412 var line;
413 var field;
414 var val;
415
416 lines.pop(); // trailing CRLF
417
418 for (var i = 0, len = lines.length; i < len; ++i) {
419 line = lines[i];
420 index = line.indexOf(':');
421 field = line.slice(0, index).toLowerCase();
422 val = trim(line.slice(index + 1));
423 fields[field] = val;
424 }
425
426 return fields;
427}
428
429/**
430 * Check if `mime` is json or has +json structured syntax suffix.
431 *
432 * @param {String} mime
433 * @return {Boolean}
434 * @api private
435 */
436
437function isJSON(mime) {
438 return /[\/+]json\b/.test(mime);
439}
440
441/**
442 * Return the mime type for the given `str`.
443 *
444 * @param {String} str
445 * @return {String}
446 * @api private
447 */
448
449function type(str){
450 return str.split(/ *; */).shift();
451};
452
453/**
454 * Return header field parameters.
455 *
456 * @param {String} str
457 * @return {Object}
458 * @api private
459 */
460
461function params(str){
462 return reduce(str.split(/ *; */), function(obj, str){
463 var parts = str.split(/ *= */)
464 , key = parts.shift()
465 , val = parts.shift();
466
467 if (key && val) obj[key] = val;
468 return obj;
469 }, {});
470};
471
472/**
473 * Initialize a new `Response` with the given `xhr`.
474 *
475 * - set flags (.ok, .error, etc)
476 * - parse header
477 *
478 * Examples:
479 *
480 * Aliasing `superagent` as `request` is nice:
481 *
482 * request = superagent;
483 *
484 * We can use the promise-like API, or pass callbacks:
485 *
486 * request.get('/').end(function(res){});
487 * request.get('/', function(res){});
488 *
489 * Sending data can be chained:
490 *
491 * request
492 * .post('/user')
493 * .send({ name: 'tj' })
494 * .end(function(res){});
495 *
496 * Or passed to `.send()`:
497 *
498 * request
499 * .post('/user')
500 * .send({ name: 'tj' }, function(res){});
501 *
502 * Or passed to `.post()`:
503 *
504 * request
505 * .post('/user', { name: 'tj' })
506 * .end(function(res){});
507 *
508 * Or further reduced to a single call for simple cases:
509 *
510 * request
511 * .post('/user', { name: 'tj' }, function(res){});
512 *
513 * @param {XMLHTTPRequest} xhr
514 * @param {Object} options
515 * @api private
516 */
517
518function Response(req, options) {
519 options = options || {};
520 this.req = req;
521 this.xhr = this.req.xhr;
522 // responseText is accessible only if responseType is '' or 'text' and on older browsers
523 this.text = ((this.req.method !='HEAD' && (this.xhr.responseType === '' || this.xhr.responseType === 'text')) || typeof this.xhr.responseType === 'undefined')
524 ? this.xhr.responseText
525 : null;
526 this.statusText = this.req.xhr.statusText;
527 this.setStatusProperties(this.xhr.status);
528 this.header = this.headers = parseHeader(this.xhr.getAllResponseHeaders());
529 // getAllResponseHeaders sometimes falsely returns "" for CORS requests, but
530 // getResponseHeader still works. so we get content-type even if getting
531 // other headers fails.
532 this.header['content-type'] = this.xhr.getResponseHeader('content-type');
533 this.setHeaderProperties(this.header);
534 this.body = this.req.method != 'HEAD'
535 ? this.parseBody(this.text ? this.text : this.xhr.response)
536 : null;
537}
538
539/**
540 * Get case-insensitive `field` value.
541 *
542 * @param {String} field
543 * @return {String}
544 * @api public
545 */
546
547Response.prototype.get = function(field){
548 return this.header[field.toLowerCase()];
549};
550
551/**
552 * Set header related properties:
553 *
554 * - `.type` the content type without params
555 *
556 * A response of "Content-Type: text/plain; charset=utf-8"
557 * will provide you with a `.type` of "text/plain".
558 *
559 * @param {Object} header
560 * @api private
561 */
562
563Response.prototype.setHeaderProperties = function(header){
564 // content-type
565 var ct = this.header['content-type'] || '';
566 this.type = type(ct);
567
568 // params
569 var obj = params(ct);
570 for (var key in obj) this[key] = obj[key];
571};
572
573/**
574 * Parse the given body `str`.
575 *
576 * Used for auto-parsing of bodies. Parsers
577 * are defined on the `superagent.parse` object.
578 *
579 * @param {String} str
580 * @return {Mixed}
581 * @api private
582 */
583
584Response.prototype.parseBody = function(str){
585 var parse = request.parse[this.type];
586 return parse && str && (str.length || str instanceof Object)
587 ? parse(str)
588 : null;
589};
590
591/**
592 * Set flags such as `.ok` based on `status`.
593 *
594 * For example a 2xx response will give you a `.ok` of __true__
595 * whereas 5xx will be __false__ and `.error` will be __true__. The
596 * `.clientError` and `.serverError` are also available to be more
597 * specific, and `.statusType` is the class of error ranging from 1..5
598 * sometimes useful for mapping respond colors etc.
599 *
600 * "sugar" properties are also defined for common cases. Currently providing:
601 *
602 * - .noContent
603 * - .badRequest
604 * - .unauthorized
605 * - .notAcceptable
606 * - .notFound
607 *
608 * @param {Number} status
609 * @api private
610 */
611
612Response.prototype.setStatusProperties = function(status){
613 // handle IE9 bug: http://stackoverflow.com/questions/10046972/msie-returns-status-code-of-1223-for-ajax-request
614 if (status === 1223) {
615 status = 204;
616 }
617
618 var type = status / 100 | 0;
619
620 // status / class
621 this.status = this.statusCode = status;
622 this.statusType = type;
623
624 // basics
625 this.info = 1 == type;
626 this.ok = 2 == type;
627 this.clientError = 4 == type;
628 this.serverError = 5 == type;
629 this.error = (4 == type || 5 == type)
630 ? this.toError()
631 : false;
632
633 // sugar
634 this.accepted = 202 == status;
635 this.noContent = 204 == status;
636 this.badRequest = 400 == status;
637 this.unauthorized = 401 == status;
638 this.notAcceptable = 406 == status;
639 this.notFound = 404 == status;
640 this.forbidden = 403 == status;
641};
642
643/**
644 * Return an `Error` representative of this response.
645 *
646 * @return {Error}
647 * @api public
648 */
649
650Response.prototype.toError = function(){
651 var req = this.req;
652 var method = req.method;
653 var url = req.url;
654
655 var msg = 'cannot ' + method + ' ' + url + ' (' + this.status + ')';
656 var err = new Error(msg);
657 err.status = this.status;
658 err.method = method;
659 err.url = url;
660
661 return err;
662};
663
664/**
665 * Expose `Response`.
666 */
667
668request.Response = Response;
669
670/**
671 * Initialize a new `Request` with the given `method` and `url`.
672 *
673 * @param {String} method
674 * @param {String} url
675 * @api public
676 */
677
678function Request(method, url) {
679 var self = this;
680 Emitter.call(this);
681 this._query = this._query || [];
682 this.method = method;
683 this.url = url;
684 this.header = {};
685 this._header = {};
686 this.on('end', function(){
687 var err = null;
688 var res = null;
689
690 try {
691 res = new Response(self);
692 } catch(e) {
693 err = new Error('Parser is unable to parse the response');
694 err.parse = true;
695 err.original = e;
696 // issue #675: return the raw response if the response parsing fails
697 err.rawResponse = self.xhr && self.xhr.responseText ? self.xhr.responseText : null;
698 return self.callback(err);
699 }
700
701 self.emit('response', res);
702
703 if (err) {
704 return self.callback(err, res);
705 }
706
707 if (res.status >= 200 && res.status < 300) {
708 return self.callback(err, res);
709 }
710
711 var new_err = new Error(res.statusText || 'Unsuccessful HTTP response');
712 new_err.original = err;
713 new_err.response = res;
714 new_err.status = res.status;
715
716 self.callback(new_err, res);
717 });
718}
719
720/**
721 * Mixin `Emitter`.
722 */
723
724Emitter(Request.prototype);
725
726/**
727 * Allow for extension
728 */
729
730Request.prototype.use = function(fn) {
731 fn(this);
732 return this;
733}
734
735/**
736 * Set timeout to `ms`.
737 *
738 * @param {Number} ms
739 * @return {Request} for chaining
740 * @api public
741 */
742
743Request.prototype.timeout = function(ms){
744 this._timeout = ms;
745 return this;
746};
747
748/**
749 * Clear previous timeout.
750 *
751 * @return {Request} for chaining
752 * @api public
753 */
754
755Request.prototype.clearTimeout = function(){
756 this._timeout = 0;
757 clearTimeout(this._timer);
758 return this;
759};
760
761/**
762 * Abort the request, and clear potential timeout.
763 *
764 * @return {Request}
765 * @api public
766 */
767
768Request.prototype.abort = function(){
769 if (this.aborted) return;
770 this.aborted = true;
771 this.xhr.abort();
772 this.clearTimeout();
773 this.emit('abort');
774 return this;
775};
776
777/**
778 * Set header `field` to `val`, or multiple fields with one object.
779 *
780 * Examples:
781 *
782 * req.get('/')
783 * .set('Accept', 'application/json')
784 * .set('X-API-Key', 'foobar')
785 * .end(callback);
786 *
787 * req.get('/')
788 * .set({ Accept: 'application/json', 'X-API-Key': 'foobar' })
789 * .end(callback);
790 *
791 * @param {String|Object} field
792 * @param {String} val
793 * @return {Request} for chaining
794 * @api public
795 */
796
797Request.prototype.set = function(field, val){
798 if (isObject(field)) {
799 for (var key in field) {
800 this.set(key, field[key]);
801 }
802 return this;
803 }
804 this._header[field.toLowerCase()] = val;
805 this.header[field] = val;
806 return this;
807};
808
809/**
810 * Remove header `field`.
811 *
812 * Example:
813 *
814 * req.get('/')
815 * .unset('User-Agent')
816 * .end(callback);
817 *
818 * @param {String} field
819 * @return {Request} for chaining
820 * @api public
821 */
822
823Request.prototype.unset = function(field){
824 delete this._header[field.toLowerCase()];
825 delete this.header[field];
826 return this;
827};
828
829/**
830 * Get case-insensitive header `field` value.
831 *
832 * @param {String} field
833 * @return {String}
834 * @api private
835 */
836
837Request.prototype.getHeader = function(field){
838 return this._header[field.toLowerCase()];
839};
840
841/**
842 * Set Content-Type to `type`, mapping values from `request.types`.
843 *
844 * Examples:
845 *
846 * superagent.types.xml = 'application/xml';
847 *
848 * request.post('/')
849 * .type('xml')
850 * .send(xmlstring)
851 * .end(callback);
852 *
853 * request.post('/')
854 * .type('application/xml')
855 * .send(xmlstring)
856 * .end(callback);
857 *
858 * @param {String} type
859 * @return {Request} for chaining
860 * @api public
861 */
862
863Request.prototype.type = function(type){
864 this.set('Content-Type', request.types[type] || type);
865 return this;
866};
867
868/**
869 * Force given parser
870 *
871 * Sets the body parser no matter type.
872 *
873 * @param {Function}
874 * @api public
875 */
876
877Request.prototype.parse = function(fn){
878 this._parser = fn;
879 return this;
880};
881
882/**
883 * Set Accept to `type`, mapping values from `request.types`.
884 *
885 * Examples:
886 *
887 * superagent.types.json = 'application/json';
888 *
889 * request.get('/agent')
890 * .accept('json')
891 * .end(callback);
892 *
893 * request.get('/agent')
894 * .accept('application/json')
895 * .end(callback);
896 *
897 * @param {String} accept
898 * @return {Request} for chaining
899 * @api public
900 */
901
902Request.prototype.accept = function(type){
903 this.set('Accept', request.types[type] || type);
904 return this;
905};
906
907/**
908 * Set Authorization field value with `user` and `pass`.
909 *
910 * @param {String} user
911 * @param {String} pass
912 * @return {Request} for chaining
913 * @api public
914 */
915
916Request.prototype.auth = function(user, pass){
917 var str = btoa(user + ':' + pass);
918 this.set('Authorization', 'Basic ' + str);
919 return this;
920};
921
922/**
923* Add query-string `val`.
924*
925* Examples:
926*
927* request.get('/shoes')
928* .query('size=10')
929* .query({ color: 'blue' })
930*
931* @param {Object|String} val
932* @return {Request} for chaining
933* @api public
934*/
935
936Request.prototype.query = function(val){
937 if ('string' != typeof val) val = serialize(val);
938 if (val) this._query.push(val);
939 return this;
940};
941
942/**
943 * Write the field `name` and `val` for "multipart/form-data"
944 * request bodies.
945 *
946 * ``` js
947 * request.post('/upload')
948 * .field('foo', 'bar')
949 * .end(callback);
950 * ```
951 *
952 * @param {String} name
953 * @param {String|Blob|File} val
954 * @return {Request} for chaining
955 * @api public
956 */
957
958Request.prototype.field = function(name, val){
959 if (!this._formData) this._formData = new root.FormData();
960 this._formData.append(name, val);
961 return this;
962};
963
964/**
965 * Queue the given `file` as an attachment to the specified `field`,
966 * with optional `filename`.
967 *
968 * ``` js
969 * request.post('/upload')
970 * .attach(new Blob(['<a id="a"><b id="b">hey!</b></a>'], { type: "text/html"}))
971 * .end(callback);
972 * ```
973 *
974 * @param {String} field
975 * @param {Blob|File} file
976 * @param {String} filename
977 * @return {Request} for chaining
978 * @api public
979 */
980
981Request.prototype.attach = function(field, file, filename){
982 if (!this._formData) this._formData = new root.FormData();
983 this._formData.append(field, file, filename || file.name);
984 return this;
985};
986
987/**
988 * Send `data` as the request body, defaulting the `.type()` to "json" when
989 * an object is given.
990 *
991 * Examples:
992 *
993 * // manual json
994 * request.post('/user')
995 * .type('json')
996 * .send('{"name":"tj"}')
997 * .end(callback)
998 *
999 * // auto json
1000 * request.post('/user')
1001 * .send({ name: 'tj' })
1002 * .end(callback)
1003 *
1004 * // manual x-www-form-urlencoded
1005 * request.post('/user')
1006 * .type('form')
1007 * .send('name=tj')
1008 * .end(callback)
1009 *
1010 * // auto x-www-form-urlencoded
1011 * request.post('/user')
1012 * .type('form')
1013 * .send({ name: 'tj' })
1014 * .end(callback)
1015 *
1016 * // defaults to x-www-form-urlencoded
1017 * request.post('/user')
1018 * .send('name=tobi')
1019 * .send('species=ferret')
1020 * .end(callback)
1021 *
1022 * @param {String|Object} data
1023 * @return {Request} for chaining
1024 * @api public
1025 */
1026
1027Request.prototype.send = function(data){
1028 var obj = isObject(data);
1029 var type = this.getHeader('Content-Type');
1030
1031 // merge
1032 if (obj && isObject(this._data)) {
1033 for (var key in data) {
1034 this._data[key] = data[key];
1035 }
1036 } else if ('string' == typeof data) {
1037 if (!type) this.type('form');
1038 type = this.getHeader('Content-Type');
1039 if ('application/x-www-form-urlencoded' == type) {
1040 this._data = this._data
1041 ? this._data + '&' + data
1042 : data;
1043 } else {
1044 this._data = (this._data || '') + data;
1045 }
1046 } else {
1047 this._data = data;
1048 }
1049
1050 if (!obj || isHost(data)) return this;
1051 if (!type) this.type('json');
1052 return this;
1053};
1054
1055/**
1056 * Invoke the callback with `err` and `res`
1057 * and handle arity check.
1058 *
1059 * @param {Error} err
1060 * @param {Response} res
1061 * @api private
1062 */
1063
1064Request.prototype.callback = function(err, res){
1065 var fn = this._callback;
1066 this.clearTimeout();
1067 fn(err, res);
1068};
1069
1070/**
1071 * Invoke callback with x-domain error.
1072 *
1073 * @api private
1074 */
1075
1076Request.prototype.crossDomainError = function(){
1077 var err = new Error('Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.');
1078 err.crossDomain = true;
1079
1080 err.status = this.status;
1081 err.method = this.method;
1082 err.url = this.url;
1083
1084 this.callback(err);
1085};
1086
1087/**
1088 * Invoke callback with timeout error.
1089 *
1090 * @api private
1091 */
1092
1093Request.prototype.timeoutError = function(){
1094 var timeout = this._timeout;
1095 var err = new Error('timeout of ' + timeout + 'ms exceeded');
1096 err.timeout = timeout;
1097 this.callback(err);
1098};
1099
1100/**
1101 * Enable transmission of cookies with x-domain requests.
1102 *
1103 * Note that for this to work the origin must not be
1104 * using "Access-Control-Allow-Origin" with a wildcard,
1105 * and also must set "Access-Control-Allow-Credentials"
1106 * to "true".
1107 *
1108 * @api public
1109 */
1110
1111Request.prototype.withCredentials = function(){
1112 this._withCredentials = true;
1113 return this;
1114};
1115
1116/**
1117 * Initiate request, invoking callback `fn(res)`
1118 * with an instanceof `Response`.
1119 *
1120 * @param {Function} fn
1121 * @return {Request} for chaining
1122 * @api public
1123 */
1124
1125Request.prototype.end = function(fn){
1126 var self = this;
1127 var xhr = this.xhr = request.getXHR();
1128 var query = this._query.join('&');
1129 var timeout = this._timeout;
1130 var data = this._formData || this._data;
1131
1132 // store callback
1133 this._callback = fn || noop;
1134
1135 // state change
1136 xhr.onreadystatechange = function(){
1137 if (4 != xhr.readyState) return;
1138
1139 // In IE9, reads to any property (e.g. status) off of an aborted XHR will
1140 // result in the error "Could not complete the operation due to error c00c023f"
1141 var status;
1142 try { status = xhr.status } catch(e) { status = 0; }
1143
1144 if (0 == status) {
1145 if (self.timedout) return self.timeoutError();
1146 if (self.aborted) return;
1147 return self.crossDomainError();
1148 }
1149 self.emit('end');
1150 };
1151
1152 // progress
1153 var handleProgress = function(e){
1154 if (e.total > 0) {
1155 e.percent = e.loaded / e.total * 100;
1156 }
1157 e.direction = 'download';
1158 self.emit('progress', e);
1159 };
1160 if (this.hasListeners('progress')) {
1161 xhr.onprogress = handleProgress;
1162 }
1163 try {
1164 if (xhr.upload && this.hasListeners('progress')) {
1165 xhr.upload.onprogress = handleProgress;
1166 }
1167 } catch(e) {
1168 // Accessing xhr.upload fails in IE from a web worker, so just pretend it doesn't exist.
1169 // Reported here:
1170 // https://connect.microsoft.com/IE/feedback/details/837245/xmlhttprequest-upload-throws-invalid-argument-when-used-from-web-worker-context
1171 }
1172
1173 // timeout
1174 if (timeout && !this._timer) {
1175 this._timer = setTimeout(function(){
1176 self.timedout = true;
1177 self.abort();
1178 }, timeout);
1179 }
1180
1181 // querystring
1182 if (query) {
1183 query = request.serializeObject(query);
1184 this.url += ~this.url.indexOf('?')
1185 ? '&' + query
1186 : '?' + query;
1187 }
1188
1189 // initiate request
1190 xhr.open(this.method, this.url, true);
1191
1192 // CORS
1193 if (this._withCredentials) xhr.withCredentials = true;
1194
1195 // body
1196 if ('GET' != this.method && 'HEAD' != this.method && 'string' != typeof data && !isHost(data)) {
1197 // serialize stuff
1198 var contentType = this.getHeader('Content-Type');
1199 var serialize = this._parser || request.serialize[contentType ? contentType.split(';')[0] : ''];
1200 if (!serialize && isJSON(contentType)) serialize = request.serialize['application/json'];
1201 if (serialize) data = serialize(data);
1202 }
1203
1204 // set header fields
1205 for (var field in this.header) {
1206 if (null == this.header[field]) continue;
1207 xhr.setRequestHeader(field, this.header[field]);
1208 }
1209
1210 // send stuff
1211 this.emit('request', this);
1212
1213 // IE11 xhr.send(undefined) sends 'undefined' string as POST payload (instead of nothing)
1214 // We need null here if data is undefined
1215 xhr.send(typeof data !== 'undefined' ? data : null);
1216 return this;
1217};
1218
1219/**
1220 * Faux promise support
1221 *
1222 * @param {Function} fulfill
1223 * @param {Function} reject
1224 * @return {Request}
1225 */
1226
1227Request.prototype.then = function (fulfill, reject) {
1228 return this.end(function(err, res) {
1229 err ? reject(err) : fulfill(res);
1230 });
1231}
1232
1233/**
1234 * Expose `Request`.
1235 */
1236
1237request.Request = Request;
1238
1239/**
1240 * Issue a request:
1241 *
1242 * Examples:
1243 *
1244 * request('GET', '/users').end(callback)
1245 * request('/users').end(callback)
1246 * request('/users', callback)
1247 *
1248 * @param {String} method
1249 * @param {String|Function} url or callback
1250 * @return {Request}
1251 * @api public
1252 */
1253
1254function request(method, url) {
1255 // callback
1256 if ('function' == typeof url) {
1257 return new Request('GET', method).end(url);
1258 }
1259
1260 // url first
1261 if (1 == arguments.length) {
1262 return new Request('GET', method);
1263 }
1264
1265 return new Request(method, url);
1266}
1267
1268/**
1269 * GET `url` with optional callback `fn(res)`.
1270 *
1271 * @param {String} url
1272 * @param {Mixed|Function} data or fn
1273 * @param {Function} fn
1274 * @return {Request}
1275 * @api public
1276 */
1277
1278request.get = function(url, data, fn){
1279 var req = request('GET', url);
1280 if ('function' == typeof data) fn = data, data = null;
1281 if (data) req.query(data);
1282 if (fn) req.end(fn);
1283 return req;
1284};
1285
1286/**
1287 * HEAD `url` with optional callback `fn(res)`.
1288 *
1289 * @param {String} url
1290 * @param {Mixed|Function} data or fn
1291 * @param {Function} fn
1292 * @return {Request}
1293 * @api public
1294 */
1295
1296request.head = function(url, data, fn){
1297 var req = request('HEAD', url);
1298 if ('function' == typeof data) fn = data, data = null;
1299 if (data) req.send(data);
1300 if (fn) req.end(fn);
1301 return req;
1302};
1303
1304/**
1305 * DELETE `url` with optional callback `fn(res)`.
1306 *
1307 * @param {String} url
1308 * @param {Function} fn
1309 * @return {Request}
1310 * @api public
1311 */
1312
1313function del(url, fn){
1314 var req = request('DELETE', url);
1315 if (fn) req.end(fn);
1316 return req;
1317};
1318
1319request['del'] = del;
1320request['delete'] = del;
1321
1322/**
1323 * PATCH `url` with optional `data` and callback `fn(res)`.
1324 *
1325 * @param {String} url
1326 * @param {Mixed} data
1327 * @param {Function} fn
1328 * @return {Request}
1329 * @api public
1330 */
1331
1332request.patch = function(url, data, fn){
1333 var req = request('PATCH', url);
1334 if ('function' == typeof data) fn = data, data = null;
1335 if (data) req.send(data);
1336 if (fn) req.end(fn);
1337 return req;
1338};
1339
1340/**
1341 * POST `url` with optional `data` and callback `fn(res)`.
1342 *
1343 * @param {String} url
1344 * @param {Mixed} data
1345 * @param {Function} fn
1346 * @return {Request}
1347 * @api public
1348 */
1349
1350request.post = function(url, data, fn){
1351 var req = request('POST', url);
1352 if ('function' == typeof data) fn = data, data = null;
1353 if (data) req.send(data);
1354 if (fn) req.end(fn);
1355 return req;
1356};
1357
1358/**
1359 * PUT `url` with optional `data` and callback `fn(res)`.
1360 *
1361 * @param {String} url
1362 * @param {Mixed|Function} data or fn
1363 * @param {Function} fn
1364 * @return {Request}
1365 * @api public
1366 */
1367
1368request.put = function(url, data, fn){
1369 var req = request('PUT', url);
1370 if ('function' == typeof data) fn = data, data = null;
1371 if (data) req.send(data);
1372 if (fn) req.end(fn);
1373 return req;
1374};
1375
1376/**
1377 * Expose `request`.
1378 */
1379
1380module.exports = request;
1381
1382},{"emitter":1,"reduce":2}]},{},[3])(3)
1383}); \ No newline at end of file
diff --git a/app/js/vue.min.js b/app/js/vue.min.js
new file mode 100644
index 0000000..83ebfd7
--- /dev/null
+++ b/app/js/vue.min.js
@@ -0,0 +1,8 @@
1/*!
2 * Vue.js v1.0.17
3 * (c) 2016 Evan You
4 * Released under the MIT License.
5 */
6!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Vue=e()}(this,function(){"use strict";function t(e,n,r){if(i(e,n))return void(e[n]=r);if(e._isVue)return void t(e._data,n,r);var s=e.__ob__;if(!s)return void(e[n]=r);if(s.convert(n,r),s.dep.notify(),s.vms)for(var o=s.vms.length;o--;){var a=s.vms[o];a._proxy(n),a._digest()}return r}function e(t,e){if(i(t,e)){delete t[e];var n=t.__ob__;if(n&&(n.dep.notify(),n.vms))for(var r=n.vms.length;r--;){var s=n.vms[r];s._unproxy(e),s._digest()}}}function i(t,e){return yi.call(t,e)}function n(t){return Ci.test(t)}function r(t){var e=(t+"").charCodeAt(0);return 36===e||95===e}function s(t){return null==t?"":t.toString()}function o(t){if("string"!=typeof t)return t;var e=Number(t);return isNaN(e)?t:e}function a(t){return"true"===t?!0:"false"===t?!1:t}function h(t){var e=t.charCodeAt(0),i=t.charCodeAt(t.length-1);return e!==i||34!==e&&39!==e?t:t.slice(1,-1)}function l(t){return t.replace(wi,c)}function c(t,e){return e?e.toUpperCase():""}function u(t){return t.replace($i,"$1-$2").toLowerCase()}function f(t){return t.replace(ki,c)}function p(t,e){return function(i){var n=arguments.length;return n?n>1?t.apply(e,arguments):t.call(e,i):t.call(e)}}function d(t,e){e=e||0;for(var i=t.length-e,n=new Array(i);i--;)n[i]=t[i+e];return n}function v(t,e){for(var i=Object.keys(e),n=i.length;n--;)t[i[n]]=e[i[n]];return t}function m(t){return null!==t&&"object"==typeof t}function g(t){return xi.call(t)===Ai}function _(t,e,i,n){Object.defineProperty(t,e,{value:i,enumerable:!!n,writable:!0,configurable:!0})}function b(t,e){var i,n,r,s,o,a=function h(){var a=Date.now()-s;e>a&&a>=0?i=setTimeout(h,e-a):(i=null,o=t.apply(r,n),i||(r=n=null))};return function(){return r=this,n=arguments,s=Date.now(),i||(i=setTimeout(a,e)),o}}function y(t,e){for(var i=t.length;i--;)if(t[i]===e)return i;return-1}function C(t){var e=function i(){return i.cancelled?void 0:t.apply(this,arguments)};return e.cancel=function(){e.cancelled=!0},e}function w(t,e){return t==e||(m(t)&&m(e)?JSON.stringify(t)===JSON.stringify(e):!1)}function $(t){this.size=0,this.limit=t,this.head=this.tail=void 0,this._keymap=Object.create(null)}function k(){var t,e=Vi.slice(Qi,qi).trim();if(e){t={};var i=e.match(en);t.name=i[0],i.length>1&&(t.args=i.slice(1).map(x))}t&&(zi.filters=zi.filters||[]).push(t),Qi=qi+1}function x(t){if(nn.test(t))return{value:o(t),dynamic:!1};var e=h(t),i=e===t;return{value:i?t:e,dynamic:i}}function A(t){var e=tn.get(t);if(e)return e;for(Vi=t,Gi=Ki=!1,Zi=Xi=Yi=0,Qi=0,zi={},qi=0,Ji=Vi.length;Ji>qi;qi++)if(Ui=Ii,Ii=Vi.charCodeAt(qi),Gi)39===Ii&&92!==Ui&&(Gi=!Gi);else if(Ki)34===Ii&&92!==Ui&&(Ki=!Ki);else if(124===Ii&&124!==Vi.charCodeAt(qi+1)&&124!==Vi.charCodeAt(qi-1))null==zi.expression?(Qi=qi+1,zi.expression=Vi.slice(0,qi).trim()):k();else switch(Ii){case 34:Ki=!0;break;case 39:Gi=!0;break;case 40:Yi++;break;case 41:Yi--;break;case 91:Xi++;break;case 93:Xi--;break;case 123:Zi++;break;case 125:Zi--}return null==zi.expression?zi.expression=Vi.slice(0,qi).trim():0!==Qi&&k(),tn.put(t,zi),zi}function O(t){return t.replace(sn,"\\$&")}function T(){var t=O(pn.delimiters[0]),e=O(pn.delimiters[1]),i=O(pn.unsafeDelimiters[0]),n=O(pn.unsafeDelimiters[1]);an=new RegExp(i+"(.+?)"+n+"|"+t+"(.+?)"+e,"g"),hn=new RegExp("^"+i+".*"+n+"$"),on=new $(1e3)}function N(t){on||T();var e=on.get(t);if(e)return e;if(t=t.replace(/\n/g,""),!an.test(t))return null;for(var i,n,r,s,o,a,h=[],l=an.lastIndex=0;i=an.exec(t);)n=i.index,n>l&&h.push({value:t.slice(l,n)}),r=hn.test(i[0]),s=r?i[1]:i[2],o=s.charCodeAt(0),a=42===o,s=a?s.slice(1):s,h.push({tag:!0,value:s.trim(),html:r,oneTime:a}),l=n+i[0].length;return l<t.length&&h.push({value:t.slice(l)}),on.put(t,h),h}function j(t,e){return t.length>1?t.map(function(t){return E(t,e)}).join("+"):E(t[0],e,!0)}function E(t,e,i){return t.tag?t.oneTime&&e?'"'+e.$eval(t.value)+'"':S(t.value,i):'"'+t.value+'"'}function S(t,e){if(ln.test(t)){var i=A(t);return i.filters?"this._applyFilters("+i.expression+",null,"+JSON.stringify(i.filters)+",false)":"("+t+")"}return e?t:"("+t+")"}function F(t,e,i,n){R(t,1,function(){e.appendChild(t)},i,n)}function P(t,e,i,n){R(t,1,function(){V(t,e)},i,n)}function D(t,e,i){R(t,-1,function(){I(t)},e,i)}function R(t,e,i,n,r){var s=t.__v_trans;if(!s||!s.hooks&&!Di||!n._isCompiled||n.$parent&&!n.$parent._isCompiled)return i(),void(r&&r());var o=e>0?"enter":"leave";s[o](i,r)}function H(t){if("string"==typeof t){t=document.querySelector(t)}return t}function L(t){var e=document.documentElement,i=t&&t.parentNode;return e===t||e===i||!(!i||1!==i.nodeType||!e.contains(i))}function M(t,e){var i=t.getAttribute(e);return null!==i&&t.removeAttribute(e),i}function W(t,e){var i=M(t,":"+e);return null===i&&(i=M(t,"v-bind:"+e)),i}function B(t,e){return t.hasAttribute(e)||t.hasAttribute(":"+e)||t.hasAttribute("v-bind:"+e)}function V(t,e){e.parentNode.insertBefore(t,e)}function z(t,e){e.nextSibling?V(t,e.nextSibling):e.parentNode.appendChild(t)}function I(t){t.parentNode.removeChild(t)}function U(t,e){e.firstChild?V(t,e.firstChild):e.appendChild(t)}function q(t,e){var i=t.parentNode;i&&i.replaceChild(e,t)}function J(t,e,i,n){t.addEventListener(e,i,n)}function Q(t,e,i){t.removeEventListener(e,i)}function G(t,e){Si&&!/svg$/.test(t.namespaceURI)?t.className=e:t.setAttribute("class",e)}function K(t,e){if(t.classList)t.classList.add(e);else{var i=" "+(t.getAttribute("class")||"")+" ";i.indexOf(" "+e+" ")<0&&G(t,(i+e).trim())}}function Z(t,e){if(t.classList)t.classList.remove(e);else{for(var i=" "+(t.getAttribute("class")||"")+" ",n=" "+e+" ";i.indexOf(n)>=0;)i=i.replace(n," ");G(t,i.trim())}t.className||t.removeAttribute("class")}function X(t,e){var i,n;if(et(t)&&ot(t.content)&&(t=t.content),t.hasChildNodes())for(Y(t),n=e?document.createDocumentFragment():document.createElement("div");i=t.firstChild;)n.appendChild(i);return n}function Y(t){for(var e;e=t.firstChild,tt(e);)t.removeChild(e);for(;e=t.lastChild,tt(e);)t.removeChild(e)}function tt(t){return t&&(3===t.nodeType&&!t.data.trim()||8===t.nodeType)}function et(t){return t.tagName&&"template"===t.tagName.toLowerCase()}function it(t,e){var i=pn.debug?document.createComment(t):document.createTextNode(e?" ":"");return i.__v_anchor=!0,i}function nt(t){if(t.hasAttributes())for(var e=t.attributes,i=0,n=e.length;n>i;i++){var r=e[i].name;if(mn.test(r))return l(r.replace(mn,""))}}function rt(t,e,i){for(var n;t!==e;)n=t.nextSibling,i(t),t=n;i(e)}function st(t,e,i,n,r){function s(){if(a++,o&&a>=h.length){for(var t=0;t<h.length;t++)n.appendChild(h[t]);r&&r()}}var o=!1,a=0,h=[];rt(t,e,function(t){t===e&&(o=!0),h.push(t),D(t,i,s)})}function ot(t){return t&&11===t.nodeType}function at(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}function ht(t,e){var i=t.tagName.toLowerCase(),n=t.hasAttributes();if(gn.test(i)||_n.test(i)){if(n)return lt(t)}else{if(bt(e,"components",i))return{id:i};var r=n&&lt(t);if(r)return r}}function lt(t){var e=M(t,"is");return null!=e?{id:e}:(e=W(t,"is"),null!=e?{id:e,dynamic:!0}:void 0)}function ct(t,e,i){var n=e.path;i=ft(e,i),t[n]=t._data[n]=ut(e,i)?i:void 0}function ut(t,e){if(!t.options.required&&(null===t.raw||null==e))return!0;var i,n=t.options,r=n.type,s=!0;if(r&&(r===String?(i="string",s=typeof e===i):r===Number?(i="number",s="number"==typeof e):r===Boolean?(i="boolean",s="boolean"==typeof e):r===Function?(i="function",s="function"==typeof e):r===Object?(i="object",s=g(e)):r===Array?(i="array",s=Oi(e)):s=e instanceof r),!s)return!1;var o=n.validator;return!o||o(e)}function ft(t,e){var i=t.options.coerce;return i?i(e):e}function pt(e,n){var r,s,o;for(r in n)s=e[r],o=n[r],i(e,r)?m(s)&&m(o)&&pt(s,o):t(e,r,o);return e}function dt(t,e){var i=Object.create(t);return e?v(i,gt(e)):i}function vt(t){if(t.components)for(var e,i=t.components=gt(t.components),n=Object.keys(i),r=0,s=n.length;s>r;r++){var o=n[r];gn.test(o)||_n.test(o)||(e=i[o],g(e)&&(i[o]=di.extend(e)))}}function mt(t){var e,i,n=t.props;if(Oi(n))for(t.props={},e=n.length;e--;)i=n[e],"string"==typeof i?t.props[i]=null:i.name&&(t.props[i.name]=i);else if(g(n)){var r=Object.keys(n);for(e=r.length;e--;)i=n[r[e]],"function"==typeof i&&(n[r[e]]={type:i})}}function gt(t){if(Oi(t)){for(var e,i={},n=t.length;n--;){e=t[n];var r="function"==typeof e?e.options&&e.options.name||e.id:e.name||e.id;r&&(i[r]=e)}return i}return t}function _t(t,e,n){function r(i){var r=bn[i]||yn;o[i]=r(t[i],e[i],n,i)}vt(e),mt(e);var s,o={};if(e.mixins)for(var a=0,h=e.mixins.length;h>a;a++)t=_t(t,e.mixins[a],n);for(s in t)r(s);for(s in e)i(t,s)||r(s);return o}function bt(t,e,i){if("string"==typeof i){var n,r=t[e];return r[i]||r[n=l(i)]||r[n.charAt(0).toUpperCase()+n.slice(1)]}}function yt(t,e,i){}function Ct(){this.id=Cn++,this.subs=[]}function wt(t){if(this.value=t,this.dep=new Ct,_(t,"__ob__",this),Oi(t)){var e=Ti?$t:kt;e(t,$n,kn),this.observeArray(t)}else this.walk(t)}function $t(t,e){t.__proto__=e}function kt(t,e,i){for(var n=0,r=i.length;r>n;n++){var s=i[n];_(t,s,e[s])}}function xt(t,e){if(t&&"object"==typeof t){var n;return i(t,"__ob__")&&t.__ob__ instanceof wt?n=t.__ob__:(Oi(t)||g(t))&&Object.isExtensible(t)&&!t._isVue&&(n=new wt(t)),n&&e&&n.addVm(e),n}}function At(t,e,i){var n=new Ct,r=Object.getOwnPropertyDescriptor(t,e);if(!r||r.configurable!==!1){var s=r&&r.get,o=r&&r.set,a=xt(i);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=s?s.call(t):i;if(Ct.target&&(n.depend(),a&&a.dep.depend(),Oi(e)))for(var r,o=0,h=e.length;h>o;o++)r=e[o],r&&r.__ob__&&r.__ob__.dep.depend();return e},set:function(e){var r=s?s.call(t):i;e!==r&&(o?o.call(t,e):i=e,a=xt(e),n.notify())}})}}function Ot(t){t.prototype._init=function(t){t=t||{},this.$el=null,this.$parent=t.parent,this.$root=this.$parent?this.$parent.$root:this,this.$children=[],this.$refs={},this.$els={},this._watchers=[],this._directives=[],this._uid=An++,this._isVue=!0,this._events={},this._eventsCount={},this._isFragment=!1,this._fragment=this._fragmentStart=this._fragmentEnd=null,this._isCompiled=this._isDestroyed=this._isReady=this._isAttached=this._isBeingDestroyed=this._vForRemoving=!1,this._unlinkFn=null,this._context=t._context||this.$parent,this._scope=t._scope,this._frag=t._frag,this._frag&&this._frag.children.push(this),this.$parent&&this.$parent.$children.push(this),t=this.$options=_t(this.constructor.options,t,this),this._updateRef(),this._data={},this._callHook("init"),this._initState(),this._initEvents(),this._callHook("created"),t.el&&this.$mount(t.el)}}function Tt(t){if(void 0===t)return"eof";var e=t.charCodeAt(0);switch(e){case 91:case 93:case 46:case 34:case 39:case 48:return t;case 95:case 36:return"ident";case 32:case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return e>=97&&122>=e||e>=65&&90>=e?"ident":e>=49&&57>=e?"number":"else"}function Nt(t){var e=t.trim();return"0"===t.charAt(0)&&isNaN(t)?!1:n(e)?h(e):"*"+e}function jt(t){function e(){var e=t[c+1];return u===Hn&&"'"===e||u===Ln&&'"'===e?(c++,n="\\"+e,p[Tn](),!0):void 0}var i,n,r,s,o,a,h,l=[],c=-1,u=Sn,f=0,p=[];for(p[Nn]=function(){void 0!==r&&(l.push(r),r=void 0)},p[Tn]=function(){void 0===r?r=n:r+=n},p[jn]=function(){p[Tn](),f++},p[En]=function(){if(f>0)f--,u=Rn,p[Tn]();else{if(f=0,r=Nt(r),r===!1)return!1;p[Nn]()}};null!=u;)if(c++,i=t[c],"\\"!==i||!e()){if(s=Tt(i),h=Bn[u],o=h[s]||h["else"]||Wn,o===Wn)return;if(u=o[0],a=p[o[1]],a&&(n=o[2],n=void 0===n?i:n,a()===!1))return;if(u===Mn)return l.raw=t,l}}function Et(t){var e=On.get(t);return e||(e=jt(t),e&&On.put(t,e)),e}function St(t,e){return Wt(e).get(t)}function Ft(e,i,n){var r=e;if("string"==typeof i&&(i=jt(i)),!i||!m(e))return!1;for(var s,o,a=0,h=i.length;h>a;a++)s=e,o=i[a],"*"===o.charAt(0)&&(o=Wt(o.slice(1)).get.call(r,r)),h-1>a?(e=e[o],m(e)||(e={},t(s,o,e))):Oi(e)?e.$set(o,n):o in e?e[o]=n:t(e,o,n);return!0}function Pt(t,e){var i=er.length;return er[i]=e?t.replace(Gn,"\\n"):t,'"'+i+'"'}function Dt(t){var e=t.charAt(0),i=t.slice(1);return Un.test(i)?t:(i=i.indexOf('"')>-1?i.replace(Zn,Rt):i,e+"scope."+i)}function Rt(t,e){return er[e]}function Ht(t){Jn.test(t),er.length=0;var e=t.replace(Kn,Pt).replace(Qn,"");return e=(" "+e).replace(Yn,Dt).replace(Zn,Rt),Lt(e)}function Lt(t){try{return new Function("scope","return "+t+";")}catch(e){}}function Mt(t){var e=Et(t);return e?function(t,i){Ft(t,e,i)}:void 0}function Wt(t,e){t=t.trim();var i=zn.get(t);if(i)return e&&!i.set&&(i.set=Mt(i.exp)),i;var n={exp:t};return n.get=Bt(t)&&t.indexOf("[")<0?Lt("scope."+t):Ht(t),e&&(n.set=Mt(t)),zn.put(t,n),n}function Bt(t){return Xn.test(t)&&!tr.test(t)&&"Math."!==t.slice(0,5)}function Vt(){nr=[],rr=[],sr={},or={},ar=hr=!1}function zt(){It(nr),hr=!0,It(rr),ji&&ji.emit("flush"),Vt()}function It(t){for(var e=0;e<t.length;e++){var i=t[e],n=i.id;sr[n]=null,i.run()}}function Ut(t){var e=t.id;if(null==sr[e]){if(hr&&!t.user)return void t.run();var i=t.user?rr:nr;sr[e]=i.length,i.push(t),ar||(ar=!0,Wi(zt))}}function qt(t,e,i,n){n&&v(this,n);var r="function"==typeof e;if(this.vm=t,t._watchers.push(this),this.expression=r?e.toString():e,this.cb=i,this.id=++lr,this.active=!0,this.dirty=this.lazy,this.deps=Object.create(null),this.newDeps=null,this.prevError=null,r)this.getter=e,this.setter=void 0;else{var s=Wt(e,this.twoWay);this.getter=s.get,this.setter=s.set}this.value=this.lazy?void 0:this.get(),this.queued=this.shallow=!1}function Jt(t){var e,i;if(Oi(t))for(e=t.length;e--;)Jt(t[e]);else if(m(t))for(i=Object.keys(t),e=i.length;e--;)Jt(t[i[e]])}function Qt(t){return et(t)&&ot(t.content)}function Gt(t,e){var i=e?t:t.trim(),n=ur.get(i);if(n)return n;var r=document.createDocumentFragment(),s=t.match(dr),o=vr.test(t);if(s||o){var a=s&&s[1],h=pr[a]||pr.efault,l=h[0],c=h[1],u=h[2],f=document.createElement("div");for(f.innerHTML=c+t+u;l--;)f=f.lastChild;for(var p;p=f.firstChild;)r.appendChild(p)}else r.appendChild(document.createTextNode(t));return e||Y(r),ur.put(i,r),r}function Kt(t){if(Qt(t))return Y(t.content),t.content;if("SCRIPT"===t.tagName)return Gt(t.textContent);for(var e,i=Zt(t),n=document.createDocumentFragment();e=i.firstChild;)n.appendChild(e);return Y(n),n}function Zt(t){if(!t.querySelectorAll)return t.cloneNode();var e,i,n,r=t.cloneNode(!0);if(mr){var s=r;if(Qt(t)&&(t=t.content,s=r.content),i=t.querySelectorAll("template"),i.length)for(n=s.querySelectorAll("template"),e=n.length;e--;)n[e].parentNode.replaceChild(Zt(i[e]),n[e])}if(gr)if("TEXTAREA"===t.tagName)r.value=t.value;else if(i=t.querySelectorAll("textarea"),i.length)for(n=r.querySelectorAll("textarea"),e=n.length;e--;)n[e].value=i[e].value;return r}function Xt(t,e,i){var n,r;return ot(t)?(Y(t),e?Zt(t):t):("string"==typeof t?i||"#"!==t.charAt(0)?r=Gt(t,i):(r=fr.get(t),r||(n=document.getElementById(t.slice(1)),n&&(r=Kt(n),fr.put(t,r)))):t.nodeType&&(r=Kt(t)),r&&e?Zt(r):r)}function Yt(t,e,i,n,r,s){this.children=[],this.childFrags=[],this.vm=e,this.scope=r,this.inserted=!1,this.parentFrag=s,s&&s.childFrags.push(this),this.unlink=t(e,i,n,r,this);var o=this.single=1===i.childNodes.length&&!i.childNodes[0].__v_anchor;o?(this.node=i.childNodes[0],this.before=te,this.remove=ee):(this.node=it("fragment-start"),this.end=it("fragment-end"),this.frag=i,U(this.node,i),i.appendChild(this.end),this.before=ie,this.remove=ne),this.node.__v_frag=this}function te(t,e){this.inserted=!0;var i=e!==!1?P:V;i(this.node,t,this.vm),L(this.node)&&this.callHook(re)}function ee(){this.inserted=!1;var t=L(this.node),e=this;this.beforeRemove(),D(this.node,this.vm,function(){t&&e.callHook(se),e.destroy()})}function ie(t,e){this.inserted=!0;var i=this.vm,n=e!==!1?P:V;rt(this.node,this.end,function(e){n(e,t,i)}),L(this.node)&&this.callHook(re)}function ne(){this.inserted=!1;var t=this,e=L(this.node);this.beforeRemove(),st(this.node,this.end,this.vm,this.frag,function(){e&&t.callHook(se),t.destroy()})}function re(t){t._isAttached||t._callHook("attached")}function se(t){t._isAttached&&t._callHook("detached")}function oe(t,e){this.vm=t;var i,n="string"==typeof e;n||et(e)?i=Xt(e,!0):(i=document.createDocumentFragment(),i.appendChild(e)),this.template=i;var r,s=t.constructor.cid;if(s>0){var o=s+(n?e:at(e));r=yr.get(o),r||(r=Te(i,t.$options,!0),yr.put(o,r))}else r=Te(i,t.$options,!0);this.linker=r}function ae(t,e,i){var n=t.node.previousSibling;if(n){for(t=n.__v_frag;!(t&&t.forId===i&&t.inserted||n===e);){if(n=n.previousSibling,!n)return;t=n.__v_frag}return t}}function he(t){var e=t.node;if(t.end)for(;!e.__vue__&&e!==t.end&&e.nextSibling;)e=e.nextSibling;return e.__vue__}function le(t){for(var e=-1,i=new Array(Math.floor(t));++e<t;)i[e]=e;return i}function ce(t,e,i){for(var n,r,s,o=e?[]:null,a=0,h=t.options.length;h>a;a++)if(n=t.options[a],s=i?n.hasAttribute("selected"):n.selected){if(r=n.hasOwnProperty("_value")?n._value:n.value,!e)return r;o.push(r)}return o}function ue(t,e){for(var i=t.length;i--;)if(w(t[i],e))return i;return-1}function fe(t,e){var i=e.map(function(t){var e=t.charCodeAt(0);return e>47&&58>e?parseInt(t,10):1===t.length&&(e=t.toUpperCase().charCodeAt(0),e>64&&91>e)?e:Br[t]});return i=[].concat.apply([],i),function(e){return i.indexOf(e.keyCode)>-1?t.call(this,e):void 0}}function pe(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function de(t){return function(e){return e.preventDefault(),t.call(this,e)}}function ve(t){return function(e){return e.target===e.currentTarget?t.call(this,e):void 0}}function me(t){if(qr[t])return qr[t];var e=ge(t);return qr[t]=qr[e]=e,e}function ge(t){t=u(t);var e=l(t),i=e.charAt(0).toUpperCase()+e.slice(1);Jr||(Jr=document.createElement("div"));for(var n,r=zr.length;r--;)if(n=Ir[r]+i,n in Jr.style)return zr[r]+t;return e in Jr.style?t:void 0}function _e(t){for(var e={},i=t.trim().split(/\s+/),n=i.length;n--;)e[i[n]]=!0;return e}function be(t,e){return Oi(t)?t.indexOf(e)>-1:i(t,e)}function ye(t,e,i){function n(){++s>=r?i():t[s].call(e,n)}var r=t.length,s=0;t[0].call(e,n)}function Ce(t){cs.push(t),us||(us=!0,Wi(we))}function we(){for(var t=document.documentElement.offsetHeight,e=0;e<cs.length;e++)cs[e]();return cs=[],us=!1,t}function $e(t,e,i,n){this.id=e,this.el=t,this.enterClass=i&&i.enterClass||e+"-enter",this.leaveClass=i&&i.leaveClass||e+"-leave",this.hooks=i,this.vm=n,this.pendingCssEvent=this.pendingCssCb=this.cancel=this.pendingJsCb=this.op=this.cb=null,this.justEntered=!1,this.entered=this.left=!1,this.typeCache={},this.type=i&&i.type;var r=this;["enterNextTick","enterDone","leaveNextTick","leaveDone"].forEach(function(t){r[t]=p(r[t],r)})}function ke(t){if(/svg$/.test(t.namespaceURI)){var e=t.getBoundingClientRect();return!(e.width||e.height)}return!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)}function xe(t,e){for(var i,r,s,o,a,h,c,f=[],p=Object.keys(e),d=p.length;d--;)r=p[d],i=e[r]||ys,a=l(r),Cs.test(a)&&(c={name:r,path:a,options:i,mode:bs.ONE_WAY,raw:null},s=u(r),null===(o=W(t,s))&&(null!==(o=W(t,s+".sync"))?c.mode=bs.TWO_WAY:null!==(o=W(t,s+".once"))&&(c.mode=bs.ONE_TIME)),null!==o?(c.raw=o,h=A(o),o=h.expression,c.filters=h.filters,n(o)&&!h.filters?c.optimizedLiteral=!0:c.dynamic=!0,c.parentPath=o):null!==(o=M(t,s))&&(c.raw=o),f.push(c));return Ae(f)}function Ae(t){return function(e,i){e._props={};for(var n,r,s,l,c,u=t.length;u--;)if(n=t[u],c=n.raw,r=n.path,s=n.options,e._props[r]=n,null===c)ct(e,n,Oe(e,s));else if(n.dynamic)n.mode===bs.ONE_TIME?(l=(i||e._context||e).$get(n.parentPath),ct(e,n,l)):e._context?e._bindDir({name:"prop",def:ls,prop:n},null,null,i):ct(e,n,e.$get(n.parentPath));else if(n.optimizedLiteral){var f=h(c);l=f===c?a(o(c)):f,ct(e,n,l)}else l=s.type===Boolean&&""===c?!0:c,ct(e,n,l)}}function Oe(t,e){if(!i(e,"default"))return e.type===Boolean?!1:void 0;var n=e["default"];return m(n),"function"==typeof n&&e.type!==Function?n.call(t):n}function Te(t,e,i){var n=i||!e._asComponent?De(t,e):null,r=n&&n.terminal||"SCRIPT"===t.tagName||!t.hasChildNodes()?null:Be(t.childNodes,e);return function(t,e,i,s,o){var a=d(e.childNodes),h=Ne(function(){n&&n(t,e,i,s,o),r&&r(t,a,i,s,o)},t);return Ee(t,h)}}function Ne(t,e){e._directives=[];var i=e._directives.length;t();var n=e._directives.slice(i);n.sort(je);for(var r=0,s=n.length;s>r;r++)n[r]._bind();return n}function je(t,e){return t=t.descriptor.def.priority||Ts,e=e.descriptor.def.priority||Ts,t>e?-1:t===e?0:1}function Ee(t,e,i,n){function r(r){Se(t,e,r),i&&n&&Se(i,n)}return r.dirs=e,r}function Se(t,e,i){for(var n=e.length;n--;)e[n]._teardown()}function Fe(t,e,i,n){var r=xe(e,i),s=Ne(function(){r(t,n)},t);return Ee(t,s)}function Pe(t,e,i){var n,r,s=e._containerAttrs,o=e._replacerAttrs;return 11!==t.nodeType&&(e._asComponent?(s&&i&&(n=Qe(s,i)),o&&(r=Qe(o,e))):r=Qe(t.attributes,e)),e._containerAttrs=e._replacerAttrs=null,function(t,e,i){var s,o=t._context;o&&n&&(s=Ne(function(){n(o,e,null,i)},o));var a=Ne(function(){r&&r(t,e)},t);return Ee(t,a,o,s)}}function De(t,e){var i=t.nodeType;return 1===i&&"SCRIPT"!==t.tagName?Re(t,e):3===i&&t.data.trim()?He(t,e):null}function Re(t,e){if("TEXTAREA"===t.tagName){var i=N(t.value);i&&(t.setAttribute(":value",j(i)),t.value="")}var n,r=t.hasAttributes();return r&&(n=Ue(t,e)),n||(n=ze(t,e)),n||(n=Ie(t,e)),!n&&r&&(n=Qe(t.attributes,e)),n}function He(t,e){if(t._skip)return Le;var i=N(t.wholeText);if(!i)return null;for(var n=t.nextSibling;n&&3===n.nodeType;)n._skip=!0,n=n.nextSibling;for(var r,s,o=document.createDocumentFragment(),a=0,h=i.length;h>a;a++)s=i[a],r=s.tag?Me(s,e):document.createTextNode(s.value),o.appendChild(r);return We(i,o,e)}function Le(t,e){I(e)}function Me(t,e){function i(e){if(!t.descriptor){var i=A(t.value);t.descriptor={name:e,def:ss[e],expression:i.expression,filters:i.filters}}}var n;return t.oneTime?n=document.createTextNode(t.value):t.html?(n=document.createComment("v-html"),i("html")):(n=document.createTextNode(" "),i("text")),n}function We(t,e){return function(i,n,r,s){for(var o,a,h,l=e.cloneNode(!0),c=d(l.childNodes),u=0,f=t.length;f>u;u++)o=t[u],a=o.value,o.tag&&(h=c[u],o.oneTime?(a=(s||i).$eval(a),o.html?q(h,Xt(a,!0)):h.data=a):i._bindDir(o.descriptor,h,r,s));q(n,l)}}function Be(t,e){for(var i,n,r,s=[],o=0,a=t.length;a>o;o++)r=t[o],i=De(r,e),n=i&&i.terminal||"SCRIPT"===r.tagName||!r.hasChildNodes()?null:Be(r.childNodes,e),s.push(i,n);return s.length?Ve(s):null}function Ve(t){return function(e,i,n,r,s){for(var o,a,h,l=0,c=0,u=t.length;u>l;c++){o=i[c],a=t[l++],h=t[l++];var f=d(o.childNodes);a&&a(e,o,n,r,s),h&&h(e,f,n,r,s)}}}function ze(t,e){var i=t.tagName.toLowerCase();if(!gn.test(i)){var n=bt(e,"elementDirectives",i);return n?Je(t,i,"",e,n):void 0}}function Ie(t,e){var i=ht(t,e);if(i){var n=nt(t),r={name:"component",ref:n,expression:i.id,def:_s.component,modifiers:{literal:!i.dynamic}},s=function(t,e,i,s,o){n&&At((s||t).$refs,n,null),t._bindDir(r,e,i,s,o)};return s.terminal=!0,s}}function Ue(t,e){if(null!==M(t,"v-pre"))return qe;if(t.hasAttribute("v-else")){var i=t.previousElementSibling;if(i&&i.hasAttribute("v-if"))return qe}for(var n,r,s=0,o=Os.length;o>s;s++)if(r=Os[s],n=t.getAttribute("v-"+r),null!=n)return Je(t,r,n,e)}function qe(){}function Je(t,e,i,n,r){var s=A(i),o={name:e,expression:s.expression,filters:s.filters,raw:i,def:r||bt(n,"directives",e)};"for"!==e&&"router-view"!==e||(o.ref=nt(t));var a=function(t,e,i,n,r){o.ref&&At((n||t).$refs,o.ref,null),t._bindDir(o,e,i,n,r)};return a.terminal=!0,a}function Qe(t,e){function i(t,e,i){var n=i&&Ze(i),r=!n&&A(s);v.push({name:t,attr:o,raw:a,def:e,arg:l,modifiers:c,expression:r&&r.expression,filters:r&&r.filters,interp:i,hasOneTime:n})}for(var n,r,s,o,a,h,l,c,u,f,p,d=t.length,v=[];d--;)if(n=t[d],r=o=n.name,s=a=n.value,f=N(s),l=null,c=Ge(r),r=r.replace(xs,""),f)s=j(f),l=r,i("bind",ss.bind,f);else if(As.test(r))c.literal=!ws.test(r),i("transition",_s.transition);else if($s.test(r))l=r.replace($s,""),i("on",ss.on);else if(ws.test(r))h=r.replace(ws,""),"style"===h||"class"===h?i(h,_s[h]):(l=h,i("bind",ss.bind));else if(p=r.match(ks)){if(h=p[1],l=p[2],"else"===h)continue;u=bt(e,"directives",h),u&&i(h,u)}return v.length?Ke(v):void 0}function Ge(t){var e=Object.create(null),i=t.match(xs);if(i)for(var n=i.length;n--;)e[i[n].slice(1)]=!0;return e}function Ke(t){return function(e,i,n,r,s){for(var o=t.length;o--;)e._bindDir(t[o],i,n,r,s)}}function Ze(t){for(var e=t.length;e--;)if(t[e].oneTime)return!0}function Xe(t,e){return e&&(e._containerAttrs=ti(t)),et(t)&&(t=Xt(t)),e&&(e._asComponent&&!e.template&&(e.template="<slot></slot>"),e.template&&(e._content=X(t),t=Ye(t,e))),ot(t)&&(U(it("v-start",!0),t),t.appendChild(it("v-end",!0))),t}function Ye(t,e){var i=e.template,n=Xt(i,!0);if(n){var r=n.firstChild,s=r.tagName&&r.tagName.toLowerCase();return e.replace?(t===document.body,n.childNodes.length>1||1!==r.nodeType||"component"===s||bt(e,"components",s)||B(r,"is")||bt(e,"elementDirectives",s)||r.hasAttribute("v-for")||r.hasAttribute("v-if")?n:(e._replacerAttrs=ti(r),ei(t,r),r)):(t.appendChild(n),t)}}function ti(t){return 1===t.nodeType&&t.hasAttributes()?d(t.attributes):void 0}function ei(t,e){for(var i,n,r=t.attributes,s=r.length;s--;)i=r[s].name,n=r[s].value,e.hasAttribute(i)||Ns.test(i)?"class"!==i||N(n)||n.split(/\s+/).forEach(function(t){K(e,t)}):e.setAttribute(i,n)}function ii(t,e,i){function n(t,i){var n='[slot="'+i+'"]',s=e.querySelectorAll(n);s.length&&(r[i]=ni(s,e))}if(e){var r=i._slotContents={},s=t.querySelectorAll("slot");if(s.length){for(var o,a,h,l=0,c=s.length;c>l;l++)a=s[l],(h=a.getAttribute("name"))?n(a,h):o=!0;o&&(r["default"]=ni(e.childNodes,e))}}}function ni(t,e){var i=document.createDocumentFragment();t=d(t);for(var n=0,r=t.length;r>n;n++){var s=t[n];s.parentNode===e&&(!et(s)||s.hasAttribute("v-if")||s.hasAttribute("v-for")||(e.removeChild(s),s=Xt(s)),i.appendChild(s))}return i}function ri(e){function n(){}function s(t,e){var i=new qt(e,t,null,{lazy:!0});return function(){return i.dirty&&i.evaluate(),Ct.target&&i.depend(),i.value}}Object.defineProperty(e.prototype,"$data",{get:function(){return this._data},set:function(t){t!==this._data&&this._setData(t)}}),e.prototype._initState=function(){this._initProps(),this._initMeta(),this._initMethods(),this._initData(),this._initComputed()},e.prototype._initProps=function(){var t=this.$options,e=t.el,i=t.props;e=t.el=H(e),this._propsUnlinkFn=e&&1===e.nodeType&&i?Fe(this,e,i,this._scope):null},e.prototype._initData=function(){var e=this._data,n=this.$options.data,r=n&&n();if(r){this._data=r;for(var s in e)null===this._props[s].raw&&i(r,s)||t(r,s,e[s])}var o,a,h=this._data,l=Object.keys(h);for(o=l.length;o--;)a=l[o],this._proxy(a);xt(h,this)},e.prototype._setData=function(t){t=t||{};var e=this._data;this._data=t;var n,r,s;for(n=Object.keys(e),s=n.length;s--;)r=n[s],r in t||this._unproxy(r);for(n=Object.keys(t),s=n.length;s--;)r=n[s],i(this,r)||this._proxy(r);e.__ob__.removeVm(this),xt(t,this),this._digest()},e.prototype._proxy=function(t){if(!r(t)){var e=this;Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return e._data[t]},set:function(i){e._data[t]=i}})}},e.prototype._unproxy=function(t){r(t)||delete this[t]},e.prototype._digest=function(){for(var t=0,e=this._watchers.length;e>t;t++)this._watchers[t].update(!0)},e.prototype._initComputed=function(){var t=this.$options.computed;if(t)for(var e in t){var i=t[e],r={enumerable:!0,configurable:!0};"function"==typeof i?(r.get=s(i,this),r.set=n):(r.get=i.get?i.cache!==!1?s(i.get,this):p(i.get,this):n,r.set=i.set?p(i.set,this):n),Object.defineProperty(this,e,r)}},e.prototype._initMethods=function(){var t=this.$options.methods;if(t)for(var e in t)this[e]=p(t[e],this)},e.prototype._initMeta=function(){var t=this.$options._meta;if(t)for(var e in t)At(this,e,t[e])}}function si(t){function e(t,e){for(var i,n,r=e.attributes,s=0,o=r.length;o>s;s++)i=r[s].name,Es.test(i)&&(i=i.replace(Es,""),n=(t._scope||t._context).$eval(r[s].value,!0),"function"==typeof n&&(n._fromParent=!0,t.$on(i.replace(Es),n)))}function i(t,e,i){if(i){var r,s,o,a;for(s in i)if(r=i[s],Oi(r))for(o=0,a=r.length;a>o;o++)n(t,e,s,r[o]);else n(t,e,s,r)}}function n(t,e,i,r,s){var o=typeof r;if("function"===o)t[e](i,r,s);else if("string"===o){var a=t.$options.methods,h=a&&a[r];h&&t[e](i,h,s)}else r&&"object"===o&&n(t,e,i,r.handler,r)}function r(){this._isAttached||(this._isAttached=!0,this.$children.forEach(s))}function s(t){!t._isAttached&&L(t.$el)&&t._callHook("attached")}function o(){this._isAttached&&(this._isAttached=!1,this.$children.forEach(a))}function a(t){t._isAttached&&!L(t.$el)&&t._callHook("detached")}t.prototype._initEvents=function(){var t=this.$options;t._asComponent&&e(this,t.el),i(this,"$on",t.events),i(this,"$watch",t.watch)},t.prototype._initDOMHooks=function(){this.$on("hook:attached",r),this.$on("hook:detached",o)},t.prototype._callHook=function(t){this.$emit("pre-hook:"+t);var e=this.$options[t];if(e)for(var i=0,n=e.length;n>i;i++)e[i].call(this);this.$emit("hook:"+t)}}function oi(){}function ai(t,e,i,n,r,s){this.vm=e,this.el=i,this.descriptor=t,this.name=t.name,this.expression=t.expression,this.arg=t.arg,this.modifiers=t.modifiers,this.filters=t.filters,this.literal=this.modifiers&&this.modifiers.literal,this._locked=!1,this._bound=!1,this._listeners=null,this._host=n,this._scope=r,this._frag=s}function hi(t){t.prototype._updateRef=function(t){var e=this.$options._ref;if(e){var i=(this._scope||this._context).$refs;t?i[e]===this&&(i[e]=null):i[e]=this}},t.prototype._compile=function(t){var e=this.$options,i=t;if(t=Xe(t,e),this._initElement(t),1!==t.nodeType||null===M(t,"v-pre")){var n=this._context&&this._context.$options,r=Pe(t,e,n);ii(t,e._content,this);var s,o=this.constructor;e._linkerCachable&&(s=o.linker,s||(s=o.linker=Te(t,e)));var a=r(this,t,this._scope),h=s?s(this,t):Te(t,e)(this,t);this._unlinkFn=function(){a(),h(!0)},e.replace&&q(i,t),this._isCompiled=!0,this._callHook("compiled")}},t.prototype._initElement=function(t){ot(t)?(this._isFragment=!0,this.$el=this._fragmentStart=t.firstChild,this._fragmentEnd=t.lastChild,3===this._fragmentStart.nodeType&&(this._fragmentStart.data=this._fragmentEnd.data=""),this._fragment=t):this.$el=t,this.$el.__vue__=this,this._callHook("beforeCompile")},t.prototype._bindDir=function(t,e,i,n,r){this._directives.push(new ai(t,this,e,i,n,r))},t.prototype._destroy=function(t,e){if(this._isBeingDestroyed)return void(e||this._cleanup());var i,n,r=this,s=function(){!i||n||e||r._cleanup()};t&&this.$el&&(n=!0,this.$remove(function(){n=!1,s()})),this._callHook("beforeDestroy"),this._isBeingDestroyed=!0;var o,a=this.$parent;for(a&&!a._isBeingDestroyed&&(a.$children.$remove(this),this._updateRef(!0)),o=this.$children.length;o--;)this.$children[o].$destroy();for(this._propsUnlinkFn&&this._propsUnlinkFn(),this._unlinkFn&&this._unlinkFn(),o=this._watchers.length;o--;)this._watchers[o].teardown();this.$el&&(this.$el.__vue__=null),i=!0,s()},t.prototype._cleanup=function(){this._isDestroyed||(this._frag&&this._frag.children.$remove(this),this._data.__ob__&&this._data.__ob__.removeVm(this),this.$el=this.$parent=this.$root=this.$children=this._watchers=this._context=this._scope=this._directives=null,this._isDestroyed=!0,this._callHook("destroyed"),this.$off())}}function li(t){t.prototype._applyFilters=function(t,e,i,n){var r,s,o,a,h,l,c,u,f;for(l=0,c=i.length;c>l;l++)if(r=i[l],s=bt(this.$options,"filters",r.name),s&&(s=n?s.write:s.read||s,"function"==typeof s)){if(o=n?[t,e]:[t],h=n?2:1,r.args)for(u=0,f=r.args.length;f>u;u++)a=r.args[u],o[u+h]=a.dynamic?this.$get(a.value):a.value;t=s.apply(this,o)}return t},t.prototype._resolveComponent=function(e,i){var n=bt(this.$options,"components",e);if(n)if(n.options)i(n);else if(n.resolved)i(n.resolved);else if(n.requested)n.pendingCallbacks.push(i);else{n.requested=!0;var r=n.pendingCallbacks=[i];n.call(this,function(e){g(e)&&(e=t.extend(e)),n.resolved=e;for(var i=0,s=r.length;s>i;i++)r[i](e)},function(t){})}}}function ci(t){function i(t){return JSON.parse(JSON.stringify(t))}t.prototype.$get=function(t,e){var i=Wt(t);if(i){if(e&&!Bt(t)){var n=this;return function(){n.$arguments=d(arguments);var t=i.get.call(n,n);return n.$arguments=null,
7t}}try{return i.get.call(this,this)}catch(r){}}},t.prototype.$set=function(t,e){var i=Wt(t,!0);i&&i.set&&i.set.call(this,this,e)},t.prototype.$delete=function(t){e(this._data,t)},t.prototype.$watch=function(t,e,i){var n,r=this;"string"==typeof t&&(n=A(t),t=n.expression);var s=new qt(r,t,e,{deep:i&&i.deep,sync:i&&i.sync,filters:n&&n.filters,user:!i||i.user!==!1});return i&&i.immediate&&e.call(r,s.value),function(){s.teardown()}},t.prototype.$eval=function(t,e){if(Ss.test(t)){var i=A(t),n=this.$get(i.expression,e);return i.filters?this._applyFilters(n,null,i.filters):n}return this.$get(t,e)},t.prototype.$interpolate=function(t){var e=N(t),i=this;return e?1===e.length?i.$eval(e[0].value)+"":e.map(function(t){return t.tag?i.$eval(t.value):t.value}).join(""):t},t.prototype.$log=function(t){var e=t?St(this._data,t):this._data;if(e&&(e=i(e)),!t)for(var n in this.$options.computed)e[n]=i(this[n]);console.log(e)}}function ui(t){function e(t,e,n,r,s,o){e=i(e);var a=!L(e),h=r===!1||a?s:o,l=!a&&!t._isAttached&&!L(t.$el);return t._isFragment?(rt(t._fragmentStart,t._fragmentEnd,function(i){h(i,e,t)}),n&&n()):h(t.$el,e,t,n),l&&t._callHook("attached"),t}function i(t){return"string"==typeof t?document.querySelector(t):t}function n(t,e,i,n){e.appendChild(t),n&&n()}function r(t,e,i,n){V(t,e),n&&n()}function s(t,e,i){I(t),i&&i()}t.prototype.$nextTick=function(t){Wi(t,this)},t.prototype.$appendTo=function(t,i,r){return e(this,t,i,r,n,F)},t.prototype.$prependTo=function(t,e,n){return t=i(t),t.hasChildNodes()?this.$before(t.firstChild,e,n):this.$appendTo(t,e,n),this},t.prototype.$before=function(t,i,n){return e(this,t,i,n,r,P)},t.prototype.$after=function(t,e,n){return t=i(t),t.nextSibling?this.$before(t.nextSibling,e,n):this.$appendTo(t.parentNode,e,n),this},t.prototype.$remove=function(t,e){if(!this.$el.parentNode)return t&&t();var i=this._isAttached&&L(this.$el);i||(e=!1);var n=this,r=function(){i&&n._callHook("detached"),t&&t()};if(this._isFragment)st(this._fragmentStart,this._fragmentEnd,this,this._fragment,r);else{var o=e===!1?s:D;o(this.$el,this,r)}return this}}function fi(t){function e(t,e,n){var r=t.$parent;if(r&&n&&!i.test(e))for(;r;)r._eventsCount[e]=(r._eventsCount[e]||0)+n,r=r.$parent}t.prototype.$on=function(t,i){return(this._events[t]||(this._events[t]=[])).push(i),e(this,t,1),this},t.prototype.$once=function(t,e){function i(){n.$off(t,i),e.apply(this,arguments)}var n=this;return i.fn=e,this.$on(t,i),this},t.prototype.$off=function(t,i){var n;if(!arguments.length){if(this.$parent)for(t in this._events)n=this._events[t],n&&e(this,t,-n.length);return this._events={},this}if(n=this._events[t],!n)return this;if(1===arguments.length)return e(this,t,-n.length),this._events[t]=null,this;for(var r,s=n.length;s--;)if(r=n[s],r===i||r.fn===i){e(this,t,-1),n.splice(s,1);break}return this},t.prototype.$emit=function(t){var e="string"==typeof t;t=e?t:t.name;var i=this._events[t],n=e||!i;if(i){i=i.length>1?d(i):i;var r=e&&i.some(function(t){return t._fromParent});r&&(n=!1);for(var s=d(arguments,1),o=0,a=i.length;a>o;o++){var h=i[o],l=h.apply(this,s);l!==!0||r&&!h._fromParent||(n=!0)}}return n},t.prototype.$broadcast=function(t){var e="string"==typeof t;if(t=e?t:t.name,this._eventsCount[t]){var i=this.$children,n=d(arguments);e&&(n[0]={name:t,source:this});for(var r=0,s=i.length;s>r;r++){var o=i[r],a=o.$emit.apply(o,n);a&&o.$broadcast.apply(o,n)}return this}},t.prototype.$dispatch=function(t){var e=this.$emit.apply(this,arguments);if(e){var i=this.$parent,n=d(arguments);for(n[0]={name:t,source:this};i;)e=i.$emit.apply(i,n),i=e?i.$parent:null;return this}};var i=/^hook:/}function pi(t){function e(){this._isAttached=!0,this._isReady=!0,this._callHook("ready")}t.prototype.$mount=function(t){return this._isCompiled?void 0:(t=H(t),t||(t=document.createElement("div")),this._compile(t),this._initDOMHooks(),L(this.$el)?(this._callHook("attached"),e.call(this)):this.$once("hook:attached",e),this)},t.prototype.$destroy=function(t,e){this._destroy(t,e)},t.prototype.$compile=function(t,e,i,n){return Te(t,this.$options,!0)(this,t,e,i,n)}}function di(t){this._init(t)}function vi(t,e,i){return i=i?parseInt(i,10):0,e=o(e),"number"==typeof e?t.slice(i,i+e):t}function mi(t,e,i){if(t=Rs(t),null==e)return t;if("function"==typeof e)return t.filter(e);e=(""+e).toLowerCase();for(var n,r,s,o,a="in"===i?3:2,h=d(arguments,a).reduce(function(t,e){return t.concat(e)},[]),l=[],c=0,u=t.length;u>c;c++)if(n=t[c],s=n&&n.$value||n,o=h.length){for(;o--;)if(r=h[o],"$key"===r&&_i(n.$key,e)||_i(St(s,r),e)){l.push(n);break}}else _i(n,e)&&l.push(n);return l}function gi(t,e,i){if(t=Rs(t),!e)return t;var n=i&&0>i?-1:1;return t.slice().sort(function(t,i){return"$key"!==e&&(m(t)&&"$value"in t&&(t=t.$value),m(i)&&"$value"in i&&(i=i.$value)),t=m(t)?St(t,e):t,i=m(i)?St(i,e):i,t===i?0:t>i?n:-n})}function _i(t,e){var i;if(g(t)){var n=Object.keys(t);for(i=n.length;i--;)if(_i(t[n[i]],e))return!0}else if(Oi(t)){for(i=t.length;i--;)if(_i(t[i],e))return!0}else if(null!=t)return t.toString().toLowerCase().indexOf(e)>-1}function bi(i){function n(t){return new Function("return function "+f(t)+" (options) { this._init(options) }")()}i.options={directives:ss,elementDirectives:Ds,filters:Ls,transitions:{},components:{},partials:{},replace:!0},i.util=xn,i.config=pn,i.set=t,i["delete"]=e,i.nextTick=Wi,i.compiler=js,i.FragmentFactory=oe,i.internalDirectives=_s,i.parsers={path:Vn,text:cn,template:_r,directive:rn,expression:ir},i.cid=0;var r=1;i.extend=function(t){t=t||{};var e=this,i=0===e.cid;if(i&&t._Ctor)return t._Ctor;var s=t.name||e.options.name,o=n(s||"VueComponent");return o.prototype=Object.create(e.prototype),o.prototype.constructor=o,o.cid=r++,o.options=_t(e.options,t),o["super"]=e,o.extend=e.extend,pn._assetTypes.forEach(function(t){o[t]=e[t]}),s&&(o.options.components[s]=o),i&&(t._Ctor=o),o},i.use=function(t){if(!t.installed){var e=d(arguments,1);return e.unshift(this),"function"==typeof t.install?t.install.apply(t,e):t.apply(null,e),t.installed=!0,this}},i.mixin=function(t){i.options=_t(i.options,t)},pn._assetTypes.forEach(function(t){i[t]=function(e,n){return n?("component"===t&&g(n)&&(n.name=e,n=i.extend(n)),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}),v(i.transition,vn)}var yi=Object.prototype.hasOwnProperty,Ci=/^\s?(true|false|-?[\d\.]+|'[^']*'|"[^"]*")\s?$/,wi=/-(\w)/g,$i=/([a-z\d])([A-Z])/g,ki=/(?:^|[-_\/])(\w)/g,xi=Object.prototype.toString,Ai="[object Object]",Oi=Array.isArray,Ti="__proto__"in{},Ni="undefined"!=typeof window&&"[object Object]"!==Object.prototype.toString.call(window),ji=Ni&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,Ei=Ni&&window.navigator.userAgent.toLowerCase(),Si=Ei&&Ei.indexOf("msie 9.0")>0,Fi=Ei&&Ei.indexOf("android")>0,Pi=void 0,Di=void 0,Ri=void 0,Hi=void 0;if(Ni&&!Si){var Li=void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend,Mi=void 0===window.onanimationend&&void 0!==window.onwebkitanimationend;Pi=Li?"WebkitTransition":"transition",Di=Li?"webkitTransitionEnd":"transitionend",Ri=Mi?"WebkitAnimation":"animation",Hi=Mi?"webkitAnimationEnd":"animationend"}var Wi=function(){function t(){n=!1;var t=i.slice(0);i=[];for(var e=0;e<t.length;e++)t[e]()}var e,i=[],n=!1;if("undefined"!=typeof MutationObserver){var r=1,s=new MutationObserver(t),o=document.createTextNode(r);s.observe(o,{characterData:!0}),e=function(){r=(r+1)%2,o.data=r}}else{var a=Ni?window:"undefined"!=typeof global?global:{};e=a.setImmediate||setTimeout}return function(r,s){var o=s?function(){r.call(s)}:r;i.push(o),n||(n=!0,e(t,0))}}(),Bi=$.prototype;Bi.put=function(t,e){var i;this.size===this.limit&&(i=this.shift());var n=this.get(t,!0);return n||(n={key:t},this._keymap[t]=n,this.tail?(this.tail.newer=n,n.older=this.tail):this.head=n,this.tail=n,this.size++),n.value=e,i},Bi.shift=function(){var t=this.head;return t&&(this.head=this.head.newer,this.head.older=void 0,t.newer=t.older=void 0,this._keymap[t.key]=void 0,this.size--),t},Bi.get=function(t,e){var i=this._keymap[t];if(void 0!==i)return i===this.tail?e?i:i.value:(i.newer&&(i===this.head&&(this.head=i.newer),i.newer.older=i.older),i.older&&(i.older.newer=i.newer),i.newer=void 0,i.older=this.tail,this.tail&&(this.tail.newer=i),this.tail=i,e?i:i.value)};var Vi,zi,Ii,Ui,qi,Ji,Qi,Gi,Ki,Zi,Xi,Yi,tn=new $(1e3),en=/[^\s'"]+|'[^']*'|"[^"]*"/g,nn=/^in$|^-?\d+/,rn=Object.freeze({parseDirective:A}),sn=/[-.*+?^${}()|[\]\/\\]/g,on=void 0,an=void 0,hn=void 0,ln=/[^|]\|[^|]/,cn=Object.freeze({compileRegex:T,parseText:N,tokensToExp:j}),un=["{{","}}"],fn=["{{{","}}}"],pn=Object.defineProperties({debug:!1,silent:!1,async:!0,warnExpressionErrors:!0,_delimitersChanged:!0,_assetTypes:["component","directive","elementDirective","filter","transition","partial"],_propBindingModes:{ONE_WAY:0,TWO_WAY:1,ONE_TIME:2},_maxUpdateCount:100},{delimiters:{get:function(){return un},set:function(t){un=t,T()},configurable:!0,enumerable:!0},unsafeDelimiters:{get:function(){return fn},set:function(t){fn=t,T()},configurable:!0,enumerable:!0}}),dn=void 0,vn=Object.freeze({appendWithTransition:F,beforeWithTransition:P,removeWithTransition:D,applyTransition:R}),mn=/^v-ref:/,gn=/^(div|p|span|img|a|b|i|br|ul|ol|li|h1|h2|h3|h4|h5|h6|code|pre|table|th|td|tr|form|label|input|select|option|nav|article|section|header|footer)$/,_n=/^(slot|partial|component)$/,bn=pn.optionMergeStrategies=Object.create(null);bn.data=function(t,e,i){return i?t||e?function(){var n="function"==typeof e?e.call(i):e,r="function"==typeof t?t.call(i):void 0;return n?pt(n,r):r}:void 0:e?"function"!=typeof e?t:t?function(){return pt(e.call(this),t.call(this))}:e:t},bn.el=function(t,e,i){if(i||!e||"function"==typeof e){var n=e||t;return i&&"function"==typeof n?n.call(i):n}},bn.init=bn.created=bn.ready=bn.attached=bn.detached=bn.beforeCompile=bn.compiled=bn.beforeDestroy=bn.destroyed=bn.activate=function(t,e){return e?t?t.concat(e):Oi(e)?e:[e]:t},bn.paramAttributes=function(){},pn._assetTypes.forEach(function(t){bn[t+"s"]=dt}),bn.watch=bn.events=function(t,e){if(!e)return t;if(!t)return e;var i={};v(i,t);for(var n in e){var r=i[n],s=e[n];r&&!Oi(r)&&(r=[r]),i[n]=r?r.concat(s):[s]}return i},bn.props=bn.methods=bn.computed=function(t,e){if(!e)return t;if(!t)return e;var i=Object.create(null);return v(i,t),v(i,e),i};var yn=function(t,e){return void 0===e?t:e},Cn=0;Ct.target=null,Ct.prototype.addSub=function(t){this.subs.push(t)},Ct.prototype.removeSub=function(t){this.subs.$remove(t)},Ct.prototype.depend=function(){Ct.target.addDep(this)},Ct.prototype.notify=function(){for(var t=d(this.subs),e=0,i=t.length;i>e;e++)t[e].update()};var wn=Array.prototype,$n=Object.create(wn);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(t){var e=wn[t];_($n,t,function(){for(var i=arguments.length,n=new Array(i);i--;)n[i]=arguments[i];var r,s=e.apply(this,n),o=this.__ob__;switch(t){case"push":r=n;break;case"unshift":r=n;break;case"splice":r=n.slice(2)}return r&&o.observeArray(r),o.dep.notify(),s})}),_(wn,"$set",function(t,e){return t>=this.length&&(this.length=Number(t)+1),this.splice(t,1,e)[0]}),_(wn,"$remove",function(t){if(this.length){var e=y(this,t);return e>-1?this.splice(e,1):void 0}});var kn=Object.getOwnPropertyNames($n);wt.prototype.walk=function(t){for(var e=Object.keys(t),i=0,n=e.length;n>i;i++)this.convert(e[i],t[e[i]])},wt.prototype.observeArray=function(t){for(var e=0,i=t.length;i>e;e++)xt(t[e])},wt.prototype.convert=function(t,e){At(this.value,t,e)},wt.prototype.addVm=function(t){(this.vms||(this.vms=[])).push(t)},wt.prototype.removeVm=function(t){this.vms.$remove(t)};var xn=Object.freeze({defineReactive:At,set:t,del:e,hasOwn:i,isLiteral:n,isReserved:r,_toString:s,toNumber:o,toBoolean:a,stripQuotes:h,camelize:l,hyphenate:u,classify:f,bind:p,toArray:d,extend:v,isObject:m,isPlainObject:g,def:_,debounce:b,indexOf:y,cancellable:C,looseEqual:w,isArray:Oi,hasProto:Ti,inBrowser:Ni,devtools:ji,isIE9:Si,isAndroid:Fi,get transitionProp(){return Pi},get transitionEndEvent(){return Di},get animationProp(){return Ri},get animationEndEvent(){return Hi},nextTick:Wi,query:H,inDoc:L,getAttr:M,getBindAttr:W,hasBindAttr:B,before:V,after:z,remove:I,prepend:U,replace:q,on:J,off:Q,setClass:G,addClass:K,removeClass:Z,extractContent:X,trimNode:Y,isTemplate:et,createAnchor:it,findRef:nt,mapNodeRange:rt,removeNodeRange:st,isFragment:ot,getOuterHTML:at,mergeOptions:_t,resolveAsset:bt,assertAsset:yt,checkComponentAttr:ht,initProp:ct,assertProp:ut,coerceProp:ft,commonTagRE:gn,reservedTagRE:_n,warn:dn}),An=0,On=new $(1e3),Tn=0,Nn=1,jn=2,En=3,Sn=0,Fn=1,Pn=2,Dn=3,Rn=4,Hn=5,Ln=6,Mn=7,Wn=8,Bn=[];Bn[Sn]={ws:[Sn],ident:[Dn,Tn],"[":[Rn],eof:[Mn]},Bn[Fn]={ws:[Fn],".":[Pn],"[":[Rn],eof:[Mn]},Bn[Pn]={ws:[Pn],ident:[Dn,Tn]},Bn[Dn]={ident:[Dn,Tn],0:[Dn,Tn],number:[Dn,Tn],ws:[Fn,Nn],".":[Pn,Nn],"[":[Rn,Nn],eof:[Mn,Nn]},Bn[Rn]={"'":[Hn,Tn],'"':[Ln,Tn],"[":[Rn,jn],"]":[Fn,En],eof:Wn,"else":[Rn,Tn]},Bn[Hn]={"'":[Rn,Tn],eof:Wn,"else":[Hn,Tn]},Bn[Ln]={'"':[Rn,Tn],eof:Wn,"else":[Ln,Tn]};var Vn=Object.freeze({parsePath:Et,getPath:St,setPath:Ft}),zn=new $(1e3),In="Math,Date,this,true,false,null,undefined,Infinity,NaN,isNaN,isFinite,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,parseInt,parseFloat",Un=new RegExp("^("+In.replace(/,/g,"\\b|")+"\\b)"),qn="break,case,class,catch,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,in,instanceof,let,return,super,switch,throw,try,var,while,with,yield,enum,await,implements,package,proctected,static,interface,private,public",Jn=new RegExp("^("+qn.replace(/,/g,"\\b|")+"\\b)"),Qn=/\s/g,Gn=/\n/g,Kn=/[\{,]\s*[\w\$_]+\s*:|('(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`)|new |typeof |void /g,Zn=/"(\d+)"/g,Xn=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['.*?'\]|\[".*?"\]|\[\d+\]|\[[A-Za-z_$][\w$]*\])*$/,Yn=/[^\w$\.](?:[A-Za-z_$][\w$]*)/g,tr=/^(?:true|false)$/,er=[],ir=Object.freeze({parseExpression:Wt,isSimplePath:Bt}),nr=[],rr=[],sr={},or={},ar=!1,hr=!1,lr=0;qt.prototype.addDep=function(t){var e=t.id;this.newDeps[e]||(this.newDeps[e]=t,this.deps[e]||(this.deps[e]=t,t.addSub(this)))},qt.prototype.get=function(){this.beforeGet();var t,e=this.scope||this.vm;try{t=this.getter.call(e,e)}catch(i){}return this.deep&&Jt(t),this.preProcess&&(t=this.preProcess(t)),this.filters&&(t=e._applyFilters(t,null,this.filters,!1)),this.postProcess&&(t=this.postProcess(t)),this.afterGet(),t},qt.prototype.set=function(t){var e=this.scope||this.vm;this.filters&&(t=e._applyFilters(t,this.value,this.filters,!0));try{this.setter.call(e,e,t)}catch(i){}var n=e.$forContext;if(n&&n.alias===this.expression){if(n.filters)return;n._withLock(function(){e.$key?n.rawValue[e.$key]=t:n.rawValue.$set(e.$index,t)})}},qt.prototype.beforeGet=function(){Ct.target=this,this.newDeps=Object.create(null)},qt.prototype.afterGet=function(){Ct.target=null;for(var t=Object.keys(this.deps),e=t.length;e--;){var i=t[e];this.newDeps[i]||this.deps[i].removeSub(this)}this.deps=this.newDeps},qt.prototype.update=function(t){this.lazy?this.dirty=!0:this.sync||!pn.async?this.run():(this.shallow=this.queued?t?this.shallow:!1:!!t,this.queued=!0,Ut(this))},qt.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||(m(t)||this.deep)&&!this.shallow){var e=this.value;this.value=t;this.prevError;this.cb.call(this.vm,t,e)}this.queued=this.shallow=!1}},qt.prototype.evaluate=function(){var t=Ct.target;this.value=this.get(),this.dirty=!1,Ct.target=t},qt.prototype.depend=function(){for(var t=Object.keys(this.deps),e=t.length;e--;)this.deps[t[e]].depend()},qt.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||this.vm._vForRemoving||this.vm._watchers.$remove(this);for(var t=Object.keys(this.deps),e=t.length;e--;)this.deps[t[e]].removeSub(this);this.active=!1,this.vm=this.cb=this.value=null}};var cr={bind:function(){this.attr=3===this.el.nodeType?"data":"textContent"},update:function(t){this.el[this.attr]=s(t)}},ur=new $(1e3),fr=new $(1e3),pr={efault:[0,"",""],legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]};pr.td=pr.th=[3,"<table><tbody><tr>","</tr></tbody></table>"],pr.option=pr.optgroup=[1,'<select multiple="multiple">',"</select>"],pr.thead=pr.tbody=pr.colgroup=pr.caption=pr.tfoot=[1,"<table>","</table>"],pr.g=pr.defs=pr.symbol=pr.use=pr.image=pr.text=pr.circle=pr.ellipse=pr.line=pr.path=pr.polygon=pr.polyline=pr.rect=[1,'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ev="http://www.w3.org/2001/xml-events"version="1.1">',"</svg>"];var dr=/<([\w:]+)/,vr=/&#?\w+?;/,mr=function(){if(Ni){var t=document.createElement("div");return t.innerHTML="<template>1</template>",!t.cloneNode(!0).firstChild.innerHTML}return!1}(),gr=function(){if(Ni){var t=document.createElement("textarea");return t.placeholder="t","t"===t.cloneNode(!0).value}return!1}(),_r=Object.freeze({cloneNode:Zt,parseTemplate:Xt}),br={bind:function(){8===this.el.nodeType&&(this.nodes=[],this.anchor=it("v-html"),q(this.el,this.anchor))},update:function(t){t=s(t),this.nodes?this.swap(t):this.el.innerHTML=t},swap:function(t){for(var e=this.nodes.length;e--;)I(this.nodes[e]);var i=Xt(t,!0,!0);this.nodes=d(i.childNodes),V(i,this.anchor)}};Yt.prototype.callHook=function(t){var e,i;for(e=0,i=this.childFrags.length;i>e;e++)this.childFrags[e].callHook(t);for(e=0,i=this.children.length;i>e;e++)t(this.children[e])},Yt.prototype.beforeRemove=function(){var t,e;for(t=0,e=this.childFrags.length;e>t;t++)this.childFrags[t].beforeRemove(!1);for(t=0,e=this.children.length;e>t;t++)this.children[t].$destroy(!1,!0);var i=this.unlink.dirs;for(t=0,e=i.length;e>t;t++)i[t]._watcher&&i[t]._watcher.teardown()},Yt.prototype.destroy=function(){this.parentFrag&&this.parentFrag.childFrags.$remove(this),this.node.__v_frag=null,this.unlink()};var yr=new $(5e3);oe.prototype.create=function(t,e,i){var n=Zt(this.template);return new Yt(this.linker,this.vm,n,t,e,i)};var Cr=700,wr=800,$r=850,kr=1100,xr=1500,Ar=1500,Or=1750,Tr=2e3,Nr=2e3,jr=2100,Er=0,Sr={priority:Tr,params:["track-by","stagger","enter-stagger","leave-stagger"],bind:function(){var t=this.expression.match(/(.*) (?:in|of) (.*)/);if(t){var e=t[1].match(/\((.*),(.*)\)/);e?(this.iterator=e[1].trim(),this.alias=e[2].trim()):this.alias=t[1].trim(),this.expression=t[2]}if(this.alias){this.id="__v-for__"+ ++Er;var i=this.el.tagName;this.isOption=("OPTION"===i||"OPTGROUP"===i)&&"SELECT"===this.el.parentNode.tagName,this.start=it("v-for-start"),this.end=it("v-for-end"),q(this.el,this.end),V(this.start,this.end),this.cache=Object.create(null),this.factory=new oe(this.vm,this.el)}},update:function(t){this.diff(t),this.updateRef(),this.updateModel()},diff:function(t){var e,n,r,s,o,a,h=t[0],l=this.fromObject=m(h)&&i(h,"$key")&&i(h,"$value"),c=this.params.trackBy,u=this.frags,f=this.frags=new Array(t.length),p=this.alias,d=this.iterator,v=this.start,g=this.end,_=L(v),b=!u;for(e=0,n=t.length;n>e;e++)h=t[e],s=l?h.$key:null,o=l?h.$value:h,a=!m(o),r=!b&&this.getCachedFrag(o,e,s),r?(r.reused=!0,r.scope.$index=e,s&&(r.scope.$key=s),d&&(r.scope[d]=null!==s?s:e),(c||l||a)&&(r.scope[p]=o)):(r=this.create(o,p,e,s),r.fresh=!b),f[e]=r,b&&r.before(g);if(!b){var y=0,C=u.length-f.length;for(this.vm._vForRemoving=!0,e=0,n=u.length;n>e;e++)r=u[e],r.reused||(this.deleteCachedFrag(r),this.remove(r,y++,C,_));this.vm._vForRemoving=!1,y&&(this.vm._watchers=this.vm._watchers.filter(function(t){return t.active}));var w,$,k,x=0;for(e=0,n=f.length;n>e;e++)r=f[e],w=f[e-1],$=w?w.staggerCb?w.staggerAnchor:w.end||w.node:v,r.reused&&!r.staggerCb?(k=ae(r,v,this.id),k===w||k&&ae(k,v,this.id)===w||this.move(r,$)):this.insert(r,x++,$,_),r.reused=r.fresh=!1}},create:function(t,e,i,n){var r=this._host,s=this._scope||this.vm,o=Object.create(s);o.$refs=Object.create(s.$refs),o.$els=Object.create(s.$els),o.$parent=s,o.$forContext=this,At(o,e,t),At(o,"$index",i),n?At(o,"$key",n):o.$key&&_(o,"$key",null),this.iterator&&At(o,this.iterator,null!==n?n:i);var a=this.factory.create(r,o,this._frag);return a.forId=this.id,this.cacheFrag(t,a,i,n),a},updateRef:function(){var t=this.descriptor.ref;if(t){var e,i=(this._scope||this.vm).$refs;this.fromObject?(e={},this.frags.forEach(function(t){e[t.scope.$key]=he(t)})):e=this.frags.map(he),i[t]=e}},updateModel:function(){if(this.isOption){var t=this.start.parentNode,e=t&&t.__v_model;e&&e.forceUpdate()}},insert:function(t,e,i,n){t.staggerCb&&(t.staggerCb.cancel(),t.staggerCb=null);var r=this.getStagger(t,e,null,"enter");if(n&&r){var s=t.staggerAnchor;s||(s=t.staggerAnchor=it("stagger-anchor"),s.__v_frag=t),z(s,i);var o=t.staggerCb=C(function(){t.staggerCb=null,t.before(s),I(s)});setTimeout(o,r)}else t.before(i.nextSibling)},remove:function(t,e,i,n){if(t.staggerCb)return t.staggerCb.cancel(),void(t.staggerCb=null);var r=this.getStagger(t,e,i,"leave");if(n&&r){var s=t.staggerCb=C(function(){t.staggerCb=null,t.remove()});setTimeout(s,r)}else t.remove()},move:function(t,e){e.nextSibling||this.end.parentNode.appendChild(this.end),t.before(e.nextSibling,!1)},cacheFrag:function(t,e,n,r){var s,o=this.params.trackBy,a=this.cache,h=!m(t);r||o||h?(s=o?"$index"===o?n:t[o]:r||t,a[s]||(a[s]=e)):(s=this.id,i(t,s)?null===t[s]&&(t[s]=e):_(t,s,e)),e.raw=t},getCachedFrag:function(t,e,i){var n,r=this.params.trackBy,s=!m(t);if(i||r||s){var o=r?"$index"===r?e:t[r]:i||t;n=this.cache[o]}else n=t[this.id];return n&&(n.reused||n.fresh),n},deleteCachedFrag:function(t){var e=t.raw,n=this.params.trackBy,r=t.scope,s=r.$index,o=i(r,"$key")&&r.$key,a=!m(e);if(n||o||a){var h=n?"$index"===n?s:e[n]:o||e;this.cache[h]=null}else e[this.id]=null,t.raw=null},getStagger:function(t,e,i,n){n+="Stagger";var r=t.node.__v_trans,s=r&&r.hooks,o=s&&(s[n]||s.stagger);return o?o.call(t,e,i):e*parseInt(this.params[n]||this.params.stagger,10)},_preProcess:function(t){return this.rawValue=t,t},_postProcess:function(t){if(Oi(t))return t;if(g(t)){for(var e,i=Object.keys(t),n=i.length,r=new Array(n);n--;)e=i[n],r[n]={$key:e,$value:t[e]};return r}return"number"!=typeof t||isNaN(t)||(t=le(t)),t||[]},unbind:function(){if(this.descriptor.ref&&((this._scope||this.vm).$refs[this.descriptor.ref]=null),this.frags)for(var t,e=this.frags.length;e--;)t=this.frags[e],this.deleteCachedFrag(t),t.destroy()}},Fr={priority:Nr,bind:function(){var t=this.el;if(t.__vue__)this.invalid=!0;else{var e=t.nextElementSibling;e&&null!==M(e,"v-else")&&(I(e),this.elseFactory=new oe(e._context||this.vm,e)),this.anchor=it("v-if"),q(t,this.anchor),this.factory=new oe(this.vm,t)}},update:function(t){this.invalid||(t?this.frag||this.insert():this.remove())},insert:function(){this.elseFrag&&(this.elseFrag.remove(),this.elseFrag=null),this.frag=this.factory.create(this._host,this._scope,this._frag),this.frag.before(this.anchor)},remove:function(){this.frag&&(this.frag.remove(),this.frag=null),this.elseFactory&&!this.elseFrag&&(this.elseFrag=this.elseFactory.create(this._host,this._scope,this._frag),this.elseFrag.before(this.anchor))},unbind:function(){this.frag&&this.frag.destroy(),this.elseFrag&&this.elseFrag.destroy()}},Pr={bind:function(){var t=this.el.nextElementSibling;t&&null!==M(t,"v-else")&&(this.elseEl=t)},update:function(t){this.apply(this.el,t),this.elseEl&&this.apply(this.elseEl,!t)},apply:function(t,e){function i(){t.style.display=e?"":"none"}L(t)?R(t,e?1:-1,i,this.vm):i()}},Dr={bind:function(){var t=this,e=this.el,i="range"===e.type,n=this.params.lazy,r=this.params.number,s=this.params.debounce,a=!1;if(Fi||i||(this.on("compositionstart",function(){a=!0}),this.on("compositionend",function(){a=!1,n||t.listener()})),this.focused=!1,i||n||(this.on("focus",function(){t.focused=!0}),this.on("blur",function(){t.focused=!1})),this.listener=this.rawListener=function(){if(!a&&t._bound){var n=r||i?o(e.value):e.value;t.set(n),Wi(function(){t._bound&&!t.focused&&t.update(t._watcher.value)})}},s&&(this.listener=b(this.listener,s)),this.hasjQuery="function"==typeof jQuery,this.hasjQuery){var h=jQuery.fn.on?"on":"bind";jQuery(e)[h]("change",this.rawListener),n||jQuery(e)[h]("input",this.listener)}else this.on("change",this.rawListener),n||this.on("input",this.listener);!n&&Si&&(this.on("cut",function(){Wi(t.listener)}),this.on("keyup",function(e){46!==e.keyCode&&8!==e.keyCode||t.listener()})),(e.hasAttribute("value")||"TEXTAREA"===e.tagName&&e.value.trim())&&(this.afterBind=this.listener)},update:function(t){this.el.value=s(t)},unbind:function(){var t=this.el;if(this.hasjQuery){var e=jQuery.fn.off?"off":"unbind";jQuery(t)[e]("change",this.listener),jQuery(t)[e]("input",this.listener)}}},Rr={bind:function(){var t=this,e=this.el;this.getValue=function(){if(e.hasOwnProperty("_value"))return e._value;var i=e.value;return t.params.number&&(i=o(i)),i},this.listener=function(){t.set(t.getValue())},this.on("change",this.listener),e.hasAttribute("checked")&&(this.afterBind=this.listener)},update:function(t){this.el.checked=w(t,this.getValue())}},Hr={bind:function(){var t=this,e=this.el;this.forceUpdate=function(){t._watcher&&t.update(t._watcher.get())};var i=this.multiple=e.hasAttribute("multiple");this.listener=function(){var n=ce(e,i);n=t.params.number?Oi(n)?n.map(o):o(n):n,t.set(n)},this.on("change",this.listener);var n=ce(e,i,!0);(i&&n.length||!i&&null!==n)&&(this.afterBind=this.listener),this.vm.$on("hook:attached",this.forceUpdate)},update:function(t){var e=this.el;e.selectedIndex=-1;for(var i,n,r=this.multiple&&Oi(t),s=e.options,o=s.length;o--;)i=s[o],n=i.hasOwnProperty("_value")?i._value:i.value,i.selected=r?ue(t,n)>-1:w(t,n)},unbind:function(){this.vm.$off("hook:attached",this.forceUpdate)}},Lr={bind:function(){function t(){var t=i.checked;return t&&i.hasOwnProperty("_trueValue")?i._trueValue:!t&&i.hasOwnProperty("_falseValue")?i._falseValue:t}var e=this,i=this.el;this.getValue=function(){return i.hasOwnProperty("_value")?i._value:e.params.number?o(i.value):i.value},this.listener=function(){var n=e._watcher.value;if(Oi(n)){var r=e.getValue();i.checked?y(n,r)<0&&n.push(r):n.$remove(r)}else e.set(t())},this.on("change",this.listener),i.hasAttribute("checked")&&(this.afterBind=this.listener)},update:function(t){var e=this.el;Oi(t)?e.checked=y(t,this.getValue())>-1:e.hasOwnProperty("_trueValue")?e.checked=w(t,e._trueValue):e.checked=!!t}},Mr={text:Dr,radio:Rr,select:Hr,checkbox:Lr},Wr={priority:wr,twoWay:!0,handlers:Mr,params:["lazy","number","debounce"],bind:function(){this.checkFilters(),this.hasRead&&!this.hasWrite;var t,e=this.el,i=e.tagName;if("INPUT"===i)t=Mr[e.type]||Mr.text;else if("SELECT"===i)t=Mr.select;else{if("TEXTAREA"!==i)return;t=Mr.text}e.__v_model=this,t.bind.call(this),this.update=t.update,this._unbind=t.unbind},checkFilters:function(){var t=this.filters;if(t)for(var e=t.length;e--;){var i=bt(this.vm.$options,"filters",t[e].name);("function"==typeof i||i.read)&&(this.hasRead=!0),i.write&&(this.hasWrite=!0)}},unbind:function(){this.el.__v_model=null,this._unbind&&this._unbind()}},Br={esc:27,tab:9,enter:13,space:32,"delete":[8,46],up:38,left:37,right:39,down:40},Vr={priority:Cr,acceptStatement:!0,keyCodes:Br,bind:function(){if("IFRAME"===this.el.tagName&&"load"!==this.arg){var t=this;this.iframeBind=function(){J(t.el.contentWindow,t.arg,t.handler,t.modifiers.capture)},this.on("load",this.iframeBind)}},update:function(t){if(this.descriptor.raw||(t=function(){}),"function"==typeof t){this.modifiers.stop&&(t=pe(t)),this.modifiers.prevent&&(t=de(t)),this.modifiers.self&&(t=ve(t));var e=Object.keys(this.modifiers).filter(function(t){return"stop"!==t&&"prevent"!==t});e.length&&(t=fe(t,e)),this.reset(),this.handler=t,this.iframeBind?this.iframeBind():J(this.el,this.arg,this.handler,this.modifiers.capture)}},reset:function(){var t=this.iframeBind?this.el.contentWindow:this.el;this.handler&&Q(t,this.arg,this.handler)},unbind:function(){this.reset()}},zr=["-webkit-","-moz-","-ms-"],Ir=["Webkit","Moz","ms"],Ur=/!important;?$/,qr=Object.create(null),Jr=null,Qr={deep:!0,update:function(t){"string"==typeof t?this.el.style.cssText=t:Oi(t)?this.handleObject(t.reduce(v,{})):this.handleObject(t||{})},handleObject:function(t){var e,i,n=this.cache||(this.cache={});for(e in n)e in t||(this.handleSingle(e,null),delete n[e]);for(e in t)i=t[e],i!==n[e]&&(n[e]=i,this.handleSingle(e,i))},handleSingle:function(t,e){if(t=me(t))if(null!=e&&(e+=""),e){var i=Ur.test(e)?"important":"";i&&(e=e.replace(Ur,"").trim()),this.el.style.setProperty(t,e,i)}else this.el.style.removeProperty(t)}},Gr="http://www.w3.org/1999/xlink",Kr=/^xlink:/,Zr=/^v-|^:|^@|^(?:is|transition|transition-mode|debounce|track-by|stagger|enter-stagger|leave-stagger)$/,Xr=/^(?:value|checked|selected|muted)$/,Yr=/^(?:draggable|contenteditable|spellcheck)$/,ts={value:"_value","true-value":"_trueValue","false-value":"_falseValue"},es={priority:$r,bind:function(){var t=this.arg,e=this.el.tagName;t||(this.deep=!0);var i=this.descriptor,n=i.interp;n&&(i.hasOneTime&&(this.expression=j(n,this._scope||this.vm)),(Zr.test(t)||"name"===t&&("PARTIAL"===e||"SLOT"===e))&&(this.el.removeAttribute(t),this.invalid=!0))},update:function(t){if(!this.invalid){var e=this.arg;this.arg?this.handleSingle(e,t):this.handleObject(t||{})}},handleObject:Qr.handleObject,handleSingle:function(t,e){var i=this.el,n=this.descriptor.interp;this.modifiers.camel&&(t=l(t)),!n&&Xr.test(t)&&t in i&&(i[t]="value"===t&&null==e?"":e);var r=ts[t];if(!n&&r){i[r]=e;var s=i.__v_model;s&&s.listener()}return"value"===t&&"TEXTAREA"===i.tagName?void i.removeAttribute(t):void(Yr.test(t)?i.setAttribute(t,e?"true":"false"):null!=e&&e!==!1?"class"===t?(i.__v_trans&&(e+=" "+i.__v_trans.id+"-transition"),G(i,e)):Kr.test(t)?i.setAttributeNS(Gr,t,e===!0?"":e):i.setAttribute(t,e===!0?"":e):i.removeAttribute(t))}},is={priority:xr,bind:function(){if(this.arg){var t=this.id=l(this.arg),e=(this._scope||this.vm).$els;i(e,t)?e[t]=this.el:At(e,t,this.el)}},unbind:function(){var t=(this._scope||this.vm).$els;t[this.id]===this.el&&(t[this.id]=null)}},ns={bind:function(){}},rs={bind:function(){var t=this.el;this.vm.$once("pre-hook:compiled",function(){t.removeAttribute("v-cloak")})}},ss={text:cr,html:br,"for":Sr,"if":Fr,show:Pr,model:Wr,on:Vr,bind:es,el:is,ref:ns,cloak:rs},os={deep:!0,update:function(t){t&&"string"==typeof t?this.handleObject(_e(t)):g(t)?this.handleObject(t):Oi(t)?this.handleArray(t):this.cleanup()},handleObject:function(t){this.cleanup(t);for(var e=this.prevKeys=Object.keys(t),i=0,n=e.length;n>i;i++){var r=e[i];t[r]?K(this.el,r):Z(this.el,r)}},handleArray:function(t){this.cleanup(t);for(var e=0,i=t.length;i>e;e++)t[e]&&K(this.el,t[e]);this.prevKeys=t.slice()},cleanup:function(t){if(this.prevKeys)for(var e=this.prevKeys.length;e--;){var i=this.prevKeys[e];!i||t&&be(t,i)||Z(this.el,i)}}},as={priority:Ar,params:["keep-alive","transition-mode","inline-template"],bind:function(){this.el.__vue__||(this.keepAlive=this.params.keepAlive,this.keepAlive&&(this.cache={}),this.params.inlineTemplate&&(this.inlineTemplate=X(this.el,!0)),this.pendingComponentCb=this.Component=null,this.pendingRemovals=0,this.pendingRemovalCb=null,this.anchor=it("v-component"),q(this.el,this.anchor),this.el.removeAttribute("is"),this.descriptor.ref&&this.el.removeAttribute("v-ref:"+u(this.descriptor.ref)),this.literal&&this.setComponent(this.expression))},update:function(t){this.literal||this.setComponent(t)},setComponent:function(t,e){if(this.invalidatePending(),t){var i=this;this.resolveComponent(t,function(){i.mountComponent(e)})}else this.unbuild(!0),this.remove(this.childVM,e),this.childVM=null},resolveComponent:function(t,e){var i=this;this.pendingComponentCb=C(function(n){i.ComponentName=n.options.name||t,i.Component=n,e()}),this.vm._resolveComponent(t,this.pendingComponentCb)},mountComponent:function(t){this.unbuild(!0);var e=this,i=this.Component.options.activate,n=this.getCached(),r=this.build();i&&!n?(this.waitingFor=r,ye(i,r,function(){e.waitingFor===r&&(e.waitingFor=null,e.transition(r,t))})):(n&&r._updateRef(),this.transition(r,t))},invalidatePending:function(){this.pendingComponentCb&&(this.pendingComponentCb.cancel(),
8this.pendingComponentCb=null)},build:function(t){var e=this.getCached();if(e)return e;if(this.Component){var i={name:this.ComponentName,el:Zt(this.el),template:this.inlineTemplate,parent:this._host||this.vm,_linkerCachable:!this.inlineTemplate,_ref:this.descriptor.ref,_asComponent:!0,_isRouterView:this._isRouterView,_context:this.vm,_scope:this._scope,_frag:this._frag};t&&v(i,t);var n=new this.Component(i);return this.keepAlive&&(this.cache[this.Component.cid]=n),n}},getCached:function(){return this.keepAlive&&this.cache[this.Component.cid]},unbuild:function(t){this.waitingFor&&(this.waitingFor.$destroy(),this.waitingFor=null);var e=this.childVM;return!e||this.keepAlive?void(e&&e._updateRef(!0)):void e.$destroy(!1,t)},remove:function(t,e){var i=this.keepAlive;if(t){this.pendingRemovals++,this.pendingRemovalCb=e;var n=this;t.$remove(function(){n.pendingRemovals--,i||t._cleanup(),!n.pendingRemovals&&n.pendingRemovalCb&&(n.pendingRemovalCb(),n.pendingRemovalCb=null)})}else e&&e()},transition:function(t,e){var i=this,n=this.childVM;switch(this.childVM=t,i.params.transitionMode){case"in-out":t.$before(i.anchor,function(){i.remove(n,e)});break;case"out-in":i.remove(n,function(){t.$before(i.anchor,e)});break;default:i.remove(n),t.$before(i.anchor,e)}},unbind:function(){if(this.invalidatePending(),this.unbuild(),this.cache){for(var t in this.cache)this.cache[t].$destroy();this.cache=null}}},hs=pn._propBindingModes,ls={bind:function(){var t=this.vm,e=t._context,i=this.descriptor.prop,n=i.path,r=i.parentPath,s=i.mode===hs.TWO_WAY,o=this.parentWatcher=new qt(e,r,function(e){e=ft(i,e),ut(i,e)&&(t[n]=e)},{twoWay:s,filters:i.filters,scope:this._scope});if(ct(t,i,o.value),s){var a=this;t.$once("pre-hook:created",function(){a.childWatcher=new qt(t,n,function(t){o.set(t)},{sync:!0})})}},unbind:function(){this.parentWatcher.teardown(),this.childWatcher&&this.childWatcher.teardown()}},cs=[],us=!1,fs="transition",ps="animation",ds=Pi+"Duration",vs=Ri+"Duration",ms=$e.prototype;ms.enter=function(t,e){this.cancelPending(),this.callHook("beforeEnter"),this.cb=e,K(this.el,this.enterClass),t(),this.entered=!1,this.callHookWithCb("enter"),this.entered||(this.cancel=this.hooks&&this.hooks.enterCancelled,Ce(this.enterNextTick))},ms.enterNextTick=function(){this.justEntered=!0;var t=this;setTimeout(function(){t.justEntered=!1},17);var e=this.enterDone,i=this.getCssTransitionType(this.enterClass);this.pendingJsCb?i===fs&&Z(this.el,this.enterClass):i===fs?(Z(this.el,this.enterClass),this.setupCssCb(Di,e)):i===ps?this.setupCssCb(Hi,e):e()},ms.enterDone=function(){this.entered=!0,this.cancel=this.pendingJsCb=null,Z(this.el,this.enterClass),this.callHook("afterEnter"),this.cb&&this.cb()},ms.leave=function(t,e){this.cancelPending(),this.callHook("beforeLeave"),this.op=t,this.cb=e,K(this.el,this.leaveClass),this.left=!1,this.callHookWithCb("leave"),this.left||(this.cancel=this.hooks&&this.hooks.leaveCancelled,this.op&&!this.pendingJsCb&&(this.justEntered?this.leaveDone():Ce(this.leaveNextTick)))},ms.leaveNextTick=function(){var t=this.getCssTransitionType(this.leaveClass);if(t){var e=t===fs?Di:Hi;this.setupCssCb(e,this.leaveDone)}else this.leaveDone()},ms.leaveDone=function(){this.left=!0,this.cancel=this.pendingJsCb=null,this.op(),Z(this.el,this.leaveClass),this.callHook("afterLeave"),this.cb&&this.cb(),this.op=null},ms.cancelPending=function(){this.op=this.cb=null;var t=!1;this.pendingCssCb&&(t=!0,Q(this.el,this.pendingCssEvent,this.pendingCssCb),this.pendingCssEvent=this.pendingCssCb=null),this.pendingJsCb&&(t=!0,this.pendingJsCb.cancel(),this.pendingJsCb=null),t&&(Z(this.el,this.enterClass),Z(this.el,this.leaveClass)),this.cancel&&(this.cancel.call(this.vm,this.el),this.cancel=null)},ms.callHook=function(t){this.hooks&&this.hooks[t]&&this.hooks[t].call(this.vm,this.el)},ms.callHookWithCb=function(t){var e=this.hooks&&this.hooks[t];e&&(e.length>1&&(this.pendingJsCb=C(this[t+"Done"])),e.call(this.vm,this.el,this.pendingJsCb))},ms.getCssTransitionType=function(t){if(!(!Di||document.hidden||this.hooks&&this.hooks.css===!1||ke(this.el))){var e=this.type||this.typeCache[t];if(e)return e;var i=this.el.style,n=window.getComputedStyle(this.el),r=i[ds]||n[ds];if(r&&"0s"!==r)e=fs;else{var s=i[vs]||n[vs];s&&"0s"!==s&&(e=ps)}return e&&(this.typeCache[t]=e),e}},ms.setupCssCb=function(t,e){this.pendingCssEvent=t;var i=this,n=this.el,r=this.pendingCssCb=function(s){s.target===n&&(Q(n,t,r),i.pendingCssEvent=i.pendingCssCb=null,!i.pendingJsCb&&e&&e())};J(n,t,r)};var gs={priority:kr,update:function(t,e){var i=this.el,n=bt(this.vm.$options,"transitions",t);t=t||"v",i.__v_trans=new $e(i,t,n,this.vm),e&&Z(i,e+"-transition"),K(i,t+"-transition")}},_s={style:Qr,"class":os,component:as,prop:ls,transition:gs},bs=pn._propBindingModes,ys={},Cs=/^[$_a-zA-Z]+[\w$]*$/,ws=/^v-bind:|^:/,$s=/^v-on:|^@/,ks=/^v-([^:]+)(?:$|:(.*)$)/,xs=/\.[^\.]+/g,As=/^(v-bind:|:)?transition$/,Os=["for","if"],Ts=1e3;qe.terminal=!0;var Ns=/[^\w\-:\.]/,js=Object.freeze({compile:Te,compileAndLinkProps:Fe,compileRoot:Pe,terminalDirectives:Os,transclude:Xe,scanSlots:ii}),Es=/^v-on:|^@/;ai.prototype._bind=function(){var t=this.name,e=this.descriptor;if(("cloak"!==t||this.vm._isCompiled)&&this.el&&this.el.removeAttribute){var i=e.attr||"v-"+t;this.el.removeAttribute(i)}var n=e.def;if("function"==typeof n?this.update=n:v(this,n),this._setupParams(),this.bind&&this.bind(),this._bound=!0,this.literal)this.update&&this.update(e.raw);else if((this.expression||this.modifiers)&&(this.update||this.twoWay)&&!this._checkStatement()){var r=this;this.update?this._update=function(t,e){r._locked||r.update(t,e)}:this._update=oi;var s=this._preProcess?p(this._preProcess,this):null,o=this._postProcess?p(this._postProcess,this):null,a=this._watcher=new qt(this.vm,this.expression,this._update,{filters:this.filters,twoWay:this.twoWay,deep:this.deep,preProcess:s,postProcess:o,scope:this._scope});this.afterBind?this.afterBind():this.update&&this.update(a.value)}},ai.prototype._setupParams=function(){if(this.params){var t=this.params;this.params=Object.create(null);for(var e,i,n,r=t.length;r--;)e=t[r],n=l(e),i=W(this.el,e),null!=i?this._setupParamWatcher(n,i):(i=M(this.el,e),null!=i&&(this.params[n]=""===i?!0:i))}},ai.prototype._setupParamWatcher=function(t,e){var i=this,n=!1,r=(this._scope||this.vm).$watch(e,function(e,r){if(i.params[t]=e,n){var s=i.paramWatchers&&i.paramWatchers[t];s&&s.call(i,e,r)}else n=!0},{immediate:!0,user:!1});(this._paramUnwatchFns||(this._paramUnwatchFns=[])).push(r)},ai.prototype._checkStatement=function(){var t=this.expression;if(t&&this.acceptStatement&&!Bt(t)){var e=Wt(t).get,i=this._scope||this.vm,n=function(t){i.$event=t,e.call(i,i),i.$event=null};return this.filters&&(n=i._applyFilters(n,null,this.filters)),this.update(n),!0}},ai.prototype.set=function(t){this.twoWay&&this._withLock(function(){this._watcher.set(t)})},ai.prototype._withLock=function(t){var e=this;e._locked=!0,t.call(e),Wi(function(){e._locked=!1})},ai.prototype.on=function(t,e,i){J(this.el,t,e,i),(this._listeners||(this._listeners=[])).push([t,e])},ai.prototype._teardown=function(){if(this._bound){this._bound=!1,this.unbind&&this.unbind(),this._watcher&&this._watcher.teardown();var t,e=this._listeners;if(e)for(t=e.length;t--;)Q(this.el,e[t][0],e[t][1]);var i=this._paramUnwatchFns;if(i)for(t=i.length;t--;)i[t]();this.vm=this.el=this._watcher=this._listeners=null}};var Ss=/[^|]\|[^|]/;Ot(di),ri(di),si(di),hi(di),li(di),ci(di),ui(di),fi(di),pi(di);var Fs={priority:jr,params:["name"],bind:function(){var t=this.params.name||"default",e=this.vm._slotContents&&this.vm._slotContents[t];e&&e.hasChildNodes()?this.compile(e.cloneNode(!0),this.vm._context,this.vm):this.fallback()},compile:function(t,e,i){if(t&&e){if(this.el.hasChildNodes()&&1===t.childNodes.length&&1===t.childNodes[0].nodeType&&t.childNodes[0].hasAttribute("v-if")){var n=document.createElement("template");n.setAttribute("v-else",""),n.innerHTML=this.el.innerHTML,n._context=this.vm,t.appendChild(n)}var r=i?i._scope:this._scope;this.unlink=e.$compile(t,i,r,this._frag)}t?q(this.el,t):I(this.el)},fallback:function(){this.compile(X(this.el,!0),this.vm)},unbind:function(){this.unlink&&this.unlink()}},Ps={priority:Or,params:["name"],paramWatchers:{name:function(t){Fr.remove.call(this),t&&this.insert(t)}},bind:function(){this.anchor=it("v-partial"),q(this.el,this.anchor),this.insert(this.params.name)},insert:function(t){var e=bt(this.vm.$options,"partials",t);e&&(this.factory=new oe(this.vm,e),Fr.insert.call(this))},unbind:function(){this.frag&&this.frag.destroy()}},Ds={slot:Fs,partial:Ps},Rs=Sr._postProcess,Hs=/(\d{3})(?=\d)/g,Ls={orderBy:gi,filterBy:mi,limitBy:vi,json:{read:function(t,e){return"string"==typeof t?t:JSON.stringify(t,null,Number(e)||2)},write:function(t){try{return JSON.parse(t)}catch(e){return t}}},capitalize:function(t){return t||0===t?(t=t.toString(),t.charAt(0).toUpperCase()+t.slice(1)):""},uppercase:function(t){return t||0===t?t.toString().toUpperCase():""},lowercase:function(t){return t||0===t?t.toString().toLowerCase():""},currency:function(t,e){if(t=parseFloat(t),!isFinite(t)||!t&&0!==t)return"";e=null!=e?e:"$";var i=Math.abs(t).toFixed(2),n=i.slice(0,-3),r=n.length%3,s=r>0?n.slice(0,r)+(n.length>3?",":""):"",o=i.slice(-3),a=0>t?"-":"";return a+e+s+n.slice(r).replace(Hs,"$1,")+o},pluralize:function(t){var e=d(arguments,1);return e.length>1?e[t%10-1]||e[e.length-1]:e[0]+(1===t?"":"s")},debounce:function(t,e){return t?(e||(e=300),b(t,e)):void 0}};return bi(di),di.version="1.0.17",ji&&ji.emit("init",di),di}); \ No newline at end of file