Crop-Thumbnails - Version 1.2.4

Version Description

  • change the enqueue-name of the vue.js-library provided with the plugin to "cpt_vue" to make it possible to prevent this specific include
  • update js-dev dependencies
  • add the filter "crop_thumbnails_filename" to make it possible to change the target path/filename (thanks to https://github.com/matzeeable)
  • improve readme
Download this release

Release Info

Developer Volkmar Kantor
Plugin Icon Crop-Thumbnails
Version 1.2.4
Comparing to
See all releases

Code changes from version 1.2.3 to 1.2.4

app/app.css CHANGED
@@ -1,575 +1,569 @@
1
- .cropThumbnailSettings h2 {
2
- margin-top: 3em;
3
- }
4
- .cropThumbnailSettings .cpt_settings_paypal {
5
- border: 1px solid #298CBA;
6
- border-radius: 3px;
7
- background-color: #f6f6f6;
8
- max-width: 30em;
9
- padding: 0 0.5em;
10
- margin: 2em 0;
11
- text-align: center;
12
- }
13
- .cropThumbnailSettings .cpt_settings_submit {
14
- margin: 1.5em auto;
15
- }
16
- .cropThumbnailSettings #cpt_quicktest {
17
- white-space: nowrap;
18
- background: #fff;
19
- border: 1px solid #ddd;
20
- margin: 1em auto;
21
- padding: 1em;
22
- }
23
- .cropThumbnailSettings #cpt_quicktest strong {
24
- display: inline-block;
25
- color: #fff;
26
- padding: 3px 8px;
27
- margin-bottom: 1px;
28
- text-transform: uppercase;
29
- }
30
- .cropThumbnailSettings #cpt_quicktest strong.success {
31
- background: #00cc00;
32
- }
33
- .cropThumbnailSettings #cpt_quicktest strong.fails {
34
- background: #cc0000;
35
- }
36
- .cropThumbnailSettings #cpt_quicktest strong.info {
37
- background: #008acc;
38
- }
39
- .cropThumbnailSettings .cptSettingsPostList {
40
- margin: 0;
41
- }
42
- .cropThumbnailSettings .cptSettingsPostList::after {
43
- content: "";
44
- display: block;
45
- clear: both;
46
- }
47
- .cropThumbnailSettings .cptSettingsPostList > li {
48
- padding: 0 4px 4px 0;
49
- box-sizing: border-box;
50
- margin: 0;
51
- }
52
- @media (min-width: 760px) {
53
- .cropThumbnailSettings .cptSettingsPostList > li {
54
- width: 33.333%;
55
- float: left;
56
  }
57
  }
58
- .cropThumbnailSettings .cptSettingsPostList section {
59
- border: 1px solid rgba(0, 0, 0, 0.1);
60
- background: #fff;
61
- padding: 1em;
62
  }
63
- .cropThumbnailSettings .cptSettingsPostList section h3 {
64
- margin-top: 0;
65
- overflow: hidden;
66
- text-overflow: ellipsis;
67
  }
68
- .cropThumbnailSettings .cptSettingsPostList section ul {
69
- margin: 1em 0;
70
- border-bottom: 1px solid rgba(0, 0, 0, 0.1);
71
  }
72
- .cropThumbnailSettings .cptSettingsPostListDescription {
73
- text-align: center;
74
- font-size: 1.2em;
75
- padding: 1em;
76
- margin: 0 0 4px;
77
- border: 1px solid rgba(0, 0, 0, 0.1);
78
  }
79
  .cropThumbnailSettings .form-table th,
80
- .cropThumbnailSettings .form-table td {
81
- padding-top: 0;
82
- padding-bottom: 0;
83
- }
84
- /**** button icon ****/
85
- .cropThumbnailsLink .wp-media-buttons-icon::before {
86
- content: "\F165";
87
- font: normal 12px/1 dashicons;
88
- -webkit-font-smoothing: antialiased;
89
- -moz-osx-font-smoothing: grayscale;
90
- }
91
- /**** featured image box ****/
92
- #postimagediv.closed .cropFeaturedImageWrap {
93
- display: none;
94
- }
95
- #postimagediv .cropFeaturedImageWrap {
96
- padding: 0 12px;
97
- margin-top: 0;
98
- }
99
- /**** button in media dialog ****/
100
- .media-modal .compat-field-cropthumbnails th {
101
- width: 0;
102
- min-width: 0;
103
- margin: 0;
104
- }
105
- .media-modal .compat-field-cropthumbnails td {
106
- width: auto;
107
- }
108
- /**** MODAL ****/
109
- /* @see https://www.w3schools.com/howto/howto_css_modals.asp */
110
- body.cpt_ModalIsOpen {
111
- overflow: hidden;
112
- }
113
- #cpt_Modal {
114
- display: block;
115
- position: fixed;
116
- z-index: 99999999;
117
- left: 0;
118
- top: 0;
119
- width: 100%;
120
- height: 100%;
121
- overflow: auto;
122
- padding: 0;
123
- box-sizing: border-box;
124
- background-color: rgba(0, 0, 0, 0.4);
125
- /* The Close Button */
126
- }
127
- @media (min-width: 900px) {
128
- #cpt_Modal {
129
- padding: 40px;
130
  }
131
  }
132
- #cpt_Modal .cpt_ModalDialog {
133
- position: relative;
134
- background-color: #fff;
135
- overflow: hidden;
136
- margin: auto;
137
- padding: 0px;
138
- width: 100%;
139
- max-width: 100%;
140
- height: 100%;
141
- margin-top: 0;
142
- box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
143
- }
144
- #cpt_Modal .cpt_ModalHeader {
145
- height: 40px;
146
- }
147
- #cpt_Modal .cpt_ModalHeader .cpt_ModalTitle {
148
- font-size: 20px;
149
- font-weight: 300;
150
- line-height: 1;
151
- padding: 10px 50px 10px 20px;
152
- background: #eee;
153
- color: #000;
154
- }
155
- #cpt_Modal .cpt_ModalContent {
156
- width: 100%;
157
- height: 100%;
158
- padding-top: 40px;
159
- margin-top: -40px;
160
- box-sizing: border-box;
161
- }
162
- #cpt_Modal .cpt_ModalClose {
163
- color: #000;
164
- border: none;
165
- background: transparent;
166
- position: absolute;
167
- right: 0;
168
- top: 0;
169
- font-size: 38px;
170
- font-weight: 300;
171
- padding: 0px 8px 10px 8px;
172
- line-height: 30px;
173
  }
174
  #cpt_Modal .cpt_ModalClose:hover,
175
- #cpt_Modal .cpt_ModalClose:focus {
176
- opacity: .6;
177
- text-decoration: none;
178
- cursor: pointer;
179
  }
180
- /* crop-editor-layout */
181
- #cpt_crop_editor .mainWindow {
182
- width: 100%;
183
- height: 100%;
184
  }
185
  #cpt_crop_editor .cptCropPane,
186
- #cpt_crop_editor .cptSelectionPane {
187
- box-sizing: border-box;
188
- }
189
- #cpt_crop_editor .cptCropPane {
190
- padding: 0 20px 20px;
191
- }
192
- @media (min-width: 760px) {
193
- #cpt_crop_editor .cptCropPane {
194
- position: absolute;
195
- right: 0;
196
- top: 0;
197
- width: 350px;
198
- height: 100%;
199
- overflow-y: auto;
200
- overflow-x: hidden;
201
- border: 0;
202
- border-left: 3px solid #eee;
203
- margin-top: 0;
204
- padding: 10px 20px;
205
  }
206
- #cpt_crop_editor .cptSelectionPane {
207
- position: relative;
208
- width: 100%;
209
- height: 100%;
210
- overflow: hidden;
211
- padding-right: 350px;
212
  }
213
- #cpt_crop_editor .cptSelectionPaneInner {
214
- width: 100%;
215
- overflow-y: scroll;
216
- height: 100%;
217
  }
218
  }
219
- @media (min-width: 1000px) {
220
- #cpt_crop_editor .cptCropPane {
221
- width: 500px;
222
  }
223
- #cpt_crop_editor .cptSelectionPane {
224
- padding-right: 500px;
225
  }
226
  }
227
- #cpt_crop_editor .header {
228
- background-color: #efefef;
229
- padding: 5px;
230
- position: relative;
231
- z-index: 1000;
232
- }
233
- #cpt_crop_editor .cptEditorInner {
234
- position: relative;
235
- overflow-y: auto;
236
- height: 100%;
237
- }
238
- #cpt_crop_editor .cptEditorInner.loading {
239
- overflow-y: hidden;
240
- }
241
- #cpt_crop_editor .listEmptyMsg {
242
- font-size: 1.5em;
243
- text-align: center;
244
- padding: 2em;
245
- }
246
- #cpt_crop_editor .image-list .entry.post-thumbnail {
247
- border-color: #aad6f4;
248
- background-color: #efefef;
249
- }
250
- #cpt_crop_editor .image-list {
251
- margin: 0;
252
- padding: 0;
253
- }
254
- #cpt_crop_editor .image-list .entry {
255
- width: 140px;
256
- float: left;
257
- border: 1px solid #efefef;
258
- margin: 5px;
259
- }
260
- #cpt_crop_editor .image-list .entry h3 {
261
- font-weight: normal;
262
- font-size: 1em;
263
- margin: 0 5px;
264
- }
265
- #cpt_crop_editor .image-list .entry img {
266
- width: 130px;
267
- height: 130px;
268
- margin: 5px;
269
  }
270
  #cpt_crop_editor .image-list .cursor,
271
- #cpt_crop_editor .image-list .cursor * {
272
- cursor: pointer;
273
- }
274
- #cpt_crop_editor .cptImageSizelist {
275
- border-top: 3px solid #efefef;
276
- padding-top: 5px;
277
- margin-top: 5px;
278
- }
279
- #cpt_crop_editor .cptImageSizelist::after {
280
- content: "";
281
- clear: both;
282
- display: block;
283
- }
284
- #cpt_crop_editor .cptImageSizelist li {
285
- position: relative;
286
- float: left;
287
- padding: 8px;
288
- margin: 0;
289
- color: #444;
290
- cursor: pointer;
291
- list-style: none;
292
- text-align: center;
293
- box-sizing: border-box;
294
- box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px transparent;
295
- transition: box-shadow 0.5s ease;
296
- }
297
- #cpt_crop_editor .cptImageSizelist li.active {
298
- box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 7px #0073aa;
299
  }
300
  #cpt_crop_editor .cptImageSizelist li:hover,
301
- #cpt_crop_editor .cptImageSizelist li:focus {
302
- background: #eee;
303
  }
304
- #cpt_crop_editor .cptImageSizelist li {
305
- width: 50%;
306
  }
307
- @media (min-width: 520px) {
308
- #cpt_crop_editor .cptImageSizelist li {
309
- width: 33.32%;
310
  }
311
  }
312
- @media (min-width: 760px) {
313
- #cpt_crop_editor .cptImageSizelist li {
314
- width: 50%;
315
  }
316
  }
317
- @media (min-width: 1100px) {
318
- #cpt_crop_editor .cptImageSizelist li {
319
- width: 33.32%;
320
  }
321
  }
322
- @media (min-width: 1400px) {
323
- #cpt_crop_editor .cptImageSizelist li {
324
- width: 25%;
325
  }
326
  }
327
- @media (min-width: 1600px) {
328
- #cpt_crop_editor .cptImageSizelist li {
329
- width: 20%;
330
  }
331
  }
332
  #cpt_crop_editor .cptImageSizeInner header,
333
  #cpt_crop_editor .cptImageSizeInner .dimensions,
334
- #cpt_crop_editor .cptImageSizeInner .ratio {
335
- overflow: hidden;
336
- text-overflow: ellipsis;
337
- white-space: nowrap;
338
  }
339
- #cpt_crop_editor .cptImageSizeInner {
340
- line-height: 1.4;
341
  }
342
- #cpt_crop_editor .cptImageSizeInner header {
343
- font-size: 1em;
344
- font-weight: bold;
345
  }
346
- #cpt_crop_editor .cptImageSizeInner .dimensions {
347
- font-size: 0.8em;
348
  }
349
- #cpt_crop_editor .cptImageSizeInner .ratio {
350
- font-size: 0.8em;
351
  }
352
  #cpt_crop_editor .cptImageSizeInner .lowResWarning,
353
- #cpt_crop_editor .cptImageSizeInner .notYetCropped {
354
- color: #fff;
355
- position: absolute;
356
- bottom: 12px;
357
- left: 12px;
358
- background: #ea6c00;
359
- width: 30px;
360
- height: 30px;
361
- line-height: 28px;
362
- font-size: 23px;
363
- font-weight: 600;
364
- z-index: 1;
365
- border: 2px solid #fff;
366
- box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
367
  }
368
  #cpt_crop_editor .cptImageSizeInner .lowResWarning span,
369
- #cpt_crop_editor .cptImageSizeInner .notYetCropped span {
370
- text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
371
- }
372
- #cpt_crop_editor .cptImageSizeInner .notYetCropped {
373
- background: #ea2f00;
374
- left: auto;
375
- right: 12px;
376
- }
377
- #cpt_crop_editor .cptImageSizeInner .notYetCropped span {
378
- line-height: 30px;
379
- }
380
- #cpt_crop_editor .cptImageSizeInner .cptImageBgContainer {
381
- width: 100%;
382
- padding-top: 100%;
383
- background-size: contain;
384
- background-position: center;
385
- background-repeat: no-repeat;
386
- box-shadow: 0 0 1px rgba(0, 0, 0, 0.5);
387
- box-sizing: border-box;
388
- transition: -webkit-filter .5s ease;
389
- transition: filter .5s ease;
390
- transition: filter .5s ease, -webkit-filter .5s ease;
391
- }
392
- #cpt_crop_editor .cptImagesAreSelected li .cptImageBgContainer {
393
- -webkit-filter: grayscale(100%);
394
- filter: grayscale(100%);
395
  }
396
  #cpt_crop_editor .cptImagesAreSelected li.active .cptImageBgContainer,
397
- #cpt_crop_editor .cptImagesAreSelected li:focus .cptImageBgContainer {
398
- -webkit-filter: grayscale(0%);
399
- filter: grayscale(0%);
400
- }
401
- #cpt_crop_editor .loadingcontainer {
402
- position: relative;
403
- }
404
- #cpt_crop_editor .loadingcontainer .loadingMsg {
405
- opacity: 0;
406
- position: absolute;
407
- width: 100%;
408
- height: 100%;
409
- top: 0;
410
- left: 0;
411
- background: #fff;
412
- transition: opacity .4s linear;
413
- }
414
- #cpt_crop_editor .loadingcontainer .cptLoadingSpinner {
415
- position: absolute;
416
- top: 50%;
417
- left: 50%;
418
- margin-left: -15px;
419
- margin-top: -15px;
420
- }
421
- #cpt_crop_editor .loadingcontainer.loading .loadingMsg {
422
- opacity: 1;
423
- }
424
- #cpt_crop_editor .loadingcontainer.loading .cptImageBgContainer {
425
- background: none !important;
426
  }
427
  #cpt_crop_editor .loadingcontainer .fade-enter-active,
428
- #cpt_crop_editor .loadingcontainer .fade-leave-active {
429
- transition: opacity 0.5s;
430
  }
431
  #cpt_crop_editor .loadingcontainer .fade-enter,
432
- #cpt_crop_editor .loadingcontainer .fade-leave-to {
433
- opacity: 0;
434
  }
435
- #cpt_crop_editor .cptSameRatioLabel {
436
- display: inline-block;
437
- margin: .3em 1em 0.3em 0;
438
  }
439
- #cpt_crop_editor .cptSelectionPane > div > p {
440
- padding-left: 1em;
441
- padding-right: 1em;
442
- margin: .3em;
443
  }
444
- #cpt_crop_editor .cptCropPane .info {
445
- text-align: center;
446
  }
447
- #cpt_crop_editor .cptCropPane h3 {
448
- margin: 0;
449
  }
450
- #cpt_crop_editor .cptCropPane button.cptGenerate {
451
- width: 100%;
452
- height: 2em;
453
- font-size: 1.4em;
454
- padding: 0.5em 0;
455
- display: block;
456
- line-height: 0;
457
  }
458
- #cpt_crop_editor .cropContainer {
459
- margin: .3em 0 .5em;
460
- opacity: .5;
461
  }
462
- #cpt_crop_editor .cptEditorInner.cropEditorActive .cropContainer {
463
- opacity: 1;
464
  }
465
- #cpt_crop_editor .cropContainer img.cptCroppingImage {
466
- max-width: 100%;
467
- height: auto;
468
  }
469
- #cpt_crop_editor h4 {
470
- margin-bottom: 0em;
471
  }
472
- #cpt_crop_editor .step-info {
473
- font-size: 0.9em;
474
  }
475
- #cpt_crop_editor .jcrop-handle.ord-ne {
476
- margin-top: -8px;
477
- margin-right: -8px;
478
  }
479
- #cpt_crop_editor .jcrop-handle.ord-nw {
480
- margin-top: -8px;
481
- margin-left: -8px;
482
  }
483
- #cpt_crop_editor .jcrop-handle.ord-se {
484
- margin-bottom: -8px;
485
- margin-right: -8px;
486
  }
487
- #cpt_crop_editor .jcrop-handle.ord-sw {
488
- margin-bottom: -8px;
489
- margin-left: -8px;
490
  }
491
  #cpt_crop_editor .jcrop-handle.ord-ne,
492
  #cpt_crop_editor .jcrop-handle.ord-nw,
493
  #cpt_crop_editor .jcrop-handle.ord-se,
494
- #cpt_crop_editor .jcrop-handle.ord-sw {
495
- width: 16px;
496
- height: 16px;
497
- }
498
- #cpt_crop_editor .cpt-debug {
499
- clear: left;
500
- padding-left: 5px;
501
- }
502
- #cpt_crop_editor .cpt-debug .cpt-debug-handle {
503
- border: 1px solid #aaa;
504
- background-color: #f1f1f1;
505
- padding: 0.3em 1em;
506
- }
507
- #cpt_crop_editor .cpt-debug.closed .content {
508
- display: none;
509
- }
510
- #cpt_crop_editor .cpt-debug .content {
511
- font-family: monospace;
512
- margin-top: 0.5em;
513
- }
514
- #cpt_crop_editor .cptWaitingWindow {
515
- position: absolute;
516
- top: 0;
517
- left: 0;
518
- width: 100%;
519
- height: 100%;
520
- z-index: 10;
521
- background: rgba(255, 255, 255, 0.9);
522
- transition: all .5s ease;
523
- }
524
- #cpt_crop_editor .cptWaitingWindow .msg {
525
- position: absolute;
526
- top: 50%;
527
- width: 100%;
528
- margin-top: -4em;
529
- font-size: 2em;
530
- font-weight: bold;
531
- text-align: center;
532
- line-height: 1.3;
533
- padding: 0;
534
- }
535
- #cpt_crop_editor .cptWaitingWindow .cptLoadingSpinner {
536
- height: 50px;
537
- width: 50px;
538
- margin-top: 20px;
539
- }
540
- .cptLoadingSpinner {
541
- height: 30px;
542
- width: 30px;
543
- border: 2px solid #0073aa;
544
- border-right-color: transparent;
545
- border-radius: 50%;
546
- display: inline-block;
547
- -webkit-animation-duration: 0.75s;
548
- animation-duration: 0.75s;
549
- -webkit-animation-iteration-count: infinite;
550
- animation-iteration-count: infinite;
551
- -webkit-animation-name: cptRotateForever;
552
- animation-name: cptRotateForever;
553
- -webkit-animation-timing-function: linear;
554
- animation-timing-function: linear;
555
- }
556
- @-webkit-keyframes cptRotateForever {
557
- 0% {
558
- -webkit-transform: rotate(0deg);
559
- transform: rotate(0deg);
560
  }
561
- 100% {
562
- -webkit-transform: rotate(360deg);
563
- transform: rotate(360deg);
564
  }
565
  }
566
- @keyframes cptRotateForever {
567
- 0% {
568
- -webkit-transform: rotate(0deg);
569
- transform: rotate(0deg);
570
  }
571
- 100% {
572
- -webkit-transform: rotate(360deg);
573
- transform: rotate(360deg);
574
  }
575
  }
 
1
+ .cropThumbnailSettings h2{
2
+ margin-top:3em;
3
+ }
4
+ .cropThumbnailSettings .cpt_settings_paypal{
5
+ border:1px solid #298CBA;
6
+ border-radius:3px;
7
+ background-color:#f6f6f6;
8
+ max-width:30em;
9
+ padding:0 0.5em;
10
+ margin:2em 0;
11
+ text-align:center;
12
+ }
13
+ .cropThumbnailSettings .cpt_settings_submit{
14
+ margin:1.5em auto;
15
+ }
16
+ .cropThumbnailSettings #cpt_quicktest{
17
+ white-space:nowrap;
18
+ background:#fff;
19
+ border:1px solid #ddd;
20
+ margin:1em auto;
21
+ padding:1em;
22
+ }
23
+ .cropThumbnailSettings #cpt_quicktest strong{
24
+ display:inline-block;
25
+ color:#fff;
26
+ padding:3px 8px;
27
+ margin-bottom:1px;
28
+ text-transform:uppercase;
29
+ }
30
+ .cropThumbnailSettings #cpt_quicktest strong.success{
31
+ background:#00cc00;
32
+ }
33
+ .cropThumbnailSettings #cpt_quicktest strong.fails{
34
+ background:#cc0000;
35
+ }
36
+ .cropThumbnailSettings #cpt_quicktest strong.info{
37
+ background:#008acc;
38
+ }
39
+ .cropThumbnailSettings .cptSettingsPostList{
40
+ margin:0;
41
+ }
42
+ .cropThumbnailSettings .cptSettingsPostList::after{
43
+ content:"";
44
+ display:block;
45
+ clear:both;
46
+ }
47
+ .cropThumbnailSettings .cptSettingsPostList > li{
48
+ padding:0 4px 4px 0;
49
+ box-sizing:border-box;
50
+ margin:0;
51
+ }
52
+ @media (min-width: 760px){
53
+ .cropThumbnailSettings .cptSettingsPostList > li{
54
+ width:33.333%;
55
+ float:left;
56
  }
57
  }
58
+ .cropThumbnailSettings .cptSettingsPostList section{
59
+ border:1px solid rgba(0, 0, 0, 0.1);
60
+ background:#fff;
61
+ padding:1em;
62
  }
63
+ .cropThumbnailSettings .cptSettingsPostList section h3{
64
+ margin-top:0;
65
+ overflow:hidden;
66
+ text-overflow:ellipsis;
67
  }
68
+ .cropThumbnailSettings .cptSettingsPostList section ul{
69
+ margin:1em 0;
70
+ border-bottom:1px solid rgba(0, 0, 0, 0.1);
71
  }
72
+ .cropThumbnailSettings .cptSettingsPostListDescription{
73
+ text-align:center;
74
+ font-size:1.2em;
75
+ padding:1em;
76
+ margin:0 0 4px;
77
+ border:1px solid rgba(0, 0, 0, 0.1);
78
  }
79
  .cropThumbnailSettings .form-table th,
80
+ .cropThumbnailSettings .form-table td{
81
+ padding-top:0;
82
+ padding-bottom:0;
83
+ }
84
+ .cropThumbnailsLink .wp-media-buttons-icon::before{
85
+ content:"\f165";
86
+ font:normal 12px/1 dashicons;
87
+ -webkit-font-smoothing:antialiased;
88
+ -moz-osx-font-smoothing:grayscale;
89
+ }
90
+ #postimagediv.closed .cropFeaturedImageWrap{
91
+ display:none;
92
+ }
93
+ #postimagediv .cropFeaturedImageWrap{
94
+ padding:0 12px;
95
+ margin-top:0;
96
+ }
97
+ .media-modal .compat-field-cropthumbnails th{
98
+ width:0;
99
+ min-width:0;
100
+ margin:0;
101
+ }
102
+ .media-modal .compat-field-cropthumbnails td{
103
+ width:auto;
104
+ }
105
+ body.cpt_ModalIsOpen{
106
+ overflow:hidden;
107
+ }
108
+ #cpt_Modal{
109
+ display:block;
110
+ position:fixed;
111
+ z-index:99999999;
112
+ left:0;
113
+ top:0;
114
+ width:100%;
115
+ height:100%;
116
+ overflow:auto;
117
+ padding:0;
118
+ box-sizing:border-box;
119
+ background-color:rgba(0, 0, 0, 0.4);
120
+ }
121
+ @media (min-width: 900px){
122
+ #cpt_Modal{
123
+ padding:40px;
 
 
 
 
 
 
124
  }
125
  }
126
+ #cpt_Modal .cpt_ModalDialog{
127
+ position:relative;
128
+ background-color:#fff;
129
+ overflow:hidden;
130
+ margin:auto;
131
+ padding:0px;
132
+ width:100%;
133
+ max-width:100%;
134
+ height:100%;
135
+ margin-top:0;
136
+ box-shadow:0 0 20px rgba(0, 0, 0, 0.5);
137
+ }
138
+ #cpt_Modal .cpt_ModalHeader{
139
+ height:40px;
140
+ }
141
+ #cpt_Modal .cpt_ModalHeader .cpt_ModalTitle{
142
+ font-size:20px;
143
+ font-weight:300;
144
+ line-height:1;
145
+ padding:10px 50px 10px 20px;
146
+ background:#eee;
147
+ color:#000;
148
+ }
149
+ #cpt_Modal .cpt_ModalContent{
150
+ width:100%;
151
+ height:100%;
152
+ padding-top:40px;
153
+ margin-top:-40px;
154
+ box-sizing:border-box;
155
+ }
156
+ #cpt_Modal .cpt_ModalClose{
157
+ color:#000;
158
+ border:none;
159
+ background:transparent;
160
+ position:absolute;
161
+ right:0;
162
+ top:0;
163
+ font-size:38px;
164
+ font-weight:300;
165
+ padding:0px 8px 10px 8px;
166
+ line-height:30px;
167
  }
168
  #cpt_Modal .cpt_ModalClose:hover,
169
+ #cpt_Modal .cpt_ModalClose:focus{
170
+ opacity:0.6;
171
+ text-decoration:none;
172
+ cursor:pointer;
173
  }
174
+ #cpt_crop_editor .mainWindow{
175
+ width:100%;
176
+ height:100%;
 
177
  }
178
  #cpt_crop_editor .cptCropPane,
179
+ #cpt_crop_editor .cptSelectionPane{
180
+ box-sizing:border-box;
181
+ }
182
+ #cpt_crop_editor .cptCropPane{
183
+ padding:0 20px 20px;
184
+ }
185
+ @media (min-width: 760px){
186
+ #cpt_crop_editor .cptCropPane{
187
+ position:absolute;
188
+ right:0;
189
+ top:0;
190
+ width:350px;
191
+ height:100%;
192
+ overflow-y:auto;
193
+ overflow-x:hidden;
194
+ border:0;
195
+ border-left:3px solid #eee;
196
+ margin-top:0;
197
+ padding:10px 20px;
198
  }
199
+ #cpt_crop_editor .cptSelectionPane{
200
+ position:relative;
201
+ width:100%;
202
+ height:100%;
203
+ overflow:hidden;
204
+ padding-right:350px;
205
  }
206
+ #cpt_crop_editor .cptSelectionPaneInner{
207
+ width:100%;
208
+ overflow-y:scroll;
209
+ height:100%;
210
  }
211
  }
212
+ @media (min-width: 1000px){
213
+ #cpt_crop_editor .cptCropPane{
214
+ width:500px;
215
  }
216
+ #cpt_crop_editor .cptSelectionPane{
217
+ padding-right:500px;
218
  }
219
  }
220
+ #cpt_crop_editor .header{
221
+ background-color:#efefef;
222
+ padding:5px;
223
+ position:relative;
224
+ z-index:1000;
225
+ }
226
+ #cpt_crop_editor .cptEditorInner{
227
+ position:relative;
228
+ overflow-y:auto;
229
+ height:100%;
230
+ }
231
+ #cpt_crop_editor .cptEditorInner.loading{
232
+ overflow-y:hidden;
233
+ }
234
+ #cpt_crop_editor .listEmptyMsg{
235
+ font-size:1.5em;
236
+ text-align:center;
237
+ padding:2em;
238
+ }
239
+ #cpt_crop_editor .image-list .entry.post-thumbnail{
240
+ border-color:#aad6f4;
241
+ background-color:#efefef;
242
+ }
243
+ #cpt_crop_editor .image-list{
244
+ margin:0;
245
+ padding:0;
246
+ }
247
+ #cpt_crop_editor .image-list .entry{
248
+ width:140px;
249
+ float:left;
250
+ border:1px solid #efefef;
251
+ margin:5px;
252
+ }
253
+ #cpt_crop_editor .image-list .entry h3{
254
+ font-weight:normal;
255
+ font-size:1em;
256
+ margin:0 5px;
257
+ }
258
+ #cpt_crop_editor .image-list .entry img{
259
+ width:130px;
260
+ height:130px;
261
+ margin:5px;
262
  }
263
  #cpt_crop_editor .image-list .cursor,
264
+ #cpt_crop_editor .image-list .cursor *{
265
+ cursor:pointer;
266
+ }
267
+ #cpt_crop_editor .cptImageSizelist{
268
+ border-top:3px solid #efefef;
269
+ padding-top:5px;
270
+ margin-top:5px;
271
+ }
272
+ #cpt_crop_editor .cptImageSizelist::after{
273
+ content:"";
274
+ clear:both;
275
+ display:block;
276
+ }
277
+ #cpt_crop_editor .cptImageSizelist li{
278
+ position:relative;
279
+ float:left;
280
+ padding:8px;
281
+ margin:0;
282
+ color:#444;
283
+ cursor:pointer;
284
+ list-style:none;
285
+ text-align:center;
286
+ box-sizing:border-box;
287
+ box-shadow:inset 0 0 0 3px #fff, inset 0 0 0 7px transparent;
288
+ transition:box-shadow 0.5s ease;
289
+ }
290
+ #cpt_crop_editor .cptImageSizelist li.active{
291
+ box-shadow:inset 0 0 0 3px #fff, inset 0 0 0 7px #0073aa;
292
  }
293
  #cpt_crop_editor .cptImageSizelist li:hover,
294
+ #cpt_crop_editor .cptImageSizelist li:focus{
295
+ background:#eee;
296
  }
297
+ #cpt_crop_editor .cptImageSizelist li{
298
+ width:50%;
299
  }
300
+ @media (min-width: 520px){
301
+ #cpt_crop_editor .cptImageSizelist li{
302
+ width:33.32%;
303
  }
304
  }
305
+ @media (min-width: 760px){
306
+ #cpt_crop_editor .cptImageSizelist li{
307
+ width:50%;
308
  }
309
  }
310
+ @media (min-width: 1100px){
311
+ #cpt_crop_editor .cptImageSizelist li{
312
+ width:33.32%;
313
  }
314
  }
315
+ @media (min-width: 1400px){
316
+ #cpt_crop_editor .cptImageSizelist li{
317
+ width:25%;
318
  }
319
  }
320
+ @media (min-width: 1600px){
321
+ #cpt_crop_editor .cptImageSizelist li{
322
+ width:20%;
323
  }
324
  }
325
  #cpt_crop_editor .cptImageSizeInner header,
326
  #cpt_crop_editor .cptImageSizeInner .dimensions,
327
+ #cpt_crop_editor .cptImageSizeInner .ratio{
328
+ overflow:hidden;
329
+ text-overflow:ellipsis;
330
+ white-space:nowrap;
331
  }
332
+ #cpt_crop_editor .cptImageSizeInner{
333
+ line-height:1.4;
334
  }
335
+ #cpt_crop_editor .cptImageSizeInner header{
336
+ font-size:1em;
337
+ font-weight:bold;
338
  }
339
+ #cpt_crop_editor .cptImageSizeInner .dimensions{
340
+ font-size:0.8em;
341
  }
342
+ #cpt_crop_editor .cptImageSizeInner .ratio{
343
+ font-size:0.8em;
344
  }
345
  #cpt_crop_editor .cptImageSizeInner .lowResWarning,
346
+ #cpt_crop_editor .cptImageSizeInner .notYetCropped{
347
+ color:#fff;
348
+ position:absolute;
349
+ bottom:12px;
350
+ left:12px;
351
+ background:#ea6c00;
352
+ width:30px;
353
+ height:30px;
354
+ line-height:28px;
355
+ font-size:23px;
356
+ font-weight:600;
357
+ z-index:1;
358
+ border:2px solid #fff;
359
+ box-shadow:0 0 10px rgba(0, 0, 0, 0.3);
360
  }
361
  #cpt_crop_editor .cptImageSizeInner .lowResWarning span,
362
+ #cpt_crop_editor .cptImageSizeInner .notYetCropped span{
363
+ text-shadow:1px 1px 1px rgba(0, 0, 0, 0.3);
364
+ }
365
+ #cpt_crop_editor .cptImageSizeInner .notYetCropped{
366
+ background:#ea2f00;
367
+ left:auto;
368
+ right:12px;
369
+ }
370
+ #cpt_crop_editor .cptImageSizeInner .notYetCropped span{
371
+ line-height:30px;
372
+ }
373
+ #cpt_crop_editor .cptImageSizeInner .cptImageBgContainer{
374
+ width:100%;
375
+ padding-top:100%;
376
+ background-size:contain;
377
+ background-position:center;
378
+ background-repeat:no-repeat;
379
+ box-shadow:0 0 1px rgba(0, 0, 0, 0.5);
380
+ box-sizing:border-box;
381
+ transition:-webkit-filter 0.5s ease;
382
+ transition:filter 0.5s ease;
383
+ transition:filter 0.5s ease, -webkit-filter 0.5s ease;
384
+ }
385
+ #cpt_crop_editor .cptImagesAreSelected li .cptImageBgContainer{
386
+ -webkit-filter:grayscale(100%);
387
+ filter:grayscale(100%);
388
  }
389
  #cpt_crop_editor .cptImagesAreSelected li.active .cptImageBgContainer,
390
+ #cpt_crop_editor .cptImagesAreSelected li:focus .cptImageBgContainer{
391
+ -webkit-filter:grayscale(0%);
392
+ filter:grayscale(0%);
393
+ }
394
+ #cpt_crop_editor .loadingcontainer{
395
+ position:relative;
396
+ }
397
+ #cpt_crop_editor .loadingcontainer .loadingMsg{
398
+ opacity:0;
399
+ position:absolute;
400
+ width:100%;
401
+ height:100%;
402
+ top:0;
403
+ left:0;
404
+ background:#fff;
405
+ transition:opacity 0.4s linear;
406
+ }
407
+ #cpt_crop_editor .loadingcontainer .cptLoadingSpinner{
408
+ position:absolute;
409
+ top:50%;
410
+ left:50%;
411
+ margin-left:-15px;
412
+ margin-top:-15px;
413
+ }
414
+ #cpt_crop_editor .loadingcontainer.loading .loadingMsg{
415
+ opacity:1;
416
+ }
417
+ #cpt_crop_editor .loadingcontainer.loading .cptImageBgContainer{
418
+ background:none !important;
419
  }
420
  #cpt_crop_editor .loadingcontainer .fade-enter-active,
421
+ #cpt_crop_editor .loadingcontainer .fade-leave-active{
422
+ transition:opacity 0.5s;
423
  }
424
  #cpt_crop_editor .loadingcontainer .fade-enter,
425
+ #cpt_crop_editor .loadingcontainer .fade-leave-to{
426
+ opacity:0;
427
  }
428
+ #cpt_crop_editor .cptSameRatioLabel{
429
+ display:inline-block;
430
+ margin:0.3em 1em 0.3em 0;
431
  }
432
+ #cpt_crop_editor .cptSelectionPane > div > p{
433
+ padding-left:1em;
434
+ padding-right:1em;
435
+ margin:0.3em;
436
  }
437
+ #cpt_crop_editor .cptCropPane .info{
438
+ text-align:center;
439
  }
440
+ #cpt_crop_editor .cptCropPane h3{
441
+ margin:0;
442
  }
443
+ #cpt_crop_editor .cptCropPane button.cptGenerate{
444
+ width:100%;
445
+ height:2em;
446
+ font-size:1.4em;
447
+ padding:0.5em 0;
448
+ display:block;
449
+ line-height:0;
450
  }
451
+ #cpt_crop_editor .cropContainer{
452
+ margin:0.3em 0 0.5em;
453
+ opacity:0.5;
454
  }
455
+ #cpt_crop_editor .cptEditorInner.cropEditorActive .cropContainer{
456
+ opacity:1;
457
  }
458
+ #cpt_crop_editor .cropContainer img.cptCroppingImage{
459
+ max-width:100%;
460
+ height:auto;
461
  }
462
+ #cpt_crop_editor h4{
463
+ margin-bottom:0em;
464
  }
465
+ #cpt_crop_editor .step-info{
466
+ font-size:0.9em;
467
  }
468
+ #cpt_crop_editor .jcrop-handle.ord-ne{
469
+ margin-top:-8px;
470
+ margin-right:-8px;
471
  }
472
+ #cpt_crop_editor .jcrop-handle.ord-nw{
473
+ margin-top:-8px;
474
+ margin-left:-8px;
475
  }
476
+ #cpt_crop_editor .jcrop-handle.ord-se{
477
+ margin-bottom:-8px;
478
+ margin-right:-8px;
479
  }
480
+ #cpt_crop_editor .jcrop-handle.ord-sw{
481
+ margin-bottom:-8px;
482
+ margin-left:-8px;
483
  }
484
  #cpt_crop_editor .jcrop-handle.ord-ne,
485
  #cpt_crop_editor .jcrop-handle.ord-nw,
486
  #cpt_crop_editor .jcrop-handle.ord-se,
487
+ #cpt_crop_editor .jcrop-handle.ord-sw{
488
+ width:16px;
489
+ height:16px;
490
+ }
491
+ #cpt_crop_editor .cpt-debug{
492
+ clear:left;
493
+ padding-left:5px;
494
+ }
495
+ #cpt_crop_editor .cpt-debug .cpt-debug-handle{
496
+ border:1px solid #aaa;
497
+ background-color:#f1f1f1;
498
+ padding:0.3em 1em;
499
+ }
500
+ #cpt_crop_editor .cpt-debug.closed .content{
501
+ display:none;
502
+ }
503
+ #cpt_crop_editor .cpt-debug .content{
504
+ font-family:monospace;
505
+ margin-top:0.5em;
506
+ }
507
+ #cpt_crop_editor .cptWaitingWindow{
508
+ position:absolute;
509
+ top:0;
510
+ left:0;
511
+ width:100%;
512
+ height:100%;
513
+ z-index:10;
514
+ background:rgba(255, 255, 255, 0.9);
515
+ transition:all 0.5s ease;
516
+ }
517
+ #cpt_crop_editor .cptWaitingWindow .msg{
518
+ position:absolute;
519
+ top:50%;
520
+ width:100%;
521
+ margin-top:-4em;
522
+ font-size:2em;
523
+ font-weight:bold;
524
+ text-align:center;
525
+ line-height:1.3;
526
+ padding:0;
527
+ }
528
+ #cpt_crop_editor .cptWaitingWindow .cptLoadingSpinner{
529
+ height:50px;
530
+ width:50px;
531
+ margin-top:20px;
532
+ }
533
+ .cptLoadingSpinner{
534
+ height:30px;
535
+ width:30px;
536
+ border:2px solid #0073aa;
537
+ border-right-color:transparent;
538
+ border-radius:50%;
539
+ display:inline-block;
540
+ -webkit-animation-duration:0.75s;
541
+ animation-duration:0.75s;
542
+ -webkit-animation-iteration-count:infinite;
543
+ animation-iteration-count:infinite;
544
+ -webkit-animation-name:cptRotateForever;
545
+ animation-name:cptRotateForever;
546
+ -webkit-animation-timing-function:linear;
547
+ animation-timing-function:linear;
548
+ }
549
+ @-webkit-keyframes cptRotateForever{
550
+ 0%{
551
+ -webkit-transform:rotate(0deg);
552
+ transform:rotate(0deg);
553
  }
554
+ 100%{
555
+ -webkit-transform:rotate(360deg);
556
+ transform:rotate(360deg);
557
  }
558
  }
559
+ @keyframes cptRotateForever{
560
+ 0%{
561
+ -webkit-transform:rotate(0deg);
562
+ transform:rotate(0deg);
563
  }
564
+ 100%{
565
+ -webkit-transform:rotate(360deg);
566
+ transform:rotate(360deg);
567
  }
568
  }
569
+
app/app.js CHANGED
@@ -1,857 +1 @@
1
- /******/ (function(modules) { // webpackBootstrap
2
- /******/ // The module cache
3
- /******/ var installedModules = {};
4
- /******/
5
- /******/ // The require function
6
- /******/ function __webpack_require__(moduleId) {
7
- /******/
8
- /******/ // Check if module is in cache
9
- /******/ if(installedModules[moduleId]) {
10
- /******/ return installedModules[moduleId].exports;
11
- /******/ }
12
- /******/ // Create a new module (and put it into the cache)
13
- /******/ var module = installedModules[moduleId] = {
14
- /******/ i: moduleId,
15
- /******/ l: false,
16
- /******/ exports: {}
17
- /******/ };
18
- /******/
19
- /******/ // Execute the module function
20
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
21
- /******/
22
- /******/ // Flag the module as loaded
23
- /******/ module.l = true;
24
- /******/
25
- /******/ // Return the exports of the module
26
- /******/ return module.exports;
27
- /******/ }
28
- /******/
29
- /******/
30
- /******/ // expose the modules object (__webpack_modules__)
31
- /******/ __webpack_require__.m = modules;
32
- /******/
33
- /******/ // expose the module cache
34
- /******/ __webpack_require__.c = installedModules;
35
- /******/
36
- /******/ // define getter function for harmony exports
37
- /******/ __webpack_require__.d = function(exports, name, getter) {
38
- /******/ if(!__webpack_require__.o(exports, name)) {
39
- /******/ Object.defineProperty(exports, name, {
40
- /******/ configurable: false,
41
- /******/ enumerable: true,
42
- /******/ get: getter
43
- /******/ });
44
- /******/ }
45
- /******/ };
46
- /******/
47
- /******/ // getDefaultExport function for compatibility with non-harmony modules
48
- /******/ __webpack_require__.n = function(module) {
49
- /******/ var getter = module && module.__esModule ?
50
- /******/ function getDefault() { return module['default']; } :
51
- /******/ function getModuleExports() { return module; };
52
- /******/ __webpack_require__.d(getter, 'a', getter);
53
- /******/ return getter;
54
- /******/ };
55
- /******/
56
- /******/ // Object.prototype.hasOwnProperty.call
57
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
58
- /******/
59
- /******/ // __webpack_public_path__
60
- /******/ __webpack_require__.p = "";
61
- /******/
62
- /******/ // Load entry module and return exports
63
- /******/ return __webpack_require__(__webpack_require__.s = 0);
64
- /******/ })
65
- /************************************************************************/
66
- /******/ ([
67
- /* 0 */
68
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
69
-
70
- "use strict";
71
- Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
72
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style_style_less__ = __webpack_require__(1);
73
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style_style_less___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__style_style_less__);
74
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app__ = __webpack_require__(2);
75
-
76
- //do import javascript app (app/index.js)
77
-
78
- /***/ }),
79
- /* 1 */
80
- /***/ (function(module, exports) {
81
-
82
- // removed by extract-text-webpack-plugin
83
-
84
- /***/ }),
85
- /* 2 */
86
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
87
-
88
- "use strict";
89
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__polyfills__ = __webpack_require__(3);
90
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__global_setup__ = __webpack_require__(7);
91
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__global_setup___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__global_setup__);
92
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__global_cachebreak__ = __webpack_require__(9);
93
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__global_cachebreak___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__global_cachebreak__);
94
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__clickhandler__ = __webpack_require__(10);
95
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__clickhandler___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__clickhandler__);
96
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__modal__ = __webpack_require__(11);
97
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__modal___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4__modal__);
98
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__message__ = __webpack_require__(12);
99
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__message___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5__message__);
100
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__loadingcontainer__ = __webpack_require__(13);
101
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__loadingcontainer___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6__loadingcontainer__);
102
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__cropeditor__ = __webpack_require__(15);
103
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__cropeditor___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7__cropeditor__);
104
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__settingsscreen__ = __webpack_require__(17);
105
-
106
-
107
-
108
-
109
-
110
-
111
-
112
-
113
-
114
-
115
-
116
-
117
- /***/ }),
118
- /* 3 */
119
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
120
-
121
- "use strict";
122
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__array_filter__ = __webpack_require__(4);
123
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__array_filter___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__array_filter__);
124
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__array_find__ = __webpack_require__(5);
125
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__array_find___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__array_find__);
126
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__cpt_wait_for_final_event__ = __webpack_require__(6);
127
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__cpt_wait_for_final_event___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__cpt_wait_for_final_event__);
128
-
129
-
130
-
131
-
132
- /***/ }),
133
- /* 4 */
134
- /***/ (function(module, exports) {
135
-
136
- if (!Array.prototype.filter) {
137
- Array.prototype.filter = function (fun /*, thisArg*/) {
138
- 'use strict';
139
-
140
- if (this === void 0 || this === null) {
141
- throw new TypeError();
142
- }
143
-
144
- var t = Object(this);
145
- var len = t.length >>> 0;
146
- if (typeof fun !== 'function') {
147
- throw new TypeError();
148
- }
149
-
150
- var res = [];
151
- var thisArg = arguments.length >= 2 ? arguments[1] : void 0;
152
- for (var i = 0; i < len; i++) {
153
- if (i in t) {
154
- var val = t[i];
155
-
156
- // NOTE: Technically this should Object.defineProperty at
157
- // the next index, as push can be affected by
158
- // properties on Object.prototype and Array.prototype.
159
- // But that method's new, and collisions should be
160
- // rare, so use the more-compatible alternative.
161
- if (fun.call(thisArg, val, i, t)) {
162
- res.push(val);
163
- }
164
- }
165
- }
166
-
167
- return res;
168
- };
169
- }
170
-
171
- /***/ }),
172
- /* 5 */
173
- /***/ (function(module, exports) {
174
-
175
- if (!Array.prototype.find) {
176
- Array.prototype.find = function (predicate) {
177
- 'use strict';
178
-
179
- if (this == null) {
180
- throw new TypeError('Array.prototype.find called on null or undefined');
181
- }
182
- if (typeof predicate !== 'function') {
183
- throw new TypeError('predicate must be a function');
184
- }
185
- var list = Object(this);
186
- var length = list.length >>> 0;
187
- var thisArg = arguments[1];
188
- var value;
189
-
190
- for (var i = 0; i < length; i++) {
191
- value = list[i];
192
- if (predicate.call(thisArg, value, i, list)) {
193
- return value;
194
- }
195
- }
196
- return undefined;
197
- };
198
- }
199
-
200
- /***/ }),
201
- /* 6 */
202
- /***/ (function(module, exports) {
203
-
204
- /**
205
- * Waiting x milliseconds for a final event than call the callback.
206
- * @see http://stackoverflow.com/a/4541963
207
- */
208
- var CPT_waitForFinalEvent = function () {
209
- var timers = {};
210
- return function (callback, ms, uniqueId) {
211
- if (!uniqueId) {
212
- uniqueId = "Don't call this twice without a uniqueId";
213
- }
214
- if (timers[uniqueId]) {
215
- clearTimeout(timers[uniqueId]);
216
- }
217
- timers[uniqueId] = setTimeout(callback, ms);
218
- };
219
- }();
220
-
221
- /** USAGE ******************
222
- $(window).resize(function () {
223
- CPT_waitForFinalEvent(function(){
224
- alert('Resize...');
225
- }, 500, "some unique string");
226
- });
227
- ***************************/
228
-
229
- /***/ }),
230
- /* 7 */
231
- /***/ (function(module, exports, __webpack_require__) {
232
-
233
- /* WEBPACK VAR INJECTION */(function(global) {global.CROP_THUMBNAILS_VUE = {
234
- app: null, //will be initialized in modal/modal.js
235
- components: {}
236
- };
237
- /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(8)))
238
-
239
- /***/ }),
240
- /* 8 */
241
- /***/ (function(module, exports) {
242
-
243
- var g;
244
-
245
- // This works in non-strict mode
246
- g = (function() {
247
- return this;
248
- })();
249
-
250
- try {
251
- // This works if eval is allowed (see CSP)
252
- g = g || Function("return this")() || (1,eval)("this");
253
- } catch(e) {
254
- // This works if the window reference is available
255
- if(typeof window === "object")
256
- g = window;
257
- }
258
-
259
- // g can still be undefined, but nothing to do about it...
260
- // We return undefined, instead of nothing here, so it's
261
- // easier to handle this case. if(!global) { ...}
262
-
263
- module.exports = g;
264
-
265
-
266
- /***/ }),
267
- /* 9 */
268
- /***/ (function(module, exports) {
269
-
270
-
271
- /**
272
- * Provide a global accessable cache-break-function (only available on backend-pages where crop-thumbnail is active --> post-editor, mediathek)
273
- * Calling this function will add a timestamp on the provided Image-Element.
274
- * ATTENTION: using this will also delete all other parameters on the images src-attribute.
275
- * @param {dom-element / jquery-selection} elem
276
- */
277
- CROP_THUMBNAILS_DO_CACHE_BREAK = function (elem) {
278
- var $ = jQuery;
279
- var images = $(elem);
280
- for (var i = 0; i < images.length; i++) {
281
- var img = $(images[i]); //select image
282
- var imageUrl = img.attr('src');
283
- var imageUrlArray = imageUrl.split("?");
284
-
285
- img.attr('src', imageUrlArray[0] + '?&cacheBreak=' + new Date().getTime());
286
- }
287
- };
288
-
289
- /***/ }),
290
- /* 10 */
291
- /***/ (function(module, exports) {
292
-
293
- /**
294
- * Create Listener for click-events with element-class ".cropThumbnailsLink".
295
- * Open the modal box.
296
- */
297
- jQuery(document).ready(function ($) {
298
- $(document).on('click', '.cropThumbnailsLink', function (e) {
299
- e.preventDefault();
300
-
301
- //get the data from the link
302
- var data = $(this).data('cropthumbnail');
303
-
304
- var title = $(this).attr('title');
305
- var posttype = null;
306
- if (data.posttype !== undefined) {
307
- posttype = data.posttype;
308
- }
309
-
310
- var modal = new CROP_THUMBNAILS_VUE.modal();
311
- modal.open(data.image_id, posttype, title);
312
- });
313
- });
314
-
315
- /***/ }),
316
- /* 11 */
317
- /***/ (function(module, exports) {
318
-
319
- CROP_THUMBNAILS_VUE.modal = function () {
320
- var $ = jQuery;
321
- var that = this;
322
-
323
- function removeModal() {
324
- $('#cpt_Modal .cpt_ModalClose, #cpt_Modal').unbind('click');
325
- $('#cpt_Modal').remove();
326
- $('body').removeClass('cpt_ModalIsOpen');
327
- }
328
-
329
- /**
330
- * Should be called when the close-button is clicked.
331
- * Will trigger the "cropThumbnailModalClosed"-event to the body on close,
332
- * so everyone that is up to, could build a cache-breaker on their images.
333
- * HOW-TO cache-break:
334
- * $('body').on('cropThumbnailModalClosed',function() {
335
- * CROP_THUMBNAILS_DO_CACHE_BREAK( $('.your-image-selector') );
336
- * });
337
- * @var Event
338
- */
339
- that.close = function (event) {
340
- CROP_THUMBNAILS_VUE.app.$destroy();
341
- CROP_THUMBNAILS_VUE.app = null;
342
- removeModal();
343
- $('body').trigger('cropThumbnailModalClosed');
344
- document.removeEventListener('keydown', that.closeByEscKey, true);
345
- };
346
-
347
- /**
348
- * Should be called when the background is clicked
349
- * @var Event
350
- */
351
- that.closeByBackground = function (event) {
352
- if (event.target == document.getElementById('cpt_Modal')) {
353
- that.close(event);
354
- }
355
- };
356
-
357
- that.closeByEscKey = function (event) {
358
- if (!event.keyCode || event.keyCode === 27) {
359
- event.stopPropagation();
360
- that.close(event);
361
- }
362
- };
363
-
364
- that.open = function (imageId, posttype, title) {
365
-
366
- var id = imageId;
367
- var modalHtml = '';
368
- modalHtml += '<div id="cpt_Modal" class="cpt_Modal">';
369
- modalHtml += '<div class="cpt_ModalDialog" role="dialog" aria-label="' + $('<div>').text(title).html() + '">';
370
- modalHtml += '<button type="button" class="cpt_ModalClose" aria-label="close">&times;</button>';
371
- modalHtml += '<div class="cpt_ModalHeader"><div class="cpt_ModalTitle">' + title + '</div></div>';
372
-
373
- modalHtml += '<div class="cpt_ModalContent" id="cpt_crop_editor">';
374
- modalHtml += '<cropeditor image-id="' + id + '"';
375
- if (typeof posttype === 'string') {
376
- modalHtml += ' posttype="' + posttype + '"';
377
- }
378
- modalHtml += '></cropeditor>';
379
- modalHtml += '</div>'; //end cpt_ModalContent
380
- modalHtml += '</div>'; //end cpt_ModalDialog
381
- modalHtml += '</div>'; //end cpt_Modal;
382
-
383
-
384
- $('body').prepend(modalHtml).addClass('cpt_ModalIsOpen');
385
- $('#cpt_Modal .cpt_ModalClose').click(that.close);
386
- $('#cpt_Modal').on('touchstart mousedown', that.closeByBackground);
387
- document.addEventListener('keydown', that.closeByEscKey, true);
388
-
389
- CROP_THUMBNAILS_VUE.app = new Vue({
390
- el: '#cpt_crop_editor',
391
- mounted: function () {
392
- console.log('cpt_crop_editor mounted');
393
- },
394
- components: CROP_THUMBNAILS_VUE.components
395
- });
396
- };
397
- };
398
-
399
- /***/ }),
400
- /* 12 */
401
- /***/ (function(module, exports) {
402
-
403
- CROP_THUMBNAILS_VUE.components.message = {
404
- template: '@./message.tpl.html',
405
- props: {},
406
- data: function () {
407
- return {
408
- closed: false
409
- };
410
- },
411
- methods: {
412
- close: function () {
413
- this.closed = true;
414
- }
415
- }
416
- };
417
-
418
- /***/ }),
419
- /* 13 */
420
- /***/ (function(module, exports, __webpack_require__) {
421
-
422
- CROP_THUMBNAILS_VUE.components.loadingcontainer = {
423
- template: __webpack_require__(14),
424
- props: {
425
- image: {
426
- required: true,
427
- type: String
428
- }
429
- },
430
- data: function () {
431
- return {
432
- status: null
433
- };
434
- },
435
- watch: {
436
- image: function () {
437
- this.setup();
438
- }
439
- },
440
- mounted: function () {
441
- this.setup();
442
- },
443
- methods: {
444
- setup: function () {
445
- var that = this;
446
- that.setStart();
447
- setTimeout(function () {
448
- var imgLoad = imagesLoaded(that.$el);
449
- imgLoad.once('done', function () {
450
- if (that.status !== 'failed') {
451
- that.setComplete();
452
- }
453
- }).once('fail', function () {
454
- that.setFailed();
455
- });
456
- }, 300);
457
- },
458
- setComplete: function () {
459
- this.status = 'completed';
460
- },
461
- setStart: function () {
462
- this.status = 'loading';
463
- },
464
- setFailed: function () {
465
- this.status = 'failed';
466
- }
467
- }
468
- };
469
-
470
- /***/ }),
471
- /* 14 */
472
- /***/ (function(module, exports) {
473
-
474
- module.exports = "<div class=\"loadingcontainer\" :class=\"status\">\n\t<img :src=\"image\" style=\"display:none;\" />\n\t<slot></slot>\n\t\n\t<transition name=\"fade\">\n\t\t<div class=\"loadingMsg\" v-if=\"status==='loading'\">\n\t\t\t<div class=\"cptLoadingSpinner\"></div>\n\t\t</div>\n\t</transition>\n</div>\n"
475
-
476
- /***/ }),
477
- /* 15 */
478
- /***/ (function(module, exports, __webpack_require__) {
479
-
480
- CROP_THUMBNAILS_VUE.components.cropeditor = {
481
- template: __webpack_require__(16),
482
- props: {
483
- imageId: {
484
- required: true,
485
- type: Number
486
- },
487
- posttype: {
488
- required: false,
489
- type: String,
490
- default: null
491
- }
492
- },
493
- components: {
494
- loadingcontainer: CROP_THUMBNAILS_VUE.components.loadingcontainer,
495
- message: CROP_THUMBNAILS_VUE.components.message
496
- },
497
- data: function () {
498
- return {
499
- cropData: null, //
500
- loading: false, //will be true as long as the crop-request is running
501
- selectSameRatio: true, //boolean value if same ratio image-sizes should be selected at once
502
- croppingApi: null, //the object of the crop-library
503
- currentCropSize: null, //the size of the cropp region (needed for lowResWarning)
504
- lang: null, //language-variable (filled after initial request)
505
- nonce: null, //the nonce for the crop-request
506
- showDebugType: null, //the type of the debug to show: null-> no debug open, 'js' -> show jsDebug, 'data' -> show dataDebug
507
- dataDebug: null //will be filled after the crop request finished
508
- };
509
- },
510
- mounted: function () {
511
- this.loadCropData();
512
- },
513
- computed: {
514
- cropImage: function () {
515
- if (this.cropData !== undefined) {
516
- var result = this.cropData.sourceImage.full;
517
- var targetRatio = Math.round(result.ratio * 10);
518
- if (this.cropData.sourceImage.large !== null && this.cropData.sourceImage.large.width > 745 && targetRatio === Math.round(this.cropData.sourceImage.large.ratio * 10) && this.cropData.sourceImage.full.url !== this.cropData.sourceImage.large.url) {
519
- result = this.cropData.sourceImage.large;
520
- }
521
- if (this.cropData.sourceImage.medium_large !== null && this.cropData.sourceImage.medium_large.width > 745 && targetRatio === Math.round(this.cropData.sourceImage.medium_large.ratio * 10) && this.cropData.sourceImage.full.url !== this.cropData.sourceImage.medium_large.url) {
522
- result = this.cropData.sourceImage.medium_large;
523
- }
524
- return result;
525
- }
526
- },
527
- filteredImageSizes: function () {
528
- return this.cropData.imageSizes.filter(function (elem) {
529
- return !elem.hideByPostType;
530
- });
531
- },
532
- activeImageSizes: function () {
533
- return this.cropData.imageSizes.filter(function (elem) {
534
- return elem.active;
535
- });
536
- },
537
- sourceImageHasOrientation: function () {
538
- try {
539
- if (typeof this.cropData.sourceImageMeta.orientation === 'string' && this.cropData.sourceImageMeta.orientation !== '1' && this.cropData.sourceImageMeta.orientation !== '0') {
540
- return true;
541
- }
542
- } catch (e) {}
543
- return false;
544
- }
545
- },
546
- methods: {
547
- imageSizeClass: function (imageSize) {
548
- var baseClass = { active: imageSize.active };
549
- baseClass['cptImageSize-' + imageSize.nameLabel] = true; //add image-size to the class
550
- return baseClass;
551
- },
552
- loadCropData: function () {
553
- var that = this;
554
- var getParameter = {
555
- action: 'cpt_cropdata',
556
- imageId: this.imageId,
557
- posttype: this.posttype
558
- };
559
- that.loading = true;
560
- jQuery.get(ajaxurl, getParameter, function (responseData) {
561
- that.makeAllInactive(responseData.imageSizes);
562
- that.addCacheBreak(responseData.imageSizes);
563
- that.cropData = responseData;
564
- that.lang = that.cropData.lang;
565
- that.nonce = that.cropData.nonce;
566
- delete that.cropData.nonce;
567
- }).fail(function (data) {
568
- that.cropData = data.responseJSON;
569
- that.lang = that.cropData.lang;
570
- that.nonce = that.cropData.nonce;
571
- delete that.cropData.nonce;
572
- if (data.status === 403) {
573
- that.cropData.noPermission = true;
574
- }
575
- }).always(function () {
576
- that.loading = false;
577
- });
578
- },
579
- isLowRes: function (image) {
580
- if (!image.active || this.currentCropSize === null) {
581
- return false;
582
- }
583
- if (image.width === 0 && this.currentCropSize.height < image.height) {
584
- return true;
585
- }
586
- if (image.height === 0 && this.currentCropSize.width < image.width) {
587
- return true;
588
- }
589
- if (image.height === 9999) {
590
- if (this.currentCropSize.width < image.width) {
591
- return true;
592
- }
593
- return false;
594
- }
595
- if (image.width === 9999) {
596
- if (this.currentCropSize.height < image.height) {
597
- return true;
598
- }
599
- return false;
600
- }
601
- if (this.currentCropSize.width < image.width || this.currentCropSize.height < image.height) {
602
- return true;
603
- }
604
- return false;
605
- },
606
- toggleActive: function (image) {
607
- var newValue = !image.active;
608
-
609
- if (image.active === false) {
610
- this.makeAllInactive();
611
- }
612
-
613
- if (this.selectSameRatio) {
614
- this.cropData.imageSizes.forEach(function (i) {
615
- if (i.printRatio === image.printRatio && i.hideByPostType === false) {
616
- i.active = newValue;
617
- }
618
- });
619
- } else {
620
- image.active = newValue;
621
- }
622
-
623
- if (this.activeImageSizes.length > 0) {
624
- this.activateCropArea();
625
- } else {
626
- this.deactivateCropArea();
627
- }
628
- },
629
- makeAllInactive: function (imageSizes) {
630
- if (imageSizes === undefined) {
631
- imageSizes = this.cropData.imageSizes;
632
- }
633
- imageSizes.forEach(function (i) {
634
- i.active = false;
635
- i.lowResWarning = false;
636
- });
637
- this.deactivateCropArea();
638
- },
639
- addCacheBreak: function (imageSizes) {
640
- if (imageSizes === undefined) {
641
- imageSizes = this.cropData.imageSizes;
642
- }
643
- imageSizes.forEach(function (i) {
644
- i.cacheBreak = Date.now();
645
- });
646
- },
647
- updateCurrentCrop: function () {
648
- var result = null;
649
- if (this.croppingApi !== null) {
650
- var size = this.croppingApi.tellSelect();
651
- result = {
652
- width: Math.round(size.w),
653
- height: Math.round(size.h)
654
- };
655
- }
656
- this.currentCropSize = result;
657
- },
658
- activateCropArea: function () {
659
- var that = this;
660
- that.deactivateCropArea();
661
-
662
- function getPreselect(width, height, targetRatio) {
663
- var x0 = 0;
664
- var y0 = 0;
665
- var x1 = width;
666
- var y1 = height;
667
- var sourceRatio = width / height;
668
-
669
- if (sourceRatio <= targetRatio) {
670
- y0 = height / 2 - width / targetRatio / 2;
671
- y1 = height - y0;
672
- } else {
673
- x0 = width / 2 - height * targetRatio / 2;
674
- x1 = width - x0;
675
- }
676
- var result = [x0, y0, x1, y1];
677
- return result;
678
- }
679
-
680
- var options = {
681
- trueSize: [that.cropData.sourceImage.full.width, that.cropData.sourceImage.full.height],
682
- aspectRatio: 0,
683
- setSelect: [],
684
- onSelect: that.updateCurrentCrop
685
- };
686
-
687
- //get the options
688
- that.activeImageSizes.forEach(function (i) {
689
- if (options.aspectRatio === 0) {
690
- options.aspectRatio = i.ratio; //initial
691
- }
692
- if (options.aspectRatio !== i.ratio) {
693
- console.info('Crop Thumbnails: print ratio is different from normal ratio on image size "' + i.name + '".');
694
- }
695
- });
696
-
697
- options.setSelect = getPreselect(that.cropData.sourceImage.full.width, that.cropData.sourceImage.full.height, options.aspectRatio);
698
-
699
- //debug
700
- if (that.cropData.options.debug_js) {
701
- console.info('Cropping options', options);
702
- }
703
-
704
- jQuery(that.$el).find('img.cptCroppingImage').Jcrop(options, function () {
705
- that.croppingApi = this;
706
- that.updateCurrentCrop();
707
- });
708
- },
709
- deactivateCropArea: function () {
710
- if (this.croppingApi !== null) {
711
- this.croppingApi.destroy();
712
- this.croppingApi = null;
713
- this.currentCropSize = null;
714
- }
715
- },
716
- showDebugClick: function (type) {
717
- if (this.showDebugType === type) {
718
- this.showDebugType = null;
719
- } else {
720
- this.showDebugType = type;
721
- }
722
- },
723
- cropThumbnails: function () {
724
- var that = this;
725
-
726
- function getDataOfActiveImageSizes() {
727
- var result = [];
728
- that.activeImageSizes.forEach(function (i) {
729
- if (i.active) {
730
- var tmp = {
731
- name: i.name,
732
- width: i.width,
733
- height: i.height,
734
- ratio: i.ratio,
735
- crop: i.crop
736
- };
737
- result.push(tmp);
738
- }
739
- });
740
- return result;
741
- }
742
-
743
- if (!that.loading && that.croppingApi !== null) {
744
- that.loading = true;
745
-
746
- var cptRequestParams = {
747
- action: 'cptSaveThumbnail',
748
- _ajax_nonce: that.nonce,
749
- cookie: encodeURIComponent(document.cookie),
750
- crop_thumbnails: JSON.stringify({
751
- 'selection': that.croppingApi.tellSelect(),
752
- 'sourceImageId': that.cropData.sourceImageId,
753
- 'activeImageSizes': getDataOfActiveImageSizes()
754
- })
755
- };
756
-
757
- var request = jQuery.post(ajaxurl, cptRequestParams, null, 'json');
758
- request.done(function (responseData) {
759
- if (that.cropData.options.debug_data) {
760
- that.dataDebug = responseData.debug;
761
- console.log('Save Function Debug', responseData.debug);
762
- }
763
- if (responseData.error !== undefined) {
764
- alert(responseData.error);
765
- return;
766
- }
767
- if (responseData.success !== undefined) {
768
- if (responseData.changedImageName !== undefined) {
769
- //update activeImageSizes with the new URLs
770
- that.activeImageSizes.forEach(function (value, key) {
771
- if (responseData.changedImageName[value.name] !== undefined) {
772
- value.url = responseData.changedImageName[value.name];
773
- }
774
- });
775
- }
776
- that.addCacheBreak(that.activeImageSizes);
777
- return;
778
- }
779
- }).fail(function (response) {
780
- alert(that.lang.script_connection_error);
781
- var debug = {
782
- status: response.status,
783
- statusText: response.statusText,
784
- requestUrl: ajaxurl,
785
- requestParams: cptRequestParams
786
- };
787
- console.error('crop-thumbnails connection error', debug);
788
- }).always(function () {
789
- that.loading = false;
790
- });
791
- }
792
- }
793
- }
794
- };
795
-
796
- /***/ }),
797
- /* 16 */
798
- /***/ (function(module, exports) {
799
-
800
- module.exports = "<div class=\"cptEditorInner\" v-if=\"cropData && lang\" :class=\"{loading:loading,cropEditorActive:croppingApi}\">\n\t\n\t<div class=\"cptWaitingWindow\" v-if=\"loading\">\n\t\t<div class=\"msg\">\n\t\t\t{{ lang.waiting }}\n\t\t\t<div>\n\t\t\t\t<div class=\"cptLoadingSpinner\"></div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n\t\n\t<div class=\"cptWaitingWindow cptCropDisabledMsg\" v-if=\"cropData.hiddenOnPostType\">\n\t\t<div class=\"msg\">{{lang.cropDisabled}}</div>\n\t</div>\n\t\n\t<div class=\"cptWaitingWindow cptNoPermissionMsg\" v-if=\"cropData.noPermission\">\n\t\t<div class=\"msg\">{{lang.noPermission}}</div>\n\t</div>\n\n\t<div class=\"mainWindow\" v-if=\"!cropData.hiddenOnPostType && !cropData.noPermission\">\n\t\t\n\t\t<div class=\"cptSelectionPane\" :class=\"{ cptImagesAreSelected : (activeImageSizes.length>0) }\">\n\t\t\t<div class=\"cptSelectionPaneInner\">\n\t\t\t\t<message v-if=\"sourceImageHasOrientation\">{{lang.message_image_orientation}}</message>\n\t\t\t\t<p>\n\t\t\t\t\t<label class=\"cptSameRatioLabel\">\n\t\t\t\t\t\t<input type=\"checkbox\" v-model=\"selectSameRatio\" />\n\t\t\t\t\t\t{{lang.label_same_ratio}}\n\t\t\t\t\t</label>\n\t\t\t\t\t<button type=\"button\" class=\"button\" @click=\"makeAllInactive()\">{{lang.label_deselect_all}}</button>\n\t\t\t\t</p>\n\t\t\t\t<ul class=\"cptImageSizelist\">\n\t\t\t\t\t<li v-for=\"i in filteredImageSizes\" :class=\"imageSizeClass(i)\" @click=\"toggleActive(i)\">\n\t\t\t\t\t\t<section class=\"cptImageSizeInner\">\n\t\t\t\t\t\t\t<header>{{i.nameLabel}}</header>\n\t\t\t\t\t\t\t<div class=\"lowResWarning\" v-if=\"isLowRes(i)\" :title=\"lang.lowResWarning\"><span>!</span></div>\n\t\t\t\t\t\t\t<div class=\"notYetCropped\" v-if=\"!isLowRes(i) && i.url === cropData.sourceImage.full.url\" :title=\"lang.notYetCropped\"><span class=\"dashicons dashicons-image-crop\"></span></div>\n\t\t\t\t\t\t\t<div class=\"dimensions\">{{ lang.dimensions }} {{i.width}} x {{i.height}} {{ lang.pixel }}</div>\n\t\t\t\t\t\t\t<div class=\"ratio\">{{ lang.ratio }} {{i.printRatio}}</div>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t<loadingcontainer :image=\"i.url+'?cacheBreak='+i.cacheBreak\">\n\t\t\t\t\t\t\t\t<div class=\"cptImageBgContainer\" :style=\"{'background-image': 'url('+i.url+'?cacheBreak='+i.cacheBreak+')'}\"></div>\n\t\t\t\t\t\t\t</loadingcontainer>\n\t\t\t\t\t\t</section>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"cptCropPane\">\n\t\t\t<div class=\"info\">\n\t\t\t\t<h3>{{ lang.rawImage }}</h3>\n\t\t\t\t<div class=\"dimensions\">{{ lang.dimensions }} {{cropData.sourceImage.full.width}} x {{cropData.sourceImage.full.height}} {{ lang.pixel }}</div>\n\t\t\t\t<div class=\"ratio\">{{ lang.ratio }} {{cropData.sourceImage.full.printRatio}}</div>\n\t\t\t</div>\n\t\t\t<button type=\"button\" class=\"button cptGenerate\" :class=\"{'button-primary':croppingApi}\" @click=\"cropThumbnails()\" :disabled=\"!croppingApi\">{{ lang.label_crop }}</button>\n\t\t\t\n\t\t\t<div class=\"cropContainer\">\n\t\t\t\t<img class=\"cptCroppingImage\" :src=\"cropImage.url\" />\n\t\t\t</div>\n\t\n\t\t\t<h4>{{ lang.instructions_header }}</h4>\n\t\t\t<ul class=\"step-info\">\n\t\t\t\t<li>{{ lang.instructions_step_1 }}</li>\n\t\t\t\t<li>{{ lang.instructions_step_2 }}</li>\n\t\t\t\t<li>{{ lang.instructions_step_3 }}</li>\n\t\t\t</ul>\n\n\t\t\t<div>\n\t\t\t\t<button type=\"button\" class=\"button\" v-if=\"cropData.options.debug_js\" @click=\"showDebugClick('js')\">show JS-Debug</button>\n\t\t\t\t<button type=\"button\" class=\"button\" v-if=\"cropData.options.debug_data && dataDebug!==null\" @click=\"showDebugClick('data')\">show Data-Debug</button>\n\t\t\t\t<pre v-if=\"showDebugType==='data'\">{{ dataDebug }}</pre>\n\t\t\t\t<pre v-if=\"showDebugType==='js'\"><br />cropImage:{{cropImage}}<br />cropData:{{ cropData }}</pre>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n"
801
-
802
- /***/ }),
803
- /* 17 */
804
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
805
-
806
- "use strict";
807
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__init_on_settingspage__ = __webpack_require__(18);
808
- /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__init_on_settingspage___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__init_on_settingspage__);
809
-
810
-
811
- CROP_THUMBNAILS_VUE.components['cpt-settingsscreen'] = {
812
- template: __webpack_require__(19),
813
- props: {
814
- settings: {
815
- required: true
816
- }
817
- },
818
- components: {},
819
- data: function () {
820
- return {
821
- settingsData: JSON.parse(this.settings)
822
- };
823
- },
824
- mounted: function () {},
825
- computed: {},
826
- methods: {
827
- isButtonHiddenOnPostType: function (postType) {
828
- return this.settingsData.options && this.settingsData.options.hide_post_type && this.settingsData.options.hide_post_type[postType] === "1";
829
- },
830
- isImageSizeHidden: function (postType, imageSize) {
831
- return this.settingsData.options && this.settingsData.options.hide_size && this.settingsData.options.hide_size[postType] && this.settingsData.options.hide_size[postType][imageSize] === "1";
832
- }
833
- }
834
- };
835
-
836
- /***/ }),
837
- /* 18 */
838
- /***/ (function(module, exports) {
839
-
840
- jQuery(document).ready(function ($) {
841
- if ($('body.settings_page_page-cpt').length > 0) {
842
- CROP_THUMBNAILS_VUE.app = new Vue({
843
- el: '#cpt_settings_settingsscreen',
844
- mounted: function () {},
845
- components: CROP_THUMBNAILS_VUE.components
846
- });
847
- }
848
- });
849
-
850
- /***/ }),
851
- /* 19 */
852
- /***/ (function(module, exports) {
853
-
854
- module.exports = "<div>\n\n <div class=\"cptSettingsPostListDescription\">{{settingsData.lang.choose_image_sizes}}</div>\n <ul class=\"cptSettingsPostList\">\n\n <li v-for=\"postType in settingsData.post_types\">\n <section>\n <header><h3>{{postType.label}}</h3></header>\n\n \n <ul class=\"cptImageSizes\">\n <li v-for=\"imageSize in settingsData.image_sizes\" v-if=\"imageSize.crop\">\n <label>\n <input type=\"checkbox\" :value=\"imageSize.id\" :name=\"'crop-post-thumbs[hide_size]['+postType.name+']['+imageSize.id+']'\" :checked=\"isImageSizeHidden(postType.name,imageSize.id)\"/>\n <span class=\"name\">{{imageSize.name}}</span>\n <span class=\"defaultName\" v-if=\"imageSize.name!==imageSize.id\">({{imageSize.id}})</span>\n </label>\n </li>\n </ul>\n \n <label>\n <input id=\"cpt_settings_post\" type=\"checkbox\" :name=\"'crop-post-thumbs[hide_post_type]['+postType.name+']'\" value=\"1\" :checked=\"isButtonHiddenOnPostType(postType.name)\">\n {{settingsData.lang.hide_on_post_type}}\n </label>\n </section>\n </li>\n </ul>\n \n</div>"
855
-
856
- /***/ })
857
- /******/ ]);
1
+ !function(t){var e={};function n(i){if(e[i])return e[i].exports;var a=e[i]={i:i,l:!1,exports:{}};return t[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)n.d(i,a,function(e){return t[e]}.bind(null,a));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=16)}([function(t,e,n){},function(t,e){Array.prototype.filter||(Array.prototype.filter=function(t){"use strict";if(null==this)throw new TypeError;var e=Object(this),n=e.length>>>0;if("function"!=typeof t)throw new TypeError;for(var i=[],a=arguments.length>=2?arguments[1]:void 0,o=0;o<n;o++)if(o in e){var s=e[o];t.call(a,s,o,e)&&i.push(s)}return i})},function(t,e){Array.prototype.find||(Array.prototype.find=function(t){"use strict";if(null==this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof t)throw new TypeError("predicate must be a function");for(var e,n=Object(this),i=n.length>>>0,a=arguments[1],o=0;o<i;o++)if(e=n[o],t.call(a,e,o,n))return e})},function(t,e){var n;n={}},function(t,e,n){(function(t){t.CROP_THUMBNAILS_VUE={app:null,components:{}}}).call(this,n(5))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){CROP_THUMBNAILS_DO_CACHE_BREAK=function(t){for(var e=jQuery,n=e(t),i=0;i<n.length;i++){var a=e(n[i]),o=a.attr("src").split("?");a.attr("src",o[0]+"?&cacheBreak="+(new Date).getTime())}}},function(t,e){jQuery(document).ready(function(t){t(document).on("click",".cropThumbnailsLink",function(e){e.preventDefault();var n=t(this).data("cropthumbnail"),i=t(this).attr("title"),a=null;void 0!==n.posttype&&(a=n.posttype),(new CROP_THUMBNAILS_VUE.modal).open(n.image_id,a,i)})})},function(t,e){CROP_THUMBNAILS_VUE.modal=function(){var t=jQuery,e=this;e.close=function(n){CROP_THUMBNAILS_VUE.app.$destroy(),CROP_THUMBNAILS_VUE.app=null,t("#cpt_Modal .cpt_ModalClose, #cpt_Modal").unbind("click"),t("#cpt_Modal").remove(),t("body").removeClass("cpt_ModalIsOpen"),t("body").trigger("cropThumbnailModalClosed"),document.removeEventListener("keydown",e.closeByEscKey,!0)},e.closeByBackground=function(t){t.target==document.getElementById("cpt_Modal")&&e.close(t)},e.closeByEscKey=function(t){t.keyCode&&27!==t.keyCode||(t.stopPropagation(),e.close(t))},e.open=function(n,i,a){var o=n,s="";s+='<div id="cpt_Modal" class="cpt_Modal">',s+='<div class="cpt_ModalDialog" role="dialog" aria-label="'+t("<div>").text(a).html()+'">',s+='<button type="button" class="cpt_ModalClose" aria-label="close">&times;</button>',s+='<div class="cpt_ModalHeader"><div class="cpt_ModalTitle">'+a+"</div></div>",s+='<div class="cpt_ModalContent" id="cpt_crop_editor">',s+='<cropeditor :image-id="'+o+'"',"string"==typeof i&&(s+=' posttype="'+i+'"'),s+="></cropeditor>",s+="</div>",s+="</div>",s+="</div>",t("body").prepend(s).addClass("cpt_ModalIsOpen"),t("#cpt_Modal .cpt_ModalClose").click(e.close),t("#cpt_Modal").on("touchstart mousedown",e.closeByBackground),document.addEventListener("keydown",e.closeByEscKey,!0),CROP_THUMBNAILS_VUE.app=new Vue({el:"#cpt_crop_editor",mounted:function(){console.log("cpt_crop_editor mounted")},components:CROP_THUMBNAILS_VUE.components})}}},function(t,e){CROP_THUMBNAILS_VUE.components.message={template:"@./message.tpl.html",props:{},data:function(){return{closed:!1}},methods:{close:function(){this.closed=!0}}}},function(t,e,n){CROP_THUMBNAILS_VUE.components.loadingcontainer={template:n(11),props:{image:{required:!0,type:String}},data:function(){return{status:null}},watch:{image:function(){this.setup()}},mounted:function(){this.setup()},methods:{setup:function(){var t=this;t.setStart(),setTimeout(function(){imagesLoaded(t.$el).once("done",function(){"failed"!==t.status&&t.setComplete()}).once("fail",function(){t.setFailed()})},300)},setComplete:function(){this.status="completed"},setStart:function(){this.status="loading"},setFailed:function(){this.status="failed"}}}},function(t,e){t.exports='<div class="loadingcontainer" :class="status">\n\t<img :src="image" style="display:none;" />\n\t<slot></slot>\n\t\n\t<transition name="fade">\n\t\t<div class="loadingMsg" v-if="status===\'loading\'">\n\t\t\t<div class="cptLoadingSpinner"></div>\n\t\t</div>\n\t</transition>\n</div>\n'},function(t,e,n){CROP_THUMBNAILS_VUE.components.cropeditor={template:n(13),props:{imageId:{required:!0,type:Number},posttype:{required:!1,type:String,default:null}},components:{loadingcontainer:CROP_THUMBNAILS_VUE.components.loadingcontainer,message:CROP_THUMBNAILS_VUE.components.message},data:function(){return{cropData:null,loading:!1,selectSameRatio:!0,croppingApi:null,currentCropSize:null,lang:null,nonce:null,showDebugType:null,dataDebug:null}},mounted:function(){this.loadCropData()},computed:{cropImage:function(){if(void 0!==this.cropData){var t=this.cropData.sourceImage.full,e=Math.round(10*t.ratio);return null!==this.cropData.sourceImage.large&&this.cropData.sourceImage.large.width>745&&e===Math.round(10*this.cropData.sourceImage.large.ratio)&&this.cropData.sourceImage.full.url!==this.cropData.sourceImage.large.url&&(t=this.cropData.sourceImage.large),null!==this.cropData.sourceImage.medium_large&&this.cropData.sourceImage.medium_large.width>745&&e===Math.round(10*this.cropData.sourceImage.medium_large.ratio)&&this.cropData.sourceImage.full.url!==this.cropData.sourceImage.medium_large.url&&(t=this.cropData.sourceImage.medium_large),t}},filteredImageSizes:function(){return this.cropData.imageSizes.filter(function(t){return!t.hideByPostType})},activeImageSizes:function(){return this.cropData.imageSizes.filter(function(t){return t.active})},sourceImageHasOrientation:function(){try{if("string"==typeof this.cropData.sourceImageMeta.orientation&&"1"!==this.cropData.sourceImageMeta.orientation&&"0"!==this.cropData.sourceImageMeta.orientation)return!0}catch(t){}return!1}},methods:{imageSizeClass:function(t){var e={active:t.active};return e["cptImageSize-"+t.nameLabel]=!0,e},loadCropData:function(){var t=this,e={action:"cpt_cropdata",imageId:this.imageId,posttype:this.posttype};t.loading=!0,jQuery.get(ajaxurl,e,function(e){t.makeAllInactive(e.imageSizes),t.addCacheBreak(e.imageSizes),t.cropData=e,t.lang=t.cropData.lang,t.nonce=t.cropData.nonce,delete t.cropData.nonce}).fail(function(e){t.cropData=e.responseJSON,t.lang=t.cropData.lang,t.nonce=t.cropData.nonce,delete t.cropData.nonce,403===e.status&&(t.cropData.noPermission=!0)}).always(function(){t.loading=!1})},isLowRes:function(t){return!(!t.active||null===this.currentCropSize)&&(0===t.width&&this.currentCropSize.height<t.height||(0===t.height&&this.currentCropSize.width<t.width||(9999===t.height?this.currentCropSize.width<t.width:9999===t.width?this.currentCropSize.height<t.height:this.currentCropSize.width<t.width||this.currentCropSize.height<t.height)))},toggleActive:function(t){var e=!t.active;!1===t.active&&this.makeAllInactive(),this.selectSameRatio?this.cropData.imageSizes.forEach(function(n){n.printRatio===t.printRatio&&!1===n.hideByPostType&&(n.active=e)}):t.active=e,this.activeImageSizes.length>0?this.activateCropArea():this.deactivateCropArea()},makeAllInactive:function(t){void 0===t&&(t=this.cropData.imageSizes),t.forEach(function(t){t.active=!1,t.lowResWarning=!1}),this.deactivateCropArea()},addCacheBreak:function(t){void 0===t&&(t=this.cropData.imageSizes),t.forEach(function(t){t.cacheBreak=Date.now()})},updateCurrentCrop:function(){var t=null;if(null!==this.croppingApi){var e=this.croppingApi.tellSelect();t={width:Math.round(e.w),height:Math.round(e.h)}}this.currentCropSize=t},activateCropArea:function(){var t=this;t.deactivateCropArea();var e,n,i,a,o,s,r,c={trueSize:[t.cropData.sourceImage.full.width,t.cropData.sourceImage.full.height],aspectRatio:0,setSelect:[],onSelect:t.updateCurrentCrop};t.activeImageSizes.forEach(function(t){0===c.aspectRatio&&(c.aspectRatio=t.ratio),c.aspectRatio!==t.ratio&&console.info('Crop Thumbnails: print ratio is different from normal ratio on image size "'+t.name+'".')}),c.setSelect=(e=t.cropData.sourceImage.full.width,n=t.cropData.sourceImage.full.height,i=c.aspectRatio,a=0,o=0,s=e,r=n,e/n<=i?r=n-(o=n/2-e/i/2):s=e-(a=e/2-n*i/2),[a,o,s,r]),t.cropData.options.debug_js&&console.info("Cropping options",c),jQuery(t.$el).find("img.cptCroppingImage").Jcrop(c,function(){t.croppingApi=this,t.updateCurrentCrop()})},deactivateCropArea:function(){null!==this.croppingApi&&(this.croppingApi.destroy(),this.croppingApi=null,this.currentCropSize=null)},showDebugClick:function(t){this.showDebugType===t?this.showDebugType=null:this.showDebugType=t},cropThumbnails:function(){var t,e=this;if(!e.loading&&null!==e.croppingApi){e.loading=!0;var n={action:"cptSaveThumbnail",_ajax_nonce:e.nonce,cookie:encodeURIComponent(document.cookie),crop_thumbnails:JSON.stringify({selection:e.croppingApi.tellSelect(),sourceImageId:e.cropData.sourceImageId,activeImageSizes:(t=[],e.activeImageSizes.forEach(function(e){if(e.active){var n={name:e.name,width:e.width,height:e.height,ratio:e.ratio,crop:e.crop};t.push(n)}}),t)})};jQuery.post(ajaxurl,n,null,"json").done(function(t){if(e.cropData.options.debug_data&&(e.dataDebug=t.debug,console.log("Save Function Debug",t.debug)),void 0===t.error)return void 0!==t.success?(void 0!==t.changedImageName&&e.activeImageSizes.forEach(function(e,n){void 0!==t.changedImageName[e.name]&&(e.url=t.changedImageName[e.name])}),void e.addCacheBreak(e.activeImageSizes)):void 0;alert(t.error)}).fail(function(t){alert(e.lang.script_connection_error);var i={status:t.status,statusText:t.statusText,requestUrl:ajaxurl,requestParams:n};console.error("crop-thumbnails connection error",i)}).always(function(){e.loading=!1})}}}}},function(t,e){t.exports='<div class="cptEditorInner" v-if="cropData && lang" :class="{loading:loading,cropEditorActive:croppingApi}">\n\t\n\t<div class="cptWaitingWindow" v-if="loading">\n\t\t<div class="msg">\n\t\t\t{{ lang.waiting }}\n\t\t\t<div>\n\t\t\t\t<div class="cptLoadingSpinner"></div>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n\t\n\t<div class="cptWaitingWindow cptCropDisabledMsg" v-if="cropData.hiddenOnPostType">\n\t\t<div class="msg">{{lang.cropDisabled}}</div>\n\t</div>\n\t\n\t<div class="cptWaitingWindow cptNoPermissionMsg" v-if="cropData.noPermission">\n\t\t<div class="msg">{{lang.noPermission}}</div>\n\t</div>\n\n\t<div class="mainWindow" v-if="!cropData.hiddenOnPostType && !cropData.noPermission">\n\t\t\n\t\t<div class="cptSelectionPane" :class="{ cptImagesAreSelected : (activeImageSizes.length>0) }">\n\t\t\t<div class="cptSelectionPaneInner">\n\t\t\t\t<message v-if="sourceImageHasOrientation">{{lang.message_image_orientation}}</message>\n\t\t\t\t<p>\n\t\t\t\t\t<label class="cptSameRatioLabel">\n\t\t\t\t\t\t<input type="checkbox" v-model="selectSameRatio" />\n\t\t\t\t\t\t{{lang.label_same_ratio}}\n\t\t\t\t\t</label>\n\t\t\t\t\t<button type="button" class="button" @click="makeAllInactive()">{{lang.label_deselect_all}}</button>\n\t\t\t\t</p>\n\t\t\t\t<ul class="cptImageSizelist">\n\t\t\t\t\t<li v-for="i in filteredImageSizes" :class="imageSizeClass(i)" @click="toggleActive(i)">\n\t\t\t\t\t\t<section class="cptImageSizeInner">\n\t\t\t\t\t\t\t<header>{{i.nameLabel}}</header>\n\t\t\t\t\t\t\t<div class="lowResWarning" v-if="isLowRes(i)" :title="lang.lowResWarning"><span>!</span></div>\n\t\t\t\t\t\t\t<div class="notYetCropped" v-if="!isLowRes(i) && i.url === cropData.sourceImage.full.url" :title="lang.notYetCropped"><span class="dashicons dashicons-image-crop"></span></div>\n\t\t\t\t\t\t\t<div class="dimensions">{{ lang.dimensions }} {{i.width}} x {{i.height}} {{ lang.pixel }}</div>\n\t\t\t\t\t\t\t<div class="ratio">{{ lang.ratio }} {{i.printRatio}}</div>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t<loadingcontainer :image="i.url+\'?cacheBreak=\'+i.cacheBreak">\n\t\t\t\t\t\t\t\t<div class="cptImageBgContainer" :style="{\'background-image\': \'url(\'+i.url+\'?cacheBreak=\'+i.cacheBreak+\')\'}"></div>\n\t\t\t\t\t\t\t</loadingcontainer>\n\t\t\t\t\t\t</section>\n\t\t\t\t\t</li>\n\t\t\t\t</ul>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class="cptCropPane">\n\t\t\t<div class="info">\n\t\t\t\t<h3>{{ lang.rawImage }}</h3>\n\t\t\t\t<div class="dimensions">{{ lang.dimensions }} {{cropData.sourceImage.full.width}} x {{cropData.sourceImage.full.height}} {{ lang.pixel }}</div>\n\t\t\t\t<div class="ratio">{{ lang.ratio }} {{cropData.sourceImage.full.printRatio}}</div>\n\t\t\t</div>\n\t\t\t<button type="button" class="button cptGenerate" :class="{\'button-primary\':croppingApi}" @click="cropThumbnails()" :disabled="!croppingApi">{{ lang.label_crop }}</button>\n\t\t\t\n\t\t\t<div class="cropContainer">\n\t\t\t\t<img class="cptCroppingImage" :src="cropImage.url" />\n\t\t\t</div>\n\t\n\t\t\t<h4>{{ lang.instructions_header }}</h4>\n\t\t\t<ul class="step-info">\n\t\t\t\t<li>{{ lang.instructions_step_1 }}</li>\n\t\t\t\t<li>{{ lang.instructions_step_2 }}</li>\n\t\t\t\t<li>{{ lang.instructions_step_3 }}</li>\n\t\t\t</ul>\n\n\t\t\t<div>\n\t\t\t\t<button type="button" class="button" v-if="cropData.options.debug_js" @click="showDebugClick(\'js\')">show JS-Debug</button>\n\t\t\t\t<button type="button" class="button" v-if="cropData.options.debug_data && dataDebug!==null" @click="showDebugClick(\'data\')">show Data-Debug</button>\n\t\t\t\t<pre v-if="showDebugType===\'data\'">{{ dataDebug }}</pre>\n\t\t\t\t<pre v-if="showDebugType===\'js\'"><br />cropImage:{{cropImage}}<br />cropData:{{ cropData }}</pre>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n'},function(t,e){jQuery(document).ready(function(t){t("body.settings_page_page-cpt").length>0&&(CROP_THUMBNAILS_VUE.app=new Vue({el:"#cpt_settings_settingsscreen",mounted:function(){},components:CROP_THUMBNAILS_VUE.components}))})},function(t,e){t.exports='<div>\n\n <div class="cptSettingsPostListDescription">{{settingsData.lang.choose_image_sizes}}</div>\n <ul class="cptSettingsPostList">\n\n <li v-for="postType in settingsData.post_types">\n <section>\n <header><h3>{{postType.label}}</h3></header>\n\n \n <ul class="cptImageSizes">\n <li v-for="imageSize in settingsData.image_sizes" v-if="imageSize.crop">\n <label>\n <input type="checkbox" :value="imageSize.id" :name="\'crop-post-thumbs[hide_size][\'+postType.name+\'][\'+imageSize.id+\']\'" :checked="isImageSizeHidden(postType.name,imageSize.id)"/>\n <span class="name">{{imageSize.name}}</span>\n <span class="defaultName" v-if="imageSize.name!==imageSize.id">({{imageSize.id}})</span>\n </label>\n </li>\n </ul>\n \n <label>\n <input id="cpt_settings_post" type="checkbox" :name="\'crop-post-thumbs[hide_post_type][\'+postType.name+\']\'" value="1" :checked="isButtonHiddenOnPostType(postType.name)">\n {{settingsData.lang.hide_on_post_type}}\n </label>\n </section>\n </li>\n </ul>\n \n</div>'},function(t,e,n){"use strict";n.r(e);n(0),n(1),n(2),n(3),n(4),n(6),n(7),n(8),n(9),n(10),n(12),n(14);CROP_THUMBNAILS_VUE.components["cpt-settingsscreen"]={template:n(15),props:{settings:{required:!0}},components:{},data:function(){return{settingsData:JSON.parse(this.settings)}},mounted:function(){},computed:{},methods:{isButtonHiddenOnPostType:function(t){return this.settingsData.options&&this.settingsData.options.hide_post_type&&"1"===this.settingsData.options.hide_post_type[t]},isImageSizeHidden:function(t,e){return this.settingsData.options&&this.settingsData.options.hide_size&&this.settingsData.options.hide_size[t]&&"1"===this.settingsData.options.hide_size[t][e]}}}}]);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/vendor/vue.js CHANGED
@@ -1,10947 +1,11855 @@
1
  /*!
2
- * Vue.js v2.5.17
3
- * (c) 2014-2018 Evan You
4
  * Released under the MIT License.
5
  */
6
  (function (global, factory) {
7
- typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
8
- typeof define === 'function' && define.amd ? define(factory) :
9
- (global.Vue = factory());
10
- }(this, (function () { 'use strict';
11
 
12
- /* */
13
 
14
- var emptyObject = Object.freeze({});
15
 
16
- // these helpers produces better vm code in JS engines due to their
17
- // explicitness and function inlining
18
- function isUndef (v) {
19
- return v === undefined || v === null
20
- }
21
-
22
- function isDef (v) {
23
- return v !== undefined && v !== null
24
- }
25
-
26
- function isTrue (v) {
27
- return v === true
28
- }
29
-
30
- function isFalse (v) {
31
- return v === false
32
- }
33
-
34
- /**
35
- * Check if value is primitive
36
- */
37
- function isPrimitive (value) {
38
- return (
39
- typeof value === 'string' ||
40
- typeof value === 'number' ||
41
- // $flow-disable-line
42
- typeof value === 'symbol' ||
43
- typeof value === 'boolean'
44
- )
45
- }
46
-
47
- /**
48
- * Quick object check - this is primarily used to tell
49
- * Objects from primitive values when we know the value
50
- * is a JSON-compliant type.
51
- */
52
- function isObject (obj) {
53
- return obj !== null && typeof obj === 'object'
54
- }
55
-
56
- /**
57
- * Get the raw type string of a value e.g. [object Object]
58
- */
59
- var _toString = Object.prototype.toString;
60
-
61
- function toRawType (value) {
62
- return _toString.call(value).slice(8, -1)
63
- }
64
-
65
- /**
66
- * Strict object type check. Only returns true
67
- * for plain JavaScript objects.
68
- */
69
- function isPlainObject (obj) {
70
- return _toString.call(obj) === '[object Object]'
71
- }
72
-
73
- function isRegExp (v) {
74
- return _toString.call(v) === '[object RegExp]'
75
- }
76
-
77
- /**
78
- * Check if val is a valid array index.
79
- */
80
- function isValidArrayIndex (val) {
81
- var n = parseFloat(String(val));
82
- return n >= 0 && Math.floor(n) === n && isFinite(val)
83
- }
84
-
85
- /**
86
- * Convert a value to a string that is actually rendered.
87
- */
88
- function toString (val) {
89
- return val == null
90
- ? ''
91
- : typeof val === 'object'
92
- ? JSON.stringify(val, null, 2)
93
- : String(val)
94
- }
95
-
96
- /**
97
- * Convert a input value to a number for persistence.
98
- * If the conversion fails, return original string.
99
- */
100
- function toNumber (val) {
101
- var n = parseFloat(val);
102
- return isNaN(n) ? val : n
103
- }
104
-
105
- /**
106
- * Make a map and return a function for checking if a key
107
- * is in that map.
108
- */
109
- function makeMap (
110
- str,
111
- expectsLowerCase
112
- ) {
113
- var map = Object.create(null);
114
- var list = str.split(',');
115
- for (var i = 0; i < list.length; i++) {
116
- map[list[i]] = true;
117
- }
118
- return expectsLowerCase
119
- ? function (val) { return map[val.toLowerCase()]; }
120
- : function (val) { return map[val]; }
121
- }
122
-
123
- /**
124
- * Check if a tag is a built-in tag.
125
- */
126
- var isBuiltInTag = makeMap('slot,component', true);
127
-
128
- /**
129
- * Check if a attribute is a reserved attribute.
130
- */
131
- var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
132
-
133
- /**
134
- * Remove an item from an array
135
- */
136
- function remove (arr, item) {
137
- if (arr.length) {
138
- var index = arr.indexOf(item);
139
- if (index > -1) {
140
- return arr.splice(index, 1)
141
- }
142
  }
143
- }
144
-
145
- /**
146
- * Check whether the object has the property.
147
- */
148
- var hasOwnProperty = Object.prototype.hasOwnProperty;
149
- function hasOwn (obj, key) {
150
- return hasOwnProperty.call(obj, key)
151
- }
152
-
153
- /**
154
- * Create a cached version of a pure function.
155
- */
156
- function cached (fn) {
157
- var cache = Object.create(null);
158
- return (function cachedFn (str) {
159
- var hit = cache[str];
160
- return hit || (cache[str] = fn(str))
161
- })
162
- }
163
-
164
- /**
165
- * Camelize a hyphen-delimited string.
166
- */
167
- var camelizeRE = /-(\w)/g;
168
- var camelize = cached(function (str) {
169
- return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
170
- });
171
 
172
- /**
173
- * Capitalize a string.
174
- */
175
- var capitalize = cached(function (str) {
176
- return str.charAt(0).toUpperCase() + str.slice(1)
177
- });
178
 
179
- /**
180
- * Hyphenate a camelCase string.
181
- */
182
- var hyphenateRE = /\B([A-Z])/g;
183
- var hyphenate = cached(function (str) {
184
- return str.replace(hyphenateRE, '-$1').toLowerCase()
185
- });
186
-
187
- /**
188
- * Simple bind polyfill for environments that do not support it... e.g.
189
- * PhantomJS 1.x. Technically we don't need this anymore since native bind is
190
- * now more performant in most browsers, but removing it would be breaking for
191
- * code that was able to run in PhantomJS 1.x, so this must be kept for
192
- * backwards compatibility.
193
- */
194
 
195
- /* istanbul ignore next */
196
- function polyfillBind (fn, ctx) {
197
- function boundFn (a) {
198
- var l = arguments.length;
199
- return l
200
- ? l > 1
201
- ? fn.apply(ctx, arguments)
202
- : fn.call(ctx, a)
203
- : fn.call(ctx)
204
  }
205
 
206
- boundFn._length = fn.length;
207
- return boundFn
208
- }
 
 
 
 
 
 
 
 
 
209
 
210
- function nativeBind (fn, ctx) {
211
- return fn.bind(ctx)
212
- }
 
 
 
 
 
213
 
214
- var bind = Function.prototype.bind
215
- ? nativeBind
216
- : polyfillBind;
 
217
 
218
- /**
219
- * Convert an Array-like object to a real Array.
220
- */
221
- function toArray (list, start) {
222
- start = start || 0;
223
- var i = list.length - start;
224
- var ret = new Array(i);
225
- while (i--) {
226
- ret[i] = list[i + start];
227
- }
228
- return ret
229
- }
230
-
231
- /**
232
- * Mix properties into target object.
233
- */
234
- function extend (to, _from) {
235
- for (var key in _from) {
236
- to[key] = _from[key];
237
  }
238
- return to
239
- }
240
 
241
- /**
242
- * Merge an Array of Objects into a single Object.
243
- */
244
- function toObject (arr) {
245
- var res = {};
246
- for (var i = 0; i < arr.length; i++) {
247
- if (arr[i]) {
248
- extend(res, arr[i]);
249
- }
250
  }
251
- return res
252
- }
253
 
254
- /**
255
- * Perform no operation.
256
- * Stubbing args to make Flow happy without leaving useless transpiled code
257
- * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/)
258
- */
259
- function noop (a, b, c) {}
260
-
261
- /**
262
- * Always return false.
263
- */
264
- var no = function (a, b, c) { return false; };
265
 
266
- /**
267
- * Return same value
268
- */
269
- var identity = function (_) { return _; };
 
 
 
270
 
271
- /**
272
- * Generate a static keys string from compiler modules.
273
- */
274
- function genStaticKeys (modules) {
275
- return modules.reduce(function (keys, m) {
276
- return keys.concat(m.staticKeys || [])
277
- }, []).join(',')
278
- }
279
-
280
- /**
281
- * Check if two values are loosely equal - that is,
282
- * if they are plain objects, do they have the same shape?
283
- */
284
- function looseEqual (a, b) {
285
- if (a === b) { return true }
286
- var isObjectA = isObject(a);
287
- var isObjectB = isObject(b);
288
- if (isObjectA && isObjectB) {
289
- try {
290
- var isArrayA = Array.isArray(a);
291
- var isArrayB = Array.isArray(b);
292
- if (isArrayA && isArrayB) {
293
- return a.length === b.length && a.every(function (e, i) {
294
- return looseEqual(e, b[i])
295
- })
296
- } else if (!isArrayA && !isArrayB) {
297
- var keysA = Object.keys(a);
298
- var keysB = Object.keys(b);
299
- return keysA.length === keysB.length && keysA.every(function (key) {
300
- return looseEqual(a[key], b[key])
301
- })
302
- } else {
303
- /* istanbul ignore next */
304
- return false
305
- }
306
- } catch (e) {
307
- /* istanbul ignore next */
308
- return false
309
- }
310
- } else if (!isObjectA && !isObjectB) {
311
- return String(a) === String(b)
312
- } else {
313
- return false
314
  }
315
- }
316
 
317
- function looseIndexOf (arr, val) {
318
- for (var i = 0; i < arr.length; i++) {
319
- if (looseEqual(arr[i], val)) { return i }
 
 
 
 
 
 
320
  }
321
- return -1
322
- }
323
 
324
- /**
325
- * Ensure a function is called only once.
326
- */
327
- function once (fn) {
328
- var called = false;
329
- return function () {
330
- if (!called) {
331
- called = true;
332
- fn.apply(this, arguments);
333
- }
334
- }
335
- }
336
-
337
- var SSR_ATTR = 'data-server-rendered';
338
-
339
- var ASSET_TYPES = [
340
- 'component',
341
- 'directive',
342
- 'filter'
343
- ];
344
-
345
- var LIFECYCLE_HOOKS = [
346
- 'beforeCreate',
347
- 'created',
348
- 'beforeMount',
349
- 'mounted',
350
- 'beforeUpdate',
351
- 'updated',
352
- 'beforeDestroy',
353
- 'destroyed',
354
- 'activated',
355
- 'deactivated',
356
- 'errorCaptured'
357
- ];
358
-
359
- /* */
360
-
361
- var config = ({
362
  /**
363
- * Option merge strategies (used in core/util/options)
 
364
  */
365
- // $flow-disable-line
366
- optionMergeStrategies: Object.create(null),
 
 
367
 
368
  /**
369
- * Whether to suppress warnings.
 
370
  */
371
- silent: false,
 
 
 
 
 
 
 
 
 
 
 
 
372
 
373
  /**
374
- * Show production mode tip message on boot?
375
  */
376
- productionTip: "development" !== 'production',
377
 
378
  /**
379
- * Whether to enable devtools
380
  */
381
- devtools: "development" !== 'production',
382
 
383
  /**
384
- * Whether to record perf
385
  */
386
- performance: false,
 
 
 
 
 
 
 
387
 
388
  /**
389
- * Error handler for watcher errors
390
  */
391
- errorHandler: null,
 
 
 
392
 
393
  /**
394
- * Warn handler for watcher warns
395
  */
396
- warnHandler: null,
 
 
 
 
 
 
397
 
398
  /**
399
- * Ignore certain custom elements
400
  */
401
- ignoredElements: [],
 
 
 
402
 
403
  /**
404
- * Custom user key aliases for v-on
405
  */
406
- // $flow-disable-line
407
- keyCodes: Object.create(null),
 
408
 
409
  /**
410
- * Check if a tag is reserved so that it cannot be registered as a
411
- * component. This is platform-dependent and may be overwritten.
412
  */
413
- isReservedTag: no,
 
 
 
414
 
415
  /**
416
- * Check if an attribute is reserved so that it cannot be used as a component
417
- * prop. This is platform-dependent and may be overwritten.
 
 
 
418
  */
419
- isReservedAttr: no,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
420
 
421
  /**
422
- * Check if a tag is an unknown element.
423
- * Platform-dependent.
424
  */
425
- isUnknownElement: no,
 
 
 
 
 
 
 
 
426
 
427
  /**
428
- * Get the namespace of an element
429
  */
430
- getTagNamespace: noop,
 
 
 
 
 
431
 
432
  /**
433
- * Parse the real tag name for the specific platform.
434
  */
435
- parsePlatformTagName: identity,
 
 
 
 
 
 
 
 
 
 
436
 
437
  /**
438
- * Check if an attribute must be bound using property, e.g. value
439
- * Platform-dependent.
 
440
  */
441
- mustUseProp: no,
442
 
443
  /**
444
- * Exposed for legacy reasons
445
  */
446
- _lifecycleHooks: LIFECYCLE_HOOKS
447
- })
448
 
449
- /* */
450
 
451
- /**
452
- * Check if a string starts with $ or _
453
- */
454
- function isReserved (str) {
455
- var c = (str + '').charCodeAt(0);
456
- return c === 0x24 || c === 0x5F
457
- }
458
 
459
- /**
460
- * Define a property.
461
- */
462
- function def (obj, key, val, enumerable) {
463
- Object.defineProperty(obj, key, {
464
- value: val,
465
- enumerable: !!enumerable,
466
- writable: true,
467
- configurable: true
468
- });
469
- }
470
 
471
- /**
472
- * Parse simple path.
473
- */
474
- var bailRE = /[^\w.$]/;
475
- function parsePath (path) {
476
- if (bailRE.test(path)) {
477
- return
478
- }
479
- var segments = path.split('.');
480
- return function (obj) {
481
- for (var i = 0; i < segments.length; i++) {
482
- if (!obj) { return }
483
- obj = obj[segments[i]];
484
- }
485
- return obj
486
- }
487
- }
488
-
489
- /* */
490
-
491
- // can we use __proto__?
492
- var hasProto = '__proto__' in {};
493
-
494
- // Browser environment sniffing
495
- var inBrowser = typeof window !== 'undefined';
496
- var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
497
- var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
498
- var UA = inBrowser && window.navigator.userAgent.toLowerCase();
499
- var isIE = UA && /msie|trident/.test(UA);
500
- var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
501
- var isEdge = UA && UA.indexOf('edge/') > 0;
502
- var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
503
- var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
504
- var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
505
-
506
- // Firefox has a "watch" function on Object.prototype...
507
- var nativeWatch = ({}).watch;
508
-
509
- var supportsPassive = false;
510
- if (inBrowser) {
511
- try {
512
- var opts = {};
513
- Object.defineProperty(opts, 'passive', ({
514
- get: function get () {
515
  /* istanbul ignore next */
516
- supportsPassive = true;
517
- }
518
- })); // https://github.com/facebook/flow/issues/285
519
- window.addEventListener('test-passive', null, opts);
520
- } catch (e) {}
521
- }
522
-
523
- // this needs to be lazy-evaled because vue may be required before
524
- // vue-server-renderer can set VUE_ENV
525
- var _isServer;
526
- var isServerRendering = function () {
527
- if (_isServer === undefined) {
528
- /* istanbul ignore if */
529
- if (!inBrowser && !inWeex && typeof global !== 'undefined') {
530
- // detect presence of vue-server-renderer and avoid
531
- // Webpack shimming the process
532
- _isServer = global['process'].env.VUE_ENV === 'server';
533
  } else {
534
- _isServer = false;
535
  }
536
  }
537
- return _isServer
538
- };
539
 
540
- // detect devtools
541
- var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
 
 
 
 
 
 
 
 
 
542
 
543
- /* istanbul ignore next */
544
- function isNative (Ctor) {
545
- return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
546
- }
 
 
 
 
 
 
 
 
547
 
548
- var hasSymbol =
549
- typeof Symbol !== 'undefined' && isNative(Symbol) &&
550
- typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
551
 
552
- var _Set;
553
- /* istanbul ignore if */ // $flow-disable-line
554
- if (typeof Set !== 'undefined' && isNative(Set)) {
555
- // use native Set when available.
556
- _Set = Set;
557
- } else {
558
- // a non-standard Set polyfill that only works with primitive keys.
559
- _Set = (function () {
560
- function Set () {
561
- this.set = Object.create(null);
562
- }
563
- Set.prototype.has = function has (key) {
564
- return this.set[key] === true
565
- };
566
- Set.prototype.add = function add (key) {
567
- this.set[key] = true;
568
- };
569
- Set.prototype.clear = function clear () {
570
- this.set = Object.create(null);
571
- };
572
 
573
- return Set;
574
- }());
575
- }
 
 
 
 
 
 
 
 
 
 
 
576
 
577
- /* */
578
 
579
- var warn = noop;
580
- var tip = noop;
581
- var generateComponentTrace = (noop); // work around flow check
582
- var formatComponentName = (noop);
583
 
584
- {
585
- var hasConsole = typeof console !== 'undefined';
586
- var classifyRE = /(?:^|[-_])(\w)/g;
587
- var classify = function (str) { return str
588
- .replace(classifyRE, function (c) { return c.toUpperCase(); })
589
- .replace(/[-_]/g, ''); };
590
 
591
- warn = function (msg, vm) {
592
- var trace = vm ? generateComponentTrace(vm) : '';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
593
 
594
- if (config.warnHandler) {
595
- config.warnHandler.call(null, msg, vm, trace);
596
- } else if (hasConsole && (!config.silent)) {
597
- console.error(("[Vue warn]: " + msg + trace));
598
- }
599
- };
600
 
601
- tip = function (msg, vm) {
602
- if (hasConsole && (!config.silent)) {
603
- console.warn("[Vue tip]: " + msg + (
604
- vm ? generateComponentTrace(vm) : ''
605
- ));
606
- }
607
- };
608
 
609
- formatComponentName = function (vm, includeFile) {
610
- if (vm.$root === vm) {
611
- return '<Root>'
612
- }
613
- var options = typeof vm === 'function' && vm.cid != null
614
- ? vm.options
615
- : vm._isVue
616
- ? vm.$options || vm.constructor.options
617
- : vm || {};
618
- var name = options.name || options._componentTag;
619
- var file = options.__file;
620
- if (!name && file) {
621
- var match = file.match(/([^/\\]+)\.vue$/);
622
- name = match && match[1];
623
- }
624
 
625
- return (
626
- (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
627
- (file && includeFile !== false ? (" at " + file) : '')
628
- )
629
- };
 
 
 
 
 
 
630
 
631
- var repeat = function (str, n) {
632
- var res = '';
633
- while (n) {
634
- if (n % 2 === 1) { res += str; }
635
- if (n > 1) { str += str; }
636
- n >>= 1;
 
637
  }
638
- return res
639
- };
640
-
641
- generateComponentTrace = function (vm) {
642
- if (vm._isVue && vm.$parent) {
643
- var tree = [];
644
- var currentRecursiveSequence = 0;
645
- while (vm) {
646
- if (tree.length > 0) {
647
- var last = tree[tree.length - 1];
648
- if (last.constructor === vm.constructor) {
649
- currentRecursiveSequence++;
650
- vm = vm.$parent;
651
- continue
652
- } else if (currentRecursiveSequence > 0) {
653
- tree[tree.length - 1] = [last, currentRecursiveSequence];
654
- currentRecursiveSequence = 0;
655
- }
656
- }
657
- tree.push(vm);
658
- vm = vm.$parent;
659
  }
660
- return '\n\nfound in\n\n' + tree
661
- .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
662
- ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
663
- : formatComponentName(vm))); })
664
- .join('\n')
665
- } else {
666
- return ("\n\n(found in " + (formatComponentName(vm)) + ")")
667
  }
668
- };
669
- }
670
 
671
- /* */
672
 
 
 
673
 
674
- var uid = 0;
 
 
 
 
 
 
 
 
 
 
 
 
675
 
676
- /**
677
- * A dep is an observable that can have multiple
678
- * directives subscribing to it.
679
- */
680
- var Dep = function Dep () {
681
- this.id = uid++;
682
- this.subs = [];
683
- };
684
-
685
- Dep.prototype.addSub = function addSub (sub) {
686
- this.subs.push(sub);
687
- };
688
-
689
- Dep.prototype.removeSub = function removeSub (sub) {
690
- remove(this.subs, sub);
691
- };
692
-
693
- Dep.prototype.depend = function depend () {
694
- if (Dep.target) {
695
- Dep.target.addDep(this);
696
- }
697
- };
698
-
699
- Dep.prototype.notify = function notify () {
700
- // stabilize the subscriber list first
701
- var subs = this.subs.slice();
702
- for (var i = 0, l = subs.length; i < l; i++) {
703
- subs[i].update();
704
- }
705
- };
706
-
707
- // the current target watcher being evaluated.
708
- // this is globally unique because there could be only one
709
- // watcher being evaluated at any time.
710
- Dep.target = null;
711
- var targetStack = [];
712
-
713
- function pushTarget (_target) {
714
- if (Dep.target) { targetStack.push(Dep.target); }
715
- Dep.target = _target;
716
- }
717
-
718
- function popTarget () {
719
- Dep.target = targetStack.pop();
720
- }
721
-
722
- /* */
723
-
724
- var VNode = function VNode (
725
- tag,
726
- data,
727
- children,
728
- text,
729
- elm,
730
- context,
731
- componentOptions,
732
- asyncFactory
733
- ) {
734
- this.tag = tag;
735
- this.data = data;
736
- this.children = children;
737
- this.text = text;
738
- this.elm = elm;
739
- this.ns = undefined;
740
- this.context = context;
741
- this.fnContext = undefined;
742
- this.fnOptions = undefined;
743
- this.fnScopeId = undefined;
744
- this.key = data && data.key;
745
- this.componentOptions = componentOptions;
746
- this.componentInstance = undefined;
747
- this.parent = undefined;
748
- this.raw = false;
749
- this.isStatic = false;
750
- this.isRootInsert = true;
751
- this.isComment = false;
752
- this.isCloned = false;
753
- this.isOnce = false;
754
- this.asyncFactory = asyncFactory;
755
- this.asyncMeta = undefined;
756
- this.isAsyncPlaceholder = false;
757
- };
758
-
759
- var prototypeAccessors = { child: { configurable: true } };
760
-
761
- // DEPRECATED: alias for componentInstance for backwards compat.
762
- /* istanbul ignore next */
763
- prototypeAccessors.child.get = function () {
764
- return this.componentInstance
765
- };
766
-
767
- Object.defineProperties( VNode.prototype, prototypeAccessors );
768
-
769
- var createEmptyVNode = function (text) {
770
- if ( text === void 0 ) text = '';
771
-
772
- var node = new VNode();
773
- node.text = text;
774
- node.isComment = true;
775
- return node
776
- };
777
-
778
- function createTextVNode (val) {
779
- return new VNode(undefined, undefined, undefined, String(val))
780
- }
781
-
782
- // optimized shallow clone
783
- // used for static nodes and slot nodes because they may be reused across
784
- // multiple renders, cloning them avoids errors when DOM manipulations rely
785
- // on their elm reference.
786
- function cloneVNode (vnode) {
787
- var cloned = new VNode(
788
- vnode.tag,
789
- vnode.data,
790
- vnode.children,
791
- vnode.text,
792
- vnode.elm,
793
- vnode.context,
794
- vnode.componentOptions,
795
- vnode.asyncFactory
796
- );
797
- cloned.ns = vnode.ns;
798
- cloned.isStatic = vnode.isStatic;
799
- cloned.key = vnode.key;
800
- cloned.isComment = vnode.isComment;
801
- cloned.fnContext = vnode.fnContext;
802
- cloned.fnOptions = vnode.fnOptions;
803
- cloned.fnScopeId = vnode.fnScopeId;
804
- cloned.isCloned = true;
805
- return cloned
806
- }
807
-
808
- /*
809
- * not type checking this file because flow doesn't play well with
810
- * dynamically accessing methods on Array prototype
811
- */
812
 
813
- var arrayProto = Array.prototype;
814
- var arrayMethods = Object.create(arrayProto);
815
-
816
- var methodsToPatch = [
817
- 'push',
818
- 'pop',
819
- 'shift',
820
- 'unshift',
821
- 'splice',
822
- 'sort',
823
- 'reverse'
824
- ];
825
-
826
- /**
827
- * Intercept mutating methods and emit events
828
- */
829
- methodsToPatch.forEach(function (method) {
830
- // cache original method
831
- var original = arrayProto[method];
832
- def(arrayMethods, method, function mutator () {
833
- var args = [], len = arguments.length;
834
- while ( len-- ) args[ len ] = arguments[ len ];
835
 
836
- var result = original.apply(this, args);
837
- var ob = this.__ob__;
838
- var inserted;
839
- switch (method) {
840
- case 'push':
841
- case 'unshift':
842
- inserted = args;
843
- break
844
- case 'splice':
845
- inserted = args.slice(2);
846
- break
 
 
847
  }
848
- if (inserted) { ob.observeArray(inserted); }
849
- // notify change
850
- ob.dep.notify();
851
- return result
852
- });
853
- });
854
-
855
- /* */
856
 
857
- var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
 
858
 
859
- /**
860
- * In some cases we may want to disable observation inside a component's
861
- * update computation.
862
- */
863
- var shouldObserve = true;
864
 
865
- function toggleObserving (value) {
866
- shouldObserve = value;
867
- }
868
 
869
- /**
870
- * Observer class that is attached to each observed
871
- * object. Once attached, the observer converts the target
872
- * object's property keys into getter/setters that
873
- * collect dependencies and dispatch updates.
874
- */
875
- var Observer = function Observer (value) {
876
- this.value = value;
877
- this.dep = new Dep();
878
- this.vmCount = 0;
879
- def(value, '__ob__', this);
880
- if (Array.isArray(value)) {
881
- var augment = hasProto
882
- ? protoAugment
883
- : copyAugment;
884
- augment(value, arrayMethods, arrayKeys);
885
- this.observeArray(value);
886
  } else {
887
- this.walk(value);
888
- }
889
- };
 
 
 
 
 
 
 
 
 
 
 
890
 
891
- /**
892
- * Walk through each property and convert them into
893
- * getter/setters. This method should only be called when
894
- * value type is Object.
895
- */
896
- Observer.prototype.walk = function walk (obj) {
897
- var keys = Object.keys(obj);
898
- for (var i = 0; i < keys.length; i++) {
899
- defineReactive(obj, keys[i]);
900
  }
901
- };
902
 
903
- /**
904
- * Observe a list of Array items.
905
- */
906
- Observer.prototype.observeArray = function observeArray (items) {
907
- for (var i = 0, l = items.length; i < l; i++) {
908
- observe(items[i]);
909
- }
910
- };
911
 
912
- // helpers
 
 
 
913
 
914
- /**
915
- * Augment an target Object or Array by intercepting
916
- * the prototype chain using __proto__
917
- */
918
- function protoAugment (target, src, keys) {
919
- /* eslint-disable no-proto */
920
- target.__proto__ = src;
921
- /* eslint-enable no-proto */
922
- }
923
-
924
- /**
925
- * Augment an target Object or Array by defining
926
- * hidden properties.
927
- */
928
- /* istanbul ignore next */
929
- function copyAugment (target, src, keys) {
930
- for (var i = 0, l = keys.length; i < l; i++) {
931
- var key = keys[i];
932
- def(target, key, src[key]);
933
- }
934
- }
935
-
936
- /**
937
- * Attempt to create an observer instance for a value,
938
- * returns the new observer if successfully observed,
939
- * or the existing observer if the value already has one.
940
- */
941
- function observe (value, asRootData) {
942
- if (!isObject(value) || value instanceof VNode) {
943
- return
944
- }
945
- var ob;
946
- if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
947
- ob = value.__ob__;
948
- } else if (
949
- shouldObserve &&
950
- !isServerRendering() &&
951
- (Array.isArray(value) || isPlainObject(value)) &&
952
- Object.isExtensible(value) &&
953
- !value._isVue
954
- ) {
955
- ob = new Observer(value);
956
- }
957
- if (asRootData && ob) {
958
- ob.vmCount++;
959
- }
960
- return ob
961
- }
962
 
963
- /**
964
- * Define a reactive property on an Object.
965
- */
966
- function defineReactive (
967
- obj,
968
- key,
969
- val,
970
- customSetter,
971
- shallow
972
- ) {
973
- var dep = new Dep();
974
 
975
- var property = Object.getOwnPropertyDescriptor(obj, key);
976
- if (property && property.configurable === false) {
977
- return
978
- }
 
 
979
 
980
- // cater for pre-defined getter/setters
981
- var getter = property && property.get;
982
- if (!getter && arguments.length === 2) {
983
- val = obj[key];
984
- }
985
- var setter = property && property.set;
 
986
 
987
- var childOb = !shallow && observe(val);
988
- Object.defineProperty(obj, key, {
989
- enumerable: true,
990
- configurable: true,
991
- get: function reactiveGetter () {
992
- var value = getter ? getter.call(obj) : val;
993
- if (Dep.target) {
994
- dep.depend();
995
- if (childOb) {
996
- childOb.dep.depend();
997
- if (Array.isArray(value)) {
998
- dependArray(value);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
999
  }
 
 
1000
  }
1001
- }
1002
- return value
1003
- },
1004
- set: function reactiveSetter (newVal) {
1005
- var value = getter ? getter.call(obj) : val;
1006
- /* eslint-disable no-self-compare */
1007
- if (newVal === value || (newVal !== newVal && value !== value)) {
1008
- return
1009
- }
1010
- /* eslint-enable no-self-compare */
1011
- if ("development" !== 'production' && customSetter) {
1012
- customSetter();
1013
- }
1014
- if (setter) {
1015
- setter.call(obj, newVal);
1016
  } else {
1017
- val = newVal;
1018
  }
1019
- childOb = !shallow && observe(newVal);
1020
- dep.notify();
1021
- }
1022
- });
1023
- }
1024
-
1025
- /**
1026
- * Set a property on an object. Adds the new property and
1027
- * triggers change notification if the property doesn't
1028
- * already exist.
1029
- */
1030
- function set (target, key, val) {
1031
- if ("development" !== 'production' &&
1032
- (isUndef(target) || isPrimitive(target))
1033
- ) {
1034
- warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
1035
- }
1036
- if (Array.isArray(target) && isValidArrayIndex(key)) {
1037
- target.length = Math.max(target.length, key);
1038
- target.splice(key, 1, val);
1039
- return val
1040
- }
1041
- if (key in target && !(key in Object.prototype)) {
1042
- target[key] = val;
1043
- return val
1044
- }
1045
- var ob = (target).__ob__;
1046
- if (target._isVue || (ob && ob.vmCount)) {
1047
- "development" !== 'production' && warn(
1048
- 'Avoid adding reactive properties to a Vue instance or its root $data ' +
1049
- 'at runtime - declare it upfront in the data option.'
1050
- );
1051
- return val
1052
- }
1053
- if (!ob) {
1054
- target[key] = val;
1055
- return val
1056
  }
1057
- defineReactive(ob.value, key, val);
1058
- ob.dep.notify();
1059
- return val
1060
- }
1061
 
1062
- /**
1063
- * Delete a property and trigger change if necessary.
1064
- */
1065
- function del (target, key) {
1066
- if ("development" !== 'production' &&
1067
- (isUndef(target) || isPrimitive(target))
1068
- ) {
1069
- warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1070
  }
1071
- if (Array.isArray(target) && isValidArrayIndex(key)) {
1072
- target.splice(key, 1);
1073
- return
 
1074
  }
1075
- var ob = (target).__ob__;
1076
- if (target._isVue || (ob && ob.vmCount)) {
1077
- "development" !== 'production' && warn(
1078
- 'Avoid deleting properties on a Vue instance or its root $data ' +
1079
- '- just set it to null.'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1080
  );
1081
- return
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1082
  }
1083
- if (!hasOwn(target, key)) {
1084
- return
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1085
  }
1086
- delete target[key];
1087
- if (!ob) {
1088
- return
 
 
 
 
 
 
 
 
1089
  }
1090
- ob.dep.notify();
1091
- }
1092
 
1093
- /**
1094
- * Collect dependencies on array elements when the array is touched, since
1095
- * we cannot intercept array element access like property getters.
1096
- */
1097
- function dependArray (value) {
1098
- for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
1099
- e = value[i];
1100
- e && e.__ob__ && e.__ob__.dep.depend();
1101
- if (Array.isArray(e)) {
1102
- dependArray(e);
 
 
 
 
 
 
 
 
 
 
 
 
 
1103
  }
 
1104
  }
1105
- }
1106
 
1107
- /* */
 
 
 
 
 
 
 
 
 
 
1108
 
1109
- /**
1110
- * Option overwriting strategies are functions that handle
1111
- * how to merge a parent option value and a child option
1112
- * value into the final value.
1113
- */
1114
- var strats = config.optionMergeStrategies;
1115
 
1116
- /**
1117
- * Options with restrictions
1118
- */
1119
- {
1120
- strats.el = strats.propsData = function (parent, child, vm, key) {
1121
- if (!vm) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1122
  warn(
1123
- "option \"" + key + "\" can only be used during instance " +
1124
- 'creation with the `new` keyword.'
1125
  );
 
1126
  }
1127
- return defaultStrat(parent, child)
1128
- };
1129
- }
 
 
 
 
 
1130
 
1131
- /**
1132
- * Helper that recursively merges two data objects together.
1133
- */
1134
- function mergeData (to, from) {
1135
- if (!from) { return to }
1136
- var key, toVal, fromVal;
1137
- var keys = Object.keys(from);
1138
- for (var i = 0; i < keys.length; i++) {
1139
- key = keys[i];
1140
- toVal = to[key];
1141
- fromVal = from[key];
1142
- if (!hasOwn(to, key)) {
1143
- set(to, key, fromVal);
1144
- } else if (isPlainObject(toVal) && isPlainObject(fromVal)) {
1145
- mergeData(toVal, fromVal);
1146
- }
1147
- }
1148
- return to
1149
- }
1150
-
1151
- /**
1152
- * Data
1153
- */
1154
- function mergeDataOrFn (
1155
- parentVal,
1156
- childVal,
1157
- vm
1158
- ) {
1159
- if (!vm) {
1160
- // in a Vue.extend merge, both should be functions
1161
- if (!childVal) {
1162
- return parentVal
1163
- }
1164
- if (!parentVal) {
1165
- return childVal
1166
- }
1167
- // when parentVal & childVal are both present,
1168
- // we need to return a function that returns the
1169
- // merged result of both functions... no need to
1170
- // check if parentVal is a function here because
1171
- // it has to be a function to pass previous merges.
1172
- return function mergedDataFn () {
1173
- return mergeData(
1174
- typeof childVal === 'function' ? childVal.call(this, this) : childVal,
1175
- typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
1176
- )
1177
  }
1178
- } else {
1179
- return function mergedInstanceDataFn () {
1180
- // instance merge
1181
- var instanceData = typeof childVal === 'function'
1182
- ? childVal.call(vm, vm)
1183
- : childVal;
1184
- var defaultData = typeof parentVal === 'function'
1185
- ? parentVal.call(vm, vm)
1186
- : parentVal;
1187
- if (instanceData) {
1188
- return mergeData(instanceData, defaultData)
1189
- } else {
1190
- return defaultData
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1191
  }
1192
  }
1193
  }
1194
- }
1195
 
1196
- strats.data = function (
1197
- parentVal,
1198
- childVal,
1199
- vm
1200
- ) {
1201
- if (!vm) {
1202
- if (childVal && typeof childVal !== 'function') {
1203
- "development" !== 'production' && warn(
1204
- 'The "data" option should be a function ' +
1205
- 'that returns a per-instance value in component ' +
1206
- 'definitions.',
1207
- vm
1208
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1209
 
1210
- return parentVal
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1211
  }
1212
- return mergeDataOrFn(parentVal, childVal)
1213
  }
1214
 
1215
- return mergeDataOrFn(parentVal, childVal, vm)
1216
- };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1217
 
1218
- /**
1219
- * Hooks and props are merged as arrays.
1220
- */
1221
- function mergeHook (
1222
- parentVal,
1223
- childVal
1224
- ) {
1225
- return childVal
1226
- ? parentVal
1227
- ? parentVal.concat(childVal)
1228
- : Array.isArray(childVal)
1229
- ? childVal
1230
- : [childVal]
1231
- : parentVal
1232
- }
1233
-
1234
- LIFECYCLE_HOOKS.forEach(function (hook) {
1235
- strats[hook] = mergeHook;
1236
- });
1237
-
1238
- /**
1239
- * Assets
1240
- *
1241
- * When a vm is present (instance creation), we need to do
1242
- * a three-way merge between constructor options, instance
1243
- * options and parent options.
1244
- */
1245
- function mergeAssets (
1246
- parentVal,
1247
- childVal,
1248
- vm,
1249
- key
1250
- ) {
1251
- var res = Object.create(parentVal || null);
1252
- if (childVal) {
1253
- "development" !== 'production' && assertObjectType(key, childVal, vm);
1254
- return extend(res, childVal)
1255
- } else {
1256
  return res
 
 
1257
  }
1258
- }
1259
-
1260
- ASSET_TYPES.forEach(function (type) {
1261
- strats[type + 's'] = mergeAssets;
1262
- });
1263
 
1264
- /**
1265
- * Watchers.
1266
- *
1267
- * Watchers hashes should not overwrite one
1268
- * another, so we merge them as arrays.
1269
- */
1270
- strats.watch = function (
1271
- parentVal,
1272
- childVal,
1273
- vm,
1274
- key
1275
- ) {
1276
- // work around Firefox's Object.prototype.watch...
1277
- if (parentVal === nativeWatch) { parentVal = undefined; }
1278
- if (childVal === nativeWatch) { childVal = undefined; }
1279
- /* istanbul ignore if */
1280
- if (!childVal) { return Object.create(parentVal || null) }
1281
- {
1282
- assertObjectType(key, childVal, vm);
1283
- }
1284
- if (!parentVal) { return childVal }
1285
- var ret = {};
1286
- extend(ret, parentVal);
1287
- for (var key$1 in childVal) {
1288
- var parent = ret[key$1];
1289
- var child = childVal[key$1];
1290
- if (parent && !Array.isArray(parent)) {
1291
- parent = [parent];
1292
- }
1293
- ret[key$1] = parent
1294
- ? parent.concat(child)
1295
- : Array.isArray(child) ? child : [child];
1296
- }
1297
- return ret
1298
- };
1299
-
1300
- /**
1301
- * Other object hashes.
1302
- */
1303
- strats.props =
1304
- strats.methods =
1305
- strats.inject =
1306
- strats.computed = function (
1307
- parentVal,
1308
- childVal,
1309
- vm,
1310
- key
1311
- ) {
1312
- if (childVal && "development" !== 'production') {
1313
- assertObjectType(key, childVal, vm);
1314
- }
1315
- if (!parentVal) { return childVal }
1316
- var ret = Object.create(null);
1317
- extend(ret, parentVal);
1318
- if (childVal) { extend(ret, childVal); }
1319
- return ret
1320
- };
1321
- strats.provide = mergeDataOrFn;
1322
-
1323
- /**
1324
- * Default strategy.
1325
- */
1326
- var defaultStrat = function (parentVal, childVal) {
1327
- return childVal === undefined
1328
- ? parentVal
1329
- : childVal
1330
- };
1331
-
1332
- /**
1333
- * Validate component names
1334
- */
1335
- function checkComponents (options) {
1336
- for (var key in options.components) {
1337
- validateComponentName(key);
1338
- }
1339
- }
1340
-
1341
- function validateComponentName (name) {
1342
- if (!/^[a-zA-Z][\w-]*$/.test(name)) {
1343
- warn(
1344
- 'Invalid component name: "' + name + '". Component names ' +
1345
- 'can only contain alphanumeric characters and the hyphen, ' +
1346
- 'and must start with a letter.'
1347
- );
1348
  }
1349
- if (isBuiltInTag(name) || config.isReservedTag(name)) {
1350
- warn(
1351
- 'Do not use built-in or reserved HTML elements as component ' +
1352
- 'id: ' + name
1353
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1354
  }
1355
- }
1356
 
1357
- /**
1358
- * Ensure all props option syntax are normalized into the
1359
- * Object-based format.
1360
- */
1361
- function normalizeProps (options, vm) {
1362
- var props = options.props;
1363
- if (!props) { return }
1364
- var res = {};
1365
- var i, val, name;
1366
- if (Array.isArray(props)) {
1367
- i = props.length;
1368
- while (i--) {
1369
- val = props[i];
1370
- if (typeof val === 'string') {
1371
- name = camelize(val);
1372
- res[name] = { type: null };
1373
- } else {
1374
- warn('props must be strings when using array syntax.');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1375
  }
 
 
 
1376
  }
1377
- } else if (isPlainObject(props)) {
1378
- for (var key in props) {
1379
- val = props[key];
1380
- name = camelize(key);
1381
- res[name] = isPlainObject(val)
1382
- ? val
1383
- : { type: val };
 
 
 
 
 
 
 
 
 
 
1384
  }
1385
- } else {
1386
- warn(
1387
- "Invalid value for option \"props\": expected an Array or an Object, " +
1388
- "but got " + (toRawType(props)) + ".",
1389
- vm
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1390
  );
1391
- }
1392
- options.props = res;
1393
- }
1394
 
1395
- /**
1396
- * Normalize all injections into Object-based format
1397
- */
1398
- function normalizeInject (options, vm) {
1399
- var inject = options.inject;
1400
- if (!inject) { return }
1401
- var normalized = options.inject = {};
1402
- if (Array.isArray(inject)) {
1403
- for (var i = 0; i < inject.length; i++) {
1404
- normalized[inject[i]] = { from: inject[i] };
1405
- }
1406
- } else if (isPlainObject(inject)) {
1407
- for (var key in inject) {
1408
- var val = inject[key];
1409
- normalized[key] = isPlainObject(val)
1410
- ? extend({ from: key }, val)
1411
- : { from: val };
1412
- }
1413
- } else {
1414
- warn(
1415
- "Invalid value for option \"inject\": expected an Array or an Object, " +
1416
- "but got " + (toRawType(inject)) + ".",
1417
- vm
1418
  );
1419
- }
1420
- }
1421
 
1422
- /**
1423
- * Normalize raw function directives into object format.
1424
- */
1425
- function normalizeDirectives (options) {
1426
- var dirs = options.directives;
1427
- if (dirs) {
1428
- for (var key in dirs) {
1429
- var def = dirs[key];
1430
- if (typeof def === 'function') {
1431
- dirs[key] = { bind: def, update: def };
1432
- }
1433
  }
1434
- }
1435
- }
1436
 
1437
- function assertObjectType (name, value, vm) {
1438
- if (!isPlainObject(value)) {
1439
- warn(
1440
- "Invalid value for option \"" + name + "\": expected an Object, " +
1441
- "but got " + (toRawType(value)) + ".",
1442
- vm
1443
- );
1444
- }
1445
- }
1446
 
1447
- /**
1448
- * Merge two option objects into a new one.
1449
- * Core utility used in both instantiation and inheritance.
1450
- */
1451
- function mergeOptions (
1452
- parent,
1453
- child,
1454
- vm
1455
- ) {
1456
- {
1457
- checkComponents(child);
1458
- }
 
 
1459
 
1460
- if (typeof child === 'function') {
1461
- child = child.options;
1462
- }
 
 
1463
 
1464
- normalizeProps(child, vm);
1465
- normalizeInject(child, vm);
1466
- normalizeDirectives(child);
1467
- var extendsFrom = child.extends;
1468
- if (extendsFrom) {
1469
- parent = mergeOptions(parent, extendsFrom, vm);
1470
- }
1471
- if (child.mixins) {
1472
- for (var i = 0, l = child.mixins.length; i < l; i++) {
1473
- parent = mergeOptions(parent, child.mixins[i], vm);
1474
  }
1475
- }
1476
- var options = {};
1477
- var key;
1478
- for (key in parent) {
1479
- mergeField(key);
1480
- }
1481
- for (key in child) {
1482
- if (!hasOwn(parent, key)) {
1483
- mergeField(key);
1484
  }
1485
  }
1486
- function mergeField (key) {
1487
- var strat = strats[key] || defaultStrat;
1488
- options[key] = strat(parent[key], child[key], vm, key);
1489
- }
1490
- return options
1491
- }
1492
 
1493
- /**
1494
- * Resolve an asset.
1495
- * This function is used because child instances need access
1496
- * to assets defined in its ancestor chain.
1497
- */
1498
- function resolveAsset (
1499
- options,
1500
- type,
1501
- id,
1502
- warnMissing
1503
- ) {
1504
- /* istanbul ignore if */
1505
- if (typeof id !== 'string') {
1506
- return
1507
- }
1508
- var assets = options[type];
1509
- // check local registration variations first
1510
- if (hasOwn(assets, id)) { return assets[id] }
1511
- var camelizedId = camelize(id);
1512
- if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
1513
- var PascalCaseId = capitalize(camelizedId);
1514
- if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
1515
- // fallback to prototype chain
1516
- var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
1517
- if ("development" !== 'production' && warnMissing && !res) {
1518
- warn(
1519
- 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
1520
- options
1521
- );
1522
- }
1523
- return res
1524
- }
1525
-
1526
- /* */
1527
-
1528
- function validateProp (
1529
- key,
1530
- propOptions,
1531
- propsData,
1532
- vm
1533
- ) {
1534
- var prop = propOptions[key];
1535
- var absent = !hasOwn(propsData, key);
1536
- var value = propsData[key];
1537
- // boolean casting
1538
- var booleanIndex = getTypeIndex(Boolean, prop.type);
1539
- if (booleanIndex > -1) {
1540
- if (absent && !hasOwn(prop, 'default')) {
1541
- value = false;
1542
- } else if (value === '' || value === hyphenate(key)) {
1543
- // only cast empty string / same name to boolean if
1544
- // boolean has higher priority
1545
- var stringIndex = getTypeIndex(String, prop.type);
1546
- if (stringIndex < 0 || booleanIndex < stringIndex) {
1547
- value = true;
1548
- }
1549
- }
1550
- }
1551
- // check default value
1552
- if (value === undefined) {
1553
- value = getPropDefaultValue(vm, prop, key);
1554
- // since the default value is a fresh copy,
1555
- // make sure to observe it.
1556
- var prevShouldObserve = shouldObserve;
1557
- toggleObserving(true);
1558
- observe(value);
1559
- toggleObserving(prevShouldObserve);
1560
- }
1561
- {
1562
- assertProp(prop, key, value, vm, absent);
1563
  }
1564
- return value
1565
- }
1566
 
1567
- /**
1568
- * Get the default value of a prop.
1569
- */
1570
- function getPropDefaultValue (vm, prop, key) {
1571
- // no default, return undefined
1572
- if (!hasOwn(prop, 'default')) {
1573
- return undefined
1574
- }
1575
- var def = prop.default;
1576
- // warn against non-factory defaults for Object & Array
1577
- if ("development" !== 'production' && isObject(def)) {
1578
- warn(
1579
- 'Invalid default value for prop "' + key + '": ' +
1580
- 'Props with type Object/Array must use a factory function ' +
1581
- 'to return the default value.',
1582
- vm
1583
- );
1584
- }
1585
- // the raw prop value was also undefined from previous render,
1586
- // return previous default value to avoid unnecessary watcher trigger
1587
- if (vm && vm.$options.propsData &&
1588
- vm.$options.propsData[key] === undefined &&
1589
- vm._props[key] !== undefined
1590
- ) {
1591
- return vm._props[key]
1592
  }
1593
- // call factory function for non-Function types
1594
- // a value is Function if its prototype is function even across different execution context
1595
- return typeof def === 'function' && getType(prop.type) !== 'Function'
1596
- ? def.call(vm)
1597
- : def
1598
- }
1599
 
1600
- /**
1601
- * Assert whether a prop is valid.
1602
- */
1603
- function assertProp (
1604
- prop,
1605
- name,
1606
- value,
1607
- vm,
1608
- absent
1609
- ) {
1610
- if (prop.required && absent) {
1611
- warn(
1612
- 'Missing required prop: "' + name + '"',
1613
- vm
1614
- );
1615
- return
1616
- }
1617
- if (value == null && !prop.required) {
1618
- return
1619
- }
1620
- var type = prop.type;
1621
- var valid = !type || type === true;
1622
- var expectedTypes = [];
1623
- if (type) {
1624
- if (!Array.isArray(type)) {
1625
- type = [type];
1626
  }
1627
- for (var i = 0; i < type.length && !valid; i++) {
1628
- var assertedType = assertType(value, type[i]);
1629
- expectedTypes.push(assertedType.expectedType || '');
1630
- valid = assertedType.valid;
 
 
1631
  }
1632
  }
1633
- if (!valid) {
1634
- warn(
1635
- "Invalid prop: type check failed for prop \"" + name + "\"." +
1636
- " Expected " + (expectedTypes.map(capitalize).join(', ')) +
1637
- ", got " + (toRawType(value)) + ".",
1638
- vm
1639
- );
1640
- return
1641
- }
1642
- var validator = prop.validator;
1643
- if (validator) {
1644
- if (!validator(value)) {
1645
- warn(
1646
- 'Invalid prop: custom validator check failed for prop "' + name + '".',
1647
- vm
1648
- );
1649
  }
 
 
 
 
1650
  }
1651
- }
1652
 
1653
- var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
1654
 
1655
- function assertType (value, type) {
1656
- var valid;
1657
- var expectedType = getType(type);
1658
- if (simpleCheckRE.test(expectedType)) {
1659
- var t = typeof value;
1660
- valid = t === expectedType.toLowerCase();
1661
- // for primitive wrapper objects
1662
- if (!valid && t === 'object') {
1663
- valid = value instanceof type;
 
 
 
 
 
 
 
 
 
1664
  }
1665
- } else if (expectedType === 'Object') {
1666
- valid = isPlainObject(value);
1667
- } else if (expectedType === 'Array') {
1668
- valid = Array.isArray(value);
1669
- } else {
1670
- valid = value instanceof type;
1671
  }
1672
- return {
1673
- valid: valid,
1674
- expectedType: expectedType
1675
- }
1676
- }
1677
 
1678
- /**
1679
- * Use function string name to check built-in types,
1680
- * because a simple equality check will fail when running
1681
- * across different vms / iframes.
1682
- */
1683
- function getType (fn) {
1684
- var match = fn && fn.toString().match(/^\s*function (\w+)/);
1685
- return match ? match[1] : ''
1686
- }
1687
 
1688
- function isSameType (a, b) {
1689
- return getType(a) === getType(b)
1690
- }
1691
 
1692
- function getTypeIndex (type, expectedTypes) {
1693
- if (!Array.isArray(expectedTypes)) {
1694
- return isSameType(expectedTypes, type) ? 0 : -1
 
 
 
 
 
 
1695
  }
1696
- for (var i = 0, len = expectedTypes.length; i < len; i++) {
1697
- if (isSameType(expectedTypes[i], type)) {
1698
- return i
1699
- }
1700
- }
1701
- return -1
1702
- }
1703
 
1704
- /* */
1705
-
1706
- function handleError (err, vm, info) {
1707
- if (vm) {
1708
- var cur = vm;
1709
- while ((cur = cur.$parent)) {
1710
- var hooks = cur.$options.errorCaptured;
1711
- if (hooks) {
1712
- for (var i = 0; i < hooks.length; i++) {
1713
- try {
1714
- var capture = hooks[i].call(cur, err, vm, info) === false;
1715
- if (capture) { return }
1716
- } catch (e) {
1717
- globalHandleError(e, cur, 'errorCaptured hook');
1718
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1719
  }
1720
  }
1721
  }
1722
- }
1723
- globalHandleError(err, vm, info);
1724
- }
1725
 
1726
- function globalHandleError (err, vm, info) {
1727
- if (config.errorHandler) {
1728
- try {
1729
- return config.errorHandler.call(null, err, vm, info)
1730
- } catch (e) {
1731
- logError(e, null, 'config.errorHandler');
1732
- }
1733
- }
1734
- logError(err, vm, info);
1735
- }
1736
 
1737
- function logError (err, vm, info) {
1738
- {
1739
- warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
 
 
 
 
 
 
 
 
1740
  }
1741
- /* istanbul ignore else */
1742
- if ((inBrowser || inWeex) && typeof console !== 'undefined') {
1743
- console.error(err);
1744
- } else {
1745
- throw err
1746
- }
1747
- }
1748
-
1749
- /* */
1750
- /* globals MessageChannel */
1751
-
1752
- var callbacks = [];
1753
- var pending = false;
1754
-
1755
- function flushCallbacks () {
1756
- pending = false;
1757
- var copies = callbacks.slice(0);
1758
- callbacks.length = 0;
1759
- for (var i = 0; i < copies.length; i++) {
1760
- copies[i]();
1761
- }
1762
- }
1763
-
1764
- // Here we have async deferring wrappers using both microtasks and (macro) tasks.
1765
- // In < 2.4 we used microtasks everywhere, but there are some scenarios where
1766
- // microtasks have too high a priority and fire in between supposedly
1767
- // sequential events (e.g. #4521, #6690) or even between bubbling of the same
1768
- // event (#6566). However, using (macro) tasks everywhere also has subtle problems
1769
- // when state is changed right before repaint (e.g. #6813, out-in transitions).
1770
- // Here we use microtask by default, but expose a way to force (macro) task when
1771
- // needed (e.g. in event handlers attached by v-on).
1772
- var microTimerFunc;
1773
- var macroTimerFunc;
1774
- var useMacroTask = false;
1775
-
1776
- // Determine (macro) task defer implementation.
1777
- // Technically setImmediate should be the ideal choice, but it's only available
1778
- // in IE. The only polyfill that consistently queues the callback after all DOM
1779
- // events triggered in the same loop is by using MessageChannel.
1780
- /* istanbul ignore if */
1781
- if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
1782
- macroTimerFunc = function () {
1783
- setImmediate(flushCallbacks);
1784
- };
1785
- } else if (typeof MessageChannel !== 'undefined' && (
1786
- isNative(MessageChannel) ||
1787
- // PhantomJS
1788
- MessageChannel.toString() === '[object MessageChannelConstructor]'
1789
- )) {
1790
- var channel = new MessageChannel();
1791
- var port = channel.port2;
1792
- channel.port1.onmessage = flushCallbacks;
1793
- macroTimerFunc = function () {
1794
- port.postMessage(1);
1795
- };
1796
- } else {
1797
- /* istanbul ignore next */
1798
- macroTimerFunc = function () {
1799
- setTimeout(flushCallbacks, 0);
1800
- };
1801
- }
1802
-
1803
- // Determine microtask defer implementation.
1804
- /* istanbul ignore next, $flow-disable-line */
1805
- if (typeof Promise !== 'undefined' && isNative(Promise)) {
1806
- var p = Promise.resolve();
1807
- microTimerFunc = function () {
1808
- p.then(flushCallbacks);
1809
- // in problematic UIWebViews, Promise.then doesn't completely break, but
1810
- // it can get stuck in a weird state where callbacks are pushed into the
1811
- // microtask queue but the queue isn't being flushed, until the browser
1812
- // needs to do some other work, e.g. handle a timer. Therefore we can
1813
- // "force" the microtask queue to be flushed by adding an empty timer.
1814
- if (isIOS) { setTimeout(noop); }
1815
- };
1816
- } else {
1817
- // fallback to macro
1818
- microTimerFunc = macroTimerFunc;
1819
- }
1820
-
1821
- /**
1822
- * Wrap a function so that if any code inside triggers state change,
1823
- * the changes are queued using a (macro) task instead of a microtask.
1824
- */
1825
- function withMacroTask (fn) {
1826
- return fn._withTask || (fn._withTask = function () {
1827
- useMacroTask = true;
1828
- var res = fn.apply(null, arguments);
1829
- useMacroTask = false;
1830
- return res
1831
- })
1832
- }
1833
 
1834
- function nextTick (cb, ctx) {
1835
- var _resolve;
1836
- callbacks.push(function () {
1837
- if (cb) {
1838
- try {
1839
- cb.call(ctx);
1840
- } catch (e) {
1841
- handleError(e, ctx, 'nextTick');
1842
  }
1843
- } else if (_resolve) {
1844
- _resolve(ctx);
1845
- }
1846
- });
1847
- if (!pending) {
1848
- pending = true;
1849
- if (useMacroTask) {
1850
- macroTimerFunc();
1851
- } else {
1852
- microTimerFunc();
1853
  }
1854
  }
1855
- // $flow-disable-line
1856
- if (!cb && typeof Promise !== 'undefined') {
1857
- return new Promise(function (resolve) {
1858
- _resolve = resolve;
1859
- })
 
 
 
 
 
1860
  }
1861
- }
1862
 
1863
- /* */
 
 
 
 
 
1864
 
1865
- var mark;
1866
- var measure;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1867
 
1868
- {
1869
- var perf = inBrowser && window.performance;
1870
- /* istanbul ignore if */
1871
- if (
1872
- perf &&
1873
- perf.mark &&
1874
- perf.measure &&
1875
- perf.clearMarks &&
1876
- perf.clearMeasures
1877
- ) {
1878
- mark = function (tag) { return perf.mark(tag); };
1879
- measure = function (name, startTag, endTag) {
1880
- perf.measure(name, startTag, endTag);
1881
- perf.clearMarks(startTag);
1882
- perf.clearMarks(endTag);
1883
- perf.clearMeasures(name);
1884
- };
1885
  }
1886
- }
1887
-
1888
- /* not type checking this file because flow doesn't play well with Proxy */
1889
 
1890
- var initProxy;
1891
 
1892
- {
1893
- var allowedGlobals = makeMap(
1894
- 'Infinity,undefined,NaN,isFinite,isNaN,' +
1895
- 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
1896
- 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
1897
- 'require' // for Webpack/Browserify
1898
- );
1899
 
1900
- var warnNonPresent = function (target, key) {
1901
- warn(
1902
- "Property or method \"" + key + "\" is not defined on the instance but " +
1903
- 'referenced during render. Make sure that this property is reactive, ' +
1904
- 'either in the data option, or for class-based components, by ' +
1905
- 'initializing the property. ' +
1906
- 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
1907
- target
1908
- );
1909
- };
1910
 
1911
- var hasProxy =
1912
- typeof Proxy !== 'undefined' && isNative(Proxy);
1913
 
1914
- if (hasProxy) {
1915
- var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
1916
- config.keyCodes = new Proxy(config.keyCodes, {
1917
- set: function set (target, key, value) {
1918
- if (isBuiltInModifier(key)) {
1919
- warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
1920
- return false
1921
- } else {
1922
- target[key] = value;
1923
- return true
1924
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1925
  }
1926
- });
1927
- }
 
 
 
1928
 
1929
- var hasHandler = {
1930
- has: function has (target, key) {
1931
- var has = key in target;
1932
- var isAllowed = allowedGlobals(key) || key.charAt(0) === '_';
1933
- if (!has && !isAllowed) {
1934
- warnNonPresent(target, key);
 
 
 
 
 
 
 
 
1935
  }
1936
- return has || !isAllowed
 
 
 
 
 
 
 
1937
  }
 
1938
  };
1939
 
1940
- var getHandler = {
1941
- get: function get (target, key) {
1942
- if (typeof key === 'string' && !(key in target)) {
1943
- warnNonPresent(target, key);
 
 
 
 
 
 
1944
  }
1945
- return target[key]
1946
  }
1947
  };
1948
 
1949
- initProxy = function initProxy (vm) {
1950
- if (hasProxy) {
1951
- // determine which proxy handler to use
1952
- var options = vm.$options;
1953
- var handlers = options.render && options.render._withStripped
1954
- ? getHandler
1955
- : hasHandler;
1956
- vm._renderProxy = new Proxy(vm, handlers);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1957
  } else {
1958
- vm._renderProxy = vm;
1959
  }
1960
  };
1961
- }
1962
 
1963
- /* */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1964
 
1965
- var seenObjects = new _Set();
 
 
 
 
 
 
 
1966
 
1967
- /**
1968
- * Recursively traverse an object to evoke all converted
1969
- * getters, so that every nested property inside the object
1970
- * is collected as a "deep" dependency.
1971
- */
1972
- function traverse (val) {
1973
- _traverse(val, seenObjects);
1974
- seenObjects.clear();
1975
- }
1976
-
1977
- function _traverse (val, seen) {
1978
- var i, keys;
1979
- var isA = Array.isArray(val);
1980
- if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
1981
- return
1982
- }
1983
- if (val.__ob__) {
1984
- var depId = val.__ob__.dep.id;
1985
- if (seen.has(depId)) {
1986
- return
1987
  }
1988
- seen.add(depId);
1989
- }
1990
- if (isA) {
1991
- i = val.length;
1992
- while (i--) { _traverse(val[i], seen); }
1993
- } else {
1994
- keys = Object.keys(val);
1995
- i = keys.length;
1996
- while (i--) { _traverse(val[keys[i]], seen); }
1997
- }
1998
- }
1999
-
2000
- /* */
2001
-
2002
- var normalizeEvent = cached(function (name) {
2003
- var passive = name.charAt(0) === '&';
2004
- name = passive ? name.slice(1) : name;
2005
- var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
2006
- name = once$$1 ? name.slice(1) : name;
2007
- var capture = name.charAt(0) === '!';
2008
- name = capture ? name.slice(1) : name;
2009
- return {
2010
- name: name,
2011
- once: once$$1,
2012
- capture: capture,
2013
- passive: passive
2014
- }
2015
- });
2016
-
2017
- function createFnInvoker (fns) {
2018
- function invoker () {
2019
- var arguments$1 = arguments;
2020
-
2021
- var fns = invoker.fns;
2022
- if (Array.isArray(fns)) {
2023
- var cloned = fns.slice();
2024
- for (var i = 0; i < cloned.length; i++) {
2025
- cloned[i].apply(null, arguments$1);
2026
  }
2027
- } else {
2028
- // return handler return value for single handlers
2029
- return fns.apply(null, arguments)
2030
- }
2031
- }
2032
- invoker.fns = fns;
2033
- return invoker
2034
- }
2035
-
2036
- function updateListeners (
2037
- on,
2038
- oldOn,
2039
- add,
2040
- remove$$1,
2041
- vm
2042
- ) {
2043
- var name, def, cur, old, event;
2044
- for (name in on) {
2045
- def = cur = on[name];
2046
- old = oldOn[name];
2047
- event = normalizeEvent(name);
2048
- /* istanbul ignore if */
2049
- if (isUndef(cur)) {
2050
- "development" !== 'production' && warn(
2051
- "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
2052
- vm
2053
- );
2054
- } else if (isUndef(old)) {
2055
- if (isUndef(cur.fns)) {
2056
- cur = on[name] = createFnInvoker(cur);
2057
  }
2058
- add(event.name, cur, event.once, event.capture, event.passive, event.params);
2059
- } else if (cur !== old) {
2060
- old.fns = cur;
2061
- on[name] = old;
2062
  }
2063
- }
2064
- for (name in oldOn) {
2065
- if (isUndef(on[name])) {
2066
- event = normalizeEvent(name);
2067
- remove$$1(event.name, oldOn[name], event.capture);
2068
- }
2069
- }
2070
- }
2071
 
2072
- /* */
2073
 
2074
- function mergeVNodeHook (def, hookKey, hook) {
2075
- if (def instanceof VNode) {
2076
- def = def.data.hook || (def.data.hook = {});
2077
- }
2078
- var invoker;
2079
- var oldHook = def[hookKey];
2080
 
2081
- function wrappedHook () {
2082
- hook.apply(this, arguments);
2083
- // important: remove merged hook to ensure it's called only once
2084
- // and prevent memory leak
2085
- remove(invoker.fns, wrappedHook);
 
 
 
2086
  }
2087
 
2088
- if (isUndef(oldHook)) {
2089
- // no existing hook
2090
- invoker = createFnInvoker([wrappedHook]);
2091
- } else {
2092
- /* istanbul ignore if */
2093
- if (isDef(oldHook.fns) && isTrue(oldHook.merged)) {
2094
- // already a merged invoker
2095
- invoker = oldHook;
2096
- invoker.fns.push(wrappedHook);
2097
  } else {
2098
- // existing plain hook
2099
- invoker = createFnInvoker([oldHook, wrappedHook]);
2100
- }
2101
- }
2102
-
2103
- invoker.merged = true;
2104
- def[hookKey] = invoker;
2105
- }
2106
-
2107
- /* */
2108
-
2109
- function extractPropsFromVNodeData (
2110
- data,
2111
- Ctor,
2112
- tag
2113
- ) {
2114
- // we are only extracting raw values here.
2115
- // validation and default values are handled in the child
2116
- // component itself.
2117
- var propOptions = Ctor.options.props;
2118
- if (isUndef(propOptions)) {
2119
- return
2120
- }
2121
- var res = {};
2122
- var attrs = data.attrs;
2123
- var props = data.props;
2124
- if (isDef(attrs) || isDef(props)) {
2125
- for (var key in propOptions) {
2126
- var altKey = hyphenate(key);
2127
  {
2128
- var keyInLowerCase = key.toLowerCase();
2129
- if (
2130
- key !== keyInLowerCase &&
2131
- attrs && hasOwn(attrs, keyInLowerCase)
2132
- ) {
2133
- tip(
2134
- "Prop \"" + keyInLowerCase + "\" is passed to component " +
2135
- (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
2136
- " \"" + key + "\". " +
2137
- "Note that HTML attributes are case-insensitive and camelCased " +
2138
- "props need to use their kebab-case equivalents when using in-DOM " +
2139
- "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
2140
  );
2141
  }
 
 
 
 
 
 
 
 
 
 
 
2142
  }
2143
- checkProp(res, props, key, altKey, true) ||
2144
- checkProp(res, attrs, key, altKey, false);
2145
- }
 
 
 
 
 
 
 
2146
  }
2147
- return res
2148
- }
2149
 
2150
- function checkProp (
2151
- res,
2152
- hash,
2153
- key,
2154
- altKey,
2155
- preserve
2156
- ) {
2157
- if (isDef(hash)) {
2158
- if (hasOwn(hash, key)) {
2159
- res[key] = hash[key];
2160
- if (!preserve) {
2161
- delete hash[key];
2162
- }
2163
- return true
2164
- } else if (hasOwn(hash, altKey)) {
2165
- res[key] = hash[altKey];
2166
- if (!preserve) {
2167
- delete hash[altKey];
2168
- }
2169
- return true
2170
  }
2171
- }
2172
- return false
2173
- }
2174
-
2175
- /* */
2176
-
2177
- // The template compiler attempts to minimize the need for normalization by
2178
- // statically analyzing the template at compile time.
2179
- //
2180
- // For plain HTML markup, normalization can be completely skipped because the
2181
- // generated render function is guaranteed to return Array<VNode>. There are
2182
- // two cases where extra normalization is needed:
2183
-
2184
- // 1. When the children contains components - because a functional component
2185
- // may return an Array instead of a single root. In this case, just a simple
2186
- // normalization is needed - if any child is an Array, we flatten the whole
2187
- // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
2188
- // because functional components already normalize their own children.
2189
- function simpleNormalizeChildren (children) {
2190
- for (var i = 0; i < children.length; i++) {
2191
- if (Array.isArray(children[i])) {
2192
- return Array.prototype.concat.apply([], children)
2193
- }
2194
- }
2195
- return children
2196
- }
2197
-
2198
- // 2. When the children contains constructs that always generated nested Arrays,
2199
- // e.g. <template>, <slot>, v-for, or when the children is provided by user
2200
- // with hand-written render functions / JSX. In such cases a full normalization
2201
- // is needed to cater to all possible types of children values.
2202
- function normalizeChildren (children) {
2203
- return isPrimitive(children)
2204
- ? [createTextVNode(children)]
2205
- : Array.isArray(children)
2206
- ? normalizeArrayChildren(children)
2207
- : undefined
2208
- }
2209
-
2210
- function isTextNode (node) {
2211
- return isDef(node) && isDef(node.text) && isFalse(node.isComment)
2212
- }
2213
-
2214
- function normalizeArrayChildren (children, nestedIndex) {
2215
- var res = [];
2216
- var i, c, lastIndex, last;
2217
- for (i = 0; i < children.length; i++) {
2218
- c = children[i];
2219
- if (isUndef(c) || typeof c === 'boolean') { continue }
2220
- lastIndex = res.length - 1;
2221
- last = res[lastIndex];
2222
- // nested
2223
- if (Array.isArray(c)) {
2224
- if (c.length > 0) {
2225
- c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
2226
- // merge adjacent text nodes
2227
- if (isTextNode(c[0]) && isTextNode(last)) {
2228
- res[lastIndex] = createTextVNode(last.text + (c[0]).text);
2229
- c.shift();
2230
- }
2231
- res.push.apply(res, c);
2232
- }
2233
- } else if (isPrimitive(c)) {
2234
- if (isTextNode(last)) {
2235
- // merge adjacent text nodes
2236
- // this is necessary for SSR hydration because text nodes are
2237
- // essentially merged when rendered to HTML strings
2238
- res[lastIndex] = createTextVNode(last.text + c);
2239
- } else if (c !== '') {
2240
- // convert primitive to vnode
2241
- res.push(createTextVNode(c));
2242
- }
2243
- } else {
2244
- if (isTextNode(c) && isTextNode(last)) {
2245
- // merge adjacent text nodes
2246
- res[lastIndex] = createTextVNode(last.text + c.text);
2247
- } else {
2248
- // default key for nested array children (likely generated by v-for)
2249
- if (isTrue(children._isVList) &&
2250
- isDef(c.tag) &&
2251
- isUndef(c.key) &&
2252
- isDef(nestedIndex)) {
2253
- c.key = "__vlist" + nestedIndex + "_" + i + "__";
2254
  }
2255
- res.push(c);
 
 
 
 
 
 
 
 
2256
  }
2257
  }
 
 
2258
  }
2259
- return res
2260
- }
2261
 
2262
- /* */
 
 
 
 
 
 
 
 
 
 
 
2263
 
2264
- function ensureCtor (comp, base) {
2265
- if (
2266
- comp.__esModule ||
2267
- (hasSymbol && comp[Symbol.toStringTag] === 'Module')
2268
- ) {
2269
- comp = comp.default;
2270
- }
2271
- return isObject(comp)
2272
- ? base.extend(comp)
2273
- : comp
2274
- }
2275
-
2276
- function createAsyncPlaceholder (
2277
- factory,
2278
- data,
2279
- context,
2280
- children,
2281
- tag
2282
- ) {
2283
- var node = createEmptyVNode();
2284
- node.asyncFactory = factory;
2285
- node.asyncMeta = { data: data, context: context, children: children, tag: tag };
2286
- return node
2287
- }
2288
-
2289
- function resolveAsyncComponent (
2290
- factory,
2291
- baseCtor,
2292
- context
2293
- ) {
2294
- if (isTrue(factory.error) && isDef(factory.errorComp)) {
2295
- return factory.errorComp
2296
- }
2297
-
2298
- if (isDef(factory.resolved)) {
2299
- return factory.resolved
2300
- }
2301
-
2302
- if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
2303
- return factory.loadingComp
2304
- }
2305
-
2306
- if (isDef(factory.contexts)) {
2307
- // already pending
2308
- factory.contexts.push(context);
2309
- } else {
2310
- var contexts = factory.contexts = [context];
2311
- var sync = true;
2312
 
2313
- var forceRender = function () {
2314
- for (var i = 0, l = contexts.length; i < l; i++) {
2315
- contexts[i].$forceUpdate();
 
 
 
 
 
 
 
 
 
 
 
2316
  }
2317
- };
2318
 
2319
- var resolve = once(function (res) {
2320
- // cache resolved
2321
- factory.resolved = ensureCtor(res, baseCtor);
2322
- // invoke callbacks only if this is not a synchronous resolve
2323
- // (async resolves are shimmed as synchronous during SSR)
2324
- if (!sync) {
2325
- forceRender();
 
2326
  }
2327
- });
2328
 
2329
- var reject = once(function (reason) {
2330
- "development" !== 'production' && warn(
2331
- "Failed to resolve async component: " + (String(factory)) +
2332
- (reason ? ("\nReason: " + reason) : '')
2333
- );
2334
- if (isDef(factory.errorComp)) {
2335
- factory.error = true;
2336
- forceRender();
 
 
 
2337
  }
2338
- });
 
2339
 
2340
- var res = factory(resolve, reject);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2341
 
2342
- if (isObject(res)) {
2343
- if (typeof res.then === 'function') {
2344
- // () => Promise
2345
- if (isUndef(factory.resolved)) {
2346
- res.then(resolve, reject);
 
2347
  }
2348
- } else if (isDef(res.component) && typeof res.component.then === 'function') {
2349
- res.component.then(resolve, reject);
2350
-
2351
- if (isDef(res.error)) {
2352
- factory.errorComp = ensureCtor(res.error, baseCtor);
2353
  }
 
 
 
 
2354
 
2355
- if (isDef(res.loading)) {
2356
- factory.loadingComp = ensureCtor(res.loading, baseCtor);
2357
- if (res.delay === 0) {
2358
- factory.loading = true;
2359
- } else {
2360
- setTimeout(function () {
2361
- if (isUndef(factory.resolved) && isUndef(factory.error)) {
2362
- factory.loading = true;
2363
- forceRender();
2364
- }
2365
- }, res.delay || 200);
2366
- }
2367
- }
2368
 
2369
- if (isDef(res.timeout)) {
2370
- setTimeout(function () {
2371
- if (isUndef(factory.resolved)) {
2372
- reject(
2373
- "timeout (" + (res.timeout) + "ms)"
2374
- );
2375
- }
2376
- }, res.timeout);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2377
  }
2378
  }
 
2379
  }
2380
-
2381
- sync = false;
2382
- // return in case resolved synchronously
2383
- return factory.loading
2384
- ? factory.loadingComp
2385
- : factory.resolved
2386
  }
2387
- }
2388
 
2389
- /* */
2390
-
2391
- function isAsyncPlaceholder (node) {
2392
- return node.isComment && node.asyncFactory
2393
- }
2394
-
2395
- /* */
2396
-
2397
- function getFirstComponentChild (children) {
2398
- if (Array.isArray(children)) {
2399
- for (var i = 0; i < children.length; i++) {
2400
- var c = children[i];
2401
- if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
2402
- return c
2403
  }
2404
  }
2405
  }
2406
- }
2407
-
2408
- /* */
2409
-
2410
- /* */
2411
 
2412
- function initEvents (vm) {
2413
- vm._events = Object.create(null);
2414
- vm._hasHookEvent = false;
2415
- // init parent attached events
2416
- var listeners = vm.$options._parentListeners;
2417
- if (listeners) {
2418
- updateComponentListeners(vm, listeners);
 
 
 
 
 
 
 
2419
  }
2420
- }
2421
 
2422
- var target;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2423
 
2424
- function add (event, fn, once) {
2425
- if (once) {
2426
- target.$once(event, fn);
2427
- } else {
2428
- target.$on(event, fn);
2429
- }
2430
- }
2431
-
2432
- function remove$1 (event, fn) {
2433
- target.$off(event, fn);
2434
- }
2435
-
2436
- function updateComponentListeners (
2437
- vm,
2438
- listeners,
2439
- oldListeners
2440
- ) {
2441
- target = vm;
2442
- updateListeners(listeners, oldListeners || {}, add, remove$1, vm);
2443
- target = undefined;
2444
- }
2445
-
2446
- function eventsMixin (Vue) {
2447
- var hookRE = /^hook:/;
2448
- Vue.prototype.$on = function (event, fn) {
2449
- var this$1 = this;
2450
 
2451
- var vm = this;
2452
- if (Array.isArray(event)) {
2453
- for (var i = 0, l = event.length; i < l; i++) {
2454
- this$1.$on(event[i], fn);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2455
  }
2456
- } else {
2457
- (vm._events[event] || (vm._events[event] = [])).push(fn);
2458
- // optimize hook:event cost by using a boolean flag marked at registration
2459
- // instead of a hash lookup
2460
- if (hookRE.test(event)) {
2461
- vm._hasHookEvent = true;
2462
  }
2463
- }
2464
- return vm
2465
- };
2466
 
2467
- Vue.prototype.$once = function (event, fn) {
2468
- var vm = this;
2469
- function on () {
2470
- vm.$off(event, on);
2471
- fn.apply(vm, arguments);
2472
- }
2473
- on.fn = fn;
2474
- vm.$on(event, on);
2475
- return vm
2476
- };
2477
 
2478
- Vue.prototype.$off = function (event, fn) {
2479
- var this$1 = this;
2480
 
2481
- var vm = this;
2482
- // all
2483
- if (!arguments.length) {
2484
- vm._events = Object.create(null);
2485
- return vm
2486
- }
2487
- // array of events
2488
- if (Array.isArray(event)) {
2489
- for (var i = 0, l = event.length; i < l; i++) {
2490
- this$1.$off(event[i], fn);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2491
  }
2492
- return vm
2493
- }
2494
- // specific event
2495
- var cbs = vm._events[event];
2496
- if (!cbs) {
2497
- return vm
2498
- }
2499
- if (!fn) {
2500
- vm._events[event] = null;
2501
- return vm
2502
- }
2503
- if (fn) {
2504
- // specific handler
2505
- var cb;
2506
- var i$1 = cbs.length;
2507
- while (i$1--) {
2508
- cb = cbs[i$1];
2509
- if (cb === fn || cb.fn === fn) {
2510
- cbs.splice(i$1, 1);
2511
- break
2512
- }
2513
  }
2514
- }
2515
- return vm
2516
- };
2517
 
2518
- Vue.prototype.$emit = function (event) {
2519
- var vm = this;
2520
- {
2521
- var lowerCaseEvent = event.toLowerCase();
2522
- if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
2523
- tip(
2524
- "Event \"" + lowerCaseEvent + "\" is emitted in component " +
2525
- (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
2526
- "Note that HTML attributes are case-insensitive and you cannot use " +
2527
- "v-on to listen to camelCase events when using in-DOM templates. " +
2528
- "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
2529
- );
2530
  }
2531
- }
2532
- var cbs = vm._events[event];
2533
- if (cbs) {
2534
- cbs = cbs.length > 1 ? toArray(cbs) : cbs;
2535
- var args = toArray(arguments, 1);
2536
- for (var i = 0, l = cbs.length; i < l; i++) {
2537
- try {
2538
- cbs[i].apply(vm, args);
2539
- } catch (e) {
2540
- handleError(e, vm, ("event handler for \"" + event + "\""));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2541
  }
2542
  }
2543
  }
2544
- return vm
2545
- };
2546
- }
2547
-
2548
- /* */
2549
-
2550
-
2551
-
2552
- /**
2553
- * Runtime helper for resolving raw children VNodes into a slot object.
2554
- */
2555
- function resolveSlots (
2556
- children,
2557
- context
2558
- ) {
2559
- var slots = {};
2560
- if (!children) {
2561
- return slots
2562
  }
2563
- for (var i = 0, l = children.length; i < l; i++) {
2564
- var child = children[i];
2565
- var data = child.data;
2566
- // remove slot attribute if the node is resolved as a Vue slot node
2567
- if (data && data.attrs && data.attrs.slot) {
2568
- delete data.attrs.slot;
2569
- }
2570
- // named slots should only be respected if the vnode was rendered in the
2571
- // same context.
2572
- if ((child.context === context || child.fnContext === context) &&
2573
- data && data.slot != null
2574
- ) {
2575
- var name = data.slot;
2576
- var slot = (slots[name] || (slots[name] = []));
2577
- if (child.tag === 'template') {
2578
- slot.push.apply(slot, child.children || []);
2579
- } else {
2580
- slot.push(child);
2581
  }
2582
- } else {
2583
- (slots.default || (slots.default = [])).push(child);
2584
  }
 
2585
  }
2586
- // ignore slots that contains only whitespace
2587
- for (var name$1 in slots) {
2588
- if (slots[name$1].every(isWhitespace)) {
2589
- delete slots[name$1];
 
2590
  }
 
2591
  }
2592
- return slots
2593
- }
2594
 
2595
- function isWhitespace (node) {
2596
- return (node.isComment && !node.asyncFactory) || node.text === ' '
2597
- }
 
 
2598
 
2599
- function resolveScopedSlots (
2600
- fns, // see flow/vnode
2601
- res
2602
- ) {
2603
- res = res || {};
2604
- for (var i = 0; i < fns.length; i++) {
2605
- if (Array.isArray(fns[i])) {
2606
- resolveScopedSlots(fns[i], res);
2607
- } else {
2608
- res[fns[i].key] = fns[i].fn;
2609
- }
2610
- }
2611
- return res
2612
- }
2613
 
2614
- /* */
 
 
 
 
 
2615
 
2616
- var activeInstance = null;
2617
- var isUpdatingChildComponent = false;
 
 
 
 
 
 
 
 
 
 
2618
 
2619
- function initLifecycle (vm) {
2620
- var options = vm.$options;
2621
 
2622
- // locate first non-abstract parent
2623
- var parent = options.parent;
2624
- if (parent && !options.abstract) {
2625
- while (parent.$options.abstract && parent.$parent) {
2626
- parent = parent.$parent;
2627
- }
2628
- parent.$children.push(vm);
2629
  }
2630
 
2631
- vm.$parent = parent;
2632
- vm.$root = parent ? parent.$root : vm;
2633
 
2634
- vm.$children = [];
2635
- vm.$refs = {};
 
 
 
 
 
 
2636
 
2637
- vm._watcher = null;
2638
- vm._inactive = null;
2639
- vm._directInactive = false;
2640
- vm._isMounted = false;
2641
- vm._isDestroyed = false;
2642
- vm._isBeingDestroyed = false;
2643
- }
 
 
 
 
2644
 
2645
- function lifecycleMixin (Vue) {
2646
- Vue.prototype._update = function (vnode, hydrating) {
2647
- var vm = this;
2648
- if (vm._isMounted) {
2649
- callHook(vm, 'beforeUpdate');
2650
- }
2651
- var prevEl = vm.$el;
2652
- var prevVnode = vm._vnode;
2653
- var prevActiveInstance = activeInstance;
2654
- activeInstance = vm;
2655
- vm._vnode = vnode;
2656
- // Vue.prototype.__patch__ is injected in entry points
2657
- // based on the rendering backend used.
2658
- if (!prevVnode) {
2659
- // initial render
2660
- vm.$el = vm.__patch__(
2661
- vm.$el, vnode, hydrating, false /* removeOnly */,
2662
- vm.$options._parentElm,
2663
- vm.$options._refElm
2664
  );
2665
- // no need for the ref nodes after initial patch
2666
- // this prevents keeping a detached DOM tree in memory (#5851)
2667
- vm.$options._parentElm = vm.$options._refElm = null;
2668
- } else {
2669
- // updates
2670
- vm.$el = vm.__patch__(prevVnode, vnode);
2671
- }
2672
- activeInstance = prevActiveInstance;
2673
- // update __vue__ reference
2674
- if (prevEl) {
2675
- prevEl.__vue__ = null;
2676
- }
2677
- if (vm.$el) {
2678
- vm.$el.__vue__ = vm;
2679
- }
2680
- // if parent is an HOC, update its $el as well
2681
- if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
2682
- vm.$parent.$el = vm.$el;
2683
- }
2684
- // updated hook is called by the scheduler to ensure that children are
2685
- // updated in a parent's updated hook.
2686
- };
2687
 
2688
- Vue.prototype.$forceUpdate = function () {
2689
- var vm = this;
2690
- if (vm._watcher) {
2691
- vm._watcher.update();
2692
- }
2693
- };
 
 
 
2694
 
2695
- Vue.prototype.$destroy = function () {
2696
- var vm = this;
2697
- if (vm._isBeingDestroyed) {
2698
- return
2699
- }
2700
- callHook(vm, 'beforeDestroy');
2701
- vm._isBeingDestroyed = true;
2702
- // remove self from parent
2703
- var parent = vm.$parent;
2704
- if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
2705
- remove(parent.$children, vm);
2706
- }
2707
- // teardown watchers
2708
- if (vm._watcher) {
2709
- vm._watcher.teardown();
2710
- }
2711
- var i = vm._watchers.length;
2712
- while (i--) {
2713
- vm._watchers[i].teardown();
2714
- }
2715
- // remove reference from data ob
2716
- // frozen object may not have observer.
2717
- if (vm._data.__ob__) {
2718
- vm._data.__ob__.vmCount--;
2719
- }
2720
- // call the last hook...
2721
- vm._isDestroyed = true;
2722
- // invoke destroy hooks on current rendered tree
2723
- vm.__patch__(vm._vnode, null);
2724
- // fire destroyed hook
2725
- callHook(vm, 'destroyed');
2726
- // turn off all instance listeners.
2727
- vm.$off();
2728
- // remove __vue__ reference
2729
- if (vm.$el) {
2730
- vm.$el.__vue__ = null;
2731
- }
2732
- // release circular reference (#6759)
2733
- if (vm.$vnode) {
2734
- vm.$vnode.parent = null;
2735
- }
2736
- };
2737
- }
2738
-
2739
- function mountComponent (
2740
- vm,
2741
- el,
2742
- hydrating
2743
- ) {
2744
- vm.$el = el;
2745
- if (!vm.$options.render) {
2746
- vm.$options.render = createEmptyVNode;
2747
- {
2748
- /* istanbul ignore if */
2749
- if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
2750
- vm.$options.el || el) {
2751
- warn(
2752
- 'You are using the runtime-only build of Vue where the template ' +
2753
- 'compiler is not available. Either pre-compile the templates into ' +
2754
- 'render functions, or use the compiler-included build.',
2755
- vm
2756
- );
2757
- } else {
2758
- warn(
2759
- 'Failed to mount component: template or render function not defined.',
2760
- vm
2761
- );
2762
  }
2763
- }
2764
- }
2765
- callHook(vm, 'beforeMount');
2766
 
2767
- var updateComponent;
2768
- /* istanbul ignore if */
2769
- if ("development" !== 'production' && config.performance && mark) {
2770
- updateComponent = function () {
2771
- var name = vm._name;
2772
- var id = vm._uid;
2773
- var startTag = "vue-perf-start:" + id;
2774
- var endTag = "vue-perf-end:" + id;
2775
-
2776
- mark(startTag);
2777
- var vnode = vm._render();
2778
- mark(endTag);
2779
- measure(("vue " + name + " render"), startTag, endTag);
2780
-
2781
- mark(startTag);
2782
- vm._update(vnode, hydrating);
2783
- mark(endTag);
2784
- measure(("vue " + name + " patch"), startTag, endTag);
2785
- };
2786
- } else {
2787
- updateComponent = function () {
2788
- vm._update(vm._render(), hydrating);
2789
  };
2790
  }
2791
 
2792
- // we set this to vm._watcher inside the watcher's constructor
2793
- // since the watcher's initial patch may call $forceUpdate (e.g. inside child
2794
- // component's mounted hook), which relies on vm._watcher being already defined
2795
- new Watcher(vm, updateComponent, noop, null, true /* isRenderWatcher */);
2796
- hydrating = false;
2797
-
2798
- // manually mounted instance, call mounted on self
2799
- // mounted is called for render-created child components in its inserted hook
2800
- if (vm.$vnode == null) {
2801
- vm._isMounted = true;
2802
- callHook(vm, 'mounted');
2803
- }
2804
- return vm
2805
- }
2806
-
2807
- function updateChildComponent (
2808
- vm,
2809
- propsData,
2810
- listeners,
2811
- parentVnode,
2812
- renderChildren
2813
- ) {
2814
- {
2815
- isUpdatingChildComponent = true;
2816
  }
2817
 
2818
- // determine whether component has slot children
2819
- // we need to do this before overwriting $options._renderChildren
2820
- var hasChildren = !!(
2821
- renderChildren || // has new static slots
2822
- vm.$options._renderChildren || // has old static slots
2823
- parentVnode.data.scopedSlots || // has new scoped slots
2824
- vm.$scopedSlots !== emptyObject // has old scoped slots
2825
- );
2826
-
2827
- vm.$options._parentVnode = parentVnode;
2828
- vm.$vnode = parentVnode; // update vm's placeholder node without re-render
2829
-
2830
- if (vm._vnode) { // update child tree's parent
2831
- vm._vnode.parent = parentVnode;
2832
  }
2833
- vm.$options._renderChildren = renderChildren;
2834
 
2835
- // update $attrs and $listeners hash
2836
- // these are also reactive so they may trigger child update if the child
2837
- // used them during render
2838
- vm.$attrs = parentVnode.data.attrs || emptyObject;
2839
- vm.$listeners = listeners || emptyObject;
2840
 
2841
- // update props
2842
- if (propsData && vm.$options.props) {
2843
- toggleObserving(false);
2844
- var props = vm._props;
2845
- var propKeys = vm.$options._propKeys || [];
2846
- for (var i = 0; i < propKeys.length; i++) {
2847
- var key = propKeys[i];
2848
- var propOptions = vm.$options.props; // wtf flow?
2849
- props[key] = validateProp(key, propOptions, propsData, vm);
2850
- }
2851
- toggleObserving(true);
2852
- // keep a copy of raw propsData
2853
- vm.$options.propsData = propsData;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2854
  }
2855
 
2856
- // update listeners
2857
- listeners = listeners || emptyObject;
2858
- var oldListeners = vm.$options._parentListeners;
2859
- vm.$options._parentListeners = listeners;
2860
- updateComponentListeners(vm, listeners, oldListeners);
2861
 
2862
- // resolve slots + force update if has children
2863
- if (hasChildren) {
2864
- vm.$slots = resolveSlots(renderChildren, parentVnode.context);
2865
- vm.$forceUpdate();
2866
- }
2867
 
2868
- {
2869
- isUpdatingChildComponent = false;
2870
- }
2871
- }
2872
 
2873
- function isInInactiveTree (vm) {
2874
- while (vm && (vm = vm.$parent)) {
2875
- if (vm._inactive) { return true }
2876
  }
2877
- return false
2878
- }
2879
 
2880
- function activateChildComponent (vm, direct) {
2881
- if (direct) {
2882
- vm._directInactive = false;
2883
- if (isInInactiveTree(vm)) {
2884
- return
2885
- }
2886
- } else if (vm._directInactive) {
2887
- return
2888
- }
2889
- if (vm._inactive || vm._inactive === null) {
2890
- vm._inactive = false;
2891
- for (var i = 0; i < vm.$children.length; i++) {
2892
- activateChildComponent(vm.$children[i]);
2893
  }
2894
- callHook(vm, 'activated');
 
2895
  }
2896
- }
2897
 
2898
- function deactivateChildComponent (vm, direct) {
2899
- if (direct) {
2900
- vm._directInactive = true;
2901
- if (isInInactiveTree(vm)) {
2902
- return
 
 
 
 
 
 
 
2903
  }
2904
  }
2905
- if (!vm._inactive) {
2906
- vm._inactive = true;
2907
- for (var i = 0; i < vm.$children.length; i++) {
2908
- deactivateChildComponent(vm.$children[i]);
 
 
 
 
 
 
2909
  }
2910
- callHook(vm, 'deactivated');
 
2911
  }
2912
- }
2913
 
2914
- function callHook (vm, hook) {
2915
- // #7573 disable dep collection when invoking lifecycle hooks
2916
- pushTarget();
2917
- var handlers = vm.$options[hook];
2918
- if (handlers) {
2919
- for (var i = 0, j = handlers.length; i < j; i++) {
2920
- try {
2921
- handlers[i].call(vm);
2922
- } catch (e) {
2923
- handleError(e, vm, (hook + " hook"));
 
 
 
 
 
 
 
 
 
 
2924
  }
2925
- }
2926
- }
2927
- if (vm._hasHookEvent) {
2928
- vm.$emit('hook:' + hook);
2929
- }
2930
- popTarget();
2931
- }
 
 
 
 
 
2932
 
2933
- /* */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2934
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2935
 
2936
- var MAX_UPDATE_COUNT = 100;
 
 
 
 
2937
 
2938
- var queue = [];
2939
- var activatedChildren = [];
2940
- var has = {};
2941
- var circular = {};
2942
- var waiting = false;
2943
- var flushing = false;
2944
- var index = 0;
2945
 
2946
- /**
2947
- * Reset the scheduler's state.
2948
- */
2949
- function resetSchedulerState () {
2950
- index = queue.length = activatedChildren.length = 0;
2951
- has = {};
2952
- {
2953
- circular = {};
2954
- }
2955
- waiting = flushing = false;
2956
- }
2957
 
2958
- /**
2959
- * Flush both queues and run the watchers.
2960
- */
2961
- function flushSchedulerQueue () {
2962
- flushing = true;
2963
- var watcher, id;
2964
-
2965
- // Sort queue before flush.
2966
- // This ensures that:
2967
- // 1. Components are updated from parent to child. (because parent is always
2968
- // created before the child)
2969
- // 2. A component's user watchers are run before its render watcher (because
2970
- // user watchers are created before the render watcher)
2971
- // 3. If a component is destroyed during a parent component's watcher run,
2972
- // its watchers can be skipped.
2973
- queue.sort(function (a, b) { return a.id - b.id; });
2974
-
2975
- // do not cache length because more watchers might be pushed
2976
- // as we run existing watchers
2977
- for (index = 0; index < queue.length; index++) {
2978
- watcher = queue[index];
2979
- id = watcher.id;
2980
- has[id] = null;
2981
- watcher.run();
2982
- // in dev build, check and stop circular updates.
2983
- if ("development" !== 'production' && has[id] != null) {
2984
- circular[id] = (circular[id] || 0) + 1;
2985
- if (circular[id] > MAX_UPDATE_COUNT) {
2986
  warn(
2987
- 'You may have an infinite update loop ' + (
2988
- watcher.user
2989
- ? ("in watcher with expression \"" + (watcher.expression) + "\"")
2990
- : "in a component render function."
2991
- ),
2992
- watcher.vm
2993
  );
2994
- break
2995
- }
2996
  }
2997
- }
 
 
 
 
 
 
 
 
 
 
2998
 
2999
- // keep copies of post queues before resetting state
3000
- var activatedQueue = activatedChildren.slice();
3001
- var updatedQueue = queue.slice();
3002
 
3003
- resetSchedulerState();
 
 
 
 
3004
 
3005
- // call component updated and activated hooks
3006
- callActivatedHooks(activatedQueue);
3007
- callUpdatedHooks(updatedQueue);
 
3008
 
3009
- // devtool hook
3010
- /* istanbul ignore if */
3011
- if (devtools && config.devtools) {
3012
- devtools.emit('flush');
3013
- }
3014
- }
3015
 
3016
- function callUpdatedHooks (queue) {
3017
- var i = queue.length;
3018
- while (i--) {
3019
- var watcher = queue[i];
3020
- var vm = watcher.vm;
3021
- if (vm._watcher === watcher && vm._isMounted) {
3022
- callHook(vm, 'updated');
3023
- }
3024
- }
3025
- }
3026
 
3027
- /**
3028
- * Queue a kept-alive component that was activated during patch.
3029
- * The queue will be processed after the entire tree has been patched.
3030
- */
3031
- function queueActivatedComponent (vm) {
3032
- // setting _inactive to false here so that a render function can
3033
- // rely on checking whether it's in an inactive tree (e.g. router-view)
3034
- vm._inactive = false;
3035
- activatedChildren.push(vm);
3036
- }
3037
-
3038
- function callActivatedHooks (queue) {
3039
- for (var i = 0; i < queue.length; i++) {
3040
- queue[i]._inactive = true;
3041
- activateChildComponent(queue[i], true /* true */);
3042
- }
3043
- }
3044
-
3045
- /**
3046
- * Push a watcher into the watcher queue.
3047
- * Jobs with duplicate IDs will be skipped unless it's
3048
- * pushed when the queue is being flushed.
3049
- */
3050
- function queueWatcher (watcher) {
3051
- var id = watcher.id;
3052
- if (has[id] == null) {
3053
- has[id] = true;
3054
- if (!flushing) {
3055
- queue.push(watcher);
3056
- } else {
3057
- // if already flushing, splice the watcher based on its id
3058
- // if already past its id, it will be run next immediately.
3059
- var i = queue.length - 1;
3060
- while (i > index && queue[i].id > watcher.id) {
3061
- i--;
3062
- }
3063
- queue.splice(i + 1, 0, watcher);
3064
- }
3065
- // queue the flush
3066
- if (!waiting) {
3067
- waiting = true;
3068
- nextTick(flushSchedulerQueue);
3069
- }
3070
  }
3071
- }
3072
 
3073
- /* */
3074
 
3075
- var uid$1 = 0;
3076
-
3077
- /**
3078
- * A watcher parses an expression, collects dependencies,
3079
- * and fires callback when the expression value changes.
3080
- * This is used for both the $watch() api and directives.
3081
- */
3082
- var Watcher = function Watcher (
3083
- vm,
3084
- expOrFn,
3085
- cb,
3086
- options,
3087
- isRenderWatcher
3088
- ) {
3089
- this.vm = vm;
3090
- if (isRenderWatcher) {
3091
- vm._watcher = this;
3092
- }
3093
- vm._watchers.push(this);
3094
- // options
3095
- if (options) {
3096
- this.deep = !!options.deep;
3097
- this.user = !!options.user;
3098
- this.lazy = !!options.lazy;
3099
- this.sync = !!options.sync;
3100
- } else {
3101
- this.deep = this.user = this.lazy = this.sync = false;
3102
- }
3103
- this.cb = cb;
3104
- this.id = ++uid$1; // uid for batching
3105
- this.active = true;
3106
- this.dirty = this.lazy; // for lazy watchers
3107
- this.deps = [];
3108
- this.newDeps = [];
3109
- this.depIds = new _Set();
3110
- this.newDepIds = new _Set();
3111
- this.expression = expOrFn.toString();
3112
- // parse expression for getter
3113
- if (typeof expOrFn === 'function') {
3114
- this.getter = expOrFn;
3115
- } else {
3116
- this.getter = parsePath(expOrFn);
3117
- if (!this.getter) {
3118
- this.getter = function () {};
3119
- "development" !== 'production' && warn(
3120
- "Failed watching path: \"" + expOrFn + "\" " +
3121
- 'Watcher only accepts simple dot-delimited paths. ' +
3122
- 'For full control, use a function instead.',
3123
- vm
3124
- );
3125
- }
3126
- }
3127
- this.value = this.lazy
3128
- ? undefined
3129
- : this.get();
3130
- };
3131
 
3132
- /**
3133
- * Evaluate the getter, and re-collect dependencies.
3134
- */
3135
- Watcher.prototype.get = function get () {
3136
- pushTarget(this);
3137
- var value;
3138
- var vm = this.vm;
3139
- try {
3140
- value = this.getter.call(vm, vm);
3141
- } catch (e) {
3142
- if (this.user) {
3143
- handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
3144
- } else {
3145
- throw e
3146
- }
3147
- } finally {
3148
- // "touch" every property so they are all tracked as
3149
- // dependencies for deep watching
3150
- if (this.deep) {
3151
- traverse(value);
3152
  }
3153
- popTarget();
3154
- this.cleanupDeps();
3155
- }
3156
- return value
3157
- };
3158
 
3159
- /**
3160
- * Add a dependency to this directive.
3161
- */
3162
- Watcher.prototype.addDep = function addDep (dep) {
3163
- var id = dep.id;
3164
- if (!this.newDepIds.has(id)) {
3165
- this.newDepIds.add(id);
3166
- this.newDeps.push(dep);
3167
- if (!this.depIds.has(id)) {
3168
- dep.addSub(this);
3169
- }
3170
- }
3171
- };
3172
 
3173
- /**
3174
- * Clean up for dependency collection.
3175
- */
3176
- Watcher.prototype.cleanupDeps = function cleanupDeps () {
3177
- var this$1 = this;
3178
 
3179
- var i = this.deps.length;
3180
- while (i--) {
3181
- var dep = this$1.deps[i];
3182
- if (!this$1.newDepIds.has(dep.id)) {
3183
- dep.removeSub(this$1);
3184
- }
3185
- }
3186
- var tmp = this.depIds;
3187
- this.depIds = this.newDepIds;
3188
- this.newDepIds = tmp;
3189
- this.newDepIds.clear();
3190
- tmp = this.deps;
3191
- this.deps = this.newDeps;
3192
- this.newDeps = tmp;
3193
- this.newDeps.length = 0;
3194
- };
3195
-
3196
- /**
3197
- * Subscriber interface.
3198
- * Will be called when a dependency changes.
3199
- */
3200
- Watcher.prototype.update = function update () {
3201
- /* istanbul ignore else */
3202
- if (this.lazy) {
3203
- this.dirty = true;
3204
- } else if (this.sync) {
3205
- this.run();
3206
- } else {
3207
- queueWatcher(this);
3208
- }
3209
- };
3210
 
3211
- /**
3212
- * Scheduler job interface.
3213
- * Will be called by the scheduler.
3214
- */
3215
- Watcher.prototype.run = function run () {
3216
- if (this.active) {
3217
- var value = this.get();
3218
- if (
3219
- value !== this.value ||
3220
- // Deep watchers and watchers on Object/Arrays should fire even
3221
- // when the value is the same, because the value may
3222
- // have mutated.
3223
- isObject(value) ||
3224
- this.deep
3225
- ) {
3226
- // set new value
3227
- var oldValue = this.value;
3228
- this.value = value;
3229
- if (this.user) {
3230
- try {
3231
- this.cb.call(this.vm, value, oldValue);
3232
- } catch (e) {
3233
- handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
3234
- }
3235
- } else {
3236
- this.cb.call(this.vm, value, oldValue);
3237
- }
3238
- }
3239
- }
3240
- };
3241
 
3242
- /**
3243
- * Evaluate the value of the watcher.
3244
- * This only gets called for lazy watchers.
3245
- */
3246
- Watcher.prototype.evaluate = function evaluate () {
3247
- this.value = this.get();
3248
- this.dirty = false;
3249
- };
 
 
3250
 
3251
- /**
3252
- * Depend on all deps collected by this watcher.
3253
- */
3254
- Watcher.prototype.depend = function depend () {
3255
- var this$1 = this;
3256
 
3257
- var i = this.deps.length;
3258
- while (i--) {
3259
- this$1.deps[i].depend();
3260
- }
3261
- };
3262
 
3263
- /**
3264
- * Remove self from all dependencies' subscriber list.
3265
- */
3266
- Watcher.prototype.teardown = function teardown () {
3267
- var this$1 = this;
 
 
 
3268
 
3269
- if (this.active) {
3270
- // remove self from vm's watcher list
3271
- // this is a somewhat expensive operation so we skip it
3272
- // if the vm is being destroyed.
3273
- if (!this.vm._isBeingDestroyed) {
3274
- remove(this.vm._watchers, this);
3275
- }
3276
- var i = this.deps.length;
3277
- while (i--) {
3278
- this$1.deps[i].removeSub(this$1);
3279
- }
3280
- this.active = false;
3281
- }
3282
- };
3283
 
3284
- /* */
3285
 
3286
- var sharedPropertyDefinition = {
3287
- enumerable: true,
3288
- configurable: true,
3289
- get: noop,
3290
- set: noop
3291
- };
3292
 
3293
- function proxy (target, sourceKey, key) {
3294
- sharedPropertyDefinition.get = function proxyGetter () {
3295
- return this[sourceKey][key]
3296
  };
3297
- sharedPropertyDefinition.set = function proxySetter (val) {
3298
- this[sourceKey][key] = val;
 
3299
  };
3300
- Object.defineProperty(target, key, sharedPropertyDefinition);
3301
- }
3302
-
3303
- function initState (vm) {
3304
- vm._watchers = [];
3305
- var opts = vm.$options;
3306
- if (opts.props) { initProps(vm, opts.props); }
3307
- if (opts.methods) { initMethods(vm, opts.methods); }
3308
- if (opts.data) {
3309
- initData(vm);
3310
- } else {
3311
- observe(vm._data = {}, true /* asRootData */);
3312
- }
3313
- if (opts.computed) { initComputed(vm, opts.computed); }
3314
- if (opts.watch && opts.watch !== nativeWatch) {
3315
- initWatch(vm, opts.watch);
3316
- }
3317
- }
3318
-
3319
- function initProps (vm, propsOptions) {
3320
- var propsData = vm.$options.propsData || {};
3321
- var props = vm._props = {};
3322
- // cache prop keys so that future props updates can iterate using Array
3323
- // instead of dynamic object key enumeration.
3324
- var keys = vm.$options._propKeys = [];
3325
- var isRoot = !vm.$parent;
3326
- // root instance props should be converted
3327
- if (!isRoot) {
3328
- toggleObserving(false);
3329
- }
3330
- var loop = function ( key ) {
3331
- keys.push(key);
3332
- var value = validateProp(key, propsOptions, propsData, vm);
3333
- /* istanbul ignore else */
3334
- {
3335
- var hyphenatedKey = hyphenate(key);
3336
- if (isReservedAttribute(hyphenatedKey) ||
3337
- config.isReservedAttr(hyphenatedKey)) {
3338
- warn(
3339
- ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
3340
- vm
3341
- );
3342
  }
3343
- defineReactive(props, key, value, function () {
3344
- if (vm.$parent && !isUpdatingChildComponent) {
3345
- warn(
3346
- "Avoid mutating a prop directly since the value will be " +
3347
- "overwritten whenever the parent component re-renders. " +
3348
- "Instead, use a data or computed property based on the prop's " +
3349
- "value. Prop being mutated: \"" + key + "\"",
3350
- vm
3351
- );
3352
- }
3353
- });
3354
- }
3355
- // static props are already proxied on the component's prototype
3356
- // during Vue.extend(). We only need to proxy props defined at
3357
- // instantiation here.
3358
- if (!(key in vm)) {
3359
- proxy(vm, "_props", key);
3360
  }
3361
- };
3362
-
3363
- for (var key in propsOptions) loop( key );
3364
- toggleObserving(true);
3365
- }
3366
-
3367
- function initData (vm) {
3368
- var data = vm.$options.data;
3369
- data = vm._data = typeof data === 'function'
3370
- ? getData(data, vm)
3371
- : data || {};
3372
- if (!isPlainObject(data)) {
3373
- data = {};
3374
- "development" !== 'production' && warn(
3375
- 'data functions should return an object:\n' +
3376
- 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
3377
- vm
3378
- );
3379
- }
3380
- // proxy data on instance
3381
- var keys = Object.keys(data);
3382
- var props = vm.$options.props;
3383
- var methods = vm.$options.methods;
3384
- var i = keys.length;
3385
- while (i--) {
3386
- var key = keys[i];
3387
- {
3388
- if (methods && hasOwn(methods, key)) {
3389
- warn(
3390
- ("Method \"" + key + "\" has already been defined as a data property."),
3391
- vm
3392
- );
3393
  }
3394
  }
3395
- if (props && hasOwn(props, key)) {
3396
- "development" !== 'production' && warn(
3397
- "The data property \"" + key + "\" is already declared as a prop. " +
3398
- "Use prop default value instead.",
3399
- vm
3400
- );
3401
- } else if (!isReserved(key)) {
3402
- proxy(vm, "_data", key);
3403
- }
3404
- }
3405
- // observe data
3406
- observe(data, true /* asRootData */);
3407
- }
3408
-
3409
- function getData (data, vm) {
3410
- // #7573 disable dep collection when invoking data getters
3411
- pushTarget();
3412
- try {
3413
- return data.call(vm, vm)
3414
- } catch (e) {
3415
- handleError(e, vm, "data()");
3416
- return {}
3417
- } finally {
3418
- popTarget();
3419
  }
3420
- }
3421
-
3422
- var computedWatcherOptions = { lazy: true };
3423
-
3424
- function initComputed (vm, computed) {
3425
- // $flow-disable-line
3426
- var watchers = vm._computedWatchers = Object.create(null);
3427
- // computed properties are just getters during SSR
3428
- var isSSR = isServerRendering();
3429
 
3430
- for (var key in computed) {
3431
- var userDef = computed[key];
3432
- var getter = typeof userDef === 'function' ? userDef : userDef.get;
3433
- if ("development" !== 'production' && getter == null) {
3434
- warn(
3435
- ("Getter is missing for computed property \"" + key + "\"."),
3436
- vm
3437
- );
3438
  }
 
3439
 
3440
- if (!isSSR) {
3441
- // create internal watcher for the computed property.
3442
- watchers[key] = new Watcher(
3443
- vm,
3444
- getter || noop,
3445
- noop,
3446
- computedWatcherOptions
3447
- );
3448
  }
 
 
 
3449
 
3450
- // component-defined computed properties are already defined on the
3451
- // component prototype. We only need to define computed properties defined
3452
- // at instantiation here.
3453
- if (!(key in vm)) {
3454
- defineComputed(vm, key, userDef);
3455
- } else {
3456
- if (key in vm.$data) {
3457
- warn(("The computed property \"" + key + "\" is already defined in data."), vm);
3458
- } else if (vm.$options.props && key in vm.$options.props) {
3459
- warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
3460
- }
3461
- }
3462
- }
3463
- }
3464
-
3465
- function defineComputed (
3466
- target,
3467
- key,
3468
- userDef
3469
- ) {
3470
- var shouldCache = !isServerRendering();
3471
- if (typeof userDef === 'function') {
3472
- sharedPropertyDefinition.get = shouldCache
3473
- ? createComputedGetter(key)
3474
- : userDef;
3475
- sharedPropertyDefinition.set = noop;
3476
- } else {
3477
- sharedPropertyDefinition.get = userDef.get
3478
- ? shouldCache && userDef.cache !== false
3479
- ? createComputedGetter(key)
3480
- : userDef.get
3481
- : noop;
3482
- sharedPropertyDefinition.set = userDef.set
3483
- ? userDef.set
3484
- : noop;
3485
- }
3486
- if ("development" !== 'production' &&
3487
- sharedPropertyDefinition.set === noop) {
3488
- sharedPropertyDefinition.set = function () {
3489
- warn(
3490
- ("Computed property \"" + key + "\" was assigned to but it has no setter."),
3491
- this
3492
- );
3493
- };
3494
  }
3495
- Object.defineProperty(target, key, sharedPropertyDefinition);
3496
- }
3497
 
3498
- function createComputedGetter (key) {
3499
- return function computedGetter () {
3500
- var watcher = this._computedWatchers && this._computedWatchers[key];
3501
- if (watcher) {
3502
- if (watcher.dirty) {
3503
- watcher.evaluate();
3504
- }
3505
- if (Dep.target) {
3506
- watcher.depend();
3507
- }
3508
- return watcher.value
3509
  }
 
 
3510
  }
3511
- }
3512
 
3513
- function initMethods (vm, methods) {
3514
- var props = vm.$options.props;
3515
- for (var key in methods) {
3516
- {
3517
- if (methods[key] == null) {
3518
- warn(
3519
- "Method \"" + key + "\" has an undefined value in the component definition. " +
3520
- "Did you reference the function correctly?",
3521
- vm
3522
- );
3523
- }
3524
- if (props && hasOwn(props, key)) {
3525
- warn(
3526
- ("Method \"" + key + "\" has already been defined as a prop."),
3527
- vm
3528
- );
3529
- }
3530
- if ((key in vm) && isReserved(key)) {
3531
- warn(
3532
- "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
3533
- "Avoid defining component methods that start with _ or $."
3534
- );
3535
  }
3536
  }
3537
- vm[key] = methods[key] == null ? noop : bind(methods[key], vm);
3538
  }
3539
- }
3540
 
3541
- function initWatch (vm, watch) {
3542
- for (var key in watch) {
3543
- var handler = watch[key];
3544
- if (Array.isArray(handler)) {
3545
- for (var i = 0; i < handler.length; i++) {
3546
- createWatcher(vm, key, handler[i]);
3547
  }
3548
- } else {
3549
- createWatcher(vm, key, handler);
3550
- }
3551
- }
3552
- }
3553
-
3554
- function createWatcher (
3555
- vm,
3556
- expOrFn,
3557
- handler,
3558
- options
3559
- ) {
3560
- if (isPlainObject(handler)) {
3561
- options = handler;
3562
- handler = handler.handler;
3563
- }
3564
- if (typeof handler === 'string') {
3565
- handler = vm[handler];
3566
- }
3567
- return vm.$watch(expOrFn, handler, options)
3568
- }
3569
-
3570
- function stateMixin (Vue) {
3571
- // flow somehow has problems with directly declared definition object
3572
- // when using Object.defineProperty, so we have to procedurally build up
3573
- // the object here.
3574
- var dataDef = {};
3575
- dataDef.get = function () { return this._data };
3576
- var propsDef = {};
3577
- propsDef.get = function () { return this._props };
3578
- {
3579
- dataDef.set = function (newData) {
3580
- warn(
3581
- 'Avoid replacing instance root $data. ' +
3582
- 'Use nested data properties instead.',
3583
- this
3584
- );
3585
- };
3586
- propsDef.set = function () {
3587
- warn("$props is readonly.", this);
3588
- };
3589
  }
3590
- Object.defineProperty(Vue.prototype, '$data', dataDef);
3591
- Object.defineProperty(Vue.prototype, '$props', propsDef);
3592
 
3593
- Vue.prototype.$set = set;
3594
- Vue.prototype.$delete = del;
3595
 
3596
- Vue.prototype.$watch = function (
3597
- expOrFn,
3598
- cb,
3599
- options
3600
- ) {
3601
- var vm = this;
3602
- if (isPlainObject(cb)) {
3603
- return createWatcher(vm, expOrFn, cb, options)
3604
- }
3605
- options = options || {};
3606
- options.user = true;
3607
- var watcher = new Watcher(vm, expOrFn, cb, options);
3608
- if (options.immediate) {
3609
- cb.call(vm, watcher.value);
3610
- }
3611
- return function unwatchFn () {
3612
- watcher.teardown();
3613
- }
3614
  };
3615
- }
3616
 
3617
- /* */
 
 
 
 
 
 
 
 
 
 
 
 
3618
 
3619
- function initProvide (vm) {
3620
- var provide = vm.$options.provide;
3621
- if (provide) {
3622
- vm._provided = typeof provide === 'function'
3623
- ? provide.call(vm)
3624
- : provide;
3625
- }
3626
- }
3627
 
3628
- function initInjections (vm) {
3629
- var result = resolveInject(vm.$options.inject, vm);
3630
- if (result) {
3631
- toggleObserving(false);
3632
- Object.keys(result).forEach(function (key) {
3633
- /* istanbul ignore else */
3634
- {
3635
- defineReactive(vm, key, result[key], function () {
3636
- warn(
3637
- "Avoid mutating an injected value directly since the changes will be " +
3638
- "overwritten whenever the provided component re-renders. " +
3639
- "injection being mutated: \"" + key + "\"",
3640
- vm
3641
- );
3642
- });
3643
- }
3644
- });
3645
- toggleObserving(true);
3646
- }
3647
- }
3648
 
3649
- function resolveInject (inject, vm) {
3650
- if (inject) {
3651
- // inject is :any because flow is not smart enough to figure out cached
3652
- var result = Object.create(null);
3653
- var keys = hasSymbol
3654
- ? Reflect.ownKeys(inject).filter(function (key) {
3655
- /* istanbul ignore next */
3656
- return Object.getOwnPropertyDescriptor(inject, key).enumerable
3657
- })
3658
- : Object.keys(inject);
3659
 
3660
- for (var i = 0; i < keys.length; i++) {
3661
- var key = keys[i];
3662
- var provideKey = inject[key].from;
3663
- var source = vm;
3664
- while (source) {
3665
- if (source._provided && hasOwn(source._provided, provideKey)) {
3666
- result[key] = source._provided[provideKey];
3667
- break
3668
- }
3669
- source = source.$parent;
3670
- }
3671
- if (!source) {
3672
- if ('default' in inject[key]) {
3673
- var provideDefault = inject[key].default;
3674
- result[key] = typeof provideDefault === 'function'
3675
- ? provideDefault.call(vm)
3676
- : provideDefault;
3677
- } else {
3678
- warn(("Injection \"" + key + "\" not found"), vm);
3679
- }
3680
- }
3681
  }
3682
- return result
3683
  }
3684
- }
3685
-
3686
- /* */
3687
 
3688
- /**
3689
- * Runtime helper for rendering v-for lists.
3690
- */
3691
- function renderList (
3692
- val,
3693
- render
3694
- ) {
3695
- var ret, i, l, keys, key;
3696
- if (Array.isArray(val) || typeof val === 'string') {
3697
- ret = new Array(val.length);
3698
- for (i = 0, l = val.length; i < l; i++) {
3699
- ret[i] = render(val[i], i);
3700
- }
3701
- } else if (typeof val === 'number') {
3702
- ret = new Array(val);
3703
- for (i = 0; i < val; i++) {
3704
- ret[i] = render(i + 1, i);
3705
- }
3706
- } else if (isObject(val)) {
3707
- keys = Object.keys(val);
3708
- ret = new Array(keys.length);
3709
- for (i = 0, l = keys.length; i < l; i++) {
3710
- key = keys[i];
3711
- ret[i] = render(val[key], key, i);
3712
  }
3713
  }
3714
- if (isDef(ret)) {
3715
- (ret)._isVList = true;
3716
- }
3717
- return ret
3718
- }
3719
 
3720
- /* */
3721
 
3722
- /**
3723
- * Runtime helper for rendering <slot>
3724
- */
3725
- function renderSlot (
3726
- name,
3727
- fallback,
3728
- props,
3729
- bindObject
3730
- ) {
3731
- var scopedSlotFn = this.$scopedSlots[name];
3732
- var nodes;
3733
- if (scopedSlotFn) { // scoped slot
3734
- props = props || {};
3735
- if (bindObject) {
3736
- if ("development" !== 'production' && !isObject(bindObject)) {
3737
  warn(
3738
- 'slot v-bind without argument expects an Object',
3739
- this
3740
  );
 
3741
  }
3742
- props = extend(extend({}, bindObject), props);
 
 
3743
  }
3744
- nodes = scopedSlotFn(props) || fallback;
3745
- } else {
3746
- var slotNodes = this.$slots[name];
3747
- // warn duplicate slot usage
3748
- if (slotNodes) {
3749
- if ("development" !== 'production' && slotNodes._rendered) {
3750
- warn(
3751
- "Duplicate presence of slot \"" + name + "\" found in the same render tree " +
3752
- "- this will likely cause render errors.",
3753
- this
3754
- );
3755
- }
3756
- slotNodes._rendered = true;
3757
  }
3758
- nodes = slotNodes || fallback;
3759
  }
3760
 
3761
- var target = props && props.slot;
3762
- if (target) {
3763
- return this.$createElement('template', { slot: target }, nodes)
3764
- } else {
3765
- return nodes
3766
  }
3767
- }
3768
 
3769
- /* */
 
 
3770
 
3771
- /**
3772
- * Runtime helper for resolving filters
3773
- */
3774
- function resolveFilter (id) {
3775
- return resolveAsset(this.$options, 'filters', id, true) || identity
3776
- }
3777
 
3778
- /* */
 
 
3779
 
3780
- function isKeyNotMatch (expect, actual) {
3781
- if (Array.isArray(expect)) {
3782
- return expect.indexOf(actual) === -1
3783
- } else {
3784
- return expect !== actual
3785
  }
3786
- }
3787
 
3788
- /**
3789
- * Runtime helper for checking keyCodes from config.
3790
- * exposed as Vue.prototype._k
3791
- * passing in eventKeyName as last argument separately for backwards compat
3792
- */
3793
- function checkKeyCodes (
3794
- eventKeyCode,
3795
- key,
3796
- builtInKeyCode,
3797
- eventKeyName,
3798
- builtInKeyName
3799
- ) {
3800
- var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
3801
- if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
3802
- return isKeyNotMatch(builtInKeyName, eventKeyName)
3803
- } else if (mappedKeyCode) {
3804
- return isKeyNotMatch(mappedKeyCode, eventKeyCode)
3805
- } else if (eventKeyName) {
3806
- return hyphenate(eventKeyName) !== key
3807
- }
3808
- }
3809
-
3810
- /* */
3811
-
3812
- /**
3813
- * Runtime helper for merging v-bind="object" into a VNode's data.
3814
- */
3815
- function bindObjectProps (
3816
- data,
3817
- tag,
3818
- value,
3819
- asProp,
3820
- isSync
3821
- ) {
3822
- if (value) {
3823
- if (!isObject(value)) {
3824
- "development" !== 'production' && warn(
3825
- 'v-bind without argument expects an Object or Array value',
3826
- this
3827
- );
3828
- } else {
3829
- if (Array.isArray(value)) {
3830
- value = toObject(value);
3831
- }
3832
- var hash;
3833
- var loop = function ( key ) {
3834
- if (
3835
- key === 'class' ||
3836
- key === 'style' ||
3837
- isReservedAttribute(key)
3838
- ) {
3839
- hash = data;
3840
- } else {
3841
- var type = data.attrs && data.attrs.type;
3842
- hash = asProp || config.mustUseProp(tag, type, key)
3843
- ? data.domProps || (data.domProps = {})
3844
- : data.attrs || (data.attrs = {});
3845
- }
3846
- if (!(key in hash)) {
3847
- hash[key] = value[key];
3848
-
3849
- if (isSync) {
3850
- var on = data.on || (data.on = {});
3851
- on[("update:" + key)] = function ($event) {
3852
- value[key] = $event;
3853
- };
3854
- }
3855
- }
3856
- };
3857
 
3858
- for (var key in value) loop( key );
3859
- }
3860
  }
3861
- return data
3862
- }
3863
 
3864
- /* */
 
 
3865
 
3866
- /**
3867
- * Runtime helper for rendering static trees.
3868
- */
3869
- function renderStatic (
3870
- index,
3871
- isInFor
3872
- ) {
3873
- var cached = this._staticTrees || (this._staticTrees = []);
3874
- var tree = cached[index];
3875
- // if has already-rendered static tree and not inside v-for,
3876
- // we can reuse the same tree.
3877
- if (tree && !isInFor) {
3878
- return tree
3879
  }
3880
- // otherwise, render a fresh tree.
3881
- tree = cached[index] = this.$options.staticRenderFns[index].call(
3882
- this._renderProxy,
3883
- null,
3884
- this // for render fns generated for functional component templates
3885
- );
3886
- markStatic(tree, ("__static__" + index), false);
3887
- return tree
3888
- }
3889
 
3890
- /**
3891
- * Runtime helper for v-once.
3892
- * Effectively it means marking the node as static with a unique key.
3893
- */
3894
- function markOnce (
3895
- tree,
3896
- index,
3897
- key
3898
- ) {
3899
- markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
3900
- return tree
3901
- }
3902
-
3903
- function markStatic (
3904
- tree,
3905
- key,
3906
- isOnce
3907
- ) {
3908
- if (Array.isArray(tree)) {
3909
- for (var i = 0; i < tree.length; i++) {
3910
- if (tree[i] && typeof tree[i] !== 'string') {
3911
- markStaticNode(tree[i], (key + "_" + i), isOnce);
 
 
 
 
 
 
 
 
 
 
 
3912
  }
 
 
 
3913
  }
3914
- } else {
3915
- markStaticNode(tree, key, isOnce);
3916
- }
3917
- }
3918
-
3919
- function markStaticNode (node, key, isOnce) {
3920
- node.isStatic = true;
3921
- node.key = key;
3922
- node.isOnce = isOnce;
3923
- }
3924
 
3925
- /* */
 
 
3926
 
3927
- function bindObjectListeners (data, value) {
3928
- if (value) {
3929
- if (!isPlainObject(value)) {
3930
- "development" !== 'production' && warn(
3931
- 'v-on without argument expects an Object value',
3932
- this
3933
- );
 
 
3934
  } else {
3935
- var on = data.on = data.on ? extend({}, data.on) : {};
3936
- for (var key in value) {
3937
- var existing = on[key];
3938
- var ours = value[key];
3939
- on[key] = existing ? [].concat(existing, ours) : ours;
3940
- }
3941
- }
3942
- }
3943
- return data
3944
- }
3945
-
3946
- /* */
3947
-
3948
- function installRenderHelpers (target) {
3949
- target._o = markOnce;
3950
- target._n = toNumber;
3951
- target._s = toString;
3952
- target._l = renderList;
3953
- target._t = renderSlot;
3954
- target._q = looseEqual;
3955
- target._i = looseIndexOf;
3956
- target._m = renderStatic;
3957
- target._f = resolveFilter;
3958
- target._k = checkKeyCodes;
3959
- target._b = bindObjectProps;
3960
- target._v = createTextVNode;
3961
- target._e = createEmptyVNode;
3962
- target._u = resolveScopedSlots;
3963
- target._g = bindObjectListeners;
3964
- }
3965
-
3966
- /* */
3967
-
3968
- function FunctionalRenderContext (
3969
- data,
3970
- props,
3971
- children,
3972
- parent,
3973
- Ctor
3974
- ) {
3975
- var options = Ctor.options;
3976
- // ensure the createElement function in functional components
3977
- // gets a unique context - this is necessary for correct named slot check
3978
- var contextVm;
3979
- if (hasOwn(parent, '_uid')) {
3980
- contextVm = Object.create(parent);
3981
- // $flow-disable-line
3982
- contextVm._original = parent;
3983
- } else {
3984
- // the context vm passed in is a functional context as well.
3985
- // in this case we want to make sure we are able to get a hold to the
3986
- // real context instance.
3987
- contextVm = parent;
3988
- // $flow-disable-line
3989
- parent = parent._original;
3990
- }
3991
- var isCompiled = isTrue(options._compiled);
3992
- var needNormalization = !isCompiled;
3993
-
3994
- this.data = data;
3995
- this.props = props;
3996
- this.children = children;
3997
- this.parent = parent;
3998
- this.listeners = data.on || emptyObject;
3999
- this.injections = resolveInject(options.inject, parent);
4000
- this.slots = function () { return resolveSlots(children, parent); };
4001
-
4002
- // support for compiled functional template
4003
- if (isCompiled) {
4004
- // exposing $options for renderStatic()
4005
- this.$options = options;
4006
- // pre-resolve slots for renderSlot()
4007
- this.$slots = this.slots();
4008
- this.$scopedSlots = data.scopedSlots || emptyObject;
4009
- }
4010
-
4011
- if (options._scopeId) {
4012
- this._c = function (a, b, c, d) {
4013
- var vnode = createElement(contextVm, a, b, c, d, needNormalization);
4014
- if (vnode && !Array.isArray(vnode)) {
4015
- vnode.fnScopeId = options._scopeId;
4016
- vnode.fnContext = parent;
4017
  }
4018
- return vnode
4019
- };
4020
- } else {
4021
- this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
4022
- }
4023
- }
4024
-
4025
- installRenderHelpers(FunctionalRenderContext.prototype);
4026
-
4027
- function createFunctionalComponent (
4028
- Ctor,
4029
- propsData,
4030
- data,
4031
- contextVm,
4032
- children
4033
- ) {
4034
- var options = Ctor.options;
4035
- var props = {};
4036
- var propOptions = options.props;
4037
- if (isDef(propOptions)) {
4038
- for (var key in propOptions) {
4039
- props[key] = validateProp(key, propOptions, propsData || emptyObject);
4040
  }
4041
- } else {
4042
- if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
4043
- if (isDef(data.props)) { mergeProps(props, data.props); }
4044
  }
4045
 
4046
- var renderContext = new FunctionalRenderContext(
4047
- data,
4048
- props,
4049
- children,
4050
- contextVm,
4051
- Ctor
4052
- );
 
 
 
 
4053
 
4054
- var vnode = options.render.call(null, renderContext._c, renderContext);
4055
 
4056
- if (vnode instanceof VNode) {
4057
- return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options)
4058
- } else if (Array.isArray(vnode)) {
4059
- var vnodes = normalizeChildren(vnode) || [];
4060
- var res = new Array(vnodes.length);
4061
- for (var i = 0; i < vnodes.length; i++) {
4062
- res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options);
4063
- }
4064
- return res
 
 
 
 
 
 
 
 
4065
  }
4066
- }
4067
 
4068
- function cloneAndMarkFunctionalResult (vnode, data, contextVm, options) {
4069
- // #7817 clone node before setting fnContext, otherwise if the node is reused
4070
- // (e.g. it was from a cached normal slot) the fnContext causes named slots
4071
- // that should not be matched to match.
4072
- var clone = cloneVNode(vnode);
4073
- clone.fnContext = contextVm;
4074
- clone.fnOptions = options;
4075
- if (data.slot) {
4076
- (clone.data || (clone.data = {})).slot = data.slot;
4077
  }
4078
- return clone
4079
- }
4080
 
4081
- function mergeProps (to, from) {
4082
- for (var key in from) {
4083
- to[camelize(key)] = from[key];
 
 
 
 
 
4084
  }
4085
- }
4086
 
4087
- /* */
 
 
4088
 
 
 
4089
 
 
 
 
 
 
 
 
 
4090
 
 
 
 
4091
 
4092
- // Register the component hook to weex native render engine.
4093
- // The hook will be triggered by native, not javascript.
 
 
 
 
 
 
 
4094
 
 
 
 
 
 
 
 
4095
 
4096
- // Updates the state of the component to weex native render engine.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4097
 
4098
- /* */
4099
 
4100
- // https://github.com/Hanks10100/weex-native-directive/tree/master/component
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4101
 
4102
- // listening on native callback
 
 
 
4103
 
4104
- /* */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4105
 
4106
- /* */
 
 
 
4107
 
4108
- // inline hooks to be invoked on component VNodes during patch
4109
- var componentVNodeHooks = {
4110
- init: function init (
4111
- vnode,
4112
- hydrating,
4113
- parentElm,
4114
- refElm
4115
- ) {
4116
- if (
4117
- vnode.componentInstance &&
4118
- !vnode.componentInstance._isDestroyed &&
4119
- vnode.data.keepAlive
4120
- ) {
4121
- // kept-alive components, treat as a patch
4122
- var mountedNode = vnode; // work around flow
4123
- componentVNodeHooks.prepatch(mountedNode, mountedNode);
4124
- } else {
4125
- var child = vnode.componentInstance = createComponentInstanceForVnode(
4126
- vnode,
4127
- activeInstance,
4128
- parentElm,
4129
- refElm
4130
- );
4131
- child.$mount(hydrating ? vnode.elm : undefined, hydrating);
4132
- }
4133
- },
4134
-
4135
- prepatch: function prepatch (oldVnode, vnode) {
4136
- var options = vnode.componentOptions;
4137
- var child = vnode.componentInstance = oldVnode.componentInstance;
4138
- updateChildComponent(
4139
- child,
4140
- options.propsData, // updated props
4141
- options.listeners, // updated listeners
4142
- vnode, // new parent vnode
4143
- options.children // new children
4144
- );
4145
- },
4146
-
4147
- insert: function insert (vnode) {
4148
- var context = vnode.context;
4149
- var componentInstance = vnode.componentInstance;
4150
- if (!componentInstance._isMounted) {
4151
- componentInstance._isMounted = true;
4152
- callHook(componentInstance, 'mounted');
4153
- }
4154
- if (vnode.data.keepAlive) {
4155
- if (context._isMounted) {
4156
- // vue-router#1212
4157
- // During updates, a kept-alive component's child components may
4158
- // change, so directly walking the tree here may call activated hooks
4159
- // on incorrect children. Instead we push them into a queue which will
4160
- // be processed after the whole patch process ended.
4161
- queueActivatedComponent(componentInstance);
4162
  } else {
4163
- activateChildComponent(componentInstance, true /* direct */);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4164
  }
4165
  }
4166
- },
4167
 
4168
- destroy: function destroy (vnode) {
4169
- var componentInstance = vnode.componentInstance;
4170
- if (!componentInstance._isDestroyed) {
4171
- if (!vnode.data.keepAlive) {
4172
- componentInstance.$destroy();
 
 
 
 
4173
  } else {
4174
- deactivateChildComponent(componentInstance, true /* direct */);
 
 
 
 
4175
  }
4176
  }
4177
- }
4178
- };
4179
 
4180
- var hooksToMerge = Object.keys(componentVNodeHooks);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4181
 
4182
- function createComponent (
4183
- Ctor,
4184
- data,
4185
- context,
4186
- children,
4187
- tag
4188
- ) {
4189
- if (isUndef(Ctor)) {
4190
- return
4191
- }
 
4192
 
4193
- var baseCtor = context.$options._base;
 
 
 
 
 
 
 
 
 
 
 
4194
 
4195
- // plain options object: turn it into a constructor
4196
- if (isObject(Ctor)) {
4197
- Ctor = baseCtor.extend(Ctor);
4198
- }
 
 
4199
 
4200
- // if at this stage it's not a constructor or an async component factory,
4201
- // reject.
4202
- if (typeof Ctor !== 'function') {
4203
- {
4204
- warn(("Invalid Component definition: " + (String(Ctor))), context);
4205
- }
4206
- return
4207
- }
4208
-
4209
- // async component
4210
- var asyncFactory;
4211
- if (isUndef(Ctor.cid)) {
4212
- asyncFactory = Ctor;
4213
- Ctor = resolveAsyncComponent(asyncFactory, baseCtor, context);
4214
- if (Ctor === undefined) {
4215
- // return a placeholder node for async component, which is rendered
4216
- // as a comment node but preserves all the raw information for the node.
4217
- // the information will be used for async server-rendering and hydration.
4218
- return createAsyncPlaceholder(
4219
- asyncFactory,
4220
- data,
4221
- context,
4222
- children,
4223
- tag
4224
- )
4225
  }
4226
- }
4227
 
4228
- data = data || {};
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4229
 
4230
- // resolve constructor options in case global mixins are applied after
4231
- // component constructor creation
4232
- resolveConstructorOptions(Ctor);
 
 
4233
 
4234
- // transform component v-model data into props & events
4235
- if (isDef(data.model)) {
4236
- transformModel(Ctor.options, data);
4237
- }
 
 
 
 
 
 
 
 
 
4238
 
4239
- // extract props
4240
- var propsData = extractPropsFromVNodeData(data, Ctor, tag);
 
 
 
 
 
 
 
 
 
 
 
4241
 
4242
- // functional component
4243
- if (isTrue(Ctor.options.functional)) {
4244
- return createFunctionalComponent(Ctor, propsData, data, context, children)
4245
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4246
 
4247
- // extract listeners, since these needs to be treated as
4248
- // child component listeners instead of DOM listeners
4249
- var listeners = data.on;
4250
- // replace with listeners with .native modifier
4251
- // so it gets processed during parent component patch.
4252
- data.on = data.nativeOn;
 
 
 
 
4253
 
4254
- if (isTrue(Ctor.options.abstract)) {
4255
- // abstract components do not keep anything
4256
- // other than props & listeners & slot
 
4257
 
4258
- // work around flow
4259
- var slot = data.slot;
4260
- data = {};
4261
- if (slot) {
4262
- data.slot = slot;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4263
  }
4264
- }
4265
-
4266
- // install component management hooks onto the placeholder node
4267
- installComponentHooks(data);
4268
-
4269
- // return a placeholder vnode
4270
- var name = Ctor.options.name || tag;
4271
- var vnode = new VNode(
4272
- ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
4273
- data, undefined, undefined, undefined, context,
4274
- { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
4275
- asyncFactory
4276
- );
4277
 
4278
- // Weex specific: invoke recycle-list optimized @render function for
4279
- // extracting cell-slot template.
4280
- // https://github.com/Hanks10100/weex-native-directive/tree/master/component
4281
- /* istanbul ignore if */
4282
- return vnode
4283
- }
4284
-
4285
- function createComponentInstanceForVnode (
4286
- vnode, // we know it's MountedComponentVNode but flow doesn't
4287
- parent, // activeInstance in lifecycle state
4288
- parentElm,
4289
- refElm
4290
- ) {
4291
- var options = {
4292
- _isComponent: true,
4293
- parent: parent,
4294
- _parentVnode: vnode,
4295
- _parentElm: parentElm || null,
4296
- _refElm: refElm || null
4297
- };
4298
- // check inline-template render functions
4299
- var inlineTemplate = vnode.data.inlineTemplate;
4300
- if (isDef(inlineTemplate)) {
4301
- options.render = inlineTemplate.render;
4302
- options.staticRenderFns = inlineTemplate.staticRenderFns;
4303
- }
4304
- return new vnode.componentOptions.Ctor(options)
4305
- }
4306
-
4307
- function installComponentHooks (data) {
4308
- var hooks = data.hook || (data.hook = {});
4309
- for (var i = 0; i < hooksToMerge.length; i++) {
4310
- var key = hooksToMerge[i];
4311
- hooks[key] = componentVNodeHooks[key];
4312
- }
4313
- }
4314
-
4315
- // transform component v-model info (value and callback) into
4316
- // prop and event handler respectively.
4317
- function transformModel (options, data) {
4318
- var prop = (options.model && options.model.prop) || 'value';
4319
- var event = (options.model && options.model.event) || 'input';(data.props || (data.props = {}))[prop] = data.model.value;
4320
- var on = data.on || (data.on = {});
4321
- if (isDef(on[event])) {
4322
- on[event] = [data.model.callback].concat(on[event]);
4323
- } else {
4324
- on[event] = data.model.callback;
4325
- }
4326
- }
4327
-
4328
- /* */
4329
-
4330
- var SIMPLE_NORMALIZE = 1;
4331
- var ALWAYS_NORMALIZE = 2;
4332
-
4333
- // wrapper function for providing a more flexible interface
4334
- // without getting yelled at by flow
4335
- function createElement (
4336
- context,
4337
- tag,
4338
- data,
4339
- children,
4340
- normalizationType,
4341
- alwaysNormalize
4342
- ) {
4343
- if (Array.isArray(data) || isPrimitive(data)) {
4344
- normalizationType = children;
4345
- children = data;
4346
- data = undefined;
4347
- }
4348
- if (isTrue(alwaysNormalize)) {
4349
- normalizationType = ALWAYS_NORMALIZE;
4350
- }
4351
- return _createElement(context, tag, data, children, normalizationType)
4352
- }
4353
-
4354
- function _createElement (
4355
- context,
4356
- tag,
4357
- data,
4358
- children,
4359
- normalizationType
4360
- ) {
4361
- if (isDef(data) && isDef((data).__ob__)) {
4362
- "development" !== 'production' && warn(
4363
- "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
4364
- 'Always create fresh vnode data objects in each render!',
4365
- context
4366
- );
4367
- return createEmptyVNode()
4368
- }
4369
- // object syntax in v-bind
4370
- if (isDef(data) && isDef(data.is)) {
4371
- tag = data.is;
4372
- }
4373
- if (!tag) {
4374
- // in case of component :is set to falsy value
4375
- return createEmptyVNode()
4376
- }
4377
- // warn against non-primitive key
4378
- if ("development" !== 'production' &&
4379
- isDef(data) && isDef(data.key) && !isPrimitive(data.key)
4380
- ) {
4381
- {
4382
- warn(
4383
- 'Avoid using non-primitive value as key, ' +
4384
- 'use string/number value instead.',
4385
- context
4386
- );
4387
  }
4388
- }
4389
- // support single function children as default scoped slot
4390
- if (Array.isArray(children) &&
4391
- typeof children[0] === 'function'
4392
- ) {
4393
- data = data || {};
4394
- data.scopedSlots = { default: children[0] };
4395
- children.length = 0;
4396
- }
4397
- if (normalizationType === ALWAYS_NORMALIZE) {
4398
- children = normalizeChildren(children);
4399
- } else if (normalizationType === SIMPLE_NORMALIZE) {
4400
- children = simpleNormalizeChildren(children);
4401
- }
4402
- var vnode, ns;
4403
- if (typeof tag === 'string') {
4404
- var Ctor;
4405
- ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
4406
- if (config.isReservedTag(tag)) {
4407
- // platform built-in elements
4408
- vnode = new VNode(
4409
- config.parsePlatformTagName(tag), data, children,
4410
- undefined, undefined, context
4411
- );
4412
- } else if (isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
4413
- // component
4414
- vnode = createComponent(Ctor, data, context, children, tag);
4415
- } else {
4416
- // unknown or unlisted namespaced elements
4417
- // check at runtime because it may get assigned a namespace when its
4418
- // parent normalizes children
4419
- vnode = new VNode(
4420
- tag, data, children,
4421
- undefined, undefined, context
4422
- );
4423
  }
4424
- } else {
4425
- // direct component options / constructor
4426
- vnode = createComponent(tag, data, context, children);
4427
- }
4428
- if (Array.isArray(vnode)) {
4429
- return vnode
4430
- } else if (isDef(vnode)) {
4431
- if (isDef(ns)) { applyNS(vnode, ns); }
4432
- if (isDef(data)) { registerDeepBindings(data); }
4433
- return vnode
4434
- } else {
4435
- return createEmptyVNode()
4436
- }
4437
- }
4438
-
4439
- function applyNS (vnode, ns, force) {
4440
- vnode.ns = ns;
4441
- if (vnode.tag === 'foreignObject') {
4442
- // use default namespace inside foreignObject
4443
- ns = undefined;
4444
- force = true;
4445
- }
4446
- if (isDef(vnode.children)) {
4447
- for (var i = 0, l = vnode.children.length; i < l; i++) {
4448
- var child = vnode.children[i];
4449
- if (isDef(child.tag) && (
4450
- isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
4451
- applyNS(child, ns, force);
4452
- }
4453
- }
4454
- }
4455
- }
4456
-
4457
- // ref #5318
4458
- // necessary to ensure parent re-render when deep bindings like :style and
4459
- // :class are used on slot nodes
4460
- function registerDeepBindings (data) {
4461
- if (isObject(data.style)) {
4462
- traverse(data.style);
4463
- }
4464
- if (isObject(data.class)) {
4465
- traverse(data.class);
4466
- }
4467
- }
4468
-
4469
- /* */
4470
-
4471
- function initRender (vm) {
4472
- vm._vnode = null; // the root of the child tree
4473
- vm._staticTrees = null; // v-once cached trees
4474
- var options = vm.$options;
4475
- var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
4476
- var renderContext = parentVnode && parentVnode.context;
4477
- vm.$slots = resolveSlots(options._renderChildren, renderContext);
4478
- vm.$scopedSlots = emptyObject;
4479
- // bind the createElement fn to this instance
4480
- // so that we get proper render context inside it.
4481
- // args order: tag, data, children, normalizationType, alwaysNormalize
4482
- // internal version is used by render functions compiled from templates
4483
- vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
4484
- // normalization is always applied for the public version, used in
4485
- // user-written render functions.
4486
- vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
4487
-
4488
- // $attrs & $listeners are exposed for easier HOC creation.
4489
- // they need to be reactive so that HOCs using them are always updated
4490
- var parentData = parentVnode && parentVnode.data;
4491
-
4492
- /* istanbul ignore else */
4493
- {
4494
- defineReactive(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
4495
- !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
4496
- }, true);
4497
- defineReactive(vm, '$listeners', options._parentListeners || emptyObject, function () {
4498
- !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
4499
- }, true);
4500
- }
4501
- }
4502
 
4503
- function renderMixin (Vue) {
4504
- // install runtime convenience helpers
4505
- installRenderHelpers(Vue.prototype);
 
 
 
 
 
 
 
 
4506
 
4507
- Vue.prototype.$nextTick = function (fn) {
4508
- return nextTick(fn, this)
4509
- };
 
4510
 
4511
- Vue.prototype._render = function () {
4512
- var vm = this;
4513
- var ref = vm.$options;
4514
- var render = ref.render;
4515
- var _parentVnode = ref._parentVnode;
4516
 
4517
- // reset _rendered flag on slots for duplicate slot check
4518
- {
4519
- for (var key in vm.$slots) {
4520
- // $flow-disable-line
4521
- vm.$slots[key]._rendered = false;
 
 
4522
  }
4523
- }
4524
 
4525
- if (_parentVnode) {
4526
- vm.$scopedSlots = _parentVnode.data.scopedSlots || emptyObject;
4527
- }
 
 
 
 
 
 
 
 
 
4528
 
4529
- // set parent vnode. this allows render functions to have access
4530
- // to the data on the placeholder node.
4531
- vm.$vnode = _parentVnode;
4532
- // render self
4533
- var vnode;
4534
- try {
4535
- vnode = render.call(vm._renderProxy, vm.$createElement);
4536
- } catch (e) {
4537
- handleError(e, vm, "render");
4538
- // return error render result,
4539
- // or previous vnode to prevent render error causing blank component
4540
- /* istanbul ignore else */
4541
- {
4542
- if (vm.$options.renderError) {
4543
- try {
4544
- vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
4545
- } catch (e) {
4546
- handleError(e, vm, "renderError");
4547
- vnode = vm._vnode;
4548
  }
4549
- } else {
4550
- vnode = vm._vnode;
 
 
 
 
4551
  }
 
 
4552
  }
4553
- }
4554
- // return empty vnode in case the render function errored out
4555
- if (!(vnode instanceof VNode)) {
4556
- if ("development" !== 'production' && Array.isArray(vnode)) {
4557
- warn(
4558
- 'Multiple root nodes returned from render function. Render function ' +
4559
- 'should return a single root node.',
4560
- vm
4561
- );
4562
  }
4563
- vnode = createEmptyVNode();
4564
  }
4565
- // set parent
4566
- vnode.parent = _parentVnode;
4567
- return vnode
4568
- };
4569
- }
4570
 
4571
- /* */
 
 
 
 
 
 
 
 
 
 
4572
 
4573
- var uid$3 = 0;
 
 
 
 
 
4574
 
4575
- function initMixin (Vue) {
4576
- Vue.prototype._init = function (options) {
4577
- var vm = this;
4578
- // a uid
4579
- vm._uid = uid$3++;
 
 
 
4580
 
4581
- var startTag, endTag;
4582
- /* istanbul ignore if */
4583
- if ("development" !== 'production' && config.performance && mark) {
4584
- startTag = "vue-perf-start:" + (vm._uid);
4585
- endTag = "vue-perf-end:" + (vm._uid);
4586
- mark(startTag);
4587
- }
4588
-
4589
- // a flag to avoid this being observed
4590
- vm._isVue = true;
4591
- // merge options
4592
- if (options && options._isComponent) {
4593
- // optimize internal component instantiation
4594
- // since dynamic options merging is pretty slow, and none of the
4595
- // internal component options needs special treatment.
4596
- initInternalComponent(vm, options);
4597
- } else {
4598
- vm.$options = mergeOptions(
4599
- resolveConstructorOptions(vm.constructor),
4600
- options || {},
4601
- vm
4602
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4603
  }
4604
- /* istanbul ignore else */
4605
- {
4606
- initProxy(vm);
4607
- }
4608
- // expose real self
4609
- vm._self = vm;
4610
- initLifecycle(vm);
4611
- initEvents(vm);
4612
- initRender(vm);
4613
- callHook(vm, 'beforeCreate');
4614
- initInjections(vm); // resolve injections before data/props
4615
- initState(vm);
4616
- initProvide(vm); // resolve provide after data/props
4617
- callHook(vm, 'created');
4618
 
4619
- /* istanbul ignore if */
4620
- if ("development" !== 'production' && config.performance && mark) {
4621
- vm._name = formatComponentName(vm, false);
4622
- mark(endTag);
4623
- measure(("vue " + (vm._name) + " init"), startTag, endTag);
 
 
 
 
4624
  }
4625
 
4626
- if (vm.$options.el) {
4627
- vm.$mount(vm.$options.el);
4628
- }
4629
- };
4630
- }
4631
-
4632
- function initInternalComponent (vm, options) {
4633
- var opts = vm.$options = Object.create(vm.constructor.options);
4634
- // doing this because it's faster than dynamic enumeration.
4635
- var parentVnode = options._parentVnode;
4636
- opts.parent = options.parent;
4637
- opts._parentVnode = parentVnode;
4638
- opts._parentElm = options._parentElm;
4639
- opts._refElm = options._refElm;
4640
-
4641
- var vnodeComponentOptions = parentVnode.componentOptions;
4642
- opts.propsData = vnodeComponentOptions.propsData;
4643
- opts._parentListeners = vnodeComponentOptions.listeners;
4644
- opts._renderChildren = vnodeComponentOptions.children;
4645
- opts._componentTag = vnodeComponentOptions.tag;
4646
-
4647
- if (options.render) {
4648
- opts.render = options.render;
4649
- opts.staticRenderFns = options.staticRenderFns;
4650
- }
4651
- }
4652
-
4653
- function resolveConstructorOptions (Ctor) {
4654
- var options = Ctor.options;
4655
- if (Ctor.super) {
4656
- var superOptions = resolveConstructorOptions(Ctor.super);
4657
- var cachedSuperOptions = Ctor.superOptions;
4658
- if (superOptions !== cachedSuperOptions) {
4659
- // super option changed,
4660
- // need to resolve new options.
4661
- Ctor.superOptions = superOptions;
4662
- // check if there are any late-modified/attached options (#4976)
4663
- var modifiedOptions = resolveModifiedOptions(Ctor);
4664
- // update base extend options
4665
- if (modifiedOptions) {
4666
- extend(Ctor.extendOptions, modifiedOptions);
4667
- }
4668
- options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
4669
- if (options.name) {
4670
- options.components[options.name] = Ctor;
4671
- }
4672
- }
4673
- }
4674
- return options
4675
- }
4676
-
4677
- function resolveModifiedOptions (Ctor) {
4678
- var modified;
4679
- var latest = Ctor.options;
4680
- var extended = Ctor.extendOptions;
4681
- var sealed = Ctor.sealedOptions;
4682
- for (var key in latest) {
4683
- if (latest[key] !== sealed[key]) {
4684
- if (!modified) { modified = {}; }
4685
- modified[key] = dedupe(latest[key], extended[key], sealed[key]);
4686
- }
4687
- }
4688
- return modified
4689
- }
4690
-
4691
- function dedupe (latest, extended, sealed) {
4692
- // compare latest and sealed to ensure lifecycle hooks won't be duplicated
4693
- // between merges
4694
- if (Array.isArray(latest)) {
4695
- var res = [];
4696
- sealed = Array.isArray(sealed) ? sealed : [sealed];
4697
- extended = Array.isArray(extended) ? extended : [extended];
4698
- for (var i = 0; i < latest.length; i++) {
4699
- // push original options and not sealed options to exclude duplicated options
4700
- if (extended.indexOf(latest[i]) >= 0 || sealed.indexOf(latest[i]) < 0) {
4701
- res.push(latest[i]);
4702
  }
4703
- }
4704
- return res
4705
- } else {
4706
- return latest
4707
- }
4708
- }
4709
 
4710
- function Vue (options) {
4711
- if ("development" !== 'production' &&
4712
- !(this instanceof Vue)
4713
- ) {
4714
- warn('Vue is a constructor and should be called with the `new` keyword');
4715
- }
4716
- this._init(options);
4717
- }
4718
 
4719
- initMixin(Vue);
4720
- stateMixin(Vue);
4721
- eventsMixin(Vue);
4722
- lifecycleMixin(Vue);
4723
- renderMixin(Vue);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4724
 
4725
- /* */
 
 
 
 
 
 
 
 
 
 
 
 
 
4726
 
4727
- function initUse (Vue) {
4728
- Vue.use = function (plugin) {
4729
- var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
4730
- if (installedPlugins.indexOf(plugin) > -1) {
4731
- return this
4732
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4733
 
4734
- // additional parameters
4735
- var args = toArray(arguments, 1);
4736
- args.unshift(this);
4737
- if (typeof plugin.install === 'function') {
4738
- plugin.install.apply(plugin, args);
4739
- } else if (typeof plugin === 'function') {
4740
- plugin.apply(null, args);
4741
  }
4742
- installedPlugins.push(plugin);
4743
- return this
4744
- };
4745
- }
4746
 
4747
- /* */
4748
 
4749
- function initMixin$1 (Vue) {
4750
- Vue.mixin = function (mixin) {
4751
- this.options = mergeOptions(this.options, mixin);
4752
- return this
 
 
4753
  };
4754
- }
4755
 
4756
- /* */
4757
-
4758
- function initExtend (Vue) {
4759
- /**
4760
- * Each instance constructor, including Vue, has a unique
4761
- * cid. This enables us to create wrapped "child
4762
- * constructors" for prototypal inheritance and cache them.
4763
- */
4764
- Vue.cid = 0;
4765
- var cid = 1;
4766
-
4767
- /**
4768
- * Class inheritance
4769
- */
4770
- Vue.extend = function (extendOptions) {
4771
- extendOptions = extendOptions || {};
4772
- var Super = this;
4773
- var SuperId = Super.cid;
4774
- var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
4775
- if (cachedCtors[SuperId]) {
4776
- return cachedCtors[SuperId]
4777
  }
 
4778
 
4779
- var name = extendOptions.name || Super.options.name;
4780
- if ("development" !== 'production' && name) {
4781
- validateComponentName(name);
4782
- }
 
4783
 
4784
- var Sub = function VueComponent (options) {
4785
- this._init(options);
4786
- };
4787
- Sub.prototype = Object.create(Super.prototype);
4788
- Sub.prototype.constructor = Sub;
4789
- Sub.cid = cid++;
4790
- Sub.options = mergeOptions(
4791
- Super.options,
4792
- extendOptions
4793
- );
4794
- Sub['super'] = Super;
4795
 
4796
- // For props and computed properties, we define the proxy getters on
4797
- // the Vue instances at extension time, on the extended prototype. This
4798
- // avoids Object.defineProperty calls for each instance created.
4799
- if (Sub.options.props) {
4800
- initProps$1(Sub);
4801
- }
4802
- if (Sub.options.computed) {
4803
- initComputed$1(Sub);
 
 
 
 
 
 
 
 
 
 
 
4804
  }
4805
 
4806
- // allow further extension/mixin/plugin usage
4807
- Sub.extend = Super.extend;
4808
- Sub.mixin = Super.mixin;
4809
- Sub.use = Super.use;
 
 
 
 
 
 
 
 
4810
 
4811
- // create asset registers, so extended classes
4812
- // can have their private assets too.
4813
- ASSET_TYPES.forEach(function (type) {
4814
- Sub[type] = Super[type];
4815
- });
4816
- // enable recursive self-lookup
4817
- if (name) {
4818
- Sub.options.components[name] = Sub;
4819
  }
4820
 
4821
- // keep a reference to the super options at extension time.
4822
- // later at instantiation we can check if Super's options have
4823
- // been updated.
4824
- Sub.superOptions = Super.options;
4825
- Sub.extendOptions = extendOptions;
4826
- Sub.sealedOptions = extend({}, Sub.options);
 
 
 
4827
 
4828
- // cache constructor
4829
- cachedCtors[SuperId] = Sub;
4830
- return Sub
4831
- };
4832
- }
4833
 
4834
- function initProps$1 (Comp) {
4835
- var props = Comp.options.props;
4836
- for (var key in props) {
4837
- proxy(Comp.prototype, "_props", key);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4838
  }
4839
- }
4840
 
4841
- function initComputed$1 (Comp) {
4842
- var computed = Comp.options.computed;
4843
- for (var key in computed) {
4844
- defineComputed(Comp.prototype, key, computed[key]);
4845
  }
4846
- }
4847
 
4848
- /* */
4849
-
4850
- function initAssetRegisters (Vue) {
4851
- /**
4852
- * Create asset registration methods.
4853
- */
4854
- ASSET_TYPES.forEach(function (type) {
4855
- Vue[type] = function (
4856
- id,
4857
- definition
4858
- ) {
4859
- if (!definition) {
4860
- return this.options[type + 's'][id]
4861
- } else {
4862
- /* istanbul ignore if */
4863
- if ("development" !== 'production' && type === 'component') {
4864
- validateComponentName(id);
4865
- }
4866
- if (type === 'component' && isPlainObject(definition)) {
4867
- definition.name = definition.name || id;
4868
- definition = this.options._base.extend(definition);
4869
- }
4870
- if (type === 'directive' && typeof definition === 'function') {
4871
- definition = { bind: definition, update: definition };
4872
- }
4873
- this.options[type + 's'][id] = definition;
4874
- return definition
4875
  }
4876
- };
4877
- });
4878
- }
4879
-
4880
- /* */
4881
 
4882
- function getComponentName (opts) {
4883
- return opts && (opts.Ctor.options.name || opts.tag)
4884
- }
 
4885
 
4886
- function matches (pattern, name) {
4887
- if (Array.isArray(pattern)) {
4888
- return pattern.indexOf(name) > -1
4889
- } else if (typeof pattern === 'string') {
4890
- return pattern.split(',').indexOf(name) > -1
4891
- } else if (isRegExp(pattern)) {
4892
- return pattern.test(name)
4893
- }
4894
- /* istanbul ignore next */
4895
- return false
4896
- }
4897
-
4898
- function pruneCache (keepAliveInstance, filter) {
4899
- var cache = keepAliveInstance.cache;
4900
- var keys = keepAliveInstance.keys;
4901
- var _vnode = keepAliveInstance._vnode;
4902
- for (var key in cache) {
4903
- var cachedNode = cache[key];
4904
- if (cachedNode) {
4905
- var name = getComponentName(cachedNode.componentOptions);
4906
- if (name && !filter(name)) {
4907
- pruneCacheEntry(cache, key, keys, _vnode);
4908
- }
4909
- }
4910
- }
4911
- }
4912
-
4913
- function pruneCacheEntry (
4914
- cache,
4915
- key,
4916
- keys,
4917
- current
4918
- ) {
4919
- var cached$$1 = cache[key];
4920
- if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
4921
- cached$$1.componentInstance.$destroy();
4922
- }
4923
- cache[key] = null;
4924
- remove(keys, key);
4925
- }
4926
-
4927
- var patternTypes = [String, RegExp, Array];
4928
-
4929
- var KeepAlive = {
4930
- name: 'keep-alive',
4931
- abstract: true,
4932
-
4933
- props: {
4934
- include: patternTypes,
4935
- exclude: patternTypes,
4936
- max: [String, Number]
4937
- },
4938
-
4939
- created: function created () {
4940
- this.cache = Object.create(null);
4941
- this.keys = [];
4942
- },
4943
-
4944
- destroyed: function destroyed () {
4945
- var this$1 = this;
4946
 
4947
- for (var key in this$1.cache) {
4948
- pruneCacheEntry(this$1.cache, key, this$1.keys);
 
 
 
 
 
 
 
 
 
 
 
 
 
4949
  }
4950
- },
4951
-
4952
- mounted: function mounted () {
4953
- var this$1 = this;
4954
 
4955
- this.$watch('include', function (val) {
4956
- pruneCache(this$1, function (name) { return matches(val, name); });
4957
- });
4958
- this.$watch('exclude', function (val) {
4959
- pruneCache(this$1, function (name) { return !matches(val, name); });
4960
- });
4961
- },
4962
-
4963
- render: function render () {
4964
- var slot = this.$slots.default;
4965
- var vnode = getFirstComponentChild(slot);
4966
- var componentOptions = vnode && vnode.componentOptions;
4967
- if (componentOptions) {
4968
- // check pattern
4969
- var name = getComponentName(componentOptions);
4970
- var ref = this;
4971
- var include = ref.include;
4972
- var exclude = ref.exclude;
4973
- if (
4974
- // not included
4975
- (include && (!name || !matches(include, name))) ||
4976
- // excluded
4977
- (exclude && name && matches(exclude, name))
4978
- ) {
4979
- return vnode
4980
  }
4981
-
4982
- var ref$1 = this;
4983
- var cache = ref$1.cache;
4984
- var keys = ref$1.keys;
4985
- var key = vnode.key == null
4986
- // same constructor may get registered as different local components
4987
- // so cid alone is not enough (#3269)
4988
- ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
4989
- : vnode.key;
4990
- if (cache[key]) {
4991
- vnode.componentInstance = cache[key].componentInstance;
4992
- // make current key freshest
4993
- remove(keys, key);
4994
- keys.push(key);
4995
- } else {
4996
- cache[key] = vnode;
4997
- keys.push(key);
4998
- // prune oldest entry
4999
- if (this.max && keys.length > parseInt(this.max)) {
5000
- pruneCacheEntry(cache, keys[0], keys, this._vnode);
5001
  }
5002
  }
5003
-
5004
- vnode.data.keepAlive = true;
5005
  }
5006
- return vnode || (slot && slot[0])
5007
  }
5008
- }
5009
 
5010
- var builtInComponents = {
5011
- KeepAlive: KeepAlive
5012
- }
5013
-
5014
- /* */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5015
 
5016
- function initGlobalAPI (Vue) {
5017
- // config
5018
- var configDef = {};
5019
- configDef.get = function () { return config; };
5020
- {
5021
- configDef.set = function () {
5022
- warn(
5023
- 'Do not replace the Vue.config object, set individual fields instead.'
5024
- );
5025
- };
 
 
 
 
 
 
 
 
 
 
 
 
 
5026
  }
5027
- Object.defineProperty(Vue, 'config', configDef);
5028
 
5029
- // exposed util methods.
5030
- // NOTE: these are not considered part of the public API - avoid relying on
5031
- // them unless you are aware of the risk.
5032
- Vue.util = {
5033
- warn: warn,
5034
- extend: extend,
5035
- mergeOptions: mergeOptions,
5036
- defineReactive: defineReactive
5037
  };
5038
 
5039
- Vue.set = set;
5040
- Vue.delete = del;
5041
- Vue.nextTick = nextTick;
5042
-
5043
- Vue.options = Object.create(null);
5044
- ASSET_TYPES.forEach(function (type) {
5045
- Vue.options[type + 's'] = Object.create(null);
5046
- });
5047
-
5048
- // this is used to identify the "base" constructor to extend all plain-object
5049
- // components with in Weex's multi-instance scenarios.
5050
- Vue.options._base = Vue;
5051
-
5052
- extend(Vue.options.components, builtInComponents);
5053
 
5054
- initUse(Vue);
5055
- initMixin$1(Vue);
5056
- initExtend(Vue);
5057
- initAssetRegisters(Vue);
5058
- }
 
 
 
 
 
 
 
 
 
 
5059
 
5060
- initGlobalAPI(Vue);
5061
 
5062
- Object.defineProperty(Vue.prototype, '$isServer', {
5063
- get: isServerRendering
5064
- });
 
 
5065
 
5066
- Object.defineProperty(Vue.prototype, '$ssrContext', {
5067
- get: function get () {
5068
- /* istanbul ignore next */
5069
- return this.$vnode && this.$vnode.ssrContext
 
5070
  }
5071
- });
5072
-
5073
- // expose FunctionalRenderContext for ssr runtime helper installation
5074
- Object.defineProperty(Vue, 'FunctionalRenderContext', {
5075
- value: FunctionalRenderContext
5076
- });
5077
 
5078
- Vue.version = '2.5.17';
5079
-
5080
- /* */
 
5081
 
5082
- // these are reserved for web because they are directly compiled away
5083
- // during template compilation
5084
- var isReservedAttr = makeMap('style,class');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5085
 
5086
- // attributes that should be using props for binding
5087
- var acceptValue = makeMap('input,textarea,option,select,progress');
5088
- var mustUseProp = function (tag, type, attr) {
5089
- return (
5090
- (attr === 'value' && acceptValue(tag)) && type !== 'button' ||
5091
- (attr === 'selected' && tag === 'option') ||
5092
- (attr === 'checked' && tag === 'input') ||
5093
- (attr === 'muted' && tag === 'video')
5094
- )
5095
- };
5096
 
5097
- var isEnumeratedAttr = makeMap('contenteditable,draggable,spellcheck');
 
 
 
5098
 
5099
- var isBooleanAttr = makeMap(
5100
- 'allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,' +
5101
- 'default,defaultchecked,defaultmuted,defaultselected,defer,disabled,' +
5102
- 'enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,' +
5103
- 'muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,' +
5104
- 'required,reversed,scoped,seamless,selected,sortable,translate,' +
5105
- 'truespeed,typemustmatch,visible'
5106
- );
5107
 
5108
- var xlinkNS = 'http://www.w3.org/1999/xlink';
 
5109
 
5110
- var isXlink = function (name) {
5111
- return name.charAt(5) === ':' && name.slice(0, 5) === 'xlink'
5112
- };
 
 
 
 
 
 
 
 
5113
 
5114
- var getXlinkProp = function (name) {
5115
- return isXlink(name) ? name.slice(6, name.length) : ''
5116
- };
5117
 
5118
- var isFalsyAttrValue = function (val) {
5119
- return val == null || val === false
5120
- };
5121
 
5122
- /* */
5123
 
5124
- function genClassForVnode (vnode) {
5125
- var data = vnode.data;
5126
- var parentNode = vnode;
5127
- var childNode = vnode;
5128
- while (isDef(childNode.componentInstance)) {
5129
- childNode = childNode.componentInstance._vnode;
5130
- if (childNode && childNode.data) {
5131
- data = mergeClassData(childNode.data, data);
5132
- }
5133
- }
5134
- while (isDef(parentNode = parentNode.parent)) {
5135
- if (parentNode && parentNode.data) {
5136
- data = mergeClassData(data, parentNode.data);
5137
- }
5138
  }
5139
- return renderClass(data.staticClass, data.class)
5140
- }
5141
 
5142
- function mergeClassData (child, parent) {
5143
- return {
5144
- staticClass: concat(child.staticClass, parent.staticClass),
5145
- class: isDef(child.class)
5146
- ? [child.class, parent.class]
5147
- : parent.class
 
5148
  }
5149
- }
5150
 
5151
- function renderClass (
5152
- staticClass,
5153
- dynamicClass
5154
- ) {
5155
- if (isDef(staticClass) || isDef(dynamicClass)) {
5156
- return concat(staticClass, stringifyClass(dynamicClass))
5157
  }
5158
- /* istanbul ignore next */
5159
- return ''
5160
- }
5161
 
5162
- function concat (a, b) {
5163
- return a ? b ? (a + ' ' + b) : a : (b || '')
5164
- }
5165
-
5166
- function stringifyClass (value) {
5167
- if (Array.isArray(value)) {
5168
- return stringifyArray(value)
5169
- }
5170
- if (isObject(value)) {
5171
- return stringifyObject(value)
5172
- }
5173
- if (typeof value === 'string') {
5174
- return value
5175
- }
5176
- /* istanbul ignore next */
5177
- return ''
5178
- }
5179
-
5180
- function stringifyArray (value) {
5181
- var res = '';
5182
- var stringified;
5183
- for (var i = 0, l = value.length; i < l; i++) {
5184
- if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
5185
- if (res) { res += ' '; }
5186
- res += stringified;
5187
- }
5188
- }
5189
- return res
5190
- }
5191
-
5192
- function stringifyObject (value) {
5193
- var res = '';
5194
- for (var key in value) {
5195
- if (value[key]) {
5196
- if (res) { res += ' '; }
5197
- res += key;
5198
- }
5199
- }
5200
- return res
5201
- }
5202
-
5203
- /* */
5204
-
5205
- var namespaceMap = {
5206
- svg: 'http://www.w3.org/2000/svg',
5207
- math: 'http://www.w3.org/1998/Math/MathML'
5208
- };
5209
-
5210
- var isHTMLTag = makeMap(
5211
- 'html,body,base,head,link,meta,style,title,' +
5212
- 'address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,' +
5213
- 'div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,' +
5214
- 'a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,' +
5215
- 's,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,' +
5216
- 'embed,object,param,source,canvas,script,noscript,del,ins,' +
5217
- 'caption,col,colgroup,table,thead,tbody,td,th,tr,' +
5218
- 'button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,' +
5219
- 'output,progress,select,textarea,' +
5220
- 'details,dialog,menu,menuitem,summary,' +
5221
- 'content,element,shadow,template,blockquote,iframe,tfoot'
5222
- );
5223
-
5224
- // this map is intentionally selective, only covering SVG elements that may
5225
- // contain child elements.
5226
- var isSVG = makeMap(
5227
- 'svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,' +
5228
- 'foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,' +
5229
- 'polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view',
5230
- true
5231
- );
5232
-
5233
- var isPreTag = function (tag) { return tag === 'pre'; };
5234
-
5235
- var isReservedTag = function (tag) {
5236
- return isHTMLTag(tag) || isSVG(tag)
5237
- };
5238
-
5239
- function getTagNamespace (tag) {
5240
- if (isSVG(tag)) {
5241
- return 'svg'
5242
- }
5243
- // basic support for MathML
5244
- // note it doesn't support other MathML elements being component roots
5245
- if (tag === 'math') {
5246
- return 'math'
5247
- }
5248
- }
5249
-
5250
- var unknownElementCache = Object.create(null);
5251
- function isUnknownElement (tag) {
5252
- /* istanbul ignore if */
5253
- if (!inBrowser) {
5254
- return true
5255
- }
5256
- if (isReservedTag(tag)) {
5257
- return false
5258
  }
5259
- tag = tag.toLowerCase();
5260
- /* istanbul ignore if */
5261
- if (unknownElementCache[tag] != null) {
5262
- return unknownElementCache[tag]
5263
- }
5264
- var el = document.createElement(tag);
5265
- if (tag.indexOf('-') > -1) {
5266
- // http://stackoverflow.com/a/28210364/1070244
5267
- return (unknownElementCache[tag] = (
5268
- el.constructor === window.HTMLUnknownElement ||
5269
- el.constructor === window.HTMLElement
5270
- ))
5271
- } else {
5272
- return (unknownElementCache[tag] = /HTMLUnknownElement/.test(el.toString()))
5273
  }
5274
- }
5275
 
5276
- var isTextInputType = makeMap('text,number,password,search,email,tel,url');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5277
 
5278
- /* */
 
 
 
 
5279
 
5280
- /**
5281
- * Query an element selector if it's not an element already.
5282
- */
5283
- function query (el) {
5284
- if (typeof el === 'string') {
5285
- var selected = document.querySelector(el);
5286
- if (!selected) {
5287
- "development" !== 'production' && warn(
5288
- 'Cannot find element: ' + el
 
 
 
 
 
 
 
 
 
 
 
 
5289
  );
5290
- return document.createElement('div')
5291
  }
5292
- return selected
5293
- } else {
5294
- return el
5295
- }
5296
- }
5297
 
5298
- /* */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5299
 
5300
- function createElement$1 (tagName, vnode) {
5301
- var elm = document.createElement(tagName);
5302
- if (tagName !== 'select') {
5303
- return elm
5304
- }
5305
- // false or null will remove the attribute but undefined will not
5306
- if (vnode.data && vnode.data.attrs && vnode.data.attrs.multiple !== undefined) {
5307
- elm.setAttribute('multiple', 'multiple');
5308
- }
5309
- return elm
5310
- }
5311
-
5312
- function createElementNS (namespace, tagName) {
5313
- return document.createElementNS(namespaceMap[namespace], tagName)
5314
- }
5315
-
5316
- function createTextNode (text) {
5317
- return document.createTextNode(text)
5318
- }
5319
-
5320
- function createComment (text) {
5321
- return document.createComment(text)
5322
- }
5323
-
5324
- function insertBefore (parentNode, newNode, referenceNode) {
5325
- parentNode.insertBefore(newNode, referenceNode);
5326
- }
5327
-
5328
- function removeChild (node, child) {
5329
- node.removeChild(child);
5330
- }
5331
-
5332
- function appendChild (node, child) {
5333
- node.appendChild(child);
5334
- }
5335
-
5336
- function parentNode (node) {
5337
- return node.parentNode
5338
- }
5339
-
5340
- function nextSibling (node) {
5341
- return node.nextSibling
5342
- }
5343
-
5344
- function tagName (node) {
5345
- return node.tagName
5346
- }
5347
-
5348
- function setTextContent (node, text) {
5349
- node.textContent = text;
5350
- }
5351
-
5352
- function setStyleScope (node, scopeId) {
5353
- node.setAttribute(scopeId, '');
5354
- }
5355
-
5356
-
5357
- var nodeOps = Object.freeze({
5358
- createElement: createElement$1,
5359
- createElementNS: createElementNS,
5360
- createTextNode: createTextNode,
5361
- createComment: createComment,
5362
- insertBefore: insertBefore,
5363
- removeChild: removeChild,
5364
- appendChild: appendChild,
5365
- parentNode: parentNode,
5366
- nextSibling: nextSibling,
5367
- tagName: tagName,
5368
- setTextContent: setTextContent,
5369
- setStyleScope: setStyleScope
5370
- });
5371
-
5372
- /* */
5373
-
5374
- var ref = {
5375
- create: function create (_, vnode) {
5376
- registerRef(vnode);
5377
- },
5378
- update: function update (oldVnode, vnode) {
5379
- if (oldVnode.data.ref !== vnode.data.ref) {
5380
- registerRef(oldVnode, true);
5381
- registerRef(vnode);
5382
  }
5383
- },
5384
- destroy: function destroy (vnode) {
5385
- registerRef(vnode, true);
5386
- }
5387
- }
5388
 
5389
- function registerRef (vnode, isRemoval) {
5390
- var key = vnode.data.ref;
5391
- if (!isDef(key)) { return }
 
 
 
 
5392
 
5393
- var vm = vnode.context;
5394
- var ref = vnode.componentInstance || vnode.elm;
5395
- var refs = vm.$refs;
5396
- if (isRemoval) {
5397
- if (Array.isArray(refs[key])) {
5398
- remove(refs[key], ref);
5399
- } else if (refs[key] === ref) {
5400
- refs[key] = undefined;
5401
  }
5402
- } else {
5403
- if (vnode.data.refInFor) {
5404
- if (!Array.isArray(refs[key])) {
5405
- refs[key] = [ref];
5406
- } else if (refs[key].indexOf(ref) < 0) {
5407
- // $flow-disable-line
5408
- refs[key].push(ref);
5409
- }
5410
  } else {
5411
- refs[key] = ref;
5412
  }
5413
- }
5414
- }
5415
-
5416
- /**
5417
- * Virtual DOM patching algorithm based on Snabbdom by
5418
- * Simon Friis Vindum (@paldepind)
5419
- * Licensed under the MIT License
5420
- * https://github.com/paldepind/snabbdom/blob/master/LICENSE
5421
- *
5422
- * modified by Evan You (@yyx990803)
5423
- *
5424
- * Not type-checking this because this file is perf-critical and the cost
5425
- * of making flow understand it is not worth it.
5426
- */
5427
 
5428
- var emptyNode = new VNode('', {}, []);
5429
-
5430
- var hooks = ['create', 'activate', 'update', 'remove', 'destroy'];
5431
-
5432
- function sameVnode (a, b) {
5433
- return (
5434
- a.key === b.key && (
5435
- (
5436
- a.tag === b.tag &&
5437
- a.isComment === b.isComment &&
5438
- isDef(a.data) === isDef(b.data) &&
5439
- sameInputType(a, b)
5440
- ) || (
5441
- isTrue(a.isAsyncPlaceholder) &&
5442
- a.asyncFactory === b.asyncFactory &&
5443
- isUndef(b.asyncFactory.error)
5444
- )
5445
- )
5446
- )
5447
- }
5448
 
5449
- function sameInputType (a, b) {
5450
- if (a.tag !== 'input') { return true }
5451
- var i;
5452
- var typeA = isDef(i = a.data) && isDef(i = i.attrs) && i.type;
5453
- var typeB = isDef(i = b.data) && isDef(i = i.attrs) && i.type;
5454
- return typeA === typeB || isTextInputType(typeA) && isTextInputType(typeB)
5455
- }
 
5456
 
5457
- function createKeyToOldIdx (children, beginIdx, endIdx) {
5458
- var i, key;
5459
- var map = {};
5460
- for (i = beginIdx; i <= endIdx; ++i) {
5461
- key = children[i].key;
5462
- if (isDef(key)) { map[key] = i; }
 
 
 
 
 
 
 
 
 
 
5463
  }
5464
- return map
5465
- }
5466
 
5467
- function createPatchFunction (backend) {
5468
- var i, j;
5469
- var cbs = {};
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5470
 
5471
- var modules = backend.modules;
5472
- var nodeOps = backend.nodeOps;
 
 
 
 
 
 
 
 
 
 
 
5473
 
5474
- for (i = 0; i < hooks.length; ++i) {
5475
- cbs[hooks[i]] = [];
5476
- for (j = 0; j < modules.length; ++j) {
5477
- if (isDef(modules[j][hooks[i]])) {
5478
- cbs[hooks[i]].push(modules[j][hooks[i]]);
 
 
 
 
 
5479
  }
5480
  }
 
5481
  }
5482
 
5483
- function emptyNodeAt (elm) {
5484
- return new VNode(nodeOps.tagName(elm).toLowerCase(), {}, [], undefined, elm)
5485
- }
5486
 
5487
- function createRmCb (childElm, listeners) {
5488
- function remove () {
5489
- if (--remove.listeners === 0) {
5490
- removeNode(childElm);
5491
- }
5492
- }
5493
- remove.listeners = listeners;
5494
- return remove
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5495
  }
5496
 
5497
- function removeNode (el) {
5498
- var parent = nodeOps.parentNode(el);
5499
- // element may have already been removed due to v-html / v-text
5500
- if (isDef(parent)) {
5501
- nodeOps.removeChild(parent, el);
 
 
 
 
 
 
 
5502
  }
5503
  }
5504
 
5505
- function isUnknownElement$$1 (vnode, inVPre) {
5506
- return (
5507
- !inVPre &&
5508
- !vnode.ns &&
5509
- !(
5510
- config.ignoredElements.length &&
5511
- config.ignoredElements.some(function (ignore) {
5512
- return isRegExp(ignore)
5513
- ? ignore.test(vnode.tag)
5514
- : ignore === vnode.tag
5515
- })
5516
- ) &&
5517
- config.isUnknownElement(vnode.tag)
5518
- )
5519
- }
5520
 
5521
- var creatingElmInVPre = 0;
5522
 
5523
- function createElm (
5524
- vnode,
5525
- insertedVnodeQueue,
5526
- parentElm,
5527
- refElm,
5528
- nested,
5529
- ownerArray,
5530
- index
5531
- ) {
5532
- if (isDef(vnode.elm) && isDef(ownerArray)) {
5533
- // This vnode was used in a previous render!
5534
- // now it's used as a new node, overwriting its elm would cause
5535
- // potential patch errors down the road when it's used as an insertion
5536
- // reference node. Instead, we clone the node on-demand before creating
5537
- // associated DOM element for it.
5538
- vnode = ownerArray[index] = cloneVNode(vnode);
5539
- }
5540
 
5541
- vnode.isRootInsert = !nested; // for transition enter check
5542
- if (createComponent(vnode, insertedVnodeQueue, parentElm, refElm)) {
5543
- return
5544
- }
5545
 
5546
- var data = vnode.data;
5547
- var children = vnode.children;
5548
- var tag = vnode.tag;
5549
- if (isDef(tag)) {
5550
- {
5551
- if (data && data.pre) {
5552
- creatingElmInVPre++;
 
 
 
 
 
5553
  }
5554
- if (isUnknownElement$$1(vnode, creatingElmInVPre)) {
5555
- warn(
5556
- 'Unknown custom element: <' + tag + '> - did you ' +
5557
- 'register the component correctly? For recursive components, ' +
5558
- 'make sure to provide the "name" option.',
5559
- vnode.context
5560
- );
5561
  }
5562
  }
 
5563
 
5564
- vnode.elm = vnode.ns
5565
- ? nodeOps.createElementNS(vnode.ns, tag)
5566
- : nodeOps.createElement(tag, vnode);
5567
- setScope(vnode);
5568
 
 
 
5569
  /* istanbul ignore if */
5570
- {
5571
- createChildren(vnode, children, insertedVnodeQueue);
5572
- if (isDef(data)) {
5573
- invokeCreateHooks(vnode, insertedVnodeQueue);
5574
- }
5575
- insert(parentElm, vnode.elm, refElm);
5576
  }
 
5577
 
5578
- if ("development" !== 'production' && data && data.pre) {
5579
- creatingElmInVPre--;
5580
- }
5581
- } else if (isTrue(vnode.isComment)) {
5582
- vnode.elm = nodeOps.createComment(vnode.text);
5583
- insert(parentElm, vnode.elm, refElm);
5584
- } else {
5585
- vnode.elm = nodeOps.createTextNode(vnode.text);
5586
- insert(parentElm, vnode.elm, refElm);
5587
  }
5588
  }
5589
 
5590
- function createComponent (vnode, insertedVnodeQueue, parentElm, refElm) {
5591
- var i = vnode.data;
5592
- if (isDef(i)) {
5593
- var isReactivated = isDef(vnode.componentInstance) && i.keepAlive;
5594
- if (isDef(i = i.hook) && isDef(i = i.init)) {
5595
- i(vnode, false /* hydrating */, parentElm, refElm);
5596
- }
5597
- // after calling the init hook, if the vnode is a child component
5598
- // it should've created a child instance and mounted it. the child
5599
- // component also has set the placeholder vnode's elm.
5600
- // in that case we can just return the element and be done.
5601
- if (isDef(vnode.componentInstance)) {
5602
- initComponent(vnode, insertedVnodeQueue);
5603
- if (isTrue(isReactivated)) {
5604
- reactivateComponent(vnode, insertedVnodeQueue, parentElm, refElm);
5605
- }
5606
- return true
5607
- }
5608
- }
5609
  }
5610
 
5611
- function initComponent (vnode, insertedVnodeQueue) {
5612
- if (isDef(vnode.data.pendingInsert)) {
5613
- insertedVnodeQueue.push.apply(insertedVnodeQueue, vnode.data.pendingInsert);
5614
- vnode.data.pendingInsert = null;
5615
- }
5616
- vnode.elm = vnode.componentInstance.$el;
5617
- if (isPatchable(vnode)) {
5618
- invokeCreateHooks(vnode, insertedVnodeQueue);
5619
- setScope(vnode);
5620
- } else {
5621
- // empty component root.
5622
- // skip all element-related modules except for ref (#3455)
5623
- registerRef(vnode);
5624
- // make sure to invoke the insert hook
5625
- insertedVnodeQueue.push(vnode);
5626
- }
5627
  }
5628
 
5629
- function reactivateComponent (vnode, insertedVnodeQueue, parentElm, refElm) {
5630
- var i;
5631
- // hack for #4339: a reactivated component with inner transition
5632
- // does not trigger because the inner node's created hooks are not called
5633
- // again. It's not ideal to involve module-specific logic in here but
5634
- // there doesn't seem to be a better way to do it.
5635
- var innerNode = vnode;
5636
- while (innerNode.componentInstance) {
5637
- innerNode = innerNode.componentInstance._vnode;
5638
- if (isDef(i = innerNode.data) && isDef(i = i.transition)) {
5639
- for (i = 0; i < cbs.activate.length; ++i) {
5640
- cbs.activate[i](emptyNode, innerNode);
5641
- }
5642
- insertedVnodeQueue.push(innerNode);
 
 
 
5643
  break
5644
  }
5645
  }
5646
- // unlike a newly created component,
5647
- // a reactivated keep-alive component doesn't insert itself
5648
- insert(parentElm, vnode.elm, refElm);
5649
  }
5650
 
5651
- function insert (parent, elm, ref$$1) {
5652
- if (isDef(parent)) {
5653
- if (isDef(ref$$1)) {
5654
- if (ref$$1.parentNode === parent) {
5655
- nodeOps.insertBefore(parent, elm, ref$$1);
5656
- }
5657
- } else {
5658
- nodeOps.appendChild(parent, elm);
5659
  }
5660
  }
5661
  }
5662
 
5663
- function createChildren (vnode, children, insertedVnodeQueue) {
5664
- if (Array.isArray(children)) {
5665
- {
5666
- checkDuplicateKeys(children);
5667
- }
5668
- for (var i = 0; i < children.length; ++i) {
5669
- createElm(children[i], insertedVnodeQueue, vnode.elm, null, true, children, i);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5670
  }
5671
- } else if (isPrimitive(vnode.text)) {
5672
- nodeOps.appendChild(vnode.elm, nodeOps.createTextNode(String(vnode.text)));
5673
  }
5674
- }
5675
 
5676
- function isPatchable (vnode) {
5677
- while (vnode.componentInstance) {
5678
- vnode = vnode.componentInstance._vnode;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5679
  }
5680
- return isDef(vnode.tag)
 
 
5681
  }
5682
 
5683
- function invokeCreateHooks (vnode, insertedVnodeQueue) {
5684
- for (var i$1 = 0; i$1 < cbs.create.length; ++i$1) {
5685
- cbs.create[i$1](emptyNode, vnode);
5686
- }
5687
- i = vnode.data.hook; // Reuse variable
5688
- if (isDef(i)) {
5689
- if (isDef(i.create)) { i.create(emptyNode, vnode); }
5690
- if (isDef(i.insert)) { insertedVnodeQueue.push(vnode); }
5691
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5692
  }
5693
 
5694
- // set scope id attribute for scoped CSS.
5695
- // this is implemented as a special case to avoid the overhead
5696
- // of going through the normal attribute patching process.
5697
- function setScope (vnode) {
5698
- var i;
5699
- if (isDef(i = vnode.fnScopeId)) {
5700
- nodeOps.setStyleScope(vnode.elm, i);
5701
- } else {
5702
- var ancestor = vnode;
5703
- while (ancestor) {
5704
- if (isDef(i = ancestor.context) && isDef(i = i.$options._scopeId)) {
5705
- nodeOps.setStyleScope(vnode.elm, i);
5706
- }
5707
- ancestor = ancestor.parent;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5708
  }
5709
  }
5710
- // for slot content they should also get the scopeId from the host instance.
5711
- if (isDef(i = activeInstance) &&
5712
- i !== vnode.context &&
5713
- i !== vnode.fnContext &&
5714
- isDef(i = i.$options._scopeId)
5715
- ) {
5716
- nodeOps.setStyleScope(vnode.elm, i);
5717
- }
5718
- }
5719
 
5720
- function addVnodes (parentElm, refElm, vnodes, startIdx, endIdx, insertedVnodeQueue) {
5721
- for (; startIdx <= endIdx; ++startIdx) {
5722
- createElm(vnodes[startIdx], insertedVnodeQueue, parentElm, refElm, false, vnodes, startIdx);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5723
  }
5724
- }
5725
 
5726
- function invokeDestroyHook (vnode) {
5727
- var i, j;
5728
- var data = vnode.data;
5729
- if (isDef(data)) {
5730
- if (isDef(i = data.hook) && isDef(i = i.destroy)) { i(vnode); }
5731
- for (i = 0; i < cbs.destroy.length; ++i) { cbs.destroy[i](vnode); }
5732
  }
5733
- if (isDef(i = vnode.children)) {
5734
- for (j = 0; j < vnode.children.length; ++j) {
5735
- invokeDestroyHook(vnode.children[j]);
5736
- }
 
5737
  }
5738
  }
5739
 
5740
- function removeVnodes (parentElm, vnodes, startIdx, endIdx) {
5741
- for (; startIdx <= endIdx; ++startIdx) {
5742
- var ch = vnodes[startIdx];
5743
- if (isDef(ch)) {
5744
- if (isDef(ch.tag)) {
5745
- removeAndInvokeRemoveHook(ch);
5746
- invokeDestroyHook(ch);
5747
- } else { // Text node
5748
- removeNode(ch.elm);
5749
- }
5750
- }
 
 
 
 
 
 
 
 
 
5751
  }
5752
  }
5753
 
5754
- function removeAndInvokeRemoveHook (vnode, rm) {
5755
- if (isDef(rm) || isDef(vnode.data)) {
5756
- var i;
5757
- var listeners = cbs.remove.length + 1;
5758
- if (isDef(rm)) {
5759
- // we have a recursively passed down rm callback
5760
- // increase the listeners count
5761
- rm.listeners += listeners;
5762
- } else {
5763
- // directly removing
5764
- rm = createRmCb(vnode.elm, listeners);
5765
- }
5766
- // recursively invoke hooks on child component root node
5767
- if (isDef(i = vnode.componentInstance) && isDef(i = i._vnode) && isDef(i.data)) {
5768
- removeAndInvokeRemoveHook(i, rm);
5769
- }
5770
- for (i = 0; i < cbs.remove.length; ++i) {
5771
- cbs.remove[i](vnode, rm);
5772
- }
5773
- if (isDef(i = vnode.data.hook) && isDef(i = i.remove)) {
5774
- i(vnode, rm);
5775
- } else {
5776
- rm();
5777
  }
5778
- } else {
5779
- removeNode(vnode.elm);
5780
  }
5781
  }
5782
 
5783
- function updateChildren (parentElm, oldCh, newCh, insertedVnodeQueue, removeOnly) {
5784
- var oldStartIdx = 0;
5785
- var newStartIdx = 0;
5786
- var oldEndIdx = oldCh.length - 1;
5787
- var oldStartVnode = oldCh[0];
5788
- var oldEndVnode = oldCh[oldEndIdx];
5789
- var newEndIdx = newCh.length - 1;
5790
- var newStartVnode = newCh[0];
5791
- var newEndVnode = newCh[newEndIdx];
5792
- var oldKeyToIdx, idxInOld, vnodeToMove, refElm;
5793
 
5794
- // removeOnly is a special flag used only by <transition-group>
5795
- // to ensure removed elements stay in correct relative positions
5796
- // during leaving transitions
5797
- var canMove = !removeOnly;
5798
-
5799
- {
5800
- checkDuplicateKeys(newCh);
5801
- }
5802
-
5803
- while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
5804
- if (isUndef(oldStartVnode)) {
5805
- oldStartVnode = oldCh[++oldStartIdx]; // Vnode has been moved left
5806
- } else if (isUndef(oldEndVnode)) {
5807
- oldEndVnode = oldCh[--oldEndIdx];
5808
- } else if (sameVnode(oldStartVnode, newStartVnode)) {
5809
- patchVnode(oldStartVnode, newStartVnode, insertedVnodeQueue);
5810
- oldStartVnode = oldCh[++oldStartIdx];
5811
- newStartVnode = newCh[++newStartIdx];
5812
- } else if (sameVnode(oldEndVnode, newEndVnode)) {
5813
- patchVnode(oldEndVnode, newEndVnode, insertedVnodeQueue);
5814
- oldEndVnode = oldCh[--oldEndIdx];
5815
- newEndVnode = newCh[--newEndIdx];
5816
- } else if (sameVnode(oldStartVnode, newEndVnode)) { // Vnode moved right
5817
- patchVnode(oldStartVnode, newEndVnode, insertedVnodeQueue);
5818
- canMove && nodeOps.insertBefore(parentElm, oldStartVnode.elm, nodeOps.nextSibling(oldEndVnode.elm));
5819
- oldStartVnode = oldCh[++oldStartIdx];
5820
- newEndVnode = newCh[--newEndIdx];
5821
- } else if (sameVnode(oldEndVnode, newStartVnode)) { // Vnode moved left
5822
- patchVnode(oldEndVnode, newStartVnode, insertedVnodeQueue);
5823
- canMove && nodeOps.insertBefore(parentElm, oldEndVnode.elm, oldStartVnode.elm);
5824
- oldEndVnode = oldCh[--oldEndIdx];
5825
- newStartVnode = newCh[++newStartIdx];
5826
- } else {
5827
- if (isUndef(oldKeyToIdx)) { oldKeyToIdx = createKeyToOldIdx(oldCh, oldStartIdx, oldEndIdx); }
5828
- idxInOld = isDef(newStartVnode.key)
5829
- ? oldKeyToIdx[newStartVnode.key]
5830
- : findIdxInOld(newStartVnode, oldCh, oldStartIdx, oldEndIdx);
5831
- if (isUndef(idxInOld)) { // New element
5832
- createElm(newStartVnode, insertedVnodeQueue, parentElm, oldStartVnode.elm, false, newCh, newStartIdx);
5833
- } else {
5834
- vnodeToMove = oldCh[idxInOld];
5835
- if (sameVnode(vnodeToMove, newStartVnode)) {
5836
- patchVnode(vnodeToMove, newStartVnode, insertedVnodeQueue);
5837
- oldCh[idxInOld] = undefined;
5838
- canMove && nodeOps.insertBefore(parentElm, vnodeToMove.elm, oldStartVnode.elm);
5839
- } else {
5840
- // same key but different element. treat as new element
5841
- createElm(newStartVnode, insertedVnodeQueue, parentElm, oldStartVnode.elm, false, newCh, newStartIdx);
5842
- }
5843
  }
5844
- newStartVnode = newCh[++newStartIdx];
5845
- }
5846
- }
5847
- if (oldStartIdx > oldEndIdx) {
5848
- refElm = isUndef(newCh[newEndIdx + 1]) ? null : newCh[newEndIdx + 1].elm;
5849
- addVnodes(parentElm, refElm, newCh, newStartIdx, newEndIdx, insertedVnodeQueue);
5850
- } else if (newStartIdx > newEndIdx) {
5851
- removeVnodes(parentElm, oldCh, oldStartIdx, oldEndIdx);
5852
  }
 
 
 
 
 
 
 
5853
  }
5854
 
5855
- function checkDuplicateKeys (children) {
5856
- var seenKeys = {};
5857
- for (var i = 0; i < children.length; i++) {
5858
- var vnode = children[i];
5859
- var key = vnode.key;
5860
- if (isDef(key)) {
5861
- if (seenKeys[key]) {
5862
- warn(
5863
- ("Duplicate keys detected: '" + key + "'. This may cause an update error."),
5864
- vnode.context
5865
- );
5866
- } else {
5867
- seenKeys[key] = true;
5868
- }
5869
- }
5870
- }
5871
  }
5872
 
5873
- function findIdxInOld (node, oldCh, start, end) {
5874
- for (var i = start; i < end; i++) {
5875
- var c = oldCh[i];
5876
- if (isDef(c) && sameVnode(node, c)) { return i }
5877
  }
 
 
 
 
 
 
5878
  }
5879
 
5880
- function patchVnode (oldVnode, vnode, insertedVnodeQueue, removeOnly) {
5881
- if (oldVnode === vnode) {
 
 
 
 
 
 
 
 
 
5882
  return
5883
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5884
 
5885
- var elm = vnode.elm = oldVnode.elm;
 
 
 
 
 
 
5886
 
5887
- if (isTrue(oldVnode.isAsyncPlaceholder)) {
5888
- if (isDef(vnode.asyncFactory.resolved)) {
5889
- hydrate(oldVnode.elm, vnode, insertedVnodeQueue);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5890
  } else {
5891
- vnode.isAsyncPlaceholder = true;
5892
  }
5893
- return
5894
  }
 
5895
 
5896
- // reuse element for static trees.
5897
- // note we only do this if the vnode is cloned -
5898
- // if the new node is not cloned it means the render functions have been
5899
- // reset by the hot-reload-api and we need to do a proper re-render.
5900
- if (isTrue(vnode.isStatic) &&
5901
- isTrue(oldVnode.isStatic) &&
5902
- vnode.key === oldVnode.key &&
5903
- (isTrue(vnode.isCloned) || isTrue(vnode.isOnce))
5904
- ) {
5905
- vnode.componentInstance = oldVnode.componentInstance;
5906
- return
5907
- }
5908
 
5909
- var i;
5910
- var data = vnode.data;
5911
- if (isDef(data) && isDef(i = data.hook) && isDef(i = i.prepatch)) {
5912
- i(oldVnode, vnode);
5913
- }
5914
 
5915
- var oldCh = oldVnode.children;
5916
- var ch = vnode.children;
5917
- if (isDef(data) && isPatchable(vnode)) {
5918
- for (i = 0; i < cbs.update.length; ++i) { cbs.update[i](oldVnode, vnode); }
5919
- if (isDef(i = data.hook) && isDef(i = i.update)) { i(oldVnode, vnode); }
5920
- }
5921
- if (isUndef(vnode.text)) {
5922
- if (isDef(oldCh) && isDef(ch)) {
5923
- if (oldCh !== ch) { updateChildren(elm, oldCh, ch, insertedVnodeQueue, removeOnly); }
5924
- } else if (isDef(ch)) {
5925
- if (isDef(oldVnode.text)) { nodeOps.setTextContent(elm, ''); }
5926
- addVnodes(elm, null, ch, 0, ch.length - 1, insertedVnodeQueue);
5927
- } else if (isDef(oldCh)) {
5928
- removeVnodes(elm, oldCh, 0, oldCh.length - 1);
5929
- } else if (isDef(oldVnode.text)) {
5930
- nodeOps.setTextContent(elm, '');
5931
- }
5932
- } else if (oldVnode.text !== vnode.text) {
5933
- nodeOps.setTextContent(elm, vnode.text);
5934
- }
5935
- if (isDef(data)) {
5936
- if (isDef(i = data.hook) && isDef(i = i.postpatch)) { i(oldVnode, vnode); }
5937
- }
5938
  }
5939
 
5940
- function invokeInsertHook (vnode, queue, initial) {
5941
- // delay insert hooks for component root nodes, invoke them after the
5942
- // element is really inserted
5943
- if (isTrue(initial) && isDef(vnode.parent)) {
5944
- vnode.parent.data.pendingInsert = queue;
5945
- } else {
5946
- for (var i = 0; i < queue.length; ++i) {
5947
- queue[i].data.hook.insert(queue[i]);
 
 
 
 
 
 
 
 
 
 
 
5948
  }
5949
  }
 
5950
  }
5951
 
5952
- var hydrationBailed = false;
5953
- // list of modules that can skip create hook during hydration because they
5954
- // are already rendered on the client or has no need for initialization
5955
- // Note: style is excluded because it relies on initial clone for future
5956
- // deep updates (#7063).
5957
- var isRenderedModule = makeMap('attrs,class,staticClass,staticStyle,key');
5958
 
5959
- // Note: this is a browser-only function so we can assume elms are DOM nodes.
5960
- function hydrate (elm, vnode, insertedVnodeQueue, inVPre) {
5961
- var i;
5962
- var tag = vnode.tag;
5963
- var data = vnode.data;
5964
- var children = vnode.children;
5965
- inVPre = inVPre || (data && data.pre);
5966
- vnode.elm = elm;
5967
 
5968
- if (isTrue(vnode.isComment) && isDef(vnode.asyncFactory)) {
5969
- vnode.isAsyncPlaceholder = true;
5970
- return true
5971
- }
5972
- // assert node match
5973
- {
5974
- if (!assertNodeMatch(elm, vnode, inVPre)) {
5975
- return false
5976
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5977
  }
5978
- if (isDef(data)) {
5979
- if (isDef(i = data.hook) && isDef(i = i.init)) { i(vnode, true /* hydrating */); }
5980
- if (isDef(i = vnode.componentInstance)) {
5981
- // child component. it should have hydrated its own tree.
5982
- initComponent(vnode, insertedVnodeQueue);
5983
- return true
5984
- }
5985
  }
5986
- if (isDef(tag)) {
5987
- if (isDef(children)) {
5988
- // empty element, allow client to pick up and populate children
5989
- if (!elm.hasChildNodes()) {
5990
- createChildren(vnode, children, insertedVnodeQueue);
5991
- } else {
5992
- // v-html and domProps: innerHTML
5993
- if (isDef(i = data) && isDef(i = i.domProps) && isDef(i = i.innerHTML)) {
5994
- if (i !== elm.innerHTML) {
5995
- /* istanbul ignore if */
5996
- if ("development" !== 'production' &&
5997
- typeof console !== 'undefined' &&
5998
- !hydrationBailed
5999
- ) {
6000
- hydrationBailed = true;
6001
- console.warn('Parent: ', elm);
6002
- console.warn('server innerHTML: ', i);
6003
- console.warn('client innerHTML: ', elm.innerHTML);
6004
- }
6005
- return false
6006
- }
6007
- } else {
6008
- // iterate and compare children lists
6009
- var childrenMatch = true;
6010
- var childNode = elm.firstChild;
6011
- for (var i$1 = 0; i$1 < children.length; i$1++) {
6012
- if (!childNode || !hydrate(childNode, children[i$1], insertedVnodeQueue, inVPre)) {
6013
- childrenMatch = false;
6014
- break
6015
- }
6016
- childNode = childNode.nextSibling;
6017
- }
6018
- // if childNode is not null, it means the actual childNodes list is
6019
- // longer than the virtual children list.
6020
- if (!childrenMatch || childNode) {
6021
- /* istanbul ignore if */
6022
- if ("development" !== 'production' &&
6023
- typeof console !== 'undefined' &&
6024
- !hydrationBailed
6025
- ) {
6026
- hydrationBailed = true;
6027
- console.warn('Parent: ', elm);
6028
- console.warn('Mismatching childNodes vs. VNodes: ', elm.childNodes, children);
6029
- }
6030
- return false
6031
- }
6032
- }
6033
- }
6034
- }
6035
- if (isDef(data)) {
6036
- var fullInvoke = false;
6037
- for (var key in data) {
6038
- if (!isRenderedModule(key)) {
6039
- fullInvoke = true;
6040
- invokeCreateHooks(vnode, insertedVnodeQueue);
6041
- break
6042
- }
6043
- }
6044
- if (!fullInvoke && data['class']) {
6045
- // ensure collecting deps for deep class bindings for future updates
6046
- traverse(data['class']);
6047
  }
6048
  }
6049
- } else if (elm.data !== vnode.text) {
6050
- elm.data = vnode.text;
6051
  }
6052
- return true
6053
- }
6054
 
6055
- function assertNodeMatch (node, vnode, inVPre) {
6056
- if (isDef(vnode.tag)) {
6057
- return vnode.tag.indexOf('vue-component') === 0 || (
6058
- !isUnknownElement$$1(vnode, inVPre) &&
6059
- vnode.tag.toLowerCase() === (node.tagName && node.tagName.toLowerCase())
6060
- )
6061
- } else {
6062
- return node.nodeType === (vnode.isComment ? 8 : 3)
6063
  }
6064
- }
6065
 
6066
- return function patch (oldVnode, vnode, hydrating, removeOnly, parentElm, refElm) {
6067
- if (isUndef(vnode)) {
6068
- if (isDef(oldVnode)) { invokeDestroyHook(oldVnode); }
6069
- return
 
6070
  }
 
 
6071
 
6072
- var isInitialPatch = false;
6073
- var insertedVnodeQueue = [];
6074
 
6075
- if (isUndef(oldVnode)) {
6076
- // empty mount (likely as component), create new root element
6077
- isInitialPatch = true;
6078
- createElm(vnode, insertedVnodeQueue, parentElm, refElm);
 
 
 
 
6079
  } else {
6080
- var isRealElement = isDef(oldVnode.nodeType);
6081
- if (!isRealElement && sameVnode(oldVnode, vnode)) {
6082
- // patch existing root node
6083
- patchVnode(oldVnode, vnode, insertedVnodeQueue, removeOnly);
6084
- } else {
6085
- if (isRealElement) {
6086
- // mounting to a real element
6087
- // check if this is server-rendered content and if we can perform
6088
- // a successful hydration.
6089
- if (oldVnode.nodeType === 1 && oldVnode.hasAttribute(SSR_ATTR)) {
6090
- oldVnode.removeAttribute(SSR_ATTR);
6091
- hydrating = true;
6092
- }
6093
- if (isTrue(hydrating)) {
6094
- if (hydrate(oldVnode, vnode, insertedVnodeQueue)) {
6095
- invokeInsertHook(vnode, insertedVnodeQueue, true);
6096
- return oldVnode
6097
- } else {
6098
- warn(
6099
- 'The client-side rendered virtual DOM tree is not matching ' +
6100
- 'server-rendered content. This is likely caused by incorrect ' +
6101
- 'HTML markup, for example nesting block-level elements inside ' +
6102
- '<p>, or missing <tbody>. Bailing hydration and performing ' +
6103
- 'full client-side render.'
6104
- );
6105
- }
6106
- }
6107
- // either not server-rendered, or hydration failed.
6108
- // create an empty node and replace it
6109
- oldVnode = emptyNodeAt(oldVnode);
6110
  }
 
 
 
 
 
6111
 
6112
- // replacing existing element
6113
- var oldElm = oldVnode.elm;
6114
- var parentElm$1 = nodeOps.parentNode(oldElm);
6115
 
6116
- // create new node
6117
- createElm(
6118
- vnode,
6119
- insertedVnodeQueue,
6120
- // extremely rare edge case: do not insert if old element is in a
6121
- // leaving transition. Only happens when combining transition +
6122
- // keep-alive + HOCs. (#4590)
6123
- oldElm._leaveCb ? null : parentElm$1,
6124
- nodeOps.nextSibling(oldElm)
6125
- );
 
 
 
 
 
6126
 
6127
- // update parent placeholder node element, recursively
6128
- if (isDef(vnode.parent)) {
6129
- var ancestor = vnode.parent;
6130
- var patchable = isPatchable(vnode);
6131
- while (ancestor) {
6132
- for (var i = 0; i < cbs.destroy.length; ++i) {
6133
- cbs.destroy[i](ancestor);
6134
- }
6135
- ancestor.elm = vnode.elm;
6136
- if (patchable) {
6137
- for (var i$1 = 0; i$1 < cbs.create.length; ++i$1) {
6138
- cbs.create[i$1](emptyNode, ancestor);
6139
- }
6140
- // #6513
6141
- // invoke insert hooks that may have been merged by create hooks.
6142
- // e.g. for directives that uses the "inserted" hook.
6143
- var insert = ancestor.data.hook.insert;
6144
- if (insert.merged) {
6145
- // start at index 1 to avoid re-invoking component mounted hook
6146
- for (var i$2 = 1; i$2 < insert.fns.length; i$2++) {
6147
- insert.fns[i$2]();
6148
- }
6149
- }
6150
- } else {
6151
- registerRef(ancestor);
6152
- }
6153
- ancestor = ancestor.parent;
6154
- }
6155
- }
6156
 
6157
- // destroy old node
6158
- if (isDef(parentElm$1)) {
6159
- removeVnodes(parentElm$1, [oldVnode], 0, 0);
6160
- } else if (isDef(oldVnode.tag)) {
6161
- invokeDestroyHook(oldVnode);
6162
- }
6163
- }
6164
  }
6165
 
6166
- invokeInsertHook(vnode, insertedVnodeQueue, isInitialPatch);
6167
- return vnode.elm
6168
- }
6169
- }
6170
 
6171
- /* */
 
6172
 
6173
- var directives = {
6174
- create: updateDirectives,
6175
- update: updateDirectives,
6176
- destroy: function unbindDirectives (vnode) {
6177
- updateDirectives(vnode, emptyNode);
6178
- }
6179
- }
 
6180
 
6181
- function updateDirectives (oldVnode, vnode) {
6182
- if (oldVnode.data.directives || vnode.data.directives) {
6183
- _update(oldVnode, vnode);
 
 
 
 
 
 
 
 
 
 
 
6184
  }
6185
- }
6186
 
6187
- function _update (oldVnode, vnode) {
6188
- var isCreate = oldVnode === emptyNode;
6189
- var isDestroy = vnode === emptyNode;
6190
- var oldDirs = normalizeDirectives$1(oldVnode.data.directives, oldVnode.context);
6191
- var newDirs = normalizeDirectives$1(vnode.data.directives, vnode.context);
 
 
 
6192
 
6193
- var dirsWithInsert = [];
6194
- var dirsWithPostpatch = [];
 
 
 
 
 
 
 
6195
 
6196
- var key, oldDir, dir;
6197
- for (key in newDirs) {
6198
- oldDir = oldDirs[key];
6199
- dir = newDirs[key];
6200
- if (!oldDir) {
6201
- // new directive, bind
6202
- callHook$1(dir, 'bind', vnode, oldVnode);
6203
- if (dir.def && dir.def.inserted) {
6204
- dirsWithInsert.push(dir);
6205
  }
6206
  } else {
6207
- // existing directive, update
6208
- dir.oldValue = oldDir.value;
6209
- callHook$1(dir, 'update', vnode, oldVnode);
6210
- if (dir.def && dir.def.componentUpdated) {
6211
- dirsWithPostpatch.push(dir);
6212
  }
6213
  }
6214
  }
6215
 
6216
- if (dirsWithInsert.length) {
6217
- var callInsert = function () {
6218
- for (var i = 0; i < dirsWithInsert.length; i++) {
6219
- callHook$1(dirsWithInsert[i], 'inserted', vnode, oldVnode);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6220
  }
6221
- };
6222
- if (isCreate) {
6223
- mergeVNodeHook(vnode, 'insert', callInsert);
6224
  } else {
6225
- callInsert();
 
 
 
 
 
 
 
 
 
 
6226
  }
6227
  }
6228
 
6229
- if (dirsWithPostpatch.length) {
6230
- mergeVNodeHook(vnode, 'postpatch', function () {
6231
- for (var i = 0; i < dirsWithPostpatch.length; i++) {
6232
- callHook$1(dirsWithPostpatch[i], 'componentUpdated', vnode, oldVnode);
6233
- }
6234
- });
6235
- }
6236
 
6237
- if (!isCreate) {
6238
- for (key in oldDirs) {
6239
- if (!newDirs[key]) {
6240
- // no longer present, unbind
6241
- callHook$1(oldDirs[key], 'unbind', oldVnode, oldVnode, isDestroy);
 
 
 
 
6242
  }
 
 
 
 
6243
  }
6244
  }
6245
- }
6246
-
6247
- var emptyModifiers = Object.create(null);
6248
 
6249
- function normalizeDirectives$1 (
6250
- dirs,
6251
- vm
6252
- ) {
6253
- var res = Object.create(null);
6254
- if (!dirs) {
6255
- // $flow-disable-line
6256
- return res
6257
- }
6258
- var i, dir;
6259
- for (i = 0; i < dirs.length; i++) {
6260
- dir = dirs[i];
6261
- if (!dir.modifiers) {
6262
- // $flow-disable-line
6263
- dir.modifiers = emptyModifiers;
6264
  }
6265
- res[getRawDirName(dir)] = dir;
6266
- dir.def = resolveAsset(vm.$options, 'directives', dir.name, true);
6267
- }
6268
- // $flow-disable-line
6269
- return res
6270
- }
6271
 
6272
- function getRawDirName (dir) {
6273
- return dir.rawName || ((dir.name) + "." + (Object.keys(dir.modifiers || {}).join('.')))
6274
- }
6275
 
6276
- function callHook$1 (dir, hook, vnode, oldVnode, isDestroy) {
6277
- var fn = dir.def && dir.def[hook];
6278
- if (fn) {
6279
- try {
6280
- fn(vnode.elm, dir, vnode, oldVnode, isDestroy);
6281
- } catch (e) {
6282
- handleError(e, vnode.context, ("directive " + (dir.name) + " " + hook + " hook"));
 
 
 
 
 
 
 
 
 
 
 
6283
  }
6284
  }
6285
- }
6286
-
6287
- var baseModules = [
6288
- ref,
6289
- directives
6290
- ]
6291
 
6292
- /* */
 
 
 
 
 
6293
 
6294
- function updateAttrs (oldVnode, vnode) {
6295
- var opts = vnode.componentOptions;
6296
- if (isDef(opts) && opts.Ctor.options.inheritAttrs === false) {
6297
- return
6298
- }
6299
- if (isUndef(oldVnode.data.attrs) && isUndef(vnode.data.attrs)) {
6300
- return
6301
- }
6302
- var key, cur, old;
6303
- var elm = vnode.elm;
6304
- var oldAttrs = oldVnode.data.attrs || {};
6305
- var attrs = vnode.data.attrs || {};
6306
- // clone observed objects, as the user probably wants to mutate it
6307
- if (isDef(attrs.__ob__)) {
6308
- attrs = vnode.data.attrs = extend({}, attrs);
6309
  }
6310
 
6311
- for (key in attrs) {
6312
- cur = attrs[key];
6313
- old = oldAttrs[key];
6314
- if (old !== cur) {
6315
- setAttr(elm, key, cur);
6316
- }
6317
- }
6318
- // #4391: in IE9, setting type can reset value for input[type=radio]
6319
- // #6666: IE/Edge forces progress value down to 1 before setting a max
6320
- /* istanbul ignore if */
6321
- if ((isIE || isEdge) && attrs.value !== oldAttrs.value) {
6322
- setAttr(elm, 'value', attrs.value);
6323
- }
6324
- for (key in oldAttrs) {
6325
- if (isUndef(attrs[key])) {
6326
- if (isXlink(key)) {
6327
- elm.removeAttributeNS(xlinkNS, getXlinkProp(key));
6328
- } else if (!isEnumeratedAttr(key)) {
6329
- elm.removeAttribute(key);
6330
- }
6331
  }
6332
  }
6333
- }
6334
 
6335
- function setAttr (el, key, value) {
6336
- if (el.tagName.indexOf('-') > -1) {
6337
- baseSetAttr(el, key, value);
6338
- } else if (isBooleanAttr(key)) {
6339
- // set attribute for blank value
6340
- // e.g. <option disabled>Select one</option>
6341
- if (isFalsyAttrValue(value)) {
6342
- el.removeAttribute(key);
6343
- } else {
6344
- // technically allowfullscreen is a boolean attribute for <iframe>,
6345
- // but Flash expects a value of "true" when used on <embed> tag
6346
- value = key === 'allowfullscreen' && el.tagName === 'EMBED'
6347
- ? 'true'
6348
- : key;
6349
- el.setAttribute(key, value);
6350
  }
6351
- } else if (isEnumeratedAttr(key)) {
6352
- el.setAttribute(key, isFalsyAttrValue(value) || value === 'false' ? 'false' : 'true');
6353
- } else if (isXlink(key)) {
6354
- if (isFalsyAttrValue(value)) {
6355
- el.removeAttributeNS(xlinkNS, getXlinkProp(key));
6356
- } else {
6357
- el.setAttributeNS(xlinkNS, key, value);
6358
- }
6359
- } else {
6360
- baseSetAttr(el, key, value);
6361
  }
6362
- }
6363
 
6364
- function baseSetAttr (el, key, value) {
6365
- if (isFalsyAttrValue(value)) {
6366
- el.removeAttribute(key);
6367
- } else {
6368
- // #7138: IE10 & 11 fires input event when setting placeholder on
6369
- // <textarea>... block the first input event and remove the blocker
6370
- // immediately.
6371
- /* istanbul ignore if */
6372
- if (
6373
- isIE && !isIE9 &&
6374
- el.tagName === 'TEXTAREA' &&
6375
- key === 'placeholder' && !el.__ieph
6376
- ) {
6377
- var blocker = function (e) {
6378
- e.stopImmediatePropagation();
6379
- el.removeEventListener('input', blocker);
6380
- };
6381
- el.addEventListener('input', blocker);
6382
- // $flow-disable-line
6383
- el.__ieph = true; /* IE placeholder patched */
6384
- }
6385
- el.setAttribute(key, value);
 
 
 
 
 
 
 
6386
  }
6387
- }
6388
 
6389
- var attrs = {
6390
- create: updateAttrs,
6391
- update: updateAttrs
6392
- }
6393
 
6394
- /* */
 
 
 
 
 
 
 
 
6395
 
6396
- function updateClass (oldVnode, vnode) {
6397
- var el = vnode.elm;
6398
- var data = vnode.data;
6399
- var oldData = oldVnode.data;
6400
- if (
6401
- isUndef(data.staticClass) &&
6402
- isUndef(data.class) && (
6403
- isUndef(oldData) || (
6404
- isUndef(oldData.staticClass) &&
6405
- isUndef(oldData.class)
6406
- )
6407
- )
6408
- ) {
6409
- return
6410
- }
6411
-
6412
- var cls = genClassForVnode(vnode);
6413
-
6414
- // handle transition classes
6415
- var transitionClass = el._transitionClasses;
6416
- if (isDef(transitionClass)) {
6417
- cls = concat(cls, stringifyClass(transitionClass));
6418
- }
6419
-
6420
- // set the class
6421
- if (cls !== el._prevClass) {
6422
- el.setAttribute('class', cls);
6423
- el._prevClass = cls;
6424
- }
6425
- }
6426
-
6427
- var klass = {
6428
- create: updateClass,
6429
- update: updateClass
6430
- }
6431
-
6432
- /* */
6433
-
6434
- var validDivisionCharRE = /[\w).+\-_$\]]/;
6435
-
6436
- function parseFilters (exp) {
6437
- var inSingle = false;
6438
- var inDouble = false;
6439
- var inTemplateString = false;
6440
- var inRegex = false;
6441
- var curly = 0;
6442
- var square = 0;
6443
- var paren = 0;
6444
- var lastFilterIndex = 0;
6445
- var c, prev, i, expression, filters;
6446
-
6447
- for (i = 0; i < exp.length; i++) {
6448
- prev = c;
6449
- c = exp.charCodeAt(i);
6450
- if (inSingle) {
6451
- if (c === 0x27 && prev !== 0x5C) { inSingle = false; }
6452
- } else if (inDouble) {
6453
- if (c === 0x22 && prev !== 0x5C) { inDouble = false; }
6454
- } else if (inTemplateString) {
6455
- if (c === 0x60 && prev !== 0x5C) { inTemplateString = false; }
6456
- } else if (inRegex) {
6457
- if (c === 0x2f && prev !== 0x5C) { inRegex = false; }
6458
- } else if (
6459
- c === 0x7C && // pipe
6460
- exp.charCodeAt(i + 1) !== 0x7C &&
6461
- exp.charCodeAt(i - 1) !== 0x7C &&
6462
- !curly && !square && !paren
6463
- ) {
6464
- if (expression === undefined) {
6465
- // first filter, end of expression
6466
- lastFilterIndex = i + 1;
6467
- expression = exp.slice(0, i).trim();
6468
- } else {
6469
- pushFilter();
6470
  }
6471
  } else {
6472
- switch (c) {
6473
- case 0x22: inDouble = true; break // "
6474
- case 0x27: inSingle = true; break // '
6475
- case 0x60: inTemplateString = true; break // `
6476
- case 0x28: paren++; break // (
6477
- case 0x29: paren--; break // )
6478
- case 0x5B: square++; break // [
6479
- case 0x5D: square--; break // ]
6480
- case 0x7B: curly++; break // {
6481
- case 0x7D: curly--; break // }
6482
- }
6483
- if (c === 0x2f) { // /
6484
- var j = i - 1;
6485
- var p = (void 0);
6486
- // find first non-whitespace prev char
6487
- for (; j >= 0; j--) {
6488
- p = exp.charAt(j);
6489
- if (p !== ' ') { break }
6490
- }
6491
- if (!p || !validDivisionCharRE.test(p)) {
6492
- inRegex = true;
6493
- }
6494
- }
6495
  }
6496
  }
6497
 
6498
- if (expression === undefined) {
6499
- expression = exp.slice(0, i).trim();
6500
- } else if (lastFilterIndex !== 0) {
6501
- pushFilter();
6502
- }
6503
 
6504
- function pushFilter () {
6505
- (filters || (filters = [])).push(exp.slice(lastFilterIndex, i).trim());
6506
- lastFilterIndex = i + 1;
6507
  }
6508
 
6509
- if (filters) {
6510
- for (i = 0; i < filters.length; i++) {
6511
- expression = wrapFilter(expression, filters[i]);
6512
- }
 
 
6513
  }
6514
 
6515
- return expression
6516
- }
6517
-
6518
- function wrapFilter (exp, filter) {
6519
- var i = filter.indexOf('(');
6520
- if (i < 0) {
6521
- // _f: resolveFilter
6522
- return ("_f(\"" + filter + "\")(" + exp + ")")
6523
- } else {
6524
- var name = filter.slice(0, i);
6525
- var args = filter.slice(i + 1);
6526
- return ("_f(\"" + name + "\")(" + exp + (args !== ')' ? ',' + args : args))
6527
- }
6528
- }
6529
-
6530
- /* */
6531
-
6532
- function baseWarn (msg) {
6533
- console.error(("[Vue compiler]: " + msg));
6534
- }
6535
-
6536
- function pluckModuleFunction (
6537
- modules,
6538
- key
6539
- ) {
6540
- return modules
6541
- ? modules.map(function (m) { return m[key]; }).filter(function (_) { return _; })
6542
- : []
6543
- }
6544
-
6545
- function addProp (el, name, value) {
6546
- (el.props || (el.props = [])).push({ name: name, value: value });
6547
- el.plain = false;
6548
- }
6549
-
6550
- function addAttr (el, name, value) {
6551
- (el.attrs || (el.attrs = [])).push({ name: name, value: value });
6552
- el.plain = false;
6553
- }
6554
-
6555
- // add a raw attr (use this in preTransforms)
6556
- function addRawAttr (el, name, value) {
6557
- el.attrsMap[name] = value;
6558
- el.attrsList.push({ name: name, value: value });
6559
- }
6560
-
6561
- function addDirective (
6562
- el,
6563
- name,
6564
- rawName,
6565
- value,
6566
- arg,
6567
- modifiers
6568
- ) {
6569
- (el.directives || (el.directives = [])).push({ name: name, rawName: rawName, value: value, arg: arg, modifiers: modifiers });
6570
- el.plain = false;
6571
- }
6572
-
6573
- function addHandler (
6574
- el,
6575
- name,
6576
- value,
6577
- modifiers,
6578
- important,
6579
- warn
6580
- ) {
6581
- modifiers = modifiers || emptyObject;
6582
- // warn prevent and passive modifier
6583
- /* istanbul ignore if */
6584
- if (
6585
- "development" !== 'production' && warn &&
6586
- modifiers.prevent && modifiers.passive
6587
- ) {
6588
- warn(
6589
- 'passive and prevent can\'t be used together. ' +
6590
- 'Passive handler can\'t prevent default event.'
6591
- );
6592
- }
6593
 
6594
- // check capture modifier
6595
- if (modifiers.capture) {
6596
- delete modifiers.capture;
6597
- name = '!' + name; // mark the event as captured
6598
- }
6599
- if (modifiers.once) {
6600
- delete modifiers.once;
6601
- name = '~' + name; // mark the event as once
6602
- }
6603
- /* istanbul ignore if */
6604
- if (modifiers.passive) {
6605
- delete modifiers.passive;
6606
- name = '&' + name; // mark the event as passive
6607
- }
6608
 
6609
- // normalize click.right and click.middle since they don't actually fire
6610
- // this is technically browser-specific, but at least for now browsers are
6611
- // the only target envs that have right/middle clicks.
6612
- if (name === 'click') {
6613
- if (modifiers.right) {
6614
- name = 'contextmenu';
6615
- delete modifiers.right;
6616
- } else if (modifiers.middle) {
6617
- name = 'mouseup';
6618
  }
6619
- }
6620
 
6621
- var events;
6622
- if (modifiers.native) {
6623
- delete modifiers.native;
6624
- events = el.nativeEvents || (el.nativeEvents = {});
6625
- } else {
6626
- events = el.events || (el.events = {});
6627
- }
6628
 
6629
- var newHandler = {
6630
- value: value.trim()
6631
- };
6632
- if (modifiers !== emptyObject) {
6633
- newHandler.modifiers = modifiers;
6634
- }
6635
 
6636
- var handlers = events[name];
6637
- /* istanbul ignore if */
6638
- if (Array.isArray(handlers)) {
6639
- important ? handlers.unshift(newHandler) : handlers.push(newHandler);
6640
- } else if (handlers) {
6641
- events[name] = important ? [newHandler, handlers] : [handlers, newHandler];
6642
- } else {
6643
- events[name] = newHandler;
6644
- }
6645
-
6646
- el.plain = false;
6647
- }
6648
-
6649
- function getBindingAttr (
6650
- el,
6651
- name,
6652
- getStatic
6653
- ) {
6654
- var dynamicValue =
6655
- getAndRemoveAttr(el, ':' + name) ||
6656
- getAndRemoveAttr(el, 'v-bind:' + name);
6657
- if (dynamicValue != null) {
6658
- return parseFilters(dynamicValue)
6659
- } else if (getStatic !== false) {
6660
- var staticValue = getAndRemoveAttr(el, name);
6661
- if (staticValue != null) {
6662
- return JSON.stringify(staticValue)
6663
- }
6664
- }
6665
- }
6666
-
6667
- // note: this only removes the attr from the Array (attrsList) so that it
6668
- // doesn't get processed by processAttrs.
6669
- // By default it does NOT remove it from the map (attrsMap) because the map is
6670
- // needed during codegen.
6671
- function getAndRemoveAttr (
6672
- el,
6673
- name,
6674
- removeFromMap
6675
- ) {
6676
- var val;
6677
- if ((val = el.attrsMap[name]) != null) {
6678
- var list = el.attrsList;
6679
- for (var i = 0, l = list.length; i < l; i++) {
6680
- if (list[i].name === name) {
6681
- list.splice(i, 1);
6682
- break
6683
- }
6684
  }
6685
- }
6686
- if (removeFromMap) {
6687
- delete el.attrsMap[name];
6688
- }
6689
- return val
6690
- }
6691
 
6692
- /* */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6693
 
6694
- /**
6695
- * Cross-platform code generation for component v-model
6696
- */
6697
- function genComponentModel (
6698
- el,
6699
- value,
6700
- modifiers
6701
- ) {
6702
- var ref = modifiers || {};
6703
- var number = ref.number;
6704
- var trim = ref.trim;
6705
-
6706
- var baseValueExpression = '$$v';
6707
- var valueExpression = baseValueExpression;
6708
- if (trim) {
6709
- valueExpression =
6710
- "(typeof " + baseValueExpression + " === 'string'" +
6711
- "? " + baseValueExpression + ".trim()" +
6712
- ": " + baseValueExpression + ")";
6713
- }
6714
- if (number) {
6715
- valueExpression = "_n(" + valueExpression + ")";
6716
- }
6717
- var assignment = genAssignmentCode(value, valueExpression);
6718
-
6719
- el.model = {
6720
- value: ("(" + value + ")"),
6721
- expression: ("\"" + value + "\""),
6722
- callback: ("function (" + baseValueExpression + ") {" + assignment + "}")
6723
- };
6724
- }
6725
 
6726
- /**
6727
- * Cross-platform codegen helper for generating v-model value assignment code.
6728
- */
6729
- function genAssignmentCode (
6730
- value,
6731
- assignment
6732
- ) {
6733
- var res = parseModel(value);
6734
- if (res.key === null) {
6735
- return (value + "=" + assignment)
6736
- } else {
6737
- return ("$set(" + (res.exp) + ", " + (res.key) + ", " + assignment + ")")
6738
- }
6739
- }
6740
-
6741
- /**
6742
- * Parse a v-model expression into a base path and a final key segment.
6743
- * Handles both dot-path and possible square brackets.
6744
- *
6745
- * Possible cases:
6746
- *
6747
- * - test
6748
- * - test[key]
6749
- * - test[test1[key]]
6750
- * - test["a"][key]
6751
- * - xxx.test[a[a].test1[key]]
6752
- * - test.xxx.a["asa"][test1[key]]
6753
- *
6754
- */
6755
 
6756
- var len;
6757
- var str;
6758
- var chr;
6759
- var index$1;
6760
- var expressionPos;
6761
- var expressionEndPos;
 
 
 
 
 
 
 
 
 
6762
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6763
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6764
 
6765
- function parseModel (val) {
6766
- // Fix https://github.com/vuejs/vue/pull/7730
6767
- // allow v-model="obj.val " (trailing whitespace)
6768
- val = val.trim();
6769
- len = val.length;
6770
 
6771
- if (val.indexOf('[') < 0 || val.lastIndexOf(']') < len - 1) {
6772
- index$1 = val.lastIndexOf('.');
6773
- if (index$1 > -1) {
6774
- return {
6775
- exp: val.slice(0, index$1),
6776
- key: '"' + val.slice(index$1 + 1) + '"'
6777
- }
6778
- } else {
6779
- return {
6780
- exp: val,
6781
- key: null
6782
- }
6783
  }
6784
  }
6785
 
6786
- str = val;
6787
- index$1 = expressionPos = expressionEndPos = 0;
6788
 
6789
- while (!eof()) {
6790
- chr = next();
6791
- /* istanbul ignore if */
6792
- if (isStringStart(chr)) {
6793
- parseString(chr);
6794
- } else if (chr === 0x5B) {
6795
- parseBracket(chr);
6796
  }
6797
- }
6798
 
6799
- return {
6800
- exp: val.slice(0, expressionPos),
6801
- key: val.slice(expressionPos + 1, expressionEndPos)
6802
- }
6803
- }
 
 
 
 
6804
 
6805
- function next () {
6806
- return str.charCodeAt(++index$1)
6807
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6808
 
6809
- function eof () {
6810
- return index$1 >= len
6811
- }
6812
 
6813
- function isStringStart (chr) {
6814
- return chr === 0x22 || chr === 0x27
6815
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6816
 
6817
- function parseBracket (chr) {
6818
- var inBracket = 1;
6819
- expressionPos = index$1;
6820
- while (!eof()) {
6821
- chr = next();
6822
- if (isStringStart(chr)) {
6823
- parseString(chr);
6824
- continue
6825
  }
6826
- if (chr === 0x5B) { inBracket++; }
6827
- if (chr === 0x5D) { inBracket--; }
6828
- if (inBracket === 0) {
6829
- expressionEndPos = index$1;
6830
- break
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6831
  }
6832
  }
6833
- }
6834
 
6835
- function parseString (chr) {
6836
- var stringQuote = chr;
6837
- while (!eof()) {
6838
- chr = next();
6839
- if (chr === stringQuote) {
6840
- break
 
 
 
 
 
 
 
 
6841
  }
6842
  }
6843
- }
6844
-
6845
- /* */
6846
-
6847
- var warn$1;
6848
 
6849
- // in some cases, the event used has to be determined at runtime
6850
- // so we used some reserved tokens during compile.
6851
- var RANGE_TOKEN = '__r';
6852
- var CHECKBOX_RADIO_TOKEN = '__c';
6853
-
6854
- function model (
6855
- el,
6856
- dir,
6857
- _warn
6858
- ) {
6859
- warn$1 = _warn;
6860
- var value = dir.value;
6861
- var modifiers = dir.modifiers;
6862
- var tag = el.tag;
6863
- var type = el.attrsMap.type;
6864
 
6865
- {
6866
- // inputs with type="file" are read only and setting the input's
6867
- // value will throw an error.
6868
- if (tag === 'input' && type === 'file') {
6869
- warn$1(
6870
- "<" + (el.tag) + " v-model=\"" + value + "\" type=\"file\">:\n" +
6871
- "File inputs are read only. Use a v-on:change listener instead."
6872
- );
 
 
 
 
 
 
 
 
 
 
 
 
6873
  }
6874
  }
6875
 
6876
- if (el.component) {
6877
- genComponentModel(el, value, modifiers);
6878
- // component v-model doesn't need extra runtime
6879
- return false
6880
- } else if (tag === 'select') {
6881
- genSelect(el, value, modifiers);
6882
- } else if (tag === 'input' && type === 'checkbox') {
6883
- genCheckboxModel(el, value, modifiers);
6884
- } else if (tag === 'input' && type === 'radio') {
6885
- genRadioModel(el, value, modifiers);
6886
- } else if (tag === 'input' || tag === 'textarea') {
6887
- genDefaultModel(el, value, modifiers);
6888
- } else if (!config.isReservedTag(tag)) {
6889
- genComponentModel(el, value, modifiers);
6890
- // component v-model doesn't need extra runtime
6891
- return false
6892
- } else {
6893
- warn$1(
6894
- "<" + (el.tag) + " v-model=\"" + value + "\">: " +
6895
- "v-model is not supported on this element type. " +
6896
- 'If you are working with contenteditable, it\'s recommended to ' +
6897
- 'wrap a library dedicated for that purpose inside a custom component.'
6898
- );
6899
  }
6900
 
6901
- // ensure runtime directive metadata
6902
- return true
6903
- }
6904
-
6905
- function genCheckboxModel (
6906
- el,
6907
- value,
6908
- modifiers
6909
- ) {
6910
- var number = modifiers && modifiers.number;
6911
- var valueBinding = getBindingAttr(el, 'value') || 'null';
6912
- var trueValueBinding = getBindingAttr(el, 'true-value') || 'true';
6913
- var falseValueBinding = getBindingAttr(el, 'false-value') || 'false';
6914
- addProp(el, 'checked',
6915
- "Array.isArray(" + value + ")" +
6916
- "?_i(" + value + "," + valueBinding + ")>-1" + (
6917
- trueValueBinding === 'true'
6918
- ? (":(" + value + ")")
6919
- : (":_q(" + value + "," + trueValueBinding + ")")
6920
- )
6921
- );
6922
- addHandler(el, 'change',
6923
- "var $$a=" + value + "," +
6924
- '$$el=$event.target,' +
6925
- "$$c=$$el.checked?(" + trueValueBinding + "):(" + falseValueBinding + ");" +
6926
- 'if(Array.isArray($$a)){' +
6927
- "var $$v=" + (number ? '_n(' + valueBinding + ')' : valueBinding) + "," +
6928
- '$$i=_i($$a,$$v);' +
6929
- "if($$el.checked){$$i<0&&(" + (genAssignmentCode(value, '$$a.concat([$$v])')) + ")}" +
6930
- "else{$$i>-1&&(" + (genAssignmentCode(value, '$$a.slice(0,$$i).concat($$a.slice($$i+1))')) + ")}" +
6931
- "}else{" + (genAssignmentCode(value, '$$c')) + "}",
6932
- null, true
6933
- );
6934
- }
6935
-
6936
- function genRadioModel (
6937
- el,
6938
- value,
6939
- modifiers
6940
- ) {
6941
- var number = modifiers && modifiers.number;
6942
- var valueBinding = getBindingAttr(el, 'value') || 'null';
6943
- valueBinding = number ? ("_n(" + valueBinding + ")") : valueBinding;
6944
- addProp(el, 'checked', ("_q(" + value + "," + valueBinding + ")"));
6945
- addHandler(el, 'change', genAssignmentCode(value, valueBinding), null, true);
6946
- }
6947
-
6948
- function genSelect (
6949
- el,
6950
- value,
6951
- modifiers
6952
- ) {
6953
- var number = modifiers && modifiers.number;
6954
- var selectedVal = "Array.prototype.filter" +
6955
- ".call($event.target.options,function(o){return o.selected})" +
6956
- ".map(function(o){var val = \"_value\" in o ? o._value : o.value;" +
6957
- "return " + (number ? '_n(val)' : 'val') + "})";
6958
-
6959
- var assignment = '$event.target.multiple ? $$selectedVal : $$selectedVal[0]';
6960
- var code = "var $$selectedVal = " + selectedVal + ";";
6961
- code = code + " " + (genAssignmentCode(value, assignment));
6962
- addHandler(el, 'change', code, null, true);
6963
- }
6964
-
6965
- function genDefaultModel (
6966
- el,
6967
- value,
6968
- modifiers
6969
- ) {
6970
- var type = el.attrsMap.type;
6971
-
6972
- // warn if v-bind:value conflicts with v-model
6973
- // except for inputs with v-bind:type
6974
- {
6975
- var value$1 = el.attrsMap['v-bind:value'] || el.attrsMap[':value'];
6976
- var typeBinding = el.attrsMap['v-bind:type'] || el.attrsMap[':type'];
6977
- if (value$1 && !typeBinding) {
6978
- var binding = el.attrsMap['v-bind:value'] ? 'v-bind:value' : ':value';
6979
- warn$1(
6980
- binding + "=\"" + value$1 + "\" conflicts with v-model on the same element " +
6981
- 'because the latter already expands to a value binding internally'
6982
- );
6983
  }
6984
- }
6985
 
6986
- var ref = modifiers || {};
6987
- var lazy = ref.lazy;
6988
- var number = ref.number;
6989
- var trim = ref.trim;
6990
- var needCompositionGuard = !lazy && type !== 'range';
6991
- var event = lazy
6992
- ? 'change'
6993
- : type === 'range'
6994
- ? RANGE_TOKEN
6995
- : 'input';
6996
 
6997
- var valueExpression = '$event.target.value';
6998
- if (trim) {
6999
- valueExpression = "$event.target.value.trim()";
7000
- }
7001
- if (number) {
7002
- valueExpression = "_n(" + valueExpression + ")";
7003
- }
7004
 
7005
- var code = genAssignmentCode(value, valueExpression);
7006
- if (needCompositionGuard) {
7007
- code = "if($event.target.composing)return;" + code;
7008
- }
 
7009
 
7010
- addProp(el, 'value', ("(" + value + ")"));
7011
- addHandler(el, event, code, null, true);
7012
- if (trim || number) {
7013
- addHandler(el, 'blur', '$forceUpdate()');
 
 
 
 
 
 
 
 
 
 
7014
  }
7015
- }
7016
 
7017
- /* */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7018
 
7019
- // normalize v-model event tokens that can only be determined at runtime.
7020
- // it's important to place the event as the first in the array because
7021
- // the whole point is ensuring the v-model callback gets called before
7022
- // user-attached handlers.
7023
- function normalizeEvents (on) {
7024
- /* istanbul ignore if */
7025
- if (isDef(on[RANGE_TOKEN])) {
7026
- // IE input[type=range] only supports `change` event
7027
- var event = isIE ? 'change' : 'input';
7028
- on[event] = [].concat(on[RANGE_TOKEN], on[event] || []);
7029
- delete on[RANGE_TOKEN];
7030
- }
7031
- // This was originally intended to fix #4521 but no longer necessary
7032
- // after 2.5. Keeping it for backwards compat with generated code from < 2.4
7033
- /* istanbul ignore if */
7034
- if (isDef(on[CHECKBOX_RADIO_TOKEN])) {
7035
- on.change = [].concat(on[CHECKBOX_RADIO_TOKEN], on.change || []);
7036
- delete on[CHECKBOX_RADIO_TOKEN];
7037
- }
7038
- }
7039
-
7040
- var target$1;
7041
-
7042
- function createOnceHandler (handler, event, capture) {
7043
- var _target = target$1; // save current target element in closure
7044
- return function onceHandler () {
7045
- var res = handler.apply(null, arguments);
7046
- if (res !== null) {
7047
- remove$2(event, onceHandler, capture, _target);
7048
- }
7049
- }
7050
- }
7051
-
7052
- function add$1 (
7053
- event,
7054
- handler,
7055
- once$$1,
7056
- capture,
7057
- passive
7058
- ) {
7059
- handler = withMacroTask(handler);
7060
- if (once$$1) { handler = createOnceHandler(handler, event, capture); }
7061
- target$1.addEventListener(
7062
- event,
7063
- handler,
7064
- supportsPassive
7065
- ? { capture: capture, passive: passive }
7066
- : capture
7067
- );
7068
- }
7069
-
7070
- function remove$2 (
7071
- event,
7072
- handler,
7073
- capture,
7074
- _target
7075
- ) {
7076
- (_target || target$1).removeEventListener(
7077
- event,
7078
- handler._withTask || handler,
7079
- capture
7080
- );
7081
- }
7082
-
7083
- function updateDOMListeners (oldVnode, vnode) {
7084
- if (isUndef(oldVnode.data.on) && isUndef(vnode.data.on)) {
7085
- return
7086
- }
7087
- var on = vnode.data.on || {};
7088
- var oldOn = oldVnode.data.on || {};
7089
- target$1 = vnode.elm;
7090
- normalizeEvents(on);
7091
- updateListeners(on, oldOn, add$1, remove$2, vnode.context);
7092
- target$1 = undefined;
7093
- }
7094
-
7095
- var events = {
7096
- create: updateDOMListeners,
7097
- update: updateDOMListeners
7098
- }
7099
-
7100
- /* */
7101
-
7102
- function updateDOMProps (oldVnode, vnode) {
7103
- if (isUndef(oldVnode.data.domProps) && isUndef(vnode.data.domProps)) {
7104
- return
7105
- }
7106
- var key, cur;
7107
- var elm = vnode.elm;
7108
- var oldProps = oldVnode.data.domProps || {};
7109
- var props = vnode.data.domProps || {};
7110
- // clone observed objects, as the user probably wants to mutate it
7111
- if (isDef(props.__ob__)) {
7112
- props = vnode.data.domProps = extend({}, props);
7113
- }
7114
-
7115
- for (key in oldProps) {
7116
- if (isUndef(props[key])) {
7117
- elm[key] = '';
7118
- }
7119
- }
7120
- for (key in props) {
7121
- cur = props[key];
7122
- // ignore children if the node has textContent or innerHTML,
7123
- // as these will throw away existing DOM nodes and cause removal errors
7124
- // on subsequent patches (#3360)
7125
- if (key === 'textContent' || key === 'innerHTML') {
7126
- if (vnode.children) { vnode.children.length = 0; }
7127
- if (cur === oldProps[key]) { continue }
7128
- // #6601 work around Chrome version <= 55 bug where single textNode
7129
- // replaced by innerHTML/textContent retains its parentNode property
7130
- if (elm.childNodes.length === 1) {
7131
- elm.removeChild(elm.childNodes[0]);
7132
- }
7133
- }
7134
-
7135
- if (key === 'value') {
7136
- // store value as _value as well since
7137
- // non-string values will be stringified
7138
- elm._value = cur;
7139
- // avoid resetting cursor position when value is the same
7140
- var strCur = isUndef(cur) ? '' : String(cur);
7141
- if (shouldUpdateValue(elm, strCur)) {
7142
- elm.value = strCur;
7143
  }
7144
- } else {
7145
- elm[key] = cur;
7146
- }
7147
- }
7148
- }
7149
-
7150
- // check platforms/web/util/attrs.js acceptValue
7151
-
7152
-
7153
- function shouldUpdateValue (elm, checkVal) {
7154
- return (!elm.composing && (
7155
- elm.tagName === 'OPTION' ||
7156
- isNotInFocusAndDirty(elm, checkVal) ||
7157
- isDirtyWithModifiers(elm, checkVal)
7158
- ))
7159
- }
7160
-
7161
- function isNotInFocusAndDirty (elm, checkVal) {
7162
- // return true when textbox (.number and .trim) loses focus and its value is
7163
- // not equal to the updated value
7164
- var notInFocus = true;
7165
- // #6157
7166
- // work around IE bug when accessing document.activeElement in an iframe
7167
- try { notInFocus = document.activeElement !== elm; } catch (e) {}
7168
- return notInFocus && elm.value !== checkVal
7169
- }
7170
-
7171
- function isDirtyWithModifiers (elm, newVal) {
7172
- var value = elm.value;
7173
- var modifiers = elm._vModifiers; // injected by v-model runtime
7174
- if (isDef(modifiers)) {
7175
- if (modifiers.lazy) {
7176
- // inputs with lazy should only be updated when not in focus
7177
- return false
7178
  }
7179
- if (modifiers.number) {
7180
- return toNumber(value) !== toNumber(newVal)
7181
- }
7182
- if (modifiers.trim) {
7183
- return value.trim() !== newVal.trim()
 
 
 
 
7184
  }
7185
  }
7186
- return value !== newVal
7187
- }
7188
 
7189
- var domProps = {
7190
- create: updateDOMProps,
7191
- update: updateDOMProps
7192
- }
7193
-
7194
- /* */
7195
-
7196
- var parseStyleText = cached(function (cssText) {
7197
- var res = {};
7198
- var listDelimiter = /;(?![^(]*\))/g;
7199
- var propertyDelimiter = /:(.+)/;
7200
- cssText.split(listDelimiter).forEach(function (item) {
7201
- if (item) {
7202
- var tmp = item.split(propertyDelimiter);
7203
- tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
7204
  }
7205
- });
7206
- return res
7207
- });
7208
-
7209
- // merge static and dynamic style data on the same vnode
7210
- function normalizeStyleData (data) {
7211
- var style = normalizeStyleBinding(data.style);
7212
- // static style is pre-processed into an object during compilation
7213
- // and is always a fresh object, so it's safe to merge into it
7214
- return data.staticStyle
7215
- ? extend(data.staticStyle, style)
7216
- : style
7217
- }
7218
-
7219
- // normalize possible array / string values into Object
7220
- function normalizeStyleBinding (bindingStyle) {
7221
- if (Array.isArray(bindingStyle)) {
7222
- return toObject(bindingStyle)
7223
- }
7224
- if (typeof bindingStyle === 'string') {
7225
- return parseStyleText(bindingStyle)
7226
- }
7227
- return bindingStyle
7228
- }
7229
-
7230
- /**
7231
- * parent component style should be after child's
7232
- * so that parent component's style could override it
7233
- */
7234
- function getStyle (vnode, checkChild) {
7235
- var res = {};
7236
- var styleData;
7237
-
7238
- if (checkChild) {
7239
- var childNode = vnode;
7240
- while (childNode.componentInstance) {
7241
- childNode = childNode.componentInstance._vnode;
7242
- if (
7243
- childNode && childNode.data &&
7244
- (styleData = normalizeStyleData(childNode.data))
7245
- ) {
7246
- extend(res, styleData);
7247
  }
7248
  }
 
 
 
7249
  }
7250
 
7251
- if ((styleData = normalizeStyleData(vnode.data))) {
7252
- extend(res, styleData);
7253
  }
7254
 
7255
- var parentNode = vnode;
7256
- while ((parentNode = parentNode.parent)) {
7257
- if (parentNode.data && (styleData = normalizeStyleData(parentNode.data))) {
7258
- extend(res, styleData);
7259
- }
7260
  }
7261
- return res
7262
- }
7263
-
7264
- /* */
7265
 
7266
- var cssVarRE = /^--/;
7267
- var importantRE = /\s*!important$/;
7268
- var setProp = function (el, name, val) {
7269
- /* istanbul ignore if */
7270
- if (cssVarRE.test(name)) {
7271
- el.style.setProperty(name, val);
7272
- } else if (importantRE.test(val)) {
7273
- el.style.setProperty(name, val.replace(importantRE, ''), 'important');
7274
- } else {
7275
- var normalizedName = normalize(name);
7276
- if (Array.isArray(val)) {
7277
- // Support values array created by autoprefixer, e.g.
7278
- // {display: ["-webkit-box", "-ms-flexbox", "flex"]}
7279
- // Set them one by one, and the browser will only set those it can recognize
7280
- for (var i = 0, len = val.length; i < len; i++) {
7281
- el.style[normalizedName] = val[i];
7282
- }
7283
- } else {
7284
- el.style[normalizedName] = val;
7285
- }
7286
  }
7287
- };
7288
-
7289
- var vendorNames = ['Webkit', 'Moz', 'ms'];
7290
 
7291
- var emptyStyle;
7292
- var normalize = cached(function (prop) {
7293
- emptyStyle = emptyStyle || document.createElement('div').style;
7294
- prop = camelize(prop);
7295
- if (prop !== 'filter' && (prop in emptyStyle)) {
7296
- return prop
7297
  }
7298
- var capName = prop.charAt(0).toUpperCase() + prop.slice(1);
7299
- for (var i = 0; i < vendorNames.length; i++) {
7300
- var name = vendorNames[i] + capName;
7301
- if (name in emptyStyle) {
7302
- return name
7303
- }
7304
  }
7305
- });
7306
 
7307
- function updateStyle (oldVnode, vnode) {
7308
- var data = vnode.data;
7309
- var oldData = oldVnode.data;
7310
 
7311
- if (isUndef(data.staticStyle) && isUndef(data.style) &&
7312
- isUndef(oldData.staticStyle) && isUndef(oldData.style)
7313
- ) {
7314
- return
 
7315
  }
7316
 
7317
- var cur, name;
7318
- var el = vnode.elm;
7319
- var oldStaticStyle = oldData.staticStyle;
7320
- var oldStyleBinding = oldData.normalizedStyle || oldData.style || {};
7321
-
7322
- // if static style exists, stylebinding already merged into it when doing normalizeStyleData
7323
- var oldStyle = oldStaticStyle || oldStyleBinding;
7324
 
7325
- var style = normalizeStyleBinding(vnode.data.style) || {};
 
 
 
 
 
 
 
 
 
 
 
 
7326
 
7327
- // store normalized style under a different key for next diff
7328
- // make sure to clone it if it's reactive, since the user likely wants
7329
- // to mutate it.
7330
- vnode.data.normalizedStyle = isDef(style.__ob__)
7331
- ? extend({}, style)
7332
- : style;
7333
 
7334
- var newStyle = getStyle(vnode, true);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7335
 
7336
- for (name in oldStyle) {
7337
- if (isUndef(newStyle[name])) {
7338
- setProp(el, name, '');
7339
- }
7340
- }
7341
- for (name in newStyle) {
7342
- cur = newStyle[name];
7343
- if (cur !== oldStyle[name]) {
7344
- // ie9 setting to null has no effect, must use empty string
7345
- setProp(el, name, cur == null ? '' : cur);
7346
  }
7347
- }
7348
- }
7349
-
7350
- var style = {
7351
- create: updateStyle,
7352
- update: updateStyle
7353
- }
7354
 
7355
- /* */
 
 
 
7356
 
7357
- /**
7358
- * Add class with compatibility for SVG since classList is not supported on
7359
- * SVG elements in IE
7360
- */
7361
- function addClass (el, cls) {
7362
- /* istanbul ignore if */
7363
- if (!cls || !(cls = cls.trim())) {
7364
- return
7365
- }
 
 
 
 
 
 
 
 
 
 
7366
 
7367
- /* istanbul ignore else */
7368
- if (el.classList) {
7369
- if (cls.indexOf(' ') > -1) {
7370
- cls.split(/\s+/).forEach(function (c) { return el.classList.add(c); });
 
 
7371
  } else {
7372
- el.classList.add(cls);
7373
- }
7374
- } else {
7375
- var cur = " " + (el.getAttribute('class') || '') + " ";
7376
- if (cur.indexOf(' ' + cls + ' ') < 0) {
7377
- el.setAttribute('class', (cur + cls).trim());
7378
  }
7379
  }
7380
- }
7381
-
7382
- /**
7383
- * Remove class with compatibility for SVG since classList is not supported on
7384
- * SVG elements in IE
7385
- */
7386
- function removeClass (el, cls) {
7387
- /* istanbul ignore if */
7388
- if (!cls || !(cls = cls.trim())) {
7389
- return
7390
- }
7391
 
7392
- /* istanbul ignore else */
7393
- if (el.classList) {
7394
- if (cls.indexOf(' ') > -1) {
7395
- cls.split(/\s+/).forEach(function (c) { return el.classList.remove(c); });
7396
- } else {
7397
- el.classList.remove(cls);
7398
  }
7399
- if (!el.classList.length) {
7400
- el.removeAttribute('class');
7401
- }
7402
- } else {
7403
- var cur = " " + (el.getAttribute('class') || '') + " ";
7404
- var tar = ' ' + cls + ' ';
7405
- while (cur.indexOf(tar) >= 0) {
7406
- cur = cur.replace(tar, ' ');
7407
- }
7408
- cur = cur.trim();
7409
- if (cur) {
7410
- el.setAttribute('class', cur);
7411
- } else {
7412
- el.removeAttribute('class');
7413
  }
 
7414
  }
7415
- }
7416
-
7417
- /* */
7418
 
7419
- function resolveTransition (def) {
7420
- if (!def) {
7421
- return
7422
- }
7423
- /* istanbul ignore else */
7424
- if (typeof def === 'object') {
7425
- var res = {};
7426
- if (def.css !== false) {
7427
- extend(res, autoCssTransition(def.name || 'v'));
7428
  }
7429
- extend(res, def);
7430
- return res
7431
- } else if (typeof def === 'string') {
7432
- return autoCssTransition(def)
7433
- }
7434
- }
7435
-
7436
- var autoCssTransition = cached(function (name) {
7437
- return {
7438
- enterClass: (name + "-enter"),
7439
- enterToClass: (name + "-enter-to"),
7440
- enterActiveClass: (name + "-enter-active"),
7441
- leaveClass: (name + "-leave"),
7442
- leaveToClass: (name + "-leave-to"),
7443
- leaveActiveClass: (name + "-leave-active")
7444
- }
7445
- });
7446
-
7447
- var hasTransition = inBrowser && !isIE9;
7448
- var TRANSITION = 'transition';
7449
- var ANIMATION = 'animation';
7450
-
7451
- // Transition property/event sniffing
7452
- var transitionProp = 'transition';
7453
- var transitionEndEvent = 'transitionend';
7454
- var animationProp = 'animation';
7455
- var animationEndEvent = 'animationend';
7456
- if (hasTransition) {
7457
- /* istanbul ignore if */
7458
- if (window.ontransitionend === undefined &&
7459
- window.onwebkittransitionend !== undefined
7460
- ) {
7461
- transitionProp = 'WebkitTransition';
7462
- transitionEndEvent = 'webkitTransitionEnd';
7463
  }
7464
- if (window.onanimationend === undefined &&
7465
- window.onwebkitanimationend !== undefined
7466
- ) {
7467
- animationProp = 'WebkitAnimation';
7468
- animationEndEvent = 'webkitAnimationEnd';
7469
- }
7470
- }
7471
 
7472
- // binding to window is necessary to make hot reload work in IE in strict mode
7473
- var raf = inBrowser
7474
- ? window.requestAnimationFrame
7475
- ? window.requestAnimationFrame.bind(window)
7476
- : setTimeout
7477
- : /* istanbul ignore next */ function (fn) { return fn(); };
7478
-
7479
- function nextFrame (fn) {
7480
- raf(function () {
7481
- raf(fn);
7482
- });
7483
- }
7484
-
7485
- function addTransitionClass (el, cls) {
7486
- var transitionClasses = el._transitionClasses || (el._transitionClasses = []);
7487
- if (transitionClasses.indexOf(cls) < 0) {
7488
- transitionClasses.push(cls);
7489
- addClass(el, cls);
7490
- }
7491
- }
7492
-
7493
- function removeTransitionClass (el, cls) {
7494
- if (el._transitionClasses) {
7495
- remove(el._transitionClasses, cls);
7496
- }
7497
- removeClass(el, cls);
7498
- }
7499
-
7500
- function whenTransitionEnds (
7501
- el,
7502
- expectedType,
7503
- cb
7504
- ) {
7505
- var ref = getTransitionInfo(el, expectedType);
7506
- var type = ref.type;
7507
- var timeout = ref.timeout;
7508
- var propCount = ref.propCount;
7509
- if (!type) { return cb() }
7510
- var event = type === TRANSITION ? transitionEndEvent : animationEndEvent;
7511
- var ended = 0;
7512
- var end = function () {
7513
- el.removeEventListener(event, onEnd);
7514
- cb();
7515
- };
7516
- var onEnd = function (e) {
7517
- if (e.target === el) {
7518
- if (++ended >= propCount) {
7519
- end();
7520
  }
7521
  }
7522
- };
7523
- setTimeout(function () {
7524
- if (ended < propCount) {
7525
- end();
7526
- }
7527
- }, timeout + 1);
7528
- el.addEventListener(event, onEnd);
7529
- }
7530
-
7531
- var transformRE = /\b(transform|all)(,|$)/;
7532
-
7533
- function getTransitionInfo (el, expectedType) {
7534
- var styles = window.getComputedStyle(el);
7535
- var transitionDelays = styles[transitionProp + 'Delay'].split(', ');
7536
- var transitionDurations = styles[transitionProp + 'Duration'].split(', ');
7537
- var transitionTimeout = getTimeout(transitionDelays, transitionDurations);
7538
- var animationDelays = styles[animationProp + 'Delay'].split(', ');
7539
- var animationDurations = styles[animationProp + 'Duration'].split(', ');
7540
- var animationTimeout = getTimeout(animationDelays, animationDurations);
7541
-
7542
- var type;
7543
- var timeout = 0;
7544
- var propCount = 0;
7545
- /* istanbul ignore if */
7546
- if (expectedType === TRANSITION) {
7547
- if (transitionTimeout > 0) {
7548
- type = TRANSITION;
7549
- timeout = transitionTimeout;
7550
- propCount = transitionDurations.length;
7551
- }
7552
- } else if (expectedType === ANIMATION) {
7553
- if (animationTimeout > 0) {
7554
- type = ANIMATION;
7555
- timeout = animationTimeout;
7556
- propCount = animationDurations.length;
7557
- }
7558
- } else {
7559
- timeout = Math.max(transitionTimeout, animationTimeout);
7560
- type = timeout > 0
7561
- ? transitionTimeout > animationTimeout
7562
- ? TRANSITION
7563
- : ANIMATION
7564
- : null;
7565
- propCount = type
7566
- ? type === TRANSITION
7567
- ? transitionDurations.length
7568
- : animationDurations.length
7569
- : 0;
7570
- }
7571
- var hasTransform =
7572
- type === TRANSITION &&
7573
- transformRE.test(styles[transitionProp + 'Property']);
7574
- return {
7575
- type: type,
7576
- timeout: timeout,
7577
- propCount: propCount,
7578
- hasTransform: hasTransform
7579
- }
7580
- }
7581
-
7582
- function getTimeout (delays, durations) {
7583
- /* istanbul ignore next */
7584
- while (delays.length < durations.length) {
7585
- delays = delays.concat(delays);
7586
  }
7587
 
7588
- return Math.max.apply(null, durations.map(function (d, i) {
7589
- return toMs(d) + toMs(delays[i])
7590
- }))
7591
- }
7592
-
7593
- function toMs (s) {
7594
- return Number(s.slice(0, -1)) * 1000
7595
- }
7596
-
7597
- /* */
7598
-
7599
- function enter (vnode, toggleDisplay) {
7600
- var el = vnode.elm;
7601
-
7602
- // call leave callback now
7603
- if (isDef(el._leaveCb)) {
7604
- el._leaveCb.cancelled = true;
7605
- el._leaveCb();
7606
  }
7607
 
7608
- var data = resolveTransition(vnode.data.transition);
7609
- if (isUndef(data)) {
7610
- return
7611
- }
7612
 
7613
- /* istanbul ignore if */
7614
- if (isDef(el._enterCb) || el.nodeType !== 1) {
7615
- return
7616
- }
7617
-
7618
- var css = data.css;
7619
- var type = data.type;
7620
- var enterClass = data.enterClass;
7621
- var enterToClass = data.enterToClass;
7622
- var enterActiveClass = data.enterActiveClass;
7623
- var appearClass = data.appearClass;
7624
- var appearToClass = data.appearToClass;
7625
- var appearActiveClass = data.appearActiveClass;
7626
- var beforeEnter = data.beforeEnter;
7627
- var enter = data.enter;
7628
- var afterEnter = data.afterEnter;
7629
- var enterCancelled = data.enterCancelled;
7630
- var beforeAppear = data.beforeAppear;
7631
- var appear = data.appear;
7632
- var afterAppear = data.afterAppear;
7633
- var appearCancelled = data.appearCancelled;
7634
- var duration = data.duration;
7635
-
7636
- // activeInstance will always be the <transition> component managing this
7637
- // transition. One edge case to check is when the <transition> is placed
7638
- // as the root node of a child component. In that case we need to check
7639
- // <transition>'s parent for appear check.
7640
- var context = activeInstance;
7641
- var transitionNode = activeInstance.$vnode;
7642
- while (transitionNode && transitionNode.parent) {
7643
- transitionNode = transitionNode.parent;
7644
- context = transitionNode.context;
7645
- }
7646
-
7647
- var isAppear = !context._isMounted || !vnode.isRootInsert;
7648
-
7649
- if (isAppear && !appear && appear !== '') {
7650
- return
7651
- }
7652
-
7653
- var startClass = isAppear && appearClass
7654
- ? appearClass
7655
- : enterClass;
7656
- var activeClass = isAppear && appearActiveClass
7657
- ? appearActiveClass
7658
- : enterActiveClass;
7659
- var toClass = isAppear && appearToClass
7660
- ? appearToClass
7661
- : enterToClass;
7662
-
7663
- var beforeEnterHook = isAppear
7664
- ? (beforeAppear || beforeEnter)
7665
- : beforeEnter;
7666
- var enterHook = isAppear
7667
- ? (typeof appear === 'function' ? appear : enter)
7668
- : enter;
7669
- var afterEnterHook = isAppear
7670
- ? (afterAppear || afterEnter)
7671
- : afterEnter;
7672
- var enterCancelledHook = isAppear
7673
- ? (appearCancelled || enterCancelled)
7674
- : enterCancelled;
7675
-
7676
- var explicitEnterDuration = toNumber(
7677
- isObject(duration)
7678
- ? duration.enter
7679
- : duration
7680
- );
7681
 
7682
- if ("development" !== 'production' && explicitEnterDuration != null) {
7683
- checkDuration(explicitEnterDuration, 'enter', vnode);
7684
- }
 
7685
 
7686
- var expectsCSS = css !== false && !isIE9;
7687
- var userWantsControl = getHookArgumentsLength(enterHook);
7688
 
7689
- var cb = el._enterCb = once(function () {
7690
- if (expectsCSS) {
7691
- removeTransitionClass(el, toClass);
7692
- removeTransitionClass(el, activeClass);
7693
- }
7694
- if (cb.cancelled) {
7695
- if (expectsCSS) {
7696
- removeTransitionClass(el, startClass);
7697
  }
7698
- enterCancelledHook && enterCancelledHook(el);
7699
- } else {
7700
- afterEnterHook && afterEnterHook(el);
7701
- }
7702
- el._enterCb = null;
7703
- });
7704
 
7705
- if (!vnode.data.show) {
7706
- // remove pending leave element on enter by injecting an insert hook
7707
- mergeVNodeHook(vnode, 'insert', function () {
7708
- var parent = el.parentNode;
7709
- var pendingNode = parent && parent._pending && parent._pending[vnode.key];
7710
- if (pendingNode &&
7711
- pendingNode.tag === vnode.tag &&
7712
- pendingNode.elm._leaveCb
7713
- ) {
7714
- pendingNode.elm._leaveCb();
7715
  }
7716
- enterHook && enterHook(el, cb);
7717
- });
7718
- }
7719
 
7720
- // start enter transition
7721
- beforeEnterHook && beforeEnterHook(el);
7722
- if (expectsCSS) {
7723
- addTransitionClass(el, startClass);
7724
- addTransitionClass(el, activeClass);
7725
- nextFrame(function () {
7726
- removeTransitionClass(el, startClass);
7727
- if (!cb.cancelled) {
7728
- addTransitionClass(el, toClass);
7729
- if (!userWantsControl) {
7730
- if (isValidDuration(explicitEnterDuration)) {
7731
- setTimeout(cb, explicitEnterDuration);
7732
- } else {
7733
- whenTransitionEnds(el, type, cb);
7734
- }
7735
- }
7736
  }
7737
- });
7738
- }
7739
 
7740
- if (vnode.data.show) {
7741
- toggleDisplay && toggleDisplay();
7742
- enterHook && enterHook(el, cb);
7743
- }
7744
 
7745
- if (!expectsCSS && !userWantsControl) {
7746
- cb();
7747
- }
7748
- }
 
 
 
 
7749
 
7750
- function leave (vnode, rm) {
7751
- var el = vnode.elm;
7752
 
7753
- // call enter callback now
7754
- if (isDef(el._enterCb)) {
7755
- el._enterCb.cancelled = true;
7756
- el._enterCb();
7757
- }
7758
 
7759
- var data = resolveTransition(vnode.data.transition);
7760
- if (isUndef(data) || el.nodeType !== 1) {
7761
- return rm()
7762
- }
 
 
 
7763
 
7764
- /* istanbul ignore if */
7765
- if (isDef(el._leaveCb)) {
7766
- return
7767
- }
7768
-
7769
- var css = data.css;
7770
- var type = data.type;
7771
- var leaveClass = data.leaveClass;
7772
- var leaveToClass = data.leaveToClass;
7773
- var leaveActiveClass = data.leaveActiveClass;
7774
- var beforeLeave = data.beforeLeave;
7775
- var leave = data.leave;
7776
- var afterLeave = data.afterLeave;
7777
- var leaveCancelled = data.leaveCancelled;
7778
- var delayLeave = data.delayLeave;
7779
- var duration = data.duration;
7780
-
7781
- var expectsCSS = css !== false && !isIE9;
7782
- var userWantsControl = getHookArgumentsLength(leave);
7783
-
7784
- var explicitLeaveDuration = toNumber(
7785
- isObject(duration)
7786
- ? duration.leave
7787
- : duration
7788
- );
7789
 
7790
- if ("development" !== 'production' && isDef(explicitLeaveDuration)) {
7791
- checkDuration(explicitLeaveDuration, 'leave', vnode);
7792
- }
 
 
 
 
 
 
 
 
7793
 
7794
- var cb = el._leaveCb = once(function () {
7795
- if (el.parentNode && el.parentNode._pending) {
7796
- el.parentNode._pending[vnode.key] = null;
7797
- }
7798
- if (expectsCSS) {
7799
- removeTransitionClass(el, leaveToClass);
7800
- removeTransitionClass(el, leaveActiveClass);
7801
- }
7802
- if (cb.cancelled) {
7803
- if (expectsCSS) {
7804
- removeTransitionClass(el, leaveClass);
7805
- }
7806
- leaveCancelled && leaveCancelled(el);
7807
- } else {
7808
- rm();
7809
- afterLeave && afterLeave(el);
7810
- }
7811
- el._leaveCb = null;
7812
- });
7813
 
7814
- if (delayLeave) {
7815
- delayLeave(performLeave);
7816
- } else {
7817
- performLeave();
7818
- }
7819
 
7820
- function performLeave () {
7821
- // the delayed leave may have already been cancelled
7822
- if (cb.cancelled) {
7823
- return
7824
- }
7825
- // record leaving element
7826
- if (!vnode.data.show) {
7827
- (el.parentNode._pending || (el.parentNode._pending = {}))[(vnode.key)] = vnode;
7828
- }
7829
- beforeLeave && beforeLeave(el);
7830
- if (expectsCSS) {
7831
- addTransitionClass(el, leaveClass);
7832
- addTransitionClass(el, leaveActiveClass);
7833
- nextFrame(function () {
7834
- removeTransitionClass(el, leaveClass);
7835
- if (!cb.cancelled) {
7836
- addTransitionClass(el, leaveToClass);
7837
- if (!userWantsControl) {
7838
- if (isValidDuration(explicitLeaveDuration)) {
7839
- setTimeout(cb, explicitLeaveDuration);
7840
- } else {
7841
- whenTransitionEnds(el, type, cb);
7842
- }
7843
  }
 
 
 
 
 
7844
  }
7845
- });
7846
- }
7847
- leave && leave(el, cb);
7848
- if (!expectsCSS && !userWantsControl) {
7849
- cb();
7850
- }
7851
- }
7852
- }
7853
 
7854
- // only used in dev mode
7855
- function checkDuration (val, name, vnode) {
7856
- if (typeof val !== 'number') {
7857
- warn(
7858
- "<transition> explicit " + name + " duration is not a valid number - " +
7859
- "got " + (JSON.stringify(val)) + ".",
7860
- vnode.context
7861
- );
7862
- } else if (isNaN(val)) {
7863
- warn(
7864
- "<transition> explicit " + name + " duration is NaN - " +
7865
- 'the duration expression might be incorrect.',
7866
- vnode.context
7867
- );
7868
- }
7869
- }
7870
 
7871
- function isValidDuration (val) {
7872
- return typeof val === 'number' && !isNaN(val)
7873
- }
7874
 
7875
- /**
7876
- * Normalize a transition hook's argument length. The hook may be:
7877
- * - a merged hook (invoker) with the original in .fns
7878
- * - a wrapped component method (check ._length)
7879
- * - a plain function (.length)
7880
- */
7881
- function getHookArgumentsLength (fn) {
7882
- if (isUndef(fn)) {
7883
- return false
7884
- }
7885
- var invokerFns = fn.fns;
7886
- if (isDef(invokerFns)) {
7887
- // invoker
7888
- return getHookArgumentsLength(
7889
- Array.isArray(invokerFns)
7890
- ? invokerFns[0]
7891
- : invokerFns
7892
- )
7893
- } else {
7894
- return (fn._length || fn.length) > 1
7895
- }
7896
- }
7897
 
7898
- function _enter (_, vnode) {
7899
- if (vnode.data.show !== true) {
7900
- enter(vnode);
7901
- }
7902
- }
7903
 
7904
- var transition = inBrowser ? {
7905
- create: _enter,
7906
- activate: _enter,
7907
- remove: function remove$$1 (vnode, rm) {
7908
- /* istanbul ignore else */
7909
- if (vnode.data.show !== true) {
7910
- leave(vnode, rm);
7911
- } else {
7912
- rm();
7913
- }
7914
- }
7915
- } : {}
7916
 
7917
- var platformModules = [
7918
- attrs,
7919
- klass,
7920
- events,
7921
- domProps,
7922
- style,
7923
- transition
7924
- ]
7925
 
7926
- /* */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7927
 
7928
- // the directive module should be applied last, after all
7929
- // built-in modules have been applied.
7930
- var modules = platformModules.concat(baseModules);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7931
 
7932
- var patch = createPatchFunction({ nodeOps: nodeOps, modules: modules });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7933
 
7934
- /**
7935
- * Not type checking this file because flow doesn't like attaching
7936
- * properties to Elements.
7937
- */
7938
 
7939
- /* istanbul ignore if */
7940
- if (isIE9) {
7941
- // http://www.matts411.com/post/internet-explorer-9-oninput/
7942
- document.addEventListener('selectionchange', function () {
7943
- var el = document.activeElement;
7944
- if (el && el.vmodel) {
7945
- trigger(el, 'input');
7946
- }
7947
- });
7948
- }
7949
-
7950
- var directive = {
7951
- inserted: function inserted (el, binding, vnode, oldVnode) {
7952
- if (vnode.tag === 'select') {
7953
- // #6903
7954
- if (oldVnode.elm && !oldVnode.elm._vOptions) {
7955
- mergeVNodeHook(vnode, 'postpatch', function () {
7956
- directive.componentUpdated(el, binding, vnode);
7957
- });
7958
- } else {
7959
- setSelected(el, binding, vnode.context);
7960
  }
7961
- el._vOptions = [].map.call(el.options, getValue);
7962
- } else if (vnode.tag === 'textarea' || isTextInputType(el.type)) {
7963
- el._vModifiers = binding.modifiers;
7964
- if (!binding.modifiers.lazy) {
7965
- el.addEventListener('compositionstart', onCompositionStart);
7966
- el.addEventListener('compositionend', onCompositionEnd);
7967
- // Safari < 10.2 & UIWebView doesn't fire compositionend when
7968
- // switching focus before confirming composition choice
7969
- // this also fixes the issue where some browsers e.g. iOS Chrome
7970
- // fires "change" instead of "input" on autocomplete.
7971
- el.addEventListener('change', onCompositionEnd);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7972
  /* istanbul ignore if */
7973
- if (isIE9) {
7974
- el.vmodel = true;
7975
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7976
  }
7977
  }
7978
- },
7979
 
7980
- componentUpdated: function componentUpdated (el, binding, vnode) {
7981
- if (vnode.tag === 'select') {
7982
- setSelected(el, binding, vnode.context);
7983
- // in case the options rendered by v-for have changed,
7984
- // it's possible that the value is out-of-sync with the rendered options.
7985
- // detect such cases and filter out values that no longer has a matching
7986
- // option in the DOM.
7987
- var prevOptions = el._vOptions;
7988
- var curOptions = el._vOptions = [].map.call(el.options, getValue);
7989
- if (curOptions.some(function (o, i) { return !looseEqual(o, prevOptions[i]); })) {
7990
- // trigger change event if
7991
- // no matching option found for at least one value
7992
- var needReset = el.multiple
7993
- ? binding.value.some(function (v) { return hasNoMatchingOption(v, curOptions); })
7994
- : binding.value !== binding.oldValue && hasNoMatchingOption(binding.value, curOptions);
7995
- if (needReset) {
7996
- trigger(el, 'change');
7997
- }
7998
- }
7999
  }
8000
  }
8001
- };
8002
 
8003
- function setSelected (el, binding, vm) {
8004
- actuallySetSelected(el, binding, vm);
8005
- /* istanbul ignore if */
8006
- if (isIE || isEdge) {
8007
- setTimeout(function () {
8008
- actuallySetSelected(el, binding, vm);
8009
- }, 0);
8010
  }
8011
- }
8012
 
8013
- function actuallySetSelected (el, binding, vm) {
8014
- var value = binding.value;
8015
- var isMultiple = el.multiple;
8016
- if (isMultiple && !Array.isArray(value)) {
8017
- "development" !== 'production' && warn(
8018
- "<select multiple v-model=\"" + (binding.expression) + "\"> " +
8019
- "expects an Array value for its binding, but got " + (Object.prototype.toString.call(value).slice(8, -1)),
8020
- vm
8021
- );
8022
- return
 
8023
  }
8024
- var selected, option;
8025
- for (var i = 0, l = el.options.length; i < l; i++) {
8026
- option = el.options[i];
8027
- if (isMultiple) {
8028
- selected = looseIndexOf(value, getValue(option)) > -1;
8029
- if (option.selected !== selected) {
8030
- option.selected = selected;
8031
- }
8032
- } else {
8033
- if (looseEqual(getValue(option), value)) {
8034
- if (el.selectedIndex !== i) {
8035
- el.selectedIndex = i;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8036
  }
8037
- return
8038
  }
8039
- }
 
 
 
 
 
 
 
 
 
8040
  }
8041
- if (!isMultiple) {
8042
- el.selectedIndex = -1;
8043
- }
8044
- }
8045
-
8046
- function hasNoMatchingOption (value, options) {
8047
- return options.every(function (o) { return !looseEqual(o, value); })
8048
- }
8049
-
8050
- function getValue (option) {
8051
- return '_value' in option
8052
- ? option._value
8053
- : option.value
8054
- }
8055
-
8056
- function onCompositionStart (e) {
8057
- e.target.composing = true;
8058
- }
8059
-
8060
- function onCompositionEnd (e) {
8061
- // prevent triggering an input event for no reason
8062
- if (!e.target.composing) { return }
8063
- e.target.composing = false;
8064
- trigger(e.target, 'input');
8065
- }
8066
-
8067
- function trigger (el, type) {
8068
- var e = document.createEvent('HTMLEvents');
8069
- e.initEvent(type, true, true);
8070
- el.dispatchEvent(e);
8071
- }
8072
-
8073
- /* */
8074
-
8075
- // recursively search for possible transition defined inside the component root
8076
- function locateNode (vnode) {
8077
- return vnode.componentInstance && (!vnode.data || !vnode.data.transition)
8078
- ? locateNode(vnode.componentInstance._vnode)
8079
- : vnode
8080
- }
8081
-
8082
- var show = {
8083
- bind: function bind (el, ref, vnode) {
8084
- var value = ref.value;
8085
-
8086
- vnode = locateNode(vnode);
8087
- var transition$$1 = vnode.data && vnode.data.transition;
8088
- var originalDisplay = el.__vOriginalDisplay =
8089
- el.style.display === 'none' ? '' : el.style.display;
8090
- if (value && transition$$1) {
8091
- vnode.data.show = true;
8092
- enter(vnode, function () {
8093
- el.style.display = originalDisplay;
8094
- });
8095
- } else {
8096
- el.style.display = value ? originalDisplay : 'none';
8097
- }
8098
- },
8099
 
8100
- update: function update (el, ref, vnode) {
8101
- var value = ref.value;
8102
- var oldValue = ref.oldValue;
8103
 
8104
- /* istanbul ignore if */
8105
- if (!value === !oldValue) { return }
8106
- vnode = locateNode(vnode);
8107
- var transition$$1 = vnode.data && vnode.data.transition;
8108
- if (transition$$1) {
8109
- vnode.data.show = true;
8110
- if (value) {
8111
- enter(vnode, function () {
8112
- el.style.display = el.__vOriginalDisplay;
8113
- });
8114
- } else {
8115
- leave(vnode, function () {
8116
- el.style.display = 'none';
8117
- });
8118
- }
8119
- } else {
8120
- el.style.display = value ? el.__vOriginalDisplay : 'none';
8121
- }
8122
- },
8123
 
8124
- unbind: function unbind (
8125
- el,
8126
- binding,
8127
- vnode,
8128
- oldVnode,
8129
- isDestroy
 
 
 
 
 
8130
  ) {
8131
- if (!isDestroy) {
8132
- el.style.display = el.__vOriginalDisplay;
8133
- }
8134
- }
8135
- }
8136
-
8137
- var platformDirectives = {
8138
- model: directive,
8139
- show: show
8140
- }
8141
-
8142
- /* */
8143
-
8144
- // Provides transition support for a single element/component.
8145
- // supports transition mode (out-in / in-out)
8146
-
8147
- var transitionProps = {
8148
- name: String,
8149
- appear: Boolean,
8150
- css: Boolean,
8151
- mode: String,
8152
- type: String,
8153
- enterClass: String,
8154
- leaveClass: String,
8155
- enterToClass: String,
8156
- leaveToClass: String,
8157
- enterActiveClass: String,
8158
- leaveActiveClass: String,
8159
- appearClass: String,
8160
- appearActiveClass: String,
8161
- appearToClass: String,
8162
- duration: [Number, String, Object]
8163
- };
8164
-
8165
- // in case the child is also an abstract component, e.g. <keep-alive>
8166
- // we want to recursively retrieve the real component to be rendered
8167
- function getRealChild (vnode) {
8168
- var compOptions = vnode && vnode.componentOptions;
8169
- if (compOptions && compOptions.Ctor.options.abstract) {
8170
- return getRealChild(getFirstComponentChild(compOptions.children))
8171
- } else {
8172
- return vnode
8173
  }
8174
- }
8175
 
8176
- function extractTransitionData (comp) {
8177
- var data = {};
8178
- var options = comp.$options;
8179
- // props
8180
- for (var key in options.propsData) {
8181
- data[key] = comp[key];
8182
- }
8183
- // events.
8184
- // extract listeners and pass them directly to the transition methods
8185
- var listeners = options._parentListeners;
8186
- for (var key$1 in listeners) {
8187
- data[camelize(key$1)] = listeners[key$1];
8188
- }
8189
- return data
8190
- }
8191
 
8192
- function placeholder (h, rawChild) {
8193
- if (/\d-keep-alive$/.test(rawChild.tag)) {
8194
- return h('keep-alive', {
8195
- props: rawChild.componentOptions.propsData
8196
- })
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8197
  }
8198
- }
8199
 
8200
- function hasParentTransition (vnode) {
8201
- while ((vnode = vnode.parent)) {
8202
- if (vnode.data.transition) {
8203
- return true
8204
  }
 
 
 
 
8205
  }
8206
- }
8207
-
8208
- function isSameChild (child, oldChild) {
8209
- return oldChild.key === child.key && oldChild.tag === child.tag
8210
- }
8211
 
8212
- var Transition = {
8213
- name: 'transition',
8214
- props: transitionProps,
8215
- abstract: true,
 
8216
 
8217
- render: function render (h) {
8218
- var this$1 = this;
8219
 
8220
- var children = this.$slots.default;
8221
- if (!children) {
8222
- return
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8223
  }
8224
 
8225
- // filter out text nodes (possible whitespaces)
8226
- children = children.filter(function (c) { return c.tag || isAsyncPlaceholder(c); });
8227
- /* istanbul ignore if */
8228
- if (!children.length) {
8229
- return
8230
  }
 
8231
 
8232
- // warn multiple elements
8233
- if ("development" !== 'production' && children.length > 1) {
8234
- warn(
8235
- '<transition> can only be used on a single element. Use ' +
8236
- '<transition-group> for lists.',
8237
- this.$parent
8238
- );
8239
  }
 
 
8240
 
8241
- var mode = this.mode;
 
 
 
 
8242
 
8243
- // warn invalid mode
8244
- if ("development" !== 'production' &&
8245
- mode && mode !== 'in-out' && mode !== 'out-in'
8246
- ) {
8247
- warn(
8248
- 'invalid <transition> mode: ' + mode,
8249
- this.$parent
8250
- );
8251
- }
8252
 
8253
- var rawChild = children[0];
8254
 
8255
- // if this is a component root node and the component's
8256
- // parent container node also has transition, skip.
8257
- if (hasParentTransition(this.$vnode)) {
8258
- return rawChild
 
8259
  }
 
8260
 
8261
- // apply transition data to child
8262
- // use getRealChild() to ignore abstract components e.g. keep-alive
8263
- var child = getRealChild(rawChild);
8264
- /* istanbul ignore if */
8265
- if (!child) {
8266
- return rawChild
8267
- }
8268
 
8269
- if (this._leaving) {
8270
- return placeholder(h, rawChild)
8271
- }
 
8272
 
8273
- // ensure a key that is unique to the vnode type and to this transition
8274
- // component instance. This key will be used to remove pending leaving nodes
8275
- // during entering.
8276
- var id = "__transition-" + (this._uid) + "-";
8277
- child.key = child.key == null
8278
- ? child.isComment
8279
- ? id + 'comment'
8280
- : id + child.tag
8281
- : isPrimitive(child.key)
8282
- ? (String(child.key).indexOf(id) === 0 ? child.key : id + child.key)
8283
- : child.key;
8284
 
8285
- var data = (child.data || (child.data = {})).transition = extractTransitionData(this);
8286
- var oldRawChild = this._vnode;
8287
- var oldChild = getRealChild(oldRawChild);
 
 
 
 
 
 
8288
 
8289
- // mark v-show
8290
- // so that the transition module can hand over the control to the directive
8291
- if (child.data.directives && child.data.directives.some(function (d) { return d.name === 'show'; })) {
8292
- child.data.show = true;
8293
- }
8294
 
8295
- if (
8296
- oldChild &&
8297
- oldChild.data &&
8298
- !isSameChild(child, oldChild) &&
8299
- !isAsyncPlaceholder(oldChild) &&
8300
- // #6687 component root is a comment node
8301
- !(oldChild.componentInstance && oldChild.componentInstance._vnode.isComment)
8302
- ) {
8303
- // replace old child transition data with fresh one
8304
- // important for dynamic transitions!
8305
- var oldData = oldChild.data.transition = extend({}, data);
8306
- // handle transition mode
8307
- if (mode === 'out-in') {
8308
- // return placeholder node and queue update when leave finishes
8309
- this._leaving = true;
8310
- mergeVNodeHook(oldData, 'afterLeave', function () {
8311
- this$1._leaving = false;
8312
- this$1.$forceUpdate();
8313
- });
8314
- return placeholder(h, rawChild)
8315
- } else if (mode === 'in-out') {
8316
- if (isAsyncPlaceholder(child)) {
8317
- return oldRawChild
8318
- }
8319
- var delayedLeave;
8320
- var performLeave = function () { delayedLeave(); };
8321
- mergeVNodeHook(data, 'afterEnter', performLeave);
8322
- mergeVNodeHook(data, 'enterCancelled', performLeave);
8323
- mergeVNodeHook(oldData, 'delayLeave', function (leave) { delayedLeave = leave; });
8324
- }
8325
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8326
 
8327
- return rawChild
8328
- }
8329
- }
8330
 
8331
- /* */
 
 
 
 
 
 
 
 
 
 
 
8332
 
8333
- // Provides transition support for list items.
8334
- // supports move transitions using the FLIP technique.
 
 
 
 
 
 
8335
 
8336
- // Because the vdom's children update algorithm is "unstable" - i.e.
8337
- // it doesn't guarantee the relative positioning of removed elements,
8338
- // we force transition-group to update its children into two passes:
8339
- // in the first pass, we remove all nodes that need to be removed,
8340
- // triggering their leaving transition; in the second pass, we insert/move
8341
- // into the final desired state. This way in the second pass removed
8342
- // nodes will remain where they should be.
 
 
 
8343
 
8344
- var props = extend({
8345
- tag: String,
8346
- moveClass: String
8347
- }, transitionProps);
 
 
 
 
 
 
 
 
 
 
 
 
 
8348
 
8349
- delete props.mode;
 
 
8350
 
8351
- var TransitionGroup = {
8352
- props: props,
 
8353
 
8354
- render: function render (h) {
8355
- var tag = this.tag || this.$vnode.data.tag || 'span';
8356
- var map = Object.create(null);
8357
- var prevChildren = this.prevChildren = this.children;
8358
- var rawChildren = this.$slots.default || [];
8359
- var children = this.children = [];
8360
- var transitionData = extractTransitionData(this);
8361
-
8362
- for (var i = 0; i < rawChildren.length; i++) {
8363
- var c = rawChildren[i];
8364
- if (c.tag) {
8365
- if (c.key != null && String(c.key).indexOf('__vlist') !== 0) {
8366
- children.push(c);
8367
- map[c.key] = c
8368
- ;(c.data || (c.data = {})).transition = transitionData;
8369
- } else {
8370
- var opts = c.componentOptions;
8371
- var name = opts ? (opts.Ctor.options.name || opts.tag || '') : c.tag;
8372
- warn(("<transition-group> children must be keyed: <" + name + ">"));
8373
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8374
  }
8375
- }
8376
 
8377
- if (prevChildren) {
8378
- var kept = [];
8379
- var removed = [];
8380
- for (var i$1 = 0; i$1 < prevChildren.length; i$1++) {
8381
- var c$1 = prevChildren[i$1];
8382
- c$1.data.transition = transitionData;
8383
- c$1.data.pos = c$1.elm.getBoundingClientRect();
8384
- if (map[c$1.key]) {
8385
- kept.push(c$1);
8386
- } else {
8387
- removed.push(c$1);
8388
  }
 
8389
  }
8390
- this.kept = h(tag, null, kept);
8391
- this.removed = removed;
8392
  }
8393
 
8394
- return h(tag, null, children)
8395
- },
8396
 
8397
- beforeUpdate: function beforeUpdate () {
8398
- // force removing pass
8399
- this.__patch__(
8400
- this._vnode,
8401
- this.kept,
8402
- false, // hydrating
8403
- true // removeOnly (!important, avoids unnecessary moves)
8404
- );
8405
- this._vnode = this.kept;
8406
- },
8407
 
8408
- updated: function updated () {
8409
- var children = this.prevChildren;
8410
- var moveClass = this.moveClass || ((this.name || 'v') + '-move');
8411
- if (!children.length || !this.hasMove(children[0].elm, moveClass)) {
8412
- return
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8413
  }
8414
 
8415
- // we divide the work into three loops to avoid mixing DOM reads and writes
8416
- // in each iteration - which helps prevent layout thrashing.
8417
- children.forEach(callPendingCbs);
8418
- children.forEach(recordPosition);
8419
- children.forEach(applyTranslation);
8420
 
8421
- // force reflow to put everything in position
8422
- // assign to this to avoid being removed in tree-shaking
8423
- // $flow-disable-line
8424
- this._reflow = document.body.offsetHeight;
8425
-
8426
- children.forEach(function (c) {
8427
- if (c.data.moved) {
8428
- var el = c.elm;
8429
- var s = el.style;
8430
- addTransitionClass(el, moveClass);
8431
- s.transform = s.WebkitTransform = s.transitionDuration = '';
8432
- el.addEventListener(transitionEndEvent, el._moveCb = function cb (e) {
8433
- if (!e || /transform$/.test(e.propertyName)) {
8434
- el.removeEventListener(transitionEndEvent, cb);
8435
- el._moveCb = null;
8436
- removeTransitionClass(el, moveClass);
8437
- }
8438
- });
8439
  }
8440
- });
8441
- },
8442
 
8443
- methods: {
8444
- hasMove: function hasMove (el, moveClass) {
8445
- /* istanbul ignore if */
8446
- if (!hasTransition) {
8447
- return false
8448
- }
8449
- /* istanbul ignore if */
8450
- if (this._hasMove) {
8451
- return this._hasMove
 
 
 
 
 
 
 
 
 
8452
  }
8453
- // Detect whether an element with the move class applied has
8454
- // CSS transitions. Since the element may be inside an entering
8455
- // transition at this very moment, we make a clone of it and remove
8456
- // all other transition classes applied to ensure only the move class
8457
- // is applied.
8458
- var clone = el.cloneNode();
8459
- if (el._transitionClasses) {
8460
- el._transitionClasses.forEach(function (cls) { removeClass(clone, cls); });
8461
  }
8462
- addClass(clone, moveClass);
8463
- clone.style.display = 'none';
8464
- this.$el.appendChild(clone);
8465
- var info = getTransitionInfo(clone);
8466
- this.$el.removeChild(clone);
8467
- return (this._hasMove = info.hasTransform)
8468
- }
8469
- }
8470
- }
8471
 
8472
- function callPendingCbs (c) {
8473
- /* istanbul ignore if */
8474
- if (c.elm._moveCb) {
8475
- c.elm._moveCb();
8476
- }
8477
- /* istanbul ignore if */
8478
- if (c.elm._enterCb) {
8479
- c.elm._enterCb();
8480
- }
8481
- }
8482
-
8483
- function recordPosition (c) {
8484
- c.data.newPos = c.elm.getBoundingClientRect();
8485
- }
8486
-
8487
- function applyTranslation (c) {
8488
- var oldPos = c.data.pos;
8489
- var newPos = c.data.newPos;
8490
- var dx = oldPos.left - newPos.left;
8491
- var dy = oldPos.top - newPos.top;
8492
- if (dx || dy) {
8493
- c.data.moved = true;
8494
- var s = c.elm.style;
8495
- s.transform = s.WebkitTransform = "translate(" + dx + "px," + dy + "px)";
8496
- s.transitionDuration = '0s';
8497
- }
8498
- }
8499
-
8500
- var platformComponents = {
8501
- Transition: Transition,
8502
- TransitionGroup: TransitionGroup
8503
- }
8504
-
8505
- /* */
8506
-
8507
- // install platform specific utils
8508
- Vue.config.mustUseProp = mustUseProp;
8509
- Vue.config.isReservedTag = isReservedTag;
8510
- Vue.config.isReservedAttr = isReservedAttr;
8511
- Vue.config.getTagNamespace = getTagNamespace;
8512
- Vue.config.isUnknownElement = isUnknownElement;
8513
-
8514
- // install platform runtime directives & components
8515
- extend(Vue.options.directives, platformDirectives);
8516
- extend(Vue.options.components, platformComponents);
8517
-
8518
- // install platform patch function
8519
- Vue.prototype.__patch__ = inBrowser ? patch : noop;
8520
-
8521
- // public mount method
8522
- Vue.prototype.$mount = function (
8523
- el,
8524
- hydrating
8525
- ) {
8526
- el = el && inBrowser ? query(el) : undefined;
8527
- return mountComponent(this, el, hydrating)
8528
- };
8529
-
8530
- // devtools global hook
8531
- /* istanbul ignore next */
8532
- if (inBrowser) {
8533
- setTimeout(function () {
8534
- if (config.devtools) {
8535
- if (devtools) {
8536
- devtools.emit('init', Vue);
8537
- } else if (
8538
- "development" !== 'production' &&
8539
- "development" !== 'test' &&
8540
- isChrome
8541
- ) {
8542
- console[console.info ? 'info' : 'log'](
8543
- 'Download the Vue Devtools extension for a better development experience:\n' +
8544
- 'https://github.com/vuejs/vue-devtools'
8545
- );
8546
  }
8547
  }
8548
- if ("development" !== 'production' &&
8549
- "development" !== 'test' &&
8550
- config.productionTip !== false &&
8551
- typeof console !== 'undefined'
8552
- ) {
8553
- console[console.info ? 'info' : 'log'](
8554
- "You are running Vue in development mode.\n" +
8555
- "Make sure to turn on production mode when deploying for production.\n" +
8556
- "See more tips at https://vuejs.org/guide/deployment.html"
8557
- );
8558
- }
8559
- }, 0);
8560
- }
8561
 
8562
- /* */
 
 
 
8563
 
8564
- var defaultTagRE = /\{\{((?:.|\n)+?)\}\}/g;
8565
- var regexEscapeRE = /[-.*+?^${}()|[\]\/\\]/g;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8566
 
8567
- var buildRegex = cached(function (delimiters) {
8568
- var open = delimiters[0].replace(regexEscapeRE, '\\$&');
8569
- var close = delimiters[1].replace(regexEscapeRE, '\\$&');
8570
- return new RegExp(open + '((?:.|\\n)+?)' + close, 'g')
8571
- });
 
 
 
 
 
 
 
 
 
 
 
 
8572
 
 
8573
 
 
 
 
 
 
 
8574
 
8575
- function parseText (
8576
- text,
8577
- delimiters
8578
- ) {
8579
- var tagRE = delimiters ? buildRegex(delimiters) : defaultTagRE;
8580
- if (!tagRE.test(text)) {
8581
- return
8582
- }
8583
- var tokens = [];
8584
- var rawTokens = [];
8585
- var lastIndex = tagRE.lastIndex = 0;
8586
- var match, index, tokenValue;
8587
- while ((match = tagRE.exec(text))) {
8588
- index = match.index;
8589
- // push text token
8590
- if (index > lastIndex) {
8591
- rawTokens.push(tokenValue = text.slice(lastIndex, index));
8592
- tokens.push(JSON.stringify(tokenValue));
8593
- }
8594
- // tag token
8595
- var exp = parseFilters(match[1].trim());
8596
- tokens.push(("_s(" + exp + ")"));
8597
- rawTokens.push({ '@binding': exp });
8598
- lastIndex = index + match[0].length;
8599
- }
8600
- if (lastIndex < text.length) {
8601
- rawTokens.push(tokenValue = text.slice(lastIndex));
8602
- tokens.push(JSON.stringify(tokenValue));
8603
- }
8604
- return {
8605
- expression: tokens.join('+'),
8606
- tokens: rawTokens
8607
- }
8608
- }
8609
 
8610
- /* */
8611
 
8612
- function transformNode (el, options) {
8613
- var warn = options.warn || baseWarn;
8614
- var staticClass = getAndRemoveAttr(el, 'class');
8615
- if ("development" !== 'production' && staticClass) {
8616
- var res = parseText(staticClass, options.delimiters);
8617
- if (res) {
8618
- warn(
8619
- "class=\"" + staticClass + "\": " +
8620
- 'Interpolation inside attributes has been removed. ' +
8621
- 'Use v-bind or the colon shorthand instead. For example, ' +
8622
- 'instead of <div class="{{ val }}">, use <div :class="val">.'
8623
- );
8624
- }
8625
- }
8626
- if (staticClass) {
8627
- el.staticClass = JSON.stringify(staticClass);
8628
- }
8629
- var classBinding = getBindingAttr(el, 'class', false /* getStatic */);
8630
- if (classBinding) {
8631
- el.classBinding = classBinding;
8632
- }
8633
- }
8634
 
8635
- function genData (el) {
8636
- var data = '';
8637
- if (el.staticClass) {
8638
- data += "staticClass:" + (el.staticClass) + ",";
8639
- }
8640
- if (el.classBinding) {
8641
- data += "class:" + (el.classBinding) + ",";
8642
- }
8643
- return data
8644
- }
8645
 
8646
- var klass$1 = {
8647
- staticKeys: ['staticClass'],
8648
- transformNode: transformNode,
8649
- genData: genData
8650
- }
8651
 
8652
- /* */
8653
 
8654
- function transformNode$1 (el, options) {
8655
- var warn = options.warn || baseWarn;
8656
- var staticStyle = getAndRemoveAttr(el, 'style');
8657
- if (staticStyle) {
8658
- /* istanbul ignore if */
8659
- {
8660
- var res = parseText(staticStyle, options.delimiters);
8661
- if (res) {
8662
- warn(
8663
- "style=\"" + staticStyle + "\": " +
8664
- 'Interpolation inside attributes has been removed. ' +
8665
- 'Use v-bind or the colon shorthand instead. For example, ' +
8666
- 'instead of <div style="{{ val }}">, use <div :style="val">.'
8667
- );
8668
- }
 
 
 
 
 
 
 
 
 
8669
  }
8670
- el.staticStyle = JSON.stringify(parseStyleText(staticStyle));
8671
  }
8672
 
8673
- var styleBinding = getBindingAttr(el, 'style', false /* getStatic */);
8674
- if (styleBinding) {
8675
- el.styleBinding = styleBinding;
8676
- }
8677
- }
 
 
 
8678
 
8679
- function genData$1 (el) {
8680
- var data = '';
8681
- if (el.staticStyle) {
8682
- data += "staticStyle:" + (el.staticStyle) + ",";
8683
- }
8684
- if (el.styleBinding) {
8685
- data += "style:(" + (el.styleBinding) + "),";
8686
- }
8687
- return data
8688
- }
8689
 
8690
- var style$1 = {
8691
- staticKeys: ['staticStyle'],
8692
- transformNode: transformNode$1,
8693
- genData: genData$1
8694
- }
8695
 
8696
- /* */
8697
 
8698
- var decoder;
 
 
 
 
 
 
 
8699
 
8700
- var he = {
8701
- decode: function decode (html) {
8702
- decoder = decoder || document.createElement('div');
8703
- decoder.innerHTML = html;
8704
- return decoder.textContent
8705
- }
8706
- }
8707
 
8708
- /* */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8709
 
8710
- var isUnaryTag = makeMap(
8711
- 'area,base,br,col,embed,frame,hr,img,input,isindex,keygen,' +
8712
- 'link,meta,param,source,track,wbr'
8713
- );
 
8714
 
8715
- // Elements that you can, intentionally, leave open
8716
- // (and which close themselves)
8717
- var canBeLeftOpenTag = makeMap(
8718
- 'colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source'
8719
- );
 
 
 
 
 
 
 
8720
 
8721
- // HTML5 tags https://html.spec.whatwg.org/multipage/indices.html#elements-3
8722
- // Phrasing Content https://html.spec.whatwg.org/multipage/dom.html#phrasing-content
8723
- var isNonPhrasingTag = makeMap(
8724
- 'address,article,aside,base,blockquote,body,caption,col,colgroup,dd,' +
8725
- 'details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,' +
8726
- 'h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,' +
8727
- 'optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,' +
8728
- 'title,tr,track'
8729
- );
 
 
 
 
8730
 
8731
- /**
8732
- * Not type-checking this file because it's mostly vendor code.
8733
- */
 
 
 
 
 
 
 
 
 
 
 
 
 
8734
 
8735
- /*!
8736
- * HTML Parser By John Resig (ejohn.org)
8737
- * Modified by Juriy "kangax" Zaytsev
8738
- * Original code by Erik Arvidsson, Mozilla Public License
8739
- * http://erik.eae.net/simplehtmlparser/simplehtmlparser.js
8740
- */
 
 
 
 
 
 
 
8741
 
8742
- // Regular Expressions for parsing tags and attributes
8743
- var attribute = /^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/;
8744
- // could use https://www.w3.org/TR/1999/REC-xml-names-19990114/#NT-QName
8745
- // but for Vue templates we can enforce a simple charset
8746
- var ncname = '[a-zA-Z_][\\w\\-\\.]*';
8747
- var qnameCapture = "((?:" + ncname + "\\:)?" + ncname + ")";
8748
- var startTagOpen = new RegExp(("^<" + qnameCapture));
8749
- var startTagClose = /^\s*(\/?)>/;
8750
- var endTag = new RegExp(("^<\\/" + qnameCapture + "[^>]*>"));
8751
- var doctype = /^<!DOCTYPE [^>]+>/i;
8752
- // #7298: escape - to avoid being pased as HTML comment when inlined in page
8753
- var comment = /^<!\--/;
8754
- var conditionalComment = /^<!\[/;
8755
-
8756
- var IS_REGEX_CAPTURING_BROKEN = false;
8757
- 'x'.replace(/x(.)?/g, function (m, g) {
8758
- IS_REGEX_CAPTURING_BROKEN = g === '';
8759
- });
8760
-
8761
- // Special Elements (can contain anything)
8762
- var isPlainTextElement = makeMap('script,style,textarea', true);
8763
- var reCache = {};
8764
-
8765
- var decodingMap = {
8766
- '&lt;': '<',
8767
- '&gt;': '>',
8768
- '&quot;': '"',
8769
- '&amp;': '&',
8770
- '&#10;': '\n',
8771
- '&#9;': '\t'
8772
- };
8773
- var encodedAttr = /&(?:lt|gt|quot|amp);/g;
8774
- var encodedAttrWithNewLines = /&(?:lt|gt|quot|amp|#10|#9);/g;
8775
-
8776
- // #5992
8777
- var isIgnoreNewlineTag = makeMap('pre,textarea', true);
8778
- var shouldIgnoreFirstNewline = function (tag, html) { return tag && isIgnoreNewlineTag(tag) && html[0] === '\n'; };
8779
-
8780
- function decodeAttr (value, shouldDecodeNewlines) {
8781
- var re = shouldDecodeNewlines ? encodedAttrWithNewLines : encodedAttr;
8782
- return value.replace(re, function (match) { return decodingMap[match]; })
8783
- }
8784
-
8785
- function parseHTML (html, options) {
8786
- var stack = [];
8787
- var expectHTML = options.expectHTML;
8788
- var isUnaryTag$$1 = options.isUnaryTag || no;
8789
- var canBeLeftOpenTag$$1 = options.canBeLeftOpenTag || no;
8790
- var index = 0;
8791
- var last, lastTag;
8792
- while (html) {
8793
- last = html;
8794
- // Make sure we're not in a plaintext content element like script/style
8795
- if (!lastTag || !isPlainTextElement(lastTag)) {
8796
- var textEnd = html.indexOf('<');
8797
- if (textEnd === 0) {
8798
- // Comment:
8799
- if (comment.test(html)) {
8800
- var commentEnd = html.indexOf('-->');
8801
-
8802
- if (commentEnd >= 0) {
8803
- if (options.shouldKeepComment) {
8804
- options.comment(html.substring(4, commentEnd));
8805
- }
8806
- advance(commentEnd + 3);
8807
- continue
8808
- }
8809
  }
8810
 
8811
- // http://en.wikipedia.org/wiki/Conditional_comment#Downlevel-revealed_conditional_comment
8812
- if (conditionalComment.test(html)) {
8813
- var conditionalEnd = html.indexOf(']>');
 
8814
 
8815
- if (conditionalEnd >= 0) {
8816
- advance(conditionalEnd + 2);
8817
- continue
 
 
 
 
8818
  }
 
 
 
 
 
 
 
 
 
 
 
 
8819
  }
8820
 
8821
- // Doctype:
8822
- var doctypeMatch = html.match(doctype);
8823
- if (doctypeMatch) {
8824
- advance(doctypeMatch[0].length);
8825
- continue
 
 
 
8826
  }
8827
 
8828
- // End tag:
8829
- var endTagMatch = html.match(endTag);
8830
- if (endTagMatch) {
8831
- var curIndex = index;
8832
- advance(endTagMatch[0].length);
8833
- parseEndTag(endTagMatch[1], curIndex, index);
8834
- continue
8835
  }
8836
 
8837
- // Start tag:
8838
- var startTagMatch = parseStartTag();
8839
- if (startTagMatch) {
8840
- handleStartTag(startTagMatch);
8841
- if (shouldIgnoreFirstNewline(lastTag, html)) {
8842
- advance(1);
8843
  }
8844
- continue
8845
  }
8846
- }
 
 
 
 
 
 
 
 
 
 
8847
 
8848
- var text = (void 0), rest = (void 0), next = (void 0);
8849
- if (textEnd >= 0) {
8850
- rest = html.slice(textEnd);
8851
- while (
8852
- !endTag.test(rest) &&
8853
- !startTagOpen.test(rest) &&
8854
- !comment.test(rest) &&
8855
- !conditionalComment.test(rest)
8856
- ) {
8857
- // < in plain text, be forgiving and treat it as text
8858
- next = rest.indexOf('<', 1);
8859
- if (next < 0) { break }
8860
- textEnd += next;
8861
- rest = html.slice(textEnd);
8862
  }
8863
- text = html.substring(0, textEnd);
8864
- advance(textEnd);
8865
- }
8866
 
8867
- if (textEnd < 0) {
8868
- text = html;
8869
- html = '';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8870
  }
 
 
 
8871
 
8872
- if (options.chars && text) {
8873
- options.chars(text);
8874
- }
8875
- } else {
8876
- var endTagLength = 0;
8877
- var stackedTag = lastTag.toLowerCase();
8878
- var reStackedTag = reCache[stackedTag] || (reCache[stackedTag] = new RegExp('([\\s\\S]*?)(</' + stackedTag + '[^>]*>)', 'i'));
8879
- var rest$1 = html.replace(reStackedTag, function (all, text, endTag) {
8880
- endTagLength = endTag.length;
8881
- if (!isPlainTextElement(stackedTag) && stackedTag !== 'noscript') {
8882
- text = text
8883
- .replace(/<!\--([\s\S]*?)-->/g, '$1') // #7298
8884
- .replace(/<!\[CDATA\[([\s\S]*?)]]>/g, '$1');
8885
- }
8886
- if (shouldIgnoreFirstNewline(stackedTag, text)) {
8887
- text = text.slice(1);
8888
- }
8889
- if (options.chars) {
8890
- options.chars(text);
8891
- }
8892
- return ''
8893
- });
8894
- index += html.length - rest$1.length;
8895
- html = rest$1;
8896
- parseEndTag(stackedTag, index - endTagLength, index);
8897
  }
 
8898
 
8899
- if (html === last) {
8900
- options.chars && options.chars(html);
8901
- if ("development" !== 'production' && !stack.length && options.warn) {
8902
- options.warn(("Mal-formatted tag at end of template: \"" + html + "\""));
 
 
 
 
 
 
 
 
 
 
8903
  }
8904
- break
 
 
8905
  }
8906
  }
8907
 
8908
- // Clean up any remaining tags
8909
- parseEndTag();
 
 
 
 
 
 
 
 
 
 
 
8910
 
8911
- function advance (n) {
8912
- index += n;
8913
- html = html.substring(n);
 
 
 
 
 
 
8914
  }
8915
 
8916
- function parseStartTag () {
8917
- var start = html.match(startTagOpen);
8918
- if (start) {
8919
- var match = {
8920
- tagName: start[1],
8921
- attrs: [],
8922
- start: index
8923
- };
8924
- advance(start[0].length);
8925
- var end, attr;
8926
- while (!(end = html.match(startTagClose)) && (attr = html.match(attribute))) {
8927
- advance(attr[0].length);
8928
- match.attrs.push(attr);
8929
- }
8930
- if (end) {
8931
- match.unarySlash = end[1];
8932
- advance(end[0].length);
8933
- match.end = index;
8934
- return match
 
 
 
8935
  }
 
8936
  }
8937
  }
8938
 
8939
- function handleStartTag (match) {
8940
- var tagName = match.tagName;
8941
- var unarySlash = match.unarySlash;
8942
-
8943
- if (expectHTML) {
8944
- if (lastTag === 'p' && isNonPhrasingTag(tagName)) {
8945
- parseEndTag(lastTag);
8946
- }
8947
- if (canBeLeftOpenTag$$1(tagName) && lastTag === tagName) {
8948
- parseEndTag(tagName);
8949
- }
8950
  }
 
8951
 
8952
- var unary = isUnaryTag$$1(tagName) || !!unarySlash;
8953
-
8954
- var l = match.attrs.length;
8955
- var attrs = new Array(l);
8956
- for (var i = 0; i < l; i++) {
8957
- var args = match.attrs[i];
8958
- // hackish work around FF bug https://bugzilla.mozilla.org/show_bug.cgi?id=369778
8959
- if (IS_REGEX_CAPTURING_BROKEN && args[0].indexOf('""') === -1) {
8960
- if (args[3] === '') { delete args[3]; }
8961
- if (args[4] === '') { delete args[4]; }
8962
- if (args[5] === '') { delete args[5]; }
8963
  }
8964
- var value = args[3] || args[4] || args[5] || '';
8965
- var shouldDecodeNewlines = tagName === 'a' && args[1] === 'href'
8966
- ? options.shouldDecodeNewlinesForHref
8967
- : options.shouldDecodeNewlines;
8968
- attrs[i] = {
8969
- name: args[1],
8970
- value: decodeAttr(value, shouldDecodeNewlines)
8971
- };
8972
- }
8973
-
8974
- if (!unary) {
8975
- stack.push({ tag: tagName, lowerCasedTag: tagName.toLowerCase(), attrs: attrs });
8976
- lastTag = tagName;
8977
- }
8978
-
8979
- if (options.start) {
8980
- options.start(tagName, attrs, unary, match.start, match.end);
8981
  }
8982
  }
8983
 
8984
- function parseEndTag (tagName, start, end) {
8985
- var pos, lowerCasedTagName;
8986
- if (start == null) { start = index; }
8987
- if (end == null) { end = index; }
8988
 
8989
- if (tagName) {
8990
- lowerCasedTagName = tagName.toLowerCase();
8991
- }
8992
 
8993
- // Find the closest opened tag of the same type
8994
- if (tagName) {
8995
- for (pos = stack.length - 1; pos >= 0; pos--) {
8996
- if (stack[pos].lowerCasedTag === lowerCasedTagName) {
8997
- break
8998
- }
 
 
 
 
 
 
8999
  }
9000
  } else {
9001
- // If no tag name is provided, clean shop
9002
- pos = 0;
9003
  }
 
 
9004
 
9005
- if (pos >= 0) {
9006
- // Close all the open elements, up the stack
9007
- for (var i = stack.length - 1; i >= pos; i--) {
9008
- if ("development" !== 'production' &&
9009
- (i > pos || !tagName) &&
9010
- options.warn
9011
- ) {
9012
- options.warn(
9013
- ("tag <" + (stack[i].tag) + "> has no matching end tag.")
9014
- );
9015
- }
9016
- if (options.end) {
9017
- options.end(stack[i].tag, start, end);
9018
- }
9019
- }
9020
-
9021
- // Remove the open elements from the stack
9022
- stack.length = pos;
9023
- lastTag = pos && stack[pos - 1].tag;
9024
- } else if (lowerCasedTagName === 'br') {
9025
- if (options.start) {
9026
- options.start(tagName, [], true, start, end);
9027
- }
9028
- } else if (lowerCasedTagName === 'p') {
9029
- if (options.start) {
9030
- options.start(tagName, [], false, start, end);
9031
  }
9032
- if (options.end) {
9033
- options.end(tagName, start, end);
 
9034
  }
9035
  }
9036
  }
9037
- }
9038
-
9039
- /* */
9040
-
9041
- var onRE = /^@|^v-on:/;
9042
- var dirRE = /^v-|^@|^:/;
9043
- var forAliasRE = /([^]*?)\s+(?:in|of)\s+([^]*)/;
9044
- var forIteratorRE = /,([^,\}\]]*)(?:,([^,\}\]]*))?$/;
9045
- var stripParensRE = /^\(|\)$/g;
9046
-
9047
- var argRE = /:(.*)$/;
9048
- var bindRE = /^:|^v-bind:/;
9049
- var modifierRE = /\.[^.]+/g;
9050
-
9051
- var decodeHTMLCached = cached(he.decode);
9052
-
9053
- // configurable state
9054
- var warn$2;
9055
- var delimiters;
9056
- var transforms;
9057
- var preTransforms;
9058
- var postTransforms;
9059
- var platformIsPreTag;
9060
- var platformMustUseProp;
9061
- var platformGetTagNamespace;
9062
-
9063
-
9064
 
9065
- function createASTElement (
9066
- tag,
9067
- attrs,
9068
- parent
9069
- ) {
9070
- return {
9071
- type: 1,
9072
- tag: tag,
9073
- attrsList: attrs,
9074
- attrsMap: makeAttrsMap(attrs),
9075
- parent: parent,
9076
- children: []
 
 
9077
  }
9078
- }
9079
-
9080
- /**
9081
- * Convert HTML string to AST.
9082
- */
9083
- function parse (
9084
- template,
9085
- options
9086
- ) {
9087
- warn$2 = options.warn || baseWarn;
9088
-
9089
- platformIsPreTag = options.isPreTag || no;
9090
- platformMustUseProp = options.mustUseProp || no;
9091
- platformGetTagNamespace = options.getTagNamespace || no;
9092
 
9093
- transforms = pluckModuleFunction(options.modules, 'transformNode');
9094
- preTransforms = pluckModuleFunction(options.modules, 'preTransformNode');
9095
- postTransforms = pluckModuleFunction(options.modules, 'postTransformNode');
9096
-
9097
- delimiters = options.delimiters;
9098
-
9099
- var stack = [];
9100
- var preserveWhitespace = options.preserveWhitespace !== false;
9101
- var root;
9102
- var currentParent;
9103
- var inVPre = false;
9104
- var inPre = false;
9105
- var warned = false;
9106
-
9107
- function warnOnce (msg) {
9108
- if (!warned) {
9109
- warned = true;
9110
- warn$2(msg);
9111
  }
9112
  }
9113
 
9114
- function closeElement (element) {
9115
- // check pre state
9116
- if (element.pre) {
9117
- inVPre = false;
9118
- }
9119
- if (platformIsPreTag(element.tag)) {
9120
- inPre = false;
9121
- }
9122
- // apply post-transforms
9123
- for (var i = 0; i < postTransforms.length; i++) {
9124
- postTransforms[i](element, options);
9125
  }
 
9126
  }
9127
 
9128
- parseHTML(template, {
9129
- warn: warn$2,
9130
- expectHTML: options.expectHTML,
9131
- isUnaryTag: options.isUnaryTag,
9132
- canBeLeftOpenTag: options.canBeLeftOpenTag,
9133
- shouldDecodeNewlines: options.shouldDecodeNewlines,
9134
- shouldDecodeNewlinesForHref: options.shouldDecodeNewlinesForHref,
9135
- shouldKeepComment: options.comments,
9136
- start: function start (tag, attrs, unary) {
9137
- // check namespace.
9138
- // inherit parent ns if there is one
9139
- var ns = (currentParent && currentParent.ns) || platformGetTagNamespace(tag);
9140
 
9141
- // handle IE svg bug
 
 
 
 
 
9142
  /* istanbul ignore if */
9143
- if (isIE && ns === 'svg') {
9144
- attrs = guardIESVGBug(attrs);
9145
- }
9146
-
9147
- var element = createASTElement(tag, attrs, currentParent);
9148
- if (ns) {
9149
- element.ns = ns;
 
 
9150
  }
9151
-
9152
- if (isForbiddenTag(element) && !isServerRendering()) {
9153
- element.forbidden = true;
9154
- "development" !== 'production' && warn$2(
9155
- 'Templates should only be responsible for mapping the state to the ' +
9156
- 'UI. Avoid placing tags with side-effects in your templates, such as ' +
9157
- "<" + tag + ">" + ', as they will not be parsed.'
 
 
 
9158
  );
9159
  }
 
 
9160
 
9161
- // apply pre-transforms
9162
- for (var i = 0; i < preTransforms.length; i++) {
9163
- element = preTransforms[i](element, options) || element;
 
 
 
 
 
 
9164
  }
 
9165
 
9166
- if (!inVPre) {
9167
- processPre(element);
9168
- if (element.pre) {
9169
- inVPre = true;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9170
  }
9171
  }
9172
- if (platformIsPreTag(element.tag)) {
9173
- inPre = true;
 
 
 
 
 
 
 
 
 
 
 
9174
  }
9175
- if (inVPre) {
9176
- processRawAttrs(element);
9177
- } else if (!element.processed) {
9178
- // structural directives
9179
- processFor(element);
9180
- processIf(element);
9181
- processOnce(element);
9182
- // element-scope stuff
9183
- processElement(element, options);
 
 
 
 
 
 
 
 
 
 
9184
  }
 
 
9185
 
9186
- function checkRootConstraints (el) {
9187
- {
9188
- if (el.tag === 'slot' || el.tag === 'template') {
9189
- warnOnce(
9190
- "Cannot use <" + (el.tag) + "> as component root element because it may " +
9191
- 'contain multiple nodes.'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9192
  );
9193
  }
9194
- if (el.attrsMap.hasOwnProperty('v-for')) {
9195
- warnOnce(
9196
- 'Cannot use v-for on stateful component root element because ' +
9197
- 'it renders multiple elements.'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9198
  );
9199
  }
9200
  }
 
 
 
 
 
 
 
 
9201
  }
 
 
9202
 
9203
- // tree management
9204
- if (!root) {
9205
- root = element;
9206
- checkRootConstraints(root);
9207
- } else if (!stack.length) {
9208
- // allow root elements with v-if, v-else-if and v-else
9209
- if (root.if && (element.elseif || element.else)) {
9210
- checkRootConstraints(element);
9211
- addIfCondition(root, {
9212
- exp: element.elseif,
9213
- block: element
9214
- });
9215
- } else {
9216
- warnOnce(
9217
- "Component template should contain exactly one root element. " +
9218
- "If you are using v-if on multiple elements, " +
9219
- "use v-else-if to chain them instead."
9220
- );
9221
- }
9222
  }
9223
- if (currentParent && !element.forbidden) {
9224
- if (element.elseif || element.else) {
9225
- processIfConditions(element, currentParent);
9226
- } else if (element.slotScope) { // scoped slot
9227
- currentParent.plain = false;
9228
- var name = element.slotTarget || '"default"';(currentParent.scopedSlots || (currentParent.scopedSlots = {}))[name] = element;
9229
- } else {
9230
- currentParent.children.push(element);
9231
- element.parent = currentParent;
9232
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9233
  }
9234
- if (!unary) {
9235
- currentParent = element;
9236
- stack.push(element);
9237
- } else {
9238
- closeElement(element);
 
 
 
 
 
 
 
 
 
 
 
9239
  }
9240
- },
 
 
9241
 
9242
- end: function end () {
9243
- // remove trailing whitespace
9244
- var element = stack[stack.length - 1];
9245
- var lastNode = element.children[element.children.length - 1];
9246
- if (lastNode && lastNode.type === 3 && lastNode.text === ' ' && !inPre) {
9247
- element.children.pop();
9248
- }
9249
- // pop stack
9250
- stack.length -= 1;
9251
- currentParent = stack[stack.length - 1];
9252
- closeElement(element);
9253
- },
9254
 
9255
- chars: function chars (text) {
9256
- if (!currentParent) {
9257
- {
9258
- if (text === template) {
9259
- warnOnce(
9260
- 'Component template requires a root element, rather than just text.'
9261
- );
9262
- } else if ((text = text.trim())) {
9263
- warnOnce(
9264
- ("text \"" + text + "\" outside root element will be ignored.")
9265
- );
9266
- }
9267
- }
9268
- return
9269
- }
9270
- // IE textarea placeholder bug
9271
- /* istanbul ignore if */
9272
- if (isIE &&
9273
- currentParent.tag === 'textarea' &&
9274
- currentParent.attrsMap.placeholder === text
9275
- ) {
9276
  return
9277
  }
9278
- var children = currentParent.children;
9279
- text = inPre || text.trim()
9280
- ? isTextTag(currentParent) ? text : decodeHTMLCached(text)
9281
- // only preserve whitespace if its not right after a starting tag
9282
- : preserveWhitespace && children.length ? ' ' : '';
9283
- if (text) {
9284
- var res;
9285
- if (!inVPre && text !== ' ' && (res = parseText(text, delimiters))) {
9286
- children.push({
9287
- type: 2,
9288
- expression: res.expression,
9289
- tokens: res.tokens,
9290
- text: text
9291
- });
9292
- } else if (text !== ' ' || !children.length || children[children.length - 1].text !== ' ') {
9293
- children.push({
9294
- type: 3,
9295
- text: text
9296
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9297
  }
 
 
9298
  }
9299
- },
9300
- comment: function comment (text) {
9301
- currentParent.children.push({
9302
- type: 3,
9303
- text: text,
9304
- isComment: true
9305
- });
9306
  }
9307
- });
9308
- return root
9309
- }
9310
-
9311
- function processPre (el) {
9312
- if (getAndRemoveAttr(el, 'v-pre') != null) {
9313
- el.pre = true;
9314
- }
9315
- }
9316
-
9317
- function processRawAttrs (el) {
9318
- var l = el.attrsList.length;
9319
- if (l) {
9320
- var attrs = el.attrs = new Array(l);
9321
- for (var i = 0; i < l; i++) {
9322
- attrs[i] = {
9323
- name: el.attrsList[i].name,
9324
- value: JSON.stringify(el.attrsList[i].value)
9325
- };
9326
- }
9327
- } else if (!el.pre) {
9328
- // non root node in pre blocks with no attributes
9329
- el.plain = true;
9330
  }
9331
- }
9332
 
9333
- function processElement (element, options) {
9334
- processKey(element);
 
 
 
 
 
9335
 
9336
- // determine whether this is a plain element after
9337
- // removing structural attributes
9338
- element.plain = !element.key && !element.attrsList.length;
 
 
9339
 
9340
- processRef(element);
9341
- processSlot(element);
9342
- processComponent(element);
9343
- for (var i = 0; i < transforms.length; i++) {
9344
- element = transforms[i](element, options) || element;
9345
- }
9346
- processAttrs(element);
9347
- }
9348
 
9349
- function processKey (el) {
9350
- var exp = getBindingAttr(el, 'key');
9351
- if (exp) {
9352
- if ("development" !== 'production' && el.tag === 'template') {
9353
- warn$2("<template> cannot be keyed. Place the key on real elements instead.");
9354
  }
9355
- el.key = exp;
9356
  }
9357
- }
9358
 
9359
- function processRef (el) {
9360
- var ref = getBindingAttr(el, 'ref');
9361
- if (ref) {
9362
- el.ref = ref;
9363
- el.refInFor = checkInFor(el);
9364
- }
9365
- }
9366
 
9367
- function processFor (el) {
9368
- var exp;
9369
- if ((exp = getAndRemoveAttr(el, 'v-for'))) {
9370
- var res = parseFor(exp);
9371
- if (res) {
9372
- extend(el, res);
9373
- } else {
9374
- warn$2(
9375
- ("Invalid v-for expression: " + exp)
9376
- );
9377
  }
9378
  }
9379
- }
9380
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9381
 
 
9382
 
9383
- function parseFor (exp) {
9384
- var inMatch = exp.match(forAliasRE);
9385
- if (!inMatch) { return }
9386
- var res = {};
9387
- res.for = inMatch[2].trim();
9388
- var alias = inMatch[1].trim().replace(stripParensRE, '');
9389
- var iteratorMatch = alias.match(forIteratorRE);
9390
- if (iteratorMatch) {
9391
- res.alias = alias.replace(forIteratorRE, '');
9392
- res.iterator1 = iteratorMatch[1].trim();
9393
- if (iteratorMatch[2]) {
9394
- res.iterator2 = iteratorMatch[2].trim();
9395
- }
9396
- } else {
9397
- res.alias = alias;
9398
- }
9399
- return res
9400
- }
9401
-
9402
- function processIf (el) {
9403
- var exp = getAndRemoveAttr(el, 'v-if');
9404
- if (exp) {
9405
- el.if = exp;
9406
- addIfCondition(el, {
9407
- exp: exp,
9408
- block: el
9409
- });
9410
- } else {
9411
- if (getAndRemoveAttr(el, 'v-else') != null) {
9412
- el.else = true;
9413
- }
9414
- var elseif = getAndRemoveAttr(el, 'v-else-if');
9415
- if (elseif) {
9416
- el.elseif = elseif;
9417
- }
9418
- }
9419
- }
9420
 
9421
- function processIfConditions (el, parent) {
9422
- var prev = findPrevElement(parent.children);
9423
- if (prev && prev.if) {
9424
- addIfCondition(prev, {
9425
- exp: el.elseif,
9426
- block: el
9427
- });
9428
- } else {
9429
- warn$2(
9430
- "v-" + (el.elseif ? ('else-if="' + el.elseif + '"') : 'else') + " " +
9431
- "used on element <" + (el.tag) + "> without corresponding v-if."
9432
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9433
  }
9434
- }
9435
 
9436
- function findPrevElement (children) {
9437
- var i = children.length;
9438
- while (i--) {
9439
- if (children[i].type === 1) {
9440
- return children[i]
9441
- } else {
9442
- if ("development" !== 'production' && children[i].text !== ' ') {
9443
- warn$2(
9444
- "text \"" + (children[i].text.trim()) + "\" between v-if and v-else(-if) " +
9445
- "will be ignored."
9446
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9447
  }
9448
- children.pop();
9449
  }
9450
  }
9451
- }
9452
 
9453
- function addIfCondition (el, condition) {
9454
- if (!el.ifConditions) {
9455
- el.ifConditions = [];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9456
  }
9457
- el.ifConditions.push(condition);
9458
- }
9459
 
9460
- function processOnce (el) {
9461
- var once$$1 = getAndRemoveAttr(el, 'v-once');
9462
- if (once$$1 != null) {
9463
- el.once = true;
 
 
 
 
 
 
 
 
 
 
 
9464
  }
9465
- }
9466
 
9467
- function processSlot (el) {
9468
- if (el.tag === 'slot') {
9469
- el.slotName = getBindingAttr(el, 'name');
9470
- if ("development" !== 'production' && el.key) {
9471
- warn$2(
9472
- "`key` does not work on <slot> because slots are abstract outlets " +
9473
- "and can possibly expand into multiple elements. " +
9474
- "Use the key on a wrapping element instead."
9475
- );
9476
- }
9477
- } else {
9478
- var slotScope;
9479
- if (el.tag === 'template') {
9480
- slotScope = getAndRemoveAttr(el, 'scope');
9481
- /* istanbul ignore if */
9482
- if ("development" !== 'production' && slotScope) {
9483
- warn$2(
9484
- "the \"scope\" attribute for scoped slots have been deprecated and " +
9485
- "replaced by \"slot-scope\" since 2.5. The new \"slot-scope\" attribute " +
9486
- "can also be used on plain elements in addition to <template> to " +
9487
- "denote scoped slots.",
9488
- true
9489
- );
9490
  }
9491
- el.slotScope = slotScope || getAndRemoveAttr(el, 'slot-scope');
9492
- } else if ((slotScope = getAndRemoveAttr(el, 'slot-scope'))) {
9493
- /* istanbul ignore if */
9494
- if ("development" !== 'production' && el.attrsMap['v-for']) {
9495
- warn$2(
9496
- "Ambiguous combined usage of slot-scope and v-for on <" + (el.tag) + "> " +
9497
- "(v-for takes higher priority). Use a wrapper <template> for the " +
9498
- "scoped slot to make it clearer.",
9499
- true
9500
- );
9501
  }
9502
- el.slotScope = slotScope;
9503
  }
9504
- var slotTarget = getBindingAttr(el, 'slot');
9505
- if (slotTarget) {
9506
- el.slotTarget = slotTarget === '""' ? '"default"' : slotTarget;
9507
- // preserve slot as an attribute for native shadow DOM compat
9508
- // only for non-scoped slots.
9509
- if (el.tag !== 'template' && !el.slotScope) {
9510
- addAttr(el, 'slot', slotTarget);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9511
  }
9512
  }
 
 
 
 
 
 
9513
  }
9514
- }
9515
 
9516
- function processComponent (el) {
9517
- var binding;
9518
- if ((binding = getBindingAttr(el, 'is'))) {
9519
- el.component = binding;
9520
- }
9521
- if (getAndRemoveAttr(el, 'inline-template') != null) {
9522
- el.inlineTemplate = true;
9523
- }
9524
- }
 
 
 
9525
 
9526
- function processAttrs (el) {
9527
- var list = el.attrsList;
9528
- var i, l, name, rawName, value, modifiers, isProp;
9529
- for (i = 0, l = list.length; i < l; i++) {
9530
- name = rawName = list[i].name;
9531
- value = list[i].value;
9532
- if (dirRE.test(name)) {
9533
- // mark element as dynamic
9534
- el.hasBindings = true;
9535
- // modifiers
9536
- modifiers = parseModifiers(name);
9537
- if (modifiers) {
9538
- name = name.replace(modifierRE, '');
9539
  }
9540
- if (bindRE.test(name)) { // v-bind
9541
- name = name.replace(bindRE, '');
9542
- value = parseFilters(value);
9543
- isProp = false;
9544
- if (modifiers) {
9545
- if (modifiers.prop) {
9546
- isProp = true;
9547
- name = camelize(name);
9548
- if (name === 'innerHtml') { name = 'innerHTML'; }
9549
- }
9550
- if (modifiers.camel) {
9551
- name = camelize(name);
9552
- }
9553
- if (modifiers.sync) {
9554
- addHandler(
9555
- el,
9556
- ("update:" + (camelize(name))),
9557
- genAssignmentCode(value, "$event")
9558
- );
9559
  }
9560
- }
9561
- if (isProp || (
9562
- !el.component && platformMustUseProp(el.tag, el.attrsMap.type, name)
9563
- )) {
9564
- addProp(el, name, value);
 
 
 
9565
  } else {
9566
- addAttr(el, name, value);
9567
- }
9568
- } else if (onRE.test(name)) { // v-on
9569
- name = name.replace(onRE, '');
9570
- addHandler(el, name, value, modifiers, false, warn$2);
9571
- } else { // normal directives
9572
- name = name.replace(dirRE, '');
9573
- // parse arg
9574
- var argMatch = name.match(argRE);
9575
- var arg = argMatch && argMatch[1];
9576
- if (arg) {
9577
- name = name.slice(0, -(arg.length + 1));
9578
- }
9579
- addDirective(el, name, rawName, value, arg, modifiers);
9580
- if ("development" !== 'production' && name === 'model') {
9581
- checkForAliasModel(el, value);
9582
  }
9583
  }
9584
- } else {
9585
- // literal attribute
9586
- {
9587
- var res = parseText(value, delimiters);
9588
- if (res) {
9589
- warn$2(
9590
- name + "=\"" + value + "\": " +
9591
- 'Interpolation inside attributes has been removed. ' +
9592
- 'Use v-bind or the colon shorthand instead. For example, ' +
9593
- 'instead of <div id="{{ val }}">, use <div :id="val">.'
9594
- );
9595
- }
9596
  }
9597
- addAttr(el, name, JSON.stringify(value));
9598
- // #6887 firefox doesn't update muted state if set via attribute
9599
- // even immediately after element creation
9600
- if (!el.component &&
9601
- name === 'muted' &&
9602
- platformMustUseProp(el.tag, el.attrsMap.type, name)) {
9603
- addProp(el, name, 'true');
9604
  }
 
 
 
 
 
 
 
 
9605
  }
9606
  }
9607
- }
9608
 
9609
- function checkInFor (el) {
9610
- var parent = el;
9611
- while (parent) {
9612
- if (parent.for !== undefined) {
9613
- return true
9614
- }
9615
- parent = parent.parent;
 
9616
  }
9617
- return false
9618
- }
9619
 
9620
- function parseModifiers (name) {
9621
- var match = name.match(modifierRE);
9622
- if (match) {
9623
- var ret = {};
9624
- match.forEach(function (m) { ret[m.slice(1)] = true; });
9625
- return ret
 
 
 
 
 
 
 
 
 
9626
  }
9627
- }
9628
 
9629
- function makeAttrsMap (attrs) {
9630
- var map = {};
9631
- for (var i = 0, l = attrs.length; i < l; i++) {
9632
- if (
9633
- "development" !== 'production' &&
9634
- map[attrs[i].name] && !isIE && !isEdge
9635
- ) {
9636
- warn$2('duplicate attribute: ' + attrs[i].name);
9637
  }
9638
- map[attrs[i].name] = attrs[i].value;
9639
  }
9640
- return map
9641
- }
9642
 
9643
- // for script (e.g. type="x/template") or style, do not decode content
9644
- function isTextTag (el) {
9645
- return el.tag === 'script' || el.tag === 'style'
9646
- }
9647
 
9648
- function isForbiddenTag (el) {
9649
- return (
9650
- el.tag === 'style' ||
9651
- (el.tag === 'script' && (
9652
- !el.attrsMap.type ||
9653
- el.attrsMap.type === 'text/javascript'
9654
- ))
9655
- )
9656
- }
9657
 
9658
- var ieNSBug = /^xmlns:NS\d+/;
9659
- var ieNSPrefix = /^NS\d+:/;
9660
 
9661
- /* istanbul ignore next */
9662
- function guardIESVGBug (attrs) {
9663
- var res = [];
9664
- for (var i = 0; i < attrs.length; i++) {
9665
- var attr = attrs[i];
9666
- if (!ieNSBug.test(attr.name)) {
9667
- attr.name = attr.name.replace(ieNSPrefix, '');
9668
- res.push(attr);
9669
- }
9670
- }
9671
- return res
9672
- }
9673
 
9674
- function checkForAliasModel (el, value) {
9675
- var _el = el;
9676
- while (_el) {
9677
- if (_el.for && _el.alias === value) {
9678
- warn$2(
9679
- "<" + (el.tag) + " v-model=\"" + value + "\">: " +
9680
- "You are binding v-model directly to a v-for iteration alias. " +
9681
- "This will not be able to modify the v-for source array because " +
9682
- "writing to the alias is like modifying a function local variable. " +
9683
- "Consider using an array of objects and use v-model on an object property instead."
9684
- );
9685
- }
9686
- _el = _el.parent;
9687
- }
9688
- }
9689
 
9690
- /* */
9691
 
9692
- /**
9693
- * Expand input[v-model] with dyanmic type bindings into v-if-else chains
9694
- * Turn this:
9695
- * <input v-model="data[type]" :type="type">
9696
- * into this:
9697
- * <input v-if="type === 'checkbox'" type="checkbox" v-model="data[type]">
9698
- * <input v-else-if="type === 'radio'" type="radio" v-model="data[type]">
9699
- * <input v-else :type="type" v-model="data[type]">
9700
- */
9701
 
9702
- function preTransformNode (el, options) {
9703
- if (el.tag === 'input') {
9704
- var map = el.attrsMap;
9705
- if (!map['v-model']) {
9706
- return
9707
- }
9708
 
9709
- var typeBinding;
9710
- if (map[':type'] || map['v-bind:type']) {
9711
- typeBinding = getBindingAttr(el, 'type');
9712
- }
9713
- if (!map.type && !typeBinding && map['v-bind']) {
9714
- typeBinding = "(" + (map['v-bind']) + ").type";
9715
- }
9716
-
9717
- if (typeBinding) {
9718
- var ifCondition = getAndRemoveAttr(el, 'v-if', true);
9719
- var ifConditionExtra = ifCondition ? ("&&(" + ifCondition + ")") : "";
9720
- var hasElse = getAndRemoveAttr(el, 'v-else', true) != null;
9721
- var elseIfCondition = getAndRemoveAttr(el, 'v-else-if', true);
9722
- // 1. checkbox
9723
- var branch0 = cloneASTElement(el);
9724
- // process for on the main node
9725
- processFor(branch0);
9726
- addRawAttr(branch0, 'type', 'checkbox');
9727
- processElement(branch0, options);
9728
- branch0.processed = true; // prevent it from double-processed
9729
- branch0.if = "(" + typeBinding + ")==='checkbox'" + ifConditionExtra;
9730
- addIfCondition(branch0, {
9731
- exp: branch0.if,
9732
- block: branch0
9733
- });
9734
- // 2. add radio else-if condition
9735
- var branch1 = cloneASTElement(el);
9736
- getAndRemoveAttr(branch1, 'v-for', true);
9737
- addRawAttr(branch1, 'type', 'radio');
9738
- processElement(branch1, options);
9739
- addIfCondition(branch0, {
9740
- exp: "(" + typeBinding + ")==='radio'" + ifConditionExtra,
9741
- block: branch1
9742
- });
9743
- // 3. other
9744
- var branch2 = cloneASTElement(el);
9745
- getAndRemoveAttr(branch2, 'v-for', true);
9746
- addRawAttr(branch2, ':type', typeBinding);
9747
- processElement(branch2, options);
9748
- addIfCondition(branch0, {
9749
- exp: ifCondition,
9750
- block: branch2
9751
- });
9752
 
9753
- if (hasElse) {
9754
- branch0.else = true;
9755
- } else if (elseIfCondition) {
9756
- branch0.elseif = elseIfCondition;
9757
- }
 
 
 
 
 
 
 
 
9758
 
9759
- return branch0
 
 
 
 
 
 
 
 
 
9760
  }
9761
  }
9762
- }
9763
 
9764
- function cloneASTElement (el) {
9765
- return createASTElement(el.tag, el.attrsList.slice(), el.parent)
9766
- }
9767
-
9768
- var model$2 = {
9769
- preTransformNode: preTransformNode
9770
- }
9771
 
9772
- var modules$1 = [
9773
- klass$1,
9774
- style$1,
9775
- model$2
9776
- ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9777
 
9778
- /* */
 
 
 
 
 
 
 
 
 
9779
 
9780
- function text (el, dir) {
9781
- if (dir.value) {
9782
- addProp(el, 'textContent', ("_s(" + (dir.value) + ")"));
 
 
 
 
 
 
 
 
 
 
9783
  }
9784
- }
9785
 
9786
- /* */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9787
 
9788
- function html (el, dir) {
9789
- if (dir.value) {
9790
- addProp(el, 'innerHTML', ("_s(" + (dir.value) + ")"));
 
 
 
 
 
9791
  }
9792
- }
9793
 
9794
- var directives$1 = {
9795
- model: model,
9796
- text: text,
9797
- html: html
9798
- }
 
 
 
 
 
 
 
 
 
 
 
9799
 
9800
- /* */
 
 
 
 
 
 
 
 
9801
 
9802
- var baseOptions = {
9803
- expectHTML: true,
9804
- modules: modules$1,
9805
- directives: directives$1,
9806
- isPreTag: isPreTag,
9807
- isUnaryTag: isUnaryTag,
9808
- mustUseProp: mustUseProp,
9809
- canBeLeftOpenTag: canBeLeftOpenTag,
9810
- isReservedTag: isReservedTag,
9811
- getTagNamespace: getTagNamespace,
9812
- staticKeys: genStaticKeys(modules$1)
9813
- };
 
 
 
 
 
 
 
 
 
 
 
 
9814
 
9815
- /* */
 
 
 
 
 
9816
 
9817
- var isStaticKey;
9818
- var isPlatformReservedTag;
9819
 
9820
- var genStaticKeysCached = cached(genStaticKeys$1);
 
 
 
9821
 
9822
- /**
9823
- * Goal of the optimizer: walk the generated template AST tree
9824
- * and detect sub-trees that are purely static, i.e. parts of
9825
- * the DOM that never needs to change.
9826
- *
9827
- * Once we detect these sub-trees, we can:
9828
- *
9829
- * 1. Hoist them into constants, so that we no longer need to
9830
- * create fresh nodes for them on each re-render;
9831
- * 2. Completely skip them in the patching process.
9832
- */
9833
- function optimize (root, options) {
9834
- if (!root) { return }
9835
- isStaticKey = genStaticKeysCached(options.staticKeys || '');
9836
- isPlatformReservedTag = options.isReservedTag || no;
9837
- // first pass: mark all non-static nodes.
9838
- markStatic$1(root);
9839
- // second pass: mark static roots.
9840
- markStaticRoots(root, false);
9841
- }
9842
-
9843
- function genStaticKeys$1 (keys) {
9844
- return makeMap(
9845
- 'type,tag,attrsList,attrsMap,plain,parent,children,attrs' +
9846
- (keys ? ',' + keys : '')
9847
- )
9848
- }
9849
-
9850
- function markStatic$1 (node) {
9851
- node.static = isStatic(node);
9852
- if (node.type === 1) {
9853
- // do not make component slot content static. this avoids
9854
- // 1. components not able to mutate slot nodes
9855
- // 2. static slot content fails for hot-reloading
9856
- if (
9857
- !isPlatformReservedTag(node.tag) &&
9858
- node.tag !== 'slot' &&
9859
- node.attrsMap['inline-template'] == null
9860
- ) {
9861
- return
9862
  }
9863
- for (var i = 0, l = node.children.length; i < l; i++) {
9864
- var child = node.children[i];
9865
- markStatic$1(child);
9866
- if (!child.static) {
9867
- node.static = false;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9868
  }
9869
- }
9870
- if (node.ifConditions) {
9871
- for (var i$1 = 1, l$1 = node.ifConditions.length; i$1 < l$1; i$1++) {
9872
- var block = node.ifConditions[i$1].block;
9873
- markStatic$1(block);
9874
- if (!block.static) {
9875
- node.static = false;
9876
- }
9877
  }
9878
  }
 
 
 
9879
  }
9880
- }
9881
 
9882
- function markStaticRoots (node, isInFor) {
9883
- if (node.type === 1) {
9884
- if (node.static || node.once) {
9885
- node.staticInFor = isInFor;
9886
- }
9887
- // For a node to qualify as a static root, it should have children that
9888
- // are not just static text. Otherwise the cost of hoisting out will
9889
- // outweigh the benefits and it's better off to just always render it fresh.
9890
- if (node.static && node.children.length && !(
9891
- node.children.length === 1 &&
9892
- node.children[0].type === 3
9893
- )) {
9894
- node.staticRoot = true;
9895
- return
9896
- } else {
9897
- node.staticRoot = false;
9898
  }
9899
- if (node.children) {
9900
- for (var i = 0, l = node.children.length; i < l; i++) {
9901
- markStaticRoots(node.children[i], isInFor || !!node.for);
9902
- }
9903
  }
9904
- if (node.ifConditions) {
9905
- for (var i$1 = 1, l$1 = node.ifConditions.length; i$1 < l$1; i$1++) {
9906
- markStaticRoots(node.ifConditions[i$1].block, isInFor);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9907
  }
9908
  }
 
 
 
 
9909
  }
9910
- }
9911
 
9912
- function isStatic (node) {
9913
- if (node.type === 2) { // expression
 
 
 
 
 
9914
  return false
9915
  }
9916
- if (node.type === 3) { // text
9917
- return true
9918
- }
9919
- return !!(node.pre || (
9920
- !node.hasBindings && // no dynamic bindings
9921
- !node.if && !node.for && // not v-if or v-for or v-else
9922
- !isBuiltInTag(node.tag) && // not a built-in
9923
- isPlatformReservedTag(node.tag) && // not a component
9924
- !isDirectChildOfTemplateFor(node) &&
9925
- Object.keys(node).every(isStaticKey)
9926
- ))
9927
- }
9928
-
9929
- function isDirectChildOfTemplateFor (node) {
9930
- while (node.parent) {
9931
- node = node.parent;
9932
- if (node.tag !== 'template') {
9933
- return false
9934
- }
9935
- if (node.for) {
9936
- return true
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9937
  }
9938
  }
9939
- return false
9940
- }
9941
-
9942
- /* */
9943
-
9944
- var fnExpRE = /^([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/;
9945
- var simplePathRE = /^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/;
9946
-
9947
- // KeyboardEvent.keyCode aliases
9948
- var keyCodes = {
9949
- esc: 27,
9950
- tab: 9,
9951
- enter: 13,
9952
- space: 32,
9953
- up: 38,
9954
- left: 37,
9955
- right: 39,
9956
- down: 40,
9957
- 'delete': [8, 46]
9958
- };
9959
-
9960
- // KeyboardEvent.key aliases
9961
- var keyNames = {
9962
- esc: 'Escape',
9963
- tab: 'Tab',
9964
- enter: 'Enter',
9965
- space: ' ',
9966
- // #7806: IE11 uses key names without `Arrow` prefix for arrow keys.
9967
- up: ['Up', 'ArrowUp'],
9968
- left: ['Left', 'ArrowLeft'],
9969
- right: ['Right', 'ArrowRight'],
9970
- down: ['Down', 'ArrowDown'],
9971
- 'delete': ['Backspace', 'Delete']
9972
- };
9973
-
9974
- // #4868: modifiers that prevent the execution of the listener
9975
- // need to explicitly return null so that we can determine whether to remove
9976
- // the listener for .once
9977
- var genGuard = function (condition) { return ("if(" + condition + ")return null;"); };
9978
-
9979
- var modifierCode = {
9980
- stop: '$event.stopPropagation();',
9981
- prevent: '$event.preventDefault();',
9982
- self: genGuard("$event.target !== $event.currentTarget"),
9983
- ctrl: genGuard("!$event.ctrlKey"),
9984
- shift: genGuard("!$event.shiftKey"),
9985
- alt: genGuard("!$event.altKey"),
9986
- meta: genGuard("!$event.metaKey"),
9987
- left: genGuard("'button' in $event && $event.button !== 0"),
9988
- middle: genGuard("'button' in $event && $event.button !== 1"),
9989
- right: genGuard("'button' in $event && $event.button !== 2")
9990
- };
9991
-
9992
- function genHandlers (
9993
- events,
9994
- isNative,
9995
- warn
9996
- ) {
9997
- var res = isNative ? 'nativeOn:{' : 'on:{';
9998
- for (var name in events) {
9999
- res += "\"" + name + "\":" + (genHandler(name, events[name])) + ",";
10000
- }
10001
- return res.slice(0, -1) + '}'
10002
- }
10003
-
10004
- function genHandler (
10005
- name,
10006
- handler
10007
- ) {
10008
- if (!handler) {
10009
- return 'function(){}'
10010
- }
10011
-
10012
- if (Array.isArray(handler)) {
10013
- return ("[" + (handler.map(function (handler) { return genHandler(name, handler); }).join(',')) + "]")
10014
- }
10015
-
10016
- var isMethodPath = simplePathRE.test(handler.value);
10017
- var isFunctionExpression = fnExpRE.test(handler.value);
10018
-
10019
- if (!handler.modifiers) {
10020
- if (isMethodPath || isFunctionExpression) {
10021
- return handler.value
10022
- }
10023
- /* istanbul ignore if */
10024
- return ("function($event){" + (handler.value) + "}") // inline statement
10025
- } else {
10026
- var code = '';
10027
- var genModifierCode = '';
10028
- var keys = [];
10029
- for (var key in handler.modifiers) {
10030
- if (modifierCode[key]) {
10031
- genModifierCode += modifierCode[key];
10032
- // left/right
10033
- if (keyCodes[key]) {
10034
- keys.push(key);
10035
- }
10036
- } else if (key === 'exact') {
10037
- var modifiers = (handler.modifiers);
10038
- genModifierCode += genGuard(
10039
- ['ctrl', 'shift', 'alt', 'meta']
10040
- .filter(function (keyModifier) { return !modifiers[keyModifier]; })
10041
- .map(function (keyModifier) { return ("$event." + keyModifier + "Key"); })
10042
- .join('||')
10043
- );
10044
- } else {
10045
- keys.push(key);
10046
  }
10047
  }
10048
- if (keys.length) {
10049
- code += genKeyFilter(keys);
10050
- }
10051
- // Make sure modifiers like prevent and stop get executed after key filtering
10052
- if (genModifierCode) {
10053
- code += genModifierCode;
10054
- }
10055
- var handlerCode = isMethodPath
10056
- ? ("return " + (handler.value) + "($event)")
10057
- : isFunctionExpression
10058
- ? ("return (" + (handler.value) + ")($event)")
10059
- : handler.value;
10060
- /* istanbul ignore if */
10061
- return ("function($event){" + code + handlerCode + "}")
10062
  }
10063
- }
10064
 
10065
- function genKeyFilter (keys) {
10066
- return ("if(!('button' in $event)&&" + (keys.map(genFilterCode).join('&&')) + ")return null;")
10067
- }
10068
 
10069
- function genFilterCode (key) {
10070
- var keyVal = parseInt(key, 10);
10071
- if (keyVal) {
10072
- return ("$event.keyCode!==" + keyVal)
 
 
 
 
10073
  }
10074
- var keyCode = keyCodes[key];
10075
- var keyName = keyNames[key];
10076
- return (
10077
- "_k($event.keyCode," +
10078
- (JSON.stringify(key)) + "," +
10079
- (JSON.stringify(keyCode)) + "," +
10080
- "$event.key," +
10081
- "" + (JSON.stringify(keyName)) +
10082
- ")"
10083
- )
10084
- }
10085
 
10086
- /* */
 
 
 
 
10087
 
10088
- function on (el, dir) {
10089
- if ("development" !== 'production' && dir.modifiers) {
10090
- warn("v-on without argument does not support modifiers.");
10091
  }
10092
- el.wrapListeners = function (code) { return ("_g(" + code + "," + (dir.value) + ")"); };
10093
- }
10094
 
10095
- /* */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10096
 
10097
- function bind$1 (el, dir) {
10098
- el.wrapData = function (code) {
10099
- return ("_b(" + code + ",'" + (el.tag) + "'," + (dir.value) + "," + (dir.modifiers && dir.modifiers.prop ? 'true' : 'false') + (dir.modifiers && dir.modifiers.sync ? ',true' : '') + ")")
10100
- };
10101
- }
10102
-
10103
- /* */
10104
-
10105
- var baseDirectives = {
10106
- on: on,
10107
- bind: bind$1,
10108
- cloak: noop
10109
- }
10110
-
10111
- /* */
10112
-
10113
- var CodegenState = function CodegenState (options) {
10114
- this.options = options;
10115
- this.warn = options.warn || baseWarn;
10116
- this.transforms = pluckModuleFunction(options.modules, 'transformCode');
10117
- this.dataGenFns = pluckModuleFunction(options.modules, 'genData');
10118
- this.directives = extend(extend({}, baseDirectives), options.directives);
10119
- var isReservedTag = options.isReservedTag || no;
10120
- this.maybeComponent = function (el) { return !isReservedTag(el.tag); };
10121
- this.onceId = 0;
10122
- this.staticRenderFns = [];
10123
- };
10124
-
10125
-
10126
-
10127
- function generate (
10128
- ast,
10129
- options
10130
- ) {
10131
- var state = new CodegenState(options);
10132
- var code = ast ? genElement(ast, state) : '_c("div")';
10133
- return {
10134
- render: ("with(this){return " + code + "}"),
10135
- staticRenderFns: state.staticRenderFns
10136
- }
10137
- }
10138
-
10139
- function genElement (el, state) {
10140
- if (el.staticRoot && !el.staticProcessed) {
10141
- return genStatic(el, state)
10142
- } else if (el.once && !el.onceProcessed) {
10143
- return genOnce(el, state)
10144
- } else if (el.for && !el.forProcessed) {
10145
- return genFor(el, state)
10146
- } else if (el.if && !el.ifProcessed) {
10147
- return genIf(el, state)
10148
- } else if (el.tag === 'template' && !el.slotTarget) {
10149
- return genChildren(el, state) || 'void 0'
10150
- } else if (el.tag === 'slot') {
10151
- return genSlot(el, state)
10152
- } else {
10153
- // component or element
10154
- var code;
10155
- if (el.component) {
10156
- code = genComponent(el.component, el, state);
10157
- } else {
10158
- var data = el.plain ? undefined : genData$2(el, state);
10159
-
10160
- var children = el.inlineTemplate ? null : genChildren(el, state, true);
10161
- code = "_c('" + (el.tag) + "'" + (data ? ("," + data) : '') + (children ? ("," + children) : '') + ")";
10162
- }
10163
- // module transforms
10164
- for (var i = 0; i < state.transforms.length; i++) {
10165
- code = state.transforms[i](el, code);
10166
- }
10167
- return code
10168
- }
10169
- }
10170
-
10171
- // hoist static sub-trees out
10172
- function genStatic (el, state) {
10173
- el.staticProcessed = true;
10174
- state.staticRenderFns.push(("with(this){return " + (genElement(el, state)) + "}"));
10175
- return ("_m(" + (state.staticRenderFns.length - 1) + (el.staticInFor ? ',true' : '') + ")")
10176
- }
10177
-
10178
- // v-once
10179
- function genOnce (el, state) {
10180
- el.onceProcessed = true;
10181
- if (el.if && !el.ifProcessed) {
10182
- return genIf(el, state)
10183
- } else if (el.staticInFor) {
10184
- var key = '';
10185
- var parent = el.parent;
10186
- while (parent) {
10187
- if (parent.for) {
10188
- key = parent.key;
10189
- break
10190
  }
10191
- parent = parent.parent;
10192
  }
10193
- if (!key) {
10194
- "development" !== 'production' && state.warn(
10195
- "v-once can only be used inside v-for that is keyed. "
10196
- );
10197
- return genElement(el, state)
10198
  }
10199
- return ("_o(" + (genElement(el, state)) + "," + (state.onceId++) + "," + key + ")")
10200
- } else {
10201
- return genStatic(el, state)
10202
- }
10203
- }
10204
-
10205
- function genIf (
10206
- el,
10207
- state,
10208
- altGen,
10209
- altEmpty
10210
- ) {
10211
- el.ifProcessed = true; // avoid recursion
10212
- return genIfConditions(el.ifConditions.slice(), state, altGen, altEmpty)
10213
- }
10214
-
10215
- function genIfConditions (
10216
- conditions,
10217
- state,
10218
- altGen,
10219
- altEmpty
10220
- ) {
10221
- if (!conditions.length) {
10222
- return altEmpty || '_e()'
10223
- }
10224
-
10225
- var condition = conditions.shift();
10226
- if (condition.exp) {
10227
- return ("(" + (condition.exp) + ")?" + (genTernaryExp(condition.block)) + ":" + (genIfConditions(conditions, state, altGen, altEmpty)))
10228
- } else {
10229
- return ("" + (genTernaryExp(condition.block)))
10230
- }
10231
-
10232
- // v-if with v-once should generate code like (a)?_m(0):_m(1)
10233
- function genTernaryExp (el) {
10234
- return altGen
10235
- ? altGen(el, state)
10236
- : el.once
10237
- ? genOnce(el, state)
10238
- : genElement(el, state)
10239
- }
10240
- }
10241
-
10242
- function genFor (
10243
- el,
10244
- state,
10245
- altGen,
10246
- altHelper
10247
- ) {
10248
- var exp = el.for;
10249
- var alias = el.alias;
10250
- var iterator1 = el.iterator1 ? ("," + (el.iterator1)) : '';
10251
- var iterator2 = el.iterator2 ? ("," + (el.iterator2)) : '';
10252
-
10253
- if ("development" !== 'production' &&
10254
- state.maybeComponent(el) &&
10255
- el.tag !== 'slot' &&
10256
- el.tag !== 'template' &&
10257
- !el.key
10258
- ) {
10259
- state.warn(
10260
- "<" + (el.tag) + " v-for=\"" + alias + " in " + exp + "\">: component lists rendered with " +
10261
- "v-for should have explicit keys. " +
10262
- "See https://vuejs.org/guide/list.html#key for more info.",
10263
- true /* tip */
10264
- );
10265
  }
10266
 
10267
- el.forProcessed = true; // avoid recursion
10268
- return (altHelper || '_l') + "((" + exp + ")," +
10269
- "function(" + alias + iterator1 + iterator2 + "){" +
10270
- "return " + ((altGen || genElement)(el, state)) +
10271
- '})'
10272
- }
10273
-
10274
- function genData$2 (el, state) {
10275
- var data = '{';
10276
-
10277
- // directives first.
10278
- // directives may mutate the el's other properties before they are generated.
10279
- var dirs = genDirectives(el, state);
10280
- if (dirs) { data += dirs + ','; }
10281
-
10282
- // key
10283
- if (el.key) {
10284
- data += "key:" + (el.key) + ",";
10285
- }
10286
- // ref
10287
- if (el.ref) {
10288
- data += "ref:" + (el.ref) + ",";
10289
- }
10290
- if (el.refInFor) {
10291
- data += "refInFor:true,";
10292
- }
10293
- // pre
10294
- if (el.pre) {
10295
- data += "pre:true,";
10296
- }
10297
- // record original tag name for components using "is" attribute
10298
- if (el.component) {
10299
- data += "tag:\"" + (el.tag) + "\",";
10300
- }
10301
- // module data generation functions
10302
- for (var i = 0; i < state.dataGenFns.length; i++) {
10303
- data += state.dataGenFns[i](el);
10304
- }
10305
- // attributes
10306
- if (el.attrs) {
10307
- data += "attrs:{" + (genProps(el.attrs)) + "},";
10308
- }
10309
- // DOM props
10310
- if (el.props) {
10311
- data += "domProps:{" + (genProps(el.props)) + "},";
10312
- }
10313
- // event handlers
10314
- if (el.events) {
10315
- data += (genHandlers(el.events, false, state.warn)) + ",";
10316
- }
10317
- if (el.nativeEvents) {
10318
- data += (genHandlers(el.nativeEvents, true, state.warn)) + ",";
10319
- }
10320
- // slot target
10321
- // only for non-scoped slots
10322
- if (el.slotTarget && !el.slotScope) {
10323
- data += "slot:" + (el.slotTarget) + ",";
10324
- }
10325
- // scoped slots
10326
- if (el.scopedSlots) {
10327
- data += (genScopedSlots(el.scopedSlots, state)) + ",";
10328
- }
10329
- // component v-model
10330
- if (el.model) {
10331
- data += "model:{value:" + (el.model.value) + ",callback:" + (el.model.callback) + ",expression:" + (el.model.expression) + "},";
10332
- }
10333
- // inline-template
10334
- if (el.inlineTemplate) {
10335
- var inlineTemplate = genInlineTemplate(el, state);
10336
- if (inlineTemplate) {
10337
- data += inlineTemplate + ",";
10338
- }
10339
- }
10340
- data = data.replace(/,$/, '') + '}';
10341
- // v-bind data wrap
10342
- if (el.wrapData) {
10343
- data = el.wrapData(data);
10344
- }
10345
- // v-on data wrap
10346
- if (el.wrapListeners) {
10347
- data = el.wrapListeners(data);
10348
- }
10349
- return data
10350
- }
10351
-
10352
- function genDirectives (el, state) {
10353
- var dirs = el.directives;
10354
- if (!dirs) { return }
10355
- var res = 'directives:[';
10356
- var hasRuntime = false;
10357
- var i, l, dir, needRuntime;
10358
- for (i = 0, l = dirs.length; i < l; i++) {
10359
- dir = dirs[i];
10360
- needRuntime = true;
10361
- var gen = state.directives[dir.name];
10362
- if (gen) {
10363
- // compile-time directive that manipulates AST.
10364
- // returns true if it also needs a runtime counterpart.
10365
- needRuntime = !!gen(el, dir, state.warn);
10366
- }
10367
- if (needRuntime) {
10368
- hasRuntime = true;
10369
- res += "{name:\"" + (dir.name) + "\",rawName:\"" + (dir.rawName) + "\"" + (dir.value ? (",value:(" + (dir.value) + "),expression:" + (JSON.stringify(dir.value))) : '') + (dir.arg ? (",arg:\"" + (dir.arg) + "\"") : '') + (dir.modifiers ? (",modifiers:" + (JSON.stringify(dir.modifiers))) : '') + "},";
10370
- }
10371
- }
10372
- if (hasRuntime) {
10373
- return res.slice(0, -1) + ']'
10374
- }
10375
- }
10376
-
10377
- function genInlineTemplate (el, state) {
10378
- var ast = el.children[0];
10379
- if ("development" !== 'production' && (
10380
- el.children.length !== 1 || ast.type !== 1
10381
- )) {
10382
- state.warn('Inline-template components must have exactly one child element.');
10383
- }
10384
- if (ast.type === 1) {
10385
- var inlineRenderFns = generate(ast, state.options);
10386
- return ("inlineTemplate:{render:function(){" + (inlineRenderFns.render) + "},staticRenderFns:[" + (inlineRenderFns.staticRenderFns.map(function (code) { return ("function(){" + code + "}"); }).join(',')) + "]}")
10387
- }
10388
- }
10389
-
10390
- function genScopedSlots (
10391
- slots,
10392
- state
10393
- ) {
10394
- return ("scopedSlots:_u([" + (Object.keys(slots).map(function (key) {
10395
- return genScopedSlot(key, slots[key], state)
10396
- }).join(',')) + "])")
10397
- }
10398
-
10399
- function genScopedSlot (
10400
- key,
10401
- el,
10402
- state
10403
- ) {
10404
- if (el.for && !el.forProcessed) {
10405
- return genForScopedSlot(key, el, state)
10406
- }
10407
- var fn = "function(" + (String(el.slotScope)) + "){" +
10408
- "return " + (el.tag === 'template'
10409
- ? el.if
10410
- ? ((el.if) + "?" + (genChildren(el, state) || 'undefined') + ":undefined")
10411
- : genChildren(el, state) || 'undefined'
10412
- : genElement(el, state)) + "}";
10413
- return ("{key:" + key + ",fn:" + fn + "}")
10414
- }
10415
-
10416
- function genForScopedSlot (
10417
- key,
10418
- el,
10419
- state
10420
- ) {
10421
- var exp = el.for;
10422
- var alias = el.alias;
10423
- var iterator1 = el.iterator1 ? ("," + (el.iterator1)) : '';
10424
- var iterator2 = el.iterator2 ? ("," + (el.iterator2)) : '';
10425
- el.forProcessed = true; // avoid recursion
10426
- return "_l((" + exp + ")," +
10427
- "function(" + alias + iterator1 + iterator2 + "){" +
10428
- "return " + (genScopedSlot(key, el, state)) +
10429
- '})'
10430
- }
10431
-
10432
- function genChildren (
10433
- el,
10434
- state,
10435
- checkSkip,
10436
- altGenElement,
10437
- altGenNode
10438
- ) {
10439
- var children = el.children;
10440
- if (children.length) {
10441
- var el$1 = children[0];
10442
- // optimize single v-for
10443
- if (children.length === 1 &&
10444
- el$1.for &&
10445
- el$1.tag !== 'template' &&
10446
- el$1.tag !== 'slot'
10447
- ) {
10448
- return (altGenElement || genElement)(el$1, state)
10449
- }
10450
- var normalizationType = checkSkip
10451
- ? getNormalizationType(children, state.maybeComponent)
10452
- : 0;
10453
- var gen = altGenNode || genNode;
10454
- return ("[" + (children.map(function (c) { return gen(c, state); }).join(',')) + "]" + (normalizationType ? ("," + normalizationType) : ''))
10455
- }
10456
- }
10457
-
10458
- // determine the normalization needed for the children array.
10459
- // 0: no normalization needed
10460
- // 1: simple normalization needed (possible 1-level deep nested array)
10461
- // 2: full normalization needed
10462
- function getNormalizationType (
10463
- children,
10464
- maybeComponent
10465
- ) {
10466
- var res = 0;
10467
- for (var i = 0; i < children.length; i++) {
10468
- var el = children[i];
10469
- if (el.type !== 1) {
10470
- continue
10471
- }
10472
- if (needsNormalization(el) ||
10473
- (el.ifConditions && el.ifConditions.some(function (c) { return needsNormalization(c.block); }))) {
10474
- res = 2;
10475
- break
10476
- }
10477
- if (maybeComponent(el) ||
10478
- (el.ifConditions && el.ifConditions.some(function (c) { return maybeComponent(c.block); }))) {
10479
- res = 1;
10480
- }
10481
- }
10482
- return res
10483
- }
10484
-
10485
- function needsNormalization (el) {
10486
- return el.for !== undefined || el.tag === 'template' || el.tag === 'slot'
10487
- }
10488
-
10489
- function genNode (node, state) {
10490
- if (node.type === 1) {
10491
- return genElement(node, state)
10492
- } if (node.type === 3 && node.isComment) {
10493
- return genComment(node)
10494
- } else {
10495
- return genText(node)
10496
- }
10497
- }
10498
-
10499
- function genText (text) {
10500
- return ("_v(" + (text.type === 2
10501
- ? text.expression // no need for () because already wrapped in _s()
10502
- : transformSpecialNewlines(JSON.stringify(text.text))) + ")")
10503
- }
10504
-
10505
- function genComment (comment) {
10506
- return ("_e(" + (JSON.stringify(comment.text)) + ")")
10507
- }
10508
-
10509
- function genSlot (el, state) {
10510
- var slotName = el.slotName || '"default"';
10511
- var children = genChildren(el, state);
10512
- var res = "_t(" + slotName + (children ? ("," + children) : '');
10513
- var attrs = el.attrs && ("{" + (el.attrs.map(function (a) { return ((camelize(a.name)) + ":" + (a.value)); }).join(',')) + "}");
10514
- var bind$$1 = el.attrsMap['v-bind'];
10515
- if ((attrs || bind$$1) && !children) {
10516
- res += ",null";
10517
- }
10518
- if (attrs) {
10519
- res += "," + attrs;
10520
- }
10521
- if (bind$$1) {
10522
- res += (attrs ? '' : ',null') + "," + bind$$1;
10523
- }
10524
- return res + ')'
10525
- }
10526
-
10527
- // componentName is el.component, take it as argument to shun flow's pessimistic refinement
10528
- function genComponent (
10529
- componentName,
10530
- el,
10531
- state
10532
- ) {
10533
- var children = el.inlineTemplate ? null : genChildren(el, state, true);
10534
- return ("_c(" + componentName + "," + (genData$2(el, state)) + (children ? ("," + children) : '') + ")")
10535
- }
10536
-
10537
- function genProps (props) {
10538
- var res = '';
10539
- for (var i = 0; i < props.length; i++) {
10540
- var prop = props[i];
10541
- /* istanbul ignore if */
10542
- {
10543
- res += "\"" + (prop.name) + "\":" + (transformSpecialNewlines(prop.value)) + ",";
10544
- }
10545
  }
10546
- return res.slice(0, -1)
10547
- }
10548
 
10549
- // #3895, #4268
10550
- function transformSpecialNewlines (text) {
10551
- return text
10552
- .replace(/\u2028/g, '\\u2028')
10553
- .replace(/\u2029/g, '\\u2029')
10554
- }
10555
 
10556
- /* */
10557
 
10558
- // these keywords should not appear inside expressions, but operators like
10559
- // typeof, instanceof and in are allowed
10560
- var prohibitedKeywordRE = new RegExp('\\b' + (
10561
- 'do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,' +
10562
- 'super,throw,while,yield,delete,export,import,return,switch,default,' +
10563
- 'extends,finally,continue,debugger,function,arguments'
10564
- ).split(',').join('\\b|\\b') + '\\b');
10565
 
10566
- // these unary operators should not be used as property/method names
10567
- var unaryOperatorsRE = new RegExp('\\b' + (
10568
- 'delete,typeof,void'
10569
- ).split(',').join('\\s*\\([^\\)]*\\)|\\b') + '\\s*\\([^\\)]*\\)');
10570
 
10571
- // strip strings in expressions
10572
- var stripStringRE = /'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g;
10573
 
10574
- // detect problematic expressions in a template
10575
- function detectErrors (ast) {
10576
- var errors = [];
10577
- if (ast) {
10578
- checkNode(ast, errors);
10579
  }
10580
- return errors
10581
- }
10582
 
10583
- function checkNode (node, errors) {
10584
- if (node.type === 1) {
10585
- for (var name in node.attrsMap) {
10586
- if (dirRE.test(name)) {
10587
- var value = node.attrsMap[name];
10588
- if (value) {
10589
- if (name === 'v-for') {
10590
- checkFor(node, ("v-for=\"" + value + "\""), errors);
10591
- } else if (onRE.test(name)) {
10592
- checkEvent(value, (name + "=\"" + value + "\""), errors);
10593
- } else {
10594
- checkExpression(value, (name + "=\"" + value + "\""), errors);
 
 
10595
  }
10596
  }
10597
  }
10598
- }
10599
- if (node.children) {
10600
- for (var i = 0; i < node.children.length; i++) {
10601
- checkNode(node.children[i], errors);
10602
  }
 
 
10603
  }
10604
- } else if (node.type === 2) {
10605
- checkExpression(node.expression, node.text, errors);
10606
  }
10607
- }
10608
 
10609
- function checkEvent (exp, text, errors) {
10610
- var stipped = exp.replace(stripStringRE, '');
10611
- var keywordMatch = stipped.match(unaryOperatorsRE);
10612
- if (keywordMatch && stipped.charAt(keywordMatch.index - 1) !== '$') {
10613
- errors.push(
10614
- "avoid using JavaScript unary operator as property name: " +
10615
- "\"" + (keywordMatch[0]) + "\" in expression " + (text.trim())
10616
- );
10617
- }
10618
- checkExpression(exp, text, errors);
10619
- }
10620
-
10621
- function checkFor (node, text, errors) {
10622
- checkExpression(node.for || '', text, errors);
10623
- checkIdentifier(node.alias, 'v-for alias', text, errors);
10624
- checkIdentifier(node.iterator1, 'v-for iterator', text, errors);
10625
- checkIdentifier(node.iterator2, 'v-for iterator', text, errors);
10626
- }
10627
-
10628
- function checkIdentifier (
10629
- ident,
10630
- type,
10631
- text,
10632
- errors
10633
- ) {
10634
- if (typeof ident === 'string') {
10635
- try {
10636
- new Function(("var " + ident + "=_"));
10637
- } catch (e) {
10638
- errors.push(("invalid " + type + " \"" + ident + "\" in expression: " + (text.trim())));
10639
  }
 
10640
  }
10641
- }
10642
 
10643
- function checkExpression (exp, text, errors) {
10644
- try {
10645
- new Function(("return " + exp));
10646
- } catch (e) {
10647
- var keywordMatch = exp.replace(stripStringRE, '').match(prohibitedKeywordRE);
10648
- if (keywordMatch) {
10649
- errors.push(
10650
- "avoid using JavaScript keyword as property name: " +
10651
- "\"" + (keywordMatch[0]) + "\"\n Raw expression: " + (text.trim())
10652
- );
10653
- } else {
10654
- errors.push(
10655
- "invalid expression: " + (e.message) + " in\n\n" +
10656
- " " + exp + "\n\n" +
10657
- " Raw expression: " + (text.trim()) + "\n"
10658
- );
10659
- }
10660
  }
10661
- }
10662
 
10663
- /* */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10664
 
10665
- function createFunction (code, errors) {
10666
- try {
10667
- return new Function(code)
10668
- } catch (err) {
10669
- errors.push({ err: err, code: code });
10670
- return noop
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10671
  }
10672
- }
10673
 
10674
- function createCompileToFunctionFn (compile) {
10675
- var cache = Object.create(null);
10676
 
10677
- return function compileToFunctions (
10678
- template,
10679
- options,
10680
- vm
 
 
10681
  ) {
10682
- options = extend({}, options);
10683
- var warn$$1 = options.warn || warn;
10684
- delete options.warn;
10685
 
10686
- /* istanbul ignore if */
10687
- {
10688
- // detect possible CSP restriction
10689
- try {
10690
- new Function('return 1');
10691
- } catch (e) {
10692
- if (e.toString().match(/unsafe-eval|CSP/)) {
10693
- warn$$1(
10694
- 'It seems you are using the standalone build of Vue.js in an ' +
10695
- 'environment with Content Security Policy that prohibits unsafe-eval. ' +
10696
- 'The template compiler cannot work in this environment. Consider ' +
10697
- 'relaxing the policy to allow unsafe-eval or pre-compiling your ' +
10698
- 'templates into render functions.'
10699
- );
 
 
 
 
 
 
 
 
10700
  }
 
10701
  }
10702
  }
 
 
10703
 
10704
- // check cache
10705
- var key = options.delimiters
10706
- ? String(options.delimiters) + template
10707
- : template;
10708
- if (cache[key]) {
10709
- return cache[key]
 
10710
  }
 
 
10711
 
10712
- // compile
10713
- var compiled = compile(template, options);
10714
 
10715
- // check compilation errors/tips
10716
- {
10717
- if (compiled.errors && compiled.errors.length) {
10718
- warn$$1(
10719
- "Error compiling template:\n\n" + template + "\n\n" +
10720
- compiled.errors.map(function (e) { return ("- " + e); }).join('\n') + '\n',
10721
- vm
10722
- );
10723
- }
10724
- if (compiled.tips && compiled.tips.length) {
10725
- compiled.tips.forEach(function (msg) { return tip(msg, vm); });
10726
- }
10727
- }
10728
 
10729
- // turn code into functions
10730
- var res = {};
10731
- var fnGenErrors = [];
10732
- res.render = createFunction(compiled.render, fnGenErrors);
10733
- res.staticRenderFns = compiled.staticRenderFns.map(function (code) {
10734
- return createFunction(code, fnGenErrors)
10735
- });
10736
 
10737
- // check function generation errors.
10738
- // this should only happen if there is a bug in the compiler itself.
10739
- // mostly for codegen development use
10740
- /* istanbul ignore if */
10741
- {
10742
- if ((!compiled.errors || !compiled.errors.length) && fnGenErrors.length) {
10743
- warn$$1(
10744
- "Failed to generate render function:\n\n" +
10745
- fnGenErrors.map(function (ref) {
10746
- var err = ref.err;
10747
- var code = ref.code;
10748
-
10749
- return ((err.toString()) + " in\n\n" + code + "\n");
10750
- }).join('\n'),
10751
- vm
10752
- );
10753
- }
10754
  }
10755
-
10756
- return (cache[key] = res)
10757
  }
10758
- }
10759
 
10760
- /* */
 
10761
 
10762
- function createCompilerCreator (baseCompile) {
10763
- return function createCompiler (baseOptions) {
10764
- function compile (
10765
  template,
10766
- options
 
10767
  ) {
10768
- var finalOptions = Object.create(baseOptions);
10769
- var errors = [];
10770
- var tips = [];
10771
- finalOptions.warn = function (msg, tip) {
10772
- (tip ? tips : errors).push(msg);
10773
- };
10774
 
10775
- if (options) {
10776
- // merge custom modules
10777
- if (options.modules) {
10778
- finalOptions.modules =
10779
- (baseOptions.modules || []).concat(options.modules);
10780
- }
10781
- // merge custom directives
10782
- if (options.directives) {
10783
- finalOptions.directives = extend(
10784
- Object.create(baseOptions.directives || null),
10785
- options.directives
10786
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10787
  }
10788
- // copy other options
10789
- for (var key in options) {
10790
- if (key !== 'modules' && key !== 'directives') {
10791
- finalOptions[key] = options[key];
 
10792
  }
10793
  }
10794
  }
10795
 
10796
- var compiled = baseCompile(template, finalOptions);
 
 
 
 
 
 
 
 
 
 
 
10797
  {
10798
- errors.push.apply(errors, detectErrors(compiled.ast));
 
 
 
 
 
 
 
 
 
 
 
10799
  }
10800
- compiled.errors = errors;
10801
- compiled.tips = tips;
10802
- return compiled
10803
- }
10804
 
10805
- return {
10806
- compile: compile,
10807
- compileToFunctions: createCompileToFunctionFn(compile)
10808
  }
10809
  }
10810
- }
10811
 
10812
- /* */
10813
 
10814
- // `createCompilerCreator` allows creating compilers that use alternative
10815
- // parser/optimizer/codegen, e.g the SSR optimizing compiler.
10816
- // Here we just export a default compiler using the default parts.
10817
- var createCompiler = createCompilerCreator(function baseCompile (
10818
- template,
10819
- options
10820
- ) {
10821
- var ast = parse(template.trim(), options);
10822
- if (options.optimize !== false) {
10823
- optimize(ast, options);
10824
- }
10825
- var code = generate(ast, options);
10826
- return {
10827
- ast: ast,
10828
- render: code.render,
10829
- staticRenderFns: code.staticRenderFns
10830
- }
10831
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10832
 
10833
- /* */
10834
 
10835
- var ref$1 = createCompiler(baseOptions);
10836
- var compileToFunctions = ref$1.compileToFunctions;
 
 
 
 
 
 
10837
 
10838
- /* */
 
 
 
 
 
10839
 
10840
- // check whether current browser encodes a char inside attribute values
10841
- var div;
10842
- function getShouldDecode (href) {
10843
- div = div || document.createElement('div');
10844
- div.innerHTML = href ? "<a href=\"\n\"/>" : "<div a=\"\n\"/>";
10845
- return div.innerHTML.indexOf('&#10;') > 0
10846
- }
10847
 
10848
- // #3663: IE encodes newlines inside attribute values while other browsers don't
10849
- var shouldDecodeNewlines = inBrowser ? getShouldDecode(false) : false;
10850
- // #6828: chrome encodes content in a[href]
10851
- var shouldDecodeNewlinesForHref = inBrowser ? getShouldDecode(true) : false;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10852
 
10853
- /* */
10854
 
10855
- var idToTemplate = cached(function (id) {
10856
- var el = query(id);
10857
- return el && el.innerHTML
10858
- });
10859
 
10860
- var mount = Vue.prototype.$mount;
10861
- Vue.prototype.$mount = function (
10862
- el,
10863
- hydrating
10864
- ) {
10865
- el = el && query(el);
10866
 
10867
- /* istanbul ignore if */
10868
- if (el === document.body || el === document.documentElement) {
10869
- "development" !== 'production' && warn(
10870
- "Do not mount Vue to <html> or <body> - mount to normal elements instead."
10871
- );
10872
- return this
10873
  }
10874
 
10875
- var options = this.$options;
10876
- // resolve template/el and convert to render function
10877
- if (!options.render) {
10878
- var template = options.template;
10879
- if (template) {
10880
- if (typeof template === 'string') {
10881
- if (template.charAt(0) === '#') {
10882
- template = idToTemplate(template);
10883
- /* istanbul ignore if */
10884
- if ("development" !== 'production' && !template) {
10885
- warn(
10886
- ("Template element not found or is empty: " + (options.template)),
10887
- this
10888
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10889
  }
 
 
 
 
 
 
 
10890
  }
10891
- } else if (template.nodeType) {
10892
- template = template.innerHTML;
10893
- } else {
10894
- {
10895
- warn('invalid template option:' + template, this);
10896
- }
10897
- return this
10898
- }
10899
- } else if (el) {
10900
- template = getOuterHTML(el);
10901
- }
10902
- if (template) {
10903
- /* istanbul ignore if */
10904
- if ("development" !== 'production' && config.performance && mark) {
10905
- mark('compile');
10906
  }
 
 
 
 
 
10907
 
10908
- var ref = compileToFunctions(template, {
10909
- shouldDecodeNewlines: shouldDecodeNewlines,
10910
- shouldDecodeNewlinesForHref: shouldDecodeNewlinesForHref,
10911
- delimiters: options.delimiters,
10912
- comments: options.comments
10913
- }, this);
10914
- var render = ref.render;
10915
- var staticRenderFns = ref.staticRenderFns;
10916
- options.render = render;
10917
- options.staticRenderFns = staticRenderFns;
 
10918
 
10919
- /* istanbul ignore if */
10920
- if ("development" !== 'production' && config.performance && mark) {
10921
- mark('compile end');
10922
- measure(("vue " + (this._name) + " compile"), 'compile', 'compile end');
 
10923
  }
10924
  }
10925
- }
10926
- return mount.call(this, el, hydrating)
10927
- };
10928
 
10929
- /**
10930
- * Get outerHTML of elements, taking care
10931
- * of SVG elements in IE as well.
10932
- */
10933
- function getOuterHTML (el) {
10934
- if (el.outerHTML) {
10935
- return el.outerHTML
10936
- } else {
10937
- var container = document.createElement('div');
10938
- container.appendChild(el.cloneNode(true));
10939
- return container.innerHTML
 
10940
  }
10941
- }
10942
 
10943
- Vue.compile = compileToFunctions;
10944
 
10945
- return Vue;
10946
 
10947
- })));
1
  /*!
2
+ * Vue.js v2.6.6
3
+ * (c) 2014-2019 Evan You
4
  * Released under the MIT License.
5
  */
6
  (function (global, factory) {
7
+ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
8
+ typeof define === 'function' && define.amd ? define(factory) :
9
+ (global = global || self, global.Vue = factory());
10
+ }(this, function () { 'use strict';
11
 
12
+ /* */
13
 
14
+ var emptyObject = Object.freeze({});
15
 
16
+ // These helpers produce better VM code in JS engines due to their
17
+ // explicitness and function inlining.
18
+ function isUndef (v) {
19
+ return v === undefined || v === null
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
 
22
+ function isDef (v) {
23
+ return v !== undefined && v !== null
24
+ }
 
 
 
25
 
26
+ function isTrue (v) {
27
+ return v === true
28
+ }
 
 
 
 
 
 
 
 
 
 
 
 
29
 
30
+ function isFalse (v) {
31
+ return v === false
 
 
 
 
 
 
 
32
  }
33
 
34
+ /**
35
+ * Check if value is primitive.
36
+ */
37
+ function isPrimitive (value) {
38
+ return (
39
+ typeof value === 'string' ||
40
+ typeof value === 'number' ||
41
+ // $flow-disable-line
42
+ typeof value === 'symbol' ||
43
+ typeof value === 'boolean'
44
+ )
45
+ }
46
 
47
+ /**
48
+ * Quick object check - this is primarily used to tell
49
+ * Objects from primitive values when we know the value
50
+ * is a JSON-compliant type.
51
+ */
52
+ function isObject (obj) {
53
+ return obj !== null && typeof obj === 'object'
54
+ }
55
 
56
+ /**
57
+ * Get the raw type string of a value, e.g., [object Object].
58
+ */
59
+ var _toString = Object.prototype.toString;
60
 
61
+ function toRawType (value) {
62
+ return _toString.call(value).slice(8, -1)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
63
  }
 
 
64
 
65
+ /**
66
+ * Strict object type check. Only returns true
67
+ * for plain JavaScript objects.
68
+ */
69
+ function isPlainObject (obj) {
70
+ return _toString.call(obj) === '[object Object]'
 
 
 
71
  }
 
 
72
 
73
+ function isRegExp (v) {
74
+ return _toString.call(v) === '[object RegExp]'
75
+ }
 
 
 
 
 
 
 
 
76
 
77
+ /**
78
+ * Check if val is a valid array index.
79
+ */
80
+ function isValidArrayIndex (val) {
81
+ var n = parseFloat(String(val));
82
+ return n >= 0 && Math.floor(n) === n && isFinite(val)
83
+ }
84
 
85
+ function isPromise (val) {
86
+ return (
87
+ isDef(val) &&
88
+ typeof val.then === 'function' &&
89
+ typeof val.catch === 'function'
90
+ )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
91
  }
 
92
 
93
+ /**
94
+ * Convert a value to a string that is actually rendered.
95
+ */
96
+ function toString (val) {
97
+ return val == null
98
+ ? ''
99
+ : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)
100
+ ? JSON.stringify(val, null, 2)
101
+ : String(val)
102
  }
 
 
103
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
104
  /**
105
+ * Convert an input value to a number for persistence.
106
+ * If the conversion fails, return original string.
107
  */
108
+ function toNumber (val) {
109
+ var n = parseFloat(val);
110
+ return isNaN(n) ? val : n
111
+ }
112
 
113
  /**
114
+ * Make a map and return a function for checking if a key
115
+ * is in that map.
116
  */
117
+ function makeMap (
118
+ str,
119
+ expectsLowerCase
120
+ ) {
121
+ var map = Object.create(null);
122
+ var list = str.split(',');
123
+ for (var i = 0; i < list.length; i++) {
124
+ map[list[i]] = true;
125
+ }
126
+ return expectsLowerCase
127
+ ? function (val) { return map[val.toLowerCase()]; }
128
+ : function (val) { return map[val]; }
129
+ }
130
 
131
  /**
132
+ * Check if a tag is a built-in tag.
133
  */
134
+ var isBuiltInTag = makeMap('slot,component', true);
135
 
136
  /**
137
+ * Check if an attribute is a reserved attribute.
138
  */
139
+ var isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');
140
 
141
  /**
142
+ * Remove an item from an array.
143
  */
144
+ function remove (arr, item) {
145
+ if (arr.length) {
146
+ var index = arr.indexOf(item);
147
+ if (index > -1) {
148
+ return arr.splice(index, 1)
149
+ }
150
+ }
151
+ }
152
 
153
  /**
154
+ * Check whether an object has the property.
155
  */
156
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
157
+ function hasOwn (obj, key) {
158
+ return hasOwnProperty.call(obj, key)
159
+ }
160
 
161
  /**
162
+ * Create a cached version of a pure function.
163
  */
164
+ function cached (fn) {
165
+ var cache = Object.create(null);
166
+ return (function cachedFn (str) {
167
+ var hit = cache[str];
168
+ return hit || (cache[str] = fn(str))
169
+ })
170
+ }
171
 
172
  /**
173
+ * Camelize a hyphen-delimited string.
174
  */
175
+ var camelizeRE = /-(\w)/g;
176
+ var camelize = cached(function (str) {
177
+ return str.replace(camelizeRE, function (_, c) { return c ? c.toUpperCase() : ''; })
178
+ });
179
 
180
  /**
181
+ * Capitalize a string.
182
  */
183
+ var capitalize = cached(function (str) {
184
+ return str.charAt(0).toUpperCase() + str.slice(1)
185
+ });
186
 
187
  /**
188
+ * Hyphenate a camelCase string.
 
189
  */
190
+ var hyphenateRE = /\B([A-Z])/g;
191
+ var hyphenate = cached(function (str) {
192
+ return str.replace(hyphenateRE, '-$1').toLowerCase()
193
+ });
194
 
195
  /**
196
+ * Simple bind polyfill for environments that do not support it,
197
+ * e.g., PhantomJS 1.x. Technically, we don't need this anymore
198
+ * since native bind is now performant enough in most browsers.
199
+ * But removing it would mean breaking code that was able to run in
200
+ * PhantomJS 1.x, so this must be kept for backward compatibility.
201
  */
202
+
203
+ /* istanbul ignore next */
204
+ function polyfillBind (fn, ctx) {
205
+ function boundFn (a) {
206
+ var l = arguments.length;
207
+ return l
208
+ ? l > 1
209
+ ? fn.apply(ctx, arguments)
210
+ : fn.call(ctx, a)
211
+ : fn.call(ctx)
212
+ }
213
+
214
+ boundFn._length = fn.length;
215
+ return boundFn
216
+ }
217
+
218
+ function nativeBind (fn, ctx) {
219
+ return fn.bind(ctx)
220
+ }
221
+
222
+ var bind = Function.prototype.bind
223
+ ? nativeBind
224
+ : polyfillBind;
225
 
226
  /**
227
+ * Convert an Array-like object to a real Array.
 
228
  */
229
+ function toArray (list, start) {
230
+ start = start || 0;
231
+ var i = list.length - start;
232
+ var ret = new Array(i);
233
+ while (i--) {
234
+ ret[i] = list[i + start];
235
+ }
236
+ return ret
237
+ }
238
 
239
  /**
240
+ * Mix properties into target object.
241
  */
242
+ function extend (to, _from) {
243
+ for (var key in _from) {
244
+ to[key] = _from[key];
245
+ }
246
+ return to
247
+ }
248
 
249
  /**
250
+ * Merge an Array of Objects into a single Object.
251
  */
252
+ function toObject (arr) {
253
+ var res = {};
254
+ for (var i = 0; i < arr.length; i++) {
255
+ if (arr[i]) {
256
+ extend(res, arr[i]);
257
+ }
258
+ }
259
+ return res
260
+ }
261
+
262
+ /* eslint-disable no-unused-vars */
263
 
264
  /**
265
+ * Perform no operation.
266
+ * Stubbing args to make Flow happy without leaving useless transpiled code
267
+ * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).
268
  */
269
+ function noop (a, b, c) {}
270
 
271
  /**
272
+ * Always return false.
273
  */
274
+ var no = function (a, b, c) { return false; };
 
275
 
276
+ /* eslint-enable no-unused-vars */
277
 
278
+ /**
279
+ * Return the same value.
280
+ */
281
+ var identity = function (_) { return _; };
 
 
 
282
 
283
+ /**
284
+ * Generate a string containing static keys from compiler modules.
285
+ */
286
+ function genStaticKeys (modules) {
287
+ return modules.reduce(function (keys, m) {
288
+ return keys.concat(m.staticKeys || [])
289
+ }, []).join(',')
290
+ }
 
 
 
291
 
292
+ /**
293
+ * Check if two values are loosely equal - that is,
294
+ * if they are plain objects, do they have the same shape?
295
+ */
296
+ function looseEqual (a, b) {
297
+ if (a === b) { return true }
298
+ var isObjectA = isObject(a);
299
+ var isObjectB = isObject(b);
300
+ if (isObjectA && isObjectB) {
301
+ try {
302
+ var isArrayA = Array.isArray(a);
303
+ var isArrayB = Array.isArray(b);
304
+ if (isArrayA && isArrayB) {
305
+ return a.length === b.length && a.every(function (e, i) {
306
+ return looseEqual(e, b[i])
307
+ })
308
+ } else if (a instanceof Date && b instanceof Date) {
309
+ return a.getTime() === b.getTime()
310
+ } else if (!isArrayA && !isArrayB) {
311
+ var keysA = Object.keys(a);
312
+ var keysB = Object.keys(b);
313
+ return keysA.length === keysB.length && keysA.every(function (key) {
314
+ return looseEqual(a[key], b[key])
315
+ })
316
+ } else {
317
+ /* istanbul ignore next */
318
+ return false
319
+ }
320
+ } catch (e) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
321
  /* istanbul ignore next */
322
+ return false
323
+ }
324
+ } else if (!isObjectA && !isObjectB) {
325
+ return String(a) === String(b)
 
 
 
 
 
 
 
 
 
 
 
 
 
326
  } else {
327
+ return false
328
  }
329
  }
 
 
330
 
331
+ /**
332
+ * Return the first index at which a loosely equal value can be
333
+ * found in the array (if value is a plain object, the array must
334
+ * contain an object of the same shape), or -1 if it is not present.
335
+ */
336
+ function looseIndexOf (arr, val) {
337
+ for (var i = 0; i < arr.length; i++) {
338
+ if (looseEqual(arr[i], val)) { return i }
339
+ }
340
+ return -1
341
+ }
342
 
343
+ /**
344
+ * Ensure a function is called only once.
345
+ */
346
+ function once (fn) {
347
+ var called = false;
348
+ return function () {
349
+ if (!called) {
350
+ called = true;
351
+ fn.apply(this, arguments);
352
+ }
353
+ }
354
+ }
355
 
356
+ var SSR_ATTR = 'data-server-rendered';
 
 
357
 
358
+ var ASSET_TYPES = [
359
+ 'component',
360
+ 'directive',
361
+ 'filter'
362
+ ];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
363
 
364
+ var LIFECYCLE_HOOKS = [
365
+ 'beforeCreate',
366
+ 'created',
367
+ 'beforeMount',
368
+ 'mounted',
369
+ 'beforeUpdate',
370
+ 'updated',
371
+ 'beforeDestroy',
372
+ 'destroyed',
373
+ 'activated',
374
+ 'deactivated',
375
+ 'errorCaptured',
376
+ 'serverPrefetch'
377
+ ];
378
 
379
+ /* */
380
 
 
 
 
 
381
 
 
 
 
 
 
 
382
 
383
+ var config = ({
384
+ /**
385
+ * Option merge strategies (used in core/util/options)
386
+ */
387
+ // $flow-disable-line
388
+ optionMergeStrategies: Object.create(null),
389
+
390
+ /**
391
+ * Whether to suppress warnings.
392
+ */
393
+ silent: false,
394
+
395
+ /**
396
+ * Show production mode tip message on boot?
397
+ */
398
+ productionTip: "development" !== 'production',
399
+
400
+ /**
401
+ * Whether to enable devtools
402
+ */
403
+ devtools: "development" !== 'production',
404
+
405
+ /**
406
+ * Whether to record perf
407
+ */
408
+ performance: false,
409
+
410
+ /**
411
+ * Error handler for watcher errors
412
+ */
413
+ errorHandler: null,
414
+
415
+ /**
416
+ * Warn handler for watcher warns
417
+ */
418
+ warnHandler: null,
419
+
420
+ /**
421
+ * Ignore certain custom elements
422
+ */
423
+ ignoredElements: [],
424
+
425
+ /**
426
+ * Custom user key aliases for v-on
427
+ */
428
+ // $flow-disable-line
429
+ keyCodes: Object.create(null),
430
+
431
+ /**
432
+ * Check if a tag is reserved so that it cannot be registered as a
433
+ * component. This is platform-dependent and may be overwritten.
434
+ */
435
+ isReservedTag: no,
436
+
437
+ /**
438
+ * Check if an attribute is reserved so that it cannot be used as a component
439
+ * prop. This is platform-dependent and may be overwritten.
440
+ */
441
+ isReservedAttr: no,
442
+
443
+ /**
444
+ * Check if a tag is an unknown element.
445
+ * Platform-dependent.
446
+ */
447
+ isUnknownElement: no,
448
+
449
+ /**
450
+ * Get the namespace of an element
451
+ */
452
+ getTagNamespace: noop,
453
+
454
+ /**
455
+ * Parse the real tag name for the specific platform.
456
+ */
457
+ parsePlatformTagName: identity,
458
+
459
+ /**
460
+ * Check if an attribute must be bound using property, e.g. value
461
+ * Platform-dependent.
462
+ */
463
+ mustUseProp: no,
464
+
465
+ /**
466
+ * Perform updates asynchronously. Intended to be used by Vue Test Utils
467
+ * This will significantly reduce performance if set to false.
468
+ */
469
+ async: true,
470
+
471
+ /**
472
+ * Exposed for legacy reasons
473
+ */
474
+ _lifecycleHooks: LIFECYCLE_HOOKS
475
+ });
476
 
477
+ /* */
 
 
 
 
 
478
 
479
+ /**
480
+ * unicode letters used for parsing html tags, component names and property paths.
481
+ * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname
482
+ * skipping \u10000-\uEFFFF due to it freezing up PhantomJS
483
+ */
484
+ var unicodeLetters = 'a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD';
 
485
 
486
+ /**
487
+ * Check if a string starts with $ or _
488
+ */
489
+ function isReserved (str) {
490
+ var c = (str + '').charCodeAt(0);
491
+ return c === 0x24 || c === 0x5F
492
+ }
 
 
 
 
 
 
 
 
493
 
494
+ /**
495
+ * Define a property.
496
+ */
497
+ function def (obj, key, val, enumerable) {
498
+ Object.defineProperty(obj, key, {
499
+ value: val,
500
+ enumerable: !!enumerable,
501
+ writable: true,
502
+ configurable: true
503
+ });
504
+ }
505
 
506
+ /**
507
+ * Parse simple path.
508
+ */
509
+ var bailRE = new RegExp(("[^" + unicodeLetters + ".$_\\d]"));
510
+ function parsePath (path) {
511
+ if (bailRE.test(path)) {
512
+ return
513
  }
514
+ var segments = path.split('.');
515
+ return function (obj) {
516
+ for (var i = 0; i < segments.length; i++) {
517
+ if (!obj) { return }
518
+ obj = obj[segments[i]];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
519
  }
520
+ return obj
 
 
 
 
 
 
521
  }
522
+ }
 
523
 
524
+ /* */
525
 
526
+ // can we use __proto__?
527
+ var hasProto = '__proto__' in {};
528
 
529
+ // Browser environment sniffing
530
+ var inBrowser = typeof window !== 'undefined';
531
+ var inWeex = typeof WXEnvironment !== 'undefined' && !!WXEnvironment.platform;
532
+ var weexPlatform = inWeex && WXEnvironment.platform.toLowerCase();
533
+ var UA = inBrowser && window.navigator.userAgent.toLowerCase();
534
+ var isIE = UA && /msie|trident/.test(UA);
535
+ var isIE9 = UA && UA.indexOf('msie 9.0') > 0;
536
+ var isEdge = UA && UA.indexOf('edge/') > 0;
537
+ var isAndroid = (UA && UA.indexOf('android') > 0) || (weexPlatform === 'android');
538
+ var isIOS = (UA && /iphone|ipad|ipod|ios/.test(UA)) || (weexPlatform === 'ios');
539
+ var isChrome = UA && /chrome\/\d+/.test(UA) && !isEdge;
540
+ var isPhantomJS = UA && /phantomjs/.test(UA);
541
+ var isFF = UA && UA.match(/firefox\/(\d+)/);
542
 
543
+ // Firefox has a "watch" function on Object.prototype...
544
+ var nativeWatch = ({}).watch;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
545
 
546
+ var supportsPassive = false;
547
+ if (inBrowser) {
548
+ try {
549
+ var opts = {};
550
+ Object.defineProperty(opts, 'passive', ({
551
+ get: function get () {
552
+ /* istanbul ignore next */
553
+ supportsPassive = true;
554
+ }
555
+ })); // https://github.com/facebook/flow/issues/285
556
+ window.addEventListener('test-passive', null, opts);
557
+ } catch (e) {}
558
+ }
 
 
 
 
 
 
 
 
 
559
 
560
+ // this needs to be lazy-evaled because vue may be required before
561
+ // vue-server-renderer can set VUE_ENV
562
+ var _isServer;
563
+ var isServerRendering = function () {
564
+ if (_isServer === undefined) {
565
+ /* istanbul ignore if */
566
+ if (!inBrowser && !inWeex && typeof global !== 'undefined') {
567
+ // detect presence of vue-server-renderer and avoid
568
+ // Webpack shimming the process
569
+ _isServer = global['process'] && global['process'].env.VUE_ENV === 'server';
570
+ } else {
571
+ _isServer = false;
572
+ }
573
  }
574
+ return _isServer
575
+ };
 
 
 
 
 
 
576
 
577
+ // detect devtools
578
+ var devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;
579
 
580
+ /* istanbul ignore next */
581
+ function isNative (Ctor) {
582
+ return typeof Ctor === 'function' && /native code/.test(Ctor.toString())
583
+ }
 
584
 
585
+ var hasSymbol =
586
+ typeof Symbol !== 'undefined' && isNative(Symbol) &&
587
+ typeof Reflect !== 'undefined' && isNative(Reflect.ownKeys);
588
 
589
+ var _Set;
590
+ /* istanbul ignore if */ // $flow-disable-line
591
+ if (typeof Set !== 'undefined' && isNative(Set)) {
592
+ // use native Set when available.
593
+ _Set = Set;
 
 
 
 
 
 
 
 
 
 
 
 
594
  } else {
595
+ // a non-standard Set polyfill that only works with primitive keys.
596
+ _Set = /*@__PURE__*/(function () {
597
+ function Set () {
598
+ this.set = Object.create(null);
599
+ }
600
+ Set.prototype.has = function has (key) {
601
+ return this.set[key] === true
602
+ };
603
+ Set.prototype.add = function add (key) {
604
+ this.set[key] = true;
605
+ };
606
+ Set.prototype.clear = function clear () {
607
+ this.set = Object.create(null);
608
+ };
609
 
610
+ return Set;
611
+ }());
 
 
 
 
 
 
 
612
  }
 
613
 
614
+ /* */
 
 
 
 
 
 
 
615
 
616
+ var warn = noop;
617
+ var tip = noop;
618
+ var generateComponentTrace = (noop); // work around flow check
619
+ var formatComponentName = (noop);
620
 
621
+ {
622
+ var hasConsole = typeof console !== 'undefined';
623
+ var classifyRE = /(?:^|[-_])(\w)/g;
624
+ var classify = function (str) { return str
625
+ .replace(classifyRE, function (c) { return c.toUpperCase(); })
626
+ .replace(/[-_]/g, ''); };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
627
 
628
+ warn = function (msg, vm) {
629
+ var trace = vm ? generateComponentTrace(vm) : '';
 
 
 
 
 
 
 
 
 
630
 
631
+ if (config.warnHandler) {
632
+ config.warnHandler.call(null, msg, vm, trace);
633
+ } else if (hasConsole && (!config.silent)) {
634
+ console.error(("[Vue warn]: " + msg + trace));
635
+ }
636
+ };
637
 
638
+ tip = function (msg, vm) {
639
+ if (hasConsole && (!config.silent)) {
640
+ console.warn("[Vue tip]: " + msg + (
641
+ vm ? generateComponentTrace(vm) : ''
642
+ ));
643
+ }
644
+ };
645
 
646
+ formatComponentName = function (vm, includeFile) {
647
+ if (vm.$root === vm) {
648
+ return '<Root>'
649
+ }
650
+ var options = typeof vm === 'function' && vm.cid != null
651
+ ? vm.options
652
+ : vm._isVue
653
+ ? vm.$options || vm.constructor.options
654
+ : vm;
655
+ var name = options.name || options._componentTag;
656
+ var file = options.__file;
657
+ if (!name && file) {
658
+ var match = file.match(/([^/\\]+)\.vue$/);
659
+ name = match && match[1];
660
+ }
661
+
662
+ return (
663
+ (name ? ("<" + (classify(name)) + ">") : "<Anonymous>") +
664
+ (file && includeFile !== false ? (" at " + file) : '')
665
+ )
666
+ };
667
+
668
+ var repeat = function (str, n) {
669
+ var res = '';
670
+ while (n) {
671
+ if (n % 2 === 1) { res += str; }
672
+ if (n > 1) { str += str; }
673
+ n >>= 1;
674
+ }
675
+ return res
676
+ };
677
+
678
+ generateComponentTrace = function (vm) {
679
+ if (vm._isVue && vm.$parent) {
680
+ var tree = [];
681
+ var currentRecursiveSequence = 0;
682
+ while (vm) {
683
+ if (tree.length > 0) {
684
+ var last = tree[tree.length - 1];
685
+ if (last.constructor === vm.constructor) {
686
+ currentRecursiveSequence++;
687
+ vm = vm.$parent;
688
+ continue
689
+ } else if (currentRecursiveSequence > 0) {
690
+ tree[tree.length - 1] = [last, currentRecursiveSequence];
691
+ currentRecursiveSequence = 0;
692
+ }
693
  }
694
+ tree.push(vm);
695
+ vm = vm.$parent;
696
  }
697
+ return '\n\nfound in\n\n' + tree
698
+ .map(function (vm, i) { return ("" + (i === 0 ? '---> ' : repeat(' ', 5 + i * 2)) + (Array.isArray(vm)
699
+ ? ((formatComponentName(vm[0])) + "... (" + (vm[1]) + " recursive calls)")
700
+ : formatComponentName(vm))); })
701
+ .join('\n')
 
 
 
 
 
 
 
 
 
 
702
  } else {
703
+ return ("\n\n(found in " + (formatComponentName(vm)) + ")")
704
  }
705
+ };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
706
  }
 
 
 
 
707
 
708
+ /* */
709
+
710
+ var uid = 0;
711
+
712
+ /**
713
+ * A dep is an observable that can have multiple
714
+ * directives subscribing to it.
715
+ */
716
+ var Dep = function Dep () {
717
+ this.id = uid++;
718
+ this.subs = [];
719
+ };
720
+
721
+ Dep.prototype.addSub = function addSub (sub) {
722
+ this.subs.push(sub);
723
+ };
724
+
725
+ Dep.prototype.removeSub = function removeSub (sub) {
726
+ remove(this.subs, sub);
727
+ };
728
+
729
+ Dep.prototype.depend = function depend () {
730
+ if (Dep.target) {
731
+ Dep.target.addDep(this);
732
+ }
733
+ };
734
+
735
+ Dep.prototype.notify = function notify () {
736
+ // stabilize the subscriber list first
737
+ var subs = this.subs.slice();
738
+ if (!config.async) {
739
+ // subs aren't sorted in scheduler if not running async
740
+ // we need to sort them now to make sure they fire in correct
741
+ // order
742
+ subs.sort(function (a, b) { return a.id - b.id; });
743
+ }
744
+ for (var i = 0, l = subs.length; i < l; i++) {
745
+ subs[i].update();
746
+ }
747
+ };
748
+
749
+ // The current target watcher being evaluated.
750
+ // This is globally unique because only one watcher
751
+ // can be evaluated at a time.
752
+ Dep.target = null;
753
+ var targetStack = [];
754
+
755
+ function pushTarget (target) {
756
+ targetStack.push(target);
757
+ Dep.target = target;
758
  }
759
+
760
+ function popTarget () {
761
+ targetStack.pop();
762
+ Dep.target = targetStack[targetStack.length - 1];
763
  }
764
+
765
+ /* */
766
+
767
+ var VNode = function VNode (
768
+ tag,
769
+ data,
770
+ children,
771
+ text,
772
+ elm,
773
+ context,
774
+ componentOptions,
775
+ asyncFactory
776
+ ) {
777
+ this.tag = tag;
778
+ this.data = data;
779
+ this.children = children;
780
+ this.text = text;
781
+ this.elm = elm;
782
+ this.ns = undefined;
783
+ this.context = context;
784
+ this.fnContext = undefined;
785
+ this.fnOptions = undefined;
786
+ this.fnScopeId = undefined;
787
+ this.key = data && data.key;
788
+ this.componentOptions = componentOptions;
789
+ this.componentInstance = undefined;
790
+ this.parent = undefined;
791
+ this.raw = false;
792
+ this.isStatic = false;
793
+ this.isRootInsert = true;
794
+ this.isComment = false;
795
+ this.isCloned = false;
796
+ this.isOnce = false;
797
+ this.asyncFactory = asyncFactory;
798
+ this.asyncMeta = undefined;
799
+ this.isAsyncPlaceholder = false;
800
+ };
801
+
802
+ var prototypeAccessors = { child: { configurable: true } };
803
+
804
+ // DEPRECATED: alias for componentInstance for backwards compat.
805
+ /* istanbul ignore next */
806
+ prototypeAccessors.child.get = function () {
807
+ return this.componentInstance
808
+ };
809
+
810
+ Object.defineProperties( VNode.prototype, prototypeAccessors );
811
+
812
+ var createEmptyVNode = function (text) {
813
+ if ( text === void 0 ) text = '';
814
+
815
+ var node = new VNode();
816
+ node.text = text;
817
+ node.isComment = true;
818
+ return node
819
+ };
820
+
821
+ function createTextVNode (val) {
822
+ return new VNode(undefined, undefined, undefined, String(val))
823
+ }
824
+
825
+ // optimized shallow clone
826
+ // used for static nodes and slot nodes because they may be reused across
827
+ // multiple renders, cloning them avoids errors when DOM manipulations rely
828
+ // on their elm reference.
829
+ function cloneVNode (vnode) {
830
+ var cloned = new VNode(
831
+ vnode.tag,
832
+ vnode.data,
833
+ // #7975
834
+ // clone children array to avoid mutating original in case of cloning
835
+ // a child.
836
+ vnode.children && vnode.children.slice(),
837
+ vnode.text,
838
+ vnode.elm,
839
+ vnode.context,
840
+ vnode.componentOptions,
841
+ vnode.asyncFactory
842
  );
843
+ cloned.ns = vnode.ns;
844
+ cloned.isStatic = vnode.isStatic;
845
+ cloned.key = vnode.key;
846
+ cloned.isComment = vnode.isComment;
847
+ cloned.fnContext = vnode.fnContext;
848
+ cloned.fnOptions = vnode.fnOptions;
849
+ cloned.fnScopeId = vnode.fnScopeId;
850
+ cloned.asyncMeta = vnode.asyncMeta;
851
+ cloned.isCloned = true;
852
+ return cloned
853
+ }
854
+
855
+ /*
856
+ * not type checking this file because flow doesn't play well with
857
+ * dynamically accessing methods on Array prototype
858
+ */
859
+
860
+ var arrayProto = Array.prototype;
861
+ var arrayMethods = Object.create(arrayProto);
862
+
863
+ var methodsToPatch = [
864
+ 'push',
865
+ 'pop',
866
+ 'shift',
867
+ 'unshift',
868
+ 'splice',
869
+ 'sort',
870
+ 'reverse'
871
+ ];
872
+
873
+ /**
874
+ * Intercept mutating methods and emit events
875
+ */
876
+ methodsToPatch.forEach(function (method) {
877
+ // cache original method
878
+ var original = arrayProto[method];
879
+ def(arrayMethods, method, function mutator () {
880
+ var args = [], len = arguments.length;
881
+ while ( len-- ) args[ len ] = arguments[ len ];
882
+
883
+ var result = original.apply(this, args);
884
+ var ob = this.__ob__;
885
+ var inserted;
886
+ switch (method) {
887
+ case 'push':
888
+ case 'unshift':
889
+ inserted = args;
890
+ break
891
+ case 'splice':
892
+ inserted = args.slice(2);
893
+ break
894
+ }
895
+ if (inserted) { ob.observeArray(inserted); }
896
+ // notify change
897
+ ob.dep.notify();
898
+ return result
899
+ });
900
+ });
901
+
902
+ /* */
903
+
904
+ var arrayKeys = Object.getOwnPropertyNames(arrayMethods);
905
+
906
+ /**
907
+ * In some cases we may want to disable observation inside a component's
908
+ * update computation.
909
+ */
910
+ var shouldObserve = true;
911
+
912
+ function toggleObserving (value) {
913
+ shouldObserve = value;
914
  }
915
+
916
+ /**
917
+ * Observer class that is attached to each observed
918
+ * object. Once attached, the observer converts the target
919
+ * object's property keys into getter/setters that
920
+ * collect dependencies and dispatch updates.
921
+ */
922
+ var Observer = function Observer (value) {
923
+ this.value = value;
924
+ this.dep = new Dep();
925
+ this.vmCount = 0;
926
+ def(value, '__ob__', this);
927
+ if (Array.isArray(value)) {
928
+ if (hasProto) {
929
+ protoAugment(value, arrayMethods);
930
+ } else {
931
+ copyAugment(value, arrayMethods, arrayKeys);
932
+ }
933
+ this.observeArray(value);
934
+ } else {
935
+ this.walk(value);
936
+ }
937
+ };
938
+
939
+ /**
940
+ * Walk through all properties and convert them into
941
+ * getter/setters. This method should only be called when
942
+ * value type is Object.
943
+ */
944
+ Observer.prototype.walk = function walk (obj) {
945
+ var keys = Object.keys(obj);
946
+ for (var i = 0; i < keys.length; i++) {
947
+ defineReactive$$1(obj, keys[i]);
948
+ }
949
+ };
950
+
951
+ /**
952
+ * Observe a list of Array items.
953
+ */
954
+ Observer.prototype.observeArray = function observeArray (items) {
955
+ for (var i = 0, l = items.length; i < l; i++) {
956
+ observe(items[i]);
957
+ }
958
+ };
959
+
960
+ // helpers
961
+
962
+ /**
963
+ * Augment a target Object or Array by intercepting
964
+ * the prototype chain using __proto__
965
+ */
966
+ function protoAugment (target, src) {
967
+ /* eslint-disable no-proto */
968
+ target.__proto__ = src;
969
+ /* eslint-enable no-proto */
970
  }
971
+
972
+ /**
973
+ * Augment a target Object or Array by defining
974
+ * hidden properties.
975
+ */
976
+ /* istanbul ignore next */
977
+ function copyAugment (target, src, keys) {
978
+ for (var i = 0, l = keys.length; i < l; i++) {
979
+ var key = keys[i];
980
+ def(target, key, src[key]);
981
+ }
982
  }
 
 
983
 
984
+ /**
985
+ * Attempt to create an observer instance for a value,
986
+ * returns the new observer if successfully observed,
987
+ * or the existing observer if the value already has one.
988
+ */
989
+ function observe (value, asRootData) {
990
+ if (!isObject(value) || value instanceof VNode) {
991
+ return
992
+ }
993
+ var ob;
994
+ if (hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {
995
+ ob = value.__ob__;
996
+ } else if (
997
+ shouldObserve &&
998
+ !isServerRendering() &&
999
+ (Array.isArray(value) || isPlainObject(value)) &&
1000
+ Object.isExtensible(value) &&
1001
+ !value._isVue
1002
+ ) {
1003
+ ob = new Observer(value);
1004
+ }
1005
+ if (asRootData && ob) {
1006
+ ob.vmCount++;
1007
  }
1008
+ return ob
1009
  }
 
1010
 
1011
+ /**
1012
+ * Define a reactive property on an Object.
1013
+ */
1014
+ function defineReactive$$1 (
1015
+ obj,
1016
+ key,
1017
+ val,
1018
+ customSetter,
1019
+ shallow
1020
+ ) {
1021
+ var dep = new Dep();
1022
 
1023
+ var property = Object.getOwnPropertyDescriptor(obj, key);
1024
+ if (property && property.configurable === false) {
1025
+ return
1026
+ }
 
 
1027
 
1028
+ // cater for pre-defined getter/setters
1029
+ var getter = property && property.get;
1030
+ var setter = property && property.set;
1031
+ if ((!getter || setter) && arguments.length === 2) {
1032
+ val = obj[key];
1033
+ }
1034
+
1035
+ var childOb = !shallow && observe(val);
1036
+ Object.defineProperty(obj, key, {
1037
+ enumerable: true,
1038
+ configurable: true,
1039
+ get: function reactiveGetter () {
1040
+ var value = getter ? getter.call(obj) : val;
1041
+ if (Dep.target) {
1042
+ dep.depend();
1043
+ if (childOb) {
1044
+ childOb.dep.depend();
1045
+ if (Array.isArray(value)) {
1046
+ dependArray(value);
1047
+ }
1048
+ }
1049
+ }
1050
+ return value
1051
+ },
1052
+ set: function reactiveSetter (newVal) {
1053
+ var value = getter ? getter.call(obj) : val;
1054
+ /* eslint-disable no-self-compare */
1055
+ if (newVal === value || (newVal !== newVal && value !== value)) {
1056
+ return
1057
+ }
1058
+ /* eslint-enable no-self-compare */
1059
+ if (customSetter) {
1060
+ customSetter();
1061
+ }
1062
+ // #7981: for accessor properties without setter
1063
+ if (getter && !setter) { return }
1064
+ if (setter) {
1065
+ setter.call(obj, newVal);
1066
+ } else {
1067
+ val = newVal;
1068
+ }
1069
+ childOb = !shallow && observe(newVal);
1070
+ dep.notify();
1071
+ }
1072
+ });
1073
+ }
1074
+
1075
+ /**
1076
+ * Set a property on an object. Adds the new property and
1077
+ * triggers change notification if the property doesn't
1078
+ * already exist.
1079
+ */
1080
+ function set (target, key, val) {
1081
+ if (isUndef(target) || isPrimitive(target)
1082
+ ) {
1083
+ warn(("Cannot set reactive property on undefined, null, or primitive value: " + ((target))));
1084
+ }
1085
+ if (Array.isArray(target) && isValidArrayIndex(key)) {
1086
+ target.length = Math.max(target.length, key);
1087
+ target.splice(key, 1, val);
1088
+ return val
1089
+ }
1090
+ if (key in target && !(key in Object.prototype)) {
1091
+ target[key] = val;
1092
+ return val
1093
+ }
1094
+ var ob = (target).__ob__;
1095
+ if (target._isVue || (ob && ob.vmCount)) {
1096
  warn(
1097
+ 'Avoid adding reactive properties to a Vue instance or its root $data ' +
1098
+ 'at runtime - declare it upfront in the data option.'
1099
  );
1100
+ return val
1101
  }
1102
+ if (!ob) {
1103
+ target[key] = val;
1104
+ return val
1105
+ }
1106
+ defineReactive$$1(ob.value, key, val);
1107
+ ob.dep.notify();
1108
+ return val
1109
+ }
1110
 
1111
+ /**
1112
+ * Delete a property and trigger change if necessary.
1113
+ */
1114
+ function del (target, key) {
1115
+ if (isUndef(target) || isPrimitive(target)
1116
+ ) {
1117
+ warn(("Cannot delete reactive property on undefined, null, or primitive value: " + ((target))));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1118
  }
1119
+ if (Array.isArray(target) && isValidArrayIndex(key)) {
1120
+ target.splice(key, 1);
1121
+ return
1122
+ }
1123
+ var ob = (target).__ob__;
1124
+ if (target._isVue || (ob && ob.vmCount)) {
1125
+ warn(
1126
+ 'Avoid deleting properties on a Vue instance or its root $data ' +
1127
+ '- just set it to null.'
1128
+ );
1129
+ return
1130
+ }
1131
+ if (!hasOwn(target, key)) {
1132
+ return
1133
+ }
1134
+ delete target[key];
1135
+ if (!ob) {
1136
+ return
1137
+ }
1138
+ ob.dep.notify();
1139
+ }
1140
+
1141
+ /**
1142
+ * Collect dependencies on array elements when the array is touched, since
1143
+ * we cannot intercept array element access like property getters.
1144
+ */
1145
+ function dependArray (value) {
1146
+ for (var e = (void 0), i = 0, l = value.length; i < l; i++) {
1147
+ e = value[i];
1148
+ e && e.__ob__ && e.__ob__.dep.depend();
1149
+ if (Array.isArray(e)) {
1150
+ dependArray(e);
1151
  }
1152
  }
1153
  }
 
1154
 
1155
+ /* */
1156
+
1157
+ /**
1158
+ * Option overwriting strategies are functions that handle
1159
+ * how to merge a parent option value and a child option
1160
+ * value into the final value.
1161
+ */
1162
+ var strats = config.optionMergeStrategies;
1163
+
1164
+ /**
1165
+ * Options with restrictions
1166
+ */
1167
+ {
1168
+ strats.el = strats.propsData = function (parent, child, vm, key) {
1169
+ if (!vm) {
1170
+ warn(
1171
+ "option \"" + key + "\" can only be used during instance " +
1172
+ 'creation with the `new` keyword.'
1173
+ );
1174
+ }
1175
+ return defaultStrat(parent, child)
1176
+ };
1177
+ }
1178
+
1179
+ /**
1180
+ * Helper that recursively merges two data objects together.
1181
+ */
1182
+ function mergeData (to, from) {
1183
+ if (!from) { return to }
1184
+ var key, toVal, fromVal;
1185
 
1186
+ var keys = hasSymbol
1187
+ ? Reflect.ownKeys(from)
1188
+ : Object.keys(from);
1189
+
1190
+ for (var i = 0; i < keys.length; i++) {
1191
+ key = keys[i];
1192
+ // in case the object is already observed...
1193
+ if (key === '__ob__') { continue }
1194
+ toVal = to[key];
1195
+ fromVal = from[key];
1196
+ if (!hasOwn(to, key)) {
1197
+ set(to, key, fromVal);
1198
+ } else if (
1199
+ toVal !== fromVal &&
1200
+ isPlainObject(toVal) &&
1201
+ isPlainObject(fromVal)
1202
+ ) {
1203
+ mergeData(toVal, fromVal);
1204
+ }
1205
+ }
1206
+ return to
1207
+ }
1208
+
1209
+ /**
1210
+ * Data
1211
+ */
1212
+ function mergeDataOrFn (
1213
+ parentVal,
1214
+ childVal,
1215
+ vm
1216
+ ) {
1217
+ if (!vm) {
1218
+ // in a Vue.extend merge, both should be functions
1219
+ if (!childVal) {
1220
+ return parentVal
1221
+ }
1222
+ if (!parentVal) {
1223
+ return childVal
1224
+ }
1225
+ // when parentVal & childVal are both present,
1226
+ // we need to return a function that returns the
1227
+ // merged result of both functions... no need to
1228
+ // check if parentVal is a function here because
1229
+ // it has to be a function to pass previous merges.
1230
+ return function mergedDataFn () {
1231
+ return mergeData(
1232
+ typeof childVal === 'function' ? childVal.call(this, this) : childVal,
1233
+ typeof parentVal === 'function' ? parentVal.call(this, this) : parentVal
1234
+ )
1235
+ }
1236
+ } else {
1237
+ return function mergedInstanceDataFn () {
1238
+ // instance merge
1239
+ var instanceData = typeof childVal === 'function'
1240
+ ? childVal.call(vm, vm)
1241
+ : childVal;
1242
+ var defaultData = typeof parentVal === 'function'
1243
+ ? parentVal.call(vm, vm)
1244
+ : parentVal;
1245
+ if (instanceData) {
1246
+ return mergeData(instanceData, defaultData)
1247
+ } else {
1248
+ return defaultData
1249
+ }
1250
+ }
1251
  }
 
1252
  }
1253
 
1254
+ strats.data = function (
1255
+ parentVal,
1256
+ childVal,
1257
+ vm
1258
+ ) {
1259
+ if (!vm) {
1260
+ if (childVal && typeof childVal !== 'function') {
1261
+ warn(
1262
+ 'The "data" option should be a function ' +
1263
+ 'that returns a per-instance value in component ' +
1264
+ 'definitions.',
1265
+ vm
1266
+ );
1267
+
1268
+ return parentVal
1269
+ }
1270
+ return mergeDataOrFn(parentVal, childVal)
1271
+ }
1272
 
1273
+ return mergeDataOrFn(parentVal, childVal, vm)
1274
+ };
1275
+
1276
+ /**
1277
+ * Hooks and props are merged as arrays.
1278
+ */
1279
+ function mergeHook (
1280
+ parentVal,
1281
+ childVal
1282
+ ) {
1283
+ var res = childVal
1284
+ ? parentVal
1285
+ ? parentVal.concat(childVal)
1286
+ : Array.isArray(childVal)
1287
+ ? childVal
1288
+ : [childVal]
1289
+ : parentVal;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1290
  return res
1291
+ ? dedupeHooks(res)
1292
+ : res
1293
  }
 
 
 
 
 
1294
 
1295
+ function dedupeHooks (hooks) {
1296
+ var res = [];
1297
+ for (var i = 0; i < hooks.length; i++) {
1298
+ if (res.indexOf(hooks[i]) === -1) {
1299
+ res.push(hooks[i]);
1300
+ }
1301
+ }
1302
+ return res
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1303
  }
1304
+
1305
+ LIFECYCLE_HOOKS.forEach(function (hook) {
1306
+ strats[hook] = mergeHook;
1307
+ });
1308
+
1309
+ /**
1310
+ * Assets
1311
+ *
1312
+ * When a vm is present (instance creation), we need to do
1313
+ * a three-way merge between constructor options, instance
1314
+ * options and parent options.
1315
+ */
1316
+ function mergeAssets (
1317
+ parentVal,
1318
+ childVal,
1319
+ vm,
1320
+ key
1321
+ ) {
1322
+ var res = Object.create(parentVal || null);
1323
+ if (childVal) {
1324
+ assertObjectType(key, childVal, vm);
1325
+ return extend(res, childVal)
1326
+ } else {
1327
+ return res
1328
+ }
1329
  }
 
1330
 
1331
+ ASSET_TYPES.forEach(function (type) {
1332
+ strats[type + 's'] = mergeAssets;
1333
+ });
1334
+
1335
+ /**
1336
+ * Watchers.
1337
+ *
1338
+ * Watchers hashes should not overwrite one
1339
+ * another, so we merge them as arrays.
1340
+ */
1341
+ strats.watch = function (
1342
+ parentVal,
1343
+ childVal,
1344
+ vm,
1345
+ key
1346
+ ) {
1347
+ // work around Firefox's Object.prototype.watch...
1348
+ if (parentVal === nativeWatch) { parentVal = undefined; }
1349
+ if (childVal === nativeWatch) { childVal = undefined; }
1350
+ /* istanbul ignore if */
1351
+ if (!childVal) { return Object.create(parentVal || null) }
1352
+ {
1353
+ assertObjectType(key, childVal, vm);
1354
+ }
1355
+ if (!parentVal) { return childVal }
1356
+ var ret = {};
1357
+ extend(ret, parentVal);
1358
+ for (var key$1 in childVal) {
1359
+ var parent = ret[key$1];
1360
+ var child = childVal[key$1];
1361
+ if (parent && !Array.isArray(parent)) {
1362
+ parent = [parent];
1363
  }
1364
+ ret[key$1] = parent
1365
+ ? parent.concat(child)
1366
+ : Array.isArray(child) ? child : [child];
1367
  }
1368
+ return ret
1369
+ };
1370
+
1371
+ /**
1372
+ * Other object hashes.
1373
+ */
1374
+ strats.props =
1375
+ strats.methods =
1376
+ strats.inject =
1377
+ strats.computed = function (
1378
+ parentVal,
1379
+ childVal,
1380
+ vm,
1381
+ key
1382
+ ) {
1383
+ if (childVal && "development" !== 'production') {
1384
+ assertObjectType(key, childVal, vm);
1385
  }
1386
+ if (!parentVal) { return childVal }
1387
+ var ret = Object.create(null);
1388
+ extend(ret, parentVal);
1389
+ if (childVal) { extend(ret, childVal); }
1390
+ return ret
1391
+ };
1392
+ strats.provide = mergeDataOrFn;
1393
+
1394
+ /**
1395
+ * Default strategy.
1396
+ */
1397
+ var defaultStrat = function (parentVal, childVal) {
1398
+ return childVal === undefined
1399
+ ? parentVal
1400
+ : childVal
1401
+ };
1402
+
1403
+ /**
1404
+ * Validate component names
1405
+ */
1406
+ function checkComponents (options) {
1407
+ for (var key in options.components) {
1408
+ validateComponentName(key);
1409
+ }
1410
+ }
1411
+
1412
+ function validateComponentName (name) {
1413
+ if (!new RegExp(("^[a-zA-Z][\\-\\.0-9_" + unicodeLetters + "]*$")).test(name)) {
1414
+ warn(
1415
+ 'Invalid component name: "' + name + '". Component names ' +
1416
+ 'should conform to valid custom element name in html5 specification.'
1417
+ );
1418
+ }
1419
+ if (isBuiltInTag(name) || config.isReservedTag(name)) {
1420
+ warn(
1421
+ 'Do not use built-in or reserved HTML elements as component ' +
1422
+ 'id: ' + name
1423
+ );
1424
+ }
1425
+ }
1426
+
1427
+ /**
1428
+ * Ensure all props option syntax are normalized into the
1429
+ * Object-based format.
1430
+ */
1431
+ function normalizeProps (options, vm) {
1432
+ var props = options.props;
1433
+ if (!props) { return }
1434
+ var res = {};
1435
+ var i, val, name;
1436
+ if (Array.isArray(props)) {
1437
+ i = props.length;
1438
+ while (i--) {
1439
+ val = props[i];
1440
+ if (typeof val === 'string') {
1441
+ name = camelize(val);
1442
+ res[name] = { type: null };
1443
+ } else {
1444
+ warn('props must be strings when using array syntax.');
1445
+ }
1446
+ }
1447
+ } else if (isPlainObject(props)) {
1448
+ for (var key in props) {
1449
+ val = props[key];
1450
+ name = camelize(key);
1451
+ res[name] = isPlainObject(val)
1452
+ ? val
1453
+ : { type: val };
1454
+ }
1455
+ } else {
1456
+ warn(
1457
+ "Invalid value for option \"props\": expected an Array or an Object, " +
1458
+ "but got " + (toRawType(props)) + ".",
1459
+ vm
1460
+ );
1461
+ }
1462
+ options.props = res;
1463
+ }
1464
+
1465
+ /**
1466
+ * Normalize all injections into Object-based format
1467
+ */
1468
+ function normalizeInject (options, vm) {
1469
+ var inject = options.inject;
1470
+ if (!inject) { return }
1471
+ var normalized = options.inject = {};
1472
+ if (Array.isArray(inject)) {
1473
+ for (var i = 0; i < inject.length; i++) {
1474
+ normalized[inject[i]] = { from: inject[i] };
1475
+ }
1476
+ } else if (isPlainObject(inject)) {
1477
+ for (var key in inject) {
1478
+ var val = inject[key];
1479
+ normalized[key] = isPlainObject(val)
1480
+ ? extend({ from: key }, val)
1481
+ : { from: val };
1482
+ }
1483
+ } else {
1484
+ warn(
1485
+ "Invalid value for option \"inject\": expected an Array or an Object, " +
1486
+ "but got " + (toRawType(inject)) + ".",
1487
+ vm
1488
+ );
1489
+ }
1490
+ }
1491
+
1492
+ /**
1493
+ * Normalize raw function directives into object format.
1494
+ */
1495
+ function normalizeDirectives (options) {
1496
+ var dirs = options.directives;
1497
+ if (dirs) {
1498
+ for (var key in dirs) {
1499
+ var def$$1 = dirs[key];
1500
+ if (typeof def$$1 === 'function') {
1501
+ dirs[key] = { bind: def$$1, update: def$$1 };
1502
+ }
1503
+ }
1504
+ }
1505
+ }
1506
+
1507
+ function assertObjectType (name, value, vm) {
1508
+ if (!isPlainObject(value)) {
1509
+ warn(
1510
+ "Invalid value for option \"" + name + "\": expected an Object, " +
1511
+ "but got " + (toRawType(value)) + ".",
1512
+ vm
1513
+ );
1514
+ }
1515
+ }
1516
+
1517
+ /**
1518
+ * Merge two option objects into a new one.
1519
+ * Core utility used in both instantiation and inheritance.
1520
+ */
1521
+ function mergeOptions (
1522
+ parent,
1523
+ child,
1524
+ vm
1525
+ ) {
1526
+ {
1527
+ checkComponents(child);
1528
+ }
1529
+
1530
+ if (typeof child === 'function') {
1531
+ child = child.options;
1532
+ }
1533
+
1534
+ normalizeProps(child, vm);
1535
+ normalizeInject(child, vm);
1536
+ normalizeDirectives(child);
1537
+
1538
+ // Apply extends and mixins on the child options,
1539
+ // but only if it is a raw options object that isn't
1540
+ // the result of another mergeOptions call.
1541
+ // Only merged options has the _base property.
1542
+ if (!child._base) {
1543
+ if (child.extends) {
1544
+ parent = mergeOptions(parent, child.extends, vm);
1545
+ }
1546
+ if (child.mixins) {
1547
+ for (var i = 0, l = child.mixins.length; i < l; i++) {
1548
+ parent = mergeOptions(parent, child.mixins[i], vm);
1549
+ }
1550
+ }
1551
+ }
1552
+
1553
+ var options = {};
1554
+ var key;
1555
+ for (key in parent) {
1556
+ mergeField(key);
1557
+ }
1558
+ for (key in child) {
1559
+ if (!hasOwn(parent, key)) {
1560
+ mergeField(key);
1561
+ }
1562
+ }
1563
+ function mergeField (key) {
1564
+ var strat = strats[key] || defaultStrat;
1565
+ options[key] = strat(parent[key], child[key], vm, key);
1566
+ }
1567
+ return options
1568
+ }
1569
+
1570
+ /**
1571
+ * Resolve an asset.
1572
+ * This function is used because child instances need access
1573
+ * to assets defined in its ancestor chain.
1574
+ */
1575
+ function resolveAsset (
1576
+ options,
1577
+ type,
1578
+ id,
1579
+ warnMissing
1580
+ ) {
1581
+ /* istanbul ignore if */
1582
+ if (typeof id !== 'string') {
1583
+ return
1584
+ }
1585
+ var assets = options[type];
1586
+ // check local registration variations first
1587
+ if (hasOwn(assets, id)) { return assets[id] }
1588
+ var camelizedId = camelize(id);
1589
+ if (hasOwn(assets, camelizedId)) { return assets[camelizedId] }
1590
+ var PascalCaseId = capitalize(camelizedId);
1591
+ if (hasOwn(assets, PascalCaseId)) { return assets[PascalCaseId] }
1592
+ // fallback to prototype chain
1593
+ var res = assets[id] || assets[camelizedId] || assets[PascalCaseId];
1594
+ if (warnMissing && !res) {
1595
+ warn(
1596
+ 'Failed to resolve ' + type.slice(0, -1) + ': ' + id,
1597
+ options
1598
+ );
1599
+ }
1600
+ return res
1601
+ }
1602
+
1603
+ /* */
1604
+
1605
+
1606
+
1607
+ function validateProp (
1608
+ key,
1609
+ propOptions,
1610
+ propsData,
1611
+ vm
1612
+ ) {
1613
+ var prop = propOptions[key];
1614
+ var absent = !hasOwn(propsData, key);
1615
+ var value = propsData[key];
1616
+ // boolean casting
1617
+ var booleanIndex = getTypeIndex(Boolean, prop.type);
1618
+ if (booleanIndex > -1) {
1619
+ if (absent && !hasOwn(prop, 'default')) {
1620
+ value = false;
1621
+ } else if (value === '' || value === hyphenate(key)) {
1622
+ // only cast empty string / same name to boolean if
1623
+ // boolean has higher priority
1624
+ var stringIndex = getTypeIndex(String, prop.type);
1625
+ if (stringIndex < 0 || booleanIndex < stringIndex) {
1626
+ value = true;
1627
+ }
1628
+ }
1629
+ }
1630
+ // check default value
1631
+ if (value === undefined) {
1632
+ value = getPropDefaultValue(vm, prop, key);
1633
+ // since the default value is a fresh copy,
1634
+ // make sure to observe it.
1635
+ var prevShouldObserve = shouldObserve;
1636
+ toggleObserving(true);
1637
+ observe(value);
1638
+ toggleObserving(prevShouldObserve);
1639
+ }
1640
+ {
1641
+ assertProp(prop, key, value, vm, absent);
1642
+ }
1643
+ return value
1644
+ }
1645
+
1646
+ /**
1647
+ * Get the default value of a prop.
1648
+ */
1649
+ function getPropDefaultValue (vm, prop, key) {
1650
+ // no default, return undefined
1651
+ if (!hasOwn(prop, 'default')) {
1652
+ return undefined
1653
+ }
1654
+ var def = prop.default;
1655
+ // warn against non-factory defaults for Object & Array
1656
+ if (isObject(def)) {
1657
+ warn(
1658
+ 'Invalid default value for prop "' + key + '": ' +
1659
+ 'Props with type Object/Array must use a factory function ' +
1660
+ 'to return the default value.',
1661
+ vm
1662
+ );
1663
+ }
1664
+ // the raw prop value was also undefined from previous render,
1665
+ // return previous default value to avoid unnecessary watcher trigger
1666
+ if (vm && vm.$options.propsData &&
1667
+ vm.$options.propsData[key] === undefined &&
1668
+ vm._props[key] !== undefined
1669
+ ) {
1670
+ return vm._props[key]
1671
+ }
1672
+ // call factory function for non-Function types
1673
+ // a value is Function if its prototype is function even across different execution context
1674
+ return typeof def === 'function' && getType(prop.type) !== 'Function'
1675
+ ? def.call(vm)
1676
+ : def
1677
+ }
1678
+
1679
+ /**
1680
+ * Assert whether a prop is valid.
1681
+ */
1682
+ function assertProp (
1683
+ prop,
1684
+ name,
1685
+ value,
1686
+ vm,
1687
+ absent
1688
+ ) {
1689
+ if (prop.required && absent) {
1690
+ warn(
1691
+ 'Missing required prop: "' + name + '"',
1692
+ vm
1693
+ );
1694
+ return
1695
+ }
1696
+ if (value == null && !prop.required) {
1697
+ return
1698
+ }
1699
+ var type = prop.type;
1700
+ var valid = !type || type === true;
1701
+ var expectedTypes = [];
1702
+ if (type) {
1703
+ if (!Array.isArray(type)) {
1704
+ type = [type];
1705
+ }
1706
+ for (var i = 0; i < type.length && !valid; i++) {
1707
+ var assertedType = assertType(value, type[i]);
1708
+ expectedTypes.push(assertedType.expectedType || '');
1709
+ valid = assertedType.valid;
1710
+ }
1711
+ }
1712
+
1713
+ if (!valid) {
1714
+ warn(
1715
+ getInvalidTypeMessage(name, value, expectedTypes),
1716
+ vm
1717
+ );
1718
+ return
1719
+ }
1720
+ var validator = prop.validator;
1721
+ if (validator) {
1722
+ if (!validator(value)) {
1723
+ warn(
1724
+ 'Invalid prop: custom validator check failed for prop "' + name + '".',
1725
+ vm
1726
+ );
1727
+ }
1728
+ }
1729
+ }
1730
+
1731
+ var simpleCheckRE = /^(String|Number|Boolean|Function|Symbol)$/;
1732
+
1733
+ function assertType (value, type) {
1734
+ var valid;
1735
+ var expectedType = getType(type);
1736
+ if (simpleCheckRE.test(expectedType)) {
1737
+ var t = typeof value;
1738
+ valid = t === expectedType.toLowerCase();
1739
+ // for primitive wrapper objects
1740
+ if (!valid && t === 'object') {
1741
+ valid = value instanceof type;
1742
+ }
1743
+ } else if (expectedType === 'Object') {
1744
+ valid = isPlainObject(value);
1745
+ } else if (expectedType === 'Array') {
1746
+ valid = Array.isArray(value);
1747
+ } else {
1748
+ valid = value instanceof type;
1749
+ }
1750
+ return {
1751
+ valid: valid,
1752
+ expectedType: expectedType
1753
+ }
1754
+ }
1755
+
1756
+ /**
1757
+ * Use function string name to check built-in types,
1758
+ * because a simple equality check will fail when running
1759
+ * across different vms / iframes.
1760
+ */
1761
+ function getType (fn) {
1762
+ var match = fn && fn.toString().match(/^\s*function (\w+)/);
1763
+ return match ? match[1] : ''
1764
+ }
1765
+
1766
+ function isSameType (a, b) {
1767
+ return getType(a) === getType(b)
1768
+ }
1769
+
1770
+ function getTypeIndex (type, expectedTypes) {
1771
+ if (!Array.isArray(expectedTypes)) {
1772
+ return isSameType(expectedTypes, type) ? 0 : -1
1773
+ }
1774
+ for (var i = 0, len = expectedTypes.length; i < len; i++) {
1775
+ if (isSameType(expectedTypes[i], type)) {
1776
+ return i
1777
+ }
1778
+ }
1779
+ return -1
1780
+ }
1781
+
1782
+ function getInvalidTypeMessage (name, value, expectedTypes) {
1783
+ var message = "Invalid prop: type check failed for prop \"" + name + "\"." +
1784
+ " Expected " + (expectedTypes.map(capitalize).join(', '));
1785
+ var expectedType = expectedTypes[0];
1786
+ var receivedType = toRawType(value);
1787
+ var expectedValue = styleValue(value, expectedType);
1788
+ var receivedValue = styleValue(value, receivedType);
1789
+ // check if we need to specify expected value
1790
+ if (expectedTypes.length === 1 &&
1791
+ isExplicable(expectedType) &&
1792
+ !isBoolean(expectedType, receivedType)) {
1793
+ message += " with value " + expectedValue;
1794
+ }
1795
+ message += ", got " + receivedType + " ";
1796
+ // check if we need to specify received value
1797
+ if (isExplicable(receivedType)) {
1798
+ message += "with value " + receivedValue + ".";
1799
+ }
1800
+ return message
1801
+ }
1802
+
1803
+ function styleValue (value, type) {
1804
+ if (type === 'String') {
1805
+ return ("\"" + value + "\"")
1806
+ } else if (type === 'Number') {
1807
+ return ("" + (Number(value)))
1808
+ } else {
1809
+ return ("" + value)
1810
+ }
1811
+ }
1812
+
1813
+ function isExplicable (value) {
1814
+ var explicitTypes = ['string', 'number', 'boolean'];
1815
+ return explicitTypes.some(function (elem) { return value.toLowerCase() === elem; })
1816
+ }
1817
+
1818
+ function isBoolean () {
1819
+ var args = [], len = arguments.length;
1820
+ while ( len-- ) args[ len ] = arguments[ len ];
1821
+
1822
+ return args.some(function (elem) { return elem.toLowerCase() === 'boolean'; })
1823
+ }
1824
+
1825
+ /* */
1826
+
1827
+ function handleError (err, vm, info) {
1828
+ if (vm) {
1829
+ var cur = vm;
1830
+ while ((cur = cur.$parent)) {
1831
+ var hooks = cur.$options.errorCaptured;
1832
+ if (hooks) {
1833
+ for (var i = 0; i < hooks.length; i++) {
1834
+ try {
1835
+ var capture = hooks[i].call(cur, err, vm, info) === false;
1836
+ if (capture) { return }
1837
+ } catch (e) {
1838
+ globalHandleError(e, cur, 'errorCaptured hook');
1839
+ }
1840
+ }
1841
+ }
1842
+ }
1843
+ }
1844
+ globalHandleError(err, vm, info);
1845
+ }
1846
+
1847
+ function invokeWithErrorHandling (
1848
+ handler,
1849
+ context,
1850
+ args,
1851
+ vm,
1852
+ info
1853
+ ) {
1854
+ var res;
1855
+ try {
1856
+ res = args ? handler.apply(context, args) : handler.call(context);
1857
+ if (res && !res._isVue && isPromise(res)) {
1858
+ res.catch(function (e) { return handleError(e, vm, info + " (Promise/async)"); });
1859
+ }
1860
+ } catch (e) {
1861
+ handleError(e, vm, info);
1862
+ }
1863
+ return res
1864
+ }
1865
+
1866
+ function globalHandleError (err, vm, info) {
1867
+ if (config.errorHandler) {
1868
+ try {
1869
+ return config.errorHandler.call(null, err, vm, info)
1870
+ } catch (e) {
1871
+ // if the user intentionally throws the original error in the handler,
1872
+ // do not log it twice
1873
+ if (e !== err) {
1874
+ logError(e, null, 'config.errorHandler');
1875
+ }
1876
+ }
1877
+ }
1878
+ logError(err, vm, info);
1879
+ }
1880
+
1881
+ function logError (err, vm, info) {
1882
+ {
1883
+ warn(("Error in " + info + ": \"" + (err.toString()) + "\""), vm);
1884
+ }
1885
+ /* istanbul ignore else */
1886
+ if ((inBrowser || inWeex) && typeof console !== 'undefined') {
1887
+ console.error(err);
1888
+ } else {
1889
+ throw err
1890
+ }
1891
+ }
1892
+
1893
+ /* */
1894
+
1895
+ var isUsingMicroTask = false;
1896
+
1897
+ var callbacks = [];
1898
+ var pending = false;
1899
+
1900
+ function flushCallbacks () {
1901
+ pending = false;
1902
+ var copies = callbacks.slice(0);
1903
+ callbacks.length = 0;
1904
+ for (var i = 0; i < copies.length; i++) {
1905
+ copies[i]();
1906
+ }
1907
+ }
1908
+
1909
+ // Here we have async deferring wrappers using microtasks.
1910
+ // In 2.5 we used (macro) tasks (in combination with microtasks).
1911
+ // However, it has subtle problems when state is changed right before repaint
1912
+ // (e.g. #6813, out-in transitions).
1913
+ // Also, using (macro) tasks in event handler would cause some weird behaviors
1914
+ // that cannot be circumvented (e.g. #7109, #7153, #7546, #7834, #8109).
1915
+ // So we now use microtasks everywhere, again.
1916
+ // A major drawback of this tradeoff is that there are some scenarios
1917
+ // where microtasks have too high a priority and fire in between supposedly
1918
+ // sequential events (e.g. #4521, #6690, which have workarounds)
1919
+ // or even between bubbling of the same event (#6566).
1920
+ var timerFunc;
1921
+
1922
+ // The nextTick behavior leverages the microtask queue, which can be accessed
1923
+ // via either native Promise.then or MutationObserver.
1924
+ // MutationObserver has wider support, however it is seriously bugged in
1925
+ // UIWebView in iOS >= 9.3.3 when triggered in touch event handlers. It
1926
+ // completely stops working after triggering a few times... so, if native
1927
+ // Promise is available, we will use it:
1928
+ /* istanbul ignore next, $flow-disable-line */
1929
+ if (typeof Promise !== 'undefined' && isNative(Promise)) {
1930
+ var p = Promise.resolve();
1931
+ timerFunc = function () {
1932
+ p.then(flushCallbacks);
1933
+ // In problematic UIWebViews, Promise.then doesn't completely break, but
1934
+ // it can get stuck in a weird state where callbacks are pushed into the
1935
+ // microtask queue but the queue isn't being flushed, until the browser
1936
+ // needs to do some other work, e.g. handle a timer. Therefore we can
1937
+ // "force" the microtask queue to be flushed by adding an empty timer.
1938
+ if (isIOS) { setTimeout(noop); }
1939
+ };
1940
+ isUsingMicroTask = true;
1941
+ } else if (!isIE && typeof MutationObserver !== 'undefined' && (
1942
+ isNative(MutationObserver) ||
1943
+ // PhantomJS and iOS 7.x
1944
+ MutationObserver.toString() === '[object MutationObserverConstructor]'
1945
+ )) {
1946
+ // Use MutationObserver where native Promise is not available,
1947
+ // e.g. PhantomJS, iOS7, Android 4.4
1948
+ // (#6466 MutationObserver is unreliable in IE11)
1949
+ var counter = 1;
1950
+ var observer = new MutationObserver(flushCallbacks);
1951
+ var textNode = document.createTextNode(String(counter));
1952
+ observer.observe(textNode, {
1953
+ characterData: true
1954
+ });
1955
+ timerFunc = function () {
1956
+ counter = (counter + 1) % 2;
1957
+ textNode.data = String(counter);
1958
+ };
1959
+ isUsingMicroTask = true;
1960
+ } else if (typeof setImmediate !== 'undefined' && isNative(setImmediate)) {
1961
+ // Fallback to setImmediate.
1962
+ // Techinically it leverages the (macro) task queue,
1963
+ // but it is still a better choice than setTimeout.
1964
+ timerFunc = function () {
1965
+ setImmediate(flushCallbacks);
1966
+ };
1967
+ } else {
1968
+ // Fallback to setTimeout.
1969
+ timerFunc = function () {
1970
+ setTimeout(flushCallbacks, 0);
1971
+ };
1972
+ }
1973
+
1974
+ function nextTick (cb, ctx) {
1975
+ var _resolve;
1976
+ callbacks.push(function () {
1977
+ if (cb) {
1978
+ try {
1979
+ cb.call(ctx);
1980
+ } catch (e) {
1981
+ handleError(e, ctx, 'nextTick');
1982
+ }
1983
+ } else if (_resolve) {
1984
+ _resolve(ctx);
1985
+ }
1986
+ });
1987
+ if (!pending) {
1988
+ pending = true;
1989
+ timerFunc();
1990
+ }
1991
+ // $flow-disable-line
1992
+ if (!cb && typeof Promise !== 'undefined') {
1993
+ return new Promise(function (resolve) {
1994
+ _resolve = resolve;
1995
+ })
1996
+ }
1997
+ }
1998
+
1999
+ /* */
2000
+
2001
+ var mark;
2002
+ var measure;
2003
+
2004
+ {
2005
+ var perf = inBrowser && window.performance;
2006
+ /* istanbul ignore if */
2007
+ if (
2008
+ perf &&
2009
+ perf.mark &&
2010
+ perf.measure &&
2011
+ perf.clearMarks &&
2012
+ perf.clearMeasures
2013
+ ) {
2014
+ mark = function (tag) { return perf.mark(tag); };
2015
+ measure = function (name, startTag, endTag) {
2016
+ perf.measure(name, startTag, endTag);
2017
+ perf.clearMarks(startTag);
2018
+ perf.clearMarks(endTag);
2019
+ // perf.clearMeasures(name)
2020
+ };
2021
+ }
2022
+ }
2023
+
2024
+ /* not type checking this file because flow doesn't play well with Proxy */
2025
+
2026
+ var initProxy;
2027
+
2028
+ {
2029
+ var allowedGlobals = makeMap(
2030
+ 'Infinity,undefined,NaN,isFinite,isNaN,' +
2031
+ 'parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,' +
2032
+ 'Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,' +
2033
+ 'require' // for Webpack/Browserify
2034
+ );
2035
+
2036
+ var warnNonPresent = function (target, key) {
2037
+ warn(
2038
+ "Property or method \"" + key + "\" is not defined on the instance but " +
2039
+ 'referenced during render. Make sure that this property is reactive, ' +
2040
+ 'either in the data option, or for class-based components, by ' +
2041
+ 'initializing the property. ' +
2042
+ 'See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.',
2043
+ target
2044
+ );
2045
+ };
2046
+
2047
+ var warnReservedPrefix = function (target, key) {
2048
+ warn(
2049
+ "Property \"" + key + "\" must be accessed with \"$data." + key + "\" because " +
2050
+ 'properties starting with "$" or "_" are not proxied in the Vue instance to ' +
2051
+ 'prevent conflicts with Vue internals' +
2052
+ 'See: https://vuejs.org/v2/api/#data',
2053
+ target
2054
+ );
2055
+ };
2056
+
2057
+ var hasProxy =
2058
+ typeof Proxy !== 'undefined' && isNative(Proxy);
2059
+
2060
+ if (hasProxy) {
2061
+ var isBuiltInModifier = makeMap('stop,prevent,self,ctrl,shift,alt,meta,exact');
2062
+ config.keyCodes = new Proxy(config.keyCodes, {
2063
+ set: function set (target, key, value) {
2064
+ if (isBuiltInModifier(key)) {
2065
+ warn(("Avoid overwriting built-in modifier in config.keyCodes: ." + key));
2066
+ return false
2067
+ } else {
2068
+ target[key] = value;
2069
+ return true
2070
+ }
2071
+ }
2072
+ });
2073
+ }
2074
+
2075
+ var hasHandler = {
2076
+ has: function has (target, key) {
2077
+ var has = key in target;
2078
+ var isAllowed = allowedGlobals(key) ||
2079
+ (typeof key === 'string' && key.charAt(0) === '_' && !(key in target.$data));
2080
+ if (!has && !isAllowed) {
2081
+ if (key in target.$data) { warnReservedPrefix(target, key); }
2082
+ else { warnNonPresent(target, key); }
2083
+ }
2084
+ return has || !isAllowed
2085
+ }
2086
+ };
2087
+
2088
+ var getHandler = {
2089
+ get: function get (target, key) {
2090
+ if (typeof key === 'string' && !(key in target)) {
2091
+ if (key in target.$data) { warnReservedPrefix(target, key); }
2092
+ else { warnNonPresent(target, key); }
2093
+ }
2094
+ return target[key]
2095
+ }
2096
+ };
2097
+
2098
+ initProxy = function initProxy (vm) {
2099
+ if (hasProxy) {
2100
+ // determine which proxy handler to use
2101
+ var options = vm.$options;
2102
+ var handlers = options.render && options.render._withStripped
2103
+ ? getHandler
2104
+ : hasHandler;
2105
+ vm._renderProxy = new Proxy(vm, handlers);
2106
+ } else {
2107
+ vm._renderProxy = vm;
2108
+ }
2109
+ };
2110
+ }
2111
+
2112
+ /* */
2113
+
2114
+ var seenObjects = new _Set();
2115
+
2116
+ /**
2117
+ * Recursively traverse an object to evoke all converted
2118
+ * getters, so that every nested property inside the object
2119
+ * is collected as a "deep" dependency.
2120
+ */
2121
+ function traverse (val) {
2122
+ _traverse(val, seenObjects);
2123
+ seenObjects.clear();
2124
+ }
2125
+
2126
+ function _traverse (val, seen) {
2127
+ var i, keys;
2128
+ var isA = Array.isArray(val);
2129
+ if ((!isA && !isObject(val)) || Object.isFrozen(val) || val instanceof VNode) {
2130
+ return
2131
+ }
2132
+ if (val.__ob__) {
2133
+ var depId = val.__ob__.dep.id;
2134
+ if (seen.has(depId)) {
2135
+ return
2136
+ }
2137
+ seen.add(depId);
2138
+ }
2139
+ if (isA) {
2140
+ i = val.length;
2141
+ while (i--) { _traverse(val[i], seen); }
2142
+ } else {
2143
+ keys = Object.keys(val);
2144
+ i = keys.length;
2145
+ while (i--) { _traverse(val[keys[i]], seen); }
2146
+ }
2147
+ }
2148
+
2149
+ /* */
2150
+
2151
+ var normalizeEvent = cached(function (name) {
2152
+ var passive = name.charAt(0) === '&';
2153
+ name = passive ? name.slice(1) : name;
2154
+ var once$$1 = name.charAt(0) === '~'; // Prefixed last, checked first
2155
+ name = once$$1 ? name.slice(1) : name;
2156
+ var capture = name.charAt(0) === '!';
2157
+ name = capture ? name.slice(1) : name;
2158
+ return {
2159
+ name: name,
2160
+ once: once$$1,
2161
+ capture: capture,
2162
+ passive: passive
2163
+ }
2164
+ });
2165
+
2166
+ function createFnInvoker (fns, vm) {
2167
+ function invoker () {
2168
+ var arguments$1 = arguments;
2169
+
2170
+ var fns = invoker.fns;
2171
+ if (Array.isArray(fns)) {
2172
+ var cloned = fns.slice();
2173
+ for (var i = 0; i < cloned.length; i++) {
2174
+ invokeWithErrorHandling(cloned[i], null, arguments$1, vm, "v-on handler");
2175
+ }
2176
+ } else {
2177
+ // return handler return value for single handlers
2178
+ return invokeWithErrorHandling(fns, null, arguments, vm, "v-on handler")
2179
+ }
2180
+ }
2181
+ invoker.fns = fns;
2182
+ return invoker
2183
+ }
2184
+
2185
+ function updateListeners (
2186
+ on,
2187
+ oldOn,
2188
+ add,
2189
+ remove$$1,
2190
+ createOnceHandler,
2191
+ vm
2192
+ ) {
2193
+ var name, def$$1, cur, old, event;
2194
+ for (name in on) {
2195
+ def$$1 = cur = on[name];
2196
+ old = oldOn[name];
2197
+ event = normalizeEvent(name);
2198
+ if (isUndef(cur)) {
2199
+ warn(
2200
+ "Invalid handler for event \"" + (event.name) + "\": got " + String(cur),
2201
+ vm
2202
+ );
2203
+ } else if (isUndef(old)) {
2204
+ if (isUndef(cur.fns)) {
2205
+ cur = on[name] = createFnInvoker(cur, vm);
2206
+ }
2207
+ if (isTrue(event.once)) {
2208
+ cur = on[name] = createOnceHandler(event.name, cur, event.capture);
2209
+ }
2210
+ add(event.name, cur, event.capture, event.passive, event.params);
2211
+ } else if (cur !== old) {
2212
+ old.fns = cur;
2213
+ on[name] = old;
2214
+ }
2215
+ }
2216
+ for (name in oldOn) {
2217
+ if (isUndef(on[name])) {
2218
+ event = normalizeEvent(name);
2219
+ remove$$1(event.name, oldOn[name], event.capture);
2220
+ }
2221
+ }
2222
+ }
2223
+
2224
+ /* */
2225
+
2226
+ function mergeVNodeHook (def, hookKey, hook) {
2227
+ if (def instanceof VNode) {
2228
+ def = def.data.hook || (def.data.hook = {});
2229
+ }
2230
+ var invoker;
2231
+ var oldHook = def[hookKey];
2232
+
2233
+ function wrappedHook () {
2234
+ hook.apply(this, arguments);
2235
+ // important: remove merged hook to ensure it's called only once
2236
+ // and prevent memory leak
2237
+ remove(invoker.fns, wrappedHook);
2238
+ }
2239
+
2240
+ if (isUndef(oldHook)) {
2241
+ // no existing hook
2242
+ invoker = createFnInvoker([wrappedHook]);
2243
+ } else {
2244
+ /* istanbul ignore if */
2245
+ if (isDef(oldHook.fns) && isTrue(oldHook.merged)) {
2246
+ // already a merged invoker
2247
+ invoker = oldHook;
2248
+ invoker.fns.push(wrappedHook);
2249
+ } else {
2250
+ // existing plain hook
2251
+ invoker = createFnInvoker([oldHook, wrappedHook]);
2252
+ }
2253
+ }
2254
+
2255
+ invoker.merged = true;
2256
+ def[hookKey] = invoker;
2257
+ }
2258
+
2259
+ /* */
2260
+
2261
+ function extractPropsFromVNodeData (
2262
+ data,
2263
+ Ctor,
2264
+ tag
2265
+ ) {
2266
+ // we are only extracting raw values here.
2267
+ // validation and default values are handled in the child
2268
+ // component itself.
2269
+ var propOptions = Ctor.options.props;
2270
+ if (isUndef(propOptions)) {
2271
+ return
2272
+ }
2273
+ var res = {};
2274
+ var attrs = data.attrs;
2275
+ var props = data.props;
2276
+ if (isDef(attrs) || isDef(props)) {
2277
+ for (var key in propOptions) {
2278
+ var altKey = hyphenate(key);
2279
+ {
2280
+ var keyInLowerCase = key.toLowerCase();
2281
+ if (
2282
+ key !== keyInLowerCase &&
2283
+ attrs && hasOwn(attrs, keyInLowerCase)
2284
+ ) {
2285
+ tip(
2286
+ "Prop \"" + keyInLowerCase + "\" is passed to component " +
2287
+ (formatComponentName(tag || Ctor)) + ", but the declared prop name is" +
2288
+ " \"" + key + "\". " +
2289
+ "Note that HTML attributes are case-insensitive and camelCased " +
2290
+ "props need to use their kebab-case equivalents when using in-DOM " +
2291
+ "templates. You should probably use \"" + altKey + "\" instead of \"" + key + "\"."
2292
+ );
2293
+ }
2294
+ }
2295
+ checkProp(res, props, key, altKey, true) ||
2296
+ checkProp(res, attrs, key, altKey, false);
2297
+ }
2298
+ }
2299
+ return res
2300
+ }
2301
+
2302
+ function checkProp (
2303
+ res,
2304
+ hash,
2305
+ key,
2306
+ altKey,
2307
+ preserve
2308
+ ) {
2309
+ if (isDef(hash)) {
2310
+ if (hasOwn(hash, key)) {
2311
+ res[key] = hash[key];
2312
+ if (!preserve) {
2313
+ delete hash[key];
2314
+ }
2315
+ return true
2316
+ } else if (hasOwn(hash, altKey)) {
2317
+ res[key] = hash[altKey];
2318
+ if (!preserve) {
2319
+ delete hash[altKey];
2320
+ }
2321
+ return true
2322
+ }
2323
+ }
2324
+ return false
2325
+ }
2326
+
2327
+ /* */
2328
+
2329
+ // The template compiler attempts to minimize the need for normalization by
2330
+ // statically analyzing the template at compile time.
2331
+ //
2332
+ // For plain HTML markup, normalization can be completely skipped because the
2333
+ // generated render function is guaranteed to return Array<VNode>. There are
2334
+ // two cases where extra normalization is needed:
2335
+
2336
+ // 1. When the children contains components - because a functional component
2337
+ // may return an Array instead of a single root. In this case, just a simple
2338
+ // normalization is needed - if any child is an Array, we flatten the whole
2339
+ // thing with Array.prototype.concat. It is guaranteed to be only 1-level deep
2340
+ // because functional components already normalize their own children.
2341
+ function simpleNormalizeChildren (children) {
2342
+ for (var i = 0; i < children.length; i++) {
2343
+ if (Array.isArray(children[i])) {
2344
+ return Array.prototype.concat.apply([], children)
2345
+ }
2346
+ }
2347
+ return children
2348
+ }
2349
+
2350
+ // 2. When the children contains constructs that always generated nested Arrays,
2351
+ // e.g. <template>, <slot>, v-for, or when the children is provided by user
2352
+ // with hand-written render functions / JSX. In such cases a full normalization
2353
+ // is needed to cater to all possible types of children values.
2354
+ function normalizeChildren (children) {
2355
+ return isPrimitive(children)
2356
+ ? [createTextVNode(children)]
2357
+ : Array.isArray(children)
2358
+ ? normalizeArrayChildren(children)
2359
+ : undefined
2360
+ }
2361
+
2362
+ function isTextNode (node) {
2363
+ return isDef(node) && isDef(node.text) && isFalse(node.isComment)
2364
+ }
2365
+
2366
+ function normalizeArrayChildren (children, nestedIndex) {
2367
+ var res = [];
2368
+ var i, c, lastIndex, last;
2369
+ for (i = 0; i < children.length; i++) {
2370
+ c = children[i];
2371
+ if (isUndef(c) || typeof c === 'boolean') { continue }
2372
+ lastIndex = res.length - 1;
2373
+ last = res[lastIndex];
2374
+ // nested
2375
+ if (Array.isArray(c)) {
2376
+ if (c.length > 0) {
2377
+ c = normalizeArrayChildren(c, ((nestedIndex || '') + "_" + i));
2378
+ // merge adjacent text nodes
2379
+ if (isTextNode(c[0]) && isTextNode(last)) {
2380
+ res[lastIndex] = createTextVNode(last.text + (c[0]).text);
2381
+ c.shift();
2382
+ }
2383
+ res.push.apply(res, c);
2384
+ }
2385
+ } else if (isPrimitive(c)) {
2386
+ if (isTextNode(last)) {
2387
+ // merge adjacent text nodes
2388
+ // this is necessary for SSR hydration because text nodes are
2389
+ // essentially merged when rendered to HTML strings
2390
+ res[lastIndex] = createTextVNode(last.text + c);
2391
+ } else if (c !== '') {
2392
+ // convert primitive to vnode
2393
+ res.push(createTextVNode(c));
2394
+ }
2395
+ } else {
2396
+ if (isTextNode(c) && isTextNode(last)) {
2397
+ // merge adjacent text nodes
2398
+ res[lastIndex] = createTextVNode(last.text + c.text);
2399
+ } else {
2400
+ // default key for nested array children (likely generated by v-for)
2401
+ if (isTrue(children._isVList) &&
2402
+ isDef(c.tag) &&
2403
+ isUndef(c.key) &&
2404
+ isDef(nestedIndex)) {
2405
+ c.key = "__vlist" + nestedIndex + "_" + i + "__";
2406
+ }
2407
+ res.push(c);
2408
+ }
2409
+ }
2410
+ }
2411
+ return res
2412
+ }
2413
+
2414
+ /* */
2415
+
2416
+ function initProvide (vm) {
2417
+ var provide = vm.$options.provide;
2418
+ if (provide) {
2419
+ vm._provided = typeof provide === 'function'
2420
+ ? provide.call(vm)
2421
+ : provide;
2422
+ }
2423
+ }
2424
+
2425
+ function initInjections (vm) {
2426
+ var result = resolveInject(vm.$options.inject, vm);
2427
+ if (result) {
2428
+ toggleObserving(false);
2429
+ Object.keys(result).forEach(function (key) {
2430
+ /* istanbul ignore else */
2431
+ {
2432
+ defineReactive$$1(vm, key, result[key], function () {
2433
+ warn(
2434
+ "Avoid mutating an injected value directly since the changes will be " +
2435
+ "overwritten whenever the provided component re-renders. " +
2436
+ "injection being mutated: \"" + key + "\"",
2437
+ vm
2438
+ );
2439
+ });
2440
+ }
2441
+ });
2442
+ toggleObserving(true);
2443
+ }
2444
+ }
2445
+
2446
+ function resolveInject (inject, vm) {
2447
+ if (inject) {
2448
+ // inject is :any because flow is not smart enough to figure out cached
2449
+ var result = Object.create(null);
2450
+ var keys = hasSymbol
2451
+ ? Reflect.ownKeys(inject)
2452
+ : Object.keys(inject);
2453
+
2454
+ for (var i = 0; i < keys.length; i++) {
2455
+ var key = keys[i];
2456
+ // #6574 in case the inject object is observed...
2457
+ if (key === '__ob__') { continue }
2458
+ var provideKey = inject[key].from;
2459
+ var source = vm;
2460
+ while (source) {
2461
+ if (source._provided && hasOwn(source._provided, provideKey)) {
2462
+ result[key] = source._provided[provideKey];
2463
+ break
2464
+ }
2465
+ source = source.$parent;
2466
+ }
2467
+ if (!source) {
2468
+ if ('default' in inject[key]) {
2469
+ var provideDefault = inject[key].default;
2470
+ result[key] = typeof provideDefault === 'function'
2471
+ ? provideDefault.call(vm)
2472
+ : provideDefault;
2473
+ } else {
2474
+ warn(("Injection \"" + key + "\" not found"), vm);
2475
+ }
2476
+ }
2477
+ }
2478
+ return result
2479
+ }
2480
+ }
2481
+
2482
+ /* */
2483
+
2484
+
2485
+
2486
+ /**
2487
+ * Runtime helper for resolving raw children VNodes into a slot object.
2488
+ */
2489
+ function resolveSlots (
2490
+ children,
2491
+ context
2492
+ ) {
2493
+ if (!children || !children.length) {
2494
+ return {}
2495
+ }
2496
+ var slots = {};
2497
+ for (var i = 0, l = children.length; i < l; i++) {
2498
+ var child = children[i];
2499
+ var data = child.data;
2500
+ // remove slot attribute if the node is resolved as a Vue slot node
2501
+ if (data && data.attrs && data.attrs.slot) {
2502
+ delete data.attrs.slot;
2503
+ }
2504
+ // named slots should only be respected if the vnode was rendered in the
2505
+ // same context.
2506
+ if ((child.context === context || child.fnContext === context) &&
2507
+ data && data.slot != null
2508
+ ) {
2509
+ var name = data.slot;
2510
+ var slot = (slots[name] || (slots[name] = []));
2511
+ if (child.tag === 'template') {
2512
+ slot.push.apply(slot, child.children || []);
2513
+ } else {
2514
+ slot.push(child);
2515
+ }
2516
+ } else {
2517
+ (slots.default || (slots.default = [])).push(child);
2518
+ }
2519
+ }
2520
+ // ignore slots that contains only whitespace
2521
+ for (var name$1 in slots) {
2522
+ if (slots[name$1].every(isWhitespace)) {
2523
+ delete slots[name$1];
2524
+ }
2525
+ }
2526
+ return slots
2527
+ }
2528
+
2529
+ function isWhitespace (node) {
2530
+ return (node.isComment && !node.asyncFactory) || node.text === ' '
2531
+ }
2532
+
2533
+ /* */
2534
+
2535
+ function normalizeScopedSlots (
2536
+ slots,
2537
+ normalSlots,
2538
+ prevSlots
2539
+ ) {
2540
+ var res;
2541
+ if (!slots) {
2542
+ res = {};
2543
+ } else if (slots._normalized) {
2544
+ // fast path 1: child component re-render only, parent did not change
2545
+ return slots._normalized
2546
+ } else if (
2547
+ slots.$stable &&
2548
+ prevSlots &&
2549
+ prevSlots !== emptyObject &&
2550
+ Object.keys(normalSlots).length === 0
2551
+ ) {
2552
+ // fast path 2: stable scoped slots w/ no normal slots to proxy,
2553
+ // only need to normalize once
2554
+ return prevSlots
2555
+ } else {
2556
+ res = {};
2557
+ for (var key in slots) {
2558
+ if (slots[key] && key[0] !== '$') {
2559
+ res[key] = normalizeScopedSlot(normalSlots, key, slots[key]);
2560
+ }
2561
+ }
2562
+ }
2563
+ // expose normal slots on scopedSlots
2564
+ for (var key$1 in normalSlots) {
2565
+ if (!(key$1 in res)) {
2566
+ res[key$1] = proxyNormalSlot(normalSlots, key$1);
2567
+ }
2568
+ }
2569
+ // avoriaz seems to mock a non-extensible $scopedSlots object
2570
+ // and when that is passed down this would cause an error
2571
+ if (slots && Object.isExtensible(slots)) {
2572
+ (slots)._normalized = res;
2573
+ }
2574
+ def(res, '$stable', slots ? !!slots.$stable : true);
2575
+ return res
2576
+ }
2577
+
2578
+ function normalizeScopedSlot(normalSlots, key, fn) {
2579
+ var normalized = function () {
2580
+ var res = arguments.length ? fn.apply(null, arguments) : fn({});
2581
+ res = res && typeof res === 'object' && !Array.isArray(res)
2582
+ ? [res] // single vnode
2583
+ : normalizeChildren(res);
2584
+ return res && res.length === 0
2585
+ ? undefined
2586
+ : res
2587
+ };
2588
+ // this is a slot using the new v-slot syntax without scope. although it is
2589
+ // compiled as a scoped slot, render fn users would expect it to be present
2590
+ // on this.$slots because the usage is semantically a normal slot.
2591
+ if (fn.proxy) {
2592
+ Object.defineProperty(normalSlots, key, {
2593
+ get: normalized,
2594
+ enumerable: true,
2595
+ configurable: true
2596
+ });
2597
+ }
2598
+ return normalized
2599
+ }
2600
+
2601
+ function proxyNormalSlot(slots, key) {
2602
+ return function () { return slots[key]; }
2603
+ }
2604
+
2605
+ /* */
2606
+
2607
+ /**
2608
+ * Runtime helper for rendering v-for lists.
2609
+ */
2610
+ function renderList (
2611
+ val,
2612
+ render
2613
+ ) {
2614
+ var ret, i, l, keys, key;
2615
+ if (Array.isArray(val) || typeof val === 'string') {
2616
+ ret = new Array(val.length);
2617
+ for (i = 0, l = val.length; i < l; i++) {
2618
+ ret[i] = render(val[i], i);
2619
+ }
2620
+ } else if (typeof val === 'number') {
2621
+ ret = new Array(val);
2622
+ for (i = 0; i < val; i++) {
2623
+ ret[i] = render(i + 1, i);
2624
+ }
2625
+ } else if (isObject(val)) {
2626
+ if (hasSymbol && val[Symbol.iterator]) {
2627
+ ret = [];
2628
+ var iterator = val[Symbol.iterator]();
2629
+ var result = iterator.next();
2630
+ while (!result.done) {
2631
+ ret.push(render(result.value, ret.length));
2632
+ result = iterator.next();
2633
+ }
2634
+ } else {
2635
+ keys = Object.keys(val);
2636
+ ret = new Array(keys.length);
2637
+ for (i = 0, l = keys.length; i < l; i++) {
2638
+ key = keys[i];
2639
+ ret[i] = render(val[key], key, i);
2640
+ }
2641
+ }
2642
+ }
2643
+ if (!isDef(ret)) {
2644
+ ret = [];
2645
+ }
2646
+ (ret)._isVList = true;
2647
+ return ret
2648
+ }
2649
+
2650
+ /* */
2651
+
2652
+ /**
2653
+ * Runtime helper for rendering <slot>
2654
+ */
2655
+ function renderSlot (
2656
+ name,
2657
+ fallback,
2658
+ props,
2659
+ bindObject
2660
+ ) {
2661
+ var scopedSlotFn = this.$scopedSlots[name];
2662
+ var nodes;
2663
+ if (scopedSlotFn) { // scoped slot
2664
+ props = props || {};
2665
+ if (bindObject) {
2666
+ if (!isObject(bindObject)) {
2667
+ warn(
2668
+ 'slot v-bind without argument expects an Object',
2669
+ this
2670
+ );
2671
+ }
2672
+ props = extend(extend({}, bindObject), props);
2673
+ }
2674
+ nodes = scopedSlotFn(props) || fallback;
2675
+ } else {
2676
+ nodes = this.$slots[name] || fallback;
2677
+ }
2678
+
2679
+ var target = props && props.slot;
2680
+ if (target) {
2681
+ return this.$createElement('template', { slot: target }, nodes)
2682
+ } else {
2683
+ return nodes
2684
+ }
2685
+ }
2686
+
2687
+ /* */
2688
+
2689
+ /**
2690
+ * Runtime helper for resolving filters
2691
+ */
2692
+ function resolveFilter (id) {
2693
+ return resolveAsset(this.$options, 'filters', id, true) || identity
2694
+ }
2695
+
2696
+ /* */
2697
+
2698
+ function isKeyNotMatch (expect, actual) {
2699
+ if (Array.isArray(expect)) {
2700
+ return expect.indexOf(actual) === -1
2701
+ } else {
2702
+ return expect !== actual
2703
+ }
2704
+ }
2705
+
2706
+ /**
2707
+ * Runtime helper for checking keyCodes from config.
2708
+ * exposed as Vue.prototype._k
2709
+ * passing in eventKeyName as last argument separately for backwards compat
2710
+ */
2711
+ function checkKeyCodes (
2712
+ eventKeyCode,
2713
+ key,
2714
+ builtInKeyCode,
2715
+ eventKeyName,
2716
+ builtInKeyName
2717
+ ) {
2718
+ var mappedKeyCode = config.keyCodes[key] || builtInKeyCode;
2719
+ if (builtInKeyName && eventKeyName && !config.keyCodes[key]) {
2720
+ return isKeyNotMatch(builtInKeyName, eventKeyName)
2721
+ } else if (mappedKeyCode) {
2722
+ return isKeyNotMatch(mappedKeyCode, eventKeyCode)
2723
+ } else if (eventKeyName) {
2724
+ return hyphenate(eventKeyName) !== key
2725
+ }
2726
+ }
2727
+
2728
+ /* */
2729
+
2730
+ /**
2731
+ * Runtime helper for merging v-bind="object" into a VNode's data.
2732
+ */
2733
+ function bindObjectProps (
2734
+ data,
2735
+ tag,
2736
+ value,
2737
+ asProp,
2738
+ isSync
2739
+ ) {
2740
+ if (value) {
2741
+ if (!isObject(value)) {
2742
+ warn(
2743
+ 'v-bind without argument expects an Object or Array value',
2744
+ this
2745
+ );
2746
+ } else {
2747
+ if (Array.isArray(value)) {
2748
+ value = toObject(value);
2749
+ }
2750
+ var hash;
2751
+ var loop = function ( key ) {
2752
+ if (
2753
+ key === 'class' ||
2754
+ key === 'style' ||
2755
+ isReservedAttribute(key)
2756
+ ) {
2757
+ hash = data;
2758
+ } else {
2759
+ var type = data.attrs && data.attrs.type;
2760
+ hash = asProp || config.mustUseProp(tag, type, key)
2761
+ ? data.domProps || (data.domProps = {})
2762
+ : data.attrs || (data.attrs = {});
2763
+ }
2764
+ var camelizedKey = camelize(key);
2765
+ if (!(key in hash) && !(camelizedKey in hash)) {
2766
+ hash[key] = value[key];
2767
+
2768
+ if (isSync) {
2769
+ var on = data.on || (data.on = {});
2770
+ on[("update:" + camelizedKey)] = function ($event) {
2771
+ value[key] = $event;
2772
+ };
2773
+ }
2774
+ }
2775
+ };
2776
+
2777
+ for (var key in value) loop( key );
2778
+ }
2779
+ }
2780
+ return data
2781
+ }
2782
+
2783
+ /* */
2784
+
2785
+ /**
2786
+ * Runtime helper for rendering static trees.
2787
+ */
2788
+ function renderStatic (
2789
+ index,
2790
+ isInFor
2791
+ ) {
2792
+ var cached = this._staticTrees || (this._staticTrees = []);
2793
+ var tree = cached[index];
2794
+ // if has already-rendered static tree and not inside v-for,
2795
+ // we can reuse the same tree.
2796
+ if (tree && !isInFor) {
2797
+ return tree
2798
+ }
2799
+ // otherwise, render a fresh tree.
2800
+ tree = cached[index] = this.$options.staticRenderFns[index].call(
2801
+ this._renderProxy,
2802
+ null,
2803
+ this // for render fns generated for functional component templates
2804
+ );
2805
+ markStatic(tree, ("__static__" + index), false);
2806
+ return tree
2807
+ }
2808
+
2809
+ /**
2810
+ * Runtime helper for v-once.
2811
+ * Effectively it means marking the node as static with a unique key.
2812
+ */
2813
+ function markOnce (
2814
+ tree,
2815
+ index,
2816
+ key
2817
+ ) {
2818
+ markStatic(tree, ("__once__" + index + (key ? ("_" + key) : "")), true);
2819
+ return tree
2820
+ }
2821
+
2822
+ function markStatic (
2823
+ tree,
2824
+ key,
2825
+ isOnce
2826
+ ) {
2827
+ if (Array.isArray(tree)) {
2828
+ for (var i = 0; i < tree.length; i++) {
2829
+ if (tree[i] && typeof tree[i] !== 'string') {
2830
+ markStaticNode(tree[i], (key + "_" + i), isOnce);
2831
+ }
2832
+ }
2833
+ } else {
2834
+ markStaticNode(tree, key, isOnce);
2835
+ }
2836
+ }
2837
+
2838
+ function markStaticNode (node, key, isOnce) {
2839
+ node.isStatic = true;
2840
+ node.key = key;
2841
+ node.isOnce = isOnce;
2842
+ }
2843
+
2844
+ /* */
2845
+
2846
+ function bindObjectListeners (data, value) {
2847
+ if (value) {
2848
+ if (!isPlainObject(value)) {
2849
+ warn(
2850
+ 'v-on without argument expects an Object value',
2851
+ this
2852
+ );
2853
+ } else {
2854
+ var on = data.on = data.on ? extend({}, data.on) : {};
2855
+ for (var key in value) {
2856
+ var existing = on[key];
2857
+ var ours = value[key];
2858
+ on[key] = existing ? [].concat(existing, ours) : ours;
2859
+ }
2860
+ }
2861
+ }
2862
+ return data
2863
+ }
2864
+
2865
+ /* */
2866
+
2867
+ function resolveScopedSlots (
2868
+ fns, // see flow/vnode
2869
+ hasDynamicKeys,
2870
+ res
2871
+ ) {
2872
+ res = res || { $stable: !hasDynamicKeys };
2873
+ for (var i = 0; i < fns.length; i++) {
2874
+ var slot = fns[i];
2875
+ if (Array.isArray(slot)) {
2876
+ resolveScopedSlots(slot, hasDynamicKeys, res);
2877
+ } else if (slot) {
2878
+ // marker for reverse proxying v-slot without scope on this.$slots
2879
+ if (slot.proxy) {
2880
+ slot.fn.proxy = true;
2881
+ }
2882
+ res[slot.key] = slot.fn;
2883
+ }
2884
+ }
2885
+ return res
2886
+ }
2887
+
2888
+ /* */
2889
+
2890
+ function bindDynamicKeys (baseObj, values) {
2891
+ for (var i = 0; i < values.length; i += 2) {
2892
+ var key = values[i];
2893
+ if (typeof key === 'string' && key) {
2894
+ baseObj[values[i]] = values[i + 1];
2895
+ } else if (key !== '' && key !== null) {
2896
+ // null is a speical value for explicitly removing a binding
2897
+ warn(
2898
+ ("Invalid value for dynamic directive argument (expected string or null): " + key),
2899
+ this
2900
+ );
2901
+ }
2902
+ }
2903
+ return baseObj
2904
+ }
2905
+
2906
+ // helper to dynamically append modifier runtime markers to event names.
2907
+ // ensure only append when value is already string, otherwise it will be cast
2908
+ // to string and cause the type check to miss.
2909
+ function prependModifier (value, symbol) {
2910
+ return typeof value === 'string' ? symbol + value : value
2911
+ }
2912
+
2913
+ /* */
2914
+
2915
+ function installRenderHelpers (target) {
2916
+ target._o = markOnce;
2917
+ target._n = toNumber;
2918
+ target._s = toString;
2919
+ target._l = renderList;
2920
+ target._t = renderSlot;
2921
+ target._q = looseEqual;
2922
+ target._i = looseIndexOf;
2923
+ target._m = renderStatic;
2924
+ target._f = resolveFilter;
2925
+ target._k = checkKeyCodes;
2926
+ target._b = bindObjectProps;
2927
+ target._v = createTextVNode;
2928
+ target._e = createEmptyVNode;
2929
+ target._u = resolveScopedSlots;
2930
+ target._g = bindObjectListeners;
2931
+ target._d = bindDynamicKeys;
2932
+ target._p = prependModifier;
2933
+ }
2934
+
2935
+ /* */
2936
+
2937
+ function FunctionalRenderContext (
2938
+ data,
2939
+ props,
2940
+ children,
2941
+ parent,
2942
+ Ctor
2943
+ ) {
2944
+ var this$1 = this;
2945
+
2946
+ var options = Ctor.options;
2947
+ // ensure the createElement function in functional components
2948
+ // gets a unique context - this is necessary for correct named slot check
2949
+ var contextVm;
2950
+ if (hasOwn(parent, '_uid')) {
2951
+ contextVm = Object.create(parent);
2952
+ // $flow-disable-line
2953
+ contextVm._original = parent;
2954
+ } else {
2955
+ // the context vm passed in is a functional context as well.
2956
+ // in this case we want to make sure we are able to get a hold to the
2957
+ // real context instance.
2958
+ contextVm = parent;
2959
+ // $flow-disable-line
2960
+ parent = parent._original;
2961
+ }
2962
+ var isCompiled = isTrue(options._compiled);
2963
+ var needNormalization = !isCompiled;
2964
+
2965
+ this.data = data;
2966
+ this.props = props;
2967
+ this.children = children;
2968
+ this.parent = parent;
2969
+ this.listeners = data.on || emptyObject;
2970
+ this.injections = resolveInject(options.inject, parent);
2971
+ this.slots = function () {
2972
+ if (!this$1.$slots) {
2973
+ normalizeScopedSlots(
2974
+ data.scopedSlots,
2975
+ this$1.$slots = resolveSlots(children, parent)
2976
+ );
2977
+ }
2978
+ return this$1.$slots
2979
+ };
2980
+
2981
+ Object.defineProperty(this, 'scopedSlots', ({
2982
+ enumerable: true,
2983
+ get: function get () {
2984
+ return normalizeScopedSlots(data.scopedSlots, this.slots())
2985
+ }
2986
+ }));
2987
+
2988
+ // support for compiled functional template
2989
+ if (isCompiled) {
2990
+ // exposing $options for renderStatic()
2991
+ this.$options = options;
2992
+ // pre-resolve slots for renderSlot()
2993
+ this.$slots = this.slots();
2994
+ this.$scopedSlots = normalizeScopedSlots(data.scopedSlots, this.$slots);
2995
+ }
2996
+
2997
+ if (options._scopeId) {
2998
+ this._c = function (a, b, c, d) {
2999
+ var vnode = createElement(contextVm, a, b, c, d, needNormalization);
3000
+ if (vnode && !Array.isArray(vnode)) {
3001
+ vnode.fnScopeId = options._scopeId;
3002
+ vnode.fnContext = parent;
3003
+ }
3004
+ return vnode
3005
+ };
3006
+ } else {
3007
+ this._c = function (a, b, c, d) { return createElement(contextVm, a, b, c, d, needNormalization); };
3008
+ }
3009
+ }
3010
+
3011
+ installRenderHelpers(FunctionalRenderContext.prototype);
3012
+
3013
+ function createFunctionalComponent (
3014
+ Ctor,
3015
+ propsData,
3016
+ data,
3017
+ contextVm,
3018
+ children
3019
+ ) {
3020
+ var options = Ctor.options;
3021
+ var props = {};
3022
+ var propOptions = options.props;
3023
+ if (isDef(propOptions)) {
3024
+ for (var key in propOptions) {
3025
+ props[key] = validateProp(key, propOptions, propsData || emptyObject);
3026
+ }
3027
+ } else {
3028
+ if (isDef(data.attrs)) { mergeProps(props, data.attrs); }
3029
+ if (isDef(data.props)) { mergeProps(props, data.props); }
3030
+ }
3031
+
3032
+ var renderContext = new FunctionalRenderContext(
3033
+ data,
3034
+ props,
3035
+ children,
3036
+ contextVm,
3037
+ Ctor
3038
+ );
3039
+
3040
+ var vnode = options.render.call(null, renderContext._c, renderContext);
3041
+
3042
+ if (vnode instanceof VNode) {
3043
+ return cloneAndMarkFunctionalResult(vnode, data, renderContext.parent, options, renderContext)
3044
+ } else if (Array.isArray(vnode)) {
3045
+ var vnodes = normalizeChildren(vnode) || [];
3046
+ var res = new Array(vnodes.length);
3047
+ for (var i = 0; i < vnodes.length; i++) {
3048
+ res[i] = cloneAndMarkFunctionalResult(vnodes[i], data, renderContext.parent, options, renderContext);
3049
+ }
3050
+ return res
3051
+ }
3052
+ }
3053
+
3054
+ function cloneAndMarkFunctionalResult (vnode, data, contextVm, options, renderContext) {
3055
+ // #7817 clone node before setting fnContext, otherwise if the node is reused
3056
+ // (e.g. it was from a cached normal slot) the fnContext causes named slots
3057
+ // that should not be matched to match.
3058
+ var clone = cloneVNode(vnode);
3059
+ clone.fnContext = contextVm;
3060
+ clone.fnOptions = options;
3061
+ {
3062
+ (clone.devtoolsMeta = clone.devtoolsMeta || {}).renderContext = renderContext;
3063
+ }
3064
+ if (data.slot) {
3065
+ (clone.data || (clone.data = {})).slot = data.slot;
3066
+ }
3067
+ return clone
3068
+ }
3069
+
3070
+ function mergeProps (to, from) {
3071
+ for (var key in from) {
3072
+ to[camelize(key)] = from[key];
3073
+ }
3074
+ }
3075
+
3076
+ /* */
3077
+
3078
+ /* */
3079
+
3080
+ /* */
3081
+
3082
+ /* */
3083
+
3084
+ // inline hooks to be invoked on component VNodes during patch
3085
+ var componentVNodeHooks = {
3086
+ init: function init (vnode, hydrating) {
3087
+ if (
3088
+ vnode.componentInstance &&
3089
+ !vnode.componentInstance._isDestroyed &&
3090
+ vnode.data.keepAlive
3091
+ ) {
3092
+ // kept-alive components, treat as a patch
3093
+ var mountedNode = vnode; // work around flow
3094
+ componentVNodeHooks.prepatch(mountedNode, mountedNode);
3095
+ } else {
3096
+ var child = vnode.componentInstance = createComponentInstanceForVnode(
3097
+ vnode,
3098
+ activeInstance
3099
+ );
3100
+ child.$mount(hydrating ? vnode.elm : undefined, hydrating);
3101
+ }
3102
+ },
3103
+
3104
+ prepatch: function prepatch (oldVnode, vnode) {
3105
+ var options = vnode.componentOptions;
3106
+ var child = vnode.componentInstance = oldVnode.componentInstance;
3107
+ updateChildComponent(
3108
+ child,
3109
+ options.propsData, // updated props
3110
+ options.listeners, // updated listeners
3111
+ vnode, // new parent vnode
3112
+ options.children // new children
3113
+ );
3114
+ },
3115
+
3116
+ insert: function insert (vnode) {
3117
+ var context = vnode.context;
3118
+ var componentInstance = vnode.componentInstance;
3119
+ if (!componentInstance._isMounted) {
3120
+ componentInstance._isMounted = true;
3121
+ callHook(componentInstance, 'mounted');
3122
+ }
3123
+ if (vnode.data.keepAlive) {
3124
+ if (context._isMounted) {
3125
+ // vue-router#1212
3126
+ // During updates, a kept-alive component's child components may
3127
+ // change, so directly walking the tree here may call activated hooks
3128
+ // on incorrect children. Instead we push them into a queue which will
3129
+ // be processed after the whole patch process ended.
3130
+ queueActivatedComponent(componentInstance);
3131
+ } else {
3132
+ activateChildComponent(componentInstance, true /* direct */);
3133
+ }
3134
+ }
3135
+ },
3136
+
3137
+ destroy: function destroy (vnode) {
3138
+ var componentInstance = vnode.componentInstance;
3139
+ if (!componentInstance._isDestroyed) {
3140
+ if (!vnode.data.keepAlive) {
3141
+ componentInstance.$destroy();
3142
+ } else {
3143
+ deactivateChildComponent(componentInstance, true /* direct */);
3144
+ }
3145
+ }
3146
+ }
3147
+ };
3148
+
3149
+ var hooksToMerge = Object.keys(componentVNodeHooks);
3150
+
3151
+ function createComponent (
3152
+ Ctor,
3153
+ data,
3154
+ context,
3155
+ children,
3156
+ tag
3157
+ ) {
3158
+ if (isUndef(Ctor)) {
3159
+ return
3160
+ }
3161
+
3162
+ var baseCtor = context.$options._base;
3163
+
3164
+ // plain options object: turn it into a constructor
3165
+ if (isObject(Ctor)) {
3166
+ Ctor = baseCtor.extend(Ctor);
3167
+ }
3168
+
3169
+ // if at this stage it's not a constructor or an async component factory,
3170
+ // reject.
3171
+ if (typeof Ctor !== 'function') {
3172
+ {
3173
+ warn(("Invalid Component definition: " + (String(Ctor))), context);
3174
+ }
3175
+ return
3176
+ }
3177
+
3178
+ // async component
3179
+ var asyncFactory;
3180
+ if (isUndef(Ctor.cid)) {
3181
+ asyncFactory = Ctor;
3182
+ Ctor = resolveAsyncComponent(asyncFactory, baseCtor);
3183
+ if (Ctor === undefined) {
3184
+ // return a placeholder node for async component, which is rendered
3185
+ // as a comment node but preserves all the raw information for the node.
3186
+ // the information will be used for async server-rendering and hydration.
3187
+ return createAsyncPlaceholder(
3188
+ asyncFactory,
3189
+ data,
3190
+ context,
3191
+ children,
3192
+ tag
3193
+ )
3194
+ }
3195
+ }
3196
+
3197
+ data = data || {};
3198
+
3199
+ // resolve constructor options in case global mixins are applied after
3200
+ // component constructor creation
3201
+ resolveConstructorOptions(Ctor);
3202
+
3203
+ // transform component v-model data into props & events
3204
+ if (isDef(data.model)) {
3205
+ transformModel(Ctor.options, data);
3206
+ }
3207
+
3208
+ // extract props
3209
+ var propsData = extractPropsFromVNodeData(data, Ctor, tag);
3210
+
3211
+ // functional component
3212
+ if (isTrue(Ctor.options.functional)) {
3213
+ return createFunctionalComponent(Ctor, propsData, data, context, children)
3214
+ }
3215
+
3216
+ // extract listeners, since these needs to be treated as
3217
+ // child component listeners instead of DOM listeners
3218
+ var listeners = data.on;
3219
+ // replace with listeners with .native modifier
3220
+ // so it gets processed during parent component patch.
3221
+ data.on = data.nativeOn;
3222
+
3223
+ if (isTrue(Ctor.options.abstract)) {
3224
+ // abstract components do not keep anything
3225
+ // other than props & listeners & slot
3226
+
3227
+ // work around flow
3228
+ var slot = data.slot;
3229
+ data = {};
3230
+ if (slot) {
3231
+ data.slot = slot;
3232
+ }
3233
+ }
3234
+
3235
+ // install component management hooks onto the placeholder node
3236
+ installComponentHooks(data);
3237
+
3238
+ // return a placeholder vnode
3239
+ var name = Ctor.options.name || tag;
3240
+ var vnode = new VNode(
3241
+ ("vue-component-" + (Ctor.cid) + (name ? ("-" + name) : '')),
3242
+ data, undefined, undefined, undefined, context,
3243
+ { Ctor: Ctor, propsData: propsData, listeners: listeners, tag: tag, children: children },
3244
+ asyncFactory
3245
+ );
3246
+
3247
+ return vnode
3248
+ }
3249
+
3250
+ function createComponentInstanceForVnode (
3251
+ vnode, // we know it's MountedComponentVNode but flow doesn't
3252
+ parent // activeInstance in lifecycle state
3253
+ ) {
3254
+ var options = {
3255
+ _isComponent: true,
3256
+ _parentVnode: vnode,
3257
+ parent: parent
3258
+ };
3259
+ // check inline-template render functions
3260
+ var inlineTemplate = vnode.data.inlineTemplate;
3261
+ if (isDef(inlineTemplate)) {
3262
+ options.render = inlineTemplate.render;
3263
+ options.staticRenderFns = inlineTemplate.staticRenderFns;
3264
+ }
3265
+ return new vnode.componentOptions.Ctor(options)
3266
+ }
3267
+
3268
+ function installComponentHooks (data) {
3269
+ var hooks = data.hook || (data.hook = {});
3270
+ for (var i = 0; i < hooksToMerge.length; i++) {
3271
+ var key = hooksToMerge[i];
3272
+ var existing = hooks[key];
3273
+ var toMerge = componentVNodeHooks[key];
3274
+ if (existing !== toMerge && !(existing && existing._merged)) {
3275
+ hooks[key] = existing ? mergeHook$1(toMerge, existing) : toMerge;
3276
+ }
3277
+ }
3278
+ }
3279
+
3280
+ function mergeHook$1 (f1, f2) {
3281
+ var merged = function (a, b) {
3282
+ // flow complains about extra args which is why we use any
3283
+ f1(a, b);
3284
+ f2(a, b);
3285
+ };
3286
+ merged._merged = true;
3287
+ return merged
3288
+ }
3289
+
3290
+ // transform component v-model info (value and callback) into
3291
+ // prop and event handler respectively.
3292
+ function transformModel (options, data) {
3293
+ var prop = (options.model && options.model.prop) || 'value';
3294
+ var event = (options.model && options.model.event) || 'input'
3295
+ ;(data.attrs || (data.attrs = {}))[prop] = data.model.value;
3296
+ var on = data.on || (data.on = {});
3297
+ var existing = on[event];
3298
+ var callback = data.model.callback;
3299
+ if (isDef(existing)) {
3300
+ if (
3301
+ Array.isArray(existing)
3302
+ ? existing.indexOf(callback) === -1
3303
+ : existing !== callback
3304
+ ) {
3305
+ on[event] = [callback].concat(existing);
3306
+ }
3307
+ } else {
3308
+ on[event] = callback;
3309
+ }
3310
+ }
3311
+
3312
+ /* */
3313
+
3314
+ var SIMPLE_NORMALIZE = 1;
3315
+ var ALWAYS_NORMALIZE = 2;
3316
+
3317
+ // wrapper function for providing a more flexible interface
3318
+ // without getting yelled at by flow
3319
+ function createElement (
3320
+ context,
3321
+ tag,
3322
+ data,
3323
+ children,
3324
+ normalizationType,
3325
+ alwaysNormalize
3326
+ ) {
3327
+ if (Array.isArray(data) || isPrimitive(data)) {
3328
+ normalizationType = children;
3329
+ children = data;
3330
+ data = undefined;
3331
+ }
3332
+ if (isTrue(alwaysNormalize)) {
3333
+ normalizationType = ALWAYS_NORMALIZE;
3334
+ }
3335
+ return _createElement(context, tag, data, children, normalizationType)
3336
+ }
3337
+
3338
+ function _createElement (
3339
+ context,
3340
+ tag,
3341
+ data,
3342
+ children,
3343
+ normalizationType
3344
+ ) {
3345
+ if (isDef(data) && isDef((data).__ob__)) {
3346
+ warn(
3347
+ "Avoid using observed data object as vnode data: " + (JSON.stringify(data)) + "\n" +
3348
+ 'Always create fresh vnode data objects in each render!',
3349
+ context
3350
+ );
3351
+ return createEmptyVNode()
3352
+ }
3353
+ // object syntax in v-bind
3354
+ if (isDef(data) && isDef(data.is)) {
3355
+ tag = data.is;
3356
+ }
3357
+ if (!tag) {
3358
+ // in case of component :is set to falsy value
3359
+ return createEmptyVNode()
3360
+ }
3361
+ // warn against non-primitive key
3362
+ if (isDef(data) && isDef(data.key) && !isPrimitive(data.key)
3363
+ ) {
3364
+ {
3365
+ warn(
3366
+ 'Avoid using non-primitive value as key, ' +
3367
+ 'use string/number value instead.',
3368
+ context
3369
+ );
3370
+ }
3371
+ }
3372
+ // support single function children as default scoped slot
3373
+ if (Array.isArray(children) &&
3374
+ typeof children[0] === 'function'
3375
+ ) {
3376
+ data = data || {};
3377
+ data.scopedSlots = { default: children[0] };
3378
+ children.length = 0;
3379
+ }
3380
+ if (normalizationType === ALWAYS_NORMALIZE) {
3381
+ children = normalizeChildren(children);
3382
+ } else if (normalizationType === SIMPLE_NORMALIZE) {
3383
+ children = simpleNormalizeChildren(children);
3384
+ }
3385
+ var vnode, ns;
3386
+ if (typeof tag === 'string') {
3387
+ var Ctor;
3388
+ ns = (context.$vnode && context.$vnode.ns) || config.getTagNamespace(tag);
3389
+ if (config.isReservedTag(tag)) {
3390
+ // platform built-in elements
3391
+ vnode = new VNode(
3392
+ config.parsePlatformTagName(tag), data, children,
3393
+ undefined, undefined, context
3394
+ );
3395
+ } else if ((!data || !data.pre) && isDef(Ctor = resolveAsset(context.$options, 'components', tag))) {
3396
+ // component
3397
+ vnode = createComponent(Ctor, data, context, children, tag);
3398
+ } else {
3399
+ // unknown or unlisted namespaced elements
3400
+ // check at runtime because it may get assigned a namespace when its
3401
+ // parent normalizes children
3402
+ vnode = new VNode(
3403
+ tag, data, children,
3404
+ undefined, undefined, context
3405
+ );
3406
+ }
3407
+ } else {
3408
+ // direct component options / constructor
3409
+ vnode = createComponent(tag, data, context, children);
3410
+ }
3411
+ if (Array.isArray(vnode)) {
3412
+ return vnode
3413
+ } else if (isDef(vnode)) {
3414
+ if (isDef(ns)) { applyNS(vnode, ns); }
3415
+ if (isDef(data)) { registerDeepBindings(data); }
3416
+ return vnode
3417
+ } else {
3418
+ return createEmptyVNode()
3419
+ }
3420
+ }
3421
+
3422
+ function applyNS (vnode, ns, force) {
3423
+ vnode.ns = ns;
3424
+ if (vnode.tag === 'foreignObject') {
3425
+ // use default namespace inside foreignObject
3426
+ ns = undefined;
3427
+ force = true;
3428
+ }
3429
+ if (isDef(vnode.children)) {
3430
+ for (var i = 0, l = vnode.children.length; i < l; i++) {
3431
+ var child = vnode.children[i];
3432
+ if (isDef(child.tag) && (
3433
+ isUndef(child.ns) || (isTrue(force) && child.tag !== 'svg'))) {
3434
+ applyNS(child, ns, force);
3435
+ }
3436
+ }
3437
+ }
3438
+ }
3439
+
3440
+ // ref #5318
3441
+ // necessary to ensure parent re-render when deep bindings like :style and
3442
+ // :class are used on slot nodes
3443
+ function registerDeepBindings (data) {
3444
+ if (isObject(data.style)) {
3445
+ traverse(data.style);
3446
+ }
3447
+ if (isObject(data.class)) {
3448
+ traverse(data.class);
3449
+ }
3450
+ }
3451
+
3452
+ /* */
3453
+
3454
+ function initRender (vm) {
3455
+ vm._vnode = null; // the root of the child tree
3456
+ vm._staticTrees = null; // v-once cached trees
3457
+ var options = vm.$options;
3458
+ var parentVnode = vm.$vnode = options._parentVnode; // the placeholder node in parent tree
3459
+ var renderContext = parentVnode && parentVnode.context;
3460
+ vm.$slots = resolveSlots(options._renderChildren, renderContext);
3461
+ vm.$scopedSlots = emptyObject;
3462
+ // bind the createElement fn to this instance
3463
+ // so that we get proper render context inside it.
3464
+ // args order: tag, data, children, normalizationType, alwaysNormalize
3465
+ // internal version is used by render functions compiled from templates
3466
+ vm._c = function (a, b, c, d) { return createElement(vm, a, b, c, d, false); };
3467
+ // normalization is always applied for the public version, used in
3468
+ // user-written render functions.
3469
+ vm.$createElement = function (a, b, c, d) { return createElement(vm, a, b, c, d, true); };
3470
+
3471
+ // $attrs & $listeners are exposed for easier HOC creation.
3472
+ // they need to be reactive so that HOCs using them are always updated
3473
+ var parentData = parentVnode && parentVnode.data;
3474
+
3475
+ /* istanbul ignore else */
3476
+ {
3477
+ defineReactive$$1(vm, '$attrs', parentData && parentData.attrs || emptyObject, function () {
3478
+ !isUpdatingChildComponent && warn("$attrs is readonly.", vm);
3479
+ }, true);
3480
+ defineReactive$$1(vm, '$listeners', options._parentListeners || emptyObject, function () {
3481
+ !isUpdatingChildComponent && warn("$listeners is readonly.", vm);
3482
+ }, true);
3483
+ }
3484
+ }
3485
+
3486
+ var currentRenderingInstance = null;
3487
+
3488
+ function renderMixin (Vue) {
3489
+ // install runtime convenience helpers
3490
+ installRenderHelpers(Vue.prototype);
3491
+
3492
+ Vue.prototype.$nextTick = function (fn) {
3493
+ return nextTick(fn, this)
3494
+ };
3495
+
3496
+ Vue.prototype._render = function () {
3497
+ var vm = this;
3498
+ var ref = vm.$options;
3499
+ var render = ref.render;
3500
+ var _parentVnode = ref._parentVnode;
3501
+
3502
+ if (_parentVnode) {
3503
+ vm.$scopedSlots = normalizeScopedSlots(
3504
+ _parentVnode.data.scopedSlots,
3505
+ vm.$slots,
3506
+ vm.$scopedSlots
3507
+ );
3508
+ }
3509
+
3510
+ // set parent vnode. this allows render functions to have access
3511
+ // to the data on the placeholder node.
3512
+ vm.$vnode = _parentVnode;
3513
+ // render self
3514
+ var vnode;
3515
+ try {
3516
+ // There's no need to maintain a stack becaues all render fns are called
3517
+ // separately from one another. Nested component's render fns are called
3518
+ // when parent component is patched.
3519
+ currentRenderingInstance = vm;
3520
+ vnode = render.call(vm._renderProxy, vm.$createElement);
3521
+ } catch (e) {
3522
+ handleError(e, vm, "render");
3523
+ // return error render result,
3524
+ // or previous vnode to prevent render error causing blank component
3525
+ /* istanbul ignore else */
3526
+ if (vm.$options.renderError) {
3527
+ try {
3528
+ vnode = vm.$options.renderError.call(vm._renderProxy, vm.$createElement, e);
3529
+ } catch (e) {
3530
+ handleError(e, vm, "renderError");
3531
+ vnode = vm._vnode;
3532
+ }
3533
+ } else {
3534
+ vnode = vm._vnode;
3535
+ }
3536
+ } finally {
3537
+ currentRenderingInstance = null;
3538
+ }
3539
+ // if the returned array contains only a single node, allow it
3540
+ if (Array.isArray(vnode) && vnode.length === 1) {
3541
+ vnode = vnode[0];
3542
+ }
3543
+ // return empty vnode in case the render function errored out
3544
+ if (!(vnode instanceof VNode)) {
3545
+ if (Array.isArray(vnode)) {
3546
+ warn(
3547
+ 'Multiple root nodes returned from render function. Render function ' +
3548
+ 'should return a single root node.',
3549
+ vm
3550
+ );
3551
+ }
3552
+ vnode = createEmptyVNode();
3553
+ }
3554
+ // set parent
3555
+ vnode.parent = _parentVnode;
3556
+ return vnode
3557
+ };
3558
+ }
3559
+
3560
+ /* */
3561
+
3562
+ function ensureCtor (comp, base) {
3563
+ if (
3564
+ comp.__esModule ||
3565
+ (hasSymbol && comp[Symbol.toStringTag] === 'Module')
3566
+ ) {
3567
+ comp = comp.default;
3568
+ }
3569
+ return isObject(comp)
3570
+ ? base.extend(comp)
3571
+ : comp
3572
+ }
3573
+
3574
+ function createAsyncPlaceholder (
3575
+ factory,
3576
+ data,
3577
+ context,
3578
+ children,
3579
+ tag
3580
+ ) {
3581
+ var node = createEmptyVNode();
3582
+ node.asyncFactory = factory;
3583
+ node.asyncMeta = { data: data, context: context, children: children, tag: tag };
3584
+ return node
3585
+ }
3586
+
3587
+ function resolveAsyncComponent (
3588
+ factory,
3589
+ baseCtor
3590
+ ) {
3591
+ if (isTrue(factory.error) && isDef(factory.errorComp)) {
3592
+ return factory.errorComp
3593
+ }
3594
+
3595
+ if (isDef(factory.resolved)) {
3596
+ return factory.resolved
3597
+ }
3598
+
3599
+ if (isTrue(factory.loading) && isDef(factory.loadingComp)) {
3600
+ return factory.loadingComp
3601
+ }
3602
+
3603
+ var owner = currentRenderingInstance;
3604
+ if (isDef(factory.owners)) {
3605
+ // already pending
3606
+ factory.owners.push(owner);
3607
+ } else {
3608
+ var owners = factory.owners = [owner];
3609
+ var sync = true;
3610
+
3611
+ var forceRender = function (renderCompleted) {
3612
+ for (var i = 0, l = owners.length; i < l; i++) {
3613
+ (owners[i]).$forceUpdate();
3614
+ }
3615
+
3616
+ if (renderCompleted) {
3617
+ owners.length = 0;
3618
+ }
3619
+ };
3620
+
3621
+ var resolve = once(function (res) {
3622
+ // cache resolved
3623
+ factory.resolved = ensureCtor(res, baseCtor);
3624
+ // invoke callbacks only if this is not a synchronous resolve
3625
+ // (async resolves are shimmed as synchronous during SSR)
3626
+ if (!sync) {
3627
+ forceRender(true);
3628
+ } else {
3629
+ owners.length = 0;
3630
+ }
3631
+ });
3632
+
3633
+ var reject = once(function (reason) {
3634
+ warn(
3635
+ "Failed to resolve async component: " + (String(factory)) +
3636
+ (reason ? ("\nReason: " + reason) : '')
3637
+ );
3638
+ if (isDef(factory.errorComp)) {
3639
+ factory.error = true;
3640
+ forceRender(true);
3641
+ }
3642
+ });
3643
+
3644
+ var res = factory(resolve, reject);
3645
+
3646
+ if (isObject(res)) {
3647
+ if (isPromise(res)) {
3648
+ // () => Promise
3649
+ if (isUndef(factory.resolved)) {
3650
+ res.then(resolve, reject);
3651
+ }
3652
+ } else if (isPromise(res.component)) {
3653
+ res.component.then(resolve, reject);
3654
+
3655
+ if (isDef(res.error)) {
3656
+ factory.errorComp = ensureCtor(res.error, baseCtor);
3657
+ }
3658
+
3659
+ if (isDef(res.loading)) {
3660
+ factory.loadingComp = ensureCtor(res.loading, baseCtor);
3661
+ if (res.delay === 0) {
3662
+ factory.loading = true;
3663
+ } else {
3664
+ setTimeout(function () {
3665
+ if (isUndef(factory.resolved) && isUndef(factory.error)) {
3666
+ factory.loading = true;
3667
+ forceRender(false);
3668
+ }
3669
+ }, res.delay || 200);
3670
+ }
3671
+ }
3672
+
3673
+ if (isDef(res.timeout)) {
3674
+ setTimeout(function () {
3675
+ if (isUndef(factory.resolved)) {
3676
+ reject(
3677
+ "timeout (" + (res.timeout) + "ms)"
3678
+ );
3679
+ }
3680
+ }, res.timeout);
3681
+ }
3682
+ }
3683
+ }
3684
+
3685
+ sync = false;
3686
+ // return in case resolved synchronously
3687
+ return factory.loading
3688
+ ? factory.loadingComp
3689
+ : factory.resolved
3690
+ }
3691
+ }
3692
+
3693
+ /* */
3694
+
3695
+ function isAsyncPlaceholder (node) {
3696
+ return node.isComment && node.asyncFactory
3697
+ }
3698
+
3699
+ /* */
3700
+
3701
+ function getFirstComponentChild (children) {
3702
+ if (Array.isArray(children)) {
3703
+ for (var i = 0; i < children.length; i++) {
3704
+ var c = children[i];
3705
+ if (isDef(c) && (isDef(c.componentOptions) || isAsyncPlaceholder(c))) {
3706
+ return c
3707
+ }
3708
+ }
3709
+ }
3710
+ }
3711
+
3712
+ /* */
3713
+
3714
+ /* */
3715
+
3716
+ function initEvents (vm) {
3717
+ vm._events = Object.create(null);
3718
+ vm._hasHookEvent = false;
3719
+ // init parent attached events
3720
+ var listeners = vm.$options._parentListeners;
3721
+ if (listeners) {
3722
+ updateComponentListeners(vm, listeners);
3723
+ }
3724
+ }
3725
+
3726
+ var target;
3727
+
3728
+ function add (event, fn) {
3729
+ target.$on(event, fn);
3730
+ }
3731
+
3732
+ function remove$1 (event, fn) {
3733
+ target.$off(event, fn);
3734
+ }
3735
+
3736
+ function createOnceHandler (event, fn) {
3737
+ var _target = target;
3738
+ return function onceHandler () {
3739
+ var res = fn.apply(null, arguments);
3740
+ if (res !== null) {
3741
+ _target.$off(event, onceHandler);
3742
+ }
3743
+ }
3744
+ }
3745
+
3746
+ function updateComponentListeners (
3747
+ vm,
3748
+ listeners,
3749
+ oldListeners
3750
+ ) {
3751
+ target = vm;
3752
+ updateListeners(listeners, oldListeners || {}, add, remove$1, createOnceHandler, vm);
3753
+ target = undefined;
3754
+ }
3755
+
3756
+ function eventsMixin (Vue) {
3757
+ var hookRE = /^hook:/;
3758
+ Vue.prototype.$on = function (event, fn) {
3759
+ var vm = this;
3760
+ if (Array.isArray(event)) {
3761
+ for (var i = 0, l = event.length; i < l; i++) {
3762
+ vm.$on(event[i], fn);
3763
+ }
3764
+ } else {
3765
+ (vm._events[event] || (vm._events[event] = [])).push(fn);
3766
+ // optimize hook:event cost by using a boolean flag marked at registration
3767
+ // instead of a hash lookup
3768
+ if (hookRE.test(event)) {
3769
+ vm._hasHookEvent = true;
3770
+ }
3771
+ }
3772
+ return vm
3773
+ };
3774
+
3775
+ Vue.prototype.$once = function (event, fn) {
3776
+ var vm = this;
3777
+ function on () {
3778
+ vm.$off(event, on);
3779
+ fn.apply(vm, arguments);
3780
+ }
3781
+ on.fn = fn;
3782
+ vm.$on(event, on);
3783
+ return vm
3784
+ };
3785
+
3786
+ Vue.prototype.$off = function (event, fn) {
3787
+ var vm = this;
3788
+ // all
3789
+ if (!arguments.length) {
3790
+ vm._events = Object.create(null);
3791
+ return vm
3792
+ }
3793
+ // array of events
3794
+ if (Array.isArray(event)) {
3795
+ for (var i$1 = 0, l = event.length; i$1 < l; i$1++) {
3796
+ vm.$off(event[i$1], fn);
3797
+ }
3798
+ return vm
3799
+ }
3800
+ // specific event
3801
+ var cbs = vm._events[event];
3802
+ if (!cbs) {
3803
+ return vm
3804
+ }
3805
+ if (!fn) {
3806
+ vm._events[event] = null;
3807
+ return vm
3808
+ }
3809
+ // specific handler
3810
+ var cb;
3811
+ var i = cbs.length;
3812
+ while (i--) {
3813
+ cb = cbs[i];
3814
+ if (cb === fn || cb.fn === fn) {
3815
+ cbs.splice(i, 1);
3816
+ break
3817
+ }
3818
+ }
3819
+ return vm
3820
+ };
3821
+
3822
+ Vue.prototype.$emit = function (event) {
3823
+ var vm = this;
3824
+ {
3825
+ var lowerCaseEvent = event.toLowerCase();
3826
+ if (lowerCaseEvent !== event && vm._events[lowerCaseEvent]) {
3827
+ tip(
3828
+ "Event \"" + lowerCaseEvent + "\" is emitted in component " +
3829
+ (formatComponentName(vm)) + " but the handler is registered for \"" + event + "\". " +
3830
+ "Note that HTML attributes are case-insensitive and you cannot use " +
3831
+ "v-on to listen to camelCase events when using in-DOM templates. " +
3832
+ "You should probably use \"" + (hyphenate(event)) + "\" instead of \"" + event + "\"."
3833
+ );
3834
+ }
3835
+ }
3836
+ var cbs = vm._events[event];
3837
+ if (cbs) {
3838
+ cbs = cbs.length > 1 ? toArray(cbs) : cbs;
3839
+ var args = toArray(arguments, 1);
3840
+ var info = "event handler for \"" + event + "\"";
3841
+ for (var i = 0, l = cbs.length; i < l; i++) {
3842
+ invokeWithErrorHandling(cbs[i], vm, args, vm, info);
3843
+ }
3844
+ }
3845
+ return vm
3846
+ };
3847
+ }
3848
+
3849
+ /* */
3850
+
3851
+ var activeInstance = null;
3852
+ var isUpdatingChildComponent = false;
3853
+
3854
+ function setActiveInstance(vm) {
3855
+ var prevActiveInstance = activeInstance;
3856
+ activeInstance = vm;
3857
+ return function () {
3858
+ activeInstance = prevActiveInstance;
3859
+ }
3860
+ }
3861
+
3862
+ function initLifecycle (vm) {
3863
+ var options = vm.$options;
3864
+
3865
+ // locate first non-abstract parent
3866
+ var parent = options.parent;
3867
+ if (parent && !options.abstract) {
3868
+ while (parent.$options.abstract && parent.$parent) {
3869
+ parent = parent.$parent;
3870
+ }
3871
+ parent.$children.push(vm);
3872
+ }
3873
+
3874
+ vm.$parent = parent;
3875
+ vm.$root = parent ? parent.$root : vm;
3876
+
3877
+ vm.$children = [];
3878
+ vm.$refs = {};
3879
+
3880
+ vm._watcher = null;
3881
+ vm._inactive = null;
3882
+ vm._directInactive = false;
3883
+ vm._isMounted = false;
3884
+ vm._isDestroyed = false;
3885
+ vm._isBeingDestroyed = false;
3886
+ }
3887
+
3888
+ function lifecycleMixin (Vue) {
3889
+ Vue.prototype._update = function (vnode, hydrating) {
3890
+ var vm = this;
3891
+ var prevEl = vm.$el;
3892
+ var prevVnode = vm._vnode;
3893
+ var restoreActiveInstance = setActiveInstance(vm);
3894
+ vm._vnode = vnode;
3895
+ // Vue.prototype.__patch__ is injected in entry points
3896
+ // based on the rendering backend used.
3897
+ if (!prevVnode) {
3898
+ // initial render
3899
+ vm.$el = vm.__patch__(vm.$el, vnode, hydrating, false /* removeOnly */);
3900
+ } else {
3901
+ // updates
3902
+ vm.$el = vm.__patch__(prevVnode, vnode);
3903
+ }
3904
+ restoreActiveInstance();
3905
+ // update __vue__ reference
3906
+ if (prevEl) {
3907
+ prevEl.__vue__ = null;
3908
+ }
3909
+ if (vm.$el) {
3910
+ vm.$el.__vue__ = vm;
3911
+ }
3912
+ // if parent is an HOC, update its $el as well
3913
+ if (vm.$vnode && vm.$parent && vm.$vnode === vm.$parent._vnode) {
3914
+ vm.$parent.$el = vm.$el;
3915
+ }
3916
+ // updated hook is called by the scheduler to ensure that children are
3917
+ // updated in a parent's updated hook.
3918
+ };
3919
+
3920
+ Vue.prototype.$forceUpdate = function () {
3921
+ var vm = this;
3922
+ if (vm._watcher) {
3923
+ vm._watcher.update();
3924
+ }
3925
+ };
3926
+
3927
+ Vue.prototype.$destroy = function () {
3928
+ var vm = this;
3929
+ if (vm._isBeingDestroyed) {
3930
+ return
3931
+ }
3932
+ callHook(vm, 'beforeDestroy');
3933
+ vm._isBeingDestroyed = true;
3934
+ // remove self from parent
3935
+ var parent = vm.$parent;
3936
+ if (parent && !parent._isBeingDestroyed && !vm.$options.abstract) {
3937
+ remove(parent.$children, vm);
3938
+ }
3939
+ // teardown watchers
3940
+ if (vm._watcher) {
3941
+ vm._watcher.teardown();
3942
+ }
3943
+ var i = vm._watchers.length;
3944
+ while (i--) {
3945
+ vm._watchers[i].teardown();
3946
+ }
3947
+ // remove reference from data ob
3948
+ // frozen object may not have observer.
3949
+ if (vm._data.__ob__) {
3950
+ vm._data.__ob__.vmCount--;
3951
+ }
3952
+ // call the last hook...
3953
+ vm._isDestroyed = true;
3954
+ // invoke destroy hooks on current rendered tree
3955
+ vm.__patch__(vm._vnode, null);
3956
+ // fire destroyed hook
3957
+ callHook(vm, 'destroyed');
3958
+ // turn off all instance listeners.
3959
+ vm.$off();
3960
+ // remove __vue__ reference
3961
+ if (vm.$el) {
3962
+ vm.$el.__vue__ = null;
3963
+ }
3964
+ // release circular reference (#6759)
3965
+ if (vm.$vnode) {
3966
+ vm.$vnode.parent = null;
3967
+ }
3968
+ };
3969
+ }
3970
+
3971
+ function mountComponent (
3972
+ vm,
3973
+ el,
3974
+ hydrating
3975
+ ) {
3976
+ vm.$el = el;
3977
+ if (!vm.$options.render) {
3978
+ vm.$options.render = createEmptyVNode;
3979
+ {
3980
+ /* istanbul ignore if */
3981
+ if ((vm.$options.template && vm.$options.template.charAt(0) !== '#') ||
3982
+ vm.$options.el || el) {
3983
+ warn(
3984
+ 'You are using the runtime-only build of Vue where the template ' +
3985
+ 'compiler is not available. Either pre-compile the templates into ' +
3986
+ 'render functions, or use the compiler-included build.',
3987
+ vm
3988
+ );
3989
+ } else {
3990
+ warn(
3991
+ 'Failed to mount component: template or render function not defined.',
3992
+ vm
3993
+ );
3994
+ }
3995
+ }
3996
+ }
3997
+ callHook(vm, 'beforeMount');
3998
+
3999
+ var updateComponent;
4000
+ /* istanbul ignore if */
4001
+ if (config.performance && mark) {
4002
+ updateComponent = function () {
4003
+ var name = vm._name;
4004
+ var id = vm._uid;
4005
+ var startTag = "vue-perf-start:" + id;
4006
+ var endTag = "vue-perf-end:" + id;
4007
+
4008
+ mark(startTag);
4009
+ var vnode = vm._render();
4010
+ mark(endTag);
4011
+ measure(("vue " + name + " render"), startTag, endTag);
4012
+
4013
+ mark(startTag);
4014
+ vm._update(vnode, hydrating);
4015
+ mark(endTag);
4016
+ measure(("vue " + name + " patch"), startTag, endTag);
4017
+ };
4018
+ } else {
4019
+ updateComponent = function () {
4020
+ vm._update(vm._render(), hydrating);
4021
+ };
4022
+ }
4023
+
4024
+ // we set this to vm._watcher inside the watcher's constructor
4025
+ // since the watcher's initial patch may call $forceUpdate (e.g. inside child
4026
+ // component's mounted hook), which relies on vm._watcher being already defined
4027
+ new Watcher(vm, updateComponent, noop, {
4028
+ before: function before () {
4029
+ if (vm._isMounted && !vm._isDestroyed) {
4030
+ callHook(vm, 'beforeUpdate');
4031
+ }
4032
+ }
4033
+ }, true /* isRenderWatcher */);
4034
+ hydrating = false;
4035
+
4036
+ // manually mounted instance, call mounted on self
4037
+ // mounted is called for render-created child components in its inserted hook
4038
+ if (vm.$vnode == null) {
4039
+ vm._isMounted = true;
4040
+ callHook(vm, 'mounted');
4041
+ }
4042
+ return vm
4043
+ }
4044
+
4045
+ function updateChildComponent (
4046
+ vm,
4047
+ propsData,
4048
+ listeners,
4049
+ parentVnode,
4050
+ renderChildren
4051
+ ) {
4052
+ {
4053
+ isUpdatingChildComponent = true;
4054
+ }
4055
+
4056
+ // determine whether component has slot children
4057
+ // we need to do this before overwriting $options._renderChildren.
4058
+
4059
+ // check if there are dynamic scopedSlots (hand-written or compiled but with
4060
+ // dynamic slot names). Static scoped slots compiled from template has the
4061
+ // "$stable" marker.
4062
+ var hasDynamicScopedSlot = !!(
4063
+ (parentVnode.data.scopedSlots && !parentVnode.data.scopedSlots.$stable) ||
4064
+ (vm.$scopedSlots !== emptyObject && !vm.$scopedSlots.$stable)
4065
  );
 
 
 
4066
 
4067
+ // Any static slot children from the parent may have changed during parent's
4068
+ // update. Dynamic scoped slots may also have changed. In such cases, a forced
4069
+ // update is necessary to ensure correctness.
4070
+ var needsForceUpdate = !!(
4071
+ renderChildren || // has new static slots
4072
+ vm.$options._renderChildren || // has old static slots
4073
+ hasDynamicScopedSlot
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4074
  );
 
 
4075
 
4076
+ vm.$options._parentVnode = parentVnode;
4077
+ vm.$vnode = parentVnode; // update vm's placeholder node without re-render
4078
+
4079
+ if (vm._vnode) { // update child tree's parent
4080
+ vm._vnode.parent = parentVnode;
 
 
 
 
 
 
4081
  }
4082
+ vm.$options._renderChildren = renderChildren;
 
4083
 
4084
+ // update $attrs and $listeners hash
4085
+ // these are also reactive so they may trigger child update if the child
4086
+ // used them during render
4087
+ vm.$attrs = parentVnode.data.attrs || emptyObject;
4088
+ vm.$listeners = listeners || emptyObject;
 
 
 
 
4089
 
4090
+ // update props
4091
+ if (propsData && vm.$options.props) {
4092
+ toggleObserving(false);
4093
+ var props = vm._props;
4094
+ var propKeys = vm.$options._propKeys || [];
4095
+ for (var i = 0; i < propKeys.length; i++) {
4096
+ var key = propKeys[i];
4097
+ var propOptions = vm.$options.props; // wtf flow?
4098
+ props[key] = validateProp(key, propOptions, propsData, vm);
4099
+ }
4100
+ toggleObserving(true);
4101
+ // keep a copy of raw propsData
4102
+ vm.$options.propsData = propsData;
4103
+ }
4104
 
4105
+ // update listeners
4106
+ listeners = listeners || emptyObject;
4107
+ var oldListeners = vm.$options._parentListeners;
4108
+ vm.$options._parentListeners = listeners;
4109
+ updateComponentListeners(vm, listeners, oldListeners);
4110
 
4111
+ // resolve slots + force update if has children
4112
+ if (needsForceUpdate) {
4113
+ vm.$slots = resolveSlots(renderChildren, parentVnode.context);
4114
+ vm.$forceUpdate();
 
 
 
 
 
 
4115
  }
4116
+
4117
+ {
4118
+ isUpdatingChildComponent = false;
 
 
 
 
 
 
4119
  }
4120
  }
 
 
 
 
 
 
4121
 
4122
+ function isInInactiveTree (vm) {
4123
+ while (vm && (vm = vm.$parent)) {
4124
+ if (vm._inactive) { return true }
4125
+ }
4126
+ return false
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4127
  }
 
 
4128
 
4129
+ function activateChildComponent (vm, direct) {
4130
+ if (direct) {
4131
+ vm._directInactive = false;
4132
+ if (isInInactiveTree(vm)) {
4133
+ return
4134
+ }
4135
+ } else if (vm._directInactive) {
4136
+ return
4137
+ }
4138
+ if (vm._inactive || vm._inactive === null) {
4139
+ vm._inactive = false;
4140
+ for (var i = 0; i < vm.$children.length; i++) {
4141
+ activateChildComponent(vm.$children[i]);
4142
+ }
4143
+ callHook(vm, 'activated');
4144
+ }
 
 
 
 
 
 
 
 
 
4145
  }
 
 
 
 
 
 
4146
 
4147
+ function deactivateChildComponent (vm, direct) {
4148
+ if (direct) {
4149
+ vm._directInactive = true;
4150
+ if (isInInactiveTree(vm)) {
4151
+ return
4152
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4153
  }
4154
+ if (!vm._inactive) {
4155
+ vm._inactive = true;
4156
+ for (var i = 0; i < vm.$children.length; i++) {
4157
+ deactivateChildComponent(vm.$children[i]);
4158
+ }
4159
+ callHook(vm, 'deactivated');
4160
  }
4161
  }
4162
+
4163
+ function callHook (vm, hook) {
4164
+ // #7573 disable dep collection when invoking lifecycle hooks
4165
+ pushTarget();
4166
+ var handlers = vm.$options[hook];
4167
+ var info = hook + " hook";
4168
+ if (handlers) {
4169
+ for (var i = 0, j = handlers.length; i < j; i++) {
4170
+ invokeWithErrorHandling(handlers[i], vm, null, vm, info);
4171
+ }
 
 
 
 
 
 
4172
  }
4173
+ if (vm._hasHookEvent) {
4174
+ vm.$emit('hook:' + hook);
4175
+ }
4176
+ popTarget();
4177
  }
 
4178
 
4179
+ /* */
4180
 
4181
+ var MAX_UPDATE_COUNT = 100;
4182
+
4183
+ var queue = [];
4184
+ var activatedChildren = [];
4185
+ var has = {};
4186
+ var circular = {};
4187
+ var waiting = false;
4188
+ var flushing = false;
4189
+ var index = 0;
4190
+
4191
+ /**
4192
+ * Reset the scheduler's state.
4193
+ */
4194
+ function resetSchedulerState () {
4195
+ index = queue.length = activatedChildren.length = 0;
4196
+ has = {};
4197
+ {
4198
+ circular = {};
4199
  }
4200
+ waiting = flushing = false;
 
 
 
 
 
4201
  }
 
 
 
 
 
4202
 
4203
+ // Async edge case #6566 requires saving the timestamp when event listeners are
4204
+ // attached. However, calling performance.now() has a perf overhead especially
4205
+ // if the page has thousands of event listeners. Instead, we take a timestamp
4206
+ // every time the scheduler flushes and use that for all event listeners
4207
+ // attached during that flush.
4208
+ var currentFlushTimestamp = 0;
 
 
 
4209
 
4210
+ // Async edge case fix requires storing an event listener's attach timestamp.
4211
+ var getNow = Date.now;
 
4212
 
4213
+ // Determine what event timestamp the browser is using. Annoyingly, the
4214
+ // timestamp can either be hi-res (relative to page load) or low-res
4215
+ // (relative to UNIX epoch), so in order to compare time we have to use the
4216
+ // same timestamp type when saving the flush timestamp.
4217
+ if (inBrowser && getNow() > document.createEvent('Event').timeStamp) {
4218
+ // if the low-res timestamp which is bigger than the event timestamp
4219
+ // (which is evaluated AFTER) it means the event is using a hi-res timestamp,
4220
+ // and we need to use the hi-res version for event listeners as well.
4221
+ getNow = function () { return performance.now(); };
4222
  }
 
 
 
 
 
 
 
4223
 
4224
+ /**
4225
+ * Flush both queues and run the watchers.
4226
+ */
4227
+ function flushSchedulerQueue () {
4228
+ currentFlushTimestamp = getNow();
4229
+ flushing = true;
4230
+ var watcher, id;
4231
+
4232
+ // Sort queue before flush.
4233
+ // This ensures that:
4234
+ // 1. Components are updated from parent to child. (because parent is always
4235
+ // created before the child)
4236
+ // 2. A component's user watchers are run before its render watcher (because
4237
+ // user watchers are created before the render watcher)
4238
+ // 3. If a component is destroyed during a parent component's watcher run,
4239
+ // its watchers can be skipped.
4240
+ queue.sort(function (a, b) { return a.id - b.id; });
4241
+
4242
+ // do not cache length because more watchers might be pushed
4243
+ // as we run existing watchers
4244
+ for (index = 0; index < queue.length; index++) {
4245
+ watcher = queue[index];
4246
+ if (watcher.before) {
4247
+ watcher.before();
4248
+ }
4249
+ id = watcher.id;
4250
+ has[id] = null;
4251
+ watcher.run();
4252
+ // in dev build, check and stop circular updates.
4253
+ if (has[id] != null) {
4254
+ circular[id] = (circular[id] || 0) + 1;
4255
+ if (circular[id] > MAX_UPDATE_COUNT) {
4256
+ warn(
4257
+ 'You may have an infinite update loop ' + (
4258
+ watcher.user
4259
+ ? ("in watcher with expression \"" + (watcher.expression) + "\"")
4260
+ : "in a component render function."
4261
+ ),
4262
+ watcher.vm
4263
+ );
4264
+ break
4265
  }
4266
  }
4267
  }
 
 
 
4268
 
4269
+ // keep copies of post queues before resetting state
4270
+ var activatedQueue = activatedChildren.slice();
4271
+ var updatedQueue = queue.slice();
 
 
 
 
 
 
 
4272
 
4273
+ resetSchedulerState();
4274
+
4275
+ // call component updated and activated hooks
4276
+ callActivatedHooks(activatedQueue);
4277
+ callUpdatedHooks(updatedQueue);
4278
+
4279
+ // devtool hook
4280
+ /* istanbul ignore if */
4281
+ if (devtools && config.devtools) {
4282
+ devtools.emit('flush');
4283
+ }
4284
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4285
 
4286
+ function callUpdatedHooks (queue) {
4287
+ var i = queue.length;
4288
+ while (i--) {
4289
+ var watcher = queue[i];
4290
+ var vm = watcher.vm;
4291
+ if (vm._watcher === watcher && vm._isMounted && !vm._isDestroyed) {
4292
+ callHook(vm, 'updated');
 
4293
  }
 
 
 
 
 
 
 
 
 
 
4294
  }
4295
  }
4296
+
4297
+ /**
4298
+ * Queue a kept-alive component that was activated during patch.
4299
+ * The queue will be processed after the entire tree has been patched.
4300
+ */
4301
+ function queueActivatedComponent (vm) {
4302
+ // setting _inactive to false here so that a render function can
4303
+ // rely on checking whether it's in an inactive tree (e.g. router-view)
4304
+ vm._inactive = false;
4305
+ activatedChildren.push(vm);
4306
  }
 
4307
 
4308
+ function callActivatedHooks (queue) {
4309
+ for (var i = 0; i < queue.length; i++) {
4310
+ queue[i]._inactive = true;
4311
+ activateChildComponent(queue[i], true /* true */);
4312
+ }
4313
+ }
4314
 
4315
+ /**
4316
+ * Push a watcher into the watcher queue.
4317
+ * Jobs with duplicate IDs will be skipped unless it's
4318
+ * pushed when the queue is being flushed.
4319
+ */
4320
+ function queueWatcher (watcher) {
4321
+ var id = watcher.id;
4322
+ if (has[id] == null) {
4323
+ has[id] = true;
4324
+ if (!flushing) {
4325
+ queue.push(watcher);
4326
+ } else {
4327
+ // if already flushing, splice the watcher based on its id
4328
+ // if already past its id, it will be run next immediately.
4329
+ var i = queue.length - 1;
4330
+ while (i > index && queue[i].id > watcher.id) {
4331
+ i--;
4332
+ }
4333
+ queue.splice(i + 1, 0, watcher);
4334
+ }
4335
+ // queue the flush
4336
+ if (!waiting) {
4337
+ waiting = true;
4338
 
4339
+ if (!config.async) {
4340
+ flushSchedulerQueue();
4341
+ return
4342
+ }
4343
+ nextTick(flushSchedulerQueue);
4344
+ }
4345
+ }
 
 
 
 
 
 
 
 
 
 
4346
  }
 
 
 
4347
 
4348
+ /* */
4349
 
 
 
 
 
 
 
 
4350
 
 
 
 
 
 
 
 
 
 
 
4351
 
4352
+ var uid$2 = 0;
 
4353
 
4354
+ /**
4355
+ * A watcher parses an expression, collects dependencies,
4356
+ * and fires callback when the expression value changes.
4357
+ * This is used for both the $watch() api and directives.
4358
+ */
4359
+ var Watcher = function Watcher (
4360
+ vm,
4361
+ expOrFn,
4362
+ cb,
4363
+ options,
4364
+ isRenderWatcher
4365
+ ) {
4366
+ this.vm = vm;
4367
+ if (isRenderWatcher) {
4368
+ vm._watcher = this;
4369
+ }
4370
+ vm._watchers.push(this);
4371
+ // options
4372
+ if (options) {
4373
+ this.deep = !!options.deep;
4374
+ this.user = !!options.user;
4375
+ this.lazy = !!options.lazy;
4376
+ this.sync = !!options.sync;
4377
+ this.before = options.before;
4378
+ } else {
4379
+ this.deep = this.user = this.lazy = this.sync = false;
4380
+ }
4381
+ this.cb = cb;
4382
+ this.id = ++uid$2; // uid for batching
4383
+ this.active = true;
4384
+ this.dirty = this.lazy; // for lazy watchers
4385
+ this.deps = [];
4386
+ this.newDeps = [];
4387
+ this.depIds = new _Set();
4388
+ this.newDepIds = new _Set();
4389
+ this.expression = expOrFn.toString();
4390
+ // parse expression for getter
4391
+ if (typeof expOrFn === 'function') {
4392
+ this.getter = expOrFn;
4393
+ } else {
4394
+ this.getter = parsePath(expOrFn);
4395
+ if (!this.getter) {
4396
+ this.getter = noop;
4397
+ warn(
4398
+ "Failed watching path: \"" + expOrFn + "\" " +
4399
+ 'Watcher only accepts simple dot-delimited paths. ' +
4400
+ 'For full control, use a function instead.',
4401
+ vm
4402
+ );
4403
  }
4404
+ }
4405
+ this.value = this.lazy
4406
+ ? undefined
4407
+ : this.get();
4408
+ };
4409
 
4410
+ /**
4411
+ * Evaluate the getter, and re-collect dependencies.
4412
+ */
4413
+ Watcher.prototype.get = function get () {
4414
+ pushTarget(this);
4415
+ var value;
4416
+ var vm = this.vm;
4417
+ try {
4418
+ value = this.getter.call(vm, vm);
4419
+ } catch (e) {
4420
+ if (this.user) {
4421
+ handleError(e, vm, ("getter for watcher \"" + (this.expression) + "\""));
4422
+ } else {
4423
+ throw e
4424
  }
4425
+ } finally {
4426
+ // "touch" every property so they are all tracked as
4427
+ // dependencies for deep watching
4428
+ if (this.deep) {
4429
+ traverse(value);
4430
+ }
4431
+ popTarget();
4432
+ this.cleanupDeps();
4433
  }
4434
+ return value
4435
  };
4436
 
4437
+ /**
4438
+ * Add a dependency to this directive.
4439
+ */
4440
+ Watcher.prototype.addDep = function addDep (dep) {
4441
+ var id = dep.id;
4442
+ if (!this.newDepIds.has(id)) {
4443
+ this.newDepIds.add(id);
4444
+ this.newDeps.push(dep);
4445
+ if (!this.depIds.has(id)) {
4446
+ dep.addSub(this);
4447
  }
 
4448
  }
4449
  };
4450
 
4451
+ /**
4452
+ * Clean up for dependency collection.
4453
+ */
4454
+ Watcher.prototype.cleanupDeps = function cleanupDeps () {
4455
+ var i = this.deps.length;
4456
+ while (i--) {
4457
+ var dep = this.deps[i];
4458
+ if (!this.newDepIds.has(dep.id)) {
4459
+ dep.removeSub(this);
4460
+ }
4461
+ }
4462
+ var tmp = this.depIds;
4463
+ this.depIds = this.newDepIds;
4464
+ this.newDepIds = tmp;
4465
+ this.newDepIds.clear();
4466
+ tmp = this.deps;
4467
+ this.deps = this.newDeps;
4468
+ this.newDeps = tmp;
4469
+ this.newDeps.length = 0;
4470
+ };
4471
+
4472
+ /**
4473
+ * Subscriber interface.
4474
+ * Will be called when a dependency changes.
4475
+ */
4476
+ Watcher.prototype.update = function update () {
4477
+ /* istanbul ignore else */
4478
+ if (this.lazy) {
4479
+ this.dirty = true;
4480
+ } else if (this.sync) {
4481
+ this.run();
4482
  } else {
4483
+ queueWatcher(this);
4484
  }
4485
  };
 
4486
 
4487
+ /**
4488
+ * Scheduler job interface.
4489
+ * Will be called by the scheduler.
4490
+ */
4491
+ Watcher.prototype.run = function run () {
4492
+ if (this.active) {
4493
+ var value = this.get();
4494
+ if (
4495
+ value !== this.value ||
4496
+ // Deep watchers and watchers on Object/Arrays should fire even
4497
+ // when the value is the same, because the value may
4498
+ // have mutated.
4499
+ isObject(value) ||
4500
+ this.deep
4501
+ ) {
4502
+ // set new value
4503
+ var oldValue = this.value;
4504
+ this.value = value;
4505
+ if (this.user) {
4506
+ try {
4507
+ this.cb.call(this.vm, value, oldValue);
4508
+ } catch (e) {
4509
+ handleError(e, this.vm, ("callback for watcher \"" + (this.expression) + "\""));
4510
+ }
4511
+ } else {
4512
+ this.cb.call(this.vm, value, oldValue);
4513
+ }
4514
+ }
4515
+ }
4516
+ };
4517
 
4518
+ /**
4519
+ * Evaluate the value of the watcher.
4520
+ * This only gets called for lazy watchers.
4521
+ */
4522
+ Watcher.prototype.evaluate = function evaluate () {
4523
+ this.value = this.get();
4524
+ this.dirty = false;
4525
+ };
4526
 
4527
+ /**
4528
+ * Depend on all deps collected by this watcher.
4529
+ */
4530
+ Watcher.prototype.depend = function depend () {
4531
+ var i = this.deps.length;
4532
+ while (i--) {
4533
+ this.deps[i].depend();
 
 
 
 
 
 
 
 
 
 
 
 
 
4534
  }
4535
+ };
4536
+
4537
+ /**
4538
+ * Remove self from all dependencies' subscriber list.
4539
+ */
4540
+ Watcher.prototype.teardown = function teardown () {
4541
+ if (this.active) {
4542
+ // remove self from vm's watcher list
4543
+ // this is a somewhat expensive operation so we skip it
4544
+ // if the vm is being destroyed.
4545
+ if (!this.vm._isBeingDestroyed) {
4546
+ remove(this.vm._watchers, this);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4547
  }
4548
+ var i = this.deps.length;
4549
+ while (i--) {
4550
+ this.deps[i].removeSub(this);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4551
  }
4552
+ this.active = false;
 
 
 
4553
  }
4554
+ };
 
 
 
 
 
 
 
4555
 
4556
+ /* */
4557
 
4558
+ var sharedPropertyDefinition = {
4559
+ enumerable: true,
4560
+ configurable: true,
4561
+ get: noop,
4562
+ set: noop
4563
+ };
4564
 
4565
+ function proxy (target, sourceKey, key) {
4566
+ sharedPropertyDefinition.get = function proxyGetter () {
4567
+ return this[sourceKey][key]
4568
+ };
4569
+ sharedPropertyDefinition.set = function proxySetter (val) {
4570
+ this[sourceKey][key] = val;
4571
+ };
4572
+ Object.defineProperty(target, key, sharedPropertyDefinition);
4573
  }
4574
 
4575
+ function initState (vm) {
4576
+ vm._watchers = [];
4577
+ var opts = vm.$options;
4578
+ if (opts.props) { initProps(vm, opts.props); }
4579
+ if (opts.methods) { initMethods(vm, opts.methods); }
4580
+ if (opts.data) {
4581
+ initData(vm);
 
 
4582
  } else {
4583
+ observe(vm._data = {}, true /* asRootData */);
4584
+ }
4585
+ if (opts.computed) { initComputed(vm, opts.computed); }
4586
+ if (opts.watch && opts.watch !== nativeWatch) {
4587
+ initWatch(vm, opts.watch);
4588
+ }
4589
+ }
4590
+
4591
+ function initProps (vm, propsOptions) {
4592
+ var propsData = vm.$options.propsData || {};
4593
+ var props = vm._props = {};
4594
+ // cache prop keys so that future props updates can iterate using Array
4595
+ // instead of dynamic object key enumeration.
4596
+ var keys = vm.$options._propKeys = [];
4597
+ var isRoot = !vm.$parent;
4598
+ // root instance props should be converted
4599
+ if (!isRoot) {
4600
+ toggleObserving(false);
4601
+ }
4602
+ var loop = function ( key ) {
4603
+ keys.push(key);
4604
+ var value = validateProp(key, propsOptions, propsData, vm);
4605
+ /* istanbul ignore else */
 
 
 
 
 
 
4606
  {
4607
+ var hyphenatedKey = hyphenate(key);
4608
+ if (isReservedAttribute(hyphenatedKey) ||
4609
+ config.isReservedAttr(hyphenatedKey)) {
4610
+ warn(
4611
+ ("\"" + hyphenatedKey + "\" is a reserved attribute and cannot be used as component prop."),
4612
+ vm
 
 
 
 
 
 
4613
  );
4614
  }
4615
+ defineReactive$$1(props, key, value, function () {
4616
+ if (!isRoot && !isUpdatingChildComponent) {
4617
+ warn(
4618
+ "Avoid mutating a prop directly since the value will be " +
4619
+ "overwritten whenever the parent component re-renders. " +
4620
+ "Instead, use a data or computed property based on the prop's " +
4621
+ "value. Prop being mutated: \"" + key + "\"",
4622
+ vm
4623
+ );
4624
+ }
4625
+ });
4626
  }
4627
+ // static props are already proxied on the component's prototype
4628
+ // during Vue.extend(). We only need to proxy props defined at
4629
+ // instantiation here.
4630
+ if (!(key in vm)) {
4631
+ proxy(vm, "_props", key);
4632
+ }
4633
+ };
4634
+
4635
+ for (var key in propsOptions) loop( key );
4636
+ toggleObserving(true);
4637
  }
 
 
4638
 
4639
+ function initData (vm) {
4640
+ var data = vm.$options.data;
4641
+ data = vm._data = typeof data === 'function'
4642
+ ? getData(data, vm)
4643
+ : data || {};
4644
+ if (!isPlainObject(data)) {
4645
+ data = {};
4646
+ warn(
4647
+ 'data functions should return an object:\n' +
4648
+ 'https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function',
4649
+ vm
4650
+ );
 
 
 
 
 
 
 
 
4651
  }
4652
+ // proxy data on instance
4653
+ var keys = Object.keys(data);
4654
+ var props = vm.$options.props;
4655
+ var methods = vm.$options.methods;
4656
+ var i = keys.length;
4657
+ while (i--) {
4658
+ var key = keys[i];
4659
+ {
4660
+ if (methods && hasOwn(methods, key)) {
4661
+ warn(
4662
+ ("Method \"" + key + "\" has already been defined as a data property."),
4663
+ vm
4664
+ );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4665
  }
4666
+ }
4667
+ if (props && hasOwn(props, key)) {
4668
+ warn(
4669
+ "The data property \"" + key + "\" is already declared as a prop. " +
4670
+ "Use prop default value instead.",
4671
+ vm
4672
+ );
4673
+ } else if (!isReserved(key)) {
4674
+ proxy(vm, "_data", key);
4675
  }
4676
  }
4677
+ // observe data
4678
+ observe(data, true /* asRootData */);
4679
  }
 
 
4680
 
4681
+ function getData (data, vm) {
4682
+ // #7573 disable dep collection when invoking data getters
4683
+ pushTarget();
4684
+ try {
4685
+ return data.call(vm, vm)
4686
+ } catch (e) {
4687
+ handleError(e, vm, "data()");
4688
+ return {}
4689
+ } finally {
4690
+ popTarget();
4691
+ }
4692
+ }
4693
 
4694
+ var computedWatcherOptions = { lazy: true };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4695
 
4696
+ function initComputed (vm, computed) {
4697
+ // $flow-disable-line
4698
+ var watchers = vm._computedWatchers = Object.create(null);
4699
+ // computed properties are just getters during SSR
4700
+ var isSSR = isServerRendering();
4701
+
4702
+ for (var key in computed) {
4703
+ var userDef = computed[key];
4704
+ var getter = typeof userDef === 'function' ? userDef : userDef.get;
4705
+ if (getter == null) {
4706
+ warn(
4707
+ ("Getter is missing for computed property \"" + key + "\"."),
4708
+ vm
4709
+ );
4710
  }
 
4711
 
4712
+ if (!isSSR) {
4713
+ // create internal watcher for the computed property.
4714
+ watchers[key] = new Watcher(
4715
+ vm,
4716
+ getter || noop,
4717
+ noop,
4718
+ computedWatcherOptions
4719
+ );
4720
  }
 
4721
 
4722
+ // component-defined computed properties are already defined on the
4723
+ // component prototype. We only need to define computed properties defined
4724
+ // at instantiation here.
4725
+ if (!(key in vm)) {
4726
+ defineComputed(vm, key, userDef);
4727
+ } else {
4728
+ if (key in vm.$data) {
4729
+ warn(("The computed property \"" + key + "\" is already defined in data."), vm);
4730
+ } else if (vm.$options.props && key in vm.$options.props) {
4731
+ warn(("The computed property \"" + key + "\" is already defined as a prop."), vm);
4732
+ }
4733
  }
4734
+ }
4735
+ }
4736
 
4737
+ function defineComputed (
4738
+ target,
4739
+ key,
4740
+ userDef
4741
+ ) {
4742
+ var shouldCache = !isServerRendering();
4743
+ if (typeof userDef === 'function') {
4744
+ sharedPropertyDefinition.get = shouldCache
4745
+ ? createComputedGetter(key)
4746
+ : createGetterInvoker(userDef);
4747
+ sharedPropertyDefinition.set = noop;
4748
+ } else {
4749
+ sharedPropertyDefinition.get = userDef.get
4750
+ ? shouldCache && userDef.cache !== false
4751
+ ? createComputedGetter(key)
4752
+ : createGetterInvoker(userDef.get)
4753
+ : noop;
4754
+ sharedPropertyDefinition.set = userDef.set || noop;
4755
+ }
4756
+ if (sharedPropertyDefinition.set === noop) {
4757
+ sharedPropertyDefinition.set = function () {
4758
+ warn(
4759
+ ("Computed property \"" + key + "\" was assigned to but it has no setter."),
4760
+ this
4761
+ );
4762
+ };
4763
+ }
4764
+ Object.defineProperty(target, key, sharedPropertyDefinition);
4765
+ }
4766
 
4767
+ function createComputedGetter (key) {
4768
+ return function computedGetter () {
4769
+ var watcher = this._computedWatchers && this._computedWatchers[key];
4770
+ if (watcher) {
4771
+ if (watcher.dirty) {
4772
+ watcher.evaluate();
4773
  }
4774
+ if (Dep.target) {
4775
+ watcher.depend();
 
 
 
4776
  }
4777
+ return watcher.value
4778
+ }
4779
+ }
4780
+ }
4781
 
4782
+ function createGetterInvoker(fn) {
4783
+ return function computedGetter () {
4784
+ return fn.call(this, this)
4785
+ }
4786
+ }
 
 
 
 
 
 
 
 
4787
 
4788
+ function initMethods (vm, methods) {
4789
+ var props = vm.$options.props;
4790
+ for (var key in methods) {
4791
+ {
4792
+ if (typeof methods[key] !== 'function') {
4793
+ warn(
4794
+ "Method \"" + key + "\" has type \"" + (typeof methods[key]) + "\" in the component definition. " +
4795
+ "Did you reference the function correctly?",
4796
+ vm
4797
+ );
4798
+ }
4799
+ if (props && hasOwn(props, key)) {
4800
+ warn(
4801
+ ("Method \"" + key + "\" has already been defined as a prop."),
4802
+ vm
4803
+ );
4804
+ }
4805
+ if ((key in vm) && isReserved(key)) {
4806
+ warn(
4807
+ "Method \"" + key + "\" conflicts with an existing Vue instance method. " +
4808
+ "Avoid defining component methods that start with _ or $."
4809
+ );
4810
  }
4811
  }
4812
+ vm[key] = typeof methods[key] !== 'function' ? noop : bind(methods[key], vm);
4813
  }
 
 
 
 
 
 
4814
  }
 
4815
 
4816
+ function initWatch (vm, watch) {
4817
+ for (var key in watch) {
4818
+ var handler = watch[key];
4819
+ if (Array.isArray(handler)) {
4820
+ for (var i = 0; i < handler.length; i++) {
4821
+ createWatcher(vm, key, handler[i]);
4822
+ }
4823
+ } else {
4824
+ createWatcher(vm, key, handler);
 
 
 
 
 
4825
  }
4826
  }
4827
  }
 
 
 
 
 
4828
 
4829
+ function createWatcher (
4830
+ vm,
4831
+ expOrFn,
4832
+ handler,
4833
+ options
4834
+ ) {
4835
+ if (isPlainObject(handler)) {
4836
+ options = handler;
4837
+ handler = handler.handler;
4838
+ }
4839
+ if (typeof handler === 'string') {
4840
+ handler = vm[handler];
4841
+ }
4842
+ return vm.$watch(expOrFn, handler, options)
4843
  }
 
4844
 
4845
+ function stateMixin (Vue) {
4846
+ // flow somehow has problems with directly declared definition object
4847
+ // when using Object.defineProperty, so we have to procedurally build up
4848
+ // the object here.
4849
+ var dataDef = {};
4850
+ dataDef.get = function () { return this._data };
4851
+ var propsDef = {};
4852
+ propsDef.get = function () { return this._props };
4853
+ {
4854
+ dataDef.set = function () {
4855
+ warn(
4856
+ 'Avoid replacing instance root $data. ' +
4857
+ 'Use nested data properties instead.',
4858
+ this
4859
+ );
4860
+ };
4861
+ propsDef.set = function () {
4862
+ warn("$props is readonly.", this);
4863
+ };
4864
+ }
4865
+ Object.defineProperty(Vue.prototype, '$data', dataDef);
4866
+ Object.defineProperty(Vue.prototype, '$props', propsDef);
4867
 
4868
+ Vue.prototype.$set = set;
4869
+ Vue.prototype.$delete = del;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4870
 
4871
+ Vue.prototype.$watch = function (
4872
+ expOrFn,
4873
+ cb,
4874
+ options
4875
+ ) {
4876
+ var vm = this;
4877
+ if (isPlainObject(cb)) {
4878
+ return createWatcher(vm, expOrFn, cb, options)
4879
+ }
4880
+ options = options || {};
4881
+ options.user = true;
4882
+ var watcher = new Watcher(vm, expOrFn, cb, options);
4883
+ if (options.immediate) {
4884
+ try {
4885
+ cb.call(vm, watcher.value);
4886
+ } catch (error) {
4887
+ handleError(error, vm, ("callback for immediate watcher \"" + (watcher.expression) + "\""));
4888
+ }
4889
  }
4890
+ return function unwatchFn () {
4891
+ watcher.teardown();
 
 
 
 
4892
  }
4893
+ };
4894
+ }
 
4895
 
4896
+ /* */
 
 
 
 
 
 
 
 
 
4897
 
4898
+ var uid$3 = 0;
 
4899
 
4900
+ function initMixin (Vue) {
4901
+ Vue.prototype._init = function (options) {
4902
+ var vm = this;
4903
+ // a uid
4904
+ vm._uid = uid$3++;
4905
+
4906
+ var startTag, endTag;
4907
+ /* istanbul ignore if */
4908
+ if (config.performance && mark) {
4909
+ startTag = "vue-perf-start:" + (vm._uid);
4910
+ endTag = "vue-perf-end:" + (vm._uid);
4911
+ mark(startTag);
4912
+ }
4913
+
4914
+ // a flag to avoid this being observed
4915
+ vm._isVue = true;
4916
+ // merge options
4917
+ if (options && options._isComponent) {
4918
+ // optimize internal component instantiation
4919
+ // since dynamic options merging is pretty slow, and none of the
4920
+ // internal component options needs special treatment.
4921
+ initInternalComponent(vm, options);
4922
+ } else {
4923
+ vm.$options = mergeOptions(
4924
+ resolveConstructorOptions(vm.constructor),
4925
+ options || {},
4926
+ vm
4927
+ );
4928
  }
4929
+ /* istanbul ignore else */
4930
+ {
4931
+ initProxy(vm);
4932
+ }
4933
+ // expose real self
4934
+ vm._self = vm;
4935
+ initLifecycle(vm);
4936
+ initEvents(vm);
4937
+ initRender(vm);
4938
+ callHook(vm, 'beforeCreate');
4939
+ initInjections(vm); // resolve injections before data/props
4940
+ initState(vm);
4941
+ initProvide(vm); // resolve provide after data/props
4942
+ callHook(vm, 'created');
4943
+
4944
+ /* istanbul ignore if */
4945
+ if (config.performance && mark) {
4946
+ vm._name = formatComponentName(vm, false);
4947
+ mark(endTag);
4948
+ measure(("vue " + (vm._name) + " init"), startTag, endTag);
 
4949
  }
 
 
 
4950
 
4951
+ if (vm.$options.el) {
4952
+ vm.$mount(vm.$options.el);
 
 
 
 
 
 
 
 
 
 
4953
  }
4954
+ };
4955
+ }
4956
+
4957
+ function initInternalComponent (vm, options) {
4958
+ var opts = vm.$options = Object.create(vm.constructor.options);
4959
+ // doing this because it's faster than dynamic enumeration.
4960
+ var parentVnode = options._parentVnode;
4961
+ opts.parent = options.parent;
4962
+ opts._parentVnode = parentVnode;
4963
+
4964
+ var vnodeComponentOptions = parentVnode.componentOptions;
4965
+ opts.propsData = vnodeComponentOptions.propsData;
4966
+ opts._parentListeners = vnodeComponentOptions.listeners;
4967
+ opts._renderChildren = vnodeComponentOptions.children;
4968
+ opts._componentTag = vnodeComponentOptions.tag;
4969
+
4970
+ if (options.render) {
4971
+ opts.render = options.render;
4972
+ opts.staticRenderFns = options.staticRenderFns;
4973
+ }
4974
+ }
4975
+
4976
+ function resolveConstructorOptions (Ctor) {
4977
+ var options = Ctor.options;
4978
+ if (Ctor.super) {
4979
+ var superOptions = resolveConstructorOptions(Ctor.super);
4980
+ var cachedSuperOptions = Ctor.superOptions;
4981
+ if (superOptions !== cachedSuperOptions) {
4982
+ // super option changed,
4983
+ // need to resolve new options.
4984
+ Ctor.superOptions = superOptions;
4985
+ // check if there are any late-modified/attached options (#4976)
4986
+ var modifiedOptions = resolveModifiedOptions(Ctor);
4987
+ // update base extend options
4988
+ if (modifiedOptions) {
4989
+ extend(Ctor.extendOptions, modifiedOptions);
4990
+ }
4991
+ options = Ctor.options = mergeOptions(superOptions, Ctor.extendOptions);
4992
+ if (options.name) {
4993
+ options.components[options.name] = Ctor;
4994
  }
4995
  }
4996
  }
4997
+ return options
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4998
  }
4999
+
5000
+ function resolveModifiedOptions (Ctor) {
5001
+ var modified;
5002
+ var latest = Ctor.options;
5003
+ var sealed = Ctor.sealedOptions;
5004
+ for (var key in latest) {
5005
+ if (latest[key] !== sealed[key]) {
5006
+ if (!modified) { modified = {}; }
5007
+ modified[key] = latest[key];
 
 
 
 
 
 
 
 
 
5008
  }
 
 
5009
  }
5010
+ return modified
5011
  }
5012
+
5013
+ function Vue (options) {
5014
+ if (!(this instanceof Vue)
5015
+ ) {
5016
+ warn('Vue is a constructor and should be called with the `new` keyword');
5017
  }
5018
+ this._init(options);
5019
  }
 
 
5020
 
5021
+ initMixin(Vue);
5022
+ stateMixin(Vue);
5023
+ eventsMixin(Vue);
5024
+ lifecycleMixin(Vue);
5025
+ renderMixin(Vue);
5026
 
5027
+ /* */
 
 
 
 
 
 
 
 
 
 
 
 
 
5028
 
5029
+ function initUse (Vue) {
5030
+ Vue.use = function (plugin) {
5031
+ var installedPlugins = (this._installedPlugins || (this._installedPlugins = []));
5032
+ if (installedPlugins.indexOf(plugin) > -1) {
5033
+ return this
5034
+ }
5035
 
5036
+ // additional parameters
5037
+ var args = toArray(arguments, 1);
5038
+ args.unshift(this);
5039
+ if (typeof plugin.install === 'function') {
5040
+ plugin.install.apply(plugin, args);
5041
+ } else if (typeof plugin === 'function') {
5042
+ plugin.apply(null, args);
5043
+ }
5044
+ installedPlugins.push(plugin);
5045
+ return this
5046
+ };
5047
+ }
5048
 
5049
+ /* */
 
5050
 
5051
+ function initMixin$1 (Vue) {
5052
+ Vue.mixin = function (mixin) {
5053
+ this.options = mergeOptions(this.options, mixin);
5054
+ return this
5055
+ };
 
 
5056
  }
5057
 
5058
+ /* */
 
5059
 
5060
+ function initExtend (Vue) {
5061
+ /**
5062
+ * Each instance constructor, including Vue, has a unique
5063
+ * cid. This enables us to create wrapped "child
5064
+ * constructors" for prototypal inheritance and cache them.
5065
+ */
5066
+ Vue.cid = 0;
5067
+ var cid = 1;
5068
 
5069
+ /**
5070
+ * Class inheritance
5071
+ */
5072
+ Vue.extend = function (extendOptions) {
5073
+ extendOptions = extendOptions || {};
5074
+ var Super = this;
5075
+ var SuperId = Super.cid;
5076
+ var cachedCtors = extendOptions._Ctor || (extendOptions._Ctor = {});
5077
+ if (cachedCtors[SuperId]) {
5078
+ return cachedCtors[SuperId]
5079
+ }
5080
 
5081
+ var name = extendOptions.name || Super.options.name;
5082
+ if (name) {
5083
+ validateComponentName(name);
5084
+ }
5085
+
5086
+ var Sub = function VueComponent (options) {
5087
+ this._init(options);
5088
+ };
5089
+ Sub.prototype = Object.create(Super.prototype);
5090
+ Sub.prototype.constructor = Sub;
5091
+ Sub.cid = cid++;
5092
+ Sub.options = mergeOptions(
5093
+ Super.options,
5094
+ extendOptions
 
 
 
 
 
5095
  );
5096
+ Sub['super'] = Super;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5097
 
5098
+ // For props and computed properties, we define the proxy getters on
5099
+ // the Vue instances at extension time, on the extended prototype. This
5100
+ // avoids Object.defineProperty calls for each instance created.
5101
+ if (Sub.options.props) {
5102
+ initProps$1(Sub);
5103
+ }
5104
+ if (Sub.options.computed) {
5105
+ initComputed$1(Sub);
5106
+ }
5107
 
5108
+ // allow further extension/mixin/plugin usage
5109
+ Sub.extend = Super.extend;
5110
+ Sub.mixin = Super.mixin;
5111
+ Sub.use = Super.use;
5112
+
5113
+ // create asset registers, so extended classes
5114
+ // can have their private assets too.
5115
+ ASSET_TYPES.forEach(function (type) {
5116
+ Sub[type] = Super[type];
5117
+ });
5118
+ // enable recursive self-lookup
5119
+ if (name) {
5120
+ Sub.options.components[name] = Sub;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5121
  }
 
 
 
5122
 
5123
+ // keep a reference to the super options at extension time.
5124
+ // later at instantiation we can check if Super's options have
5125
+ // been updated.
5126
+ Sub.superOptions = Super.options;
5127
+ Sub.extendOptions = extendOptions;
5128
+ Sub.sealedOptions = extend({}, Sub.options);
5129
+
5130
+ // cache constructor
5131
+ cachedCtors[SuperId] = Sub;
5132
+ return Sub
 
 
 
 
 
 
 
 
 
 
 
 
5133
  };
5134
  }
5135
 
5136
+ function initProps$1 (Comp) {
5137
+ var props = Comp.options.props;
5138
+ for (var key in props) {
5139
+ proxy(Comp.prototype, "_props", key);
5140
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5141
  }
5142
 
5143
+ function initComputed$1 (Comp) {
5144
+ var computed = Comp.options.computed;
5145
+ for (var key in computed) {
5146
+ defineComputed(Comp.prototype, key, computed[key]);
5147
+ }
 
 
 
 
 
 
 
 
 
5148
  }
 
5149
 
5150
+ /* */
 
 
 
 
5151
 
5152
+ function initAssetRegisters (Vue) {
5153
+ /**
5154
+ * Create asset registration methods.
5155
+ */
5156
+ ASSET_TYPES.forEach(function (type) {
5157
+ Vue[type] = function (
5158
+ id,
5159
+ definition
5160
+ ) {
5161
+ if (!definition) {
5162
+ return this.options[type + 's'][id]
5163
+ } else {
5164
+ /* istanbul ignore if */
5165
+ if (type === 'component') {
5166
+ validateComponentName(id);
5167
+ }
5168
+ if (type === 'component' && isPlainObject(definition)) {
5169
+ definition.name = definition.name || id;
5170
+ definition = this.options._base.extend(definition);
5171
+ }
5172
+ if (type === 'directive' && typeof definition === 'function') {
5173
+ definition = { bind: definition, update: definition };
5174
+ }
5175
+ this.options[type + 's'][id] = definition;
5176
+ return definition
5177
+ }
5178
+ };
5179
+ });
5180
  }
5181
 
5182
+ /* */
 
 
 
 
5183
 
 
 
 
 
 
5184
 
 
 
 
 
5185
 
5186
+ function getComponentName (opts) {
5187
+ return opts && (opts.Ctor.options.name || opts.tag)
 
5188
  }
 
 
5189
 
5190
+ function matches (pattern, name) {
5191
+ if (Array.isArray(pattern)) {
5192
+ return pattern.indexOf(name) > -1
5193
+ } else if (typeof pattern === 'string') {
5194
+ return pattern.split(',').indexOf(name) > -1
5195
+ } else if (isRegExp(pattern)) {
5196
+ return pattern.test(name)
 
 
 
 
 
 
5197
  }
5198
+ /* istanbul ignore next */
5199
+ return false
5200
  }
 
5201
 
5202
+ function pruneCache (keepAliveInstance, filter) {
5203
+ var cache = keepAliveInstance.cache;
5204
+ var keys = keepAliveInstance.keys;
5205
+ var _vnode = keepAliveInstance._vnode;
5206
+ for (var key in cache) {
5207
+ var cachedNode = cache[key];
5208
+ if (cachedNode) {
5209
+ var name = getComponentName(cachedNode.componentOptions);
5210
+ if (name && !filter(name)) {
5211
+ pruneCacheEntry(cache, key, keys, _vnode);
5212
+ }
5213
+ }
5214
  }
5215
  }
5216
+
5217
+ function pruneCacheEntry (
5218
+ cache,
5219
+ key,
5220
+ keys,
5221
+ current
5222
+ ) {
5223
+ var cached$$1 = cache[key];
5224
+ if (cached$$1 && (!current || cached$$1.tag !== current.tag)) {
5225
+ cached$$1.componentInstance.$destroy();
5226
  }
5227
+ cache[key] = null;
5228
+ remove(keys, key);
5229
  }
 
5230
 
5231
+ var patternTypes = [String, RegExp, Array];
5232
+
5233
+ var KeepAlive = {
5234
+ name: 'keep-alive',
5235
+ abstract: true,
5236
+
5237
+ props: {
5238
+ include: patternTypes,
5239
+ exclude: patternTypes,
5240
+ max: [String, Number]
5241
+ },
5242
+
5243
+ created: function created () {
5244
+ this.cache = Object.create(null);
5245
+ this.keys = [];
5246
+ },
5247
+
5248
+ destroyed: function destroyed () {
5249
+ for (var key in this.cache) {
5250
+ pruneCacheEntry(this.cache, key, this.keys);
5251
  }
5252
+ },
5253
+
5254
+ mounted: function mounted () {
5255
+ var this$1 = this;
5256
+
5257
+ this.$watch('include', function (val) {
5258
+ pruneCache(this$1, function (name) { return matches(val, name); });
5259
+ });
5260
+ this.$watch('exclude', function (val) {
5261
+ pruneCache(this$1, function (name) { return !matches(val, name); });
5262
+ });
5263
+ },
5264
 
5265
+ render: function render () {
5266
+ var slot = this.$slots.default;
5267
+ var vnode = getFirstComponentChild(slot);
5268
+ var componentOptions = vnode && vnode.componentOptions;
5269
+ if (componentOptions) {
5270
+ // check pattern
5271
+ var name = getComponentName(componentOptions);
5272
+ var ref = this;
5273
+ var include = ref.include;
5274
+ var exclude = ref.exclude;
5275
+ if (
5276
+ // not included
5277
+ (include && (!name || !matches(include, name))) ||
5278
+ // excluded
5279
+ (exclude && name && matches(exclude, name))
5280
+ ) {
5281
+ return vnode
5282
+ }
5283
 
5284
+ var ref$1 = this;
5285
+ var cache = ref$1.cache;
5286
+ var keys = ref$1.keys;
5287
+ var key = vnode.key == null
5288
+ // same constructor may get registered as different local components
5289
+ // so cid alone is not enough (#3269)
5290
+ ? componentOptions.Ctor.cid + (componentOptions.tag ? ("::" + (componentOptions.tag)) : '')
5291
+ : vnode.key;
5292
+ if (cache[key]) {
5293
+ vnode.componentInstance = cache[key].componentInstance;
5294
+ // make current key freshest
5295
+ remove(keys, key);
5296
+ keys.push(key);
5297
+ } else {
5298
+ cache[key] = vnode;
5299
+ keys.push(key);
5300
+ // prune oldest entry
5301
+ if (this.max && keys.length > parseInt(this.max)) {
5302
+ pruneCacheEntry(cache, keys[0], keys, this._vnode);
5303
+ }
5304
+ }
5305
 
5306
+ vnode.data.keepAlive = true;
5307
+ }
5308
+ return vnode || (slot && slot[0])
5309
+ }
5310
+ };
5311
 
5312
+ var builtInComponents = {
5313
+ KeepAlive: KeepAlive
5314
+ };
 
 
 
 
5315
 
5316
+ /* */
 
 
 
 
 
 
 
 
 
 
5317
 
5318
+ function initGlobalAPI (Vue) {
5319
+ // config
5320
+ var configDef = {};
5321
+ configDef.get = function () { return config; };
5322
+ {
5323
+ configDef.set = function () {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5324
  warn(
5325
+ 'Do not replace the Vue.config object, set individual fields instead.'
 
 
 
 
 
5326
  );
5327
+ };
 
5328
  }
5329
+ Object.defineProperty(Vue, 'config', configDef);
5330
+
5331
+ // exposed util methods.
5332
+ // NOTE: these are not considered part of the public API - avoid relying on
5333
+ // them unless you are aware of the risk.
5334
+ Vue.util = {
5335
+ warn: warn,
5336
+ extend: extend,
5337
+ mergeOptions: mergeOptions,
5338
+ defineReactive: defineReactive$$1
5339
+ };
5340
 
5341
+ Vue.set = set;
5342
+ Vue.delete = del;
5343
+ Vue.nextTick = nextTick;
5344
 
5345
+ // 2.6 explicit observable API
5346
+ Vue.observable = function (obj) {
5347
+ observe(obj);
5348
+ return obj
5349
+ };
5350
 
5351
+ Vue.options = Object.create(null);
5352
+ ASSET_TYPES.forEach(function (type) {
5353
+ Vue.options[type + 's'] = Object.create(null);
5354
+ });
5355
 
5356
+ // this is used to identify the "base" constructor to extend all plain-object
5357
+ // components with in Weex's multi-instance scenarios.
5358
+ Vue.options._base = Vue;
 
 
 
5359
 
5360
+ extend(Vue.options.components, builtInComponents);
 
 
 
 
 
 
 
 
 
5361
 
5362
+ initUse(Vue);
5363
+ initMixin$1(Vue);
5364
+ initExtend(Vue);
5365
+ initAssetRegisters(Vue);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5366
  }
 
5367
 
5368
+ initGlobalAPI(Vue);
5369
 
5370
+ Object.defineProperty(Vue.prototype, '$isServer', {
5371
+ get: isServerRendering
5372
+ });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5373
 
5374
+ Object.defineProperty(Vue.prototype, '$ssrContext', {
5375
+ get: function get () {
5376
+ /* istanbul ignore next */
5377
+ return this.$vnode && this.$vnode.ssrContext
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5378
  }
5379
+ });
 
 
 
 
5380
 
5381
+ // expose FunctionalRenderContext for ssr runtime helper installation
5382
+ Object.defineProperty(Vue, 'FunctionalRenderContext', {
5383
+ value: FunctionalRenderContext
5384
+ });
 
 
 
 
 
 
 
 
 
5385
 
5386
+ Vue.version = '2.6.6';
 
 
 
 
5387
 
5388
+ /* */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5389
 
5390
+ // these are reserved for web because they are directly compiled away
5391
+ // during template compilation
5392
+ var isReservedAttr = makeMap('style,class');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5393
 
5394
+ // attributes that should be using props for binding
5395
+ var acceptValue = makeMap('input,textarea,option,select,progress');
5396
+ var mustUseProp = function (tag, type, attr) {
5397
+ return (
5398
+ (attr === 'value' && acceptValue(tag)) && type !== 'button' ||
5399
+ (attr === 'selected' && tag === 'option') ||
5400
+ (attr === 'checked' && tag === 'input') ||
5401
+ (attr === 'muted' && tag === 'video')
5402
+ )
5403
+ };
5404
 
5405
+ var isEnumeratedAttr = makeMap('contenteditable,draggable,spellcheck');
 
 
 
 
5406
 
5407
+ var isValidContentEditableValue = makeMap('events,caret,typing,plaintext-only');
 
 
 
 
5408
 
5409
+ var convertEnumeratedValue = function (key, value) {
5410
+ return isFalsyAttrValue(value) || value === 'false'
5411
+ ? 'false'
5412
+ // allow arbitrary string value for contenteditable
5413
+ : key === 'contenteditable' && isValidContentEditableValue(value)
5414
+ ? value
5415
+ : 'true'
5416
+ };
5417
 
5418
+ var isBooleanAttr = makeMap(
5419
+ 'allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,' +
5420
+ 'default,defaultchecked,defaultmuted,defaultselected,defer,disabled,' +
5421
+ 'enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,' +
5422
+ 'muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,' +
5423
+ 'required,reversed,scoped,seamless,selected,sortable,translate,' +
5424
+ 'truespeed,typemustmatch,visible'
5425
+ );
 
 
 
 
 
 
5426
 
5427
+ var xlinkNS = 'http://www.w3.org/1999/xlink';
5428
 
5429
+ var isXlink = function (name) {
5430
+ return name.charAt(5) === ':' && name.slice(0, 5) === 'xlink'
5431
+ };
 
 
 
5432
 
5433
+ var getXlinkProp = function (name) {
5434
+ return isXlink(name) ? name.slice(6, name.length) : ''
 
5435
  };
5436
+
5437
+ var isFalsyAttrValue = function (val) {
5438
+ return val == null || val === false
5439
  };
5440
+
5441
+ /* */
5442
+
5443
+ function genClassForVnode (vnode) {
5444
+ var data = vnode.data;
5445
+ var parentNode = vnode;
5446
+ var childNode = vnode;
5447
+ while (isDef(childNode.componentInstance)) {
5448
+ childNode = childNode.componentInstance._vnode;
5449
+ if (childNode && childNode.data) {
5450
+ data = mergeClassData(childNode.data, data);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5451
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5452
  }
5453
+ while (isDef(parentNode = parentNode.parent)) {
5454
+ if (parentNode && parentNode.data) {
5455
+ data = mergeClassData(data, parentNode.data);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5456
  }
5457
  }
5458
+ return renderClass(data.staticClass, data.class)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5459
  }
 
 
 
 
 
 
 
 
 
5460
 
5461
+ function mergeClassData (child, parent) {
5462
+ return {
5463
+ staticClass: concat(child.staticClass, parent.staticClass),
5464
+ class: isDef(child.class)
5465
+ ? [child.class, parent.class]
5466
+ : parent.class
 
 
5467
  }
5468
+ }
5469
 
5470
+ function renderClass (
5471
+ staticClass,
5472
+ dynamicClass
5473
+ ) {
5474
+ if (isDef(staticClass) || isDef(dynamicClass)) {
5475
+ return concat(staticClass, stringifyClass(dynamicClass))
 
 
5476
  }
5477
+ /* istanbul ignore next */
5478
+ return ''
5479
+ }
5480
 
5481
+ function concat (a, b) {
5482
+ return a ? b ? (a + ' ' + b) : a : (b || '')
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5483
  }
 
 
5484
 
5485
+ function stringifyClass (value) {
5486
+ if (Array.isArray(value)) {
5487
+ return stringifyArray(value)
5488
+ }
5489
+ if (isObject(value)) {
5490
+ return stringifyObject(value)
5491
+ }
5492
+ if (typeof value === 'string') {
5493
+ return value
 
 
5494
  }
5495
+ /* istanbul ignore next */
5496
+ return ''
5497
  }
 
5498
 
5499
+ function stringifyArray (value) {
5500
+ var res = '';
5501
+ var stringified;
5502
+ for (var i = 0, l = value.length; i < l; i++) {
5503
+ if (isDef(stringified = stringifyClass(value[i])) && stringified !== '') {
5504
+ if (res) { res += ' '; }
5505
+ res += stringified;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5506
  }
5507
  }
5508
+ return res
5509
  }
 
5510
 
5511
+ function stringifyObject (value) {
5512
+ var res = '';
5513
+ for (var key in value) {
5514
+ if (value[key]) {
5515
+ if (res) { res += ' '; }
5516
+ res += key;
5517
  }
5518
+ }
5519
+ return res
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5520
  }
 
 
5521
 
5522
+ /* */
 
5523
 
5524
+ var namespaceMap = {
5525
+ svg: 'http://www.w3.org/2000/svg',
5526
+ math: 'http://www.w3.org/1998/Math/MathML'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5527
  };
 
5528
 
5529
+ var isHTMLTag = makeMap(
5530
+ 'html,body,base,head,link,meta,style,title,' +
5531
+ 'address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,' +
5532
+ 'div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,' +
5533
+ 'a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,' +
5534
+ 's,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,' +
5535
+ 'embed,object,param,source,canvas,script,noscript,del,ins,' +
5536
+ 'caption,col,colgroup,table,thead,tbody,td,th,tr,' +
5537
+ 'button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,' +
5538
+ 'output,progress,select,textarea,' +
5539
+ 'details,dialog,menu,menuitem,summary,' +
5540
+ 'content,element,shadow,template,blockquote,iframe,tfoot'
5541
+ );
5542
 
5543
+ // this map is intentionally selective, only covering SVG elements that may
5544
+ // contain child elements.
5545
+ var isSVG = makeMap(
5546
+ 'svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,' +
5547
+ 'foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,' +
5548
+ 'polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view',
5549
+ true
5550
+ );
5551
 
5552
+ var isPreTag = function (tag) { return tag === 'pre'; };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5553
 
5554
+ var isReservedTag = function (tag) {
5555
+ return isHTMLTag(tag) || isSVG(tag)
5556
+ };
 
 
 
 
 
 
 
5557
 
5558
+ function getTagNamespace (tag) {
5559
+ if (isSVG(tag)) {
5560
+ return 'svg'
5561
+ }
5562
+ // basic support for MathML
5563
+ // note it doesn't support other MathML elements being component roots
5564
+ if (tag === 'math') {
5565
+ return 'math'
 
 
 
 
 
 
 
 
 
 
 
 
 
5566
  }
 
5567
  }
 
 
 
5568
 
5569
+ var unknownElementCache = Object.create(null);
5570
+ function isUnknownElement (tag) {
5571
+ /* istanbul ignore if */
5572
+ if (!inBrowser) {
5573
+ return true
5574
+ }
5575
+ if (isReservedTag(tag)) {
5576
+ return false
5577
+ }
5578
+ tag = tag.toLowerCase();
5579
+ /* istanbul ignore if */
5580
+ if (unknownElementCache[tag] != null) {
5581
+ return unknownElementCache[tag]
5582
+ }
5583
+ var el = document.createElement(tag);
5584
+ if (tag.indexOf('-') > -1) {
5585
+ // http://stackoverflow.com/a/28210364/1070244
5586
+ return (unknownElementCache[tag] = (
5587
+ el.constructor === window.HTMLUnknownElement ||
5588
+ el.constructor === window.HTMLElement
5589
+ ))
5590
+ } else {
5591
+ return (unknownElementCache[tag] = /HTMLUnknownElement/.test(el.toString()))
 
5592
  }
5593
  }
 
 
 
 
 
5594
 
5595
+ var isTextInputType = makeMap('text,number,password,search,email,tel,url');
5596
 
5597
+ /* */
5598
+
5599
+ /**
5600
+ * Query an element selector if it's not an element already.
5601
+ */
5602
+ function query (el) {
5603
+ if (typeof el === 'string') {
5604
+ var selected = document.querySelector(el);
5605
+ if (!selected) {
 
 
 
 
 
 
5606
  warn(
5607
+ 'Cannot find element: ' + el
 
5608
  );
5609
+ return document.createElement('div')
5610
  }
5611
+ return selected
5612
+ } else {
5613
+ return el
5614
  }
5615
+ }
5616
+
5617
+ /* */
5618
+
5619
+ function createElement$1 (tagName, vnode) {
5620
+ var elm = document.createElement(tagName);
5621
+ if (tagName !== 'select') {
5622
+ return elm
5623
+ }
5624
+ // false or null will remove the attribute but undefined will not
5625
+ if (vnode.data && vnode.data.attrs && vnode.data.attrs.multiple !== undefined) {
5626
+ elm.setAttribute('multiple', 'multiple');
 
5627
  }
5628
+ return elm
5629
  }
5630
 
5631
+ function createElementNS (namespace, tagName) {
5632
+ return document.createElementNS(namespaceMap[namespace], tagName)
 
 
 
5633
  }
 
5634
 
5635
+ function createTextNode (text) {
5636
+ return document.createTextNode(text)
5637
+ }
5638
 
5639
+ function createComment (text) {
5640
+ return document.createComment(text)
5641
+ }
 
 
 
5642
 
5643
+ function insertBefore (parentNode, newNode, referenceNode) {
5644
+ parentNode.insertBefore(newNode, referenceNode);
5645
+ }
5646
 
5647
+ function removeChild (node, child) {
5648
+ node.removeChild(child);
 
 
 
5649
  }
 
5650
 
5651
+ function appendChild (node, child) {
5652
+ node.appendChild(child);
5653
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5654
 
5655
+ function parentNode (node) {
5656
+ return node.parentNode
5657
  }
 
 
5658
 
5659
+ function nextSibling (node) {
5660
+ return node.nextSibling
5661
+ }
5662
 
5663
+ function tagName (node) {
5664
+ return node.tagName
 
 
 
 
 
 
 
 
 
 
 
5665
  }
 
 
 
 
 
 
 
 
 
5666
 
5667
+ function setTextContent (node, text) {
5668
+ node.textContent = text;
5669
+ }
5670
+
5671
+ function setStyleScope (node, scopeId) {
5672
+ node.setAttribute(scopeId, '');
5673
+ }
5674
+
5675
+ var nodeOps = /*#__PURE__*/Object.freeze({
5676
+ createElement: createElement$1,
5677
+ createElementNS: createElementNS,
5678
+ createTextNode: createTextNode,
5679
+ createComment: createComment,
5680
+ insertBefore: insertBefore,
5681
+ removeChild: removeChild,
5682
+ appendChild: appendChild,
5683
+ parentNode: parentNode,
5684
+ nextSibling: nextSibling,
5685
+ tagName: tagName,
5686
+ setTextContent: setTextContent,
5687
+ setStyleScope: setStyleScope
5688
+ });
5689
+
5690
+ /* */
5691
+
5692
+ var ref = {
5693
+ create: function create (_, vnode) {
5694
+ registerRef(vnode);
5695
+ },
5696
+ update: function update (oldVnode, vnode) {
5697
+ if (oldVnode.data.ref !== vnode.data.ref) {
5698
+ registerRef(oldVnode, true);
5699
+ registerRef(vnode);
5700
  }
5701
+ },
5702
+ destroy: function destroy (vnode) {
5703
+ registerRef(vnode, true);
5704
  }
5705
+ };
 
 
 
 
 
 
 
 
 
5706
 
5707
+ function registerRef (vnode, isRemoval) {
5708
+ var key = vnode.data.ref;
5709
+ if (!isDef(key)) { return }
5710
 
5711
+ var vm = vnode.context;
5712
+ var ref = vnode.componentInstance || vnode.elm;
5713
+ var refs = vm.$refs;
5714
+ if (isRemoval) {
5715
+ if (Array.isArray(refs[key])) {
5716
+ remove(refs[key], ref);
5717
+ } else if (refs[key] === ref) {
5718
+ refs[key] = undefined;
5719
+ }
5720
  } else {
5721
+ if (vnode.data.refInFor) {
5722
+ if (!Array.isArray(refs[key])) {
5723
+ refs[key] = [ref];
5724
+ } else if (refs[key].indexOf(ref) < 0) {
5725
+ // $flow-disable-line
5726
+ refs[key].push(ref);
5727
+ }
5728
+ } else {
5729
+ refs[key] = ref;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5730
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5731
  }
 
 
 
5732
  }
5733
 
5734
+ /**
5735
+ * Virtual DOM patching algorithm based on Snabbdom by
5736
+ * Simon Friis Vindum (@paldepind)
5737
+ * Licensed under the MIT License
5738
+ * https://github.com/paldepind/snabbdom/blob/master/LICENSE
5739
+ *
5740
+ * modified by Evan You (@yyx990803)
5741
+ *
5742
+ * Not type-checking this because this file is perf-critical and the cost
5743
+ * of making flow understand it is not worth it.
5744
+ */
5745
 
5746
+ var emptyNode = new VNode('', {}, []);
5747
 
5748
+ var hooks = ['create', 'activate', 'update', 'remove', 'destroy'];
5749
+
5750
+ function sameVnode (a, b) {
5751
+ return (
5752
+ a.key === b.key && (
5753
+ (
5754
+ a.tag === b.tag &&
5755
+ a.isComment === b.isComment &&
5756
+ isDef(a.data) === isDef(b.data) &&
5757
+ sameInputType(a, b)
5758
+ ) || (
5759
+ isTrue(a.isAsyncPlaceholder) &&
5760
+ a.asyncFactory === b.asyncFactory &&
5761
+ isUndef(b.asyncFactory.error)
5762
+ )
5763
+ )
5764
+ )
5765
  }
 
5766
 
5767
+ function sameInputType (a, b) {
5768
+ if (a.tag !== 'input') { return true }
5769
+ var i;
5770
+ var typeA = isDef(i = a.data) && isDef(i = i.attrs) && i.type;
5771
+ var typeB = isDef(i = b.data) && isDef(i = i.attrs) && i.type;
5772
+ return typeA === typeB || isTextInputType(typeA) && isTextInputType(typeB)
 
 
 
5773
  }
 
 
5774
 
5775
+ function createKeyToOldIdx (children, beginIdx, endIdx) {
5776
+ var i, key;
5777
+ var map = {};
5778
+ for (i = beginIdx; i <= endIdx; ++i) {
5779
+ key = children[i].key;
5780
+ if (isDef(key)) { map[key] = i; }
5781
+ }
5782
+ return map
5783
  }
 
5784
 
5785
+ function createPatchFunction (backend) {
5786
+ var i, j;
5787
+ var cbs = {};
5788
 
5789
+ var modules = backend.modules;
5790
+ var nodeOps = backend.nodeOps;
5791
 
5792
+ for (i = 0; i < hooks.length; ++i) {
5793
+ cbs[hooks[i]] = [];
5794
+ for (j = 0; j < modules.length; ++j) {
5795
+ if (isDef(modules[j][hooks[i]])) {
5796
+ cbs[hooks[i]].push(modules[j][hooks[i]]);
5797
+ }
5798
+ }
5799
+ }
5800
 
5801
+ function emptyNodeAt (elm) {
5802
+ return new VNode(nodeOps.tagName(elm).toLowerCase(), {}, [], undefined, elm)
5803
+ }
5804
 
5805
+ function createRmCb (childElm, listeners) {
5806
+ function remove$$1 () {
5807
+ if (--remove$$1.listeners === 0) {
5808
+ removeNode(childElm);
5809
+ }
5810
+ }
5811
+ remove$$1.listeners = listeners;
5812
+ return remove$$1
5813
+ }
5814
 
5815
+ function removeNode (el) {
5816
+ var parent = nodeOps.parentNode(el);
5817
+ // element may have already been removed due to v-html / v-text
5818
+ if (isDef(parent)) {
5819
+ nodeOps.removeChild(parent, el);
5820
+ }
5821
+ }
5822
 
5823
+ function isUnknownElement$$1 (vnode, inVPre) {
5824
+ return (
5825
+ !inVPre &&
5826
+ !vnode.ns &&
5827
+ !(
5828
+ config.ignoredElements.length &&
5829
+ config.ignoredElements.some(function (ignore) {
5830
+ return isRegExp(ignore)
5831
+ ? ignore.test(vnode.tag)
5832
+ : ignore === vnode.tag
5833
+ })
5834
+ ) &&
5835
+ config.isUnknownElement(vnode.tag)
5836
+ )
5837
+ }
5838
 
5839
+ var creatingElmInVPre = 0;
5840
 
5841
+ function createElm (
5842
+ vnode,
5843
+ insertedVnodeQueue,
5844
+ parentElm,
5845
+ refElm,
5846
+ nested,
5847
+ ownerArray,
5848
+ index
5849
+ ) {
5850
+ if (isDef(vnode.elm) && isDef(ownerArray)) {
5851
+ // This vnode was used in a previous render!
5852
+ // now it's used as a new node, overwriting its elm would cause
5853
+ // potential patch errors down the road when it's used as an insertion
5854
+ // reference node. Instead, we clone the node on-demand before creating
5855
+ // associated DOM element for it.
5856
+ vnode = ownerArray[index] = cloneVNode(vnode);
5857
+ }
5858
 
5859
+ vnode.isRootInsert = !nested; // for transition enter check
5860
+ if (createComponent(vnode, insertedVnodeQueue, parentElm, refElm)) {
5861
+ return
5862
+ }
5863
 
5864
+ var data = vnode.data;
5865
+ var children = vnode.children;
5866
+ var tag = vnode.tag;
5867
+ if (isDef(tag)) {
5868
+ {
5869
+ if (data && data.pre) {
5870
+ creatingElmInVPre++;
5871
+ }
5872
+ if (isUnknownElement$$1(vnode, creatingElmInVPre)) {
5873
+ warn(
5874
+ 'Unknown custom element: <' + tag + '> - did you ' +
5875
+ 'register the component correctly? For recursive components, ' +
5876
+ 'make sure to provide the "name" option.',
5877
+ vnode.context
5878
+ );
5879
+ }
5880
+ }
5881
 
5882
+ vnode.elm = vnode.ns
5883
+ ? nodeOps.createElementNS(vnode.ns, tag)
5884
+ : nodeOps.createElement(tag, vnode);
5885
+ setScope(vnode);
5886
 
5887
+ /* istanbul ignore if */
5888
+ {
5889
+ createChildren(vnode, children, insertedVnodeQueue);
5890
+ if (isDef(data)) {
5891
+ invokeCreateHooks(vnode, insertedVnodeQueue);
5892
+ }
5893
+ insert(parentElm, vnode.elm, refElm);
5894
+ }
5895
+
5896
+ if (data && data.pre) {
5897
+ creatingElmInVPre--;
5898
+ }
5899
+ } else if (isTrue(vnode.isComment)) {
5900
+ vnode.elm = nodeOps.createComment(vnode.text);
5901
+ insert(parentElm, vnode.elm, refElm);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5902
  } else {
5903
+ vnode.elm = nodeOps.createTextNode(vnode.text);
5904
+ insert(parentElm, vnode.elm, refElm);
5905
+ }
5906
+ }
5907
+
5908
+ function createComponent (vnode, insertedVnodeQueue, parentElm, refElm) {
5909
+ var i = vnode.data;
5910
+ if (isDef(i)) {
5911
+ var isReactivated = isDef(vnode.componentInstance) && i.keepAlive;
5912
+ if (isDef(i = i.hook) && isDef(i = i.init)) {
5913
+ i(vnode, false /* hydrating */);
5914
+ }
5915
+ // after calling the init hook, if the vnode is a child component
5916
+ // it should've created a child instance and mounted it. the child
5917
+ // component also has set the placeholder vnode's elm.
5918
+ // in that case we can just return the element and be done.
5919
+ if (isDef(vnode.componentInstance)) {
5920
+ initComponent(vnode, insertedVnodeQueue);
5921
+ insert(parentElm, vnode.elm, refElm);
5922
+ if (isTrue(isReactivated)) {
5923
+ reactivateComponent(vnode, insertedVnodeQueue, parentElm, refElm);
5924
+ }
5925
+ return true
5926
+ }
5927
  }
5928
  }
 
5929
 
5930
+ function initComponent (vnode, insertedVnodeQueue) {
5931
+ if (isDef(vnode.data.pendingInsert)) {
5932
+ insertedVnodeQueue.push.apply(insertedVnodeQueue, vnode.data.pendingInsert);
5933
+ vnode.data.pendingInsert = null;
5934
+ }
5935
+ vnode.elm = vnode.componentInstance.$el;
5936
+ if (isPatchable(vnode)) {
5937
+ invokeCreateHooks(vnode, insertedVnodeQueue);
5938
+ setScope(vnode);
5939
  } else {
5940
+ // empty component root.
5941
+ // skip all element-related modules except for ref (#3455)
5942
+ registerRef(vnode);
5943
+ // make sure to invoke the insert hook
5944
+ insertedVnodeQueue.push(vnode);
5945
  }
5946
  }
 
 
5947
 
5948
+ function reactivateComponent (vnode, insertedVnodeQueue, parentElm, refElm) {
5949
+ var i;
5950
+ // hack for #4339: a reactivated component with inner transition
5951
+ // does not trigger because the inner node's created hooks are not called
5952
+ // again. It's not ideal to involve module-specific logic in here but
5953
+ // there doesn't seem to be a better way to do it.
5954
+ var innerNode = vnode;
5955
+ while (innerNode.componentInstance) {
5956
+ innerNode = innerNode.componentInstance._vnode;
5957
+ if (isDef(i = innerNode.data) && isDef(i = i.transition)) {
5958
+ for (i = 0; i < cbs.activate.length; ++i) {
5959
+ cbs.activate[i](emptyNode, innerNode);
5960
+ }
5961
+ insertedVnodeQueue.push(innerNode);
5962
+ break
5963
+ }
5964
+ }
5965
+ // unlike a newly created component,
5966
+ // a reactivated keep-alive component doesn't insert itself
5967
+ insert(parentElm, vnode.elm, refElm);
5968
+ }
5969
 
5970
+ function insert (parent, elm, ref$$1) {
5971
+ if (isDef(parent)) {
5972
+ if (isDef(ref$$1)) {
5973
+ if (nodeOps.parentNode(ref$$1) === parent) {
5974
+ nodeOps.insertBefore(parent, elm, ref$$1);
5975
+ }
5976
+ } else {
5977
+ nodeOps.appendChild(parent, elm);
5978
+ }
5979
+ }
5980
+ }
5981
 
5982
+ function createChildren (vnode, children, insertedVnodeQueue) {
5983
+ if (Array.isArray(children)) {
5984
+ {
5985
+ checkDuplicateKeys(children);
5986
+ }
5987
+ for (var i = 0; i < children.length; ++i) {
5988
+ createElm(children[i], insertedVnodeQueue, vnode.elm, null, true, children, i);
5989
+ }
5990
+ } else if (isPrimitive(vnode.text)) {
5991
+ nodeOps.appendChild(vnode.elm, nodeOps.createTextNode(String(vnode.text)));
5992
+ }
5993
+ }
5994
 
5995
+ function isPatchable (vnode) {
5996
+ while (vnode.componentInstance) {
5997
+ vnode = vnode.componentInstance._vnode;
5998
+ }
5999
+ return isDef(vnode.tag)
6000
+ }
6001
 
6002
+ function invokeCreateHooks (vnode, insertedVnodeQueue) {
6003
+ for (var i$1 = 0; i$1 < cbs.create.length; ++i$1) {
6004
+ cbs.create[i$1](emptyNode, vnode);
6005
+ }
6006
+ i = vnode.data.hook; // Reuse variable
6007
+ if (isDef(i)) {
6008
+ if (isDef(i.create)) { i.create(emptyNode, vnode); }
6009
+ if (isDef(i.insert)) { insertedVnodeQueue.push(vnode); }
6010
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6011
  }
 
6012
 
6013
+ // set scope id attribute for scoped CSS.
6014
+ // this is implemented as a special case to avoid the overhead
6015
+ // of going through the normal attribute patching process.
6016
+ function setScope (vnode) {
6017
+ var i;
6018
+ if (isDef(i = vnode.fnScopeId)) {
6019
+ nodeOps.setStyleScope(vnode.elm, i);
6020
+ } else {
6021
+ var ancestor = vnode;
6022
+ while (ancestor) {
6023
+ if (isDef(i = ancestor.context) && isDef(i = i.$options._scopeId)) {
6024
+ nodeOps.setStyleScope(vnode.elm, i);
6025
+ }
6026
+ ancestor = ancestor.parent;
6027
+ }
6028
+ }
6029
+ // for slot content they should also get the scopeId from the host instance.
6030
+ if (isDef(i = activeInstance) &&
6031
+ i !== vnode.context &&
6032
+ i !== vnode.fnContext &&
6033
+ isDef(i = i.$options._scopeId)
6034
+ ) {
6035
+ nodeOps.setStyleScope(vnode.elm, i);
6036
+ }
6037
+ }
6038
 
6039
+ function addVnodes (parentElm, refElm, vnodes, startIdx, endIdx, insertedVnodeQueue) {
6040
+ for (; startIdx <= endIdx; ++startIdx) {
6041
+ createElm(vnodes[startIdx], insertedVnodeQueue, parentElm, refElm, false, vnodes, startIdx);
6042
+ }
6043
+ }
6044
 
6045
+ function invokeDestroyHook (vnode) {
6046
+ var i, j;
6047
+ var data = vnode.data;
6048
+ if (isDef(data)) {
6049
+ if (isDef(i = data.hook) && isDef(i = i.destroy)) { i(vnode); }
6050
+ for (i = 0; i < cbs.destroy.length; ++i) { cbs.destroy[i](vnode); }
6051
+ }
6052
+ if (isDef(i = vnode.children)) {
6053
+ for (j = 0; j < vnode.children.length; ++j) {
6054
+ invokeDestroyHook(vnode.children[j]);
6055
+ }
6056
+ }
6057
+ }
6058
 
6059
+ function removeVnodes (parentElm, vnodes, startIdx, endIdx) {
6060
+ for (; startIdx <= endIdx; ++startIdx) {
6061
+ var ch = vnodes[startIdx];
6062
+ if (isDef(ch)) {
6063
+ if (isDef(ch.tag)) {
6064
+ removeAndInvokeRemoveHook(ch);
6065
+ invokeDestroyHook(ch);
6066
+ } else { // Text node
6067
+ removeNode(ch.elm);
6068
+ }
6069
+ }
6070
+ }
6071
+ }
6072
 
6073
+ function removeAndInvokeRemoveHook (vnode, rm) {
6074
+ if (isDef(rm) || isDef(vnode.data)) {
6075
+ var i;
6076
+ var listeners = cbs.remove.length + 1;
6077
+ if (isDef(rm)) {
6078
+ // we have a recursively passed down rm callback
6079
+ // increase the listeners count
6080
+ rm.listeners += listeners;
6081
+ } else {
6082
+ // directly removing
6083
+ rm = createRmCb(vnode.elm, listeners);
6084
+ }
6085
+ // recursively invoke hooks on child component root node
6086
+ if (isDef(i = vnode.componentInstance) && isDef(i = i._vnode) && isDef(i.data)) {
6087
+ removeAndInvokeRemoveHook(i, rm);
6088
+ }
6089
+ for (i = 0; i < cbs.remove.length; ++i) {
6090
+ cbs.remove[i](vnode, rm);
6091
+ }
6092
+ if (isDef(i = vnode.data.hook) && isDef(i = i.remove)) {
6093
+ i(vnode, rm);
6094
+ } else {
6095
+ rm();
6096
+ }
6097
+ } else {
6098
+ removeNode(vnode.elm);
6099
+ }
6100
+ }
6101
 
6102
+ function updateChildren (parentElm, oldCh, newCh, insertedVnodeQueue, removeOnly) {
6103
+ var oldStartIdx = 0;
6104
+ var newStartIdx = 0;
6105
+ var oldEndIdx = oldCh.length - 1;
6106
+ var oldStartVnode = oldCh[0];
6107
+ var oldEndVnode = oldCh[oldEndIdx];
6108
+ var newEndIdx = newCh.length - 1;
6109
+ var newStartVnode = newCh[0];
6110
+ var newEndVnode = newCh[newEndIdx];
6111
+ var oldKeyToIdx, idxInOld, vnodeToMove, refElm;
6112
 
6113
+ // removeOnly is a special flag used only by <transition-group>
6114
+ // to ensure removed elements stay in correct relative positions
6115
+ // during leaving transitions
6116
+ var canMove = !removeOnly;
6117
 
6118
+ {
6119
+ checkDuplicateKeys(newCh);
6120
+ }
6121
+
6122
+ while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
6123
+ if (isUndef(oldStartVnode)) {
6124
+ oldStartVnode = oldCh[++oldStartIdx]; // Vnode has been moved left
6125
+ } else if (isUndef(oldEndVnode)) {
6126
+ oldEndVnode = oldCh[--oldEndIdx];
6127
+ } else if (sameVnode(oldStartVnode, newStartVnode)) {
6128
+ patchVnode(oldStartVnode, newStartVnode, insertedVnodeQueue, newCh, newStartIdx);
6129
+ oldStartVnode = oldCh[++oldStartIdx];
6130
+ newStartVnode = newCh[++newStartIdx];
6131
+ } else if (sameVnode(oldEndVnode, newEndVnode)) {
6132
+ patchVnode(oldEndVnode, newEndVnode, insertedVnodeQueue, newCh, newEndIdx);
6133
+ oldEndVnode = oldCh[--oldEndIdx];
6134
+ newEndVnode = newCh[--newEndIdx];
6135
+ } else if (sameVnode(oldStartVnode, newEndVnode)) { // Vnode moved right
6136
+ patchVnode(oldStartVnode, newEndVnode, insertedVnodeQueue, newCh, newEndIdx);
6137
+ canMove && nodeOps.insertBefore(parentElm, oldStartVnode.elm, nodeOps.nextSibling(oldEndVnode.elm));
6138
+ oldStartVnode = oldCh[++oldStartIdx];
6139
+ newEndVnode = newCh[--newEndIdx];
6140
+ } else if (sameVnode(oldEndVnode, newStartVnode)) { // Vnode moved left
6141
+ patchVnode(oldEndVnode, newStartVnode, insertedVnodeQueue, newCh, newStartIdx);
6142
+ canMove && nodeOps.insertBefore(parentElm, oldEndVnode.elm, oldStartVnode.elm);
6143
+ oldEndVnode = oldCh[--oldEndIdx];
6144
+ newStartVnode = newCh[++newStartIdx];
6145
+ } else {
6146
+ if (isUndef(oldKeyToIdx)) { oldKeyToIdx = createKeyToOldIdx(oldCh, oldStartIdx, oldEndIdx); }
6147
+ idxInOld = isDef(newStartVnode.key)
6148
+ ? oldKeyToIdx[newStartVnode.key]
6149
+ : findIdxInOld(newStartVnode, oldCh, oldStartIdx, oldEndIdx);
6150
+ if (isUndef(idxInOld)) { // New element
6151
+ createElm(newStartVnode, insertedVnodeQueue, parentElm, oldStartVnode.elm, false, newCh, newStartIdx);
6152
+ } else {
6153
+ vnodeToMove = oldCh[idxInOld];
6154
+ if (sameVnode(vnodeToMove, newStartVnode)) {
6155
+ patchVnode(vnodeToMove, newStartVnode, insertedVnodeQueue, newCh, newStartIdx);
6156
+ oldCh[idxInOld] = undefined;
6157
+ canMove && nodeOps.insertBefore(parentElm, vnodeToMove.elm, oldStartVnode.elm);
6158
+ } else {
6159
+ // same key but different element. treat as new element
6160
+ createElm(newStartVnode, insertedVnodeQueue, parentElm, oldStartVnode.elm, false, newCh, newStartIdx);
6161
+ }
6162
+ }
6163
+ newStartVnode = newCh[++newStartIdx];
6164
+ }
6165
+ }
6166
+ if (oldStartIdx > oldEndIdx) {
6167
+ refElm = isUndef(newCh[newEndIdx + 1]) ? null : newCh[newEndIdx + 1].elm;
6168
+ addVnodes(parentElm, refElm, newCh, newStartIdx, newEndIdx, insertedVnodeQueue);
6169
+ } else if (newStartIdx > newEndIdx) {
6170
+ removeVnodes(parentElm, oldCh, oldStartIdx, oldEndIdx);
6171
+ }
6172
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
6173
 
6174
+ function checkDuplicateKeys (children) {
6175
+ var seenKeys = {};
6176
+ for (var i = 0; i < children.length; i++) {
6177
+ var vnode = children[i];
6178
+ var key = vnode.key;
6179
+ if (isDef(key)) {
6180
+ if (seenKeys[key]) {
6181
+ warn(
6182
+ ("Duplicate keys detected: '" + key + "'. This may cause an update error."),
6183
+ vnode.context
6184
+ );
6185
+ } else {
6186
+ seenKeys[key] = true;
6187
+ }
6188
+ }
6189
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6190
  }
6191
+
6192
+ function findIdxInOld (node, oldCh, start, end) {
6193
+ for (var i = start; i < end; i++) {
6194
+ var c = oldCh[i];
6195
+ if (isDef(c) && sameVnode(node, c)) { return i }
6196
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6197
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6198
 
6199
+ function patchVnode (
6200
+ oldVnode,
6201
+ vnode,
6202
+ insertedVnodeQueue,
6203
+ ownerArray,
6204
+ index,
6205
+ removeOnly
6206
+ ) {
6207
+ if (oldVnode === vnode) {
6208
+ return
6209
+ }
6210
 
6211
+ if (isDef(vnode.elm) && isDef(ownerArray)) {
6212
+ // clone reused vnode
6213
+ vnode = ownerArray[index] = cloneVNode(vnode);
6214
+ }
6215
 
6216
+ var elm = vnode.elm = oldVnode.elm;
 
 
 
 
6217
 
6218
+ if (isTrue(oldVnode.isAsyncPlaceholder)) {
6219
+ if (isDef(vnode.asyncFactory.resolved)) {
6220
+ hydrate(oldVnode.elm, vnode, insertedVnodeQueue);
6221
+ } else {
6222
+ vnode.isAsyncPlaceholder = true;
6223
+ }
6224
+ return
6225
  }
 
6226
 
6227
+ // reuse element for static trees.
6228
+ // note we only do this if the vnode is cloned -
6229
+ // if the new node is not cloned it means the render functions have been
6230
+ // reset by the hot-reload-api and we need to do a proper re-render.
6231
+ if (isTrue(vnode.isStatic) &&
6232
+ isTrue(oldVnode.isStatic) &&
6233
+ vnode.key === oldVnode.key &&
6234
+ (isTrue(vnode.isCloned) || isTrue(vnode.isOnce))
6235
+ ) {
6236
+ vnode.componentInstance = oldVnode.componentInstance;
6237
+ return
6238
+ }
6239
 
6240
+ var i;
6241
+ var data = vnode.data;
6242
+ if (isDef(data) && isDef(i = data.hook) && isDef(i = i.prepatch)) {
6243
+ i(oldVnode, vnode);
6244
+ }
6245
+
6246
+ var oldCh = oldVnode.children;
6247
+ var ch = vnode.children;
6248
+ if (isDef(data) && isPatchable(vnode)) {
6249
+ for (i = 0; i < cbs.update.length; ++i) { cbs.update[i](oldVnode, vnode); }
6250
+ if (isDef(i = data.hook) && isDef(i = i.update)) { i(oldVnode, vnode); }
6251
+ }
6252
+ if (isUndef(vnode.text)) {
6253
+ if (isDef(oldCh) && isDef(ch)) {
6254
+ if (oldCh !== ch) { updateChildren(elm, oldCh, ch, insertedVnodeQueue, removeOnly); }
6255
+ } else if (isDef(ch)) {
6256
+ {
6257
+ checkDuplicateKeys(ch);
 
6258
  }
6259
+ if (isDef(oldVnode.text)) { nodeOps.setTextContent(elm, ''); }
6260
+ addVnodes(elm, null, ch, 0, ch.length - 1, insertedVnodeQueue);
6261
+ } else if (isDef(oldCh)) {
6262
+ removeVnodes(elm, oldCh, 0, oldCh.length - 1);
6263
+ } else if (isDef(oldVnode.text)) {
6264
+ nodeOps.setTextContent(elm, '');
6265
  }
6266
+ } else if (oldVnode.text !== vnode.text) {
6267
+ nodeOps.setTextContent(elm, vnode.text);
6268
  }
6269
+ if (isDef(data)) {
6270
+ if (isDef(i = data.hook) && isDef(i = i.postpatch)) { i(oldVnode, vnode); }
 
 
 
 
 
 
 
6271
  }
 
6272
  }
 
 
 
 
 
6273
 
6274
+ function invokeInsertHook (vnode, queue, initial) {
6275
+ // delay insert hooks for component root nodes, invoke them after the
6276
+ // element is really inserted
6277
+ if (isTrue(initial) && isDef(vnode.parent)) {
6278
+ vnode.parent.data.pendingInsert = queue;
6279
+ } else {
6280
+ for (var i = 0; i < queue.length; ++i) {
6281
+ queue[i].data.hook.insert(queue[i]);
6282
+ }
6283
+ }
6284
+ }
6285
 
6286
+ var hydrationBailed = false;
6287
+ // list of modules that can skip create hook during hydration because they
6288
+ // are already rendered on the client or has no need for initialization
6289
+ // Note: style is excluded because it relies on initial clone for future
6290
+ // deep updates (#7063).
6291
+ var isRenderedModule = makeMap('attrs,class,staticClass,staticStyle,key');
6292
 
6293
+ // Note: this is a browser-only function so we can assume elms are DOM nodes.
6294
+ function hydrate (elm, vnode, insertedVnodeQueue, inVPre) {
6295
+ var i;
6296
+ var tag = vnode.tag;
6297
+ var data = vnode.data;
6298
+ var children = vnode.children;
6299
+ inVPre = inVPre || (data && data.pre);
6300
+ vnode.elm = elm;
6301
 
6302
+ if (isTrue(vnode.isComment) && isDef(vnode.asyncFactory)) {
6303
+ vnode.isAsyncPlaceholder = true;
6304
+ return true
6305
+ }
6306
+ // assert node match
6307
+ {
6308
+ if (!assertNodeMatch(elm, vnode, inVPre)) {
6309
+ return false
6310
+ }
6311
+ }
6312
+ if (isDef(data)) {
6313
+ if (isDef(i = data.hook) && isDef(i = i.init)) { i(vnode, true /* hydrating */); }
6314
+ if (isDef(i = vnode.componentInstance)) {
6315
+ // child component. it should have hydrated its own tree.
6316
+ initComponent(vnode, insertedVnodeQueue);
6317
+ return true
6318
+ }
6319
+ }
6320
+ if (isDef(tag)) {
6321
+ if (isDef(children)) {
6322
+ // empty element, allow client to pick up and populate children
6323
+ if (!elm.hasChildNodes()) {
6324
+ createChildren(vnode, children, insertedVnodeQueue);
6325
+ } else {
6326
+ // v-html and domProps: innerHTML
6327
+ if (isDef(i = data) && isDef(i = i.domProps) && isDef(i = i.innerHTML)) {
6328
+ if (i !== elm.innerHTML) {
6329
+ /* istanbul ignore if */
6330
+ if (typeof console !== 'undefined' &&
6331
+ !hydrationBailed
6332
+ ) {
6333
+ hydrationBailed = true;
6334
+ console.warn('Parent: ', elm);
6335
+ console.warn('server innerHTML: ', i);
6336
+ console.warn('client innerHTML: ', elm.innerHTML);
6337
+ }
6338
+ return false
6339
+ }
6340
+ } else {
6341
+ // iterate and compare children lists
6342
+ var childrenMatch = true;
6343
+ var childNode = elm.firstChild;
6344
+ for (var i$1 = 0; i$1 < children.length; i$1++) {
6345
+ if (!childNode || !hydrate(childNode, children[i$1], insertedVnodeQueue, inVPre)) {
6346
+ childrenMatch = false;
6347
+ break
6348
+ }
6349
+ childNode = childNode.nextSibling;
6350
+ }
6351
+ // if childNode is not null, it means the actual childNodes list is
6352
+ // longer than the virtual children list.
6353
+ if (!childrenMatch || childNode) {
6354
+ /* istanbul ignore if */
6355
+ if (typeof console !== 'undefined' &&
6356
+ !hydrationBailed
6357
+ ) {
6358
+ hydrationBailed = true;
6359
+ console.warn('Parent: ', elm);
6360
+ console.warn('Mismatching childNodes vs. VNodes: ', elm.childNodes, children);
6361
+ }
6362
+ return false
6363
+ }
6364
+ }
6365
+ }
6366
+ }
6367
+ if (isDef(data)) {
6368
+ var fullInvoke = false;
6369
+ for (var key in data) {
6370
+ if (!isRenderedModule(key)) {
6371
+ fullInvoke = true;
6372
+ invokeCreateHooks(vnode, insertedVnodeQueue);
6373
+ break
6374
+ }
6375
+ }
6376
+ if (!fullInvoke && data['class']) {
6377
+ // ensure collecting deps for deep class bindings for future updates
6378
+ traverse(data['class']);
6379
+ }
6380
+ }
6381
+ } else if (elm.data !== vnode.text) {
6382
+ elm.data = vnode.text;
6383
+ }
6384
+ return true
6385
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6386
 
6387
+ function assertNodeMatch (node, vnode, inVPre) {
6388
+ if (isDef(vnode.tag)) {
6389
+ return vnode.tag.indexOf('vue-component') === 0 || (
6390
+ !isUnknownElement$$1(vnode, inVPre) &&
6391
+ vnode.tag.toLowerCase() === (node.tagName && node.tagName.toLowerCase())
6392
+ )
6393
+ } else {
6394
+ return node.nodeType === (vnode.isComment ? 8 : 3)
6395
+ }
6396
  }
6397
 
6398
+ return function patch (oldVnode, vnode, hydrating, removeOnly) {
6399
+ if (isUndef(vnode)) {
6400
+ if (isDef(oldVnode)) { invokeDestroyHook(oldVnode); }
6401
+ return
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6402
  }
 
 
 
 
 
 
6403
 
6404
+ var isInitialPatch = false;
6405
+ var insertedVnodeQueue = [];
 
 
 
 
 
 
6406
 
6407
+ if (isUndef(oldVnode)) {
6408
+ // empty mount (likely as component), create new root element
6409
+ isInitialPatch = true;
6410
+ createElm(vnode, insertedVnodeQueue);
6411
+ } else {
6412
+ var isRealElement = isDef(oldVnode.nodeType);
6413
+ if (!isRealElement && sameVnode(oldVnode, vnode)) {
6414
+ // patch existing root node
6415
+ patchVnode(oldVnode, vnode, insertedVnodeQueue, null, null, removeOnly);
6416
+ } else {
6417
+ if (isRealElement) {
6418
+ // mounting to a real element
6419
+ // check if this is server-rendered content and if we can perform
6420
+ // a successful hydration.
6421
+ if (oldVnode.nodeType === 1 && oldVnode.hasAttribute(SSR_ATTR)) {
6422
+ oldVnode.removeAttribute(SSR_ATTR);
6423
+ hydrating = true;
6424
+ }
6425
+ if (isTrue(hydrating)) {
6426
+ if (hydrate(oldVnode, vnode, insertedVnodeQueue)) {
6427
+ invokeInsertHook(vnode, insertedVnodeQueue, true);
6428
+ return oldVnode
6429
+ } else {
6430
+ warn(
6431
+ 'The client-side rendered virtual DOM tree is not matching ' +
6432
+ 'server-rendered content. This is likely caused by incorrect ' +
6433
+ 'HTML markup, for example nesting block-level elements inside ' +
6434
+ '<p>, or missing <tbody>. Bailing hydration and performing ' +
6435
+ 'full client-side render.'
6436
+ );
6437
+ }
6438
+ }
6439
+ // either not server-rendered, or hydration failed.
6440
+ // create an empty node and replace it
6441
+ oldVnode = emptyNodeAt(oldVnode);
6442
+ }
6443
 
6444
+ // replacing existing element
6445
+ var oldElm = oldVnode.elm;
6446
+ var parentElm = nodeOps.parentNode(oldElm);
6447
+
6448
+ // create new node
6449
+ createElm(
6450
+ vnode,
6451
+ insertedVnodeQueue,
6452
+ // extremely rare edge case: do not insert if old element is in a
6453
+ // leaving transition. Only happens when combining transition +
6454
+ // keep-alive + HOCs. (#4590)
6455
+ oldElm._leaveCb ? null : parentElm,
6456
+ nodeOps.nextSibling(oldElm)
6457
+ );
6458
 
6459
+ // update parent placeholder node element, recursively
6460
+ if (isDef(vnode.parent)) {
6461
+ var ancestor = vnode.parent;
6462
+ var patchable = isPatchable(vnode);
6463
+ while (ancestor) {
6464
+ for (var i = 0; i < cbs.destroy.length; ++i) {
6465
+ cbs.destroy[i](ancestor);
6466
+ }
6467
+ ancestor.elm = vnode.elm;
6468
+ if (patchable) {
6469
+ for (var i$1 = 0; i$1 < cbs.create.length; ++i$1) {
6470
+ cbs.create[i$1](emptyNode, ancestor);
6471
+ }
6472
+ // #6513
6473
+ // invoke insert hooks that may have been merged by create hooks.
6474
+ // e.g. for directives that uses the "inserted" hook.
6475
+ var insert = ancestor.data.hook.insert;
6476
+ if (insert.merged) {
6477
+ // start at index 1 to avoid re-invoking component mounted hook
6478
+ for (var i$2 = 1; i$2 < insert.fns.length; i$2++) {
6479
+ insert.fns[i$2]();
6480
+ }
6481
+ }
6482
+ } else {
6483
+ registerRef(ancestor);
6484
+ }
6485
+ ancestor = ancestor.parent;
6486
+ }
6487
+ }
6488
+
6489
+ // destroy old node
6490
+ if (isDef(parentElm)) {
6491
+ removeVnodes(parentElm, [oldVnode], 0, 0);
6492
+ } else if (isDef(oldVnode.tag)) {
6493
+ invokeDestroyHook(oldVnode);
6494
+ }
6495
+ }
6496
+ }
6497
 
6498
+ invokeInsertHook(vnode, insertedVnodeQueue, isInitialPatch);
6499
+ return vnode.elm
 
 
 
 
 
6500
  }
6501
+ }
 
 
 
6502
 
6503
+ /* */
6504
 
6505
+ var directives = {
6506
+ create: updateDirectives,
6507
+ update: updateDirectives,
6508
+ destroy: function unbindDirectives (vnode) {
6509
+ updateDirectives(vnode, emptyNode);
6510
+ }
6511
  };
 
6512
 
6513
+ function updateDirectives (oldVnode, vnode) {
6514
+ if (oldVnode.data.directives || vnode.data.directives) {
6515
+ _update(oldVnode, vnode);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6516
  }
6517
+ }
6518
 
6519
+ function _update (oldVnode, vnode) {
6520
+ var isCreate = oldVnode === emptyNode;
6521
+ var isDestroy = vnode === emptyNode;
6522
+ var oldDirs = normalizeDirectives$1(oldVnode.data.directives, oldVnode.context);
6523
+ var newDirs = normalizeDirectives$1(vnode.data.directives, vnode.context);
6524
 
6525
+ var dirsWithInsert = [];
6526
+ var dirsWithPostpatch = [];
 
 
 
 
 
 
 
 
 
6527
 
6528
+ var key, oldDir, dir;
6529
+ for (key in newDirs) {
6530
+ oldDir = oldDirs[key];
6531
+ dir = newDirs[key];
6532
+ if (!oldDir) {
6533
+ // new directive, bind
6534
+ callHook$1(dir, 'bind', vnode, oldVnode);
6535
+ if (dir.def && dir.def.inserted) {
6536
+ dirsWithInsert.push(dir);
6537
+ }
6538
+ } else {
6539
+ // existing directive, update
6540
+ dir.oldValue = oldDir.value;
6541
+ dir.oldArg = oldDir.arg;
6542
+ callHook$1(dir, 'update', vnode, oldVnode);
6543
+ if (dir.def && dir.def.componentUpdated) {
6544
+ dirsWithPostpatch.push(dir);
6545
+ }
6546
+ }
6547
  }
6548
 
6549
+ if (dirsWithInsert.length) {
6550
+ var callInsert = function () {
6551
+ for (var i = 0; i < dirsWithInsert.length; i++) {
6552
+ callHook$1(dirsWithInsert[i], 'inserted', vnode, oldVnode);
6553
+ }
6554
+ };
6555
+ if (isCreate) {
6556
+ mergeVNodeHook(vnode, 'insert', callInsert);
6557
+ } else {
6558
+ callInsert();
6559
+ }
6560
+ }
6561
 
6562
+ if (dirsWithPostpatch.length) {
6563
+ mergeVNodeHook(vnode, 'postpatch', function () {
6564
+ for (var i = 0; i < dirsWithPostpatch.length; i++) {
6565
+ callHook$1(dirsWithPostpatch[i], 'componentUpdated', vnode, oldVnode);
6566
+ }
6567
+ });
 
 
6568
  }
6569
 
6570
+ if (!isCreate) {
6571
+ for (key in oldDirs) {
6572
+ if (!newDirs[key]) {
6573
+ // no longer present, unbind
6574
+ callHook$1(oldDirs[key], 'unbind', oldVnode, oldVnode, isDestroy);
6575
+ }
6576
+ }
6577
+ }
6578
+ }
6579
 
6580
+ var emptyModifiers = Object.create(null);
 
 
 
 
6581
 
6582
+ function normalizeDirectives$1 (
6583
+ dirs,
6584
+ vm
6585
+ ) {
6586
+ var res = Object.create(null);
6587
+ if (!dirs) {
6588
+ // $flow-disable-line
6589
+ return res
6590
+ }
6591
+ var i, dir;
6592
+ for (i = 0; i < dirs.length; i++) {
6593
+ dir = dirs[i];
6594
+ if (!dir.modifiers) {
6595
+ // $flow-disable-line
6596
+ dir.modifiers = emptyModifiers;
6597
+ }
6598
+ res[getRawDirName(dir)] = dir;
6599
+ dir.def = resolveAsset(vm.$options, 'directives', dir.name, true);
6600
+ }
6601
+ // $flow-disable-line
6602
+ return res
6603
  }
 
6604
 
6605
+ function getRawDirName (dir) {
6606
+ return dir.rawName || ((dir.name) + "." + (Object.keys(dir.modifiers || {}).join('.')))
 
 
6607
  }
 
6608
 
6609
+ function callHook$1 (dir, hook, vnode, oldVnode, isDestroy) {
6610
+ var fn = dir.def && dir.def[hook];
6611
+ if (fn) {
6612
+ try {
6613
+ fn(vnode.elm, dir, vnode, oldVnode, isDestroy);
6614
+ } catch (e) {
6615
+ handleError(e, vnode.context, ("directive " + (dir.name) + " " + hook + " hook"));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6616
  }
6617
+ }
6618
+ }
 
 
 
6619
 
6620
+ var baseModules = [
6621
+ ref,
6622
+ directives
6623
+ ];
6624
 
6625
+ /* */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6626
 
6627
+ function updateAttrs (oldVnode, vnode) {
6628
+ var opts = vnode.componentOptions;
6629
+ if (isDef(opts) && opts.Ctor.options.inheritAttrs === false) {
6630
+ return
6631
+ }
6632
+ if (isUndef(oldVnode.data.attrs) && isUndef(vnode.data.attrs)) {
6633
+ return
6634
+ }
6635
+ var key, cur, old;
6636
+ var elm = vnode.elm;
6637
+ var oldAttrs = oldVnode.data.attrs || {};
6638
+ var attrs = vnode.data.attrs || {};
6639
+ // clone observed objects, as the user probably wants to mutate it
6640
+ if (isDef(attrs.__ob__)) {
6641
+ attrs = vnode.data.attrs = extend({}, attrs);
6642
  }
 
 
 
 
6643
 
6644
+ for (key in attrs) {
6645
+ cur = attrs[key];
6646
+ old = oldAttrs[key];
6647
+ if (old !== cur) {
6648
+ setAttr(elm, key, cur);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6649
  }
6650
+ }
6651
+ // #4391: in IE9, setting type can reset value for input[type=radio]
6652
+ // #6666: IE/Edge forces progress value down to 1 before setting a max
6653
+ /* istanbul ignore if */
6654
+ if ((isIE || isEdge) && attrs.value !== oldAttrs.value) {
6655
+ setAttr(elm, 'value', attrs.value);
6656
+ }
6657
+ for (key in oldAttrs) {
6658
+ if (isUndef(attrs[key])) {
6659
+ if (isXlink(key)) {
6660
+ elm.removeAttributeNS(xlinkNS, getXlinkProp(key));
6661
+ } else if (!isEnumeratedAttr(key)) {
6662
+ elm.removeAttribute(key);
 
 
 
 
 
 
 
6663
  }
6664
  }
 
 
6665
  }
 
6666
  }
 
6667
 
6668
+ function setAttr (el, key, value) {
6669
+ if (el.tagName.indexOf('-') > -1) {
6670
+ baseSetAttr(el, key, value);
6671
+ } else if (isBooleanAttr(key)) {
6672
+ // set attribute for blank value
6673
+ // e.g. <option disabled>Select one</option>
6674
+ if (isFalsyAttrValue(value)) {
6675
+ el.removeAttribute(key);
6676
+ } else {
6677
+ // technically allowfullscreen is a boolean attribute for <iframe>,
6678
+ // but Flash expects a value of "true" when used on <embed> tag
6679
+ value = key === 'allowfullscreen' && el.tagName === 'EMBED'
6680
+ ? 'true'
6681
+ : key;
6682
+ el.setAttribute(key, value);
6683
+ }
6684
+ } else if (isEnumeratedAttr(key)) {
6685
+ el.setAttribute(key, convertEnumeratedValue(key, value));
6686
+ } else if (isXlink(key)) {
6687
+ if (isFalsyAttrValue(value)) {
6688
+ el.removeAttributeNS(xlinkNS, getXlinkProp(key));
6689
+ } else {
6690
+ el.setAttributeNS(xlinkNS, key, value);
6691
+ }
6692
+ } else {
6693
+ baseSetAttr(el, key, value);
6694
+ }
6695
+ }
6696
 
6697
+ function baseSetAttr (el, key, value) {
6698
+ if (isFalsyAttrValue(value)) {
6699
+ el.removeAttribute(key);
6700
+ } else {
6701
+ // #7138: IE10 & 11 fires input event when setting placeholder on
6702
+ // <textarea>... block the first input event and remove the blocker
6703
+ // immediately.
6704
+ /* istanbul ignore if */
6705
+ if (
6706
+ isIE && !isIE9 &&
6707
+ el.tagName === 'TEXTAREA' &&
6708
+ key === 'placeholder' && value !== '' && !el.__ieph
6709
+ ) {
6710
+ var blocker = function (e) {
6711
+ e.stopImmediatePropagation();
6712
+ el.removeEventListener('input', blocker);
6713
+ };
6714
+ el.addEventListener('input', blocker);
6715
+ // $flow-disable-line
6716
+ el.__ieph = true; /* IE placeholder patched */
6717
+ }
6718
+ el.setAttribute(key, value);
6719
+ }
6720
  }
 
6721
 
6722
+ var attrs = {
6723
+ create: updateAttrs,
6724
+ update: updateAttrs
 
 
 
 
 
6725
  };
6726
 
6727
+ /* */
 
 
 
 
 
 
 
 
 
 
 
 
 
6728
 
6729
+ function updateClass (oldVnode, vnode) {
6730
+ var el = vnode.elm;
6731
+ var data = vnode.data;
6732
+ var oldData = oldVnode.data;
6733
+ if (
6734
+ isUndef(data.staticClass) &&
6735
+ isUndef(data.class) && (
6736
+ isUndef(oldData) || (
6737
+ isUndef(oldData.staticClass) &&
6738
+ isUndef(oldData.class)
6739
+ )
6740
+ )
6741
+ ) {
6742
+ return
6743
+ }
6744
 
6745
+ var cls = genClassForVnode(vnode);
6746
 
6747
+ // handle transition classes
6748
+ var transitionClass = el._transitionClasses;
6749
+ if (isDef(transitionClass)) {
6750
+ cls = concat(cls, stringifyClass(transitionClass));
6751
+ }
6752
 
6753
+ // set the class
6754
+ if (cls !== el._prevClass) {
6755
+ el.setAttribute('class', cls);
6756
+ el._prevClass = cls;
6757
+ }
6758
  }
 
 
 
 
 
 
6759
 
6760
+ var klass = {
6761
+ create: updateClass,
6762
+ update: updateClass
6763
+ };
6764
 
6765
+ /* */
6766
+
6767
+ var validDivisionCharRE = /[\w).+\-_$\]]/;
6768
+
6769
+ function parseFilters (exp) {
6770
+ var inSingle = false;
6771
+ var inDouble = false;
6772
+ var inTemplateString = false;
6773
+ var inRegex = false;
6774
+ var curly = 0;
6775
+ var square = 0;
6776
+ var paren = 0;
6777
+ var lastFilterIndex = 0;
6778
+ var c, prev, i, expression, filters;
6779
+
6780
+ for (i = 0; i < exp.length; i++) {
6781
+ prev = c;
6782
+ c = exp.charCodeAt(i);
6783
+ if (inSingle) {
6784
+ if (c === 0x27 && prev !== 0x5C) { inSingle = false; }
6785
+ } else if (inDouble) {
6786
+ if (c === 0x22 && prev !== 0x5C) { inDouble = false; }
6787
+ } else if (inTemplateString) {
6788
+ if (c === 0x60 && prev !== 0x5C) { inTemplateString = false; }
6789
+ } else if (inRegex) {
6790
+ if (c === 0x2f && prev !== 0x5C) { inRegex = false; }
6791
+ } else if (
6792
+ c === 0x7C && // pipe
6793
+ exp.charCodeAt(i + 1) !== 0x7C &&
6794
+ exp.charCodeAt(i - 1) !== 0x7C &&
6795
+ !curly && !square && !paren
6796
+ ) {
6797
+ if (expression === undefined) {
6798
+ // first filter, end of expression
6799
+ lastFilterIndex = i + 1;
6800
+ expression = exp.slice(0, i).trim();
6801
+ } else {
6802
+ pushFilter();
6803
+ }
6804
+ } else {
6805
+ switch (c) {
6806
+ case 0x22: inDouble = true; break // "
6807
+ case 0x27: inSingle = true; break // '
6808
+ case 0x60: inTemplateString = true; break // `
6809
+ case 0x28: paren++; break // (
6810
+ case 0x29: paren--; break // )
6811
+ case 0x5B: square++; break // [
6812
+ case 0x5D: square--; break // ]
6813
+ case 0x7B: curly++; break // {
6814
+ case 0x7D: curly--; break // }
6815
+ }
6816
+ if (c === 0x2f) { // /
6817
+ var j = i - 1;
6818
+ var p = (void 0);
6819
+ // find first non-whitespace prev char
6820
+ for (; j >= 0; j--) {
6821
+ p = exp.charAt(j);
6822
+ if (p !== ' ') { break }
6823
+ }
6824
+ if (!p || !validDivisionCharRE.test(p)) {
6825
+ inRegex = true;
6826
+ }
6827
+ }
6828
+ }
6829
+ }
6830
 
6831
+ if (expression === undefined) {
6832
+ expression = exp.slice(0, i).trim();
6833
+ } else if (lastFilterIndex !== 0) {
6834
+ pushFilter();
6835
+ }
 
 
 
 
 
6836
 
6837
+ function pushFilter () {
6838
+ (filters || (filters = [])).push(exp.slice(lastFilterIndex, i).trim());
6839
+ lastFilterIndex = i + 1;
6840
+ }
6841
 
6842
+ if (filters) {
6843
+ for (i = 0; i < filters.length; i++) {
6844
+ expression = wrapFilter(expression, filters[i]);
6845
+ }
6846
+ }
 
 
 
6847
 
6848
+ return expression
6849
+ }
6850
 
6851
+ function wrapFilter (exp, filter) {
6852
+ var i = filter.indexOf('(');
6853
+ if (i < 0) {
6854
+ // _f: resolveFilter
6855
+ return ("_f(\"" + filter + "\")(" + exp + ")")
6856
+ } else {
6857
+ var name = filter.slice(0, i);
6858
+ var args = filter.slice(i + 1);
6859
+ return ("_f(\"" + name + "\")(" + exp + (args !== ')' ? ',' + args : args))
6860
+ }
6861
+ }
6862
 
6863
+ /* */
 
 
6864
 
 
 
 
6865
 
 
6866
 
6867
+ /* eslint-disable no-unused-vars */
6868
+ function baseWarn (msg, range) {
6869
+ console.error(("[Vue compiler]: " + msg));
 
 
 
 
 
 
 
 
 
 
 
6870
  }
6871
+ /* eslint-enable no-unused-vars */
 
6872
 
6873
+ function pluckModuleFunction (
6874
+ modules,
6875
+ key
6876
+ ) {
6877
+ return modules
6878
+ ? modules.map(function (m) { return m[key]; }).filter(function (_) { return _; })
6879
+ : []
6880
  }
 
6881
 
6882
+ function addProp (el, name, value, range, dynamic) {
6883
+ (el.props || (el.props = [])).push(rangeSetItem({ name: name, value: value, dynamic: dynamic }, range));
6884
+ el.plain = false;
 
 
 
6885
  }
 
 
 
6886
 
6887
+ function addAttr (el, name, value, range, dynamic) {
6888
+ var attrs = dynamic
6889
+ ? (el.dynamicAttrs || (el.dynamicAttrs = []))
6890
+ : (el.attrs || (el.attrs = []));
6891
+ attrs.push(rangeSetItem({ name: name, value: value, dynamic: dynamic }, range));
6892
+ el.plain = false;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6893
  }
6894
+
6895
+ // add a raw attr (use this in preTransforms)
6896
+ function addRawAttr (el, name, value, range) {
6897
+ el.attrsMap[name] = value;
6898
+ el.attrsList.push(rangeSetItem({ name: name, value: value }, range));
 
 
 
 
 
 
 
 
 
6899
  }
 
6900
 
6901
+ function addDirective (
6902
+ el,
6903
+ name,
6904
+ rawName,
6905
+ value,
6906
+ arg,
6907
+ isDynamicArg,
6908
+ modifiers,
6909
+ range
6910
+ ) {
6911
+ (el.directives || (el.directives = [])).push(rangeSetItem({
6912
+ name: name,
6913
+ rawName: rawName,
6914
+ value: value,
6915
+ arg: arg,
6916
+ isDynamicArg: isDynamicArg,
6917
+ modifiers: modifiers
6918
+ }, range));
6919
+ el.plain = false;
6920
+ }
6921
 
6922
+ function prependModifierMarker (symbol, name, dynamic) {
6923
+ return dynamic
6924
+ ? ("_p(" + name + ",\"" + symbol + "\")")
6925
+ : symbol + name // mark the event as captured
6926
+ }
6927
 
6928
+ function addHandler (
6929
+ el,
6930
+ name,
6931
+ value,
6932
+ modifiers,
6933
+ important,
6934
+ warn,
6935
+ range,
6936
+ dynamic
6937
+ ) {
6938
+ modifiers = modifiers || emptyObject;
6939
+ // warn prevent and passive modifier
6940
+ /* istanbul ignore if */
6941
+ if (
6942
+ warn &&
6943
+ modifiers.prevent && modifiers.passive
6944
+ ) {
6945
+ warn(
6946
+ 'passive and prevent can\'t be used together. ' +
6947
+ 'Passive handler can\'t prevent default event.',
6948
+ range
6949
  );
 
6950
  }
 
 
 
 
 
6951
 
6952
+ // normalize click.right and click.middle since they don't actually fire
6953
+ // this is technically browser-specific, but at least for now browsers are
6954
+ // the only target envs that have right/middle clicks.
6955
+ if (modifiers.right) {
6956
+ if (dynamic) {
6957
+ name = "(" + name + ")==='click'?'contextmenu':(" + name + ")";
6958
+ } else if (name === 'click') {
6959
+ name = 'contextmenu';
6960
+ delete modifiers.right;
6961
+ }
6962
+ } else if (modifiers.middle) {
6963
+ if (dynamic) {
6964
+ name = "(" + name + ")==='click'?'mouseup':(" + name + ")";
6965
+ } else if (name === 'click') {
6966
+ name = 'mouseup';
6967
+ }
6968
+ }
6969
 
6970
+ // check capture modifier
6971
+ if (modifiers.capture) {
6972
+ delete modifiers.capture;
6973
+ name = prependModifierMarker('!', name, dynamic);
6974
+ }
6975
+ if (modifiers.once) {
6976
+ delete modifiers.once;
6977
+ name = prependModifierMarker('~', name, dynamic);
6978
+ }
6979
+ /* istanbul ignore if */
6980
+ if (modifiers.passive) {
6981
+ delete modifiers.passive;
6982
+ name = prependModifierMarker('&', name, dynamic);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6983
  }
 
 
 
 
 
6984
 
6985
+ var events;
6986
+ if (modifiers.native) {
6987
+ delete modifiers.native;
6988
+ events = el.nativeEvents || (el.nativeEvents = {});
6989
+ } else {
6990
+ events = el.events || (el.events = {});
6991
+ }
6992
 
6993
+ var newHandler = rangeSetItem({ value: value.trim(), dynamic: dynamic }, range);
6994
+ if (modifiers !== emptyObject) {
6995
+ newHandler.modifiers = modifiers;
 
 
 
 
 
6996
  }
6997
+
6998
+ var handlers = events[name];
6999
+ /* istanbul ignore if */
7000
+ if (Array.isArray(handlers)) {
7001
+ important ? handlers.unshift(newHandler) : handlers.push(newHandler);
7002
+ } else if (handlers) {
7003
+ events[name] = important ? [newHandler, handlers] : [handlers, newHandler];
 
7004
  } else {
7005
+ events[name] = newHandler;
7006
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7007
 
7008
+ el.plain = false;
7009
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7010
 
7011
+ function getRawBindingAttr (
7012
+ el,
7013
+ name
7014
+ ) {
7015
+ return el.rawAttrsMap[':' + name] ||
7016
+ el.rawAttrsMap['v-bind:' + name] ||
7017
+ el.rawAttrsMap[name]
7018
+ }
7019
 
7020
+ function getBindingAttr (
7021
+ el,
7022
+ name,
7023
+ getStatic
7024
+ ) {
7025
+ var dynamicValue =
7026
+ getAndRemoveAttr(el, ':' + name) ||
7027
+ getAndRemoveAttr(el, 'v-bind:' + name);
7028
+ if (dynamicValue != null) {
7029
+ return parseFilters(dynamicValue)
7030
+ } else if (getStatic !== false) {
7031
+ var staticValue = getAndRemoveAttr(el, name);
7032
+ if (staticValue != null) {
7033
+ return JSON.stringify(staticValue)
7034
+ }
7035
+ }
7036
  }
 
 
7037
 
7038
+ // note: this only removes the attr from the Array (attrsList) so that it
7039
+ // doesn't get processed by processAttrs.
7040
+ // By default it does NOT remove it from the map (attrsMap) because the map is
7041
+ // needed during codegen.
7042
+ function getAndRemoveAttr (
7043
+ el,
7044
+ name,
7045
+ removeFromMap
7046
+ ) {
7047
+ var val;
7048
+ if ((val = el.attrsMap[name]) != null) {
7049
+ var list = el.attrsList;
7050
+ for (var i = 0, l = list.length; i < l; i++) {
7051
+ if (list[i].name === name) {
7052
+ list.splice(i, 1);
7053
+ break
7054
+ }
7055
+ }
7056
+ }
7057
+ if (removeFromMap) {
7058
+ delete el.attrsMap[name];
7059
+ }
7060
+ return val
7061
+ }
7062
 
7063
+ function getAndRemoveAttrByRegex (
7064
+ el,
7065
+ name
7066
+ ) {
7067
+ var list = el.attrsList;
7068
+ for (var i = 0, l = list.length; i < l; i++) {
7069
+ var attr = list[i];
7070
+ if (name.test(attr.name)) {
7071
+ list.splice(i, 1);
7072
+ return attr
7073
+ }
7074
+ }
7075
+ }
7076
 
7077
+ function rangeSetItem (
7078
+ item,
7079
+ range
7080
+ ) {
7081
+ if (range) {
7082
+ if (range.start != null) {
7083
+ item.start = range.start;
7084
+ }
7085
+ if (range.end != null) {
7086
+ item.end = range.end;
7087
  }
7088
  }
7089
+ return item
7090
  }
7091
 
7092
+ /* */
 
 
7093
 
7094
+ /**
7095
+ * Cross-platform code generation for component v-model
7096
+ */
7097
+ function genComponentModel (
7098
+ el,
7099
+ value,
7100
+ modifiers
7101
+ ) {
7102
+ var ref = modifiers || {};
7103
+ var number = ref.number;
7104
+ var trim = ref.trim;
7105
+
7106
+ var baseValueExpression = '$$v';
7107
+ var valueExpression = baseValueExpression;
7108
+ if (trim) {
7109
+ valueExpression =
7110
+ "(typeof " + baseValueExpression + " === 'string'" +
7111
+ "? " + baseValueExpression + ".trim()" +
7112
+ ": " + baseValueExpression + ")";
7113
+ }
7114
+ if (number) {
7115
+ valueExpression = "_n(" + valueExpression + ")";
7116
+ }
7117
+ var assignment = genAssignmentCode(value, valueExpression);
7118
+
7119
+ el.model = {
7120
+ value: ("(" + value + ")"),
7121
+ expression: JSON.stringify(value),
7122
+ callback: ("function (" + baseValueExpression + ") {" + assignment + "}")
7123
+ };
7124
  }
7125
 
7126
+ /**
7127
+ * Cross-platform codegen helper for generating v-model value assignment code.
7128
+ */
7129
+ function genAssignmentCode (
7130
+ value,
7131
+ assignment
7132
+ ) {
7133
+ var res = parseModel(value);
7134
+ if (res.key === null) {
7135
+ return (value + "=" + assignment)
7136
+ } else {
7137
+ return ("$set(" + (res.exp) + ", " + (res.key) + ", " + assignment + ")")
7138
  }
7139
  }
7140
 
7141
+ /**
7142
+ * Parse a v-model expression into a base path and a final key segment.
7143
+ * Handles both dot-path and possible square brackets.
7144
+ *
7145
+ * Possible cases:
7146
+ *
7147
+ * - test
7148
+ * - test[key]
7149
+ * - test[test1[key]]
7150
+ * - test["a"][key]
7151
+ * - xxx.test[a[a].test1[key]]
7152
+ * - test.xxx.a["asa"][test1[key]]
7153
+ *
7154
+ */
 
7155
 
7156
+ var len, str, chr, index$1, expressionPos, expressionEndPos;
7157
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7158
 
 
 
 
 
7159
 
7160
+ function parseModel (val) {
7161
+ // Fix https://github.com/vuejs/vue/pull/7730
7162
+ // allow v-model="obj.val " (trailing whitespace)
7163
+ val = val.trim();
7164
+ len = val.length;
7165
+
7166
+ if (val.indexOf('[') < 0 || val.lastIndexOf(']') < len - 1) {
7167
+ index$1 = val.lastIndexOf('.');
7168
+ if (index$1 > -1) {
7169
+ return {
7170
+ exp: val.slice(0, index$1),
7171
+ key: '"' + val.slice(index$1 + 1) + '"'
7172
  }
7173
+ } else {
7174
+ return {
7175
+ exp: val,
7176
+ key: null
 
 
 
7177
  }
7178
  }
7179
+ }
7180
 
7181
+ str = val;
7182
+ index$1 = expressionPos = expressionEndPos = 0;
 
 
7183
 
7184
+ while (!eof()) {
7185
+ chr = next();
7186
  /* istanbul ignore if */
7187
+ if (isStringStart(chr)) {
7188
+ parseString(chr);
7189
+ } else if (chr === 0x5B) {
7190
+ parseBracket(chr);
 
 
7191
  }
7192
+ }
7193
 
7194
+ return {
7195
+ exp: val.slice(0, expressionPos),
7196
+ key: val.slice(expressionPos + 1, expressionEndPos)
 
 
 
 
 
 
7197
  }
7198
  }
7199
 
7200
+ function next () {
7201
+ return str.charCodeAt(++index$1)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7202
  }
7203
 
7204
+ function eof () {
7205
+ return index$1 >= len
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7206
  }
7207
 
7208
+ function isStringStart (chr) {
7209
+ return chr === 0x22 || chr === 0x27
7210
+ }
7211
+
7212
+ function parseBracket (chr) {
7213
+ var inBracket = 1;
7214
+ expressionPos = index$1;
7215
+ while (!eof()) {
7216
+ chr = next();
7217
+ if (isStringStart(chr)) {
7218
+ parseString(chr);
7219
+ continue
7220
+ }
7221
+ if (chr === 0x5B) { inBracket++; }
7222
+ if (chr === 0x5D) { inBracket--; }
7223
+ if (inBracket === 0) {
7224
+ expressionEndPos = index$1;
7225
  break
7226
  }
7227
  }
 
 
 
7228
  }
7229
 
7230
+ function parseString (chr) {
7231
+ var stringQuote = chr;
7232
+ while (!eof()) {
7233
+ chr = next();
7234
+ if (chr === stringQuote) {
7235
+ break
 
 
7236
  }
7237
  }
7238
  }
7239
 
7240
+ /* */
7241
+
7242
+ var warn$1;
7243
+
7244
+ // in some cases, the event used has to be determined at runtime
7245
+ // so we used some reserved tokens during compile.
7246
+ var RANGE_TOKEN = '__r';
7247
+ var CHECKBOX_RADIO_TOKEN = '__c';
7248
+
7249
+ function model (
7250
+ el,
7251
+ dir,
7252
+ _warn
7253
+ ) {
7254
+ warn$1 = _warn;
7255
+ var value = dir.value;
7256
+ var modifiers = dir.modifiers;
7257
+ var tag = el.tag;
7258
+ var type = el.attrsMap.type;
7259
+
7260
+ {
7261
+ // inputs with type="file" are read only and setting the input's
7262
+ // value will throw an error.
7263
+ if (tag === 'input' && type === 'file') {
7264
+ warn$1(
7265
+ "<" + (el.tag) + " v-model=\"" + value + "\" type=\"file\">:\n" +
7266
+ "File inputs are read only. Use a v-on:change listener instead.",
7267
+ el.rawAttrsMap['v-model']
7268
+ );
7269
  }
 
 
7270
  }
 
7271
 
7272
+ if (el.component) {
7273
+ genComponentModel(el, value, modifiers);
7274
+ // component v-model doesn't need extra runtime
7275
+ return false
7276
+ } else if (tag === 'select') {
7277
+ genSelect(el, value, modifiers);
7278
+ } else if (tag === 'input' && type === 'checkbox') {
7279
+ genCheckboxModel(el, value, modifiers);
7280
+ } else if (tag === 'input' && type === 'radio') {
7281
+ genRadioModel(el, value, modifiers);
7282
+ } else if (tag === 'input' || tag === 'textarea') {
7283
+ genDefaultModel(el, value, modifiers);
7284
+ } else if (!config.isReservedTag(tag)) {
7285
+ genComponentModel(el, value, modifiers);
7286
+ // component v-model doesn't need extra runtime
7287
+ return false
7288
+ } else {
7289
+ warn$1(
7290
+ "<" + (el.tag) + " v-model=\"" + value + "\">: " +
7291
+ "v-model is not supported on this element type. " +
7292
+ 'If you are working with contenteditable, it\'s recommended to ' +
7293
+ 'wrap a library dedicated for that purpose inside a custom component.',
7294
+ el.rawAttrsMap['v-model']
7295
+ );
7296
  }
7297
+
7298
+ // ensure runtime directive metadata
7299
+ return true
7300
  }
7301
 
7302
+ function genCheckboxModel (
7303
+ el,
7304
+ value,
7305
+ modifiers
7306
+ ) {
7307
+ var number = modifiers && modifiers.number;
7308
+ var valueBinding = getBindingAttr(el, 'value') || 'null';
7309
+ var trueValueBinding = getBindingAttr(el, 'true-value') || 'true';
7310
+ var falseValueBinding = getBindingAttr(el, 'false-value') || 'false';
7311
+ addProp(el, 'checked',
7312
+ "Array.isArray(" + value + ")" +
7313
+ "?_i(" + value + "," + valueBinding + ")>-1" + (
7314
+ trueValueBinding === 'true'
7315
+ ? (":(" + value + ")")
7316
+ : (":_q(" + value + "," + trueValueBinding + ")")
7317
+ )
7318
+ );
7319
+ addHandler(el, 'change',
7320
+ "var $$a=" + value + "," +
7321
+ '$$el=$event.target,' +
7322
+ "$$c=$$el.checked?(" + trueValueBinding + "):(" + falseValueBinding + ");" +
7323
+ 'if(Array.isArray($$a)){' +
7324
+ "var $$v=" + (number ? '_n(' + valueBinding + ')' : valueBinding) + "," +
7325
+ '$$i=_i($$a,$$v);' +
7326
+ "if($$el.checked){$$i<0&&(" + (genAssignmentCode(value, '$$a.concat([$$v])')) + ")}" +
7327
+ "else{$$i>-1&&(" + (genAssignmentCode(value, '$$a.slice(0,$$i).concat($$a.slice($$i+1))')) + ")}" +
7328
+ "}else{" + (genAssignmentCode(value, '$$c')) + "}",
7329
+ null, true
7330
+ );
7331
  }
7332
 
7333
+ function genRadioModel (
7334
+ el,
7335
+ value,
7336
+ modifiers
7337
+ ) {
7338
+ var number = modifiers && modifiers.number;
7339
+ var valueBinding = getBindingAttr(el, 'value') || 'null';
7340
+ valueBinding = number ? ("_n(" + valueBinding + ")") : valueBinding;
7341
+ addProp(el, 'checked', ("_q(" + value + "," + valueBinding + ")"));
7342
+ addHandler(el, 'change', genAssignmentCode(value, valueBinding), null, true);
7343
+ }
7344
+
7345
+ function genSelect (
7346
+ el,
7347
+ value,
7348
+ modifiers
7349
+ ) {
7350
+ var number = modifiers && modifiers.number;
7351
+ var selectedVal = "Array.prototype.filter" +
7352
+ ".call($event.target.options,function(o){return o.selected})" +
7353
+ ".map(function(o){var val = \"_value\" in o ? o._value : o.value;" +
7354
+ "return " + (number ? '_n(val)' : 'val') + "})";
7355
+
7356
+ var assignment = '$event.target.multiple ? $$selectedVal : $$selectedVal[0]';
7357
+ var code = "var $$selectedVal = " + selectedVal + ";";
7358
+ code = code + " " + (genAssignmentCode(value, assignment));
7359
+ addHandler(el, 'change', code, null, true);
7360
+ }
7361
+
7362
+ function genDefaultModel (
7363
+ el,
7364
+ value,
7365
+ modifiers
7366
+ ) {
7367
+ var type = el.attrsMap.type;
7368
+
7369
+ // warn if v-bind:value conflicts with v-model
7370
+ // except for inputs with v-bind:type
7371
+ {
7372
+ var value$1 = el.attrsMap['v-bind:value'] || el.attrsMap[':value'];
7373
+ var typeBinding = el.attrsMap['v-bind:type'] || el.attrsMap[':type'];
7374
+ if (value$1 && !typeBinding) {
7375
+ var binding = el.attrsMap['v-bind:value'] ? 'v-bind:value' : ':value';
7376
+ warn$1(
7377
+ binding + "=\"" + value$1 + "\" conflicts with v-model on the same element " +
7378
+ 'because the latter already expands to a value binding internally',
7379
+ el.rawAttrsMap[binding]
7380
+ );
7381
  }
7382
  }
 
 
 
 
 
 
 
 
 
7383
 
7384
+ var ref = modifiers || {};
7385
+ var lazy = ref.lazy;
7386
+ var number = ref.number;
7387
+ var trim = ref.trim;
7388
+ var needCompositionGuard = !lazy && type !== 'range';
7389
+ var event = lazy
7390
+ ? 'change'
7391
+ : type === 'range'
7392
+ ? RANGE_TOKEN
7393
+ : 'input';
7394
+
7395
+ var valueExpression = '$event.target.value';
7396
+ if (trim) {
7397
+ valueExpression = "$event.target.value.trim()";
7398
+ }
7399
+ if (number) {
7400
+ valueExpression = "_n(" + valueExpression + ")";
7401
  }
 
7402
 
7403
+ var code = genAssignmentCode(value, valueExpression);
7404
+ if (needCompositionGuard) {
7405
+ code = "if($event.target.composing)return;" + code;
 
 
 
7406
  }
7407
+
7408
+ addProp(el, 'value', ("(" + value + ")"));
7409
+ addHandler(el, event, code, null, true);
7410
+ if (trim || number) {
7411
+ addHandler(el, 'blur', '$forceUpdate()');
7412
  }
7413
  }
7414
 
7415
+ /* */
7416
+
7417
+ // normalize v-model event tokens that can only be determined at runtime.
7418
+ // it's important to place the event as the first in the array because
7419
+ // the whole point is ensuring the v-model callback gets called before
7420
+ // user-attached handlers.
7421
+ function normalizeEvents (on) {
7422
+ /* istanbul ignore if */
7423
+ if (isDef(on[RANGE_TOKEN])) {
7424
+ // IE input[type=range] only supports `change` event
7425
+ var event = isIE ? 'change' : 'input';
7426
+ on[event] = [].concat(on[RANGE_TOKEN], on[event] || []);
7427
+ delete on[RANGE_TOKEN];
7428
+ }
7429
+ // This was originally intended to fix #4521 but no longer necessary
7430
+ // after 2.5. Keeping it for backwards compat with generated code from < 2.4
7431
+ /* istanbul ignore if */
7432
+ if (isDef(on[CHECKBOX_RADIO_TOKEN])) {
7433
+ on.change = [].concat(on[CHECKBOX_RADIO_TOKEN], on.change || []);
7434
+ delete on[CHECKBOX_RADIO_TOKEN];
7435
  }
7436
  }
7437
 
7438
+ var target$1;
7439
+
7440
+ function createOnceHandler$1 (event, handler, capture) {
7441
+ var _target = target$1; // save current target element in closure
7442
+ return function onceHandler () {
7443
+ var res = handler.apply(null, arguments);
7444
+ if (res !== null) {
7445
+ remove$2(event, onceHandler, capture, _target);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7446
  }
 
 
7447
  }
7448
  }
7449
 
7450
+ // #9446: Firefox <= 53 (in particular, ESR 52) has incorrect Event.timeStamp
7451
+ // implementation and does not fire microtasks in between event propagation, so
7452
+ // safe to exclude.
7453
+ var useMicrotaskFix = isUsingMicroTask && !(isFF && Number(isFF[1]) <= 53);
 
 
 
 
 
 
7454
 
7455
+ function add$1 (
7456
+ name,
7457
+ handler,
7458
+ capture,
7459
+ passive
7460
+ ) {
7461
+ // async edge case #6566: inner click event triggers patch, event handler
7462
+ // attached to outer element during patch, and triggered again. This
7463
+ // happens because browsers fire microtask ticks between event propagation.
7464
+ // the solution is simple: we save the timestamp when a handler is attached,
7465
+ // and the handler would only fire if the event passed to it was fired
7466
+ // AFTER it was attached.
7467
+ if (useMicrotaskFix) {
7468
+ var attachedTimestamp = currentFlushTimestamp;
7469
+ var original = handler;
7470
+ handler = original._wrapper = function (e) {
7471
+ if (
7472
+ // no bubbling, should always fire.
7473
+ // this is just a safety net in case event.timeStamp is unreliable in
7474
+ // certain weird environments...
7475
+ e.target === e.currentTarget ||
7476
+ // event is fired after handler attachment
7477
+ e.timeStamp >= attachedTimestamp ||
7478
+ // #9462 bail for iOS 9 bug: event.timeStamp is 0 after history.pushState
7479
+ e.timeStamp === 0 ||
7480
+ // #9448 bail if event is fired in another document in a multi-page
7481
+ // electron/nw.js app, since event.timeStamp will be using a different
7482
+ // starting reference
7483
+ e.target.ownerDocument !== document
7484
+ ) {
7485
+ return original.apply(this, arguments)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7486
  }
7487
+ };
 
 
 
 
 
 
 
7488
  }
7489
+ target$1.addEventListener(
7490
+ name,
7491
+ handler,
7492
+ supportsPassive
7493
+ ? { capture: capture, passive: passive }
7494
+ : capture
7495
+ );
7496
  }
7497
 
7498
+ function remove$2 (
7499
+ name,
7500
+ handler,
7501
+ capture,
7502
+ _target
7503
+ ) {
7504
+ (_target || target$1).removeEventListener(
7505
+ name,
7506
+ handler._wrapper || handler,
7507
+ capture
7508
+ );
 
 
 
 
 
7509
  }
7510
 
7511
+ function updateDOMListeners (oldVnode, vnode) {
7512
+ if (isUndef(oldVnode.data.on) && isUndef(vnode.data.on)) {
7513
+ return
 
7514
  }
7515
+ var on = vnode.data.on || {};
7516
+ var oldOn = oldVnode.data.on || {};
7517
+ target$1 = vnode.elm;
7518
+ normalizeEvents(on);
7519
+ updateListeners(on, oldOn, add$1, remove$2, createOnceHandler$1, vnode.context);
7520
+ target$1 = undefined;
7521
  }
7522
 
7523
+ var events = {
7524
+ create: updateDOMListeners,
7525
+ update: updateDOMListeners
7526
+ };
7527
+
7528
+ /* */
7529
+
7530
+ var svgContainer;
7531
+
7532
+ function updateDOMProps (oldVnode, vnode) {
7533
+ if (isUndef(oldVnode.data.domProps) && isUndef(vnode.data.domProps)) {
7534
  return
7535
  }
7536
+ var key, cur;
7537
+ var elm = vnode.elm;
7538
+ var oldProps = oldVnode.data.domProps || {};
7539
+ var props = vnode.data.domProps || {};
7540
+ // clone observed objects, as the user probably wants to mutate it
7541
+ if (isDef(props.__ob__)) {
7542
+ props = vnode.data.domProps = extend({}, props);
7543
+ }
7544
+
7545
+ for (key in oldProps) {
7546
+ if (isUndef(props[key])) {
7547
+ elm[key] = '';
7548
+ }
7549
+ }
7550
+ for (key in props) {
7551
+ cur = props[key];
7552
+ // ignore children if the node has textContent or innerHTML,
7553
+ // as these will throw away existing DOM nodes and cause removal errors
7554
+ // on subsequent patches (#3360)
7555
+ if (key === 'textContent' || key === 'innerHTML') {
7556
+ if (vnode.children) { vnode.children.length = 0; }
7557
+ if (cur === oldProps[key]) { continue }
7558
+ // #6601 work around Chrome version <= 55 bug where single textNode
7559
+ // replaced by innerHTML/textContent retains its parentNode property
7560
+ if (elm.childNodes.length === 1) {
7561
+ elm.removeChild(elm.childNodes[0]);
7562
+ }
7563
+ }
7564
 
7565
+ // skip the update if old and new VDOM state is the same.
7566
+ // the only exception is `value` where the DOM value may be temporarily
7567
+ // out of sync with VDOM state due to focus, composition and modifiers.
7568
+ // This also covers #4521 by skipping the unnecesarry `checked` update.
7569
+ if (key !== 'value' && cur === oldProps[key]) {
7570
+ continue
7571
+ }
7572
 
7573
+ if (key === 'value') {
7574
+ // store value as _value as well since
7575
+ // non-string values will be stringified
7576
+ elm._value = cur;
7577
+ // avoid resetting cursor position when value is the same
7578
+ var strCur = isUndef(cur) ? '' : String(cur);
7579
+ if (shouldUpdateValue(elm, strCur)) {
7580
+ elm.value = strCur;
7581
+ }
7582
+ } else if (key === 'innerHTML' && isSVG(elm.tagName) && isUndef(elm.innerHTML)) {
7583
+ // IE doesn't support innerHTML for SVG elements
7584
+ svgContainer = svgContainer || document.createElement('div');
7585
+ svgContainer.innerHTML = "<svg>" + cur + "</svg>";
7586
+ var svg = svgContainer.firstChild;
7587
+ while (elm.firstChild) {
7588
+ elm.removeChild(elm.firstChild);
7589
+ }
7590
+ while (svg.firstChild) {
7591
+ elm.appendChild(svg.firstChild);
7592
+ }
7593
  } else {
7594
+ elm[key] = cur;
7595
  }
 
7596
  }
7597
+ }
7598
 
7599
+ // check platforms/web/util/attrs.js acceptValue
 
 
 
 
 
 
 
 
 
 
 
7600
 
 
 
 
 
 
7601
 
7602
+ function shouldUpdateValue (elm, checkVal) {
7603
+ return (!elm.composing && (
7604
+ elm.tagName === 'OPTION' ||
7605
+ isNotInFocusAndDirty(elm, checkVal) ||
7606
+ isDirtyWithModifiers(elm, checkVal)
7607
+ ))
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7608
  }
7609
 
7610
+ function isNotInFocusAndDirty (elm, checkVal) {
7611
+ // return true when textbox (.number and .trim) loses focus and its value is
7612
+ // not equal to the updated value
7613
+ var notInFocus = true;
7614
+ // #6157
7615
+ // work around IE bug when accessing document.activeElement in an iframe
7616
+ try { notInFocus = document.activeElement !== elm; } catch (e) {}
7617
+ return notInFocus && elm.value !== checkVal
7618
+ }
7619
+
7620
+ function isDirtyWithModifiers (elm, newVal) {
7621
+ var value = elm.value;
7622
+ var modifiers = elm._vModifiers; // injected by v-model runtime
7623
+ if (isDef(modifiers)) {
7624
+ if (modifiers.number) {
7625
+ return toNumber(value) !== toNumber(newVal)
7626
+ }
7627
+ if (modifiers.trim) {
7628
+ return value.trim() !== newVal.trim()
7629
  }
7630
  }
7631
+ return value !== newVal
7632
  }
7633
 
7634
+ var domProps = {
7635
+ create: updateDOMProps,
7636
+ update: updateDOMProps
7637
+ };
 
 
7638
 
7639
+ /* */
 
 
 
 
 
 
 
7640
 
7641
+ var parseStyleText = cached(function (cssText) {
7642
+ var res = {};
7643
+ var listDelimiter = /;(?![^(]*\))/g;
7644
+ var propertyDelimiter = /:(.+)/;
7645
+ cssText.split(listDelimiter).forEach(function (item) {
7646
+ if (item) {
7647
+ var tmp = item.split(propertyDelimiter);
7648
+ tmp.length > 1 && (res[tmp[0].trim()] = tmp[1].trim());
7649
  }
7650
+ });
7651
+ return res
7652
+ });
7653
+
7654
+ // merge static and dynamic style data on the same vnode
7655
+ function normalizeStyleData (data) {
7656
+ var style = normalizeStyleBinding(data.style);
7657
+ // static style is pre-processed into an object during compilation
7658
+ // and is always a fresh object, so it's safe to merge into it
7659
+ return data.staticStyle
7660
+ ? extend(data.staticStyle, style)
7661
+ : style
7662
+ }
7663
+
7664
+ // normalize possible array / string values into Object
7665
+ function normalizeStyleBinding (bindingStyle) {
7666
+ if (Array.isArray(bindingStyle)) {
7667
+ return toObject(bindingStyle)
7668
  }
7669
+ if (typeof bindingStyle === 'string') {
7670
+ return parseStyleText(bindingStyle)
 
 
 
 
 
7671
  }
7672
+ return bindingStyle
7673
+ }
7674
+
7675
+ /**
7676
+ * parent component style should be after child's
7677
+ * so that parent component's style could override it
7678
+ */
7679
+ function getStyle (vnode, checkChild) {
7680
+ var res = {};
7681
+ var styleData;
7682
+
7683
+ if (checkChild) {
7684
+ var childNode = vnode;
7685
+ while (childNode.componentInstance) {
7686
+ childNode = childNode.componentInstance._vnode;
7687
+ if (
7688
+ childNode && childNode.data &&
7689
+ (styleData = normalizeStyleData(childNode.data))
7690
+ ) {
7691
+ extend(res, styleData);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7692
  }
7693
  }
 
 
7694
  }
 
 
7695
 
7696
+ if ((styleData = normalizeStyleData(vnode.data))) {
7697
+ extend(res, styleData);
 
 
 
 
 
 
7698
  }
 
7699
 
7700
+ var parentNode = vnode;
7701
+ while ((parentNode = parentNode.parent)) {
7702
+ if (parentNode.data && (styleData = normalizeStyleData(parentNode.data))) {
7703
+ extend(res, styleData);
7704
+ }
7705
  }
7706
+ return res
7707
+ }
7708
 
7709
+ /* */
 
7710
 
7711
+ var cssVarRE = /^--/;
7712
+ var importantRE = /\s*!important$/;
7713
+ var setProp = function (el, name, val) {
7714
+ /* istanbul ignore if */
7715
+ if (cssVarRE.test(name)) {
7716
+ el.style.setProperty(name, val);
7717
+ } else if (importantRE.test(val)) {
7718
+ el.style.setProperty(hyphenate(name), val.replace(importantRE, ''), 'important');
7719
  } else {
7720
+ var normalizedName = normalize(name);
7721
+ if (Array.isArray(val)) {
7722
+ // Support values array created by autoprefixer, e.g.
7723
+ // {display: ["-webkit-box", "-ms-flexbox", "flex"]}
7724
+ // Set them one by one, and the browser will only set those it can recognize
7725
+ for (var i = 0, len = val.length; i < len; i++) {
7726
+ el.style[normalizedName] = val[i];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7727
  }
7728
+ } else {
7729
+ el.style[normalizedName] = val;
7730
+ }
7731
+ }
7732
+ };
7733
 
7734
+ var vendorNames = ['Webkit', 'Moz', 'ms'];
 
 
7735
 
7736
+ var emptyStyle;
7737
+ var normalize = cached(function (prop) {
7738
+ emptyStyle = emptyStyle || document.createElement('div').style;
7739
+ prop = camelize(prop);
7740
+ if (prop !== 'filter' && (prop in emptyStyle)) {
7741
+ return prop
7742
+ }
7743
+ var capName = prop.charAt(0).toUpperCase() + prop.slice(1);
7744
+ for (var i = 0; i < vendorNames.length; i++) {
7745
+ var name = vendorNames[i] + capName;
7746
+ if (name in emptyStyle) {
7747
+ return name
7748
+ }
7749
+ }
7750
+ });
7751
 
7752
+ function updateStyle (oldVnode, vnode) {
7753
+ var data = vnode.data;
7754
+ var oldData = oldVnode.data;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7755
 
7756
+ if (isUndef(data.staticStyle) && isUndef(data.style) &&
7757
+ isUndef(oldData.staticStyle) && isUndef(oldData.style)
7758
+ ) {
7759
+ return
 
 
 
7760
  }
7761
 
7762
+ var cur, name;
7763
+ var el = vnode.elm;
7764
+ var oldStaticStyle = oldData.staticStyle;
7765
+ var oldStyleBinding = oldData.normalizedStyle || oldData.style || {};
7766
 
7767
+ // if static style exists, stylebinding already merged into it when doing normalizeStyleData
7768
+ var oldStyle = oldStaticStyle || oldStyleBinding;
7769
 
7770
+ var style = normalizeStyleBinding(vnode.data.style) || {};
7771
+
7772
+ // store normalized style under a different key for next diff
7773
+ // make sure to clone it if it's reactive, since the user likely wants
7774
+ // to mutate it.
7775
+ vnode.data.normalizedStyle = isDef(style.__ob__)
7776
+ ? extend({}, style)
7777
+ : style;
7778
 
7779
+ var newStyle = getStyle(vnode, true);
7780
+
7781
+ for (name in oldStyle) {
7782
+ if (isUndef(newStyle[name])) {
7783
+ setProp(el, name, '');
7784
+ }
7785
+ }
7786
+ for (name in newStyle) {
7787
+ cur = newStyle[name];
7788
+ if (cur !== oldStyle[name]) {
7789
+ // ie9 setting to null has no effect, must use empty string
7790
+ setProp(el, name, cur == null ? '' : cur);
7791
+ }
7792
+ }
7793
  }
 
7794
 
7795
+ var style = {
7796
+ create: updateStyle,
7797
+ update: updateStyle
7798
+ };
7799
+
7800
+ /* */
7801
+
7802
+ var whitespaceRE = /\s+/;
7803
 
7804
+ /**
7805
+ * Add class with compatibility for SVG since classList is not supported on
7806
+ * SVG elements in IE
7807
+ */
7808
+ function addClass (el, cls) {
7809
+ /* istanbul ignore if */
7810
+ if (!cls || !(cls = cls.trim())) {
7811
+ return
7812
+ }
7813
 
7814
+ /* istanbul ignore else */
7815
+ if (el.classList) {
7816
+ if (cls.indexOf(' ') > -1) {
7817
+ cls.split(whitespaceRE).forEach(function (c) { return el.classList.add(c); });
7818
+ } else {
7819
+ el.classList.add(cls);
 
 
 
7820
  }
7821
  } else {
7822
+ var cur = " " + (el.getAttribute('class') || '') + " ";
7823
+ if (cur.indexOf(' ' + cls + ' ') < 0) {
7824
+ el.setAttribute('class', (cur + cls).trim());
 
 
7825
  }
7826
  }
7827
  }
7828
 
7829
+ /**
7830
+ * Remove class with compatibility for SVG since classList is not supported on
7831
+ * SVG elements in IE
7832
+ */
7833
+ function removeClass (el, cls) {
7834
+ /* istanbul ignore if */
7835
+ if (!cls || !(cls = cls.trim())) {
7836
+ return
7837
+ }
7838
+
7839
+ /* istanbul ignore else */
7840
+ if (el.classList) {
7841
+ if (cls.indexOf(' ') > -1) {
7842
+ cls.split(whitespaceRE).forEach(function (c) { return el.classList.remove(c); });
7843
+ } else {
7844
+ el.classList.remove(cls);
7845
+ }
7846
+ if (!el.classList.length) {
7847
+ el.removeAttribute('class');
7848
  }
 
 
 
7849
  } else {
7850
+ var cur = " " + (el.getAttribute('class') || '') + " ";
7851
+ var tar = ' ' + cls + ' ';
7852
+ while (cur.indexOf(tar) >= 0) {
7853
+ cur = cur.replace(tar, ' ');
7854
+ }
7855
+ cur = cur.trim();
7856
+ if (cur) {
7857
+ el.setAttribute('class', cur);
7858
+ } else {
7859
+ el.removeAttribute('class');
7860
+ }
7861
  }
7862
  }
7863
 
7864
+ /* */
 
 
 
 
 
 
7865
 
7866
+ function resolveTransition (def$$1) {
7867
+ if (!def$$1) {
7868
+ return
7869
+ }
7870
+ /* istanbul ignore else */
7871
+ if (typeof def$$1 === 'object') {
7872
+ var res = {};
7873
+ if (def$$1.css !== false) {
7874
+ extend(res, autoCssTransition(def$$1.name || 'v'));
7875
  }
7876
+ extend(res, def$$1);
7877
+ return res
7878
+ } else if (typeof def$$1 === 'string') {
7879
+ return autoCssTransition(def$$1)
7880
  }
7881
  }
 
 
 
7882
 
7883
+ var autoCssTransition = cached(function (name) {
7884
+ return {
7885
+ enterClass: (name + "-enter"),
7886
+ enterToClass: (name + "-enter-to"),
7887
+ enterActiveClass: (name + "-enter-active"),
7888
+ leaveClass: (name + "-leave"),
7889
+ leaveToClass: (name + "-leave-to"),
7890
+ leaveActiveClass: (name + "-leave-active")
 
 
 
 
 
 
 
7891
  }
7892
+ });
 
 
 
 
 
7893
 
7894
+ var hasTransition = inBrowser && !isIE9;
7895
+ var TRANSITION = 'transition';
7896
+ var ANIMATION = 'animation';
7897
 
7898
+ // Transition property/event sniffing
7899
+ var transitionProp = 'transition';
7900
+ var transitionEndEvent = 'transitionend';
7901
+ var animationProp = 'animation';
7902
+ var animationEndEvent = 'animationend';
7903
+ if (hasTransition) {
7904
+ /* istanbul ignore if */
7905
+ if (window.ontransitionend === undefined &&
7906
+ window.onwebkittransitionend !== undefined
7907
+ ) {
7908
+ transitionProp = 'WebkitTransition';
7909
+ transitionEndEvent = 'webkitTransitionEnd';
7910
+ }
7911
+ if (window.onanimationend === undefined &&
7912
+ window.onwebkitanimationend !== undefined
7913
+ ) {
7914
+ animationProp = 'WebkitAnimation';
7915
+ animationEndEvent = 'webkitAnimationEnd';
7916
  }
7917
  }
 
 
 
 
 
 
7918
 
7919
+ // binding to window is necessary to make hot reload work in IE in strict mode
7920
+ var raf = inBrowser
7921
+ ? window.requestAnimationFrame
7922
+ ? window.requestAnimationFrame.bind(window)
7923
+ : setTimeout
7924
+ : /* istanbul ignore next */ function (fn) { return fn(); };
7925
 
7926
+ function nextFrame (fn) {
7927
+ raf(function () {
7928
+ raf(fn);
7929
+ });
 
 
 
 
 
 
 
 
 
 
 
7930
  }
7931
 
7932
+ function addTransitionClass (el, cls) {
7933
+ var transitionClasses = el._transitionClasses || (el._transitionClasses = []);
7934
+ if (transitionClasses.indexOf(cls) < 0) {
7935
+ transitionClasses.push(cls);
7936
+ addClass(el, cls);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7937
  }
7938
  }
 
7939
 
7940
+ function removeTransitionClass (el, cls) {
7941
+ if (el._transitionClasses) {
7942
+ remove(el._transitionClasses, cls);
 
 
 
 
 
 
 
 
 
 
 
 
7943
  }
7944
+ removeClass(el, cls);
 
 
 
 
 
 
 
 
 
7945
  }
 
7946
 
7947
+ function whenTransitionEnds (
7948
+ el,
7949
+ expectedType,
7950
+ cb
7951
+ ) {
7952
+ var ref = getTransitionInfo(el, expectedType);
7953
+ var type = ref.type;
7954
+ var timeout = ref.timeout;
7955
+ var propCount = ref.propCount;
7956
+ if (!type) { return cb() }
7957
+ var event = type === TRANSITION ? transitionEndEvent : animationEndEvent;
7958
+ var ended = 0;
7959
+ var end = function () {
7960
+ el.removeEventListener(event, onEnd);
7961
+ cb();
7962
+ };
7963
+ var onEnd = function (e) {
7964
+ if (e.target === el) {
7965
+ if (++ended >= propCount) {
7966
+ end();
7967
+ }
7968
+ }
7969
+ };
7970
+ setTimeout(function () {
7971
+ if (ended < propCount) {
7972
+ end();
7973
+ }
7974
+ }, timeout + 1);
7975
+ el.addEventListener(event, onEnd);
7976
  }
 
7977
 
7978
+ var transformRE = /\b(transform|all)(,|$)/;
 
 
 
7979
 
7980
+ function getTransitionInfo (el, expectedType) {
7981
+ var styles = window.getComputedStyle(el);
7982
+ // JSDOM may return undefined for transition properties
7983
+ var transitionDelays = (styles[transitionProp + 'Delay'] || '').split(', ');
7984
+ var transitionDurations = (styles[transitionProp + 'Duration'] || '').split(', ');
7985
+ var transitionTimeout = getTimeout(transitionDelays, transitionDurations);
7986
+ var animationDelays = (styles[animationProp + 'Delay'] || '').split(', ');
7987
+ var animationDurations = (styles[animationProp + 'Duration'] || '').split(', ');
7988
+ var animationTimeout = getTimeout(animationDelays, animationDurations);
7989
 
7990
+ var type;
7991
+ var timeout = 0;
7992
+ var propCount = 0;
7993
+ /* istanbul ignore if */
7994
+ if (expectedType === TRANSITION) {
7995
+ if (transitionTimeout > 0) {
7996
+ type = TRANSITION;
7997
+ timeout = transitionTimeout;
7998
+ propCount = transitionDurations.length;
7999
+ }
8000
+ } else if (expectedType === ANIMATION) {
8001
+ if (animationTimeout > 0) {
8002
+ type = ANIMATION;
8003
+ timeout = animationTimeout;
8004
+ propCount = animationDurations.length;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8005
  }
8006
  } else {
8007
+ timeout = Math.max(transitionTimeout, animationTimeout);
8008
+ type = timeout > 0
8009
+ ? transitionTimeout > animationTimeout
8010
+ ? TRANSITION
8011
+ : ANIMATION
8012
+ : null;
8013
+ propCount = type
8014
+ ? type === TRANSITION
8015
+ ? transitionDurations.length
8016
+ : animationDurations.length
8017
+ : 0;
8018
+ }
8019
+ var hasTransform =
8020
+ type === TRANSITION &&
8021
+ transformRE.test(styles[transitionProp + 'Property']);
8022
+ return {
8023
+ type: type,
8024
+ timeout: timeout,
8025
+ propCount: propCount,
8026
+ hasTransform: hasTransform
 
 
 
8027
  }
8028
  }
8029
 
8030
+ function getTimeout (delays, durations) {
8031
+ /* istanbul ignore next */
8032
+ while (delays.length < durations.length) {
8033
+ delays = delays.concat(delays);
8034
+ }
8035
 
8036
+ return Math.max.apply(null, durations.map(function (d, i) {
8037
+ return toMs(d) + toMs(delays[i])
8038
+ }))
8039
  }
8040
 
8041
+ // Old versions of Chromium (below 61.0.3163.100) formats floating pointer numbers
8042
+ // in a locale-dependent way, using a comma instead of a dot.
8043
+ // If comma is not replaced with a dot, the input will be rounded down (i.e. acting
8044
+ // as a floor function) causing unexpected behaviors
8045
+ function toMs (s) {
8046
+ return Number(s.slice(0, -1).replace(',', '.')) * 1000
8047
  }
8048
 
8049
+ /* */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8050
 
8051
+ function enter (vnode, toggleDisplay) {
8052
+ var el = vnode.elm;
 
 
 
 
 
 
 
 
 
 
 
 
8053
 
8054
+ // call leave callback now
8055
+ if (isDef(el._leaveCb)) {
8056
+ el._leaveCb.cancelled = true;
8057
+ el._leaveCb();
 
 
 
 
 
8058
  }
 
8059
 
8060
+ var data = resolveTransition(vnode.data.transition);
8061
+ if (isUndef(data)) {
8062
+ return
8063
+ }
 
 
 
8064
 
8065
+ /* istanbul ignore if */
8066
+ if (isDef(el._enterCb) || el.nodeType !== 1) {
8067
+ return
8068
+ }
 
 
8069
 
8070
+ var css = data.css;
8071
+ var type = data.type;
8072
+ var enterClass = data.enterClass;
8073
+ var enterToClass = data.enterToClass;
8074
+ var enterActiveClass = data.enterActiveClass;
8075
+ var appearClass = data.appearClass;
8076
+ var appearToClass = data.appearToClass;
8077
+ var appearActiveClass = data.appearActiveClass;
8078
+ var beforeEnter = data.beforeEnter;
8079
+ var enter = data.enter;
8080
+ var afterEnter = data.afterEnter;
8081
+ var enterCancelled = data.enterCancelled;
8082
+ var beforeAppear = data.beforeAppear;
8083
+ var appear = data.appear;
8084
+ var afterAppear = data.afterAppear;
8085
+ var appearCancelled = data.appearCancelled;
8086
+ var duration = data.duration;
8087
+
8088
+ // activeInstance will always be the <transition> component managing this
8089
+ // transition. One edge case to check is when the <transition> is placed
8090
+ // as the root node of a child component. In that case we need to check
8091
+ // <transition>'s parent for appear check.
8092
+ var context = activeInstance;
8093
+ var transitionNode = activeInstance.$vnode;
8094
+ while (transitionNode && transitionNode.parent) {
8095
+ transitionNode = transitionNode.parent;
8096
+ context = transitionNode.context;
8097
+ }
8098
+
8099
+ var isAppear = !context._isMounted || !vnode.isRootInsert;
8100
+
8101
+ if (isAppear && !appear && appear !== '') {
8102
+ return
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8103
  }
 
 
 
 
 
 
8104
 
8105
+ var startClass = isAppear && appearClass
8106
+ ? appearClass
8107
+ : enterClass;
8108
+ var activeClass = isAppear && appearActiveClass
8109
+ ? appearActiveClass
8110
+ : enterActiveClass;
8111
+ var toClass = isAppear && appearToClass
8112
+ ? appearToClass
8113
+ : enterToClass;
8114
+
8115
+ var beforeEnterHook = isAppear
8116
+ ? (beforeAppear || beforeEnter)
8117
+ : beforeEnter;
8118
+ var enterHook = isAppear
8119
+ ? (typeof appear === 'function' ? appear : enter)
8120
+ : enter;
8121
+ var afterEnterHook = isAppear
8122
+ ? (afterAppear || afterEnter)
8123
+ : afterEnter;
8124
+ var enterCancelledHook = isAppear
8125
+ ? (appearCancelled || enterCancelled)
8126
+ : enterCancelled;
8127
+
8128
+ var explicitEnterDuration = toNumber(
8129
+ isObject(duration)
8130
+ ? duration.enter
8131
+ : duration
8132
+ );
8133
 
8134
+ if (explicitEnterDuration != null) {
8135
+ checkDuration(explicitEnterDuration, 'enter', vnode);
8136
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8137
 
8138
+ var expectsCSS = css !== false && !isIE9;
8139
+ var userWantsControl = getHookArgumentsLength(enterHook);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8140
 
8141
+ var cb = el._enterCb = once(function () {
8142
+ if (expectsCSS) {
8143
+ removeTransitionClass(el, toClass);
8144
+ removeTransitionClass(el, activeClass);
8145
+ }
8146
+ if (cb.cancelled) {
8147
+ if (expectsCSS) {
8148
+ removeTransitionClass(el, startClass);
8149
+ }
8150
+ enterCancelledHook && enterCancelledHook(el);
8151
+ } else {
8152
+ afterEnterHook && afterEnterHook(el);
8153
+ }
8154
+ el._enterCb = null;
8155
+ });
8156
 
8157
+ if (!vnode.data.show) {
8158
+ // remove pending leave element on enter by injecting an insert hook
8159
+ mergeVNodeHook(vnode, 'insert', function () {
8160
+ var parent = el.parentNode;
8161
+ var pendingNode = parent && parent._pending && parent._pending[vnode.key];
8162
+ if (pendingNode &&
8163
+ pendingNode.tag === vnode.tag &&
8164
+ pendingNode.elm._leaveCb
8165
+ ) {
8166
+ pendingNode.elm._leaveCb();
8167
+ }
8168
+ enterHook && enterHook(el, cb);
8169
+ });
8170
+ }
8171
 
8172
+ // start enter transition
8173
+ beforeEnterHook && beforeEnterHook(el);
8174
+ if (expectsCSS) {
8175
+ addTransitionClass(el, startClass);
8176
+ addTransitionClass(el, activeClass);
8177
+ nextFrame(function () {
8178
+ removeTransitionClass(el, startClass);
8179
+ if (!cb.cancelled) {
8180
+ addTransitionClass(el, toClass);
8181
+ if (!userWantsControl) {
8182
+ if (isValidDuration(explicitEnterDuration)) {
8183
+ setTimeout(cb, explicitEnterDuration);
8184
+ } else {
8185
+ whenTransitionEnds(el, type, cb);
8186
+ }
8187
+ }
8188
+ }
8189
+ });
8190
+ }
8191
 
8192
+ if (vnode.data.show) {
8193
+ toggleDisplay && toggleDisplay();
8194
+ enterHook && enterHook(el, cb);
8195
+ }
 
8196
 
8197
+ if (!expectsCSS && !userWantsControl) {
8198
+ cb();
 
 
 
 
 
 
 
 
 
 
8199
  }
8200
  }
8201
 
8202
+ function leave (vnode, rm) {
8203
+ var el = vnode.elm;
8204
 
8205
+ // call enter callback now
8206
+ if (isDef(el._enterCb)) {
8207
+ el._enterCb.cancelled = true;
8208
+ el._enterCb();
 
 
 
8209
  }
 
8210
 
8211
+ var data = resolveTransition(vnode.data.transition);
8212
+ if (isUndef(data) || el.nodeType !== 1) {
8213
+ return rm()
8214
+ }
8215
+
8216
+ /* istanbul ignore if */
8217
+ if (isDef(el._leaveCb)) {
8218
+ return
8219
+ }
8220
 
8221
+ var css = data.css;
8222
+ var type = data.type;
8223
+ var leaveClass = data.leaveClass;
8224
+ var leaveToClass = data.leaveToClass;
8225
+ var leaveActiveClass = data.leaveActiveClass;
8226
+ var beforeLeave = data.beforeLeave;
8227
+ var leave = data.leave;
8228
+ var afterLeave = data.afterLeave;
8229
+ var leaveCancelled = data.leaveCancelled;
8230
+ var delayLeave = data.delayLeave;
8231
+ var duration = data.duration;
8232
+
8233
+ var expectsCSS = css !== false && !isIE9;
8234
+ var userWantsControl = getHookArgumentsLength(leave);
8235
+
8236
+ var explicitLeaveDuration = toNumber(
8237
+ isObject(duration)
8238
+ ? duration.leave
8239
+ : duration
8240
+ );
8241
 
8242
+ if (isDef(explicitLeaveDuration)) {
8243
+ checkDuration(explicitLeaveDuration, 'leave', vnode);
8244
+ }
8245
 
8246
+ var cb = el._leaveCb = once(function () {
8247
+ if (el.parentNode && el.parentNode._pending) {
8248
+ el.parentNode._pending[vnode.key] = null;
8249
+ }
8250
+ if (expectsCSS) {
8251
+ removeTransitionClass(el, leaveToClass);
8252
+ removeTransitionClass(el, leaveActiveClass);
8253
+ }
8254
+ if (cb.cancelled) {
8255
+ if (expectsCSS) {
8256
+ removeTransitionClass(el, leaveClass);
8257
+ }
8258
+ leaveCancelled && leaveCancelled(el);
8259
+ } else {
8260
+ rm();
8261
+ afterLeave && afterLeave(el);
8262
+ }
8263
+ el._leaveCb = null;
8264
+ });
8265
 
8266
+ if (delayLeave) {
8267
+ delayLeave(performLeave);
8268
+ } else {
8269
+ performLeave();
 
 
 
 
8270
  }
8271
+
8272
+ function performLeave () {
8273
+ // the delayed leave may have already been cancelled
8274
+ if (cb.cancelled) {
8275
+ return
8276
+ }
8277
+ // record leaving element
8278
+ if (!vnode.data.show && el.parentNode) {
8279
+ (el.parentNode._pending || (el.parentNode._pending = {}))[(vnode.key)] = vnode;
8280
+ }
8281
+ beforeLeave && beforeLeave(el);
8282
+ if (expectsCSS) {
8283
+ addTransitionClass(el, leaveClass);
8284
+ addTransitionClass(el, leaveActiveClass);
8285
+ nextFrame(function () {
8286
+ removeTransitionClass(el, leaveClass);
8287
+ if (!cb.cancelled) {
8288
+ addTransitionClass(el, leaveToClass);
8289
+ if (!userWantsControl) {
8290
+ if (isValidDuration(explicitLeaveDuration)) {
8291
+ setTimeout(cb, explicitLeaveDuration);
8292
+ } else {
8293
+ whenTransitionEnds(el, type, cb);
8294
+ }
8295
+ }
8296
+ }
8297
+ });
8298
+ }
8299
+ leave && leave(el, cb);
8300
+ if (!expectsCSS && !userWantsControl) {
8301
+ cb();
8302
+ }
8303
  }
8304
  }
 
8305
 
8306
+ // only used in dev mode
8307
+ function checkDuration (val, name, vnode) {
8308
+ if (typeof val !== 'number') {
8309
+ warn(
8310
+ "<transition> explicit " + name + " duration is not a valid number - " +
8311
+ "got " + (JSON.stringify(val)) + ".",
8312
+ vnode.context
8313
+ );
8314
+ } else if (isNaN(val)) {
8315
+ warn(
8316
+ "<transition> explicit " + name + " duration is NaN - " +
8317
+ 'the duration expression might be incorrect.',
8318
+ vnode.context
8319
+ );
8320
  }
8321
  }
 
 
 
 
 
8322
 
8323
+ function isValidDuration (val) {
8324
+ return typeof val === 'number' && !isNaN(val)
8325
+ }
 
 
 
 
 
 
 
 
 
 
 
 
8326
 
8327
+ /**
8328
+ * Normalize a transition hook's argument length. The hook may be:
8329
+ * - a merged hook (invoker) with the original in .fns
8330
+ * - a wrapped component method (check ._length)
8331
+ * - a plain function (.length)
8332
+ */
8333
+ function getHookArgumentsLength (fn) {
8334
+ if (isUndef(fn)) {
8335
+ return false
8336
+ }
8337
+ var invokerFns = fn.fns;
8338
+ if (isDef(invokerFns)) {
8339
+ // invoker
8340
+ return getHookArgumentsLength(
8341
+ Array.isArray(invokerFns)
8342
+ ? invokerFns[0]
8343
+ : invokerFns
8344
+ )
8345
+ } else {
8346
+ return (fn._length || fn.length) > 1
8347
  }
8348
  }
8349
 
8350
+ function _enter (_, vnode) {
8351
+ if (vnode.data.show !== true) {
8352
+ enter(vnode);
8353
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8354
  }
8355
 
8356
+ var transition = inBrowser ? {
8357
+ create: _enter,
8358
+ activate: _enter,
8359
+ remove: function remove$$1 (vnode, rm) {
8360
+ /* istanbul ignore else */
8361
+ if (vnode.data.show !== true) {
8362
+ leave(vnode, rm);
8363
+ } else {
8364
+ rm();
8365
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8366
  }
8367
+ } : {};
8368
 
8369
+ var platformModules = [
8370
+ attrs,
8371
+ klass,
8372
+ events,
8373
+ domProps,
8374
+ style,
8375
+ transition
8376
+ ];
 
 
8377
 
8378
+ /* */
 
 
 
 
 
 
8379
 
8380
+ // the directive module should be applied last, after all
8381
+ // built-in modules have been applied.
8382
+ var modules = platformModules.concat(baseModules);
8383
+
8384
+ var patch = createPatchFunction({ nodeOps: nodeOps, modules: modules });
8385
 
8386
+ /**
8387
+ * Not type checking this file because flow doesn't like attaching
8388
+ * properties to Elements.
8389
+ */
8390
+
8391
+ /* istanbul ignore if */
8392
+ if (isIE9) {
8393
+ // http://www.matts411.com/post/internet-explorer-9-oninput/
8394
+ document.addEventListener('selectionchange', function () {
8395
+ var el = document.activeElement;
8396
+ if (el && el.vmodel) {
8397
+ trigger(el, 'input');
8398
+ }
8399
+ });
8400
  }
 
8401
 
8402
+ var directive = {
8403
+ inserted: function inserted (el, binding, vnode, oldVnode) {
8404
+ if (vnode.tag === 'select') {
8405
+ // #6903
8406
+ if (oldVnode.elm && !oldVnode.elm._vOptions) {
8407
+ mergeVNodeHook(vnode, 'postpatch', function () {
8408
+ directive.componentUpdated(el, binding, vnode);
8409
+ });
8410
+ } else {
8411
+ setSelected(el, binding, vnode.context);
8412
+ }
8413
+ el._vOptions = [].map.call(el.options, getValue);
8414
+ } else if (vnode.tag === 'textarea' || isTextInputType(el.type)) {
8415
+ el._vModifiers = binding.modifiers;
8416
+ if (!binding.modifiers.lazy) {
8417
+ el.addEventListener('compositionstart', onCompositionStart);
8418
+ el.addEventListener('compositionend', onCompositionEnd);
8419
+ // Safari < 10.2 & UIWebView doesn't fire compositionend when
8420
+ // switching focus before confirming composition choice
8421
+ // this also fixes the issue where some browsers e.g. iOS Chrome
8422
+ // fires "change" instead of "input" on autocomplete.
8423
+ el.addEventListener('change', onCompositionEnd);
8424
+ /* istanbul ignore if */
8425
+ if (isIE9) {
8426
+ el.vmodel = true;
8427
+ }
8428
+ }
8429
+ }
8430
+ },
8431
 
8432
+ componentUpdated: function componentUpdated (el, binding, vnode) {
8433
+ if (vnode.tag === 'select') {
8434
+ setSelected(el, binding, vnode.context);
8435
+ // in case the options rendered by v-for have changed,
8436
+ // it's possible that the value is out-of-sync with the rendered options.
8437
+ // detect such cases and filter out values that no longer has a matching
8438
+ // option in the DOM.
8439
+ var prevOptions = el._vOptions;
8440
+ var curOptions = el._vOptions = [].map.call(el.options, getValue);
8441
+ if (curOptions.some(function (o, i) { return !looseEqual(o, prevOptions[i]); })) {
8442
+ // trigger change event if
8443
+ // no matching option found for at least one value
8444
+ var needReset = el.multiple
8445
+ ? binding.value.some(function (v) { return hasNoMatchingOption(v, curOptions); })
8446
+ : binding.value !== binding.oldValue && hasNoMatchingOption(binding.value, curOptions);
8447
+ if (needReset) {
8448
+ trigger(el, 'change');
8449
+ }
8450
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8451
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8452
  }
8453
+ };
8454
+
8455
+ function setSelected (el, binding, vm) {
8456
+ actuallySetSelected(el, binding, vm);
8457
+ /* istanbul ignore if */
8458
+ if (isIE || isEdge) {
8459
+ setTimeout(function () {
8460
+ actuallySetSelected(el, binding, vm);
8461
+ }, 0);
8462
  }
8463
  }
 
 
8464
 
8465
+ function actuallySetSelected (el, binding, vm) {
8466
+ var value = binding.value;
8467
+ var isMultiple = el.multiple;
8468
+ if (isMultiple && !Array.isArray(value)) {
8469
+ warn(
8470
+ "<select multiple v-model=\"" + (binding.expression) + "\"> " +
8471
+ "expects an Array value for its binding, but got " + (Object.prototype.toString.call(value).slice(8, -1)),
8472
+ vm
8473
+ );
8474
+ return
 
 
 
 
 
8475
  }
8476
+ var selected, option;
8477
+ for (var i = 0, l = el.options.length; i < l; i++) {
8478
+ option = el.options[i];
8479
+ if (isMultiple) {
8480
+ selected = looseIndexOf(value, getValue(option)) > -1;
8481
+ if (option.selected !== selected) {
8482
+ option.selected = selected;
8483
+ }
8484
+ } else {
8485
+ if (looseEqual(getValue(option), value)) {
8486
+ if (el.selectedIndex !== i) {
8487
+ el.selectedIndex = i;
8488
+ }
8489
+ return
8490
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8491
  }
8492
  }
8493
+ if (!isMultiple) {
8494
+ el.selectedIndex = -1;
8495
+ }
8496
  }
8497
 
8498
+ function hasNoMatchingOption (value, options) {
8499
+ return options.every(function (o) { return !looseEqual(o, value); })
8500
  }
8501
 
8502
+ function getValue (option) {
8503
+ return '_value' in option
8504
+ ? option._value
8505
+ : option.value
 
8506
  }
 
 
 
 
8507
 
8508
+ function onCompositionStart (e) {
8509
+ e.target.composing = true;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8510
  }
 
 
 
8511
 
8512
+ function onCompositionEnd (e) {
8513
+ // prevent triggering an input event for no reason
8514
+ if (!e.target.composing) { return }
8515
+ e.target.composing = false;
8516
+ trigger(e.target, 'input');
 
8517
  }
8518
+
8519
+ function trigger (el, type) {
8520
+ var e = document.createEvent('HTMLEvents');
8521
+ e.initEvent(type, true, true);
8522
+ el.dispatchEvent(e);
 
8523
  }
 
8524
 
8525
+ /* */
 
 
8526
 
8527
+ // recursively search for possible transition defined inside the component root
8528
+ function locateNode (vnode) {
8529
+ return vnode.componentInstance && (!vnode.data || !vnode.data.transition)
8530
+ ? locateNode(vnode.componentInstance._vnode)
8531
+ : vnode
8532
  }
8533
 
8534
+ var show = {
8535
+ bind: function bind (el, ref, vnode) {
8536
+ var value = ref.value;
 
 
 
 
8537
 
8538
+ vnode = locateNode(vnode);
8539
+ var transition$$1 = vnode.data && vnode.data.transition;
8540
+ var originalDisplay = el.__vOriginalDisplay =
8541
+ el.style.display === 'none' ? '' : el.style.display;
8542
+ if (value && transition$$1) {
8543
+ vnode.data.show = true;
8544
+ enter(vnode, function () {
8545
+ el.style.display = originalDisplay;
8546
+ });
8547
+ } else {
8548
+ el.style.display = value ? originalDisplay : 'none';
8549
+ }
8550
+ },
8551
 
8552
+ update: function update (el, ref, vnode) {
8553
+ var value = ref.value;
8554
+ var oldValue = ref.oldValue;
 
 
 
8555
 
8556
+ /* istanbul ignore if */
8557
+ if (!value === !oldValue) { return }
8558
+ vnode = locateNode(vnode);
8559
+ var transition$$1 = vnode.data && vnode.data.transition;
8560
+ if (transition$$1) {
8561
+ vnode.data.show = true;
8562
+ if (value) {
8563
+ enter(vnode, function () {
8564
+ el.style.display = el.__vOriginalDisplay;
8565
+ });
8566
+ } else {
8567
+ leave(vnode, function () {
8568
+ el.style.display = 'none';
8569
+ });
8570
+ }
8571
+ } else {
8572
+ el.style.display = value ? el.__vOriginalDisplay : 'none';
8573
+ }
8574
+ },
8575
 
8576
+ unbind: function unbind (
8577
+ el,
8578
+ binding,
8579
+ vnode,
8580
+ oldVnode,
8581
+ isDestroy
8582
+ ) {
8583
+ if (!isDestroy) {
8584
+ el.style.display = el.__vOriginalDisplay;
8585
+ }
8586
  }
8587
+ };
 
 
 
 
 
 
8588
 
8589
+ var platformDirectives = {
8590
+ model: directive,
8591
+ show: show
8592
+ };
8593
 
8594
+ /* */
8595
+
8596
+ var transitionProps = {
8597
+ name: String,
8598
+ appear: Boolean,
8599
+ css: Boolean,
8600
+ mode: String,
8601
+ type: String,
8602
+ enterClass: String,
8603
+ leaveClass: String,
8604
+ enterToClass: String,
8605
+ leaveToClass: String,
8606
+ enterActiveClass: String,
8607
+ leaveActiveClass: String,
8608
+ appearClass: String,
8609
+ appearActiveClass: String,
8610
+ appearToClass: String,
8611
+ duration: [Number, String, Object]
8612
+ };
8613
 
8614
+ // in case the child is also an abstract component, e.g. <keep-alive>
8615
+ // we want to recursively retrieve the real component to be rendered
8616
+ function getRealChild (vnode) {
8617
+ var compOptions = vnode && vnode.componentOptions;
8618
+ if (compOptions && compOptions.Ctor.options.abstract) {
8619
+ return getRealChild(getFirstComponentChild(compOptions.children))
8620
  } else {
8621
+ return vnode
 
 
 
 
 
8622
  }
8623
  }
 
 
 
 
 
 
 
 
 
 
 
8624
 
8625
+ function extractTransitionData (comp) {
8626
+ var data = {};
8627
+ var options = comp.$options;
8628
+ // props
8629
+ for (var key in options.propsData) {
8630
+ data[key] = comp[key];
8631
  }
8632
+ // events.
8633
+ // extract listeners and pass them directly to the transition methods
8634
+ var listeners = options._parentListeners;
8635
+ for (var key$1 in listeners) {
8636
+ data[camelize(key$1)] = listeners[key$1];
 
 
 
 
 
 
 
 
 
8637
  }
8638
+ return data
8639
  }
 
 
 
8640
 
8641
+ function placeholder (h, rawChild) {
8642
+ if (/\d-keep-alive$/.test(rawChild.tag)) {
8643
+ return h('keep-alive', {
8644
+ props: rawChild.componentOptions.propsData
8645
+ })
 
 
 
 
8646
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8647
  }
 
 
 
 
 
 
 
8648
 
8649
+ function hasParentTransition (vnode) {
8650
+ while ((vnode = vnode.parent)) {
8651
+ if (vnode.data.transition) {
8652
+ return true
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8653
  }
8654
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8655
  }
8656
 
8657
+ function isSameChild (child, oldChild) {
8658
+ return oldChild.key === child.key && oldChild.tag === child.tag
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8659
  }
8660
 
8661
+ var isNotTextNode = function (c) { return c.tag || isAsyncPlaceholder(c); };
 
 
 
8662
 
8663
+ var isVShowDirective = function (d) { return d.name === 'show'; };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8664
 
8665
+ var Transition = {
8666
+ name: 'transition',
8667
+ props: transitionProps,
8668
+ abstract: true,
8669
 
8670
+ render: function render (h) {
8671
+ var this$1 = this;
8672
 
8673
+ var children = this.$slots.default;
8674
+ if (!children) {
8675
+ return
 
 
 
 
 
8676
  }
 
 
 
 
 
 
8677
 
8678
+ // filter out text nodes (possible whitespaces)
8679
+ children = children.filter(isNotTextNode);
8680
+ /* istanbul ignore if */
8681
+ if (!children.length) {
8682
+ return
 
 
 
 
 
8683
  }
 
 
 
8684
 
8685
+ // warn multiple elements
8686
+ if (children.length > 1) {
8687
+ warn(
8688
+ '<transition> can only be used on a single element. Use ' +
8689
+ '<transition-group> for lists.',
8690
+ this.$parent
8691
+ );
 
 
 
 
 
 
 
 
 
8692
  }
 
 
8693
 
8694
+ var mode = this.mode;
 
 
 
8695
 
8696
+ // warn invalid mode
8697
+ if (mode && mode !== 'in-out' && mode !== 'out-in'
8698
+ ) {
8699
+ warn(
8700
+ 'invalid <transition> mode: ' + mode,
8701
+ this.$parent
8702
+ );
8703
+ }
8704
 
8705
+ var rawChild = children[0];
 
8706
 
8707
+ // if this is a component root node and the component's
8708
+ // parent container node also has transition, skip.
8709
+ if (hasParentTransition(this.$vnode)) {
8710
+ return rawChild
8711
+ }
8712
 
8713
+ // apply transition data to child
8714
+ // use getRealChild() to ignore abstract components e.g. keep-alive
8715
+ var child = getRealChild(rawChild);
8716
+ /* istanbul ignore if */
8717
+ if (!child) {
8718
+ return rawChild
8719
+ }
8720
 
8721
+ if (this._leaving) {
8722
+ return placeholder(h, rawChild)
8723
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8724
 
8725
+ // ensure a key that is unique to the vnode type and to this transition
8726
+ // component instance. This key will be used to remove pending leaving nodes
8727
+ // during entering.
8728
+ var id = "__transition-" + (this._uid) + "-";
8729
+ child.key = child.key == null
8730
+ ? child.isComment
8731
+ ? id + 'comment'
8732
+ : id + child.tag
8733
+ : isPrimitive(child.key)
8734
+ ? (String(child.key).indexOf(id) === 0 ? child.key : id + child.key)
8735
+ : child.key;
8736
 
8737
+ var data = (child.data || (child.data = {})).transition = extractTransitionData(this);
8738
+ var oldRawChild = this._vnode;
8739
+ var oldChild = getRealChild(oldRawChild);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8740
 
8741
+ // mark v-show
8742
+ // so that the transition module can hand over the control to the directive
8743
+ if (child.data.directives && child.data.directives.some(isVShowDirective)) {
8744
+ child.data.show = true;
8745
+ }
8746
 
8747
+ if (
8748
+ oldChild &&
8749
+ oldChild.data &&
8750
+ !isSameChild(child, oldChild) &&
8751
+ !isAsyncPlaceholder(oldChild) &&
8752
+ // #6687 component root is a comment node
8753
+ !(oldChild.componentInstance && oldChild.componentInstance._vnode.isComment)
8754
+ ) {
8755
+ // replace old child transition data with fresh one
8756
+ // important for dynamic transitions!
8757
+ var oldData = oldChild.data.transition = extend({}, data);
8758
+ // handle transition mode
8759
+ if (mode === 'out-in') {
8760
+ // return placeholder node and queue update when leave finishes
8761
+ this._leaving = true;
8762
+ mergeVNodeHook(oldData, 'afterLeave', function () {
8763
+ this$1._leaving = false;
8764
+ this$1.$forceUpdate();
8765
+ });
8766
+ return placeholder(h, rawChild)
8767
+ } else if (mode === 'in-out') {
8768
+ if (isAsyncPlaceholder(child)) {
8769
+ return oldRawChild
8770
  }
8771
+ var delayedLeave;
8772
+ var performLeave = function () { delayedLeave(); };
8773
+ mergeVNodeHook(data, 'afterEnter', performLeave);
8774
+ mergeVNodeHook(data, 'enterCancelled', performLeave);
8775
+ mergeVNodeHook(oldData, 'delayLeave', function (leave) { delayedLeave = leave; });
8776
  }
8777
+ }
 
 
 
 
 
 
 
8778
 
8779
+ return rawChild
8780
+ }
8781
+ };
 
 
 
 
 
 
 
 
 
 
 
 
 
8782
 
8783
+ /* */
 
 
8784
 
8785
+ var props = extend({
8786
+ tag: String,
8787
+ moveClass: String
8788
+ }, transitionProps);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8789
 
8790
+ delete props.mode;
 
 
 
 
8791
 
8792
+ var TransitionGroup = {
8793
+ props: props,
 
 
 
 
 
 
 
 
 
 
8794
 
8795
+ beforeMount: function beforeMount () {
8796
+ var this$1 = this;
 
 
 
 
 
 
8797
 
8798
+ var update = this._update;
8799
+ this._update = function (vnode, hydrating) {
8800
+ var restoreActiveInstance = setActiveInstance(this$1);
8801
+ // force removing pass
8802
+ this$1.__patch__(
8803
+ this$1._vnode,
8804
+ this$1.kept,
8805
+ false, // hydrating
8806
+ true // removeOnly (!important, avoids unnecessary moves)
8807
+ );
8808
+ this$1._vnode = this$1.kept;
8809
+ restoreActiveInstance();
8810
+ update.call(this$1, vnode, hydrating);
8811
+ };
8812
+ },
8813
 
8814
+ render: function render (h) {
8815
+ var tag = this.tag || this.$vnode.data.tag || 'span';
8816
+ var map = Object.create(null);
8817
+ var prevChildren = this.prevChildren = this.children;
8818
+ var rawChildren = this.$slots.default || [];
8819
+ var children = this.children = [];
8820
+ var transitionData = extractTransitionData(this);
8821
+
8822
+ for (var i = 0; i < rawChildren.length; i++) {
8823
+ var c = rawChildren[i];
8824
+ if (c.tag) {
8825
+ if (c.key != null && String(c.key).indexOf('__vlist') !== 0) {
8826
+ children.push(c);
8827
+ map[c.key] = c
8828
+ ;(c.data || (c.data = {})).transition = transitionData;
8829
+ } else {
8830
+ var opts = c.componentOptions;
8831
+ var name = opts ? (opts.Ctor.options.name || opts.tag || '') : c.tag;
8832
+ warn(("<transition-group> children must be keyed: <" + name + ">"));
8833
+ }
8834
+ }
8835
+ }
8836
 
8837
+ if (prevChildren) {
8838
+ var kept = [];
8839
+ var removed = [];
8840
+ for (var i$1 = 0; i$1 < prevChildren.length; i$1++) {
8841
+ var c$1 = prevChildren[i$1];
8842
+ c$1.data.transition = transitionData;
8843
+ c$1.data.pos = c$1.elm.getBoundingClientRect();
8844
+ if (map[c$1.key]) {
8845
+ kept.push(c$1);
8846
+ } else {
8847
+ removed.push(c$1);
8848
+ }
8849
+ }
8850
+ this.kept = h(tag, null, kept);
8851
+ this.removed = removed;
8852
+ }
8853
 
8854
+ return h(tag, null, children)
8855
+ },
 
 
8856
 
8857
+ updated: function updated () {
8858
+ var children = this.prevChildren;
8859
+ var moveClass = this.moveClass || ((this.name || 'v') + '-move');
8860
+ if (!children.length || !this.hasMove(children[0].elm, moveClass)) {
8861
+ return
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8862
  }
8863
+
8864
+ // we divide the work into three loops to avoid mixing DOM reads and writes
8865
+ // in each iteration - which helps prevent layout thrashing.
8866
+ children.forEach(callPendingCbs);
8867
+ children.forEach(recordPosition);
8868
+ children.forEach(applyTranslation);
8869
+
8870
+ // force reflow to put everything in position
8871
+ // assign to this to avoid being removed in tree-shaking
8872
+ // $flow-disable-line
8873
+ this._reflow = document.body.offsetHeight;
8874
+
8875
+ children.forEach(function (c) {
8876
+ if (c.data.moved) {
8877
+ var el = c.elm;
8878
+ var s = el.style;
8879
+ addTransitionClass(el, moveClass);
8880
+ s.transform = s.WebkitTransform = s.transitionDuration = '';
8881
+ el.addEventListener(transitionEndEvent, el._moveCb = function cb (e) {
8882
+ if (e && e.target !== el) {
8883
+ return
8884
+ }
8885
+ if (!e || /transform$/.test(e.propertyName)) {
8886
+ el.removeEventListener(transitionEndEvent, cb);
8887
+ el._moveCb = null;
8888
+ removeTransitionClass(el, moveClass);
8889
+ }
8890
+ });
8891
+ }
8892
+ });
8893
+ },
8894
+
8895
+ methods: {
8896
+ hasMove: function hasMove (el, moveClass) {
8897
+ /* istanbul ignore if */
8898
+ if (!hasTransition) {
8899
+ return false
8900
+ }
8901
  /* istanbul ignore if */
8902
+ if (this._hasMove) {
8903
+ return this._hasMove
8904
  }
8905
+ // Detect whether an element with the move class applied has
8906
+ // CSS transitions. Since the element may be inside an entering
8907
+ // transition at this very moment, we make a clone of it and remove
8908
+ // all other transition classes applied to ensure only the move class
8909
+ // is applied.
8910
+ var clone = el.cloneNode();
8911
+ if (el._transitionClasses) {
8912
+ el._transitionClasses.forEach(function (cls) { removeClass(clone, cls); });
8913
+ }
8914
+ addClass(clone, moveClass);
8915
+ clone.style.display = 'none';
8916
+ this.$el.appendChild(clone);
8917
+ var info = getTransitionInfo(clone);
8918
+ this.$el.removeChild(clone);
8919
+ return (this._hasMove = info.hasTransform)
8920
  }
8921
  }
8922
+ };
8923
 
8924
+ function callPendingCbs (c) {
8925
+ /* istanbul ignore if */
8926
+ if (c.elm._moveCb) {
8927
+ c.elm._moveCb();
8928
+ }
8929
+ /* istanbul ignore if */
8930
+ if (c.elm._enterCb) {
8931
+ c.elm._enterCb();
 
 
 
 
 
 
 
 
 
 
 
8932
  }
8933
  }
 
8934
 
8935
+ function recordPosition (c) {
8936
+ c.data.newPos = c.elm.getBoundingClientRect();
 
 
 
 
 
8937
  }
 
8938
 
8939
+ function applyTranslation (c) {
8940
+ var oldPos = c.data.pos;
8941
+ var newPos = c.data.newPos;
8942
+ var dx = oldPos.left - newPos.left;
8943
+ var dy = oldPos.top - newPos.top;
8944
+ if (dx || dy) {
8945
+ c.data.moved = true;
8946
+ var s = c.elm.style;
8947
+ s.transform = s.WebkitTransform = "translate(" + dx + "px," + dy + "px)";
8948
+ s.transitionDuration = '0s';
8949
+ }
8950
  }
8951
+
8952
+ var platformComponents = {
8953
+ Transition: Transition,
8954
+ TransitionGroup: TransitionGroup
8955
+ };
8956
+
8957
+ /* */
8958
+
8959
+ // install platform specific utils
8960
+ Vue.config.mustUseProp = mustUseProp;
8961
+ Vue.config.isReservedTag = isReservedTag;
8962
+ Vue.config.isReservedAttr = isReservedAttr;
8963
+ Vue.config.getTagNamespace = getTagNamespace;
8964
+ Vue.config.isUnknownElement = isUnknownElement;
8965
+
8966
+ // install platform runtime directives & components
8967
+ extend(Vue.options.directives, platformDirectives);
8968
+ extend(Vue.options.components, platformComponents);
8969
+
8970
+ // install platform patch function
8971
+ Vue.prototype.__patch__ = inBrowser ? patch : noop;
8972
+
8973
+ // public mount method
8974
+ Vue.prototype.$mount = function (
8975
+ el,
8976
+ hydrating
8977
+ ) {
8978
+ el = el && inBrowser ? query(el) : undefined;
8979
+ return mountComponent(this, el, hydrating)
8980
+ };
8981
+
8982
+ // devtools global hook
8983
+ /* istanbul ignore next */
8984
+ if (inBrowser) {
8985
+ setTimeout(function () {
8986
+ if (config.devtools) {
8987
+ if (devtools) {
8988
+ devtools.emit('init', Vue);
8989
+ } else {
8990
+ console[console.info ? 'info' : 'log'](
8991
+ 'Download the Vue Devtools extension for a better development experience:\n' +
8992
+ 'https://github.com/vuejs/vue-devtools'
8993
+ );
8994
  }
 
8995
  }
8996
+ if (config.productionTip !== false &&
8997
+ typeof console !== 'undefined'
8998
+ ) {
8999
+ console[console.info ? 'info' : 'log'](
9000
+ "You are running Vue in development mode.\n" +
9001
+ "Make sure to turn on production mode when deploying for production.\n" +
9002
+ "See more tips at https://vuejs.org/guide/deployment.html"
9003
+ );
9004
+ }
9005
+ }, 0);
9006
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9007
 
9008
+ /* */
 
 
9009
 
9010
+ var defaultTagRE = /\{\{((?:.|\r?\n)+?)\}\}/g;
9011
+ var regexEscapeRE = /[-.*+?^${}()|[\]\/\\]/g;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9012
 
9013
+ var buildRegex = cached(function (delimiters) {
9014
+ var open = delimiters[0].replace(regexEscapeRE, '\\$&');
9015
+ var close = delimiters[1].replace(regexEscapeRE, '\\$&');
9016
+ return new RegExp(open + '((?:.|\\n)+?)' + close, 'g')
9017
+ });
9018
+
9019
+
9020
+
9021
+ function parseText (
9022
+ text,
9023
+ delimiters
9024
  ) {
9025
+ var tagRE = delimiters ? buildRegex(delimiters) : defaultTagRE;
9026
+ if (!tagRE.test(text)) {
9027
+ return
9028
+ }
9029
+ var tokens = [];
9030
+ var rawTokens = [];
9031
+ var lastIndex = tagRE.lastIndex = 0;
9032
+ var match, index, tokenValue;
9033
+ while ((match = tagRE.exec(text))) {
9034
+ index = match.index;
9035
+ // push text token
9036
+ if (index > lastIndex) {
9037
+ rawTokens.push(tokenValue = text.slice(lastIndex, index));
9038
+ tokens.push(JSON.stringify(tokenValue));
9039
+ }
9040
+ // tag token
9041
+ var exp = parseFilters(match[1].trim());
9042
+ tokens.push(("_s(" + exp + ")"));
9043
+ rawTokens.push({ '@binding': exp });
9044
+ lastIndex = index + match[0].length;
9045
+ }
9046
+ if (lastIndex < text.length) {
9047
+ rawTokens.push(tokenValue = text.slice(lastIndex));
9048
+ tokens.push(JSON.stringify(tokenValue));
9049
+ }
9050
+ return {
9051
+ expression: tokens.join('+'),
9052
+ tokens: rawTokens
9053
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
9054
  }
 
9055
 
9056
+ /* */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9057
 
9058
+ function transformNode (el, options) {
9059
+ var warn = options.warn || baseWarn;
9060
+ var staticClass = getAndRemoveAttr(el, 'class');
9061
+ if (staticClass) {
9062
+ var res = parseText(staticClass, options.delimiters);
9063
+ if (res) {
9064
+ warn(
9065
+ "class=\"" + staticClass + "\": " +
9066
+ 'Interpolation inside attributes has been removed. ' +
9067
+ 'Use v-bind or the colon shorthand instead. For example, ' +
9068
+ 'instead of <div class="{{ val }}">, use <div :class="val">.',
9069
+ el.rawAttrsMap['class']
9070
+ );
9071
+ }
9072
+ }
9073
+ if (staticClass) {
9074
+ el.staticClass = JSON.stringify(staticClass);
9075
+ }
9076
+ var classBinding = getBindingAttr(el, 'class', false /* getStatic */);
9077
+ if (classBinding) {
9078
+ el.classBinding = classBinding;
9079
+ }
9080
  }
 
9081
 
9082
+ function genData (el) {
9083
+ var data = '';
9084
+ if (el.staticClass) {
9085
+ data += "staticClass:" + (el.staticClass) + ",";
9086
  }
9087
+ if (el.classBinding) {
9088
+ data += "class:" + (el.classBinding) + ",";
9089
+ }
9090
+ return data
9091
  }
 
 
 
 
 
9092
 
9093
+ var klass$1 = {
9094
+ staticKeys: ['staticClass'],
9095
+ transformNode: transformNode,
9096
+ genData: genData
9097
+ };
9098
 
9099
+ /* */
 
9100
 
9101
+ function transformNode$1 (el, options) {
9102
+ var warn = options.warn || baseWarn;
9103
+ var staticStyle = getAndRemoveAttr(el, 'style');
9104
+ if (staticStyle) {
9105
+ /* istanbul ignore if */
9106
+ {
9107
+ var res = parseText(staticStyle, options.delimiters);
9108
+ if (res) {
9109
+ warn(
9110
+ "style=\"" + staticStyle + "\": " +
9111
+ 'Interpolation inside attributes has been removed. ' +
9112
+ 'Use v-bind or the colon shorthand instead. For example, ' +
9113
+ 'instead of <div style="{{ val }}">, use <div :style="val">.',
9114
+ el.rawAttrsMap['style']
9115
+ );
9116
+ }
9117
+ }
9118
+ el.staticStyle = JSON.stringify(parseStyleText(staticStyle));
9119
  }
9120
 
9121
+ var styleBinding = getBindingAttr(el, 'style', false /* getStatic */);
9122
+ if (styleBinding) {
9123
+ el.styleBinding = styleBinding;
 
 
9124
  }
9125
+ }
9126
 
9127
+ function genData$1 (el) {
9128
+ var data = '';
9129
+ if (el.staticStyle) {
9130
+ data += "staticStyle:" + (el.staticStyle) + ",";
9131
+ }
9132
+ if (el.styleBinding) {
9133
+ data += "style:(" + (el.styleBinding) + "),";
9134
  }
9135
+ return data
9136
+ }
9137
 
9138
+ var style$1 = {
9139
+ staticKeys: ['staticStyle'],
9140
+ transformNode: transformNode$1,
9141
+ genData: genData$1
9142
+ };
9143
 
9144
+ /* */
 
 
 
 
 
 
 
 
9145
 
9146
+ var decoder;
9147
 
9148
+ var he = {
9149
+ decode: function decode (html) {
9150
+ decoder = decoder || document.createElement('div');
9151
+ decoder.innerHTML = html;
9152
+ return decoder.textContent
9153
  }
9154
+ };
9155
 
9156
+ /* */
 
 
 
 
 
 
9157
 
9158
+ var isUnaryTag = makeMap(
9159
+ 'area,base,br,col,embed,frame,hr,img,input,isindex,keygen,' +
9160
+ 'link,meta,param,source,track,wbr'
9161
+ );
9162
 
9163
+ // Elements that you can, intentionally, leave open
9164
+ // (and which close themselves)
9165
+ var canBeLeftOpenTag = makeMap(
9166
+ 'colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source'
9167
+ );
 
 
 
 
 
 
9168
 
9169
+ // HTML5 tags https://html.spec.whatwg.org/multipage/indices.html#elements-3
9170
+ // Phrasing Content https://html.spec.whatwg.org/multipage/dom.html#phrasing-content
9171
+ var isNonPhrasingTag = makeMap(
9172
+ 'address,article,aside,base,blockquote,body,caption,col,colgroup,dd,' +
9173
+ 'details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,' +
9174
+ 'h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,' +
9175
+ 'optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,' +
9176
+ 'title,tr,track'
9177
+ );
9178
 
9179
+ /**
9180
+ * Not type-checking this file because it's mostly vendor code.
9181
+ */
 
 
9182
 
9183
+ // Regular Expressions for parsing tags and attributes
9184
+ var attribute = /^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/;
9185
+ var dynamicArgAttribute = /^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/;
9186
+ var ncname = "[a-zA-Z_][\\-\\.0-9_a-zA-Z" + unicodeLetters + "]*";
9187
+ var qnameCapture = "((?:" + ncname + "\\:)?" + ncname + ")";
9188
+ var startTagOpen = new RegExp(("^<" + qnameCapture));
9189
+ var startTagClose = /^\s*(\/?)>/;
9190
+ var endTag = new RegExp(("^<\\/" + qnameCapture + "[^>]*>"));
9191
+ var doctype = /^<!DOCTYPE [^>]+>/i;
9192
+ // #7298: escape - to avoid being pased as HTML comment when inlined in page
9193
+ var comment = /^<!\--/;
9194
+ var conditionalComment = /^<!\[/;
9195
+
9196
+ // Special Elements (can contain anything)
9197
+ var isPlainTextElement = makeMap('script,style,textarea', true);
9198
+ var reCache = {};
9199
+
9200
+ var decodingMap = {
9201
+ '&lt;': '<',
9202
+ '&gt;': '>',
9203
+ '&quot;': '"',
9204
+ '&amp;': '&',
9205
+ '&#10;': '\n',
9206
+ '&#9;': '\t',
9207
+ '&#39;': "'"
9208
+ };
9209
+ var encodedAttr = /&(?:lt|gt|quot|amp|#39);/g;
9210
+ var encodedAttrWithNewLines = /&(?:lt|gt|quot|amp|#39|#10|#9);/g;
9211
+
9212
+ // #5992
9213
+ var isIgnoreNewlineTag = makeMap('pre,textarea', true);
9214
+ var shouldIgnoreFirstNewline = function (tag, html) { return tag && isIgnoreNewlineTag(tag) && html[0] === '\n'; };
9215
+
9216
+ function decodeAttr (value, shouldDecodeNewlines) {
9217
+ var re = shouldDecodeNewlines ? encodedAttrWithNewLines : encodedAttr;
9218
+ return value.replace(re, function (match) { return decodingMap[match]; })
9219
+ }
9220
+
9221
+ function parseHTML (html, options) {
9222
+ var stack = [];
9223
+ var expectHTML = options.expectHTML;
9224
+ var isUnaryTag$$1 = options.isUnaryTag || no;
9225
+ var canBeLeftOpenTag$$1 = options.canBeLeftOpenTag || no;
9226
+ var index = 0;
9227
+ var last, lastTag;
9228
+ while (html) {
9229
+ last = html;
9230
+ // Make sure we're not in a plaintext content element like script/style
9231
+ if (!lastTag || !isPlainTextElement(lastTag)) {
9232
+ var textEnd = html.indexOf('<');
9233
+ if (textEnd === 0) {
9234
+ // Comment:
9235
+ if (comment.test(html)) {
9236
+ var commentEnd = html.indexOf('-->');
9237
+
9238
+ if (commentEnd >= 0) {
9239
+ if (options.shouldKeepComment) {
9240
+ options.comment(html.substring(4, commentEnd), index, index + commentEnd + 3);
9241
+ }
9242
+ advance(commentEnd + 3);
9243
+ continue
9244
+ }
9245
+ }
9246
 
9247
+ // http://en.wikipedia.org/wiki/Conditional_comment#Downlevel-revealed_conditional_comment
9248
+ if (conditionalComment.test(html)) {
9249
+ var conditionalEnd = html.indexOf(']>');
9250
 
9251
+ if (conditionalEnd >= 0) {
9252
+ advance(conditionalEnd + 2);
9253
+ continue
9254
+ }
9255
+ }
9256
+
9257
+ // Doctype:
9258
+ var doctypeMatch = html.match(doctype);
9259
+ if (doctypeMatch) {
9260
+ advance(doctypeMatch[0].length);
9261
+ continue
9262
+ }
9263
 
9264
+ // End tag:
9265
+ var endTagMatch = html.match(endTag);
9266
+ if (endTagMatch) {
9267
+ var curIndex = index;
9268
+ advance(endTagMatch[0].length);
9269
+ parseEndTag(endTagMatch[1], curIndex, index);
9270
+ continue
9271
+ }
9272
 
9273
+ // Start tag:
9274
+ var startTagMatch = parseStartTag();
9275
+ if (startTagMatch) {
9276
+ handleStartTag(startTagMatch);
9277
+ if (shouldIgnoreFirstNewline(startTagMatch.tagName, html)) {
9278
+ advance(1);
9279
+ }
9280
+ continue
9281
+ }
9282
+ }
9283
 
9284
+ var text = (void 0), rest = (void 0), next = (void 0);
9285
+ if (textEnd >= 0) {
9286
+ rest = html.slice(textEnd);
9287
+ while (
9288
+ !endTag.test(rest) &&
9289
+ !startTagOpen.test(rest) &&
9290
+ !comment.test(rest) &&
9291
+ !conditionalComment.test(rest)
9292
+ ) {
9293
+ // < in plain text, be forgiving and treat it as text
9294
+ next = rest.indexOf('<', 1);
9295
+ if (next < 0) { break }
9296
+ textEnd += next;
9297
+ rest = html.slice(textEnd);
9298
+ }
9299
+ text = html.substring(0, textEnd);
9300
+ }
9301
 
9302
+ if (textEnd < 0) {
9303
+ text = html;
9304
+ }
9305
 
9306
+ if (text) {
9307
+ advance(text.length);
9308
+ }
9309
 
9310
+ if (options.chars && text) {
9311
+ options.chars(text, index - text.length, index);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9312
  }
9313
+ } else {
9314
+ var endTagLength = 0;
9315
+ var stackedTag = lastTag.toLowerCase();
9316
+ var reStackedTag = reCache[stackedTag] || (reCache[stackedTag] = new RegExp('([\\s\\S]*?)(</' + stackedTag + '[^>]*>)', 'i'));
9317
+ var rest$1 = html.replace(reStackedTag, function (all, text, endTag) {
9318
+ endTagLength = endTag.length;
9319
+ if (!isPlainTextElement(stackedTag) && stackedTag !== 'noscript') {
9320
+ text = text
9321
+ .replace(/<!\--([\s\S]*?)-->/g, '$1') // #7298
9322
+ .replace(/<!\[CDATA\[([\s\S]*?)]]>/g, '$1');
9323
+ }
9324
+ if (shouldIgnoreFirstNewline(stackedTag, text)) {
9325
+ text = text.slice(1);
9326
+ }
9327
+ if (options.chars) {
9328
+ options.chars(text);
9329
+ }
9330
+ return ''
9331
+ });
9332
+ index += html.length - rest$1.length;
9333
+ html = rest$1;
9334
+ parseEndTag(stackedTag, index - endTagLength, index);
9335
  }
 
9336
 
9337
+ if (html === last) {
9338
+ options.chars && options.chars(html);
9339
+ if (!stack.length && options.warn) {
9340
+ options.warn(("Mal-formatted tag at end of template: \"" + html + "\""), { start: index + html.length });
 
 
 
 
 
 
 
9341
  }
9342
+ break
9343
  }
 
 
9344
  }
9345
 
9346
+ // Clean up any remaining tags
9347
+ parseEndTag();
9348
 
9349
+ function advance (n) {
9350
+ index += n;
9351
+ html = html.substring(n);
9352
+ }
 
 
 
 
 
 
9353
 
9354
+ function parseStartTag () {
9355
+ var start = html.match(startTagOpen);
9356
+ if (start) {
9357
+ var match = {
9358
+ tagName: start[1],
9359
+ attrs: [],
9360
+ start: index
9361
+ };
9362
+ advance(start[0].length);
9363
+ var end, attr;
9364
+ while (!(end = html.match(startTagClose)) && (attr = html.match(dynamicArgAttribute) || html.match(attribute))) {
9365
+ attr.start = index;
9366
+ advance(attr[0].length);
9367
+ attr.end = index;
9368
+ match.attrs.push(attr);
9369
+ }
9370
+ if (end) {
9371
+ match.unarySlash = end[1];
9372
+ advance(end[0].length);
9373
+ match.end = index;
9374
+ return match
9375
+ }
9376
+ }
9377
  }
9378
 
9379
+ function handleStartTag (match) {
9380
+ var tagName = match.tagName;
9381
+ var unarySlash = match.unarySlash;
 
 
9382
 
9383
+ if (expectHTML) {
9384
+ if (lastTag === 'p' && isNonPhrasingTag(tagName)) {
9385
+ parseEndTag(lastTag);
9386
+ }
9387
+ if (canBeLeftOpenTag$$1(tagName) && lastTag === tagName) {
9388
+ parseEndTag(tagName);
9389
+ }
 
 
 
 
 
 
 
 
 
 
 
9390
  }
 
 
9391
 
9392
+ var unary = isUnaryTag$$1(tagName) || !!unarySlash;
9393
+
9394
+ var l = match.attrs.length;
9395
+ var attrs = new Array(l);
9396
+ for (var i = 0; i < l; i++) {
9397
+ var args = match.attrs[i];
9398
+ var value = args[3] || args[4] || args[5] || '';
9399
+ var shouldDecodeNewlines = tagName === 'a' && args[1] === 'href'
9400
+ ? options.shouldDecodeNewlinesForHref
9401
+ : options.shouldDecodeNewlines;
9402
+ attrs[i] = {
9403
+ name: args[1],
9404
+ value: decodeAttr(value, shouldDecodeNewlines)
9405
+ };
9406
+ if (options.outputSourceRange) {
9407
+ attrs[i].start = args.start + args[0].match(/^\s*/).length;
9408
+ attrs[i].end = args.end;
9409
+ }
9410
  }
9411
+
9412
+ if (!unary) {
9413
+ stack.push({ tag: tagName, lowerCasedTag: tagName.toLowerCase(), attrs: attrs, start: match.start, end: match.end });
9414
+ lastTag = tagName;
 
 
 
 
9415
  }
 
 
 
 
 
 
 
 
 
9416
 
9417
+ if (options.start) {
9418
+ options.start(tagName, attrs, unary, match.start, match.end);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9419
  }
9420
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
9421
 
9422
+ function parseEndTag (tagName, start, end) {
9423
+ var pos, lowerCasedTagName;
9424
+ if (start == null) { start = index; }
9425
+ if (end == null) { end = index; }
9426
 
9427
+ // Find the closest opened tag of the same type
9428
+ if (tagName) {
9429
+ lowerCasedTagName = tagName.toLowerCase();
9430
+ for (pos = stack.length - 1; pos >= 0; pos--) {
9431
+ if (stack[pos].lowerCasedTag === lowerCasedTagName) {
9432
+ break
9433
+ }
9434
+ }
9435
+ } else {
9436
+ // If no tag name is provided, clean shop
9437
+ pos = 0;
9438
+ }
9439
+
9440
+ if (pos >= 0) {
9441
+ // Close all the open elements, up the stack
9442
+ for (var i = stack.length - 1; i >= pos; i--) {
9443
+ if (i > pos || !tagName &&
9444
+ options.warn
9445
+ ) {
9446
+ options.warn(
9447
+ ("tag <" + (stack[i].tag) + "> has no matching end tag."),
9448
+ { start: stack[i].start }
9449
+ );
9450
+ }
9451
+ if (options.end) {
9452
+ options.end(stack[i].tag, start, end);
9453
+ }
9454
+ }
9455
 
9456
+ // Remove the open elements from the stack
9457
+ stack.length = pos;
9458
+ lastTag = pos && stack[pos - 1].tag;
9459
+ } else if (lowerCasedTagName === 'br') {
9460
+ if (options.start) {
9461
+ options.start(tagName, [], true, start, end);
9462
+ }
9463
+ } else if (lowerCasedTagName === 'p') {
9464
+ if (options.start) {
9465
+ options.start(tagName, [], false, start, end);
9466
+ }
9467
+ if (options.end) {
9468
+ options.end(tagName, start, end);
9469
+ }
9470
+ }
9471
+ }
9472
+ }
9473
 
9474
+ /* */
9475
 
9476
+ var onRE = /^@|^v-on:/;
9477
+ var dirRE = /^v-|^@|^:/;
9478
+ var forAliasRE = /([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/;
9479
+ var forIteratorRE = /,([^,\}\]]*)(?:,([^,\}\]]*))?$/;
9480
+ var stripParensRE = /^\(|\)$/g;
9481
+ var dynamicArgRE = /^\[.*\]$/;
9482
 
9483
+ var argRE = /:(.*)$/;
9484
+ var bindRE = /^:|^\.|^v-bind:/;
9485
+ var modifierRE = /\.[^.]+/g;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9486
 
9487
+ var slotRE = /^v-slot(:|$)|^#/;
9488
 
9489
+ var lineBreakRE = /[\r\n]/;
9490
+ var whitespaceRE$1 = /\s+/g;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9491
 
9492
+ var invalidAttributeRE = /[\s"'<>\/=]/;
 
 
 
 
 
 
 
 
 
9493
 
9494
+ var decodeHTMLCached = cached(he.decode);
 
 
 
 
9495
 
9496
+ var emptySlotScopeToken = "_empty_";
9497
 
9498
+ // configurable state
9499
+ var warn$2;
9500
+ var delimiters;
9501
+ var transforms;
9502
+ var preTransforms;
9503
+ var postTransforms;
9504
+ var platformIsPreTag;
9505
+ var platformMustUseProp;
9506
+ var platformGetTagNamespace;
9507
+ var maybeComponent;
9508
+
9509
+ function createASTElement (
9510
+ tag,
9511
+ attrs,
9512
+ parent
9513
+ ) {
9514
+ return {
9515
+ type: 1,
9516
+ tag: tag,
9517
+ attrsList: attrs,
9518
+ attrsMap: makeAttrsMap(attrs),
9519
+ rawAttrsMap: {},
9520
+ parent: parent,
9521
+ children: []
9522
  }
 
9523
  }
9524
 
9525
+ /**
9526
+ * Convert HTML string to AST.
9527
+ */
9528
+ function parse (
9529
+ template,
9530
+ options
9531
+ ) {
9532
+ warn$2 = options.warn || baseWarn;
9533
 
9534
+ platformIsPreTag = options.isPreTag || no;
9535
+ platformMustUseProp = options.mustUseProp || no;
9536
+ platformGetTagNamespace = options.getTagNamespace || no;
9537
+ var isReservedTag = options.isReservedTag || no;
9538
+ maybeComponent = function (el) { return !!el.component || !isReservedTag(el.tag); };
 
 
 
 
 
9539
 
9540
+ transforms = pluckModuleFunction(options.modules, 'transformNode');
9541
+ preTransforms = pluckModuleFunction(options.modules, 'preTransformNode');
9542
+ postTransforms = pluckModuleFunction(options.modules, 'postTransformNode');
 
 
9543
 
9544
+ delimiters = options.delimiters;
9545
 
9546
+ var stack = [];
9547
+ var preserveWhitespace = options.preserveWhitespace !== false;
9548
+ var whitespaceOption = options.whitespace;
9549
+ var root;
9550
+ var currentParent;
9551
+ var inVPre = false;
9552
+ var inPre = false;
9553
+ var warned = false;
9554
 
9555
+ function warnOnce (msg, range) {
9556
+ if (!warned) {
9557
+ warned = true;
9558
+ warn$2(msg, range);
9559
+ }
9560
+ }
 
9561
 
9562
+ function closeElement (element) {
9563
+ trimEndingWhitespace(element);
9564
+ if (!inVPre && !element.processed) {
9565
+ element = processElement(element, options);
9566
+ }
9567
+ // tree management
9568
+ if (!stack.length && element !== root) {
9569
+ // allow root elements with v-if, v-else-if and v-else
9570
+ if (root.if && (element.elseif || element.else)) {
9571
+ {
9572
+ checkRootConstraints(element);
9573
+ }
9574
+ addIfCondition(root, {
9575
+ exp: element.elseif,
9576
+ block: element
9577
+ });
9578
+ } else {
9579
+ warnOnce(
9580
+ "Component template should contain exactly one root element. " +
9581
+ "If you are using v-if on multiple elements, " +
9582
+ "use v-else-if to chain them instead.",
9583
+ { start: element.start }
9584
+ );
9585
+ }
9586
+ }
9587
+ if (currentParent && !element.forbidden) {
9588
+ if (element.elseif || element.else) {
9589
+ processIfConditions(element, currentParent);
9590
+ } else {
9591
+ if (element.slotScope) {
9592
+ // scoped slot
9593
+ // keep it in the children list so that v-else(-if) conditions can
9594
+ // find it as the prev node.
9595
+ var name = element.slotTarget || '"default"'
9596
+ ;(currentParent.scopedSlots || (currentParent.scopedSlots = {}))[name] = element;
9597
+ }
9598
+ currentParent.children.push(element);
9599
+ element.parent = currentParent;
9600
+ }
9601
+ }
9602
 
9603
+ // final children cleanup
9604
+ // filter out scoped slots
9605
+ element.children = element.children.filter(function (c) { return !(c).slotScope; });
9606
+ // remove trailing whitespace node again
9607
+ trimEndingWhitespace(element);
9608
 
9609
+ // check pre state
9610
+ if (element.pre) {
9611
+ inVPre = false;
9612
+ }
9613
+ if (platformIsPreTag(element.tag)) {
9614
+ inPre = false;
9615
+ }
9616
+ // apply post-transforms
9617
+ for (var i = 0; i < postTransforms.length; i++) {
9618
+ postTransforms[i](element, options);
9619
+ }
9620
+ }
9621
 
9622
+ function trimEndingWhitespace (el) {
9623
+ // remove trailing whitespace node
9624
+ if (!inPre) {
9625
+ var lastNode;
9626
+ while (
9627
+ (lastNode = el.children[el.children.length - 1]) &&
9628
+ lastNode.type === 3 &&
9629
+ lastNode.text === ' '
9630
+ ) {
9631
+ el.children.pop();
9632
+ }
9633
+ }
9634
+ }
9635
 
9636
+ function checkRootConstraints (el) {
9637
+ if (el.tag === 'slot' || el.tag === 'template') {
9638
+ warnOnce(
9639
+ "Cannot use <" + (el.tag) + "> as component root element because it may " +
9640
+ 'contain multiple nodes.',
9641
+ { start: el.start }
9642
+ );
9643
+ }
9644
+ if (el.attrsMap.hasOwnProperty('v-for')) {
9645
+ warnOnce(
9646
+ 'Cannot use v-for on stateful component root element because ' +
9647
+ 'it renders multiple elements.',
9648
+ el.rawAttrsMap['v-for']
9649
+ );
9650
+ }
9651
+ }
9652
 
9653
+ parseHTML(template, {
9654
+ warn: warn$2,
9655
+ expectHTML: options.expectHTML,
9656
+ isUnaryTag: options.isUnaryTag,
9657
+ canBeLeftOpenTag: options.canBeLeftOpenTag,
9658
+ shouldDecodeNewlines: options.shouldDecodeNewlines,
9659
+ shouldDecodeNewlinesForHref: options.shouldDecodeNewlinesForHref,
9660
+ shouldKeepComment: options.comments,
9661
+ outputSourceRange: options.outputSourceRange,
9662
+ start: function start (tag, attrs, unary, start$1) {
9663
+ // check namespace.
9664
+ // inherit parent ns if there is one
9665
+ var ns = (currentParent && currentParent.ns) || platformGetTagNamespace(tag);
9666
 
9667
+ // handle IE svg bug
9668
+ /* istanbul ignore if */
9669
+ if (isIE && ns === 'svg') {
9670
+ attrs = guardIESVGBug(attrs);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9671
  }
9672
 
9673
+ var element = createASTElement(tag, attrs, currentParent);
9674
+ if (ns) {
9675
+ element.ns = ns;
9676
+ }
9677
 
9678
+ {
9679
+ if (options.outputSourceRange) {
9680
+ element.start = start$1;
9681
+ element.rawAttrsMap = element.attrsList.reduce(function (cumulated, attr) {
9682
+ cumulated[attr.name] = attr;
9683
+ return cumulated
9684
+ }, {});
9685
  }
9686
+ attrs.forEach(function (attr) {
9687
+ if (invalidAttributeRE.test(attr.name)) {
9688
+ warn$2(
9689
+ "Invalid dynamic argument expression: attribute names cannot contain " +
9690
+ "spaces, quotes, <, >, / or =.",
9691
+ {
9692
+ start: attr.start + attr.name.indexOf("["),
9693
+ end: attr.start + attr.name.length
9694
+ }
9695
+ );
9696
+ }
9697
+ });
9698
  }
9699
 
9700
+ if (isForbiddenTag(element) && !isServerRendering()) {
9701
+ element.forbidden = true;
9702
+ warn$2(
9703
+ 'Templates should only be responsible for mapping the state to the ' +
9704
+ 'UI. Avoid placing tags with side-effects in your templates, such as ' +
9705
+ "<" + tag + ">" + ', as they will not be parsed.',
9706
+ { start: element.start }
9707
+ );
9708
  }
9709
 
9710
+ // apply pre-transforms
9711
+ for (var i = 0; i < preTransforms.length; i++) {
9712
+ element = preTransforms[i](element, options) || element;
 
 
 
 
9713
  }
9714
 
9715
+ if (!inVPre) {
9716
+ processPre(element);
9717
+ if (element.pre) {
9718
+ inVPre = true;
 
 
9719
  }
 
9720
  }
9721
+ if (platformIsPreTag(element.tag)) {
9722
+ inPre = true;
9723
+ }
9724
+ if (inVPre) {
9725
+ processRawAttrs(element);
9726
+ } else if (!element.processed) {
9727
+ // structural directives
9728
+ processFor(element);
9729
+ processIf(element);
9730
+ processOnce(element);
9731
+ }
9732
 
9733
+ if (!root) {
9734
+ root = element;
9735
+ {
9736
+ checkRootConstraints(root);
9737
+ }
 
 
 
 
 
 
 
 
 
9738
  }
 
 
 
9739
 
9740
+ if (!unary) {
9741
+ currentParent = element;
9742
+ stack.push(element);
9743
+ } else {
9744
+ closeElement(element);
9745
+ }
9746
+ },
9747
+
9748
+ end: function end (tag, start, end$1) {
9749
+ var element = stack[stack.length - 1];
9750
+ // pop stack
9751
+ stack.length -= 1;
9752
+ currentParent = stack[stack.length - 1];
9753
+ if (options.outputSourceRange) {
9754
+ element.end = end$1;
9755
+ }
9756
+ closeElement(element);
9757
+ },
9758
+
9759
+ chars: function chars (text, start, end) {
9760
+ if (!currentParent) {
9761
+ {
9762
+ if (text === template) {
9763
+ warnOnce(
9764
+ 'Component template requires a root element, rather than just text.',
9765
+ { start: start }
9766
+ );
9767
+ } else if ((text = text.trim())) {
9768
+ warnOnce(
9769
+ ("text \"" + text + "\" outside root element will be ignored."),
9770
+ { start: start }
9771
+ );
9772
+ }
9773
+ }
9774
+ return
9775
+ }
9776
+ // IE textarea placeholder bug
9777
+ /* istanbul ignore if */
9778
+ if (isIE &&
9779
+ currentParent.tag === 'textarea' &&
9780
+ currentParent.attrsMap.placeholder === text
9781
+ ) {
9782
+ return
9783
+ }
9784
+ var children = currentParent.children;
9785
+ if (inPre || text.trim()) {
9786
+ text = isTextTag(currentParent) ? text : decodeHTMLCached(text);
9787
+ } else if (!children.length) {
9788
+ // remove the whitespace-only node right after an opening tag
9789
+ text = '';
9790
+ } else if (whitespaceOption) {
9791
+ if (whitespaceOption === 'condense') {
9792
+ // in condense mode, remove the whitespace node if it contains
9793
+ // line break, otherwise condense to a single space
9794
+ text = lineBreakRE.test(text) ? '' : ' ';
9795
+ } else {
9796
+ text = ' ';
9797
+ }
9798
+ } else {
9799
+ text = preserveWhitespace ? ' ' : '';
9800
+ }
9801
+ if (text) {
9802
+ if (whitespaceOption === 'condense') {
9803
+ // condense consecutive whitespaces into single space
9804
+ text = text.replace(whitespaceRE$1, ' ');
9805
+ }
9806
+ var res;
9807
+ var child;
9808
+ if (!inVPre && text !== ' ' && (res = parseText(text, delimiters))) {
9809
+ child = {
9810
+ type: 2,
9811
+ expression: res.expression,
9812
+ tokens: res.tokens,
9813
+ text: text
9814
+ };
9815
+ } else if (text !== ' ' || !children.length || children[children.length - 1].text !== ' ') {
9816
+ child = {
9817
+ type: 3,
9818
+ text: text
9819
+ };
9820
+ }
9821
+ if (child) {
9822
+ if (options.outputSourceRange) {
9823
+ child.start = start;
9824
+ child.end = end;
9825
+ }
9826
+ children.push(child);
9827
+ }
9828
+ }
9829
+ },
9830
+ comment: function comment (text, start, end) {
9831
+ // adding anyting as a sibling to the root node is forbidden
9832
+ // comments should still be allowed, but ignored
9833
+ if (currentParent) {
9834
+ var child = {
9835
+ type: 3,
9836
+ text: text,
9837
+ isComment: true
9838
+ };
9839
+ if (options.outputSourceRange) {
9840
+ child.start = start;
9841
+ child.end = end;
9842
+ }
9843
+ currentParent.children.push(child);
9844
+ }
9845
  }
9846
+ });
9847
+ return root
9848
+ }
9849
 
9850
+ function processPre (el) {
9851
+ if (getAndRemoveAttr(el, 'v-pre') != null) {
9852
+ el.pre = true;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9853
  }
9854
+ }
9855
 
9856
+ function processRawAttrs (el) {
9857
+ var list = el.attrsList;
9858
+ var len = list.length;
9859
+ if (len) {
9860
+ var attrs = el.attrs = new Array(len);
9861
+ for (var i = 0; i < len; i++) {
9862
+ attrs[i] = {
9863
+ name: list[i].name,
9864
+ value: JSON.stringify(list[i].value)
9865
+ };
9866
+ if (list[i].start != null) {
9867
+ attrs[i].start = list[i].start;
9868
+ attrs[i].end = list[i].end;
9869
+ }
9870
  }
9871
+ } else if (!el.pre) {
9872
+ // non root node in pre blocks with no attributes
9873
+ el.plain = true;
9874
  }
9875
  }
9876
 
9877
+ function processElement (
9878
+ element,
9879
+ options
9880
+ ) {
9881
+ processKey(element);
9882
+
9883
+ // determine whether this is a plain element after
9884
+ // removing structural attributes
9885
+ element.plain = (
9886
+ !element.key &&
9887
+ !element.scopedSlots &&
9888
+ !element.attrsList.length
9889
+ );
9890
 
9891
+ processRef(element);
9892
+ processSlotContent(element);
9893
+ processSlotOutlet(element);
9894
+ processComponent(element);
9895
+ for (var i = 0; i < transforms.length; i++) {
9896
+ element = transforms[i](element, options) || element;
9897
+ }
9898
+ processAttrs(element);
9899
+ return element
9900
  }
9901
 
9902
+ function processKey (el) {
9903
+ var exp = getBindingAttr(el, 'key');
9904
+ if (exp) {
9905
+ {
9906
+ if (el.tag === 'template') {
9907
+ warn$2(
9908
+ "<template> cannot be keyed. Place the key on real elements instead.",
9909
+ getRawBindingAttr(el, 'key')
9910
+ );
9911
+ }
9912
+ if (el.for) {
9913
+ var iterator = el.iterator2 || el.iterator1;
9914
+ var parent = el.parent;
9915
+ if (iterator && iterator === exp && parent && parent.tag === 'transition-group') {
9916
+ warn$2(
9917
+ "Do not use v-for index as key on <transition-group> children, " +
9918
+ "this is the same as not using keys.",
9919
+ getRawBindingAttr(el, 'key'),
9920
+ true /* tip */
9921
+ );
9922
+ }
9923
+ }
9924
  }
9925
+ el.key = exp;
9926
  }
9927
  }
9928
 
9929
+ function processRef (el) {
9930
+ var ref = getBindingAttr(el, 'ref');
9931
+ if (ref) {
9932
+ el.ref = ref;
9933
+ el.refInFor = checkInFor(el);
 
 
 
 
 
 
9934
  }
9935
+ }
9936
 
9937
+ function processFor (el) {
9938
+ var exp;
9939
+ if ((exp = getAndRemoveAttr(el, 'v-for'))) {
9940
+ var res = parseFor(exp);
9941
+ if (res) {
9942
+ extend(el, res);
9943
+ } else {
9944
+ warn$2(
9945
+ ("Invalid v-for expression: " + exp),
9946
+ el.rawAttrsMap['v-for']
9947
+ );
9948
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9949
  }
9950
  }
9951
 
 
 
 
 
9952
 
 
 
 
9953
 
9954
+ function parseFor (exp) {
9955
+ var inMatch = exp.match(forAliasRE);
9956
+ if (!inMatch) { return }
9957
+ var res = {};
9958
+ res.for = inMatch[2].trim();
9959
+ var alias = inMatch[1].trim().replace(stripParensRE, '');
9960
+ var iteratorMatch = alias.match(forIteratorRE);
9961
+ if (iteratorMatch) {
9962
+ res.alias = alias.replace(forIteratorRE, '').trim();
9963
+ res.iterator1 = iteratorMatch[1].trim();
9964
+ if (iteratorMatch[2]) {
9965
+ res.iterator2 = iteratorMatch[2].trim();
9966
  }
9967
  } else {
9968
+ res.alias = alias;
 
9969
  }
9970
+ return res
9971
+ }
9972
 
9973
+ function processIf (el) {
9974
+ var exp = getAndRemoveAttr(el, 'v-if');
9975
+ if (exp) {
9976
+ el.if = exp;
9977
+ addIfCondition(el, {
9978
+ exp: exp,
9979
+ block: el
9980
+ });
9981
+ } else {
9982
+ if (getAndRemoveAttr(el, 'v-else') != null) {
9983
+ el.else = true;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9984
  }
9985
+ var elseif = getAndRemoveAttr(el, 'v-else-if');
9986
+ if (elseif) {
9987
+ el.elseif = elseif;
9988
  }
9989
  }
9990
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9991
 
9992
+ function processIfConditions (el, parent) {
9993
+ var prev = findPrevElement(parent.children);
9994
+ if (prev && prev.if) {
9995
+ addIfCondition(prev, {
9996
+ exp: el.elseif,
9997
+ block: el
9998
+ });
9999
+ } else {
10000
+ warn$2(
10001
+ "v-" + (el.elseif ? ('else-if="' + el.elseif + '"') : 'else') + " " +
10002
+ "used on element <" + (el.tag) + "> without corresponding v-if.",
10003
+ el.rawAttrsMap[el.elseif ? 'v-else-if' : 'v-else']
10004
+ );
10005
+ }
10006
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10007
 
10008
+ function findPrevElement (children) {
10009
+ var i = children.length;
10010
+ while (i--) {
10011
+ if (children[i].type === 1) {
10012
+ return children[i]
10013
+ } else {
10014
+ if (children[i].text !== ' ') {
10015
+ warn$2(
10016
+ "text \"" + (children[i].text.trim()) + "\" between v-if and v-else(-if) " +
10017
+ "will be ignored.",
10018
+ children[i]
10019
+ );
10020
+ }
10021
+ children.pop();
10022
+ }
 
 
 
10023
  }
10024
  }
10025
 
10026
+ function addIfCondition (el, condition) {
10027
+ if (!el.ifConditions) {
10028
+ el.ifConditions = [];
 
 
 
 
 
 
 
 
10029
  }
10030
+ el.ifConditions.push(condition);
10031
  }
10032
 
10033
+ function processOnce (el) {
10034
+ var once$$1 = getAndRemoveAttr(el, 'v-once');
10035
+ if (once$$1 != null) {
10036
+ el.once = true;
10037
+ }
10038
+ }
 
 
 
 
 
 
10039
 
10040
+ // handle content being passed to a component as slot,
10041
+ // e.g. <template slot="xxx">, <div slot-scope="xxx">
10042
+ function processSlotContent (el) {
10043
+ var slotScope;
10044
+ if (el.tag === 'template') {
10045
+ slotScope = getAndRemoveAttr(el, 'scope');
10046
  /* istanbul ignore if */
10047
+ if (slotScope) {
10048
+ warn$2(
10049
+ "the \"scope\" attribute for scoped slots have been deprecated and " +
10050
+ "replaced by \"slot-scope\" since 2.5. The new \"slot-scope\" attribute " +
10051
+ "can also be used on plain elements in addition to <template> to " +
10052
+ "denote scoped slots.",
10053
+ el.rawAttrsMap['scope'],
10054
+ true
10055
+ );
10056
  }
10057
+ el.slotScope = slotScope || getAndRemoveAttr(el, 'slot-scope');
10058
+ } else if ((slotScope = getAndRemoveAttr(el, 'slot-scope'))) {
10059
+ /* istanbul ignore if */
10060
+ if (el.attrsMap['v-for']) {
10061
+ warn$2(
10062
+ "Ambiguous combined usage of slot-scope and v-for on <" + (el.tag) + "> " +
10063
+ "(v-for takes higher priority). Use a wrapper <template> for the " +
10064
+ "scoped slot to make it clearer.",
10065
+ el.rawAttrsMap['slot-scope'],
10066
+ true
10067
  );
10068
  }
10069
+ el.slotScope = slotScope;
10070
+ }
10071
 
10072
+ // slot="xxx"
10073
+ var slotTarget = getBindingAttr(el, 'slot');
10074
+ if (slotTarget) {
10075
+ el.slotTarget = slotTarget === '""' ? '"default"' : slotTarget;
10076
+ el.slotTargetDynamic = !!(el.attrsMap[':slot'] || el.attrsMap['v-bind:slot']);
10077
+ // preserve slot as an attribute for native shadow DOM compat
10078
+ // only for non-scoped slots.
10079
+ if (el.tag !== 'template' && !el.slotScope) {
10080
+ addAttr(el, 'slot', slotTarget, getRawBindingAttr(el, 'slot'));
10081
  }
10082
+ }
10083
 
10084
+ // 2.6 v-slot syntax
10085
+ {
10086
+ if (el.tag === 'template') {
10087
+ // v-slot on <template>
10088
+ var slotBinding = getAndRemoveAttrByRegex(el, slotRE);
10089
+ if (slotBinding) {
10090
+ {
10091
+ if (el.slotTarget || el.slotScope) {
10092
+ warn$2(
10093
+ "Unexpected mixed usage of different slot syntaxes.",
10094
+ el
10095
+ );
10096
+ }
10097
+ if (el.parent && !maybeComponent(el.parent)) {
10098
+ warn$2(
10099
+ "<template v-slot> can only appear at the root level inside " +
10100
+ "the receiving the component",
10101
+ el
10102
+ );
10103
+ }
10104
+ }
10105
+ var ref = getSlotName(slotBinding);
10106
+ var name = ref.name;
10107
+ var dynamic = ref.dynamic;
10108
+ el.slotTarget = name;
10109
+ el.slotTargetDynamic = dynamic;
10110
+ el.slotScope = slotBinding.value || emptySlotScopeToken; // force it into a scoped slot for perf
10111
+ }
10112
+ } else {
10113
+ // v-slot on component, denotes default slot
10114
+ var slotBinding$1 = getAndRemoveAttrByRegex(el, slotRE);
10115
+ if (slotBinding$1) {
10116
+ {
10117
+ if (!maybeComponent(el)) {
10118
+ warn$2(
10119
+ "v-slot can only be used on components or <template>.",
10120
+ slotBinding$1
10121
+ );
10122
+ }
10123
+ if (el.slotScope || el.slotTarget) {
10124
+ warn$2(
10125
+ "Unexpected mixed usage of different slot syntaxes.",
10126
+ el
10127
+ );
10128
+ }
10129
+ if (el.scopedSlots) {
10130
+ warn$2(
10131
+ "To avoid scope ambiguity, the default slot should also use " +
10132
+ "<template> syntax when there are other named slots.",
10133
+ slotBinding$1
10134
+ );
10135
+ }
10136
+ }
10137
+ // add the component's children to its default slot
10138
+ var slots = el.scopedSlots || (el.scopedSlots = {});
10139
+ var ref$1 = getSlotName(slotBinding$1);
10140
+ var name$1 = ref$1.name;
10141
+ var dynamic$1 = ref$1.dynamic;
10142
+ var slotContainer = slots[name$1] = createASTElement('template', [], el);
10143
+ slotContainer.slotTarget = name$1;
10144
+ slotContainer.slotTargetDynamic = dynamic$1;
10145
+ slotContainer.children = el.children.filter(function (c) {
10146
+ if (!c.slotScope) {
10147
+ c.parent = slotContainer;
10148
+ return true
10149
+ }
10150
+ });
10151
+ slotContainer.slotScope = slotBinding$1.value || emptySlotScopeToken;
10152
+ // remove children as they are returned from scopedSlots now
10153
+ el.children = [];
10154
+ // mark el non-plain so data gets generated
10155
+ el.plain = false;
10156
  }
10157
  }
10158
+ }
10159
+ }
10160
+
10161
+ function getSlotName (binding) {
10162
+ var name = binding.name.replace(slotRE, '');
10163
+ if (!name) {
10164
+ if (binding.name[0] !== '#') {
10165
+ name = 'default';
10166
+ } else {
10167
+ warn$2(
10168
+ "v-slot shorthand syntax requires a slot name.",
10169
+ binding
10170
+ );
10171
  }
10172
+ }
10173
+ return dynamicArgRE.test(name)
10174
+ // dynamic [name]
10175
+ ? { name: name.slice(1, -1), dynamic: true }
10176
+ // static name
10177
+ : { name: ("\"" + name + "\""), dynamic: false }
10178
+ }
10179
+
10180
+ // handle <slot/> outlets
10181
+ function processSlotOutlet (el) {
10182
+ if (el.tag === 'slot') {
10183
+ el.slotName = getBindingAttr(el, 'name');
10184
+ if (el.key) {
10185
+ warn$2(
10186
+ "`key` does not work on <slot> because slots are abstract outlets " +
10187
+ "and can possibly expand into multiple elements. " +
10188
+ "Use the key on a wrapping element instead.",
10189
+ getRawBindingAttr(el, 'key')
10190
+ );
10191
  }
10192
+ }
10193
+ }
10194
 
10195
+ function processComponent (el) {
10196
+ var binding;
10197
+ if ((binding = getBindingAttr(el, 'is'))) {
10198
+ el.component = binding;
10199
+ }
10200
+ if (getAndRemoveAttr(el, 'inline-template') != null) {
10201
+ el.inlineTemplate = true;
10202
+ }
10203
+ }
10204
+
10205
+ function processAttrs (el) {
10206
+ var list = el.attrsList;
10207
+ var i, l, name, rawName, value, modifiers, syncGen, isDynamic;
10208
+ for (i = 0, l = list.length; i < l; i++) {
10209
+ name = rawName = list[i].name;
10210
+ value = list[i].value;
10211
+ if (dirRE.test(name)) {
10212
+ // mark element as dynamic
10213
+ el.hasBindings = true;
10214
+ // modifiers
10215
+ modifiers = parseModifiers(name.replace(dirRE, ''));
10216
+ // support .foo shorthand syntax for the .prop modifier
10217
+ if (modifiers) {
10218
+ name = name.replace(modifierRE, '');
10219
+ }
10220
+ if (bindRE.test(name)) { // v-bind
10221
+ name = name.replace(bindRE, '');
10222
+ value = parseFilters(value);
10223
+ isDynamic = dynamicArgRE.test(name);
10224
+ if (isDynamic) {
10225
+ name = name.slice(1, -1);
10226
+ }
10227
+ if (
10228
+ value.trim().length === 0
10229
+ ) {
10230
+ warn$2(
10231
+ ("The value for a v-bind expression cannot be empty. Found in \"v-bind:" + name + "\"")
10232
  );
10233
  }
10234
+ if (modifiers) {
10235
+ if (modifiers.prop && !isDynamic) {
10236
+ name = camelize(name);
10237
+ if (name === 'innerHtml') { name = 'innerHTML'; }
10238
+ }
10239
+ if (modifiers.camel && !isDynamic) {
10240
+ name = camelize(name);
10241
+ }
10242
+ if (modifiers.sync) {
10243
+ syncGen = genAssignmentCode(value, "$event");
10244
+ if (!isDynamic) {
10245
+ addHandler(
10246
+ el,
10247
+ ("update:" + (camelize(name))),
10248
+ syncGen,
10249
+ null,
10250
+ false,
10251
+ warn$2,
10252
+ list[i]
10253
+ );
10254
+ if (hyphenate(name) !== camelize(name)) {
10255
+ addHandler(
10256
+ el,
10257
+ ("update:" + (hyphenate(name))),
10258
+ syncGen,
10259
+ null,
10260
+ false,
10261
+ warn$2,
10262
+ list[i]
10263
+ );
10264
+ }
10265
+ } else {
10266
+ // handler w/ dynamic event name
10267
+ addHandler(
10268
+ el,
10269
+ ("\"update:\"+(" + name + ")"),
10270
+ syncGen,
10271
+ null,
10272
+ false,
10273
+ warn$2,
10274
+ list[i],
10275
+ true // dynamic
10276
+ );
10277
+ }
10278
+ }
10279
+ }
10280
+ if ((modifiers && modifiers.prop) || (
10281
+ !el.component && platformMustUseProp(el.tag, el.attrsMap.type, name)
10282
+ )) {
10283
+ addProp(el, name, value, list[i], isDynamic);
10284
+ } else {
10285
+ addAttr(el, name, value, list[i], isDynamic);
10286
+ }
10287
+ } else if (onRE.test(name)) { // v-on
10288
+ name = name.replace(onRE, '');
10289
+ isDynamic = dynamicArgRE.test(name);
10290
+ if (isDynamic) {
10291
+ name = name.slice(1, -1);
10292
+ }
10293
+ addHandler(el, name, value, modifiers, false, warn$2, list[i], isDynamic);
10294
+ } else { // normal directives
10295
+ name = name.replace(dirRE, '');
10296
+ // parse arg
10297
+ var argMatch = name.match(argRE);
10298
+ var arg = argMatch && argMatch[1];
10299
+ isDynamic = false;
10300
+ if (arg) {
10301
+ name = name.slice(0, -(arg.length + 1));
10302
+ if (dynamicArgRE.test(arg)) {
10303
+ arg = arg.slice(1, -1);
10304
+ isDynamic = true;
10305
+ }
10306
+ }
10307
+ addDirective(el, name, rawName, value, arg, isDynamic, modifiers, list[i]);
10308
+ if (name === 'model') {
10309
+ checkForAliasModel(el, value);
10310
+ }
10311
+ }
10312
+ } else {
10313
+ // literal attribute
10314
+ {
10315
+ var res = parseText(value, delimiters);
10316
+ if (res) {
10317
+ warn$2(
10318
+ name + "=\"" + value + "\": " +
10319
+ 'Interpolation inside attributes has been removed. ' +
10320
+ 'Use v-bind or the colon shorthand instead. For example, ' +
10321
+ 'instead of <div id="{{ val }}">, use <div :id="val">.',
10322
+ list[i]
10323
  );
10324
  }
10325
  }
10326
+ addAttr(el, name, JSON.stringify(value), list[i]);
10327
+ // #6887 firefox doesn't update muted state if set via attribute
10328
+ // even immediately after element creation
10329
+ if (!el.component &&
10330
+ name === 'muted' &&
10331
+ platformMustUseProp(el.tag, el.attrsMap.type, name)) {
10332
+ addProp(el, name, 'true', list[i]);
10333
+ }
10334
  }
10335
+ }
10336
+ }
10337
 
10338
+ function checkInFor (el) {
10339
+ var parent = el;
10340
+ while (parent) {
10341
+ if (parent.for !== undefined) {
10342
+ return true
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10343
  }
10344
+ parent = parent.parent;
10345
+ }
10346
+ return false
10347
+ }
10348
+
10349
+ function parseModifiers (name) {
10350
+ var match = name.match(modifierRE);
10351
+ if (match) {
10352
+ var ret = {};
10353
+ match.forEach(function (m) { ret[m.slice(1)] = true; });
10354
+ return ret
10355
+ }
10356
+ }
10357
+
10358
+ function makeAttrsMap (attrs) {
10359
+ var map = {};
10360
+ for (var i = 0, l = attrs.length; i < l; i++) {
10361
+ if (
10362
+ map[attrs[i].name] && !isIE && !isEdge
10363
+ ) {
10364
+ warn$2('duplicate attribute: ' + attrs[i].name, attrs[i]);
10365
+ }
10366
+ map[attrs[i].name] = attrs[i].value;
10367
+ }
10368
+ return map
10369
+ }
10370
+
10371
+ // for script (e.g. type="x/template") or style, do not decode content
10372
+ function isTextTag (el) {
10373
+ return el.tag === 'script' || el.tag === 'style'
10374
+ }
10375
+
10376
+ function isForbiddenTag (el) {
10377
+ return (
10378
+ el.tag === 'style' ||
10379
+ (el.tag === 'script' && (
10380
+ !el.attrsMap.type ||
10381
+ el.attrsMap.type === 'text/javascript'
10382
+ ))
10383
+ )
10384
+ }
10385
+
10386
+ var ieNSBug = /^xmlns:NS\d+/;
10387
+ var ieNSPrefix = /^NS\d+:/;
10388
+
10389
+ /* istanbul ignore next */
10390
+ function guardIESVGBug (attrs) {
10391
+ var res = [];
10392
+ for (var i = 0; i < attrs.length; i++) {
10393
+ var attr = attrs[i];
10394
+ if (!ieNSBug.test(attr.name)) {
10395
+ attr.name = attr.name.replace(ieNSPrefix, '');
10396
+ res.push(attr);
10397
  }
10398
+ }
10399
+ return res
10400
+ }
10401
+
10402
+ function checkForAliasModel (el, value) {
10403
+ var _el = el;
10404
+ while (_el) {
10405
+ if (_el.for && _el.alias === value) {
10406
+ warn$2(
10407
+ "<" + (el.tag) + " v-model=\"" + value + "\">: " +
10408
+ "You are binding v-model directly to a v-for iteration alias. " +
10409
+ "This will not be able to modify the v-for source array because " +
10410
+ "writing to the alias is like modifying a function local variable. " +
10411
+ "Consider using an array of objects and use v-model on an object property instead.",
10412
+ el.rawAttrsMap['v-model']
10413
+ );
10414
  }
10415
+ _el = _el.parent;
10416
+ }
10417
+ }
10418
 
10419
+ /* */
 
 
 
 
 
 
 
 
 
 
 
10420
 
10421
+ function preTransformNode (el, options) {
10422
+ if (el.tag === 'input') {
10423
+ var map = el.attrsMap;
10424
+ if (!map['v-model']) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10425
  return
10426
  }
10427
+
10428
+ var typeBinding;
10429
+ if (map[':type'] || map['v-bind:type']) {
10430
+ typeBinding = getBindingAttr(el, 'type');
10431
+ }
10432
+ if (!map.type && !typeBinding && map['v-bind']) {
10433
+ typeBinding = "(" + (map['v-bind']) + ").type";
10434
+ }
10435
+
10436
+ if (typeBinding) {
10437
+ var ifCondition = getAndRemoveAttr(el, 'v-if', true);
10438
+ var ifConditionExtra = ifCondition ? ("&&(" + ifCondition + ")") : "";
10439
+ var hasElse = getAndRemoveAttr(el, 'v-else', true) != null;
10440
+ var elseIfCondition = getAndRemoveAttr(el, 'v-else-if', true);
10441
+ // 1. checkbox
10442
+ var branch0 = cloneASTElement(el);
10443
+ // process for on the main node
10444
+ processFor(branch0);
10445
+ addRawAttr(branch0, 'type', 'checkbox');
10446
+ processElement(branch0, options);
10447
+ branch0.processed = true; // prevent it from double-processed
10448
+ branch0.if = "(" + typeBinding + ")==='checkbox'" + ifConditionExtra;
10449
+ addIfCondition(branch0, {
10450
+ exp: branch0.if,
10451
+ block: branch0
10452
+ });
10453
+ // 2. add radio else-if condition
10454
+ var branch1 = cloneASTElement(el);
10455
+ getAndRemoveAttr(branch1, 'v-for', true);
10456
+ addRawAttr(branch1, 'type', 'radio');
10457
+ processElement(branch1, options);
10458
+ addIfCondition(branch0, {
10459
+ exp: "(" + typeBinding + ")==='radio'" + ifConditionExtra,
10460
+ block: branch1
10461
+ });
10462
+ // 3. other
10463
+ var branch2 = cloneASTElement(el);
10464
+ getAndRemoveAttr(branch2, 'v-for', true);
10465
+ addRawAttr(branch2, ':type', typeBinding);
10466
+ processElement(branch2, options);
10467
+ addIfCondition(branch0, {
10468
+ exp: ifCondition,
10469
+ block: branch2
10470
+ });
10471
+
10472
+ if (hasElse) {
10473
+ branch0.else = true;
10474
+ } else if (elseIfCondition) {
10475
+ branch0.elseif = elseIfCondition;
10476
  }
10477
+
10478
+ return branch0
10479
  }
 
 
 
 
 
 
 
10480
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10481
  }
 
10482
 
10483
+ function cloneASTElement (el) {
10484
+ return createASTElement(el.tag, el.attrsList.slice(), el.parent)
10485
+ }
10486
+
10487
+ var model$1 = {
10488
+ preTransformNode: preTransformNode
10489
+ };
10490
 
10491
+ var modules$1 = [
10492
+ klass$1,
10493
+ style$1,
10494
+ model$1
10495
+ ];
10496
 
10497
+ /* */
 
 
 
 
 
 
 
10498
 
10499
+ function text (el, dir) {
10500
+ if (dir.value) {
10501
+ addProp(el, 'textContent', ("_s(" + (dir.value) + ")"), dir);
 
 
10502
  }
 
10503
  }
 
10504
 
10505
+ /* */
 
 
 
 
 
 
10506
 
10507
+ function html (el, dir) {
10508
+ if (dir.value) {
10509
+ addProp(el, 'innerHTML', ("_s(" + (dir.value) + ")"), dir);
 
 
 
 
 
 
 
10510
  }
10511
  }
 
10512
 
10513
+ var directives$1 = {
10514
+ model: model,
10515
+ text: text,
10516
+ html: html
10517
+ };
10518
+
10519
+ /* */
10520
+
10521
+ var baseOptions = {
10522
+ expectHTML: true,
10523
+ modules: modules$1,
10524
+ directives: directives$1,
10525
+ isPreTag: isPreTag,
10526
+ isUnaryTag: isUnaryTag,
10527
+ mustUseProp: mustUseProp,
10528
+ canBeLeftOpenTag: canBeLeftOpenTag,
10529
+ isReservedTag: isReservedTag,
10530
+ getTagNamespace: getTagNamespace,
10531
+ staticKeys: genStaticKeys(modules$1)
10532
+ };
10533
 
10534
+ /* */
10535
 
10536
+ var isStaticKey;
10537
+ var isPlatformReservedTag;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10538
 
10539
+ var genStaticKeysCached = cached(genStaticKeys$1);
10540
+
10541
+ /**
10542
+ * Goal of the optimizer: walk the generated template AST tree
10543
+ * and detect sub-trees that are purely static, i.e. parts of
10544
+ * the DOM that never needs to change.
10545
+ *
10546
+ * Once we detect these sub-trees, we can:
10547
+ *
10548
+ * 1. Hoist them into constants, so that we no longer need to
10549
+ * create fresh nodes for them on each re-render;
10550
+ * 2. Completely skip them in the patching process.
10551
+ */
10552
+ function optimize (root, options) {
10553
+ if (!root) { return }
10554
+ isStaticKey = genStaticKeysCached(options.staticKeys || '');
10555
+ isPlatformReservedTag = options.isReservedTag || no;
10556
+ // first pass: mark all non-static nodes.
10557
+ markStatic$1(root);
10558
+ // second pass: mark static roots.
10559
+ markStaticRoots(root, false);
10560
+ }
10561
+
10562
+ function genStaticKeys$1 (keys) {
10563
+ return makeMap(
10564
+ 'type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap' +
10565
+ (keys ? ',' + keys : '')
10566
+ )
10567
  }
 
10568
 
10569
+ function markStatic$1 (node) {
10570
+ node.static = isStatic(node);
10571
+ if (node.type === 1) {
10572
+ // do not make component slot content static. this avoids
10573
+ // 1. components not able to mutate slot nodes
10574
+ // 2. static slot content fails for hot-reloading
10575
+ if (
10576
+ !isPlatformReservedTag(node.tag) &&
10577
+ node.tag !== 'slot' &&
10578
+ node.attrsMap['inline-template'] == null
10579
+ ) {
10580
+ return
10581
+ }
10582
+ for (var i = 0, l = node.children.length; i < l; i++) {
10583
+ var child = node.children[i];
10584
+ markStatic$1(child);
10585
+ if (!child.static) {
10586
+ node.static = false;
10587
+ }
10588
+ }
10589
+ if (node.ifConditions) {
10590
+ for (var i$1 = 1, l$1 = node.ifConditions.length; i$1 < l$1; i$1++) {
10591
+ var block = node.ifConditions[i$1].block;
10592
+ markStatic$1(block);
10593
+ if (!block.static) {
10594
+ node.static = false;
10595
+ }
10596
+ }
10597
  }
 
10598
  }
10599
  }
 
10600
 
10601
+ function markStaticRoots (node, isInFor) {
10602
+ if (node.type === 1) {
10603
+ if (node.static || node.once) {
10604
+ node.staticInFor = isInFor;
10605
+ }
10606
+ // For a node to qualify as a static root, it should have children that
10607
+ // are not just static text. Otherwise the cost of hoisting out will
10608
+ // outweigh the benefits and it's better off to just always render it fresh.
10609
+ if (node.static && node.children.length && !(
10610
+ node.children.length === 1 &&
10611
+ node.children[0].type === 3
10612
+ )) {
10613
+ node.staticRoot = true;
10614
+ return
10615
+ } else {
10616
+ node.staticRoot = false;
10617
+ }
10618
+ if (node.children) {
10619
+ for (var i = 0, l = node.children.length; i < l; i++) {
10620
+ markStaticRoots(node.children[i], isInFor || !!node.for);
10621
+ }
10622
+ }
10623
+ if (node.ifConditions) {
10624
+ for (var i$1 = 1, l$1 = node.ifConditions.length; i$1 < l$1; i$1++) {
10625
+ markStaticRoots(node.ifConditions[i$1].block, isInFor);
10626
+ }
10627
+ }
10628
+ }
10629
  }
 
 
10630
 
10631
+ function isStatic (node) {
10632
+ if (node.type === 2) { // expression
10633
+ return false
10634
+ }
10635
+ if (node.type === 3) { // text
10636
+ return true
10637
+ }
10638
+ return !!(node.pre || (
10639
+ !node.hasBindings && // no dynamic bindings
10640
+ !node.if && !node.for && // not v-if or v-for or v-else
10641
+ !isBuiltInTag(node.tag) && // not a built-in
10642
+ isPlatformReservedTag(node.tag) && // not a component
10643
+ !isDirectChildOfTemplateFor(node) &&
10644
+ Object.keys(node).every(isStaticKey)
10645
+ ))
10646
  }
 
10647
 
10648
+ function isDirectChildOfTemplateFor (node) {
10649
+ while (node.parent) {
10650
+ node = node.parent;
10651
+ if (node.tag !== 'template') {
10652
+ return false
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10653
  }
10654
+ if (node.for) {
10655
+ return true
 
 
 
 
 
 
 
 
10656
  }
 
10657
  }
10658
+ return false
10659
+ }
10660
+
10661
+ /* */
10662
+
10663
+ var fnExpRE = /^([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/;
10664
+ var fnInvokeRE = /\([^)]*?\);*$/;
10665
+ var simplePathRE = /^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/;
10666
+
10667
+ // KeyboardEvent.keyCode aliases
10668
+ var keyCodes = {
10669
+ esc: 27,
10670
+ tab: 9,
10671
+ enter: 13,
10672
+ space: 32,
10673
+ up: 38,
10674
+ left: 37,
10675
+ right: 39,
10676
+ down: 40,
10677
+ 'delete': [8, 46]
10678
+ };
10679
+
10680
+ // KeyboardEvent.key aliases
10681
+ var keyNames = {
10682
+ // #7880: IE11 and Edge use `Esc` for Escape key name.
10683
+ esc: ['Esc', 'Escape'],
10684
+ tab: 'Tab',
10685
+ enter: 'Enter',
10686
+ // #9112: IE11 uses `Spacebar` for Space key name.
10687
+ space: [' ', 'Spacebar'],
10688
+ // #7806: IE11 uses key names without `Arrow` prefix for arrow keys.
10689
+ up: ['Up', 'ArrowUp'],
10690
+ left: ['Left', 'ArrowLeft'],
10691
+ right: ['Right', 'ArrowRight'],
10692
+ down: ['Down', 'ArrowDown'],
10693
+ // #9112: IE11 uses `Del` for Delete key name.
10694
+ 'delete': ['Backspace', 'Delete', 'Del']
10695
+ };
10696
+
10697
+ // #4868: modifiers that prevent the execution of the listener
10698
+ // need to explicitly return null so that we can determine whether to remove
10699
+ // the listener for .once
10700
+ var genGuard = function (condition) { return ("if(" + condition + ")return null;"); };
10701
+
10702
+ var modifierCode = {
10703
+ stop: '$event.stopPropagation();',
10704
+ prevent: '$event.preventDefault();',
10705
+ self: genGuard("$event.target !== $event.currentTarget"),
10706
+ ctrl: genGuard("!$event.ctrlKey"),
10707
+ shift: genGuard("!$event.shiftKey"),
10708
+ alt: genGuard("!$event.altKey"),
10709
+ meta: genGuard("!$event.metaKey"),
10710
+ left: genGuard("'button' in $event && $event.button !== 0"),
10711
+ middle: genGuard("'button' in $event && $event.button !== 1"),
10712
+ right: genGuard("'button' in $event && $event.button !== 2")
10713
+ };
10714
+
10715
+ function genHandlers (
10716
+ events,
10717
+ isNative
10718
+ ) {
10719
+ var prefix = isNative ? 'nativeOn:' : 'on:';
10720
+ var staticHandlers = "";
10721
+ var dynamicHandlers = "";
10722
+ for (var name in events) {
10723
+ var handlerCode = genHandler(events[name]);
10724
+ if (events[name] && events[name].dynamic) {
10725
+ dynamicHandlers += name + "," + handlerCode + ",";
10726
+ } else {
10727
+ staticHandlers += "\"" + name + "\":" + handlerCode + ",";
10728
  }
10729
  }
10730
+ staticHandlers = "{" + (staticHandlers.slice(0, -1)) + "}";
10731
+ if (dynamicHandlers) {
10732
+ return prefix + "_d(" + staticHandlers + ",[" + (dynamicHandlers.slice(0, -1)) + "])"
10733
+ } else {
10734
+ return prefix + staticHandlers
10735
+ }
10736
  }
 
10737
 
10738
+ function genHandler (handler) {
10739
+ if (!handler) {
10740
+ return 'function(){}'
10741
+ }
10742
+
10743
+ if (Array.isArray(handler)) {
10744
+ return ("[" + (handler.map(function (handler) { return genHandler(handler); }).join(',')) + "]")
10745
+ }
10746
+
10747
+ var isMethodPath = simplePathRE.test(handler.value);
10748
+ var isFunctionExpression = fnExpRE.test(handler.value);
10749
+ var isFunctionInvocation = simplePathRE.test(handler.value.replace(fnInvokeRE, ''));
10750
 
10751
+ if (!handler.modifiers) {
10752
+ if (isMethodPath || isFunctionExpression) {
10753
+ return handler.value
 
 
 
 
 
 
 
 
 
 
10754
  }
10755
+ return ("function($event){" + (isFunctionInvocation ? ("return " + (handler.value)) : handler.value) + "}") // inline statement
10756
+ } else {
10757
+ var code = '';
10758
+ var genModifierCode = '';
10759
+ var keys = [];
10760
+ for (var key in handler.modifiers) {
10761
+ if (modifierCode[key]) {
10762
+ genModifierCode += modifierCode[key];
10763
+ // left/right
10764
+ if (keyCodes[key]) {
10765
+ keys.push(key);
 
 
 
 
 
 
 
 
10766
  }
10767
+ } else if (key === 'exact') {
10768
+ var modifiers = (handler.modifiers);
10769
+ genModifierCode += genGuard(
10770
+ ['ctrl', 'shift', 'alt', 'meta']
10771
+ .filter(function (keyModifier) { return !modifiers[keyModifier]; })
10772
+ .map(function (keyModifier) { return ("$event." + keyModifier + "Key"); })
10773
+ .join('||')
10774
+ );
10775
  } else {
10776
+ keys.push(key);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10777
  }
10778
  }
10779
+ if (keys.length) {
10780
+ code += genKeyFilter(keys);
 
 
 
 
 
 
 
 
 
 
10781
  }
10782
+ // Make sure modifiers like prevent and stop get executed after key filtering
10783
+ if (genModifierCode) {
10784
+ code += genModifierCode;
 
 
 
 
10785
  }
10786
+ var handlerCode = isMethodPath
10787
+ ? ("return " + (handler.value) + "($event)")
10788
+ : isFunctionExpression
10789
+ ? ("return (" + (handler.value) + ")($event)")
10790
+ : isFunctionInvocation
10791
+ ? ("return " + (handler.value))
10792
+ : handler.value;
10793
+ return ("function($event){" + code + handlerCode + "}")
10794
  }
10795
  }
 
10796
 
10797
+ function genKeyFilter (keys) {
10798
+ return (
10799
+ // make sure the key filters only apply to KeyboardEvents
10800
+ // #9441: can't use 'keyCode' in $event because Chrome autofill fires fake
10801
+ // key events that do not have keyCode property...
10802
+ "if(!$event.type.indexOf('key')&&" +
10803
+ (keys.map(genFilterCode).join('&&')) + ")return null;"
10804
+ )
10805
  }
 
 
10806
 
10807
+ function genFilterCode (key) {
10808
+ var keyVal = parseInt(key, 10);
10809
+ if (keyVal) {
10810
+ return ("$event.keyCode!==" + keyVal)
10811
+ }
10812
+ var keyCode = keyCodes[key];
10813
+ var keyName = keyNames[key];
10814
+ return (
10815
+ "_k($event.keyCode," +
10816
+ (JSON.stringify(key)) + "," +
10817
+ (JSON.stringify(keyCode)) + "," +
10818
+ "$event.key," +
10819
+ "" + (JSON.stringify(keyName)) +
10820
+ ")"
10821
+ )
10822
  }
 
10823
 
10824
+ /* */
10825
+
10826
+ function on (el, dir) {
10827
+ if (dir.modifiers) {
10828
+ warn("v-on without argument does not support modifiers.");
 
 
 
10829
  }
10830
+ el.wrapListeners = function (code) { return ("_g(" + code + "," + (dir.value) + ")"); };
10831
  }
 
 
10832
 
10833
+ /* */
 
 
 
10834
 
10835
+ function bind$1 (el, dir) {
10836
+ el.wrapData = function (code) {
10837
+ return ("_b(" + code + ",'" + (el.tag) + "'," + (dir.value) + "," + (dir.modifiers && dir.modifiers.prop ? 'true' : 'false') + (dir.modifiers && dir.modifiers.sync ? ',true' : '') + ")")
10838
+ };
10839
+ }
 
 
 
 
10840
 
10841
+ /* */
 
10842
 
10843
+ var baseDirectives = {
10844
+ on: on,
10845
+ bind: bind$1,
10846
+ cloak: noop
10847
+ };
 
 
 
 
 
 
 
10848
 
10849
+ /* */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10850
 
 
10851
 
 
 
 
 
 
 
 
 
 
10852
 
 
 
 
 
 
 
10853
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10854
 
10855
+ var CodegenState = function CodegenState (options) {
10856
+ this.options = options;
10857
+ this.warn = options.warn || baseWarn;
10858
+ this.transforms = pluckModuleFunction(options.modules, 'transformCode');
10859
+ this.dataGenFns = pluckModuleFunction(options.modules, 'genData');
10860
+ this.directives = extend(extend({}, baseDirectives), options.directives);
10861
+ var isReservedTag = options.isReservedTag || no;
10862
+ this.maybeComponent = function (el) { return !!el.component || !isReservedTag(el.tag); };
10863
+ this.onceId = 0;
10864
+ this.staticRenderFns = [];
10865
+ this.pre = false;
10866
+ };
10867
+
10868
 
10869
+
10870
+ function generate (
10871
+ ast,
10872
+ options
10873
+ ) {
10874
+ var state = new CodegenState(options);
10875
+ var code = ast ? genElement(ast, state) : '_c("div")';
10876
+ return {
10877
+ render: ("with(this){return " + code + "}"),
10878
+ staticRenderFns: state.staticRenderFns
10879
  }
10880
  }
 
10881
 
10882
+ function genElement (el, state) {
10883
+ if (el.parent) {
10884
+ el.pre = el.pre || el.parent.pre;
10885
+ }
 
 
 
10886
 
10887
+ if (el.staticRoot && !el.staticProcessed) {
10888
+ return genStatic(el, state)
10889
+ } else if (el.once && !el.onceProcessed) {
10890
+ return genOnce(el, state)
10891
+ } else if (el.for && !el.forProcessed) {
10892
+ return genFor(el, state)
10893
+ } else if (el.if && !el.ifProcessed) {
10894
+ return genIf(el, state)
10895
+ } else if (el.tag === 'template' && !el.slotTarget && !state.pre) {
10896
+ return genChildren(el, state) || 'void 0'
10897
+ } else if (el.tag === 'slot') {
10898
+ return genSlot(el, state)
10899
+ } else {
10900
+ // component or element
10901
+ var code;
10902
+ if (el.component) {
10903
+ code = genComponent(el.component, el, state);
10904
+ } else {
10905
+ var data;
10906
+ if (!el.plain || (el.pre && state.maybeComponent(el))) {
10907
+ data = genData$2(el, state);
10908
+ }
10909
 
10910
+ var children = el.inlineTemplate ? null : genChildren(el, state, true);
10911
+ code = "_c('" + (el.tag) + "'" + (data ? ("," + data) : '') + (children ? ("," + children) : '') + ")";
10912
+ }
10913
+ // module transforms
10914
+ for (var i = 0; i < state.transforms.length; i++) {
10915
+ code = state.transforms[i](el, code);
10916
+ }
10917
+ return code
10918
+ }
10919
+ }
10920
 
10921
+ // hoist static sub-trees out
10922
+ function genStatic (el, state) {
10923
+ el.staticProcessed = true;
10924
+ // Some elements (templates) need to behave differently inside of a v-pre
10925
+ // node. All pre nodes are static roots, so we can use this as a location to
10926
+ // wrap a state change and reset it upon exiting the pre node.
10927
+ var originalPreState = state.pre;
10928
+ if (el.pre) {
10929
+ state.pre = el.pre;
10930
+ }
10931
+ state.staticRenderFns.push(("with(this){return " + (genElement(el, state)) + "}"));
10932
+ state.pre = originalPreState;
10933
+ return ("_m(" + (state.staticRenderFns.length - 1) + (el.staticInFor ? ',true' : '') + ")")
10934
  }
 
10935
 
10936
+ // v-once
10937
+ function genOnce (el, state) {
10938
+ el.onceProcessed = true;
10939
+ if (el.if && !el.ifProcessed) {
10940
+ return genIf(el, state)
10941
+ } else if (el.staticInFor) {
10942
+ var key = '';
10943
+ var parent = el.parent;
10944
+ while (parent) {
10945
+ if (parent.for) {
10946
+ key = parent.key;
10947
+ break
10948
+ }
10949
+ parent = parent.parent;
10950
+ }
10951
+ if (!key) {
10952
+ state.warn(
10953
+ "v-once can only be used inside v-for that is keyed. ",
10954
+ el.rawAttrsMap['v-once']
10955
+ );
10956
+ return genElement(el, state)
10957
+ }
10958
+ return ("_o(" + (genElement(el, state)) + "," + (state.onceId++) + "," + key + ")")
10959
+ } else {
10960
+ return genStatic(el, state)
10961
+ }
10962
+ }
10963
 
10964
+ function genIf (
10965
+ el,
10966
+ state,
10967
+ altGen,
10968
+ altEmpty
10969
+ ) {
10970
+ el.ifProcessed = true; // avoid recursion
10971
+ return genIfConditions(el.ifConditions.slice(), state, altGen, altEmpty)
10972
  }
 
10973
 
10974
+ function genIfConditions (
10975
+ conditions,
10976
+ state,
10977
+ altGen,
10978
+ altEmpty
10979
+ ) {
10980
+ if (!conditions.length) {
10981
+ return altEmpty || '_e()'
10982
+ }
10983
+
10984
+ var condition = conditions.shift();
10985
+ if (condition.exp) {
10986
+ return ("(" + (condition.exp) + ")?" + (genTernaryExp(condition.block)) + ":" + (genIfConditions(conditions, state, altGen, altEmpty)))
10987
+ } else {
10988
+ return ("" + (genTernaryExp(condition.block)))
10989
+ }
10990
 
10991
+ // v-if with v-once should generate code like (a)?_m(0):_m(1)
10992
+ function genTernaryExp (el) {
10993
+ return altGen
10994
+ ? altGen(el, state)
10995
+ : el.once
10996
+ ? genOnce(el, state)
10997
+ : genElement(el, state)
10998
+ }
10999
+ }
11000
 
11001
+ function genFor (
11002
+ el,
11003
+ state,
11004
+ altGen,
11005
+ altHelper
11006
+ ) {
11007
+ var exp = el.for;
11008
+ var alias = el.alias;
11009
+ var iterator1 = el.iterator1 ? ("," + (el.iterator1)) : '';
11010
+ var iterator2 = el.iterator2 ? ("," + (el.iterator2)) : '';
11011
+
11012
+ if (state.maybeComponent(el) &&
11013
+ el.tag !== 'slot' &&
11014
+ el.tag !== 'template' &&
11015
+ !el.key
11016
+ ) {
11017
+ state.warn(
11018
+ "<" + (el.tag) + " v-for=\"" + alias + " in " + exp + "\">: component lists rendered with " +
11019
+ "v-for should have explicit keys. " +
11020
+ "See https://vuejs.org/guide/list.html#key for more info.",
11021
+ el.rawAttrsMap['v-for'],
11022
+ true /* tip */
11023
+ );
11024
+ }
11025
 
11026
+ el.forProcessed = true; // avoid recursion
11027
+ return (altHelper || '_l') + "((" + exp + ")," +
11028
+ "function(" + alias + iterator1 + iterator2 + "){" +
11029
+ "return " + ((altGen || genElement)(el, state)) +
11030
+ '})'
11031
+ }
11032
 
11033
+ function genData$2 (el, state) {
11034
+ var data = '{';
11035
 
11036
+ // directives first.
11037
+ // directives may mutate the el's other properties before they are generated.
11038
+ var dirs = genDirectives(el, state);
11039
+ if (dirs) { data += dirs + ','; }
11040
 
11041
+ // key
11042
+ if (el.key) {
11043
+ data += "key:" + (el.key) + ",";
11044
+ }
11045
+ // ref
11046
+ if (el.ref) {
11047
+ data += "ref:" + (el.ref) + ",";
11048
+ }
11049
+ if (el.refInFor) {
11050
+ data += "refInFor:true,";
11051
+ }
11052
+ // pre
11053
+ if (el.pre) {
11054
+ data += "pre:true,";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11055
  }
11056
+ // record original tag name for components using "is" attribute
11057
+ if (el.component) {
11058
+ data += "tag:\"" + (el.tag) + "\",";
11059
+ }
11060
+ // module data generation functions
11061
+ for (var i = 0; i < state.dataGenFns.length; i++) {
11062
+ data += state.dataGenFns[i](el);
11063
+ }
11064
+ // attributes
11065
+ if (el.attrs) {
11066
+ data += "attrs:" + (genProps(el.attrs)) + ",";
11067
+ }
11068
+ // DOM props
11069
+ if (el.props) {
11070
+ data += "domProps:" + (genProps(el.props)) + ",";
11071
+ }
11072
+ // event handlers
11073
+ if (el.events) {
11074
+ data += (genHandlers(el.events, false)) + ",";
11075
+ }
11076
+ if (el.nativeEvents) {
11077
+ data += (genHandlers(el.nativeEvents, true)) + ",";
11078
+ }
11079
+ // slot target
11080
+ // only for non-scoped slots
11081
+ if (el.slotTarget && !el.slotScope) {
11082
+ data += "slot:" + (el.slotTarget) + ",";
11083
+ }
11084
+ // scoped slots
11085
+ if (el.scopedSlots) {
11086
+ data += (genScopedSlots(el, el.scopedSlots, state)) + ",";
11087
+ }
11088
+ // component v-model
11089
+ if (el.model) {
11090
+ data += "model:{value:" + (el.model.value) + ",callback:" + (el.model.callback) + ",expression:" + (el.model.expression) + "},";
11091
+ }
11092
+ // inline-template
11093
+ if (el.inlineTemplate) {
11094
+ var inlineTemplate = genInlineTemplate(el, state);
11095
+ if (inlineTemplate) {
11096
+ data += inlineTemplate + ",";
11097
+ }
11098
+ }
11099
+ data = data.replace(/,$/, '') + '}';
11100
+ // v-bind dynamic argument wrap
11101
+ // v-bind with dynamic arguments must be applied using the same v-bind object
11102
+ // merge helper so that class/style/mustUseProp attrs are handled correctly.
11103
+ if (el.dynamicAttrs) {
11104
+ data = "_b(" + data + ",\"" + (el.tag) + "\"," + (genProps(el.dynamicAttrs)) + ")";
11105
+ }
11106
+ // v-bind data wrap
11107
+ if (el.wrapData) {
11108
+ data = el.wrapData(data);
11109
+ }
11110
+ // v-on data wrap
11111
+ if (el.wrapListeners) {
11112
+ data = el.wrapListeners(data);
11113
+ }
11114
+ return data
11115
+ }
11116
+
11117
+ function genDirectives (el, state) {
11118
+ var dirs = el.directives;
11119
+ if (!dirs) { return }
11120
+ var res = 'directives:[';
11121
+ var hasRuntime = false;
11122
+ var i, l, dir, needRuntime;
11123
+ for (i = 0, l = dirs.length; i < l; i++) {
11124
+ dir = dirs[i];
11125
+ needRuntime = true;
11126
+ var gen = state.directives[dir.name];
11127
+ if (gen) {
11128
+ // compile-time directive that manipulates AST.
11129
+ // returns true if it also needs a runtime counterpart.
11130
+ needRuntime = !!gen(el, dir, state.warn);
11131
  }
11132
+ if (needRuntime) {
11133
+ hasRuntime = true;
11134
+ res += "{name:\"" + (dir.name) + "\",rawName:\"" + (dir.rawName) + "\"" + (dir.value ? (",value:(" + (dir.value) + "),expression:" + (JSON.stringify(dir.value))) : '') + (dir.arg ? (",arg:" + (dir.isDynamicArg ? dir.arg : ("\"" + (dir.arg) + "\""))) : '') + (dir.modifiers ? (",modifiers:" + (JSON.stringify(dir.modifiers))) : '') + "},";
 
 
 
 
 
11135
  }
11136
  }
11137
+ if (hasRuntime) {
11138
+ return res.slice(0, -1) + ']'
11139
+ }
11140
  }
 
11141
 
11142
+ function genInlineTemplate (el, state) {
11143
+ var ast = el.children[0];
11144
+ if (el.children.length !== 1 || ast.type !== 1) {
11145
+ state.warn(
11146
+ 'Inline-template components must have exactly one child element.',
11147
+ { start: el.start }
11148
+ );
 
 
 
 
 
 
 
 
 
11149
  }
11150
+ if (ast && ast.type === 1) {
11151
+ var inlineRenderFns = generate(ast, state.options);
11152
+ return ("inlineTemplate:{render:function(){" + (inlineRenderFns.render) + "},staticRenderFns:[" + (inlineRenderFns.staticRenderFns.map(function (code) { return ("function(){" + code + "}"); }).join(',')) + "]}")
 
11153
  }
11154
+ }
11155
+
11156
+ function genScopedSlots (
11157
+ el,
11158
+ slots,
11159
+ state
11160
+ ) {
11161
+ // by default scoped slots are considered "stable", this allows child
11162
+ // components with only scoped slots to skip forced updates from parent.
11163
+ // but in some cases we have to bail-out of this optimization
11164
+ // for example if the slot contains dynamic names, has v-if or v-for on them...
11165
+ var needsForceUpdate = Object.keys(slots).some(function (key) {
11166
+ var slot = slots[key];
11167
+ return (
11168
+ slot.slotTargetDynamic ||
11169
+ slot.if ||
11170
+ slot.for ||
11171
+ containsSlotChild(slot) // is passing down slot from parent which may be dynamic
11172
+ )
11173
+ });
11174
+ // OR when it is inside another scoped slot (the reactivity is disconnected)
11175
+ // #9438
11176
+ if (!needsForceUpdate) {
11177
+ var parent = el.parent;
11178
+ while (parent) {
11179
+ if (parent.slotScope && parent.slotScope !== emptySlotScopeToken) {
11180
+ needsForceUpdate = true;
11181
+ break
11182
+ }
11183
+ parent = parent.parent;
11184
  }
11185
  }
11186
+
11187
+ return ("scopedSlots:_u([" + (Object.keys(slots).map(function (key) {
11188
+ return genScopedSlot(slots[key], state)
11189
+ }).join(',')) + "]" + (needsForceUpdate ? ",true" : "") + ")")
11190
  }
 
11191
 
11192
+ function containsSlotChild (el) {
11193
+ if (el.type === 1) {
11194
+ if (el.tag === 'slot') {
11195
+ return true
11196
+ }
11197
+ return el.children.some(containsSlotChild)
11198
+ }
11199
  return false
11200
  }
11201
+
11202
+ function genScopedSlot (
11203
+ el,
11204
+ state
11205
+ ) {
11206
+ var isLegacySyntax = el.attrsMap['slot-scope'];
11207
+ if (el.if && !el.ifProcessed && !isLegacySyntax) {
11208
+ return genIf(el, state, genScopedSlot, "null")
11209
+ }
11210
+ if (el.for && !el.forProcessed) {
11211
+ return genFor(el, state, genScopedSlot)
11212
+ }
11213
+ var slotScope = el.slotScope === emptySlotScopeToken
11214
+ ? ""
11215
+ : String(el.slotScope);
11216
+ var fn = "function(" + slotScope + "){" +
11217
+ "return " + (el.tag === 'template'
11218
+ ? el.if && isLegacySyntax
11219
+ ? ("(" + (el.if) + ")?" + (genChildren(el, state) || 'undefined') + ":undefined")
11220
+ : genChildren(el, state) || 'undefined'
11221
+ : genElement(el, state)) + "}";
11222
+ // reverse proxy v-slot without scope on this.$slots
11223
+ var reverseProxy = slotScope ? "" : ",proxy:true";
11224
+ return ("{key:" + (el.slotTarget || "\"default\"") + ",fn:" + fn + reverseProxy + "}")
11225
+ }
11226
+
11227
+ function genChildren (
11228
+ el,
11229
+ state,
11230
+ checkSkip,
11231
+ altGenElement,
11232
+ altGenNode
11233
+ ) {
11234
+ var children = el.children;
11235
+ if (children.length) {
11236
+ var el$1 = children[0];
11237
+ // optimize single v-for
11238
+ if (children.length === 1 &&
11239
+ el$1.for &&
11240
+ el$1.tag !== 'template' &&
11241
+ el$1.tag !== 'slot'
11242
+ ) {
11243
+ var normalizationType = checkSkip
11244
+ ? state.maybeComponent(el$1) ? ",1" : ",0"
11245
+ : "";
11246
+ return ("" + ((altGenElement || genElement)(el$1, state)) + normalizationType)
11247
+ }
11248
+ var normalizationType$1 = checkSkip
11249
+ ? getNormalizationType(children, state.maybeComponent)
11250
+ : 0;
11251
+ var gen = altGenNode || genNode;
11252
+ return ("[" + (children.map(function (c) { return gen(c, state); }).join(',')) + "]" + (normalizationType$1 ? ("," + normalizationType$1) : ''))
11253
  }
11254
  }
11255
+
11256
+ // determine the normalization needed for the children array.
11257
+ // 0: no normalization needed
11258
+ // 1: simple normalization needed (possible 1-level deep nested array)
11259
+ // 2: full normalization needed
11260
+ function getNormalizationType (
11261
+ children,
11262
+ maybeComponent
11263
+ ) {
11264
+ var res = 0;
11265
+ for (var i = 0; i < children.length; i++) {
11266
+ var el = children[i];
11267
+ if (el.type !== 1) {
11268
+ continue
11269
+ }
11270
+ if (needsNormalization(el) ||
11271
+ (el.ifConditions && el.ifConditions.some(function (c) { return needsNormalization(c.block); }))) {
11272
+ res = 2;
11273
+ break
11274
+ }
11275
+ if (maybeComponent(el) ||
11276
+ (el.ifConditions && el.ifConditions.some(function (c) { return maybeComponent(c.block); }))) {
11277
+ res = 1;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11278
  }
11279
  }
11280
+ return res
 
 
 
 
 
 
 
 
 
 
 
 
 
11281
  }
 
11282
 
11283
+ function needsNormalization (el) {
11284
+ return el.for !== undefined || el.tag === 'template' || el.tag === 'slot'
11285
+ }
11286
 
11287
+ function genNode (node, state) {
11288
+ if (node.type === 1) {
11289
+ return genElement(node, state)
11290
+ } else if (node.type === 3 && node.isComment) {
11291
+ return genComment(node)
11292
+ } else {
11293
+ return genText(node)
11294
+ }
11295
  }
 
 
 
 
 
 
 
 
 
 
 
11296
 
11297
+ function genText (text) {
11298
+ return ("_v(" + (text.type === 2
11299
+ ? text.expression // no need for () because already wrapped in _s()
11300
+ : transformSpecialNewlines(JSON.stringify(text.text))) + ")")
11301
+ }
11302
 
11303
+ function genComment (comment) {
11304
+ return ("_e(" + (JSON.stringify(comment.text)) + ")")
 
11305
  }
 
 
11306
 
11307
+ function genSlot (el, state) {
11308
+ var slotName = el.slotName || '"default"';
11309
+ var children = genChildren(el, state);
11310
+ var res = "_t(" + slotName + (children ? ("," + children) : '');
11311
+ var attrs = el.attrs || el.dynamicAttrs
11312
+ ? genProps((el.attrs || []).concat(el.dynamicAttrs || []).map(function (attr) { return ({
11313
+ // slot props are camelized
11314
+ name: camelize(attr.name),
11315
+ value: attr.value,
11316
+ dynamic: attr.dynamic
11317
+ }); }))
11318
+ : null;
11319
+ var bind$$1 = el.attrsMap['v-bind'];
11320
+ if ((attrs || bind$$1) && !children) {
11321
+ res += ",null";
11322
+ }
11323
+ if (attrs) {
11324
+ res += "," + attrs;
11325
+ }
11326
+ if (bind$$1) {
11327
+ res += (attrs ? '' : ',null') + "," + bind$$1;
11328
+ }
11329
+ return res + ')'
11330
+ }
11331
 
11332
+ // componentName is el.component, take it as argument to shun flow's pessimistic refinement
11333
+ function genComponent (
11334
+ componentName,
11335
+ el,
11336
+ state
11337
+ ) {
11338
+ var children = el.inlineTemplate ? null : genChildren(el, state, true);
11339
+ return ("_c(" + componentName + "," + (genData$2(el, state)) + (children ? ("," + children) : '') + ")")
11340
+ }
11341
+
11342
+ function genProps (props) {
11343
+ var staticProps = "";
11344
+ var dynamicProps = "";
11345
+ for (var i = 0; i < props.length; i++) {
11346
+ var prop = props[i];
11347
+ var value = transformSpecialNewlines(prop.value);
11348
+ if (prop.dynamic) {
11349
+ dynamicProps += (prop.name) + "," + value + ",";
11350
+ } else {
11351
+ staticProps += "\"" + (prop.name) + "\":" + value + ",";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11352
  }
 
11353
  }
11354
+ staticProps = "{" + (staticProps.slice(0, -1)) + "}";
11355
+ if (dynamicProps) {
11356
+ return ("_d(" + staticProps + ",[" + (dynamicProps.slice(0, -1)) + "])")
11357
+ } else {
11358
+ return staticProps
11359
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11360
  }
11361
 
11362
+ // #3895, #4268
11363
+ function transformSpecialNewlines (text) {
11364
+ return text
11365
+ .replace(/\u2028/g, '\\u2028')
11366
+ .replace(/\u2029/g, '\\u2029')
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11367
  }
 
 
11368
 
11369
+ /* */
11370
+
 
 
 
 
11371
 
 
11372
 
11373
+ // these keywords should not appear inside expressions, but operators like
11374
+ // typeof, instanceof and in are allowed
11375
+ var prohibitedKeywordRE = new RegExp('\\b' + (
11376
+ 'do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,' +
11377
+ 'super,throw,while,yield,delete,export,import,return,switch,default,' +
11378
+ 'extends,finally,continue,debugger,function,arguments'
11379
+ ).split(',').join('\\b|\\b') + '\\b');
11380
 
11381
+ // these unary operators should not be used as property/method names
11382
+ var unaryOperatorsRE = new RegExp('\\b' + (
11383
+ 'delete,typeof,void'
11384
+ ).split(',').join('\\s*\\([^\\)]*\\)|\\b') + '\\s*\\([^\\)]*\\)');
11385
 
11386
+ // strip strings in expressions
11387
+ var stripStringRE = /'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g;
11388
 
11389
+ // detect problematic expressions in a template
11390
+ function detectErrors (ast, warn) {
11391
+ if (ast) {
11392
+ checkNode(ast, warn);
11393
+ }
11394
  }
 
 
11395
 
11396
+ function checkNode (node, warn) {
11397
+ if (node.type === 1) {
11398
+ for (var name in node.attrsMap) {
11399
+ if (dirRE.test(name)) {
11400
+ var value = node.attrsMap[name];
11401
+ if (value) {
11402
+ var range = node.rawAttrsMap[name];
11403
+ if (name === 'v-for') {
11404
+ checkFor(node, ("v-for=\"" + value + "\""), warn, range);
11405
+ } else if (onRE.test(name)) {
11406
+ checkEvent(value, (name + "=\"" + value + "\""), warn, range);
11407
+ } else {
11408
+ checkExpression(value, (name + "=\"" + value + "\""), warn, range);
11409
+ }
11410
  }
11411
  }
11412
  }
11413
+ if (node.children) {
11414
+ for (var i = 0; i < node.children.length; i++) {
11415
+ checkNode(node.children[i], warn);
11416
+ }
11417
  }
11418
+ } else if (node.type === 2) {
11419
+ checkExpression(node.expression, node.text, warn, node);
11420
  }
 
 
11421
  }
 
11422
 
11423
+ function checkEvent (exp, text, warn, range) {
11424
+ var stipped = exp.replace(stripStringRE, '');
11425
+ var keywordMatch = stipped.match(unaryOperatorsRE);
11426
+ if (keywordMatch && stipped.charAt(keywordMatch.index - 1) !== '$') {
11427
+ warn(
11428
+ "avoid using JavaScript unary operator as property name: " +
11429
+ "\"" + (keywordMatch[0]) + "\" in expression " + (text.trim()),
11430
+ range
11431
+ );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11432
  }
11433
+ checkExpression(exp, text, warn, range);
11434
  }
 
11435
 
11436
+ function checkFor (node, text, warn, range) {
11437
+ checkExpression(node.for || '', text, warn, range);
11438
+ checkIdentifier(node.alias, 'v-for alias', text, warn, range);
11439
+ checkIdentifier(node.iterator1, 'v-for iterator', text, warn, range);
11440
+ checkIdentifier(node.iterator2, 'v-for iterator', text, warn, range);
 
 
 
 
 
 
 
 
 
 
 
 
11441
  }
 
11442
 
11443
+ function checkIdentifier (
11444
+ ident,
11445
+ type,
11446
+ text,
11447
+ warn,
11448
+ range
11449
+ ) {
11450
+ if (typeof ident === 'string') {
11451
+ try {
11452
+ new Function(("var " + ident + "=_"));
11453
+ } catch (e) {
11454
+ warn(("invalid " + type + " \"" + ident + "\" in expression: " + (text.trim())), range);
11455
+ }
11456
+ }
11457
+ }
11458
 
11459
+ function checkExpression (exp, text, warn, range) {
11460
+ try {
11461
+ new Function(("return " + exp));
11462
+ } catch (e) {
11463
+ var keywordMatch = exp.replace(stripStringRE, '').match(prohibitedKeywordRE);
11464
+ if (keywordMatch) {
11465
+ warn(
11466
+ "avoid using JavaScript keyword as property name: " +
11467
+ "\"" + (keywordMatch[0]) + "\"\n Raw expression: " + (text.trim()),
11468
+ range
11469
+ );
11470
+ } else {
11471
+ warn(
11472
+ "invalid expression: " + (e.message) + " in\n\n" +
11473
+ " " + exp + "\n\n" +
11474
+ " Raw expression: " + (text.trim()) + "\n",
11475
+ range
11476
+ );
11477
+ }
11478
+ }
11479
  }
 
11480
 
11481
+ /* */
 
11482
 
11483
+ var range = 2;
11484
+
11485
+ function generateCodeFrame (
11486
+ source,
11487
+ start,
11488
+ end
11489
  ) {
11490
+ if ( start === void 0 ) start = 0;
11491
+ if ( end === void 0 ) end = source.length;
 
11492
 
11493
+ var lines = source.split(/\r?\n/);
11494
+ var count = 0;
11495
+ var res = [];
11496
+ for (var i = 0; i < lines.length; i++) {
11497
+ count += lines[i].length + 1;
11498
+ if (count >= start) {
11499
+ for (var j = i - range; j <= i + range || end > count; j++) {
11500
+ if (j < 0 || j >= lines.length) { continue }
11501
+ res.push(("" + (j + 1) + (repeat$1(" ", 3 - String(j + 1).length)) + "| " + (lines[j])));
11502
+ var lineLength = lines[j].length;
11503
+ if (j === i) {
11504
+ // push underline
11505
+ var pad = start - (count - lineLength) + 1;
11506
+ var length = end > count ? lineLength - pad : end - start;
11507
+ res.push(" | " + repeat$1(" ", pad) + repeat$1("^", length));
11508
+ } else if (j > i) {
11509
+ if (end > count) {
11510
+ var length$1 = Math.min(end - count, lineLength);
11511
+ res.push(" | " + repeat$1("^", length$1));
11512
+ }
11513
+ count += lineLength + 1;
11514
+ }
11515
  }
11516
+ break
11517
  }
11518
  }
11519
+ return res.join('\n')
11520
+ }
11521
 
11522
+ function repeat$1 (str, n) {
11523
+ var result = '';
11524
+ while (true) { // eslint-disable-line
11525
+ if (n & 1) { result += str; }
11526
+ n >>>= 1;
11527
+ if (n <= 0) { break }
11528
+ str += str;
11529
  }
11530
+ return result
11531
+ }
11532
 
11533
+ /* */
 
11534
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11535
 
 
 
 
 
 
 
 
11536
 
11537
+ function createFunction (code, errors) {
11538
+ try {
11539
+ return new Function(code)
11540
+ } catch (err) {
11541
+ errors.push({ err: err, code: code });
11542
+ return noop
 
 
 
 
 
 
 
 
 
 
 
11543
  }
 
 
11544
  }
 
11545
 
11546
+ function createCompileToFunctionFn (compile) {
11547
+ var cache = Object.create(null);
11548
 
11549
+ return function compileToFunctions (
 
 
11550
  template,
11551
+ options,
11552
+ vm
11553
  ) {
11554
+ options = extend({}, options);
11555
+ var warn$$1 = options.warn || warn;
11556
+ delete options.warn;
 
 
 
11557
 
11558
+ /* istanbul ignore if */
11559
+ {
11560
+ // detect possible CSP restriction
11561
+ try {
11562
+ new Function('return 1');
11563
+ } catch (e) {
11564
+ if (e.toString().match(/unsafe-eval|CSP/)) {
11565
+ warn$$1(
11566
+ 'It seems you are using the standalone build of Vue.js in an ' +
11567
+ 'environment with Content Security Policy that prohibits unsafe-eval. ' +
11568
+ 'The template compiler cannot work in this environment. Consider ' +
11569
+ 'relaxing the policy to allow unsafe-eval or pre-compiling your ' +
11570
+ 'templates into render functions.'
11571
+ );
11572
+ }
11573
+ }
11574
+ }
11575
+
11576
+ // check cache
11577
+ var key = options.delimiters
11578
+ ? String(options.delimiters) + template
11579
+ : template;
11580
+ if (cache[key]) {
11581
+ return cache[key]
11582
+ }
11583
+
11584
+ // compile
11585
+ var compiled = compile(template, options);
11586
+
11587
+ // check compilation errors/tips
11588
+ {
11589
+ if (compiled.errors && compiled.errors.length) {
11590
+ if (options.outputSourceRange) {
11591
+ compiled.errors.forEach(function (e) {
11592
+ warn$$1(
11593
+ "Error compiling template:\n\n" + (e.msg) + "\n\n" +
11594
+ generateCodeFrame(template, e.start, e.end),
11595
+ vm
11596
+ );
11597
+ });
11598
+ } else {
11599
+ warn$$1(
11600
+ "Error compiling template:\n\n" + template + "\n\n" +
11601
+ compiled.errors.map(function (e) { return ("- " + e); }).join('\n') + '\n',
11602
+ vm
11603
+ );
11604
+ }
11605
  }
11606
+ if (compiled.tips && compiled.tips.length) {
11607
+ if (options.outputSourceRange) {
11608
+ compiled.tips.forEach(function (e) { return tip(e.msg, vm); });
11609
+ } else {
11610
+ compiled.tips.forEach(function (msg) { return tip(msg, vm); });
11611
  }
11612
  }
11613
  }
11614
 
11615
+ // turn code into functions
11616
+ var res = {};
11617
+ var fnGenErrors = [];
11618
+ res.render = createFunction(compiled.render, fnGenErrors);
11619
+ res.staticRenderFns = compiled.staticRenderFns.map(function (code) {
11620
+ return createFunction(code, fnGenErrors)
11621
+ });
11622
+
11623
+ // check function generation errors.
11624
+ // this should only happen if there is a bug in the compiler itself.
11625
+ // mostly for codegen development use
11626
+ /* istanbul ignore if */
11627
  {
11628
+ if ((!compiled.errors || !compiled.errors.length) && fnGenErrors.length) {
11629
+ warn$$1(
11630
+ "Failed to generate render function:\n\n" +
11631
+ fnGenErrors.map(function (ref) {
11632
+ var err = ref.err;
11633
+ var code = ref.code;
11634
+
11635
+ return ((err.toString()) + " in\n\n" + code + "\n");
11636
+ }).join('\n'),
11637
+ vm
11638
+ );
11639
+ }
11640
  }
 
 
 
 
11641
 
11642
+ return (cache[key] = res)
 
 
11643
  }
11644
  }
 
11645
 
11646
+ /* */
11647
 
11648
+ function createCompilerCreator (baseCompile) {
11649
+ return function createCompiler (baseOptions) {
11650
+ function compile (
11651
+ template,
11652
+ options
11653
+ ) {
11654
+ var finalOptions = Object.create(baseOptions);
11655
+ var errors = [];
11656
+ var tips = [];
11657
+
11658
+ var warn = function (msg, range, tip) {
11659
+ (tip ? tips : errors).push(msg);
11660
+ };
11661
+
11662
+ if (options) {
11663
+ if (options.outputSourceRange) {
11664
+ // $flow-disable-line
11665
+ var leadingSpaceLength = template.match(/^\s*/)[0].length;
11666
+
11667
+ warn = function (msg, range, tip) {
11668
+ var data = { msg: msg };
11669
+ if (range) {
11670
+ if (range.start != null) {
11671
+ data.start = range.start + leadingSpaceLength;
11672
+ }
11673
+ if (range.end != null) {
11674
+ data.end = range.end + leadingSpaceLength;
11675
+ }
11676
+ }
11677
+ (tip ? tips : errors).push(data);
11678
+ };
11679
+ }
11680
+ // merge custom modules
11681
+ if (options.modules) {
11682
+ finalOptions.modules =
11683
+ (baseOptions.modules || []).concat(options.modules);
11684
+ }
11685
+ // merge custom directives
11686
+ if (options.directives) {
11687
+ finalOptions.directives = extend(
11688
+ Object.create(baseOptions.directives || null),
11689
+ options.directives
11690
+ );
11691
+ }
11692
+ // copy other options
11693
+ for (var key in options) {
11694
+ if (key !== 'modules' && key !== 'directives') {
11695
+ finalOptions[key] = options[key];
11696
+ }
11697
+ }
11698
+ }
11699
 
11700
+ finalOptions.warn = warn;
11701
 
11702
+ var compiled = baseCompile(template.trim(), finalOptions);
11703
+ {
11704
+ detectErrors(compiled.ast, warn);
11705
+ }
11706
+ compiled.errors = errors;
11707
+ compiled.tips = tips;
11708
+ return compiled
11709
+ }
11710
 
11711
+ return {
11712
+ compile: compile,
11713
+ compileToFunctions: createCompileToFunctionFn(compile)
11714
+ }
11715
+ }
11716
+ }
11717
 
11718
+ /* */
 
 
 
 
 
 
11719
 
11720
+ // `createCompilerCreator` allows creating compilers that use alternative
11721
+ // parser/optimizer/codegen, e.g the SSR optimizing compiler.
11722
+ // Here we just export a default compiler using the default parts.
11723
+ var createCompiler = createCompilerCreator(function baseCompile (
11724
+ template,
11725
+ options
11726
+ ) {
11727
+ var ast = parse(template.trim(), options);
11728
+ if (options.optimize !== false) {
11729
+ optimize(ast, options);
11730
+ }
11731
+ var code = generate(ast, options);
11732
+ return {
11733
+ ast: ast,
11734
+ render: code.render,
11735
+ staticRenderFns: code.staticRenderFns
11736
+ }
11737
+ });
11738
 
11739
+ /* */
11740
 
11741
+ var ref$1 = createCompiler(baseOptions);
11742
+ var compile = ref$1.compile;
11743
+ var compileToFunctions = ref$1.compileToFunctions;
 
11744
 
11745
+ /* */
 
 
 
 
 
11746
 
11747
+ // check whether current browser encodes a char inside attribute values
11748
+ var div;
11749
+ function getShouldDecode (href) {
11750
+ div = div || document.createElement('div');
11751
+ div.innerHTML = href ? "<a href=\"\n\"/>" : "<div a=\"\n\"/>";
11752
+ return div.innerHTML.indexOf('&#10;') > 0
11753
  }
11754
 
11755
+ // #3663: IE encodes newlines inside attribute values while other browsers don't
11756
+ var shouldDecodeNewlines = inBrowser ? getShouldDecode(false) : false;
11757
+ // #6828: chrome encodes content in a[href]
11758
+ var shouldDecodeNewlinesForHref = inBrowser ? getShouldDecode(true) : false;
11759
+
11760
+ /* */
11761
+
11762
+ var idToTemplate = cached(function (id) {
11763
+ var el = query(id);
11764
+ return el && el.innerHTML
11765
+ });
11766
+
11767
+ var mount = Vue.prototype.$mount;
11768
+ Vue.prototype.$mount = function (
11769
+ el,
11770
+ hydrating
11771
+ ) {
11772
+ el = el && query(el);
11773
+
11774
+ /* istanbul ignore if */
11775
+ if (el === document.body || el === document.documentElement) {
11776
+ warn(
11777
+ "Do not mount Vue to <html> or <body> - mount to normal elements instead."
11778
+ );
11779
+ return this
11780
+ }
11781
+
11782
+ var options = this.$options;
11783
+ // resolve template/el and convert to render function
11784
+ if (!options.render) {
11785
+ var template = options.template;
11786
+ if (template) {
11787
+ if (typeof template === 'string') {
11788
+ if (template.charAt(0) === '#') {
11789
+ template = idToTemplate(template);
11790
+ /* istanbul ignore if */
11791
+ if (!template) {
11792
+ warn(
11793
+ ("Template element not found or is empty: " + (options.template)),
11794
+ this
11795
+ );
11796
+ }
11797
  }
11798
+ } else if (template.nodeType) {
11799
+ template = template.innerHTML;
11800
+ } else {
11801
+ {
11802
+ warn('invalid template option:' + template, this);
11803
+ }
11804
+ return this
11805
  }
11806
+ } else if (el) {
11807
+ template = getOuterHTML(el);
 
 
 
 
 
 
 
 
 
 
 
 
 
11808
  }
11809
+ if (template) {
11810
+ /* istanbul ignore if */
11811
+ if (config.performance && mark) {
11812
+ mark('compile');
11813
+ }
11814
 
11815
+ var ref = compileToFunctions(template, {
11816
+ outputSourceRange: "development" !== 'production',
11817
+ shouldDecodeNewlines: shouldDecodeNewlines,
11818
+ shouldDecodeNewlinesForHref: shouldDecodeNewlinesForHref,
11819
+ delimiters: options.delimiters,
11820
+ comments: options.comments
11821
+ }, this);
11822
+ var render = ref.render;
11823
+ var staticRenderFns = ref.staticRenderFns;
11824
+ options.render = render;
11825
+ options.staticRenderFns = staticRenderFns;
11826
 
11827
+ /* istanbul ignore if */
11828
+ if (config.performance && mark) {
11829
+ mark('compile end');
11830
+ measure(("vue " + (this._name) + " compile"), 'compile', 'compile end');
11831
+ }
11832
  }
11833
  }
11834
+ return mount.call(this, el, hydrating)
11835
+ };
 
11836
 
11837
+ /**
11838
+ * Get outerHTML of elements, taking care
11839
+ * of SVG elements in IE as well.
11840
+ */
11841
+ function getOuterHTML (el) {
11842
+ if (el.outerHTML) {
11843
+ return el.outerHTML
11844
+ } else {
11845
+ var container = document.createElement('div');
11846
+ container.appendChild(el.cloneNode(true));
11847
+ return container.innerHTML
11848
+ }
11849
  }
 
11850
 
11851
+ Vue.compile = compileToFunctions;
11852
 
11853
+ return Vue;
11854
 
11855
+ }));
app/vendor/vue.min.js CHANGED
@@ -1,6 +1,6 @@
1
  /*!
2
- * Vue.js v2.5.17
3
- * (c) 2014-2018 Evan You
4
  * Released under the MIT License.
5
  */
6
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Vue=t()}(this,function(){"use strict";var y=Object.freeze({});function M(e){return null==e}function D(e){return null!=e}function S(e){return!0===e}function T(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function P(e){return null!==e&&"object"==typeof e}var r=Object.prototype.toString;function l(e){return"[object Object]"===r.call(e)}function i(e){var t=parseFloat(String(e));return 0<=t&&Math.floor(t)===t&&isFinite(e)}function t(e){return null==e?"":"object"==typeof e?JSON.stringify(e,null,2):String(e)}function F(e){var t=parseFloat(e);return isNaN(t)?e:t}function s(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}var c=s("slot,component",!0),u=s("key,ref,slot,slot-scope,is");function f(e,t){if(e.length){var n=e.indexOf(t);if(-1<n)return e.splice(n,1)}}var n=Object.prototype.hasOwnProperty;function p(e,t){return n.call(e,t)}function e(t){var n=Object.create(null);return function(e){return n[e]||(n[e]=t(e))}}var o=/-(\w)/g,g=e(function(e){return e.replace(o,function(e,t){return t?t.toUpperCase():""})}),d=e(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),a=/\B([A-Z])/g,_=e(function(e){return e.replace(a,"-$1").toLowerCase()});var v=Function.prototype.bind?function(e,t){return e.bind(t)}:function(n,r){function e(e){var t=arguments.length;return t?1<t?n.apply(r,arguments):n.call(r,e):n.call(r)}return e._length=n.length,e};function h(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function m(e,t){for(var n in t)e[n]=t[n];return e}function b(e){for(var t={},n=0;n<e.length;n++)e[n]&&m(t,e[n]);return t}function $(e,t,n){}var O=function(e,t,n){return!1},w=function(e){return e};function C(t,n){if(t===n)return!0;var e=P(t),r=P(n);if(!e||!r)return!e&&!r&&String(t)===String(n);try{var i=Array.isArray(t),o=Array.isArray(n);if(i&&o)return t.length===n.length&&t.every(function(e,t){return C(e,n[t])});if(i||o)return!1;var a=Object.keys(t),s=Object.keys(n);return a.length===s.length&&a.every(function(e){return C(t[e],n[e])})}catch(e){return!1}}function x(e,t){for(var n=0;n<e.length;n++)if(C(e[n],t))return n;return-1}function R(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var E="data-server-rendered",k=["component","directive","filter"],A=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured"],j={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:O,isReservedAttr:O,isUnknownElement:O,getTagNamespace:$,parsePlatformTagName:w,mustUseProp:O,_lifecycleHooks:A};function N(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var L=/[^\w.$]/;var I,H="__proto__"in{},B="undefined"!=typeof window,U="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,V=U&&WXEnvironment.platform.toLowerCase(),z=B&&window.navigator.userAgent.toLowerCase(),K=z&&/msie|trident/.test(z),J=z&&0<z.indexOf("msie 9.0"),q=z&&0<z.indexOf("edge/"),W=(z&&z.indexOf("android"),z&&/iphone|ipad|ipod|ios/.test(z)||"ios"===V),G=(z&&/chrome\/\d+/.test(z),{}.watch),Z=!1;if(B)try{var X={};Object.defineProperty(X,"passive",{get:function(){Z=!0}}),window.addEventListener("test-passive",null,X)}catch(e){}var Y=function(){return void 0===I&&(I=!B&&!U&&"undefined"!=typeof global&&"server"===global.process.env.VUE_ENV),I},Q=B&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ee(e){return"function"==typeof e&&/native code/.test(e.toString())}var te,ne="undefined"!=typeof Symbol&&ee(Symbol)&&"undefined"!=typeof Reflect&&ee(Reflect.ownKeys);te="undefined"!=typeof Set&&ee(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var re=$,ie=0,oe=function(){this.id=ie++,this.subs=[]};oe.prototype.addSub=function(e){this.subs.push(e)},oe.prototype.removeSub=function(e){f(this.subs,e)},oe.prototype.depend=function(){oe.target&&oe.target.addDep(this)},oe.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t<n;t++)e[t].update()},oe.target=null;var ae=[];function se(e){oe.target&&ae.push(oe.target),oe.target=e}function ce(){oe.target=ae.pop()}var le=function(e,t,n,r,i,o,a,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},ue={child:{configurable:!0}};ue.child.get=function(){return this.componentInstance},Object.defineProperties(le.prototype,ue);var fe=function(e){void 0===e&&(e="");var t=new le;return t.text=e,t.isComment=!0,t};function pe(e){return new le(void 0,void 0,void 0,String(e))}function de(e){var t=new le(e.tag,e.data,e.children,e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.isCloned=!0,t}var ve=Array.prototype,he=Object.create(ve);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(o){var a=ve[o];N(he,o,function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r=a.apply(this,e),i=this.__ob__;switch(o){case"push":case"unshift":n=e;break;case"splice":n=e.slice(2)}return n&&i.observeArray(n),i.dep.notify(),r})});var me=Object.getOwnPropertyNames(he),ye=!0;function ge(e){ye=e}var _e=function(e){(this.value=e,this.dep=new oe,this.vmCount=0,N(e,"__ob__",this),Array.isArray(e))?((H?be:$e)(e,he,me),this.observeArray(e)):this.walk(e)};function be(e,t,n){e.__proto__=t}function $e(e,t,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];N(e,o,t[o])}}function we(e,t){var n;if(P(e)&&!(e instanceof le))return p(e,"__ob__")&&e.__ob__ instanceof _e?n=e.__ob__:ye&&!Y()&&(Array.isArray(e)||l(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new _e(e)),t&&n&&n.vmCount++,n}function Ce(n,e,r,t,i){var o=new oe,a=Object.getOwnPropertyDescriptor(n,e);if(!a||!1!==a.configurable){var s=a&&a.get;s||2!==arguments.length||(r=n[e]);var c=a&&a.set,l=!i&&we(r);Object.defineProperty(n,e,{enumerable:!0,configurable:!0,get:function(){var e=s?s.call(n):r;return oe.target&&(o.depend(),l&&(l.dep.depend(),Array.isArray(e)&&function e(t){for(var n=void 0,r=0,i=t.length;r<i;r++)(n=t[r])&&n.__ob__&&n.__ob__.dep.depend(),Array.isArray(n)&&e(n)}(e))),e},set:function(e){var t=s?s.call(n):r;e===t||e!=e&&t!=t||(c?c.call(n,e):r=e,l=!i&&we(e),o.notify())}})}}function xe(e,t,n){if(Array.isArray(e)&&i(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n;var r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?(Ce(r.value,t,n),r.dep.notify(),n):e[t]=n}function ke(e,t){if(Array.isArray(e)&&i(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||p(e,t)&&(delete e[t],n&&n.dep.notify())}}_e.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)Ce(e,t[n])},_e.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)we(e[t])};var Ae=j.optionMergeStrategies;function Oe(e,t){if(!t)return e;for(var n,r,i,o=Object.keys(t),a=0;a<o.length;a++)r=e[n=o[a]],i=t[n],p(e,n)?l(r)&&l(i)&&Oe(r,i):xe(e,n,i);return e}function Se(n,r,i){return i?function(){var e="function"==typeof r?r.call(i,i):r,t="function"==typeof n?n.call(i,i):n;return e?Oe(e,t):t}:r?n?function(){return Oe("function"==typeof r?r.call(this,this):r,"function"==typeof n?n.call(this,this):n)}:r:n}function Te(e,t){return t?e?e.concat(t):Array.isArray(t)?t:[t]:e}function Ee(e,t,n,r){var i=Object.create(e||null);return t?m(i,t):i}Ae.data=function(e,t,n){return n?Se(e,t,n):t&&"function"!=typeof t?e:Se(e,t)},A.forEach(function(e){Ae[e]=Te}),k.forEach(function(e){Ae[e+"s"]=Ee}),Ae.watch=function(e,t,n,r){if(e===G&&(e=void 0),t===G&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var i={};for(var o in m(i,e),t){var a=i[o],s=t[o];a&&!Array.isArray(a)&&(a=[a]),i[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return i},Ae.props=Ae.methods=Ae.inject=Ae.computed=function(e,t,n,r){if(!e)return t;var i=Object.create(null);return m(i,e),t&&m(i,t),i},Ae.provide=Se;var je=function(e,t){return void 0===t?e:t};function Ne(n,r,i){"function"==typeof r&&(r=r.options),function(e,t){var n=e.props;if(n){var r,i,o={};if(Array.isArray(n))for(r=n.length;r--;)"string"==typeof(i=n[r])&&(o[g(i)]={type:null});else if(l(n))for(var a in n)i=n[a],o[g(a)]=l(i)?i:{type:i};e.props=o}}(r),function(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(l(n))for(var o in n){var a=n[o];r[o]=l(a)?m({from:o},a):{from:a}}}}(r),function(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"==typeof r&&(t[n]={bind:r,update:r})}}(r);var e=r.extends;if(e&&(n=Ne(n,e,i)),r.mixins)for(var t=0,o=r.mixins.length;t<o;t++)n=Ne(n,r.mixins[t],i);var a,s={};for(a in n)c(a);for(a in r)p(n,a)||c(a);function c(e){var t=Ae[e]||je;s[e]=t(n[e],r[e],i,e)}return s}function Le(e,t,n,r){if("string"==typeof n){var i=e[t];if(p(i,n))return i[n];var o=g(n);if(p(i,o))return i[o];var a=d(o);return p(i,a)?i[a]:i[n]||i[o]||i[a]}}function Ie(e,t,n,r){var i=t[e],o=!p(n,e),a=n[e],s=Pe(Boolean,i.type);if(-1<s)if(o&&!p(i,"default"))a=!1;else if(""===a||a===_(e)){var c=Pe(String,i.type);(c<0||s<c)&&(a=!0)}if(void 0===a){a=function(e,t,n){if(!p(t,"default"))return;var r=t.default;if(e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n])return e._props[n];return"function"==typeof r&&"Function"!==Me(t.type)?r.call(e):r}(r,i,e);var l=ye;ge(!0),we(a),ge(l)}return a}function Me(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function De(e,t){return Me(e)===Me(t)}function Pe(e,t){if(!Array.isArray(t))return De(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(De(t[n],e))return n;return-1}function Fe(e,t,n){if(t)for(var r=t;r=r.$parent;){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{if(!1===i[o].call(r,e,t,n))return}catch(e){Re(e,r,"errorCaptured hook")}}Re(e,t,n)}function Re(e,t,n){if(j.errorHandler)try{return j.errorHandler.call(null,e,t,n)}catch(e){He(e,null,"config.errorHandler")}He(e,t,n)}function He(e,t,n){if(!B&&!U||"undefined"==typeof console)throw e;console.error(e)}var Be,Ue,Ve=[],ze=!1;function Ke(){ze=!1;for(var e=Ve.slice(0),t=Ve.length=0;t<e.length;t++)e[t]()}var Je=!1;if("undefined"!=typeof setImmediate&&ee(setImmediate))Ue=function(){setImmediate(Ke)};else if("undefined"==typeof MessageChannel||!ee(MessageChannel)&&"[object MessageChannelConstructor]"!==MessageChannel.toString())Ue=function(){setTimeout(Ke,0)};else{var qe=new MessageChannel,We=qe.port2;qe.port1.onmessage=Ke,Ue=function(){We.postMessage(1)}}if("undefined"!=typeof Promise&&ee(Promise)){var Ge=Promise.resolve();Be=function(){Ge.then(Ke),W&&setTimeout($)}}else Be=Ue;function Ze(e,t){var n;if(Ve.push(function(){if(e)try{e.call(t)}catch(e){Fe(e,t,"nextTick")}else n&&n(t)}),ze||(ze=!0,Je?Ue():Be()),!e&&"undefined"!=typeof Promise)return new Promise(function(e){n=e})}var Xe=new te;function Ye(e){!function e(t,n){var r,i;var o=Array.isArray(t);if(!o&&!P(t)||Object.isFrozen(t)||t instanceof le)return;if(t.__ob__){var a=t.__ob__.dep.id;if(n.has(a))return;n.add(a)}if(o)for(r=t.length;r--;)e(t[r],n);else for(i=Object.keys(t),r=i.length;r--;)e(t[i[r]],n)}(e,Xe),Xe.clear()}var Qe,et=e(function(e){var t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),r="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=r?e.slice(1):e,once:n,capture:r,passive:t}});function tt(e){function i(){var e=arguments,t=i.fns;if(!Array.isArray(t))return t.apply(null,arguments);for(var n=t.slice(),r=0;r<n.length;r++)n[r].apply(null,e)}return i.fns=e,i}function nt(e,t,n,r,i){var o,a,s,c;for(o in e)a=e[o],s=t[o],c=et(o),M(a)||(M(s)?(M(a.fns)&&(a=e[o]=tt(a)),n(c.name,a,c.once,c.capture,c.passive,c.params)):a!==s&&(s.fns=a,e[o]=s));for(o in t)M(e[o])&&r((c=et(o)).name,t[o],c.capture)}function rt(e,t,n){var r;e instanceof le&&(e=e.data.hook||(e.data.hook={}));var i=e[t];function o(){n.apply(this,arguments),f(r.fns,o)}M(i)?r=tt([o]):D(i.fns)&&S(i.merged)?(r=i).fns.push(o):r=tt([i,o]),r.merged=!0,e[t]=r}function it(e,t,n,r,i){if(D(t)){if(p(t,n))return e[n]=t[n],i||delete t[n],!0;if(p(t,r))return e[n]=t[r],i||delete t[r],!0}return!1}function ot(e){return T(e)?[pe(e)]:Array.isArray(e)?function e(t,n){var r=[];var i,o,a,s;for(i=0;i<t.length;i++)M(o=t[i])||"boolean"==typeof o||(a=r.length-1,s=r[a],Array.isArray(o)?0<o.length&&(at((o=e(o,(n||"")+"_"+i))[0])&&at(s)&&(r[a]=pe(s.text+o[0].text),o.shift()),r.push.apply(r,o)):T(o)?at(s)?r[a]=pe(s.text+o):""!==o&&r.push(pe(o)):at(o)&&at(s)?r[a]=pe(s.text+o.text):(S(t._isVList)&&D(o.tag)&&M(o.key)&&D(n)&&(o.key="__vlist"+n+"_"+i+"__"),r.push(o)));return r}(e):void 0}function at(e){return D(e)&&D(e.text)&&!1===e.isComment}function st(e,t){return(e.__esModule||ne&&"Module"===e[Symbol.toStringTag])&&(e=e.default),P(e)?t.extend(e):e}function ct(e){return e.isComment&&e.asyncFactory}function lt(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var n=e[t];if(D(n)&&(D(n.componentOptions)||ct(n)))return n}}function ut(e,t,n){n?Qe.$once(e,t):Qe.$on(e,t)}function ft(e,t){Qe.$off(e,t)}function pt(e,t,n){Qe=e,nt(t,n||{},ut,ft),Qe=void 0}function dt(e,t){var n={};if(!e)return n;for(var r=0,i=e.length;r<i;r++){var o=e[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==t&&o.fnContext!==t||!a||null==a.slot)(n.default||(n.default=[])).push(o);else{var s=a.slot,c=n[s]||(n[s]=[]);"template"===o.tag?c.push.apply(c,o.children||[]):c.push(o)}}for(var l in n)n[l].every(vt)&&delete n[l];return n}function vt(e){return e.isComment&&!e.asyncFactory||" "===e.text}function ht(e,t){t=t||{};for(var n=0;n<e.length;n++)Array.isArray(e[n])?ht(e[n],t):t[e[n].key]=e[n].fn;return t}var mt=null;function yt(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function gt(e,t){if(t){if(e._directInactive=!1,yt(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)gt(e.$children[n]);_t(e,"activated")}}function _t(t,n){se();var e=t.$options[n];if(e)for(var r=0,i=e.length;r<i;r++)try{e[r].call(t)}catch(e){Fe(e,t,n+" hook")}t._hasHookEvent&&t.$emit("hook:"+n),ce()}var bt=[],$t=[],wt={},Ct=!1,xt=!1,kt=0;function At(){var e,t;for(xt=!0,bt.sort(function(e,t){return e.id-t.id}),kt=0;kt<bt.length;kt++)t=(e=bt[kt]).id,wt[t]=null,e.run();var n=$t.slice(),r=bt.slice();kt=bt.length=$t.length=0,wt={},Ct=xt=!1,function(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,gt(e[t],!0)}(n),function(e){var t=e.length;for(;t--;){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&_t(r,"updated")}}(r),Q&&j.devtools&&Q.emit("flush")}var Ot=0,St=function(e,t,n,r,i){this.vm=e,i&&(e._watcher=this),e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++Ot,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new te,this.newDepIds=new te,this.expression="","function"==typeof t?this.getter=t:(this.getter=function(e){if(!L.test(e)){var n=e.split(".");return function(e){for(var t=0;t<n.length;t++){if(!e)return;e=e[n[t]]}return e}}}(t),this.getter||(this.getter=function(){})),this.value=this.lazy?void 0:this.get()};St.prototype.get=function(){var e;se(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(e){if(!this.user)throw e;Fe(e,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&Ye(e),ce(),this.cleanupDeps()}return e},St.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},St.prototype.cleanupDeps=function(){for(var e=this.deps.length;e--;){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},St.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(e){var t=e.id;if(null==wt[t]){if(wt[t]=!0,xt){for(var n=bt.length-1;kt<n&&bt[n].id>e.id;)n--;bt.splice(n+1,0,e)}else bt.push(e);Ct||(Ct=!0,Ze(At))}}(this)},St.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||P(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){Fe(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},St.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},St.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},St.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||f(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var Tt={enumerable:!0,configurable:!0,get:$,set:$};function Et(e,t,n){Tt.get=function(){return this[t][n]},Tt.set=function(e){this[t][n]=e},Object.defineProperty(e,n,Tt)}function jt(e){e._watchers=[];var t=e.$options;t.props&&function(n,r){var i=n.$options.propsData||{},o=n._props={},a=n.$options._propKeys=[];n.$parent&&ge(!1);var e=function(e){a.push(e);var t=Ie(e,r,i,n);Ce(o,e,t),e in n||Et(n,"_props",e)};for(var t in r)e(t);ge(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]=null==t[n]?$:v(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;l(t=e._data="function"==typeof t?function(e,t){se();try{return e.call(t,t)}catch(e){return Fe(e,t,"data()"),{}}finally{ce()}}(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);for(;i--;){var o=n[i];r&&p(r,o)||(void 0,36!==(a=(o+"").charCodeAt(0))&&95!==a&&Et(e,"_data",o))}var a;we(t,!0)}(e):we(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=Y();for(var i in t){var o=t[i],a="function"==typeof o?o:o.get;r||(n[i]=new St(e,a||$,$,Nt)),i in e||Lt(e,i,o)}}(e,t.computed),t.watch&&t.watch!==G&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)Mt(e,n,r[i]);else Mt(e,n,r)}}(e,t.watch)}var Nt={lazy:!0};function Lt(e,t,n){var r=!Y();"function"==typeof n?(Tt.get=r?It(t):n,Tt.set=$):(Tt.get=n.get?r&&!1!==n.cache?It(t):n.get:$,Tt.set=n.set?n.set:$),Object.defineProperty(e,t,Tt)}function It(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),oe.target&&e.depend(),e.value}}function Mt(e,t,n,r){return l(n)&&(n=(r=n).handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}function Dt(t,e){if(t){for(var n=Object.create(null),r=ne?Reflect.ownKeys(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}):Object.keys(t),i=0;i<r.length;i++){for(var o=r[i],a=t[o].from,s=e;s;){if(s._provided&&p(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s&&"default"in t[o]){var c=t[o].default;n[o]="function"==typeof c?c.call(e):c}}return n}}function Pt(e,t){var n,r,i,o,a;if(Array.isArray(e)||"string"==typeof e)for(n=new Array(e.length),r=0,i=e.length;r<i;r++)n[r]=t(e[r],r);else if("number"==typeof e)for(n=new Array(e),r=0;r<e;r++)n[r]=t(r+1,r);else if(P(e))for(o=Object.keys(e),n=new Array(o.length),r=0,i=o.length;r<i;r++)a=o[r],n[r]=t(e[a],a,r);return D(n)&&(n._isVList=!0),n}function Ft(e,t,n,r){var i,o=this.$scopedSlots[e];if(o)n=n||{},r&&(n=m(m({},r),n)),i=o(n)||t;else{var a=this.$slots[e];a&&(a._rendered=!0),i=a||t}var s=n&&n.slot;return s?this.$createElement("template",{slot:s},i):i}function Rt(e){return Le(this.$options,"filters",e)||w}function Ht(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function Bt(e,t,n,r,i){var o=j.keyCodes[t]||n;return i&&r&&!j.keyCodes[t]?Ht(i,r):o?Ht(o,e):r?_(r)!==t:void 0}function Ut(n,r,i,o,a){if(i)if(P(i)){var s;Array.isArray(i)&&(i=b(i));var e=function(t){if("class"===t||"style"===t||u(t))s=n;else{var e=n.attrs&&n.attrs.type;s=o||j.mustUseProp(r,e,t)?n.domProps||(n.domProps={}):n.attrs||(n.attrs={})}t in s||(s[t]=i[t],a&&((n.on||(n.on={}))["update:"+t]=function(e){i[t]=e}))};for(var t in i)e(t)}else;return n}function Vt(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t||Kt(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),"__static__"+e,!1),r}function zt(e,t,n){return Kt(e,"__once__"+t+(n?"_"+n:""),!0),e}function Kt(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&&Jt(e[r],t+"_"+r,n);else Jt(e,t,n)}function Jt(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function qt(e,t){if(t)if(l(t)){var n=e.on=e.on?m({},e.on):{};for(var r in t){var i=n[r],o=t[r];n[r]=i?[].concat(i,o):o}}else;return e}function Wt(e){e._o=zt,e._n=F,e._s=t,e._l=Pt,e._t=Ft,e._q=C,e._i=x,e._m=Vt,e._f=Rt,e._k=Bt,e._b=Ut,e._v=pe,e._e=fe,e._u=ht,e._g=qt}function Gt(e,t,n,o,r){var a,s=r.options;p(o,"_uid")?(a=Object.create(o))._original=o:o=(a=o)._original;var i=S(s._compiled),c=!i;this.data=e,this.props=t,this.children=n,this.parent=o,this.listeners=e.on||y,this.injections=Dt(s.inject,o),this.slots=function(){return dt(n,o)},i&&(this.$options=s,this.$slots=this.slots(),this.$scopedSlots=e.scopedSlots||y),s._scopeId?this._c=function(e,t,n,r){var i=rn(a,e,t,n,r,c);return i&&!Array.isArray(i)&&(i.fnScopeId=s._scopeId,i.fnContext=o),i}:this._c=function(e,t,n,r){return rn(a,e,t,n,r,c)}}function Zt(e,t,n,r){var i=de(e);return i.fnContext=n,i.fnOptions=r,t.slot&&((i.data||(i.data={})).slot=t.slot),i}function Xt(e,t){for(var n in t)e[g(n)]=t[n]}Wt(Gt.prototype);var Yt={init:function(e,t,n,r){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var i=e;Yt.prepatch(i,i)}else{(e.componentInstance=function(e,t,n,r){var i={_isComponent:!0,parent:t,_parentVnode:e,_parentElm:n||null,_refElm:r||null},o=e.data.inlineTemplate;D(o)&&(i.render=o.render,i.staticRenderFns=o.staticRenderFns);return new e.componentOptions.Ctor(i)}(e,mt,n,r)).$mount(t?e.elm:void 0,t)}},prepatch:function(e,t){var n=t.componentOptions;!function(e,t,n,r,i){var o=!!(i||e.$options._renderChildren||r.data.scopedSlots||e.$scopedSlots!==y);if(e.$options._parentVnode=r,e.$vnode=r,e._vnode&&(e._vnode.parent=r),e.$options._renderChildren=i,e.$attrs=r.data.attrs||y,e.$listeners=n||y,t&&e.$options.props){ge(!1);for(var a=e._props,s=e.$options._propKeys||[],c=0;c<s.length;c++){var l=s[c],u=e.$options.props;a[l]=Ie(l,u,t,e)}ge(!0),e.$options.propsData=t}n=n||y;var f=e.$options._parentListeners;e.$options._parentListeners=n,pt(e,n,f),o&&(e.$slots=dt(i,r.context),e.$forceUpdate())}(t.componentInstance=e.componentInstance,n.propsData,n.listeners,t,n.children)},insert:function(e){var t,n=e.context,r=e.componentInstance;r._isMounted||(r._isMounted=!0,_t(r,"mounted")),e.data.keepAlive&&(n._isMounted?((t=r)._inactive=!1,$t.push(t)):gt(r,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?function e(t,n){if(!(n&&(t._directInactive=!0,yt(t))||t._inactive)){t._inactive=!0;for(var r=0;r<t.$children.length;r++)e(t.$children[r]);_t(t,"deactivated")}}(t,!0):t.$destroy())}},Qt=Object.keys(Yt);function en(e,t,n,r,i){if(!M(e)){var o=n.$options._base;if(P(e)&&(e=o.extend(e)),"function"==typeof e){var a,s,c,l,u,f,p;if(M(e.cid)&&void 0===(e=function(t,n,e){if(S(t.error)&&D(t.errorComp))return t.errorComp;if(D(t.resolved))return t.resolved;if(S(t.loading)&&D(t.loadingComp))return t.loadingComp;if(!D(t.contexts)){var r=t.contexts=[e],i=!0,o=function(){for(var e=0,t=r.length;e<t;e++)r[e].$forceUpdate()},a=R(function(e){t.resolved=st(e,n),i||o()}),s=R(function(e){D(t.errorComp)&&(t.error=!0,o())}),c=t(a,s);return P(c)&&("function"==typeof c.then?M(t.resolved)&&c.then(a,s):D(c.component)&&"function"==typeof c.component.then&&(c.component.then(a,s),D(c.error)&&(t.errorComp=st(c.error,n)),D(c.loading)&&(t.loadingComp=st(c.loading,n),0===c.delay?t.loading=!0:setTimeout(function(){M(t.resolved)&&M(t.error)&&(t.loading=!0,o())},c.delay||200)),D(c.timeout)&&setTimeout(function(){M(t.resolved)&&s(null)},c.timeout))),i=!1,t.loading?t.loadingComp:t.resolved}t.contexts.push(e)}(a=e,o,n)))return s=a,c=t,l=n,u=r,f=i,(p=fe()).asyncFactory=s,p.asyncMeta={data:c,context:l,children:u,tag:f},p;t=t||{},dn(e),D(t.model)&&function(e,t){var n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.props||(t.props={}))[n]=t.model.value;var i=t.on||(t.on={});D(i[r])?i[r]=[t.model.callback].concat(i[r]):i[r]=t.model.callback}(e.options,t);var d=function(e,t,n){var r=t.options.props;if(!M(r)){var i={},o=e.attrs,a=e.props;if(D(o)||D(a))for(var s in r){var c=_(s);it(i,a,s,c,!0)||it(i,o,s,c,!1)}return i}}(t,e);if(S(e.options.functional))return function(e,t,n,r,i){var o=e.options,a={},s=o.props;if(D(s))for(var c in s)a[c]=Ie(c,s,t||y);else D(n.attrs)&&Xt(a,n.attrs),D(n.props)&&Xt(a,n.props);var l=new Gt(n,a,i,r,e),u=o.render.call(null,l._c,l);if(u instanceof le)return Zt(u,n,l.parent,o);if(Array.isArray(u)){for(var f=ot(u)||[],p=new Array(f.length),d=0;d<f.length;d++)p[d]=Zt(f[d],n,l.parent,o);return p}}(e,d,t,n,r);var v=t.on;if(t.on=t.nativeOn,S(e.options.abstract)){var h=t.slot;t={},h&&(t.slot=h)}!function(e){for(var t=e.hook||(e.hook={}),n=0;n<Qt.length;n++){var r=Qt[n];t[r]=Yt[r]}}(t);var m=e.options.name||i;return new le("vue-component-"+e.cid+(m?"-"+m:""),t,void 0,void 0,void 0,n,{Ctor:e,propsData:d,listeners:v,tag:i,children:r},a)}}}var tn=1,nn=2;function rn(e,t,n,r,i,o){return(Array.isArray(n)||T(n))&&(i=r,r=n,n=void 0),S(o)&&(i=nn),function(e,t,n,r,i){if(D(n)&&D(n.__ob__))return fe();D(n)&&D(n.is)&&(t=n.is);if(!t)return fe();Array.isArray(r)&&"function"==typeof r[0]&&((n=n||{}).scopedSlots={default:r[0]},r.length=0);i===nn?r=ot(r):i===tn&&(r=function(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}(r));var o,a;if("string"==typeof t){var s;a=e.$vnode&&e.$vnode.ns||j.getTagNamespace(t),o=j.isReservedTag(t)?new le(j.parsePlatformTagName(t),n,r,void 0,void 0,e):D(s=Le(e.$options,"components",t))?en(s,n,e,r,t):new le(t,n,r,void 0,void 0,e)}else o=en(t,n,e,r);return Array.isArray(o)?o:D(o)?(D(a)&&function e(t,n,r){t.ns=n;"foreignObject"===t.tag&&(n=void 0,r=!0);if(D(t.children))for(var i=0,o=t.children.length;i<o;i++){var a=t.children[i];D(a.tag)&&(M(a.ns)||S(r)&&"svg"!==a.tag)&&e(a,n,r)}}(o,a),D(n)&&function(e){P(e.style)&&Ye(e.style);P(e.class)&&Ye(e.class)}(n),o):fe()}(e,t,n,r,i)}var on,an,sn,cn,ln,un,fn,pn=0;function dn(e){var t=e.options;if(e.super){var n=dn(e.super);if(n!==e.superOptions){e.superOptions=n;var r=function(e){var t,n=e.options,r=e.extendOptions,i=e.sealedOptions;for(var o in n)n[o]!==i[o]&&(t||(t={}),t[o]=vn(n[o],r[o],i[o]));return t}(e);r&&m(e.extendOptions,r),(t=e.options=Ne(n,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function vn(e,t,n){if(Array.isArray(e)){var r=[];n=Array.isArray(n)?n:[n],t=Array.isArray(t)?t:[t];for(var i=0;i<e.length;i++)(0<=t.indexOf(e[i])||n.indexOf(e[i])<0)&&r.push(e[i]);return r}return e}function hn(e){this._init(e)}function mn(e){e.cid=0;var a=1;e.extend=function(e){e=e||{};var t=this,n=t.cid,r=e._Ctor||(e._Ctor={});if(r[n])return r[n];var i=e.name||t.options.name,o=function(e){this._init(e)};return((o.prototype=Object.create(t.prototype)).constructor=o).cid=a++,o.options=Ne(t.options,e),o.super=t,o.options.props&&function(e){var t=e.options.props;for(var n in t)Et(e.prototype,"_props",n)}(o),o.options.computed&&function(e){var t=e.options.computed;for(var n in t)Lt(e.prototype,n,t[n])}(o),o.extend=t.extend,o.mixin=t.mixin,o.use=t.use,k.forEach(function(e){o[e]=t[e]}),i&&(o.options.components[i]=o),o.superOptions=t.options,o.extendOptions=e,o.sealedOptions=m({},o.options),r[n]=o}}function yn(e){return e&&(e.Ctor.options.name||e.tag)}function gn(e,t){return Array.isArray(e)?-1<e.indexOf(t):"string"==typeof e?-1<e.split(",").indexOf(t):(n=e,"[object RegExp]"===r.call(n)&&e.test(t));var n}function _n(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=yn(a.componentOptions);s&&!t(s)&&bn(n,o,r,i)}}}function bn(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,f(n,t)}hn.prototype._init=function(e){var t,n,r,i,o=this;o._uid=pn++,o._isVue=!0,e&&e._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r,n._parentElm=t._parentElm,n._refElm=t._refElm;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(o,e):o.$options=Ne(dn(o.constructor),e||{},o),function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}((o._renderProxy=o)._self=o),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&pt(e,t)}(o),function(i){i._vnode=null,i._staticTrees=null;var e=i.$options,t=i.$vnode=e._parentVnode,n=t&&t.context;i.$slots=dt(e._renderChildren,n),i.$scopedSlots=y,i._c=function(e,t,n,r){return rn(i,e,t,n,r,!1)},i.$createElement=function(e,t,n,r){return rn(i,e,t,n,r,!0)};var r=t&&t.data;Ce(i,"$attrs",r&&r.attrs||y,null,!0),Ce(i,"$listeners",e._parentListeners||y,null,!0)}(o),_t(o,"beforeCreate"),(n=Dt((t=o).$options.inject,t))&&(ge(!1),Object.keys(n).forEach(function(e){Ce(t,e,n[e])}),ge(!0)),jt(o),(i=(r=o).$options.provide)&&(r._provided="function"==typeof i?i.call(r):i),_t(o,"created"),o.$options.el&&o.$mount(o.$options.el)},on=hn,an={get:function(){return this._data}},sn={get:function(){return this._props}},Object.defineProperty(on.prototype,"$data",an),Object.defineProperty(on.prototype,"$props",sn),on.prototype.$set=xe,on.prototype.$delete=ke,on.prototype.$watch=function(e,t,n){if(l(t))return Mt(this,e,t,n);(n=n||{}).user=!0;var r=new St(this,e,t,n);return n.immediate&&t.call(this,r.value),function(){r.teardown()}},ln=/^hook:/,(cn=hn).prototype.$on=function(e,t){if(Array.isArray(e))for(var n=0,r=e.length;n<r;n++)this.$on(e[n],t);else(this._events[e]||(this._events[e]=[])).push(t),ln.test(e)&&(this._hasHookEvent=!0);return this},cn.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},cn.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var r=0,i=e.length;r<i;r++)this.$off(e[r],t);return n}var o=n._events[e];if(!o)return n;if(!t)return n._events[e]=null,n;if(t)for(var a,s=o.length;s--;)if((a=o[s])===t||a.fn===t){o.splice(s,1);break}return n},cn.prototype.$emit=function(t){var n=this,e=n._events[t];if(e){e=1<e.length?h(e):e;for(var r=h(arguments,1),i=0,o=e.length;i<o;i++)try{e[i].apply(n,r)}catch(e){Fe(e,n,'event handler for "'+t+'"')}}return n},(un=hn).prototype._update=function(e,t){var n=this;n._isMounted&&_t(n,"beforeUpdate");var r=n.$el,i=n._vnode,o=mt;(mt=n)._vnode=e,i?n.$el=n.__patch__(i,e):(n.$el=n.__patch__(n.$el,e,t,!1,n.$options._parentElm,n.$options._refElm),n.$options._parentElm=n.$options._refElm=null),mt=o,r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},un.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},un.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){_t(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||f(t.$children,e),e._watcher&&e._watcher.teardown();for(var n=e._watchers.length;n--;)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),_t(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}},Wt((fn=hn).prototype),fn.prototype.$nextTick=function(e){return Ze(e,this)},fn.prototype._render=function(){var t,n=this,e=n.$options,r=e.render,i=e._parentVnode;i&&(n.$scopedSlots=i.data.scopedSlots||y),n.$vnode=i;try{t=r.call(n._renderProxy,n.$createElement)}catch(e){Fe(e,n,"render"),t=n._vnode}return t instanceof le||(t=fe()),t.parent=i,t};var $n,wn,Cn,xn=[String,RegExp,Array],kn={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:xn,exclude:xn,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)bn(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",function(t){_n(e,function(e){return gn(t,e)})}),this.$watch("exclude",function(t){_n(e,function(e){return!gn(t,e)})})},render:function(){var e=this.$slots.default,t=lt(e),n=t&&t.componentOptions;if(n){var r=yn(n),i=this.include,o=this.exclude;if(i&&(!r||!gn(i,r))||o&&r&&gn(o,r))return t;var a=this.cache,s=this.keys,c=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;a[c]?(t.componentInstance=a[c].componentInstance,f(s,c),s.push(c)):(a[c]=t,s.push(c),this.max&&s.length>parseInt(this.max)&&bn(a,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};$n=hn,Cn={get:function(){return j}},Object.defineProperty($n,"config",Cn),$n.util={warn:re,extend:m,mergeOptions:Ne,defineReactive:Ce},$n.set=xe,$n.delete=ke,$n.nextTick=Ze,$n.options=Object.create(null),k.forEach(function(e){$n.options[e+"s"]=Object.create(null)}),m(($n.options._base=$n).options.components,kn),$n.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(-1<t.indexOf(e))return this;var n=h(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this},$n.mixin=function(e){return this.options=Ne(this.options,e),this},mn($n),wn=$n,k.forEach(function(n){wn[n]=function(e,t){return t?("component"===n&&l(t)&&(t.name=t.name||e,t=this.options._base.extend(t)),"directive"===n&&"function"==typeof t&&(t={bind:t,update:t}),this.options[n+"s"][e]=t):this.options[n+"s"][e]}}),Object.defineProperty(hn.prototype,"$isServer",{get:Y}),Object.defineProperty(hn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(hn,"FunctionalRenderContext",{value:Gt}),hn.version="2.5.17";var An=s("style,class"),On=s("input,textarea,option,select,progress"),Sn=function(e,t,n){return"value"===n&&On(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Tn=s("contenteditable,draggable,spellcheck"),En=s("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),jn="http://www.w3.org/1999/xlink",Nn=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Ln=function(e){return Nn(e)?e.slice(6,e.length):""},In=function(e){return null==e||!1===e};function Mn(e){for(var t=e.data,n=e,r=e;D(r.componentInstance);)(r=r.componentInstance._vnode)&&r.data&&(t=Dn(r.data,t));for(;D(n=n.parent);)n&&n.data&&(t=Dn(t,n.data));return function(e,t){if(D(e)||D(t))return Pn(e,Fn(t));return""}(t.staticClass,t.class)}function Dn(e,t){return{staticClass:Pn(e.staticClass,t.staticClass),class:D(e.class)?[e.class,t.class]:t.class}}function Pn(e,t){return e?t?e+" "+t:e:t||""}function Fn(e){return Array.isArray(e)?function(e){for(var t,n="",r=0,i=e.length;r<i;r++)D(t=Fn(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}(e):P(e)?function(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}(e):"string"==typeof e?e:""}var Rn={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Hn=s("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Bn=s("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Un=function(e){return Hn(e)||Bn(e)};function Vn(e){return Bn(e)?"svg":"math"===e?"math":void 0}var zn=Object.create(null);var Kn=s("text,number,password,search,email,tel,url");function Jn(e){if("string"==typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}var qn=Object.freeze({createElement:function(e,t){var n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n},createElementNS:function(e,t){return document.createElementNS(Rn[e],t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},setStyleScope:function(e,t){e.setAttribute(t,"")}}),Wn={create:function(e,t){Gn(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Gn(e,!0),Gn(t))},destroy:function(e){Gn(e,!0)}};function Gn(e,t){var n=e.data.ref;if(D(n)){var r=e.context,i=e.componentInstance||e.elm,o=r.$refs;t?Array.isArray(o[n])?f(o[n],i):o[n]===i&&(o[n]=void 0):e.data.refInFor?Array.isArray(o[n])?o[n].indexOf(i)<0&&o[n].push(i):o[n]=[i]:o[n]=i}}var Zn=new le("",{},[]),Xn=["create","activate","update","remove","destroy"];function Yn(e,t){return e.key===t.key&&(e.tag===t.tag&&e.isComment===t.isComment&&D(e.data)===D(t.data)&&function(e,t){if("input"!==e.tag)return!0;var n,r=D(n=e.data)&&D(n=n.attrs)&&n.type,i=D(n=t.data)&&D(n=n.attrs)&&n.type;return r===i||Kn(r)&&Kn(i)}(e,t)||S(e.isAsyncPlaceholder)&&e.asyncFactory===t.asyncFactory&&M(t.asyncFactory.error))}function Qn(e,t,n){var r,i,o={};for(r=t;r<=n;++r)D(i=e[r].key)&&(o[i]=r);return o}var er={create:tr,update:tr,destroy:function(e){tr(e,Zn)}};function tr(e,t){(e.data.directives||t.data.directives)&&function(t,n){var e,r,i,o=t===Zn,a=n===Zn,s=rr(t.data.directives,t.context),c=rr(n.data.directives,n.context),l=[],u=[];for(e in c)r=s[e],i=c[e],r?(i.oldValue=r.value,ir(i,"update",n,t),i.def&&i.def.componentUpdated&&u.push(i)):(ir(i,"bind",n,t),i.def&&i.def.inserted&&l.push(i));if(l.length){var f=function(){for(var e=0;e<l.length;e++)ir(l[e],"inserted",n,t)};o?rt(n,"insert",f):f()}u.length&&rt(n,"postpatch",function(){for(var e=0;e<u.length;e++)ir(u[e],"componentUpdated",n,t)});if(!o)for(e in s)c[e]||ir(s[e],"unbind",t,t,a)}(e,t)}var nr=Object.create(null);function rr(e,t){var n,r,i,o=Object.create(null);if(!e)return o;for(n=0;n<e.length;n++)(r=e[n]).modifiers||(r.modifiers=nr),(o[(i=r,i.rawName||i.name+"."+Object.keys(i.modifiers||{}).join("."))]=r).def=Le(t.$options,"directives",r.name);return o}function ir(t,n,r,e,i){var o=t.def&&t.def[n];if(o)try{o(r.elm,t,r,e,i)}catch(e){Fe(e,r.context,"directive "+t.name+" "+n+" hook")}}var or=[Wn,er];function ar(e,t){var n=t.componentOptions;if(!(D(n)&&!1===n.Ctor.options.inheritAttrs||M(e.data.attrs)&&M(t.data.attrs))){var r,i,o=t.elm,a=e.data.attrs||{},s=t.data.attrs||{};for(r in D(s.__ob__)&&(s=t.data.attrs=m({},s)),s)i=s[r],a[r]!==i&&sr(o,r,i);for(r in(K||q)&&s.value!==a.value&&sr(o,"value",s.value),a)M(s[r])&&(Nn(r)?o.removeAttributeNS(jn,Ln(r)):Tn(r)||o.removeAttribute(r))}}function sr(e,t,n){-1<e.tagName.indexOf("-")?cr(e,t,n):En(t)?In(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Tn(t)?e.setAttribute(t,In(n)||"false"===n?"false":"true"):Nn(t)?In(n)?e.removeAttributeNS(jn,Ln(t)):e.setAttributeNS(jn,t,n):cr(e,t,n)}function cr(t,e,n){if(In(n))t.removeAttribute(e);else{if(K&&!J&&"TEXTAREA"===t.tagName&&"placeholder"===e&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var lr={create:ar,update:ar};function ur(e,t){var n=t.elm,r=t.data,i=e.data;if(!(M(r.staticClass)&&M(r.class)&&(M(i)||M(i.staticClass)&&M(i.class)))){var o=Mn(t),a=n._transitionClasses;D(a)&&(o=Pn(o,Fn(a))),o!==n._prevClass&&(n.setAttribute("class",o),n._prevClass=o)}}var fr,pr,dr,vr,hr,mr,yr={create:ur,update:ur},gr=/[\w).+\-_$\]]/;function _r(e){var t,n,r,i,o,a=!1,s=!1,c=!1,l=!1,u=0,f=0,p=0,d=0;for(r=0;r<e.length;r++)if(n=t,t=e.charCodeAt(r),a)39===t&&92!==n&&(a=!1);else if(s)34===t&&92!==n&&(s=!1);else if(c)96===t&&92!==n&&(c=!1);else if(l)47===t&&92!==n&&(l=!1);else if(124!==t||124===e.charCodeAt(r+1)||124===e.charCodeAt(r-1)||u||f||p){switch(t){case 34:s=!0;break;case 39:a=!0;break;case 96:c=!0;break;case 40:p++;break;case 41:p--;break;case 91:f++;break;case 93:f--;break;case 123:u++;break;case 125:u--}if(47===t){for(var v=r-1,h=void 0;0<=v&&" "===(h=e.charAt(v));v--);h&&gr.test(h)||(l=!0)}}else void 0===i?(d=r+1,i=e.slice(0,r).trim()):m();function m(){(o||(o=[])).push(e.slice(d,r).trim()),d=r+1}if(void 0===i?i=e.slice(0,r).trim():0!==d&&m(),o)for(r=0;r<o.length;r++)i=br(i,o[r]);return i}function br(e,t){var n=t.indexOf("(");if(n<0)return'_f("'+t+'")('+e+")";var r=t.slice(0,n),i=t.slice(n+1);return'_f("'+r+'")('+e+(")"!==i?","+i:i)}function $r(e){console.error("[Vue compiler]: "+e)}function wr(e,t){return e?e.map(function(e){return e[t]}).filter(function(e){return e}):[]}function Cr(e,t,n){(e.props||(e.props=[])).push({name:t,value:n}),e.plain=!1}function xr(e,t,n){(e.attrs||(e.attrs=[])).push({name:t,value:n}),e.plain=!1}function kr(e,t,n){e.attrsMap[t]=n,e.attrsList.push({name:t,value:n})}function Ar(e,t,n,r,i,o){var a;(r=r||y).capture&&(delete r.capture,t="!"+t),r.once&&(delete r.once,t="~"+t),r.passive&&(delete r.passive,t="&"+t),"click"===t&&(r.right?(t="contextmenu",delete r.right):r.middle&&(t="mouseup")),r.native?(delete r.native,a=e.nativeEvents||(e.nativeEvents={})):a=e.events||(e.events={});var s={value:n.trim()};r!==y&&(s.modifiers=r);var c=a[t];Array.isArray(c)?i?c.unshift(s):c.push(s):a[t]=c?i?[s,c]:[c,s]:s,e.plain=!1}function Or(e,t,n){var r=Sr(e,":"+t)||Sr(e,"v-bind:"+t);if(null!=r)return _r(r);if(!1!==n){var i=Sr(e,t);if(null!=i)return JSON.stringify(i)}}function Sr(e,t,n){var r;if(null!=(r=e.attrsMap[t]))for(var i=e.attrsList,o=0,a=i.length;o<a;o++)if(i[o].name===t){i.splice(o,1);break}return n&&delete e.attrsMap[t],r}function Tr(e,t,n){var r=n||{},i=r.number,o="$$v",a=o;r.trim&&(a="(typeof $$v === 'string'? $$v.trim(): $$v)"),i&&(a="_n("+a+")");var s=Er(t,a);e.model={value:"("+t+")",expression:'"'+t+'"',callback:"function ($$v) {"+s+"}"}}function Er(e,t){var n=function(e){if(e=e.trim(),fr=e.length,e.indexOf("[")<0||e.lastIndexOf("]")<fr-1)return-1<(vr=e.lastIndexOf("."))?{exp:e.slice(0,vr),key:'"'+e.slice(vr+1)+'"'}:{exp:e,key:null};pr=e,vr=hr=mr=0;for(;!Nr();)Lr(dr=jr())?Mr(dr):91===dr&&Ir(dr);return{exp:e.slice(0,hr),key:e.slice(hr+1,mr)}}(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function jr(){return pr.charCodeAt(++vr)}function Nr(){return fr<=vr}function Lr(e){return 34===e||39===e}function Ir(e){var t=1;for(hr=vr;!Nr();)if(Lr(e=jr()))Mr(e);else if(91===e&&t++,93===e&&t--,0===t){mr=vr;break}}function Mr(e){for(var t=e;!Nr()&&(e=jr())!==t;);}var Dr,Pr="__r",Fr="__c";function Rr(e,t,n,r,i){var o,a,s,c,l;t=(o=t)._withTask||(o._withTask=function(){Je=!0;var e=o.apply(null,arguments);return Je=!1,e}),n&&(a=t,s=e,c=r,l=Dr,t=function e(){null!==a.apply(null,arguments)&&Hr(s,e,c,l)}),Dr.addEventListener(e,t,Z?{capture:r,passive:i}:r)}function Hr(e,t,n,r){(r||Dr).removeEventListener(e,t._withTask||t,n)}function Br(e,t){if(!M(e.data.on)||!M(t.data.on)){var n=t.data.on||{},r=e.data.on||{};Dr=t.elm,function(e){if(D(e[Pr])){var t=K?"change":"input";e[t]=[].concat(e[Pr],e[t]||[]),delete e[Pr]}D(e[Fr])&&(e.change=[].concat(e[Fr],e.change||[]),delete e[Fr])}(n),nt(n,r,Rr,Hr,t.context),Dr=void 0}}var Ur={create:Br,update:Br};function Vr(e,t){if(!M(e.data.domProps)||!M(t.data.domProps)){var n,r,i,o,a=t.elm,s=e.data.domProps||{},c=t.data.domProps||{};for(n in D(c.__ob__)&&(c=t.data.domProps=m({},c)),s)M(c[n])&&(a[n]="");for(n in c){if(r=c[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===s[n])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===n){var l=M(a._value=r)?"":String(r);o=l,(i=a).composing||"OPTION"!==i.tagName&&!function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(i,o)&&!function(e,t){var n=e.value,r=e._vModifiers;if(D(r)){if(r.lazy)return!1;if(r.number)return F(n)!==F(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(i,o)||(a.value=l)}else a[n]=r}}}var zr={create:Vr,update:Vr},Kr=e(function(e){var n={},r=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var t=e.split(r);1<t.length&&(n[t[0].trim()]=t[1].trim())}}),n});function Jr(e){var t=qr(e.style);return e.staticStyle?m(e.staticStyle,t):t}function qr(e){return Array.isArray(e)?b(e):"string"==typeof e?Kr(e):e}var Wr,Gr=/^--/,Zr=/\s*!important$/,Xr=function(e,t,n){if(Gr.test(t))e.style.setProperty(t,n);else if(Zr.test(n))e.style.setProperty(t,n.replace(Zr,""),"important");else{var r=Qr(t);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)e.style[r]=n[i];else e.style[r]=n}},Yr=["Webkit","Moz","ms"],Qr=e(function(e){if(Wr=Wr||document.createElement("div").style,"filter"!==(e=g(e))&&e in Wr)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<Yr.length;n++){var r=Yr[n]+t;if(r in Wr)return r}});function ei(e,t){var n=t.data,r=e.data;if(!(M(n.staticStyle)&&M(n.style)&&M(r.staticStyle)&&M(r.style))){var i,o,a=t.elm,s=r.staticStyle,c=r.normalizedStyle||r.style||{},l=s||c,u=qr(t.data.style)||{};t.data.normalizedStyle=D(u.__ob__)?m({},u):u;var f=function(e,t){var n,r={};if(t)for(var i=e;i.componentInstance;)(i=i.componentInstance._vnode)&&i.data&&(n=Jr(i.data))&&m(r,n);(n=Jr(e.data))&&m(r,n);for(var o=e;o=o.parent;)o.data&&(n=Jr(o.data))&&m(r,n);return r}(t,!0);for(o in l)M(f[o])&&Xr(a,o,"");for(o in f)(i=f[o])!==l[o]&&Xr(a,o,null==i?"":i)}}var ti={create:ei,update:ei};function ni(t,e){if(e&&(e=e.trim()))if(t.classList)-1<e.indexOf(" ")?e.split(/\s+/).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+(t.getAttribute("class")||"")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function ri(t,e){if(e&&(e=e.trim()))if(t.classList)-1<e.indexOf(" ")?e.split(/\s+/).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var n=" "+(t.getAttribute("class")||"")+" ",r=" "+e+" ";0<=n.indexOf(r);)n=n.replace(r," ");(n=n.trim())?t.setAttribute("class",n):t.removeAttribute("class")}}function ii(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&m(t,oi(e.name||"v")),m(t,e),t}return"string"==typeof e?oi(e):void 0}}var oi=e(function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}}),ai=B&&!J,si="transition",ci="animation",li="transition",ui="transitionend",fi="animation",pi="animationend";ai&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(li="WebkitTransition",ui="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(fi="WebkitAnimation",pi="webkitAnimationEnd"));var di=B?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function vi(e){di(function(){di(e)})}function hi(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),ni(e,t))}function mi(e,t){e._transitionClasses&&f(e._transitionClasses,t),ri(e,t)}function yi(t,e,n){var r=_i(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===si?ui:pi,c=0,l=function(){t.removeEventListener(s,u),n()},u=function(e){e.target===t&&++c>=a&&l()};setTimeout(function(){c<a&&l()},o+1),t.addEventListener(s,u)}var gi=/\b(transform|all)(,|$)/;function _i(e,t){var n,r=window.getComputedStyle(e),i=r[li+"Delay"].split(", "),o=r[li+"Duration"].split(", "),a=bi(i,o),s=r[fi+"Delay"].split(", "),c=r[fi+"Duration"].split(", "),l=bi(s,c),u=0,f=0;return t===si?0<a&&(n=si,u=a,f=o.length):t===ci?0<l&&(n=ci,u=l,f=c.length):f=(n=0<(u=Math.max(a,l))?l<a?si:ci:null)?n===si?o.length:c.length:0,{type:n,timeout:u,propCount:f,hasTransform:n===si&&gi.test(r[li+"Property"])}}function bi(n,e){for(;n.length<e.length;)n=n.concat(n);return Math.max.apply(null,e.map(function(e,t){return $i(e)+$i(n[t])}))}function $i(e){return 1e3*Number(e.slice(0,-1))}function wi(n,e){var r=n.elm;D(r._leaveCb)&&(r._leaveCb.cancelled=!0,r._leaveCb());var t=ii(n.data.transition);if(!M(t)&&!D(r._enterCb)&&1===r.nodeType){for(var i=t.css,o=t.type,a=t.enterClass,s=t.enterToClass,c=t.enterActiveClass,l=t.appearClass,u=t.appearToClass,f=t.appearActiveClass,p=t.beforeEnter,d=t.enter,v=t.afterEnter,h=t.enterCancelled,m=t.beforeAppear,y=t.appear,g=t.afterAppear,_=t.appearCancelled,b=t.duration,$=mt,w=mt.$vnode;w&&w.parent;)$=(w=w.parent).context;var C=!$._isMounted||!n.isRootInsert;if(!C||y||""===y){var x=C&&l?l:a,k=C&&f?f:c,A=C&&u?u:s,O=C&&m||p,S=C&&"function"==typeof y?y:d,T=C&&g||v,E=C&&_||h,j=F(P(b)?b.enter:b),N=!1!==i&&!J,L=ki(S),I=r._enterCb=R(function(){N&&(mi(r,A),mi(r,k)),I.cancelled?(N&&mi(r,x),E&&E(r)):T&&T(r),r._enterCb=null});n.data.show||rt(n,"insert",function(){var e=r.parentNode,t=e&&e._pending&&e._pending[n.key];t&&t.tag===n.tag&&t.elm._leaveCb&&t.elm._leaveCb(),S&&S(r,I)}),O&&O(r),N&&(hi(r,x),hi(r,k),vi(function(){mi(r,x),I.cancelled||(hi(r,A),L||(xi(j)?setTimeout(I,j):yi(r,o,I)))})),n.data.show&&(e&&e(),S&&S(r,I)),N||L||I()}}}function Ci(e,t){var n=e.elm;D(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());var r=ii(e.data.transition);if(M(r)||1!==n.nodeType)return t();if(!D(n._leaveCb)){var i=r.css,o=r.type,a=r.leaveClass,s=r.leaveToClass,c=r.leaveActiveClass,l=r.beforeLeave,u=r.leave,f=r.afterLeave,p=r.leaveCancelled,d=r.delayLeave,v=r.duration,h=!1!==i&&!J,m=ki(u),y=F(P(v)?v.leave:v),g=n._leaveCb=R(function(){n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),h&&(mi(n,s),mi(n,c)),g.cancelled?(h&&mi(n,a),p&&p(n)):(t(),f&&f(n)),n._leaveCb=null});d?d(_):_()}function _(){g.cancelled||(e.data.show||((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),l&&l(n),h&&(hi(n,a),hi(n,c),vi(function(){mi(n,a),g.cancelled||(hi(n,s),m||(xi(y)?setTimeout(g,y):yi(n,o,g)))})),u&&u(n,g),h||m||g())}}function xi(e){return"number"==typeof e&&!isNaN(e)}function ki(e){if(M(e))return!1;var t=e.fns;return D(t)?ki(Array.isArray(t)?t[0]:t):1<(e._length||e.length)}function Ai(e,t){!0!==t.data.show&&wi(t)}var Oi=function(e){var r,t,g={},n=e.modules,_=e.nodeOps;for(r=0;r<Xn.length;++r)for(g[Xn[r]]=[],t=0;t<n.length;++t)D(n[t][Xn[r]])&&g[Xn[r]].push(n[t][Xn[r]]);function o(e){var t=_.parentNode(e);D(t)&&_.removeChild(t,e)}function b(e,t,n,r,i,o,a){if(D(e.elm)&&D(o)&&(e=o[a]=de(e)),e.isRootInsert=!i,!function(e,t,n,r){var i=e.data;if(D(i)){var o=D(e.componentInstance)&&i.keepAlive;if(D(i=i.hook)&&D(i=i.init)&&i(e,!1,n,r),D(e.componentInstance))return d(e,t),S(o)&&function(e,t,n,r){for(var i,o=e;o.componentInstance;)if(o=o.componentInstance._vnode,D(i=o.data)&&D(i=i.transition)){for(i=0;i<g.activate.length;++i)g.activate[i](Zn,o);t.push(o);break}u(n,e.elm,r)}(e,t,n,r),!0}}(e,t,n,r)){var s=e.data,c=e.children,l=e.tag;D(l)?(e.elm=e.ns?_.createElementNS(e.ns,l):_.createElement(l,e),f(e),v(e,c,t),D(s)&&h(e,t)):S(e.isComment)?e.elm=_.createComment(e.text):e.elm=_.createTextNode(e.text),u(n,e.elm,r)}}function d(e,t){D(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,$(e)?(h(e,t),f(e)):(Gn(e),t.push(e))}function u(e,t,n){D(e)&&(D(n)?n.parentNode===e&&_.insertBefore(e,t,n):_.appendChild(e,t))}function v(e,t,n){if(Array.isArray(t))for(var r=0;r<t.length;++r)b(t[r],n,e.elm,null,!0,t,r);else T(e.text)&&_.appendChild(e.elm,_.createTextNode(String(e.text)))}function $(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return D(e.tag)}function h(e,t){for(var n=0;n<g.create.length;++n)g.create[n](Zn,e);D(r=e.data.hook)&&(D(r.create)&&r.create(Zn,e),D(r.insert)&&t.push(e))}function f(e){var t;if(D(t=e.fnScopeId))_.setStyleScope(e.elm,t);else for(var n=e;n;)D(t=n.context)&&D(t=t.$options._scopeId)&&_.setStyleScope(e.elm,t),n=n.parent;D(t=mt)&&t!==e.context&&t!==e.fnContext&&D(t=t.$options._scopeId)&&_.setStyleScope(e.elm,t)}function y(e,t,n,r,i,o){for(;r<=i;++r)b(n[r],o,e,t,!1,n,r)}function w(e){var t,n,r=e.data;if(D(r))for(D(t=r.hook)&&D(t=t.destroy)&&t(e),t=0;t<g.destroy.length;++t)g.destroy[t](e);if(D(t=e.children))for(n=0;n<e.children.length;++n)w(e.children[n])}function C(e,t,n,r){for(;n<=r;++n){var i=t[n];D(i)&&(D(i.tag)?(a(i),w(i)):o(i.elm))}}function a(e,t){if(D(t)||D(e.data)){var n,r=g.remove.length+1;for(D(t)?t.listeners+=r:t=function(e,t){function n(){0==--n.listeners&&o(e)}return n.listeners=t,n}(e.elm,r),D(n=e.componentInstance)&&D(n=n._vnode)&&D(n.data)&&a(n,t),n=0;n<g.remove.length;++n)g.remove[n](e,t);D(n=e.data.hook)&&D(n=n.remove)?n(e,t):t()}else o(e.elm)}function x(e,t,n,r){for(var i=n;i<r;i++){var o=t[i];if(D(o)&&Yn(e,o))return i}}function k(e,t,n,r){if(e!==t){var i=t.elm=e.elm;if(S(e.isAsyncPlaceholder))D(t.asyncFactory.resolved)?O(e.elm,t,n):t.isAsyncPlaceholder=!0;else if(S(t.isStatic)&&S(e.isStatic)&&t.key===e.key&&(S(t.isCloned)||S(t.isOnce)))t.componentInstance=e.componentInstance;else{var o,a=t.data;D(a)&&D(o=a.hook)&&D(o=o.prepatch)&&o(e,t);var s=e.children,c=t.children;if(D(a)&&$(t)){for(o=0;o<g.update.length;++o)g.update[o](e,t);D(o=a.hook)&&D(o=o.update)&&o(e,t)}M(t.text)?D(s)&&D(c)?s!==c&&function(e,t,n,r,i){for(var o,a,s,c=0,l=0,u=t.length-1,f=t[0],p=t[u],d=n.length-1,v=n[0],h=n[d],m=!i;c<=u&&l<=d;)M(f)?f=t[++c]:M(p)?p=t[--u]:Yn(f,v)?(k(f,v,r),f=t[++c],v=n[++l]):Yn(p,h)?(k(p,h,r),p=t[--u],h=n[--d]):Yn(f,h)?(k(f,h,r),m&&_.insertBefore(e,f.elm,_.nextSibling(p.elm)),f=t[++c],h=n[--d]):(Yn(p,v)?(k(p,v,r),m&&_.insertBefore(e,p.elm,f.elm),p=t[--u]):(M(o)&&(o=Qn(t,c,u)),M(a=D(v.key)?o[v.key]:x(v,t,c,u))?b(v,r,e,f.elm,!1,n,l):Yn(s=t[a],v)?(k(s,v,r),t[a]=void 0,m&&_.insertBefore(e,s.elm,f.elm)):b(v,r,e,f.elm,!1,n,l)),v=n[++l]);u<c?y(e,M(n[d+1])?null:n[d+1].elm,n,l,d,r):d<l&&C(0,t,c,u)}(i,s,c,n,r):D(c)?(D(e.text)&&_.setTextContent(i,""),y(i,null,c,0,c.length-1,n)):D(s)?C(0,s,0,s.length-1):D(e.text)&&_.setTextContent(i,""):e.text!==t.text&&_.setTextContent(i,t.text),D(a)&&D(o=a.hook)&&D(o=o.postpatch)&&o(e,t)}}}function A(e,t,n){if(S(n)&&D(e.parent))e.parent.data.pendingInsert=t;else for(var r=0;r<t.length;++r)t[r].data.hook.insert(t[r])}var m=s("attrs,class,staticClass,staticStyle,key");function O(e,t,n,r){var i,o=t.tag,a=t.data,s=t.children;if(r=r||a&&a.pre,t.elm=e,S(t.isComment)&&D(t.asyncFactory))return t.isAsyncPlaceholder=!0;if(D(a)&&(D(i=a.hook)&&D(i=i.init)&&i(t,!0),D(i=t.componentInstance)))return d(t,n),!0;if(D(o)){if(D(s))if(e.hasChildNodes())if(D(i=a)&&D(i=i.domProps)&&D(i=i.innerHTML)){if(i!==e.innerHTML)return!1}else{for(var c=!0,l=e.firstChild,u=0;u<s.length;u++){if(!l||!O(l,s[u],n,r)){c=!1;break}l=l.nextSibling}if(!c||l)return!1}else v(t,s,n);if(D(a)){var f=!1;for(var p in a)if(!m(p)){f=!0,h(t,n);break}!f&&a.class&&Ye(a.class)}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,r,i,o){if(!M(t)){var a,s=!1,c=[];if(M(e))s=!0,b(t,c,i,o);else{var l=D(e.nodeType);if(!l&&Yn(e,t))k(e,t,c,r);else{if(l){if(1===e.nodeType&&e.hasAttribute(E)&&(e.removeAttribute(E),n=!0),S(n)&&O(e,t,c))return A(t,c,!0),e;a=e,e=new le(_.tagName(a).toLowerCase(),{},[],void 0,a)}var u=e.elm,f=_.parentNode(u);if(b(t,c,u._leaveCb?null:f,_.nextSibling(u)),D(t.parent))for(var p=t.parent,d=$(t);p;){for(var v=0;v<g.destroy.length;++v)g.destroy[v](p);if(p.elm=t.elm,d){for(var h=0;h<g.create.length;++h)g.create[h](Zn,p);var m=p.data.hook.insert;if(m.merged)for(var y=1;y<m.fns.length;y++)m.fns[y]()}else Gn(p);p=p.parent}D(f)?C(0,[e],0,0):D(e.tag)&&w(e)}}return A(t,c,s),t.elm}D(e)&&w(e)}}({nodeOps:qn,modules:[lr,yr,Ur,zr,ti,B?{create:Ai,activate:Ai,remove:function(e,t){!0!==e.data.show?Ci(e,t):t()}}:{}].concat(or)});J&&document.addEventListener("selectionchange",function(){var e=document.activeElement;e&&e.vmodel&&Mi(e,"input")});var Si={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?rt(n,"postpatch",function(){Si.componentUpdated(e,t,n)}):Ti(e,t,n.context),e._vOptions=[].map.call(e.options,Ni)):("textarea"===n.tag||Kn(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",Li),e.addEventListener("compositionend",Ii),e.addEventListener("change",Ii),J&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){Ti(e,t,n.context);var r=e._vOptions,i=e._vOptions=[].map.call(e.options,Ni);if(i.some(function(e,t){return!C(e,r[t])}))(e.multiple?t.value.some(function(e){return ji(e,i)}):t.value!==t.oldValue&&ji(t.value,i))&&Mi(e,"change")}}};function Ti(e,t,n){Ei(e,t,n),(K||q)&&setTimeout(function(){Ei(e,t,n)},0)}function Ei(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,c=e.options.length;s<c;s++)if(a=e.options[s],i)o=-1<x(r,Ni(a)),a.selected!==o&&(a.selected=o);else if(C(Ni(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function ji(t,e){return e.every(function(e){return!C(e,t)})}function Ni(e){return"_value"in e?e._value:e.value}function Li(e){e.target.composing=!0}function Ii(e){e.target.composing&&(e.target.composing=!1,Mi(e.target,"input"))}function Mi(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Di(e){return!e.componentInstance||e.data&&e.data.transition?e:Di(e.componentInstance._vnode)}var Pi={model:Si,show:{bind:function(e,t,n){var r=t.value,i=(n=Di(n)).data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,wi(n,function(){e.style.display=o})):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=Di(n)).data&&n.data.transition?(n.data.show=!0,r?wi(n,function(){e.style.display=e.__vOriginalDisplay}):Ci(n,function(){e.style.display="none"})):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}}},Fi={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Ri(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Ri(lt(t.children)):e}function Hi(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[g(o)]=i[o];return t}function Bi(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var Ui={name:"transition",props:Fi,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(function(e){return e.tag||ct(e)})).length){var r=this.mode,i=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var o=Ri(i);if(!o)return i;if(this._leaving)return Bi(e,i);var a="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?a+"comment":a+o.tag:T(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var s,c,l=(o.data||(o.data={})).transition=Hi(this),u=this._vnode,f=Ri(u);if(o.data.directives&&o.data.directives.some(function(e){return"show"===e.name})&&(o.data.show=!0),f&&f.data&&(s=o,(c=f).key!==s.key||c.tag!==s.tag)&&!ct(f)&&(!f.componentInstance||!f.componentInstance._vnode.isComment)){var p=f.data.transition=m({},l);if("out-in"===r)return this._leaving=!0,rt(p,"afterLeave",function(){t._leaving=!1,t.$forceUpdate()}),Bi(e,i);if("in-out"===r){if(ct(o))return u;var d,v=function(){d()};rt(l,"afterEnter",v),rt(l,"enterCancelled",v),rt(p,"delayLeave",function(e){d=e})}}return i}}},Vi=m({tag:String,moveClass:String},Fi);function zi(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Ki(e){e.data.newPos=e.elm.getBoundingClientRect()}function Ji(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}delete Vi.mode;var qi={Transition:Ui,TransitionGroup:{props:Vi,render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=Hi(this),s=0;s<i.length;s++){var c=i[s];c.tag&&null!=c.key&&0!==String(c.key).indexOf("__vlist")&&(o.push(c),((n[c.key]=c).data||(c.data={})).transition=a)}if(r){for(var l=[],u=[],f=0;f<r.length;f++){var p=r[f];p.data.transition=a,p.data.pos=p.elm.getBoundingClientRect(),n[p.key]?l.push(p):u.push(p)}this.kept=e(t,null,l),this.removed=u}return e(t,null,o)},beforeUpdate:function(){this.__patch__(this._vnode,this.kept,!1,!0),this._vnode=this.kept},updated:function(){var e=this.prevChildren,r=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,r)&&(e.forEach(zi),e.forEach(Ki),e.forEach(Ji),this._reflow=document.body.offsetHeight,e.forEach(function(e){if(e.data.moved){var n=e.elm,t=n.style;hi(n,r),t.transform=t.WebkitTransform=t.transitionDuration="",n.addEventListener(ui,n._moveCb=function e(t){t&&!/transform$/.test(t.propertyName)||(n.removeEventListener(ui,e),n._moveCb=null,mi(n,r))})}}))},methods:{hasMove:function(e,t){if(!ai)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach(function(e){ri(n,e)}),ni(n,t),n.style.display="none",this.$el.appendChild(n);var r=_i(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}}};hn.config.mustUseProp=Sn,hn.config.isReservedTag=Un,hn.config.isReservedAttr=An,hn.config.getTagNamespace=Vn,hn.config.isUnknownElement=function(e){if(!B)return!0;if(Un(e))return!1;if(e=e.toLowerCase(),null!=zn[e])return zn[e];var t=document.createElement(e);return-1<e.indexOf("-")?zn[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:zn[e]=/HTMLUnknownElement/.test(t.toString())},m(hn.options.directives,Pi),m(hn.options.components,qi),hn.prototype.__patch__=B?Oi:$,hn.prototype.$mount=function(e,t){return e=e&&B?Jn(e):void 0,r=e,i=t,(n=this).$el=r,n.$options.render||(n.$options.render=fe),_t(n,"beforeMount"),new St(n,function(){n._update(n._render(),i)},$,null,!0),i=!1,null==n.$vnode&&(n._isMounted=!0,_t(n,"mounted")),n;var n,r,i},B&&setTimeout(function(){j.devtools&&Q&&Q.emit("init",hn)},0);var Wi=/\{\{((?:.|\n)+?)\}\}/g,Gi=/[-.*+?^${}()|[\]\/\\]/g,Zi=e(function(e){var t=e[0].replace(Gi,"\\$&"),n=e[1].replace(Gi,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")});var Xi={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=Sr(e,"class");n&&(e.staticClass=JSON.stringify(n));var r=Or(e,"class",!1);r&&(e.classBinding=r)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}};var Yi,Qi={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=Sr(e,"style");n&&(e.staticStyle=JSON.stringify(Kr(n)));var r=Or(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},eo=function(e){return(Yi=Yi||document.createElement("div")).innerHTML=e,Yi.textContent},to=s("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),no=s("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),ro=s("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),io=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,oo="[a-zA-Z_][\\w\\-\\.]*",ao="((?:"+oo+"\\:)?"+oo+")",so=new RegExp("^<"+ao),co=/^\s*(\/?)>/,lo=new RegExp("^<\\/"+ao+"[^>]*>"),uo=/^<!DOCTYPE [^>]+>/i,fo=/^<!\--/,po=/^<!\[/,vo=!1;"x".replace(/x(.)?/g,function(e,t){vo=""===t});var ho=s("script,style,textarea",!0),mo={},yo={"&lt;":"<","&gt;":">","&quot;":'"',"&amp;":"&","&#10;":"\n","&#9;":"\t"},go=/&(?:lt|gt|quot|amp);/g,_o=/&(?:lt|gt|quot|amp|#10|#9);/g,bo=s("pre,textarea",!0),$o=function(e,t){return e&&bo(e)&&"\n"===t[0]};var wo,Co,xo,ko,Ao,Oo,So,To,Eo=/^@|^v-on:/,jo=/^v-|^@|^:/,No=/([^]*?)\s+(?:in|of)\s+([^]*)/,Lo=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Io=/^\(|\)$/g,Mo=/:(.*)$/,Do=/^:|^v-bind:/,Po=/\.[^.]+/g,Fo=e(eo);function Ro(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:function(e){for(var t={},n=0,r=e.length;n<r;n++)t[e[n].name]=e[n].value;return t}(t),parent:n,children:[]}}function Ho(e,p){wo=p.warn||$r,Oo=p.isPreTag||O,So=p.mustUseProp||O,To=p.getTagNamespace||O,xo=wr(p.modules,"transformNode"),ko=wr(p.modules,"preTransformNode"),Ao=wr(p.modules,"postTransformNode"),Co=p.delimiters;var d,v,h=[],i=!1!==p.preserveWhitespace,m=!1,y=!1;function g(e){e.pre&&(m=!1),Oo(e.tag)&&(y=!1);for(var t=0;t<Ao.length;t++)Ao[t](e,p)}return function(i,d){for(var e,v,h=[],m=d.expectHTML,y=d.isUnaryTag||O,g=d.canBeLeftOpenTag||O,a=0;i;){if(e=i,v&&ho(v)){var r=0,o=v.toLowerCase(),t=mo[o]||(mo[o]=new RegExp("([\\s\\S]*?)(</"+o+"[^>]*>)","i")),n=i.replace(t,function(e,t,n){return r=n.length,ho(o)||"noscript"===o||(t=t.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),$o(o,t)&&(t=t.slice(1)),d.chars&&d.chars(t),""});a+=i.length-n.length,i=n,A(o,a-r,a)}else{var s=i.indexOf("<");if(0===s){if(fo.test(i)){var c=i.indexOf("--\x3e");if(0<=c){d.shouldKeepComment&&d.comment(i.substring(4,c)),C(c+3);continue}}if(po.test(i)){var l=i.indexOf("]>");if(0<=l){C(l+2);continue}}var u=i.match(uo);if(u){C(u[0].length);continue}var f=i.match(lo);if(f){var p=a;C(f[0].length),A(f[1],p,a);continue}var _=x();if(_){k(_),$o(v,i)&&C(1);continue}}var b=void 0,$=void 0,w=void 0;if(0<=s){for($=i.slice(s);!(lo.test($)||so.test($)||fo.test($)||po.test($)||(w=$.indexOf("<",1))<0);)s+=w,$=i.slice(s);b=i.substring(0,s),C(s)}s<0&&(b=i,i=""),d.chars&&b&&d.chars(b)}if(i===e){d.chars&&d.chars(i);break}}function C(e){a+=e,i=i.substring(e)}function x(){var e=i.match(so);if(e){var t,n,r={tagName:e[1],attrs:[],start:a};for(C(e[0].length);!(t=i.match(co))&&(n=i.match(io));)C(n[0].length),r.attrs.push(n);if(t)return r.unarySlash=t[1],C(t[0].length),r.end=a,r}}function k(e){var t=e.tagName,n=e.unarySlash;m&&("p"===v&&ro(t)&&A(v),g(t)&&v===t&&A(t));for(var r,i,o,a=y(t)||!!n,s=e.attrs.length,c=new Array(s),l=0;l<s;l++){var u=e.attrs[l];vo&&-1===u[0].indexOf('""')&&(""===u[3]&&delete u[3],""===u[4]&&delete u[4],""===u[5]&&delete u[5]);var f=u[3]||u[4]||u[5]||"",p="a"===t&&"href"===u[1]?d.shouldDecodeNewlinesForHref:d.shouldDecodeNewlines;c[l]={name:u[1],value:(r=f,i=p,o=i?_o:go,r.replace(o,function(e){return yo[e]}))}}a||(h.push({tag:t,lowerCasedTag:t.toLowerCase(),attrs:c}),v=t),d.start&&d.start(t,c,a,e.start,e.end)}function A(e,t,n){var r,i;if(null==t&&(t=a),null==n&&(n=a),e&&(i=e.toLowerCase()),e)for(r=h.length-1;0<=r&&h[r].lowerCasedTag!==i;r--);else r=0;if(0<=r){for(var o=h.length-1;r<=o;o--)d.end&&d.end(h[o].tag,t,n);h.length=r,v=r&&h[r-1].tag}else"br"===i?d.start&&d.start(e,[],!0,t,n):"p"===i&&(d.start&&d.start(e,[],!1,t,n),d.end&&d.end(e,t,n))}A()}(e,{warn:wo,expectHTML:p.expectHTML,isUnaryTag:p.isUnaryTag,canBeLeftOpenTag:p.canBeLeftOpenTag,shouldDecodeNewlines:p.shouldDecodeNewlines,shouldDecodeNewlinesForHref:p.shouldDecodeNewlinesForHref,shouldKeepComment:p.comments,start:function(e,t,n){var r=v&&v.ns||To(e);K&&"svg"===r&&(t=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];Ko.test(r.name)||(r.name=r.name.replace(Jo,""),t.push(r))}return t}(t));var i,o,a,s,c,l=Ro(e,t,v);r&&(l.ns=r),"style"!==(i=l).tag&&("script"!==i.tag||i.attrsMap.type&&"text/javascript"!==i.attrsMap.type)||Y()||(l.forbidden=!0);for(var u=0;u<ko.length;u++)l=ko[u](l,p)||l;if(m||(null!=Sr(o=l,"v-pre")&&(o.pre=!0),l.pre&&(m=!0)),Oo(l.tag)&&(y=!0),m?function(e){var t=e.attrsList.length;if(t)for(var n=e.attrs=new Array(t),r=0;r<t;r++)n[r]={name:e.attrsList[r].name,value:JSON.stringify(e.attrsList[r].value)};else e.pre||(e.plain=!0)}(l):l.processed||(Uo(l),function(e){var t=Sr(e,"v-if");if(t)e.if=t,Vo(e,{exp:t,block:e});else{null!=Sr(e,"v-else")&&(e.else=!0);var n=Sr(e,"v-else-if");n&&(e.elseif=n)}}(l),null!=Sr(a=l,"v-once")&&(a.once=!0),Bo(l,p)),d?h.length||d.if&&(l.elseif||l.else)&&Vo(d,{exp:l.elseif,block:l}):d=l,v&&!l.forbidden)if(l.elseif||l.else)s=l,(c=function(e){var t=e.length;for(;t--;){if(1===e[t].type)return e[t];e.pop()}}(v.children))&&c.if&&Vo(c,{exp:s.elseif,block:s});else if(l.slotScope){v.plain=!1;var f=l.slotTarget||'"default"';(v.scopedSlots||(v.scopedSlots={}))[f]=l}else v.children.push(l),l.parent=v;n?g(l):(v=l,h.push(l))},end:function(){var e=h[h.length-1],t=e.children[e.children.length-1];t&&3===t.type&&" "===t.text&&!y&&e.children.pop(),h.length-=1,v=h[h.length-1],g(e)},chars:function(e){if(v&&(!K||"textarea"!==v.tag||v.attrsMap.placeholder!==e)){var t,n,r=v.children;if(e=y||e.trim()?"script"===(t=v).tag||"style"===t.tag?e:Fo(e):i&&r.length?" ":"")!m&&" "!==e&&(n=function(e,t){var n=t?Zi(t):Wi;if(n.test(e)){for(var r,i,o,a=[],s=[],c=n.lastIndex=0;r=n.exec(e);){c<(i=r.index)&&(s.push(o=e.slice(c,i)),a.push(JSON.stringify(o)));var l=_r(r[1].trim());a.push("_s("+l+")"),s.push({"@binding":l}),c=i+r[0].length}return c<e.length&&(s.push(o=e.slice(c)),a.push(JSON.stringify(o))),{expression:a.join("+"),tokens:s}}}(e,Co))?r.push({type:2,expression:n.expression,tokens:n.tokens,text:e}):" "===e&&r.length&&" "===r[r.length-1].text||r.push({type:3,text:e})}},comment:function(e){v.children.push({type:3,text:e,isComment:!0})}}),d}function Bo(e,t){var n,r,i,o;(r=Or(n=e,"key"))&&(n.key=r),e.plain=!e.key&&!e.attrsList.length,(o=Or(i=e,"ref"))&&(i.ref=o,i.refInFor=function(e){for(var t=e;t;){if(void 0!==t.for)return!0;t=t.parent}return!1}(i)),function(e){if("slot"===e.tag)e.slotName=Or(e,"name");else{var t;"template"===e.tag?(t=Sr(e,"scope"),e.slotScope=t||Sr(e,"slot-scope")):(t=Sr(e,"slot-scope"))&&(e.slotScope=t);var n=Or(e,"slot");n&&(e.slotTarget='""'===n?'"default"':n,"template"===e.tag||e.slotScope||xr(e,"slot",n))}}(e),function(e){var t;(t=Or(e,"is"))&&(e.component=t);null!=Sr(e,"inline-template")&&(e.inlineTemplate=!0)}(e);for(var a=0;a<xo.length;a++)e=xo[a](e,t)||e;!function(e){var t,n,r,i,o,a,s,c=e.attrsList;for(t=0,n=c.length;t<n;t++)if(r=i=c[t].name,o=c[t].value,jo.test(r))if(e.hasBindings=!0,(a=zo(r))&&(r=r.replace(Po,"")),Do.test(r))r=r.replace(Do,""),o=_r(o),s=!1,a&&(a.prop&&(s=!0,"innerHtml"===(r=g(r))&&(r="innerHTML")),a.camel&&(r=g(r)),a.sync&&Ar(e,"update:"+g(r),Er(o,"$event"))),s||!e.component&&So(e.tag,e.attrsMap.type,r)?Cr(e,r,o):xr(e,r,o);else if(Eo.test(r))r=r.replace(Eo,""),Ar(e,r,o,a,!1);else{var l=(r=r.replace(jo,"")).match(Mo),u=l&&l[1];u&&(r=r.slice(0,-(u.length+1))),p=r,d=i,v=o,h=u,m=a,((f=e).directives||(f.directives=[])).push({name:p,rawName:d,value:v,arg:h,modifiers:m}),f.plain=!1}else xr(e,r,JSON.stringify(o)),!e.component&&"muted"===r&&So(e.tag,e.attrsMap.type,r)&&Cr(e,r,"true");var f,p,d,v,h,m}(e)}function Uo(e){var t;if(t=Sr(e,"v-for")){var n=function(e){var t=e.match(No);if(!t)return;var n={};n.for=t[2].trim();var r=t[1].trim().replace(Io,""),i=r.match(Lo);i?(n.alias=r.replace(Lo,""),n.iterator1=i[1].trim(),i[2]&&(n.iterator2=i[2].trim())):n.alias=r;return n}(t);n&&m(e,n)}}function Vo(e,t){e.ifConditions||(e.ifConditions=[]),e.ifConditions.push(t)}function zo(e){var t=e.match(Po);if(t){var n={};return t.forEach(function(e){n[e.slice(1)]=!0}),n}}var Ko=/^xmlns:NS\d+/,Jo=/^NS\d+:/;function qo(e){return Ro(e.tag,e.attrsList.slice(),e.parent)}var Wo=[Xi,Qi,{preTransformNode:function(e,t){if("input"===e.tag){var n,r=e.attrsMap;if(!r["v-model"])return;if((r[":type"]||r["v-bind:type"])&&(n=Or(e,"type")),r.type||n||!r["v-bind"]||(n="("+r["v-bind"]+").type"),n){var i=Sr(e,"v-if",!0),o=i?"&&("+i+")":"",a=null!=Sr(e,"v-else",!0),s=Sr(e,"v-else-if",!0),c=qo(e);Uo(c),kr(c,"type","checkbox"),Bo(c,t),c.processed=!0,c.if="("+n+")==='checkbox'"+o,Vo(c,{exp:c.if,block:c});var l=qo(e);Sr(l,"v-for",!0),kr(l,"type","radio"),Bo(l,t),Vo(c,{exp:"("+n+")==='radio'"+o,block:l});var u=qo(e);return Sr(u,"v-for",!0),kr(u,":type",n),Bo(u,t),Vo(c,{exp:i,block:u}),a?c.else=!0:s&&(c.elseif=s),c}}}}];var Go,Zo,Xo,Yo={expectHTML:!0,modules:Wo,directives:{model:function(e,t,n){var r,i,o,a,s,c,l,u,f,p,d,v,h,m,y,g,_=t.value,b=t.modifiers,$=e.tag,w=e.attrsMap.type;if(e.component)return Tr(e,_,b),!1;if("select"===$)h=e,m=_,g=(g='var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+((y=b)&&y.number?"_n(val)":"val")+"});")+" "+Er(m,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),Ar(h,"change",g,null,!0);else if("input"===$&&"checkbox"===w)c=e,l=_,f=(u=b)&&u.number,p=Or(c,"value")||"null",d=Or(c,"true-value")||"true",v=Or(c,"false-value")||"false",Cr(c,"checked","Array.isArray("+l+")?_i("+l+","+p+")>-1"+("true"===d?":("+l+")":":_q("+l+","+d+")")),Ar(c,"change","var $$a="+l+",$$el=$event.target,$$c=$$el.checked?("+d+"):("+v+");if(Array.isArray($$a)){var $$v="+(f?"_n("+p+")":p)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Er(l,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Er(l,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Er(l,"$$c")+"}",null,!0);else if("input"===$&&"radio"===w)r=e,i=_,a=(o=b)&&o.number,s=Or(r,"value")||"null",Cr(r,"checked","_q("+i+","+(s=a?"_n("+s+")":s)+")"),Ar(r,"change",Er(i,s),null,!0);else if("input"===$||"textarea"===$)!function(e,t,n){var r=e.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,c=!o&&"range"!==r,l=o?"change":"range"===r?Pr:"input",u="$event.target.value";s&&(u="$event.target.value.trim()"),a&&(u="_n("+u+")");var f=Er(t,u);c&&(f="if($event.target.composing)return;"+f),Cr(e,"value","("+t+")"),Ar(e,l,f,null,!0),(s||a)&&Ar(e,"blur","$forceUpdate()")}(e,_,b);else if(!j.isReservedTag($))return Tr(e,_,b),!1;return!0},text:function(e,t){t.value&&Cr(e,"textContent","_s("+t.value+")")},html:function(e,t){t.value&&Cr(e,"innerHTML","_s("+t.value+")")}},isPreTag:function(e){return"pre"===e},isUnaryTag:to,mustUseProp:Sn,canBeLeftOpenTag:no,isReservedTag:Un,getTagNamespace:Vn,staticKeys:(Go=Wo,Go.reduce(function(e,t){return e.concat(t.staticKeys||[])},[]).join(","))},Qo=e(function(e){return s("type,tag,attrsList,attrsMap,plain,parent,children,attrs"+(e?","+e:""))});function ea(e,t){e&&(Zo=Qo(t.staticKeys||""),Xo=t.isReservedTag||O,function e(t){t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||c(e.tag)||!Xo(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(Zo)))}(t);if(1===t.type){if(!Xo(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,r=t.children.length;n<r;n++){var i=t.children[n];e(i),i.static||(t.static=!1)}if(t.ifConditions)for(var o=1,a=t.ifConditions.length;o<a;o++){var s=t.ifConditions[o].block;e(s),s.static||(t.static=!1)}}}(e),function e(t,n){if(1===t.type){if((t.static||t.once)&&(t.staticInFor=n),t.static&&t.children.length&&(1!==t.children.length||3!==t.children[0].type))return void(t.staticRoot=!0);if(t.staticRoot=!1,t.children)for(var r=0,i=t.children.length;r<i;r++)e(t.children[r],n||!!t.for);if(t.ifConditions)for(var o=1,a=t.ifConditions.length;o<a;o++)e(t.ifConditions[o].block,n)}}(e,!1))}var ta=/^([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/,na=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,ra={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},ia={esc:"Escape",tab:"Tab",enter:"Enter",space:" ",up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete"]},oa=function(e){return"if("+e+")return null;"},aa={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:oa("$event.target !== $event.currentTarget"),ctrl:oa("!$event.ctrlKey"),shift:oa("!$event.shiftKey"),alt:oa("!$event.altKey"),meta:oa("!$event.metaKey"),left:oa("'button' in $event && $event.button !== 0"),middle:oa("'button' in $event && $event.button !== 1"),right:oa("'button' in $event && $event.button !== 2")};function sa(e,t,n){var r=t?"nativeOn:{":"on:{";for(var i in e)r+='"'+i+'":'+ca(i,e[i])+",";return r.slice(0,-1)+"}"}function ca(t,e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map(function(e){return ca(t,e)}).join(",")+"]";var n=na.test(e.value),r=ta.test(e.value);if(e.modifiers){var i="",o="",a=[];for(var s in e.modifiers)if(aa[s])o+=aa[s],ra[s]&&a.push(s);else if("exact"===s){var c=e.modifiers;o+=oa(["ctrl","shift","alt","meta"].filter(function(e){return!c[e]}).map(function(e){return"$event."+e+"Key"}).join("||"))}else a.push(s);return a.length&&(i+="if(!('button' in $event)&&"+a.map(la).join("&&")+")return null;"),o&&(i+=o),"function($event){"+i+(n?"return "+e.value+"($event)":r?"return ("+e.value+")($event)":e.value)+"}"}return n||r?e.value:"function($event){"+e.value+"}"}function la(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=ra[e],r=ia[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var ua={on:function(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function(t,n){t.wrapData=function(e){return"_b("+e+",'"+t.tag+"',"+n.value+","+(n.modifiers&&n.modifiers.prop?"true":"false")+(n.modifiers&&n.modifiers.sync?",true":"")+")"}},cloak:$},fa=function(e){this.options=e,this.warn=e.warn||$r,this.transforms=wr(e.modules,"transformCode"),this.dataGenFns=wr(e.modules,"genData"),this.directives=m(m({},ua),e.directives);var t=e.isReservedTag||O;this.maybeComponent=function(e){return!t(e.tag)},this.onceId=0,this.staticRenderFns=[]};function pa(e,t){var n=new fa(t);return{render:"with(this){return "+(e?da(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function da(e,t){if(e.staticRoot&&!e.staticProcessed)return va(e,t);if(e.once&&!e.onceProcessed)return ha(e,t);if(e.for&&!e.forProcessed)return f=t,v=(u=e).for,h=u.alias,m=u.iterator1?","+u.iterator1:"",y=u.iterator2?","+u.iterator2:"",u.forProcessed=!0,(d||"_l")+"(("+v+"),function("+h+m+y+"){return "+(p||da)(u,f)+"})";if(e.if&&!e.ifProcessed)return ma(e,t);if("template"!==e.tag||e.slotTarget){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=_a(e,t),i="_t("+n+(r?","+r:""),o=e.attrs&&"{"+e.attrs.map(function(e){return g(e.name)+":"+e.value}).join(",")+"}",a=e.attrsMap["v-bind"];!o&&!a||r||(i+=",null");o&&(i+=","+o);a&&(i+=(o?"":",null")+","+a);return i+")"}(e,t);var n;if(e.component)a=e.component,c=t,l=(s=e).inlineTemplate?null:_a(s,c,!0),n="_c("+a+","+ya(s,c)+(l?","+l:"")+")";else{var r=e.plain?void 0:ya(e,t),i=e.inlineTemplate?null:_a(e,t,!0);n="_c('"+e.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var o=0;o<t.transforms.length;o++)n=t.transforms[o](e,n);return n}return _a(e,t)||"void 0";var a,s,c,l,u,f,p,d,v,h,m,y}function va(e,t){return e.staticProcessed=!0,t.staticRenderFns.push("with(this){return "+da(e,t)+"}"),"_m("+(t.staticRenderFns.length-1)+(e.staticInFor?",true":"")+")"}function ha(e,t){if(e.onceProcessed=!0,e.if&&!e.ifProcessed)return ma(e,t);if(e.staticInFor){for(var n="",r=e.parent;r;){if(r.for){n=r.key;break}r=r.parent}return n?"_o("+da(e,t)+","+t.onceId+++","+n+")":da(e,t)}return va(e,t)}function ma(e,t,n,r){return e.ifProcessed=!0,function e(t,n,r,i){if(!t.length)return i||"_e()";var o=t.shift();return o.exp?"("+o.exp+")?"+a(o.block)+":"+e(t,n,r,i):""+a(o.block);function a(e){return r?r(e,n):e.once?ha(e,n):da(e,n)}}(e.ifConditions.slice(),t,n,r)}function ya(e,t){var n,r,i="{",o=function(e,t){var n=e.directives;if(!n)return;var r,i,o,a,s="directives:[",c=!1;for(r=0,i=n.length;r<i;r++){o=n[r],a=!0;var l=t.directives[o.name];l&&(a=!!l(e,o,t.warn)),a&&(c=!0,s+='{name:"'+o.name+'",rawName:"'+o.rawName+'"'+(o.value?",value:("+o.value+"),expression:"+JSON.stringify(o.value):"")+(o.arg?',arg:"'+o.arg+'"':"")+(o.modifiers?",modifiers:"+JSON.stringify(o.modifiers):"")+"},")}if(c)return s.slice(0,-1)+"]"}(e,t);o&&(i+=o+","),e.key&&(i+="key:"+e.key+","),e.ref&&(i+="ref:"+e.ref+","),e.refInFor&&(i+="refInFor:true,"),e.pre&&(i+="pre:true,"),e.component&&(i+='tag:"'+e.tag+'",');for(var a=0;a<t.dataGenFns.length;a++)i+=t.dataGenFns[a](e);if(e.attrs&&(i+="attrs:{"+wa(e.attrs)+"},"),e.props&&(i+="domProps:{"+wa(e.props)+"},"),e.events&&(i+=sa(e.events,!1,t.warn)+","),e.nativeEvents&&(i+=sa(e.nativeEvents,!0,t.warn)+","),e.slotTarget&&!e.slotScope&&(i+="slot:"+e.slotTarget+","),e.scopedSlots&&(i+=(n=e.scopedSlots,r=t,"scopedSlots:_u(["+Object.keys(n).map(function(e){return ga(e,n[e],r)}).join(",")+"]),")),e.model&&(i+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var s=function(e,t){var n=e.children[0];if(1===n.type){var r=pa(n,t.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map(function(e){return"function(){"+e+"}"}).join(",")+"]}"}}(e,t);s&&(i+=s+",")}return i=i.replace(/,$/,"")+"}",e.wrapData&&(i=e.wrapData(i)),e.wrapListeners&&(i=e.wrapListeners(i)),i}function ga(e,t,n){return t.for&&!t.forProcessed?(r=e,o=n,a=(i=t).for,s=i.alias,c=i.iterator1?","+i.iterator1:"",l=i.iterator2?","+i.iterator2:"",i.forProcessed=!0,"_l(("+a+"),function("+s+c+l+"){return "+ga(r,i,o)+"})"):"{key:"+e+",fn:"+("function("+String(t.slotScope)+"){return "+("template"===t.tag?t.if?t.if+"?"+(_a(t,n)||"undefined")+":undefined":_a(t,n)||"undefined":da(t,n))+"}")+"}";var r,i,o,a,s,c,l}function _a(e,t,n,r,i){var o=e.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag)return(r||da)(a,t);var s=n?function(e,t){for(var n=0,r=0;r<e.length;r++){var i=e[r];if(1===i.type){if(ba(i)||i.ifConditions&&i.ifConditions.some(function(e){return ba(e.block)})){n=2;break}(t(i)||i.ifConditions&&i.ifConditions.some(function(e){return t(e.block)}))&&(n=1)}}return n}(o,t.maybeComponent):0,c=i||$a;return"["+o.map(function(e){return c(e,t)}).join(",")+"]"+(s?","+s:"")}}function ba(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function $a(e,t){return 1===e.type?da(e,t):3===e.type&&e.isComment?(r=e,"_e("+JSON.stringify(r.text)+")"):"_v("+(2===(n=e).type?n.expression:Ca(JSON.stringify(n.text)))+")";var n,r}function wa(e){for(var t="",n=0;n<e.length;n++){var r=e[n];t+='"'+r.name+'":'+Ca(r.value)+","}return t.slice(0,-1)}function Ca(e){return e.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)");function xa(t,n){try{return new Function(t)}catch(e){return n.push({err:e,code:t}),$}}var ka,Aa,Oa=(ka=function(e,t){var n=Ho(e.trim(),t);!1!==t.optimize&&ea(n,t);var r=pa(n,t);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}},function(s){function e(e,t){var n=Object.create(s),r=[],i=[];if(n.warn=function(e,t){(t?i:r).push(e)},t)for(var o in t.modules&&(n.modules=(s.modules||[]).concat(t.modules)),t.directives&&(n.directives=m(Object.create(s.directives||null),t.directives)),t)"modules"!==o&&"directives"!==o&&(n[o]=t[o]);var a=ka(e,n);return a.errors=r,a.tips=i,a}return{compile:e,compileToFunctions:(c=e,l=Object.create(null),function(e,t,n){(t=m({},t)).warn,delete t.warn;var r=t.delimiters?String(t.delimiters)+e:e;if(l[r])return l[r];var i=c(e,t),o={},a=[];return o.render=xa(i.render,a),o.staticRenderFns=i.staticRenderFns.map(function(e){return xa(e,a)}),l[r]=o})};var c,l})(Yo).compileToFunctions;function Sa(e){return(Aa=Aa||document.createElement("div")).innerHTML=e?'<a href="\n"/>':'<div a="\n"/>',0<Aa.innerHTML.indexOf("&#10;")}var Ta=!!B&&Sa(!1),Ea=!!B&&Sa(!0),ja=e(function(e){var t=Jn(e);return t&&t.innerHTML}),Na=hn.prototype.$mount;return hn.prototype.$mount=function(e,t){if((e=e&&Jn(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=ja(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=function(e){{if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}}(e));if(r){var i=Oa(r,{shouldDecodeNewlines:Ta,shouldDecodeNewlinesForHref:Ea,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return Na.call(this,e,t)},hn.compile=Oa,hn});
1
  /*!
2
+ * Vue.js v2.6.6
3
+ * (c) 2014-2019 Evan You
4
  * Released under the MIT License.
5
  */
6
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).Vue=t()}(this,function(){"use strict";var e=Object.freeze({});function t(e){return null==e}function n(e){return null!=e}function r(e){return!0===e}function i(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function o(e){return null!==e&&"object"==typeof e}var a=Object.prototype.toString;function s(e){return"[object Object]"===a.call(e)}function c(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function u(e){return n(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function l(e){return null==e?"":Array.isArray(e)||s(e)&&e.toString===a?JSON.stringify(e,null,2):String(e)}function f(e){var t=parseFloat(e);return isNaN(t)?e:t}function p(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i<r.length;i++)n[r[i]]=!0;return t?function(e){return n[e.toLowerCase()]}:function(e){return n[e]}}var d=p("slot,component",!0),v=p("key,ref,slot,slot-scope,is");function h(e,t){if(e.length){var n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}var m=Object.prototype.hasOwnProperty;function y(e,t){return m.call(e,t)}function g(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var _=/-(\w)/g,b=g(function(e){return e.replace(_,function(e,t){return t?t.toUpperCase():""})}),$=g(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),w=/\B([A-Z])/g,x=g(function(e){return e.replace(w,"-$1").toLowerCase()});var C=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function A(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function k(e,t){for(var n in t)e[n]=t[n];return e}function O(e){for(var t={},n=0;n<e.length;n++)e[n]&&k(t,e[n]);return t}function S(e,t,n){}var T=function(e,t,n){return!1},E=function(e){return e};function j(e,t){if(e===t)return!0;var n=o(e),r=o(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{var i=Array.isArray(e),a=Array.isArray(t);if(i&&a)return e.length===t.length&&e.every(function(e,n){return j(e,t[n])});if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(i||a)return!1;var s=Object.keys(e),c=Object.keys(t);return s.length===c.length&&s.every(function(n){return j(e[n],t[n])})}catch(e){return!1}}function N(e,t){for(var n=0;n<e.length;n++)if(j(e[n],t))return n;return-1}function L(e){var t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}var M="data-server-rendered",I=["component","directive","filter"],D=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],P={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:T,isReservedAttr:T,isUnknownElement:T,getTagNamespace:S,parsePlatformTagName:E,mustUseProp:T,async:!0,_lifecycleHooks:D};function R(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}var F=new RegExp("[^a-zA-Z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd.$_\\d]");var H,B="__proto__"in{},U="undefined"!=typeof window,z="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,V=z&&WXEnvironment.platform.toLowerCase(),K=U&&window.navigator.userAgent.toLowerCase(),J=K&&/msie|trident/.test(K),q=K&&K.indexOf("msie 9.0")>0,W=K&&K.indexOf("edge/")>0,Z=(K&&K.indexOf("android"),K&&/iphone|ipad|ipod|ios/.test(K)||"ios"===V),G=(K&&/chrome\/\d+/.test(K),K&&/phantomjs/.test(K),K&&K.match(/firefox\/(\d+)/)),X={}.watch,Y=!1;if(U)try{var Q={};Object.defineProperty(Q,"passive",{get:function(){Y=!0}}),window.addEventListener("test-passive",null,Q)}catch(e){}var ee=function(){return void 0===H&&(H=!U&&!z&&"undefined"!=typeof global&&(global.process&&"server"===global.process.env.VUE_ENV)),H},te=U&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ne(e){return"function"==typeof e&&/native code/.test(e.toString())}var re,ie="undefined"!=typeof Symbol&&ne(Symbol)&&"undefined"!=typeof Reflect&&ne(Reflect.ownKeys);re="undefined"!=typeof Set&&ne(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var oe=S,ae=0,se=function(){this.id=ae++,this.subs=[]};se.prototype.addSub=function(e){this.subs.push(e)},se.prototype.removeSub=function(e){h(this.subs,e)},se.prototype.depend=function(){se.target&&se.target.addDep(this)},se.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t<n;t++)e[t].update()},se.target=null;var ce=[];function ue(e){ce.push(e),se.target=e}function le(){ce.pop(),se.target=ce[ce.length-1]}var fe=function(e,t,n,r,i,o,a,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},pe={child:{configurable:!0}};pe.child.get=function(){return this.componentInstance},Object.defineProperties(fe.prototype,pe);var de=function(e){void 0===e&&(e="");var t=new fe;return t.text=e,t.isComment=!0,t};function ve(e){return new fe(void 0,void 0,void 0,String(e))}function he(e){var t=new fe(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}var me=Array.prototype,ye=Object.create(me);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(e){var t=me[e];R(ye,e,function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];var i,o=t.apply(this,n),a=this.__ob__;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2)}return i&&a.observeArray(i),a.dep.notify(),o})});var ge=Object.getOwnPropertyNames(ye),_e=!0;function be(e){_e=e}var $e=function(e){var t;this.value=e,this.dep=new se,this.vmCount=0,R(e,"__ob__",this),Array.isArray(e)?(B?(t=ye,e.__proto__=t):function(e,t,n){for(var r=0,i=n.length;r<i;r++){var o=n[r];R(e,o,t[o])}}(e,ye,ge),this.observeArray(e)):this.walk(e)};function we(e,t){var n;if(o(e)&&!(e instanceof fe))return y(e,"__ob__")&&e.__ob__ instanceof $e?n=e.__ob__:_e&&!ee()&&(Array.isArray(e)||s(e))&&Object.isExtensible(e)&&!e._isVue&&(n=new $e(e)),t&&n&&n.vmCount++,n}function xe(e,t,n,r,i){var o=new se,a=Object.getOwnPropertyDescriptor(e,t);if(!a||!1!==a.configurable){var s=a&&a.get,c=a&&a.set;s&&!c||2!==arguments.length||(n=e[t]);var u=!i&&we(n);Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){var t=s?s.call(e):n;return se.target&&(o.depend(),u&&(u.dep.depend(),Array.isArray(t)&&function e(t){for(var n=void 0,r=0,i=t.length;r<i;r++)(n=t[r])&&n.__ob__&&n.__ob__.dep.depend(),Array.isArray(n)&&e(n)}(t))),t},set:function(t){var r=s?s.call(e):n;t===r||t!=t&&r!=r||s&&!c||(c?c.call(e,t):n=t,u=!i&&we(t),o.notify())}})}}function Ce(e,t,n){if(Array.isArray(e)&&c(t))return e.length=Math.max(e.length,t),e.splice(t,1,n),n;if(t in e&&!(t in Object.prototype))return e[t]=n,n;var r=e.__ob__;return e._isVue||r&&r.vmCount?n:r?(xe(r.value,t,n),r.dep.notify(),n):(e[t]=n,n)}function Ae(e,t){if(Array.isArray(e)&&c(t))e.splice(t,1);else{var n=e.__ob__;e._isVue||n&&n.vmCount||y(e,t)&&(delete e[t],n&&n.dep.notify())}}$e.prototype.walk=function(e){for(var t=Object.keys(e),n=0;n<t.length;n++)xe(e,t[n])},$e.prototype.observeArray=function(e){for(var t=0,n=e.length;t<n;t++)we(e[t])};var ke=P.optionMergeStrategies;function Oe(e,t){if(!t)return e;for(var n,r,i,o=ie?Reflect.ownKeys(t):Object.keys(t),a=0;a<o.length;a++)"__ob__"!==(n=o[a])&&(r=e[n],i=t[n],y(e,n)?r!==i&&s(r)&&s(i)&&Oe(r,i):Ce(e,n,i));return e}function Se(e,t,n){return n?function(){var r="function"==typeof t?t.call(n,n):t,i="function"==typeof e?e.call(n,n):e;return r?Oe(r,i):i}:t?e?function(){return Oe("function"==typeof t?t.call(this,this):t,"function"==typeof e?e.call(this,this):e)}:t:e}function Te(e,t){var n=t?e?e.concat(t):Array.isArray(t)?t:[t]:e;return n?function(e){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n):n}function Ee(e,t,n,r){var i=Object.create(e||null);return t?k(i,t):i}ke.data=function(e,t,n){return n?Se(e,t,n):t&&"function"!=typeof t?e:Se(e,t)},D.forEach(function(e){ke[e]=Te}),I.forEach(function(e){ke[e+"s"]=Ee}),ke.watch=function(e,t,n,r){if(e===X&&(e=void 0),t===X&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;var i={};for(var o in k(i,e),t){var a=i[o],s=t[o];a&&!Array.isArray(a)&&(a=[a]),i[o]=a?a.concat(s):Array.isArray(s)?s:[s]}return i},ke.props=ke.methods=ke.inject=ke.computed=function(e,t,n,r){if(!e)return t;var i=Object.create(null);return k(i,e),t&&k(i,t),i},ke.provide=Se;var je=function(e,t){return void 0===t?e:t};function Ne(e,t,n){if("function"==typeof t&&(t=t.options),function(e,t){var n=e.props;if(n){var r,i,o={};if(Array.isArray(n))for(r=n.length;r--;)"string"==typeof(i=n[r])&&(o[b(i)]={type:null});else if(s(n))for(var a in n)i=n[a],o[b(a)]=s(i)?i:{type:i};e.props=o}}(t),function(e,t){var n=e.inject;if(n){var r=e.inject={};if(Array.isArray(n))for(var i=0;i<n.length;i++)r[n[i]]={from:n[i]};else if(s(n))for(var o in n){var a=n[o];r[o]=s(a)?k({from:o},a):{from:a}}}}(t),function(e){var t=e.directives;if(t)for(var n in t){var r=t[n];"function"==typeof r&&(t[n]={bind:r,update:r})}}(t),!t._base&&(t.extends&&(e=Ne(e,t.extends,n)),t.mixins))for(var r=0,i=t.mixins.length;r<i;r++)e=Ne(e,t.mixins[r],n);var o,a={};for(o in e)c(o);for(o in t)y(e,o)||c(o);function c(r){var i=ke[r]||je;a[r]=i(e[r],t[r],n,r)}return a}function Le(e,t,n,r){if("string"==typeof n){var i=e[t];if(y(i,n))return i[n];var o=b(n);if(y(i,o))return i[o];var a=$(o);return y(i,a)?i[a]:i[n]||i[o]||i[a]}}function Me(e,t,n,r){var i=t[e],o=!y(n,e),a=n[e],s=Pe(Boolean,i.type);if(s>-1)if(o&&!y(i,"default"))a=!1;else if(""===a||a===x(e)){var c=Pe(String,i.type);(c<0||s<c)&&(a=!0)}if(void 0===a){a=function(e,t,n){if(!y(t,"default"))return;var r=t.default;if(e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n])return e._props[n];return"function"==typeof r&&"Function"!==Ie(t.type)?r.call(e):r}(r,i,e);var u=_e;be(!0),we(a),be(u)}return a}function Ie(e){var t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function De(e,t){return Ie(e)===Ie(t)}function Pe(e,t){if(!Array.isArray(t))return De(t,e)?0:-1;for(var n=0,r=t.length;n<r;n++)if(De(t[n],e))return n;return-1}function Re(e,t,n){if(t)for(var r=t;r=r.$parent;){var i=r.$options.errorCaptured;if(i)for(var o=0;o<i.length;o++)try{if(!1===i[o].call(r,e,t,n))return}catch(e){He(e,r,"errorCaptured hook")}}He(e,t,n)}function Fe(e,t,n,r,i){var o;try{(o=n?e.apply(t,n):e.call(t))&&!o._isVue&&u(o)&&o.catch(function(e){return Re(e,r,i+" (Promise/async)")})}catch(e){Re(e,r,i)}return o}function He(e,t,n){if(P.errorHandler)try{return P.errorHandler.call(null,e,t,n)}catch(t){t!==e&&Be(t,null,"config.errorHandler")}Be(e,t,n)}function Be(e,t,n){if(!U&&!z||"undefined"==typeof console)throw e;console.error(e)}var Ue,ze=!1,Ve=[],Ke=!1;function Je(){Ke=!1;var e=Ve.slice(0);Ve.length=0;for(var t=0;t<e.length;t++)e[t]()}if("undefined"!=typeof Promise&&ne(Promise)){var qe=Promise.resolve();Ue=function(){qe.then(Je),Z&&setTimeout(S)},ze=!0}else if(J||"undefined"==typeof MutationObserver||!ne(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Ue="undefined"!=typeof setImmediate&&ne(setImmediate)?function(){setImmediate(Je)}:function(){setTimeout(Je,0)};else{var We=1,Ze=new MutationObserver(Je),Ge=document.createTextNode(String(We));Ze.observe(Ge,{characterData:!0}),Ue=function(){We=(We+1)%2,Ge.data=String(We)},ze=!0}function Xe(e,t){var n;if(Ve.push(function(){if(e)try{e.call(t)}catch(e){Re(e,t,"nextTick")}else n&&n(t)}),Ke||(Ke=!0,Ue()),!e&&"undefined"!=typeof Promise)return new Promise(function(e){n=e})}var Ye=new re;function Qe(e){!function e(t,n){var r,i;var a=Array.isArray(t);if(!a&&!o(t)||Object.isFrozen(t)||t instanceof fe)return;if(t.__ob__){var s=t.__ob__.dep.id;if(n.has(s))return;n.add(s)}if(a)for(r=t.length;r--;)e(t[r],n);else for(i=Object.keys(t),r=i.length;r--;)e(t[i[r]],n)}(e,Ye),Ye.clear()}var et=g(function(e){var t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),r="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=r?e.slice(1):e,once:n,capture:r,passive:t}});function tt(e,t){function n(){var e=arguments,r=n.fns;if(!Array.isArray(r))return Fe(r,null,arguments,t,"v-on handler");for(var i=r.slice(),o=0;o<i.length;o++)Fe(i[o],null,e,t,"v-on handler")}return n.fns=e,n}function nt(e,n,i,o,a,s){var c,u,l,f;for(c in e)u=e[c],l=n[c],f=et(c),t(u)||(t(l)?(t(u.fns)&&(u=e[c]=tt(u,s)),r(f.once)&&(u=e[c]=a(f.name,u,f.capture)),i(f.name,u,f.capture,f.passive,f.params)):u!==l&&(l.fns=u,e[c]=l));for(c in n)t(e[c])&&o((f=et(c)).name,n[c],f.capture)}function rt(e,i,o){var a;e instanceof fe&&(e=e.data.hook||(e.data.hook={}));var s=e[i];function c(){o.apply(this,arguments),h(a.fns,c)}t(s)?a=tt([c]):n(s.fns)&&r(s.merged)?(a=s).fns.push(c):a=tt([s,c]),a.merged=!0,e[i]=a}function it(e,t,r,i,o){if(n(t)){if(y(t,r))return e[r]=t[r],o||delete t[r],!0;if(y(t,i))return e[r]=t[i],o||delete t[i],!0}return!1}function ot(e){return i(e)?[ve(e)]:Array.isArray(e)?function e(o,a){var s=[];var c,u,l,f;for(c=0;c<o.length;c++)t(u=o[c])||"boolean"==typeof u||(l=s.length-1,f=s[l],Array.isArray(u)?u.length>0&&(at((u=e(u,(a||"")+"_"+c))[0])&&at(f)&&(s[l]=ve(f.text+u[0].text),u.shift()),s.push.apply(s,u)):i(u)?at(f)?s[l]=ve(f.text+u):""!==u&&s.push(ve(u)):at(u)&&at(f)?s[l]=ve(f.text+u.text):(r(o._isVList)&&n(u.tag)&&t(u.key)&&n(a)&&(u.key="__vlist"+a+"_"+c+"__"),s.push(u)));return s}(e):void 0}function at(e){return n(e)&&n(e.text)&&!1===e.isComment}function st(e,t){if(e){for(var n=Object.create(null),r=ie?Reflect.ownKeys(e):Object.keys(e),i=0;i<r.length;i++){var o=r[i];if("__ob__"!==o){for(var a=e[o].from,s=t;s;){if(s._provided&&y(s._provided,a)){n[o]=s._provided[a];break}s=s.$parent}if(!s&&"default"in e[o]){var c=e[o].default;n[o]="function"==typeof c?c.call(t):c}}}return n}}function ct(e,t){if(!e||!e.length)return{};for(var n={},r=0,i=e.length;r<i;r++){var o=e[r],a=o.data;if(a&&a.attrs&&a.attrs.slot&&delete a.attrs.slot,o.context!==t&&o.fnContext!==t||!a||null==a.slot)(n.default||(n.default=[])).push(o);else{var s=a.slot,c=n[s]||(n[s]=[]);"template"===o.tag?c.push.apply(c,o.children||[]):c.push(o)}}for(var u in n)n[u].every(ut)&&delete n[u];return n}function ut(e){return e.isComment&&!e.asyncFactory||" "===e.text}function lt(t,n,r){var i;if(t){if(t._normalized)return t._normalized;if(t.$stable&&r&&r!==e&&0===Object.keys(n).length)return r;for(var o in i={},t)t[o]&&"$"!==o[0]&&(i[o]=ft(n,o,t[o]))}else i={};for(var a in n)a in i||(i[a]=pt(n,a));return t&&Object.isExtensible(t)&&(t._normalized=i),R(i,"$stable",!t||!!t.$stable),i}function ft(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:ot(e))&&0===e.length?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function pt(e,t){return function(){return e[t]}}function dt(e,t){var r,i,a,s,c;if(Array.isArray(e)||"string"==typeof e)for(r=new Array(e.length),i=0,a=e.length;i<a;i++)r[i]=t(e[i],i);else if("number"==typeof e)for(r=new Array(e),i=0;i<e;i++)r[i]=t(i+1,i);else if(o(e))if(ie&&e[Symbol.iterator]){r=[];for(var u=e[Symbol.iterator](),l=u.next();!l.done;)r.push(t(l.value,r.length)),l=u.next()}else for(s=Object.keys(e),r=new Array(s.length),i=0,a=s.length;i<a;i++)c=s[i],r[i]=t(e[c],c,i);return n(r)||(r=[]),r._isVList=!0,r}function vt(e,t,n,r){var i,o=this.$scopedSlots[e];o?(n=n||{},r&&(n=k(k({},r),n)),i=o(n)||t):i=this.$slots[e]||t;var a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function ht(e){return Le(this.$options,"filters",e)||E}function mt(e,t){return Array.isArray(e)?-1===e.indexOf(t):e!==t}function yt(e,t,n,r,i){var o=P.keyCodes[t]||n;return i&&r&&!P.keyCodes[t]?mt(i,r):o?mt(o,e):r?x(r)!==t:void 0}function gt(e,t,n,r,i){if(n)if(o(n)){var a;Array.isArray(n)&&(n=O(n));var s=function(o){if("class"===o||"style"===o||v(o))a=e;else{var s=e.attrs&&e.attrs.type;a=r||P.mustUseProp(t,s,o)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}var c=b(o);o in a||c in a||(a[o]=n[o],i&&((e.on||(e.on={}))["update:"+c]=function(e){n[o]=e}))};for(var c in n)s(c)}else;return e}function _t(e,t){var n=this._staticTrees||(this._staticTrees=[]),r=n[e];return r&&!t?r:($t(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,null,this),"__static__"+e,!1),r)}function bt(e,t,n){return $t(e,"__once__"+t+(n?"_"+n:""),!0),e}function $t(e,t,n){if(Array.isArray(e))for(var r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&&wt(e[r],t+"_"+r,n);else wt(e,t,n)}function wt(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function xt(e,t){if(t)if(s(t)){var n=e.on=e.on?k({},e.on):{};for(var r in t){var i=n[r],o=t[r];n[r]=i?[].concat(i,o):o}}else;return e}function Ct(e,t,n){n=n||{$stable:!t};for(var r=0;r<e.length;r++){var i=e[r];Array.isArray(i)?Ct(i,t,n):i&&(i.proxy&&(i.fn.proxy=!0),n[i.key]=i.fn)}return n}function At(e,t){for(var n=0;n<t.length;n+=2){var r=t[n];"string"==typeof r&&r&&(e[t[n]]=t[n+1])}return e}function kt(e,t){return"string"==typeof e?t+e:e}function Ot(e){e._o=bt,e._n=f,e._s=l,e._l=dt,e._t=vt,e._q=j,e._i=N,e._m=_t,e._f=ht,e._k=yt,e._b=gt,e._v=ve,e._e=de,e._u=Ct,e._g=xt,e._d=At,e._p=kt}function St(t,n,i,o,a){var s,c=this,u=a.options;y(o,"_uid")?(s=Object.create(o))._original=o:(s=o,o=o._original);var l=r(u._compiled),f=!l;this.data=t,this.props=n,this.children=i,this.parent=o,this.listeners=t.on||e,this.injections=st(u.inject,o),this.slots=function(){return c.$slots||lt(t.scopedSlots,c.$slots=ct(i,o)),c.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return lt(t.scopedSlots,this.slots())}}),l&&(this.$options=u,this.$slots=this.slots(),this.$scopedSlots=lt(t.scopedSlots,this.$slots)),u._scopeId?this._c=function(e,t,n,r){var i=Pt(s,e,t,n,r,f);return i&&!Array.isArray(i)&&(i.fnScopeId=u._scopeId,i.fnContext=o),i}:this._c=function(e,t,n,r){return Pt(s,e,t,n,r,f)}}function Tt(e,t,n,r,i){var o=he(e);return o.fnContext=n,o.fnOptions=r,t.slot&&((o.data||(o.data={})).slot=t.slot),o}function Et(e,t){for(var n in t)e[b(n)]=t[n]}Ot(St.prototype);var jt={init:function(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){var r=e;jt.prepatch(r,r)}else{(e.componentInstance=function(e,t){var r={_isComponent:!0,_parentVnode:e,parent:t},i=e.data.inlineTemplate;n(i)&&(r.render=i.render,r.staticRenderFns=i.staticRenderFns);return new e.componentOptions.Ctor(r)}(e,qt)).$mount(t?e.elm:void 0,t)}},prepatch:function(t,n){var r=n.componentOptions;!function(t,n,r,i,o){var a=!!(i.data.scopedSlots&&!i.data.scopedSlots.$stable||t.$scopedSlots!==e&&!t.$scopedSlots.$stable),s=!!(o||t.$options._renderChildren||a);t.$options._parentVnode=i,t.$vnode=i,t._vnode&&(t._vnode.parent=i);if(t.$options._renderChildren=o,t.$attrs=i.data.attrs||e,t.$listeners=r||e,n&&t.$options.props){be(!1);for(var c=t._props,u=t.$options._propKeys||[],l=0;l<u.length;l++){var f=u[l],p=t.$options.props;c[f]=Me(f,p,n,t)}be(!0),t.$options.propsData=n}r=r||e;var d=t.$options._parentListeners;t.$options._parentListeners=r,Jt(t,r,d),s&&(t.$slots=ct(o,i.context),t.$forceUpdate())}(n.componentInstance=t.componentInstance,r.propsData,r.listeners,n,r.children)},insert:function(e){var t,n=e.context,r=e.componentInstance;r._isMounted||(r._isMounted=!0,Xt(r,"mounted")),e.data.keepAlive&&(n._isMounted?((t=r)._inactive=!1,Qt.push(t)):Gt(r,!0))},destroy:function(e){var t=e.componentInstance;t._isDestroyed||(e.data.keepAlive?function e(t,n){if(n&&(t._directInactive=!0,Zt(t)))return;if(!t._inactive){t._inactive=!0;for(var r=0;r<t.$children.length;r++)e(t.$children[r]);Xt(t,"deactivated")}}(t,!0):t.$destroy())}},Nt=Object.keys(jt);function Lt(i,a,s,c,l){if(!t(i)){var f=s.$options._base;if(o(i)&&(i=f.extend(i)),"function"==typeof i){var p;if(t(i.cid)&&void 0===(i=function(e,i){if(r(e.error)&&n(e.errorComp))return e.errorComp;if(n(e.resolved))return e.resolved;if(r(e.loading)&&n(e.loadingComp))return e.loadingComp;var a=Ft;if(!n(e.owners)){var s=e.owners=[a],c=!0,l=function(e){for(var t=0,n=s.length;t<n;t++)s[t].$forceUpdate();e&&(s.length=0)},f=L(function(t){e.resolved=Ht(t,i),c?s.length=0:l(!0)}),p=L(function(t){n(e.errorComp)&&(e.error=!0,l(!0))}),d=e(f,p);return o(d)&&(u(d)?t(e.resolved)&&d.then(f,p):u(d.component)&&(d.component.then(f,p),n(d.error)&&(e.errorComp=Ht(d.error,i)),n(d.loading)&&(e.loadingComp=Ht(d.loading,i),0===d.delay?e.loading=!0:setTimeout(function(){t(e.resolved)&&t(e.error)&&(e.loading=!0,l(!1))},d.delay||200)),n(d.timeout)&&setTimeout(function(){t(e.resolved)&&p(null)},d.timeout))),c=!1,e.loading?e.loadingComp:e.resolved}e.owners.push(a)}(p=i,f)))return function(e,t,n,r,i){var o=de();return o.asyncFactory=e,o.asyncMeta={data:t,context:n,children:r,tag:i},o}(p,a,s,c,l);a=a||{},_n(i),n(a.model)&&function(e,t){var r=e.model&&e.model.prop||"value",i=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[r]=t.model.value;var o=t.on||(t.on={}),a=o[i],s=t.model.callback;n(a)?(Array.isArray(a)?-1===a.indexOf(s):a!==s)&&(o[i]=[s].concat(a)):o[i]=s}(i.options,a);var d=function(e,r,i){var o=r.options.props;if(!t(o)){var a={},s=e.attrs,c=e.props;if(n(s)||n(c))for(var u in o){var l=x(u);it(a,c,u,l,!0)||it(a,s,u,l,!1)}return a}}(a,i);if(r(i.options.functional))return function(t,r,i,o,a){var s=t.options,c={},u=s.props;if(n(u))for(var l in u)c[l]=Me(l,u,r||e);else n(i.attrs)&&Et(c,i.attrs),n(i.props)&&Et(c,i.props);var f=new St(i,c,a,o,t),p=s.render.call(null,f._c,f);if(p instanceof fe)return Tt(p,i,f.parent,s);if(Array.isArray(p)){for(var d=ot(p)||[],v=new Array(d.length),h=0;h<d.length;h++)v[h]=Tt(d[h],i,f.parent,s);return v}}(i,d,a,s,c);var v=a.on;if(a.on=a.nativeOn,r(i.options.abstract)){var h=a.slot;a={},h&&(a.slot=h)}!function(e){for(var t=e.hook||(e.hook={}),n=0;n<Nt.length;n++){var r=Nt[n],i=t[r],o=jt[r];i===o||i&&i._merged||(t[r]=i?Mt(o,i):o)}}(a);var m=i.options.name||l;return new fe("vue-component-"+i.cid+(m?"-"+m:""),a,void 0,void 0,void 0,s,{Ctor:i,propsData:d,listeners:v,tag:l,children:c},p)}}}function Mt(e,t){var n=function(n,r){e(n,r),t(n,r)};return n._merged=!0,n}var It=1,Dt=2;function Pt(e,a,s,c,u,l){return(Array.isArray(s)||i(s))&&(u=c,c=s,s=void 0),r(l)&&(u=Dt),function(e,i,a,s,c){if(n(a)&&n(a.__ob__))return de();n(a)&&n(a.is)&&(i=a.is);if(!i)return de();Array.isArray(s)&&"function"==typeof s[0]&&((a=a||{}).scopedSlots={default:s[0]},s.length=0);c===Dt?s=ot(s):c===It&&(s=function(e){for(var t=0;t<e.length;t++)if(Array.isArray(e[t]))return Array.prototype.concat.apply([],e);return e}(s));var u,l;if("string"==typeof i){var f;l=e.$vnode&&e.$vnode.ns||P.getTagNamespace(i),u=P.isReservedTag(i)?new fe(P.parsePlatformTagName(i),a,s,void 0,void 0,e):a&&a.pre||!n(f=Le(e.$options,"components",i))?new fe(i,a,s,void 0,void 0,e):Lt(f,a,e,s,i)}else u=Lt(i,a,e,s);return Array.isArray(u)?u:n(u)?(n(l)&&function e(i,o,a){i.ns=o;"foreignObject"===i.tag&&(o=void 0,a=!0);if(n(i.children))for(var s=0,c=i.children.length;s<c;s++){var u=i.children[s];n(u.tag)&&(t(u.ns)||r(a)&&"svg"!==u.tag)&&e(u,o,a)}}(u,l),n(a)&&function(e){o(e.style)&&Qe(e.style);o(e.class)&&Qe(e.class)}(a),u):de()}(e,a,s,c,u)}var Rt,Ft=null;function Ht(e,t){return(e.__esModule||ie&&"Module"===e[Symbol.toStringTag])&&(e=e.default),o(e)?t.extend(e):e}function Bt(e){return e.isComment&&e.asyncFactory}function Ut(e){if(Array.isArray(e))for(var t=0;t<e.length;t++){var r=e[t];if(n(r)&&(n(r.componentOptions)||Bt(r)))return r}}function zt(e,t){Rt.$on(e,t)}function Vt(e,t){Rt.$off(e,t)}function Kt(e,t){var n=Rt;return function r(){null!==t.apply(null,arguments)&&n.$off(e,r)}}function Jt(e,t,n){Rt=e,nt(t,n||{},zt,Vt,Kt,e),Rt=void 0}var qt=null;function Wt(e){var t=qt;return qt=e,function(){qt=t}}function Zt(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function Gt(e,t){if(t){if(e._directInactive=!1,Zt(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(var n=0;n<e.$children.length;n++)Gt(e.$children[n]);Xt(e,"activated")}}function Xt(e,t){ue();var n=e.$options[t],r=t+" hook";if(n)for(var i=0,o=n.length;i<o;i++)Fe(n[i],e,null,e,r);e._hasHookEvent&&e.$emit("hook:"+t),le()}var Yt=[],Qt=[],en={},tn=!1,nn=!1,rn=0;var on=0,an=Date.now;function sn(){var e,t;for(on=an(),nn=!0,Yt.sort(function(e,t){return e.id-t.id}),rn=0;rn<Yt.length;rn++)(e=Yt[rn]).before&&e.before(),t=e.id,en[t]=null,e.run();var n=Qt.slice(),r=Yt.slice();rn=Yt.length=Qt.length=0,en={},tn=nn=!1,function(e){for(var t=0;t<e.length;t++)e[t]._inactive=!0,Gt(e[t],!0)}(n),function(e){var t=e.length;for(;t--;){var n=e[t],r=n.vm;r._watcher===n&&r._isMounted&&!r._isDestroyed&&Xt(r,"updated")}}(r),te&&P.devtools&&te.emit("flush")}U&&an()>document.createEvent("Event").timeStamp&&(an=function(){return performance.now()});var cn=0,un=function(e,t,n,r,i){this.vm=e,i&&(e._watcher=this),e._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++cn,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new re,this.newDepIds=new re,this.expression="","function"==typeof t?this.getter=t:(this.getter=function(e){if(!F.test(e)){var t=e.split(".");return function(e){for(var n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}}(t),this.getter||(this.getter=S)),this.value=this.lazy?void 0:this.get()};un.prototype.get=function(){var e;ue(this);var t=this.vm;try{e=this.getter.call(t,t)}catch(e){if(!this.user)throw e;Re(e,t,'getter for watcher "'+this.expression+'"')}finally{this.deep&&Qe(e),le(),this.cleanupDeps()}return e},un.prototype.addDep=function(e){var t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))},un.prototype.cleanupDeps=function(){for(var e=this.deps.length;e--;){var t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}var n=this.depIds;this.depIds=this.newDepIds,this.newDepIds=n,this.newDepIds.clear(),n=this.deps,this.deps=this.newDeps,this.newDeps=n,this.newDeps.length=0},un.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(e){var t=e.id;if(null==en[t]){if(en[t]=!0,nn){for(var n=Yt.length-1;n>rn&&Yt[n].id>e.id;)n--;Yt.splice(n+1,0,e)}else Yt.push(e);tn||(tn=!0,Xe(sn))}}(this)},un.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||o(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){Re(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},un.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},un.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},un.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||h(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var ln={enumerable:!0,configurable:!0,get:S,set:S};function fn(e,t,n){ln.get=function(){return this[t][n]},ln.set=function(e){this[t][n]=e},Object.defineProperty(e,n,ln)}function pn(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[];e.$parent&&be(!1);var o=function(o){i.push(o);var a=Me(o,t,n,e);xe(r,o,a),o in e||fn(e,"_props",o)};for(var a in t)o(a);be(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?S:C(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;s(t=e._data="function"==typeof t?function(e,t){ue();try{return e.call(t,t)}catch(e){return Re(e,t,"data()"),{}}finally{le()}}(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);for(;i--;){var o=n[i];r&&y(r,o)||(a=void 0,36!==(a=(o+"").charCodeAt(0))&&95!==a&&fn(e,"_data",o))}var a;we(t,!0)}(e):we(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=ee();for(var i in t){var o=t[i],a="function"==typeof o?o:o.get;r||(n[i]=new un(e,a||S,S,dn)),i in e||vn(e,i,o)}}(e,t.computed),t.watch&&t.watch!==X&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i<r.length;i++)yn(e,n,r[i]);else yn(e,n,r)}}(e,t.watch)}var dn={lazy:!0};function vn(e,t,n){var r=!ee();"function"==typeof n?(ln.get=r?hn(t):mn(n),ln.set=S):(ln.get=n.get?r&&!1!==n.cache?hn(t):mn(n.get):S,ln.set=n.set||S),Object.defineProperty(e,t,ln)}function hn(e){return function(){var t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),se.target&&t.depend(),t.value}}function mn(e){return function(){return e.call(this,this)}}function yn(e,t,n,r){return s(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}var gn=0;function _n(e){var t=e.options;if(e.super){var n=_n(e.super);if(n!==e.superOptions){e.superOptions=n;var r=function(e){var t,n=e.options,r=e.sealedOptions;for(var i in n)n[i]!==r[i]&&(t||(t={}),t[i]=n[i]);return t}(e);r&&k(e.extendOptions,r),(t=e.options=Ne(n,e.extendOptions)).name&&(t.components[t.name]=e)}}return t}function bn(e){this._init(e)}function $n(e){e.cid=0;var t=1;e.extend=function(e){e=e||{};var n=this,r=n.cid,i=e._Ctor||(e._Ctor={});if(i[r])return i[r];var o=e.name||n.options.name,a=function(e){this._init(e)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=t++,a.options=Ne(n.options,e),a.super=n,a.options.props&&function(e){var t=e.options.props;for(var n in t)fn(e.prototype,"_props",n)}(a),a.options.computed&&function(e){var t=e.options.computed;for(var n in t)vn(e.prototype,n,t[n])}(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,I.forEach(function(e){a[e]=n[e]}),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=k({},a.options),i[r]=a,a}}function wn(e){return e&&(e.Ctor.options.name||e.tag)}function xn(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:(n=e,"[object RegExp]"===a.call(n)&&e.test(t));var n}function Cn(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=wn(a.componentOptions);s&&!t(s)&&An(n,o,r,i)}}}function An(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,h(n,t)}!function(t){t.prototype._init=function(t){var n=this;n._uid=gn++,n._isVue=!0,t&&t._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(n,t):n.$options=Ne(_n(n.constructor),t||{},n),n._renderProxy=n,n._self=n,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(n),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Jt(e,t)}(n),function(t){t._vnode=null,t._staticTrees=null;var n=t.$options,r=t.$vnode=n._parentVnode,i=r&&r.context;t.$slots=ct(n._renderChildren,i),t.$scopedSlots=e,t._c=function(e,n,r,i){return Pt(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return Pt(t,e,n,r,i,!0)};var o=r&&r.data;xe(t,"$attrs",o&&o.attrs||e,null,!0),xe(t,"$listeners",n._parentListeners||e,null,!0)}(n),Xt(n,"beforeCreate"),function(e){var t=st(e.$options.inject,e);t&&(be(!1),Object.keys(t).forEach(function(n){xe(e,n,t[n])}),be(!0))}(n),pn(n),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(n),Xt(n,"created"),n.$options.el&&n.$mount(n.$options.el)}}(bn),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=Ce,e.prototype.$delete=Ae,e.prototype.$watch=function(e,t,n){if(s(t))return yn(this,e,t,n);(n=n||{}).user=!0;var r=new un(this,e,t,n);if(n.immediate)try{t.call(this,r.value)}catch(e){Re(e,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(bn),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,o=e.length;i<o;i++)r.$on(e[i],n);else(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){var n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,t){var n=this;if(!arguments.length)return n._events=Object.create(null),n;if(Array.isArray(e)){for(var r=0,i=e.length;r<i;r++)n.$off(e[r],t);return n}var o,a=n._events[e];if(!a)return n;if(!t)return n._events[e]=null,n;for(var s=a.length;s--;)if((o=a[s])===t||o.fn===t){a.splice(s,1);break}return n},e.prototype.$emit=function(e){var t=this._events[e];if(t){t=t.length>1?A(t):t;for(var n=A(arguments,1),r='event handler for "'+e+'"',i=0,o=t.length;i<o;i++)Fe(t[i],this,n,this,r)}return this}}(bn),function(e){e.prototype._update=function(e,t){var n=this,r=n.$el,i=n._vnode,o=Wt(n);n._vnode=e,n.$el=i?n.__patch__(i,e):n.__patch__(n.$el,e,t,!1),o(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n),n.$vnode&&n.$parent&&n.$vnode===n.$parent._vnode&&(n.$parent.$el=n.$el)},e.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},e.prototype.$destroy=function(){var e=this;if(!e._isBeingDestroyed){Xt(e,"beforeDestroy"),e._isBeingDestroyed=!0;var t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||h(t.$children,e),e._watcher&&e._watcher.teardown();for(var n=e._watchers.length;n--;)e._watchers[n].teardown();e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Xt(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}}(bn),function(e){Ot(e.prototype),e.prototype.$nextTick=function(e){return Xe(e,this)},e.prototype._render=function(){var e,t=this,n=t.$options,r=n.render,i=n._parentVnode;i&&(t.$scopedSlots=lt(i.data.scopedSlots,t.$slots,t.$scopedSlots)),t.$vnode=i;try{Ft=t,e=r.call(t._renderProxy,t.$createElement)}catch(n){Re(n,t,"render"),e=t._vnode}finally{Ft=null}return Array.isArray(e)&&1===e.length&&(e=e[0]),e instanceof fe||(e=de()),e.parent=i,e}}(bn);var kn=[String,RegExp,Array],On={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:kn,exclude:kn,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var e in this.cache)An(this.cache,e,this.keys)},mounted:function(){var e=this;this.$watch("include",function(t){Cn(e,function(e){return xn(t,e)})}),this.$watch("exclude",function(t){Cn(e,function(e){return!xn(t,e)})})},render:function(){var e=this.$slots.default,t=Ut(e),n=t&&t.componentOptions;if(n){var r=wn(n),i=this.include,o=this.exclude;if(i&&(!r||!xn(i,r))||o&&r&&xn(o,r))return t;var a=this.cache,s=this.keys,c=null==t.key?n.Ctor.cid+(n.tag?"::"+n.tag:""):t.key;a[c]?(t.componentInstance=a[c].componentInstance,h(s,c),s.push(c)):(a[c]=t,s.push(c),this.max&&s.length>parseInt(this.max)&&An(a,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return P}};Object.defineProperty(e,"config",t),e.util={warn:oe,extend:k,mergeOptions:Ne,defineReactive:xe},e.set=Ce,e.delete=Ae,e.nextTick=Xe,e.observable=function(e){return we(e),e},e.options=Object.create(null),I.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,k(e.options.components,On),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=A(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Ne(this.options,e),this}}(e),$n(e),function(e){I.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&s(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}(e)}(bn),Object.defineProperty(bn.prototype,"$isServer",{get:ee}),Object.defineProperty(bn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(bn,"FunctionalRenderContext",{value:St}),bn.version="2.6.6";var Sn=p("style,class"),Tn=p("input,textarea,option,select,progress"),En=function(e,t,n){return"value"===n&&Tn(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},jn=p("contenteditable,draggable,spellcheck"),Nn=p("events,caret,typing,plaintext-only"),Ln=function(e,t){return Rn(t)||"false"===t?"false":"contenteditable"===e&&Nn(t)?t:"true"},Mn=p("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),In="http://www.w3.org/1999/xlink",Dn=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Pn=function(e){return Dn(e)?e.slice(6,e.length):""},Rn=function(e){return null==e||!1===e};function Fn(e){for(var t=e.data,r=e,i=e;n(i.componentInstance);)(i=i.componentInstance._vnode)&&i.data&&(t=Hn(i.data,t));for(;n(r=r.parent);)r&&r.data&&(t=Hn(t,r.data));return function(e,t){if(n(e)||n(t))return Bn(e,Un(t));return""}(t.staticClass,t.class)}function Hn(e,t){return{staticClass:Bn(e.staticClass,t.staticClass),class:n(e.class)?[e.class,t.class]:t.class}}function Bn(e,t){return e?t?e+" "+t:e:t||""}function Un(e){return Array.isArray(e)?function(e){for(var t,r="",i=0,o=e.length;i<o;i++)n(t=Un(e[i]))&&""!==t&&(r&&(r+=" "),r+=t);return r}(e):o(e)?function(e){var t="";for(var n in e)e[n]&&(t&&(t+=" "),t+=n);return t}(e):"string"==typeof e?e:""}var zn={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Vn=p("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Kn=p("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Jn=function(e){return Vn(e)||Kn(e)};function qn(e){return Kn(e)?"svg":"math"===e?"math":void 0}var Wn=Object.create(null);var Zn=p("text,number,password,search,email,tel,url");function Gn(e){if("string"==typeof e){var t=document.querySelector(e);return t||document.createElement("div")}return e}var Xn=Object.freeze({createElement:function(e,t){var n=document.createElement(e);return"select"!==e?n:(t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n)},createElementNS:function(e,t){return document.createElementNS(zn[e],t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},setStyleScope:function(e,t){e.setAttribute(t,"")}}),Yn={create:function(e,t){Qn(t)},update:function(e,t){e.data.ref!==t.data.ref&&(Qn(e,!0),Qn(t))},destroy:function(e){Qn(e,!0)}};function Qn(e,t){var r=e.data.ref;if(n(r)){var i=e.context,o=e.componentInstance||e.elm,a=i.$refs;t?Array.isArray(a[r])?h(a[r],o):a[r]===o&&(a[r]=void 0):e.data.refInFor?Array.isArray(a[r])?a[r].indexOf(o)<0&&a[r].push(o):a[r]=[o]:a[r]=o}}var er=new fe("",{},[]),tr=["create","activate","update","remove","destroy"];function nr(e,i){return e.key===i.key&&(e.tag===i.tag&&e.isComment===i.isComment&&n(e.data)===n(i.data)&&function(e,t){if("input"!==e.tag)return!0;var r,i=n(r=e.data)&&n(r=r.attrs)&&r.type,o=n(r=t.data)&&n(r=r.attrs)&&r.type;return i===o||Zn(i)&&Zn(o)}(e,i)||r(e.isAsyncPlaceholder)&&e.asyncFactory===i.asyncFactory&&t(i.asyncFactory.error))}function rr(e,t,r){var i,o,a={};for(i=t;i<=r;++i)n(o=e[i].key)&&(a[o]=i);return a}var ir={create:or,update:or,destroy:function(e){or(e,er)}};function or(e,t){(e.data.directives||t.data.directives)&&function(e,t){var n,r,i,o=e===er,a=t===er,s=sr(e.data.directives,e.context),c=sr(t.data.directives,t.context),u=[],l=[];for(n in c)r=s[n],i=c[n],r?(i.oldValue=r.value,i.oldArg=r.arg,ur(i,"update",t,e),i.def&&i.def.componentUpdated&&l.push(i)):(ur(i,"bind",t,e),i.def&&i.def.inserted&&u.push(i));if(u.length){var f=function(){for(var n=0;n<u.length;n++)ur(u[n],"inserted",t,e)};o?rt(t,"insert",f):f()}l.length&&rt(t,"postpatch",function(){for(var n=0;n<l.length;n++)ur(l[n],"componentUpdated",t,e)});if(!o)for(n in s)c[n]||ur(s[n],"unbind",e,e,a)}(e,t)}var ar=Object.create(null);function sr(e,t){var n,r,i=Object.create(null);if(!e)return i;for(n=0;n<e.length;n++)(r=e[n]).modifiers||(r.modifiers=ar),i[cr(r)]=r,r.def=Le(t.$options,"directives",r.name);return i}function cr(e){return e.rawName||e.name+"."+Object.keys(e.modifiers||{}).join(".")}function ur(e,t,n,r,i){var o=e.def&&e.def[t];if(o)try{o(n.elm,e,n,r,i)}catch(r){Re(r,n.context,"directive "+e.name+" "+t+" hook")}}var lr=[Yn,ir];function fr(e,r){var i=r.componentOptions;if(!(n(i)&&!1===i.Ctor.options.inheritAttrs||t(e.data.attrs)&&t(r.data.attrs))){var o,a,s=r.elm,c=e.data.attrs||{},u=r.data.attrs||{};for(o in n(u.__ob__)&&(u=r.data.attrs=k({},u)),u)a=u[o],c[o]!==a&&pr(s,o,a);for(o in(J||W)&&u.value!==c.value&&pr(s,"value",u.value),c)t(u[o])&&(Dn(o)?s.removeAttributeNS(In,Pn(o)):jn(o)||s.removeAttribute(o))}}function pr(e,t,n){e.tagName.indexOf("-")>-1?dr(e,t,n):Mn(t)?Rn(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):jn(t)?e.setAttribute(t,Ln(t,n)):Dn(t)?Rn(n)?e.removeAttributeNS(In,Pn(t)):e.setAttributeNS(In,t,n):dr(e,t,n)}function dr(e,t,n){if(Rn(n))e.removeAttribute(t);else{if(J&&!q&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var vr={create:fr,update:fr};function hr(e,r){var i=r.elm,o=r.data,a=e.data;if(!(t(o.staticClass)&&t(o.class)&&(t(a)||t(a.staticClass)&&t(a.class)))){var s=Fn(r),c=i._transitionClasses;n(c)&&(s=Bn(s,Un(c))),s!==i._prevClass&&(i.setAttribute("class",s),i._prevClass=s)}}var mr,yr,gr,_r,br,$r,wr={create:hr,update:hr},xr=/[\w).+\-_$\]]/;function Cr(e){var t,n,r,i,o,a=!1,s=!1,c=!1,u=!1,l=0,f=0,p=0,d=0;for(r=0;r<e.length;r++)if(n=t,t=e.charCodeAt(r),a)39===t&&92!==n&&(a=!1);else if(s)34===t&&92!==n&&(s=!1);else if(c)96===t&&92!==n&&(c=!1);else if(u)47===t&&92!==n&&(u=!1);else if(124!==t||124===e.charCodeAt(r+1)||124===e.charCodeAt(r-1)||l||f||p){switch(t){case 34:s=!0;break;case 39:a=!0;break;case 96:c=!0;break;case 40:p++;break;case 41:p--;break;case 91:f++;break;case 93:f--;break;case 123:l++;break;case 125:l--}if(47===t){for(var v=r-1,h=void 0;v>=0&&" "===(h=e.charAt(v));v--);h&&xr.test(h)||(u=!0)}}else void 0===i?(d=r+1,i=e.slice(0,r).trim()):m();function m(){(o||(o=[])).push(e.slice(d,r).trim()),d=r+1}if(void 0===i?i=e.slice(0,r).trim():0!==d&&m(),o)for(r=0;r<o.length;r++)i=Ar(i,o[r]);return i}function Ar(e,t){var n=t.indexOf("(");if(n<0)return'_f("'+t+'")('+e+")";var r=t.slice(0,n),i=t.slice(n+1);return'_f("'+r+'")('+e+(")"!==i?","+i:i)}function kr(e,t){console.error("[Vue compiler]: "+e)}function Or(e,t){return e?e.map(function(e){return e[t]}).filter(function(e){return e}):[]}function Sr(e,t,n,r,i){(e.props||(e.props=[])).push(Pr({name:t,value:n,dynamic:i},r)),e.plain=!1}function Tr(e,t,n,r,i){(i?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[])).push(Pr({name:t,value:n,dynamic:i},r)),e.plain=!1}function Er(e,t,n,r){e.attrsMap[t]=n,e.attrsList.push(Pr({name:t,value:n},r))}function jr(e,t,n,r,i,o,a,s){(e.directives||(e.directives=[])).push(Pr({name:t,rawName:n,value:r,arg:i,isDynamicArg:o,modifiers:a},s)),e.plain=!1}function Nr(e,t,n){return n?"_p("+t+',"'+e+'")':e+t}function Lr(t,n,r,i,o,a,s,c){var u;(i=i||e).right?c?n="("+n+")==='click'?'contextmenu':("+n+")":"click"===n&&(n="contextmenu",delete i.right):i.middle&&(c?n="("+n+")==='click'?'mouseup':("+n+")":"click"===n&&(n="mouseup")),i.capture&&(delete i.capture,n=Nr("!",n,c)),i.once&&(delete i.once,n=Nr("~",n,c)),i.passive&&(delete i.passive,n=Nr("&",n,c)),i.native?(delete i.native,u=t.nativeEvents||(t.nativeEvents={})):u=t.events||(t.events={});var l=Pr({value:r.trim(),dynamic:c},s);i!==e&&(l.modifiers=i);var f=u[n];Array.isArray(f)?o?f.unshift(l):f.push(l):u[n]=f?o?[l,f]:[f,l]:l,t.plain=!1}function Mr(e,t,n){var r=Ir(e,":"+t)||Ir(e,"v-bind:"+t);if(null!=r)return Cr(r);if(!1!==n){var i=Ir(e,t);if(null!=i)return JSON.stringify(i)}}function Ir(e,t,n){var r;if(null!=(r=e.attrsMap[t]))for(var i=e.attrsList,o=0,a=i.length;o<a;o++)if(i[o].name===t){i.splice(o,1);break}return n&&delete e.attrsMap[t],r}function Dr(e,t){for(var n=e.attrsList,r=0,i=n.length;r<i;r++){var o=n[r];if(t.test(o.name))return n.splice(r,1),o}}function Pr(e,t){return t&&(null!=t.start&&(e.start=t.start),null!=t.end&&(e.end=t.end)),e}function Rr(e,t,n){var r=n||{},i=r.number,o="$$v";r.trim&&(o="(typeof $$v === 'string'? $$v.trim(): $$v)"),i&&(o="_n("+o+")");var a=Fr(t,o);e.model={value:"("+t+")",expression:JSON.stringify(t),callback:"function ($$v) {"+a+"}"}}function Fr(e,t){var n=function(e){if(e=e.trim(),mr=e.length,e.indexOf("[")<0||e.lastIndexOf("]")<mr-1)return(_r=e.lastIndexOf("."))>-1?{exp:e.slice(0,_r),key:'"'+e.slice(_r+1)+'"'}:{exp:e,key:null};yr=e,_r=br=$r=0;for(;!Br();)Ur(gr=Hr())?Vr(gr):91===gr&&zr(gr);return{exp:e.slice(0,br),key:e.slice(br+1,$r)}}(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function Hr(){return yr.charCodeAt(++_r)}function Br(){return _r>=mr}function Ur(e){return 34===e||39===e}function zr(e){var t=1;for(br=_r;!Br();)if(Ur(e=Hr()))Vr(e);else if(91===e&&t++,93===e&&t--,0===t){$r=_r;break}}function Vr(e){for(var t=e;!Br()&&(e=Hr())!==t;);}var Kr,Jr="__r",qr="__c";function Wr(e,t,n){var r=Kr;return function i(){null!==t.apply(null,arguments)&&Xr(e,i,n,r)}}var Zr=ze&&!(G&&Number(G[1])<=53);function Gr(e,t,n,r){if(Zr){var i=on,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||0===e.timeStamp||e.target.ownerDocument!==document)return o.apply(this,arguments)}}Kr.addEventListener(e,t,Y?{capture:n,passive:r}:n)}function Xr(e,t,n,r){(r||Kr).removeEventListener(e,t._wrapper||t,n)}function Yr(e,r){if(!t(e.data.on)||!t(r.data.on)){var i=r.data.on||{},o=e.data.on||{};Kr=r.elm,function(e){if(n(e[Jr])){var t=J?"change":"input";e[t]=[].concat(e[Jr],e[t]||[]),delete e[Jr]}n(e[qr])&&(e.change=[].concat(e[qr],e.change||[]),delete e[qr])}(i),nt(i,o,Gr,Xr,Wr,r.context),Kr=void 0}}var Qr,ei={create:Yr,update:Yr};function ti(e,r){if(!t(e.data.domProps)||!t(r.data.domProps)){var i,o,a=r.elm,s=e.data.domProps||{},c=r.data.domProps||{};for(i in n(c.__ob__)&&(c=r.data.domProps=k({},c)),s)t(c[i])&&(a[i]="");for(i in c){if(o=c[i],"textContent"===i||"innerHTML"===i){if(r.children&&(r.children.length=0),o===s[i])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===i||o!==s[i])if("value"===i){a._value=o;var u=t(o)?"":String(o);ni(a,u)&&(a.value=u)}else if("innerHTML"===i&&Kn(a.tagName)&&t(a.innerHTML)){(Qr=Qr||document.createElement("div")).innerHTML="<svg>"+o+"</svg>";for(var l=Qr.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;l.firstChild;)a.appendChild(l.firstChild)}else a[i]=o}}}function ni(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var r=e.value,i=e._vModifiers;if(n(i)){if(i.number)return f(r)!==f(t);if(i.trim)return r.trim()!==t.trim()}return r!==t}(e,t))}var ri={create:ti,update:ti},ii=g(function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t});function oi(e){var t=ai(e.style);return e.staticStyle?k(e.staticStyle,t):t}function ai(e){return Array.isArray(e)?O(e):"string"==typeof e?ii(e):e}var si,ci=/^--/,ui=/\s*!important$/,li=function(e,t,n){if(ci.test(t))e.style.setProperty(t,n);else if(ui.test(n))e.style.setProperty(x(t),n.replace(ui,""),"important");else{var r=pi(t);if(Array.isArray(n))for(var i=0,o=n.length;i<o;i++)e.style[r]=n[i];else e.style[r]=n}},fi=["Webkit","Moz","ms"],pi=g(function(e){if(si=si||document.createElement("div").style,"filter"!==(e=b(e))&&e in si)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<fi.length;n++){var r=fi[n]+t;if(r in si)return r}});function di(e,r){var i=r.data,o=e.data;if(!(t(i.staticStyle)&&t(i.style)&&t(o.staticStyle)&&t(o.style))){var a,s,c=r.elm,u=o.staticStyle,l=o.normalizedStyle||o.style||{},f=u||l,p=ai(r.data.style)||{};r.data.normalizedStyle=n(p.__ob__)?k({},p):p;var d=function(e,t){var n,r={};if(t)for(var i=e;i.componentInstance;)(i=i.componentInstance._vnode)&&i.data&&(n=oi(i.data))&&k(r,n);(n=oi(e.data))&&k(r,n);for(var o=e;o=o.parent;)o.data&&(n=oi(o.data))&&k(r,n);return r}(r,!0);for(s in f)t(d[s])&&li(c,s,"");for(s in d)(a=d[s])!==f[s]&&li(c,s,null==a?"":a)}}var vi={create:di,update:di},hi=/\s+/;function mi(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(hi).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function yi(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(hi).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function gi(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&k(t,_i(e.name||"v")),k(t,e),t}return"string"==typeof e?_i(e):void 0}}var _i=g(function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}}),bi=U&&!q,$i="transition",wi="animation",xi="transition",Ci="transitionend",Ai="animation",ki="animationend";bi&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(xi="WebkitTransition",Ci="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Ai="WebkitAnimation",ki="webkitAnimationEnd"));var Oi=U?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Si(e){Oi(function(){Oi(e)})}function Ti(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),mi(e,t))}function Ei(e,t){e._transitionClasses&&h(e._transitionClasses,t),yi(e,t)}function ji(e,t,n){var r=Li(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===$i?Ci:ki,c=0,u=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++c>=a&&u()};setTimeout(function(){c<a&&u()},o+1),e.addEventListener(s,l)}var Ni=/\b(transform|all)(,|$)/;function Li(e,t){var n,r=window.getComputedStyle(e),i=(r[xi+"Delay"]||"").split(", "),o=(r[xi+"Duration"]||"").split(", "),a=Mi(i,o),s=(r[Ai+"Delay"]||"").split(", "),c=(r[Ai+"Duration"]||"").split(", "),u=Mi(s,c),l=0,f=0;return t===$i?a>0&&(n=$i,l=a,f=o.length):t===wi?u>0&&(n=wi,l=u,f=c.length):f=(n=(l=Math.max(a,u))>0?a>u?$i:wi:null)?n===$i?o.length:c.length:0,{type:n,timeout:l,propCount:f,hasTransform:n===$i&&Ni.test(r[xi+"Property"])}}function Mi(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max.apply(null,t.map(function(t,n){return Ii(t)+Ii(e[n])}))}function Ii(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function Di(e,r){var i=e.elm;n(i._leaveCb)&&(i._leaveCb.cancelled=!0,i._leaveCb());var a=gi(e.data.transition);if(!t(a)&&!n(i._enterCb)&&1===i.nodeType){for(var s=a.css,c=a.type,u=a.enterClass,l=a.enterToClass,p=a.enterActiveClass,d=a.appearClass,v=a.appearToClass,h=a.appearActiveClass,m=a.beforeEnter,y=a.enter,g=a.afterEnter,_=a.enterCancelled,b=a.beforeAppear,$=a.appear,w=a.afterAppear,x=a.appearCancelled,C=a.duration,A=qt,k=qt.$vnode;k&&k.parent;)A=(k=k.parent).context;var O=!A._isMounted||!e.isRootInsert;if(!O||$||""===$){var S=O&&d?d:u,T=O&&h?h:p,E=O&&v?v:l,j=O&&b||m,N=O&&"function"==typeof $?$:y,M=O&&w||g,I=O&&x||_,D=f(o(C)?C.enter:C),P=!1!==s&&!q,R=Fi(N),F=i._enterCb=L(function(){P&&(Ei(i,E),Ei(i,T)),F.cancelled?(P&&Ei(i,S),I&&I(i)):M&&M(i),i._enterCb=null});e.data.show||rt(e,"insert",function(){var t=i.parentNode,n=t&&t._pending&&t._pending[e.key];n&&n.tag===e.tag&&n.elm._leaveCb&&n.elm._leaveCb(),N&&N(i,F)}),j&&j(i),P&&(Ti(i,S),Ti(i,T),Si(function(){Ei(i,S),F.cancelled||(Ti(i,E),R||(Ri(D)?setTimeout(F,D):ji(i,c,F)))})),e.data.show&&(r&&r(),N&&N(i,F)),P||R||F()}}}function Pi(e,r){var i=e.elm;n(i._enterCb)&&(i._enterCb.cancelled=!0,i._enterCb());var a=gi(e.data.transition);if(t(a)||1!==i.nodeType)return r();if(!n(i._leaveCb)){var s=a.css,c=a.type,u=a.leaveClass,l=a.leaveToClass,p=a.leaveActiveClass,d=a.beforeLeave,v=a.leave,h=a.afterLeave,m=a.leaveCancelled,y=a.delayLeave,g=a.duration,_=!1!==s&&!q,b=Fi(v),$=f(o(g)?g.leave:g),w=i._leaveCb=L(function(){i.parentNode&&i.parentNode._pending&&(i.parentNode._pending[e.key]=null),_&&(Ei(i,l),Ei(i,p)),w.cancelled?(_&&Ei(i,u),m&&m(i)):(r(),h&&h(i)),i._leaveCb=null});y?y(x):x()}function x(){w.cancelled||(!e.data.show&&i.parentNode&&((i.parentNode._pending||(i.parentNode._pending={}))[e.key]=e),d&&d(i),_&&(Ti(i,u),Ti(i,p),Si(function(){Ei(i,u),w.cancelled||(Ti(i,l),b||(Ri($)?setTimeout(w,$):ji(i,c,w)))})),v&&v(i,w),_||b||w())}}function Ri(e){return"number"==typeof e&&!isNaN(e)}function Fi(e){if(t(e))return!1;var r=e.fns;return n(r)?Fi(Array.isArray(r)?r[0]:r):(e._length||e.length)>1}function Hi(e,t){!0!==t.data.show&&Di(t)}var Bi=function(e){var o,a,s={},c=e.modules,u=e.nodeOps;for(o=0;o<tr.length;++o)for(s[tr[o]]=[],a=0;a<c.length;++a)n(c[a][tr[o]])&&s[tr[o]].push(c[a][tr[o]]);function l(e){var t=u.parentNode(e);n(t)&&u.removeChild(t,e)}function f(e,t,i,o,a,c,l){if(n(e.elm)&&n(c)&&(e=c[l]=he(e)),e.isRootInsert=!a,!function(e,t,i,o){var a=e.data;if(n(a)){var c=n(e.componentInstance)&&a.keepAlive;if(n(a=a.hook)&&n(a=a.init)&&a(e,!1),n(e.componentInstance))return d(e,t),v(i,e.elm,o),r(c)&&function(e,t,r,i){for(var o,a=e;a.componentInstance;)if(a=a.componentInstance._vnode,n(o=a.data)&&n(o=o.transition)){for(o=0;o<s.activate.length;++o)s.activate[o](er,a);t.push(a);break}v(r,e.elm,i)}(e,t,i,o),!0}}(e,t,i,o)){var f=e.data,p=e.children,m=e.tag;n(m)?(e.elm=e.ns?u.createElementNS(e.ns,m):u.createElement(m,e),g(e),h(e,p,t),n(f)&&y(e,t),v(i,e.elm,o)):r(e.isComment)?(e.elm=u.createComment(e.text),v(i,e.elm,o)):(e.elm=u.createTextNode(e.text),v(i,e.elm,o))}}function d(e,t){n(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,m(e)?(y(e,t),g(e)):(Qn(e),t.push(e))}function v(e,t,r){n(e)&&(n(r)?u.parentNode(r)===e&&u.insertBefore(e,t,r):u.appendChild(e,t))}function h(e,t,n){if(Array.isArray(t))for(var r=0;r<t.length;++r)f(t[r],n,e.elm,null,!0,t,r);else i(e.text)&&u.appendChild(e.elm,u.createTextNode(String(e.text)))}function m(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return n(e.tag)}function y(e,t){for(var r=0;r<s.create.length;++r)s.create[r](er,e);n(o=e.data.hook)&&(n(o.create)&&o.create(er,e),n(o.insert)&&t.push(e))}function g(e){var t;if(n(t=e.fnScopeId))u.setStyleScope(e.elm,t);else for(var r=e;r;)n(t=r.context)&&n(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t),r=r.parent;n(t=qt)&&t!==e.context&&t!==e.fnContext&&n(t=t.$options._scopeId)&&u.setStyleScope(e.elm,t)}function _(e,t,n,r,i,o){for(;r<=i;++r)f(n[r],o,e,t,!1,n,r)}function b(e){var t,r,i=e.data;if(n(i))for(n(t=i.hook)&&n(t=t.destroy)&&t(e),t=0;t<s.destroy.length;++t)s.destroy[t](e);if(n(t=e.children))for(r=0;r<e.children.length;++r)b(e.children[r])}function $(e,t,r,i){for(;r<=i;++r){var o=t[r];n(o)&&(n(o.tag)?(w(o),b(o)):l(o.elm))}}function w(e,t){if(n(t)||n(e.data)){var r,i=s.remove.length+1;for(n(t)?t.listeners+=i:t=function(e,t){function n(){0==--n.listeners&&l(e)}return n.listeners=t,n}(e.elm,i),n(r=e.componentInstance)&&n(r=r._vnode)&&n(r.data)&&w(r,t),r=0;r<s.remove.length;++r)s.remove[r](e,t);n(r=e.data.hook)&&n(r=r.remove)?r(e,t):t()}else l(e.elm)}function x(e,t,r,i){for(var o=r;o<i;o++){var a=t[o];if(n(a)&&nr(e,a))return o}}function C(e,i,o,a,c,l){if(e!==i){n(i.elm)&&n(a)&&(i=a[c]=he(i));var p=i.elm=e.elm;if(r(e.isAsyncPlaceholder))n(i.asyncFactory.resolved)?O(e.elm,i,o):i.isAsyncPlaceholder=!0;else if(r(i.isStatic)&&r(e.isStatic)&&i.key===e.key&&(r(i.isCloned)||r(i.isOnce)))i.componentInstance=e.componentInstance;else{var d,v=i.data;n(v)&&n(d=v.hook)&&n(d=d.prepatch)&&d(e,i);var h=e.children,y=i.children;if(n(v)&&m(i)){for(d=0;d<s.update.length;++d)s.update[d](e,i);n(d=v.hook)&&n(d=d.update)&&d(e,i)}t(i.text)?n(h)&&n(y)?h!==y&&function(e,r,i,o,a){for(var s,c,l,p=0,d=0,v=r.length-1,h=r[0],m=r[v],y=i.length-1,g=i[0],b=i[y],w=!a;p<=v&&d<=y;)t(h)?h=r[++p]:t(m)?m=r[--v]:nr(h,g)?(C(h,g,o,i,d),h=r[++p],g=i[++d]):nr(m,b)?(C(m,b,o,i,y),m=r[--v],b=i[--y]):nr(h,b)?(C(h,b,o,i,y),w&&u.insertBefore(e,h.elm,u.nextSibling(m.elm)),h=r[++p],b=i[--y]):nr(m,g)?(C(m,g,o,i,d),w&&u.insertBefore(e,m.elm,h.elm),m=r[--v],g=i[++d]):(t(s)&&(s=rr(r,p,v)),t(c=n(g.key)?s[g.key]:x(g,r,p,v))?f(g,o,e,h.elm,!1,i,d):nr(l=r[c],g)?(C(l,g,o,i,d),r[c]=void 0,w&&u.insertBefore(e,l.elm,h.elm)):f(g,o,e,h.elm,!1,i,d),g=i[++d]);p>v?_(e,t(i[y+1])?null:i[y+1].elm,i,d,y,o):d>y&&$(0,r,p,v)}(p,h,y,o,l):n(y)?(n(e.text)&&u.setTextContent(p,""),_(p,null,y,0,y.length-1,o)):n(h)?$(0,h,0,h.length-1):n(e.text)&&u.setTextContent(p,""):e.text!==i.text&&u.setTextContent(p,i.text),n(v)&&n(d=v.hook)&&n(d=d.postpatch)&&d(e,i)}}}function A(e,t,i){if(r(i)&&n(e.parent))e.parent.data.pendingInsert=t;else for(var o=0;o<t.length;++o)t[o].data.hook.insert(t[o])}var k=p("attrs,class,staticClass,staticStyle,key");function O(e,t,i,o){var a,s=t.tag,c=t.data,u=t.children;if(o=o||c&&c.pre,t.elm=e,r(t.isComment)&&n(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(n(c)&&(n(a=c.hook)&&n(a=a.init)&&a(t,!0),n(a=t.componentInstance)))return d(t,i),!0;if(n(s)){if(n(u))if(e.hasChildNodes())if(n(a=c)&&n(a=a.domProps)&&n(a=a.innerHTML)){if(a!==e.innerHTML)return!1}else{for(var l=!0,f=e.firstChild,p=0;p<u.length;p++){if(!f||!O(f,u[p],i,o)){l=!1;break}f=f.nextSibling}if(!l||f)return!1}else h(t,u,i);if(n(c)){var v=!1;for(var m in c)if(!k(m)){v=!0,y(t,i);break}!v&&c.class&&Qe(c.class)}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,i,o,a){if(!t(i)){var c,l=!1,p=[];if(t(e))l=!0,f(i,p);else{var d=n(e.nodeType);if(!d&&nr(e,i))C(e,i,p,null,null,a);else{if(d){if(1===e.nodeType&&e.hasAttribute(M)&&(e.removeAttribute(M),o=!0),r(o)&&O(e,i,p))return A(i,p,!0),e;c=e,e=new fe(u.tagName(c).toLowerCase(),{},[],void 0,c)}var v=e.elm,h=u.parentNode(v);if(f(i,p,v._leaveCb?null:h,u.nextSibling(v)),n(i.parent))for(var y=i.parent,g=m(i);y;){for(var _=0;_<s.destroy.length;++_)s.destroy[_](y);if(y.elm=i.elm,g){for(var w=0;w<s.create.length;++w)s.create[w](er,y);var x=y.data.hook.insert;if(x.merged)for(var k=1;k<x.fns.length;k++)x.fns[k]()}else Qn(y);y=y.parent}n(h)?$(0,[e],0,0):n(e.tag)&&b(e)}}return A(i,p,l),i.elm}n(e)&&b(e)}}({nodeOps:Xn,modules:[vr,wr,ei,ri,vi,U?{create:Hi,activate:Hi,remove:function(e,t){!0!==e.data.show?Pi(e,t):t()}}:{}].concat(lr)});q&&document.addEventListener("selectionchange",function(){var e=document.activeElement;e&&e.vmodel&&Zi(e,"input")});var Ui={inserted:function(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?rt(n,"postpatch",function(){Ui.componentUpdated(e,t,n)}):zi(e,t,n.context),e._vOptions=[].map.call(e.options,Ji)):("textarea"===n.tag||Zn(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",qi),e.addEventListener("compositionend",Wi),e.addEventListener("change",Wi),q&&(e.vmodel=!0)))},componentUpdated:function(e,t,n){if("select"===n.tag){zi(e,t,n.context);var r=e._vOptions,i=e._vOptions=[].map.call(e.options,Ji);if(i.some(function(e,t){return!j(e,r[t])}))(e.multiple?t.value.some(function(e){return Ki(e,i)}):t.value!==t.oldValue&&Ki(t.value,i))&&Zi(e,"change")}}};function zi(e,t,n){Vi(e,t,n),(J||W)&&setTimeout(function(){Vi(e,t,n)},0)}function Vi(e,t,n){var r=t.value,i=e.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,c=e.options.length;s<c;s++)if(a=e.options[s],i)o=N(r,Ji(a))>-1,a.selected!==o&&(a.selected=o);else if(j(Ji(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function Ki(e,t){return t.every(function(t){return!j(t,e)})}function Ji(e){return"_value"in e?e._value:e.value}function qi(e){e.target.composing=!0}function Wi(e){e.target.composing&&(e.target.composing=!1,Zi(e.target,"input"))}function Zi(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Gi(e){return!e.componentInstance||e.data&&e.data.transition?e:Gi(e.componentInstance._vnode)}var Xi={model:Ui,show:{bind:function(e,t,n){var r=t.value,i=(n=Gi(n)).data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,Di(n,function(){e.style.display=o})):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=Gi(n)).data&&n.data.transition?(n.data.show=!0,r?Di(n,function(){e.style.display=e.__vOriginalDisplay}):Pi(n,function(){e.style.display="none"})):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}}},Yi={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Qi(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Qi(Ut(t.children)):e}function eo(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[b(o)]=i[o];return t}function to(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var no=function(e){return e.tag||Bt(e)},ro=function(e){return"show"===e.name},io={name:"transition",props:Yi,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(no)).length){var r=this.mode,o=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return o;var a=Qi(o);if(!a)return o;if(this._leaving)return to(e,o);var s="__transition-"+this._uid+"-";a.key=null==a.key?a.isComment?s+"comment":s+a.tag:i(a.key)?0===String(a.key).indexOf(s)?a.key:s+a.key:a.key;var c=(a.data||(a.data={})).transition=eo(this),u=this._vnode,l=Qi(u);if(a.data.directives&&a.data.directives.some(ro)&&(a.data.show=!0),l&&l.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(a,l)&&!Bt(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=k({},c);if("out-in"===r)return this._leaving=!0,rt(f,"afterLeave",function(){t._leaving=!1,t.$forceUpdate()}),to(e,o);if("in-out"===r){if(Bt(a))return u;var p,d=function(){p()};rt(c,"afterEnter",d),rt(c,"enterCancelled",d),rt(f,"delayLeave",function(e){p=e})}}return o}}},oo=k({tag:String,moveClass:String},Yi);function ao(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function so(e){e.data.newPos=e.elm.getBoundingClientRect()}function co(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}delete oo.mode;var uo={Transition:io,TransitionGroup:{props:oo,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=Wt(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=eo(this),s=0;s<i.length;s++){var c=i[s];c.tag&&null!=c.key&&0!==String(c.key).indexOf("__vlist")&&(o.push(c),n[c.key]=c,(c.data||(c.data={})).transition=a)}if(r){for(var u=[],l=[],f=0;f<r.length;f++){var p=r[f];p.data.transition=a,p.data.pos=p.elm.getBoundingClientRect(),n[p.key]?u.push(p):l.push(p)}this.kept=e(t,null,u),this.removed=l}return e(t,null,o)},updated:function(){var e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(ao),e.forEach(so),e.forEach(co),this._reflow=document.body.offsetHeight,e.forEach(function(e){if(e.data.moved){var n=e.elm,r=n.style;Ti(n,t),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(Ci,n._moveCb=function e(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(Ci,e),n._moveCb=null,Ei(n,t))})}}))},methods:{hasMove:function(e,t){if(!bi)return!1;if(this._hasMove)return this._hasMove;var n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach(function(e){yi(n,e)}),mi(n,t),n.style.display="none",this.$el.appendChild(n);var r=Li(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}}};bn.config.mustUseProp=En,bn.config.isReservedTag=Jn,bn.config.isReservedAttr=Sn,bn.config.getTagNamespace=qn,bn.config.isUnknownElement=function(e){if(!U)return!0;if(Jn(e))return!1;if(e=e.toLowerCase(),null!=Wn[e])return Wn[e];var t=document.createElement(e);return e.indexOf("-")>-1?Wn[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Wn[e]=/HTMLUnknownElement/.test(t.toString())},k(bn.options.directives,Xi),k(bn.options.components,uo),bn.prototype.__patch__=U?Bi:S,bn.prototype.$mount=function(e,t){return function(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=de),Xt(e,"beforeMount"),r=function(){e._update(e._render(),n)},new un(e,r,S,{before:function(){e._isMounted&&!e._isDestroyed&&Xt(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,Xt(e,"mounted")),e}(this,e=e&&U?Gn(e):void 0,t)},U&&setTimeout(function(){P.devtools&&te&&te.emit("init",bn)},0);var lo=/\{\{((?:.|\r?\n)+?)\}\}/g,fo=/[-.*+?^${}()|[\]\/\\]/g,po=g(function(e){var t=e[0].replace(fo,"\\$&"),n=e[1].replace(fo,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")});var vo={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=Ir(e,"class");n&&(e.staticClass=JSON.stringify(n));var r=Mr(e,"class",!1);r&&(e.classBinding=r)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}};var ho,mo={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=Ir(e,"style");n&&(e.staticStyle=JSON.stringify(ii(n)));var r=Mr(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},yo=function(e){return(ho=ho||document.createElement("div")).innerHTML=e,ho.textContent},go=p("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),_o=p("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),bo=p("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),$o=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,wo=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,xo="[a-zA-Z_][\\-\\.0-9_a-zA-Za-zA-Z\xb7\xc0-\xd6\xd8-\xf6\xf8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]*",Co="((?:"+xo+"\\:)?"+xo+")",Ao=new RegExp("^<"+Co),ko=/^\s*(\/?)>/,Oo=new RegExp("^<\\/"+Co+"[^>]*>"),So=/^<!DOCTYPE [^>]+>/i,To=/^<!\--/,Eo=/^<!\[/,jo=p("script,style,textarea",!0),No={},Lo={"&lt;":"<","&gt;":">","&quot;":'"',"&amp;":"&","&#10;":"\n","&#9;":"\t","&#39;":"'"},Mo=/&(?:lt|gt|quot|amp|#39);/g,Io=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Do=p("pre,textarea",!0),Po=function(e,t){return e&&Do(e)&&"\n"===t[0]};function Ro(e,t){var n=t?Io:Mo;return e.replace(n,function(e){return Lo[e]})}var Fo,Ho,Bo,Uo,zo,Vo,Ko,Jo,qo=/^@|^v-on:/,Wo=/^v-|^@|^:/,Zo=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Go=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Xo=/^\(|\)$/g,Yo=/^\[.*\]$/,Qo=/:(.*)$/,ea=/^:|^\.|^v-bind:/,ta=/\.[^.]+/g,na=/^v-slot(:|$)|^#/,ra=/[\r\n]/,ia=/\s+/g,oa=g(yo),aa="_empty_";function sa(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:va(t),rawAttrsMap:{},parent:n,children:[]}}function ca(e,t){Fo=t.warn||kr,Vo=t.isPreTag||T,Ko=t.mustUseProp||T,Jo=t.getTagNamespace||T;t.isReservedTag;Bo=Or(t.modules,"transformNode"),Uo=Or(t.modules,"preTransformNode"),zo=Or(t.modules,"postTransformNode"),Ho=t.delimiters;var n,r,i=[],o=!1!==t.preserveWhitespace,a=t.whitespace,s=!1,c=!1;function u(e){if(l(e),s||e.processed||(e=ua(e,t)),i.length||e===n||n.if&&(e.elseif||e.else)&&fa(n,{exp:e.elseif,block:e}),r&&!e.forbidden)if(e.elseif||e.else)a=e,(u=function(e){var t=e.length;for(;t--;){if(1===e[t].type)return e[t];e.pop()}}(r.children))&&u.if&&fa(u,{exp:a.elseif,block:a});else{if(e.slotScope){var o=e.slotTarget||'"default"';(r.scopedSlots||(r.scopedSlots={}))[o]=e}r.children.push(e),e.parent=r}var a,u;e.children=e.children.filter(function(e){return!e.slotScope}),l(e),e.pre&&(s=!1),Vo(e.tag)&&(c=!1);for(var f=0;f<zo.length;f++)zo[f](e,t)}function l(e){if(!c)for(var t;(t=e.children[e.children.length-1])&&3===t.type&&" "===t.text;)e.children.pop()}return function(e,t){for(var n,r,i=[],o=t.expectHTML,a=t.isUnaryTag||T,s=t.canBeLeftOpenTag||T,c=0;e;){if(n=e,r&&jo(r)){var u=0,l=r.toLowerCase(),f=No[l]||(No[l]=new RegExp("([\\s\\S]*?)(</"+l+"[^>]*>)","i")),p=e.replace(f,function(e,n,r){return u=r.length,jo(l)||"noscript"===l||(n=n.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),Po(l,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""});c+=e.length-p.length,e=p,k(l,c-u,c)}else{var d=e.indexOf("<");if(0===d){if(To.test(e)){var v=e.indexOf("--\x3e");if(v>=0){t.shouldKeepComment&&t.comment(e.substring(4,v),c,c+v+3),x(v+3);continue}}if(Eo.test(e)){var h=e.indexOf("]>");if(h>=0){x(h+2);continue}}var m=e.match(So);if(m){x(m[0].length);continue}var y=e.match(Oo);if(y){var g=c;x(y[0].length),k(y[1],g,c);continue}var _=C();if(_){A(_),Po(_.tagName,e)&&x(1);continue}}var b=void 0,$=void 0,w=void 0;if(d>=0){for($=e.slice(d);!(Oo.test($)||Ao.test($)||To.test($)||Eo.test($)||(w=$.indexOf("<",1))<0);)d+=w,$=e.slice(d);b=e.substring(0,d)}d<0&&(b=e),b&&x(b.length),t.chars&&b&&t.chars(b,c-b.length,c)}if(e===n){t.chars&&t.chars(e);break}}function x(t){c+=t,e=e.substring(t)}function C(){var t=e.match(Ao);if(t){var n,r,i={tagName:t[1],attrs:[],start:c};for(x(t[0].length);!(n=e.match(ko))&&(r=e.match(wo)||e.match($o));)r.start=c,x(r[0].length),r.end=c,i.attrs.push(r);if(n)return i.unarySlash=n[1],x(n[0].length),i.end=c,i}}function A(e){var n=e.tagName,c=e.unarySlash;o&&("p"===r&&bo(n)&&k(r),s(n)&&r===n&&k(n));for(var u=a(n)||!!c,l=e.attrs.length,f=new Array(l),p=0;p<l;p++){var d=e.attrs[p],v=d[3]||d[4]||d[5]||"",h="a"===n&&"href"===d[1]?t.shouldDecodeNewlinesForHref:t.shouldDecodeNewlines;f[p]={name:d[1],value:Ro(v,h)}}u||(i.push({tag:n,lowerCasedTag:n.toLowerCase(),attrs:f,start:e.start,end:e.end}),r=n),t.start&&t.start(n,f,u,e.start,e.end)}function k(e,n,o){var a,s;if(null==n&&(n=c),null==o&&(o=c),e)for(s=e.toLowerCase(),a=i.length-1;a>=0&&i[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var u=i.length-1;u>=a;u--)t.end&&t.end(i[u].tag,n,o);i.length=a,r=a&&i[a-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,o):"p"===s&&(t.start&&t.start(e,[],!1,n,o),t.end&&t.end(e,n,o))}k()}(e,{warn:Fo,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,o,a,l){var f=r&&r.ns||Jo(e);J&&"svg"===f&&(o=function(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];ha.test(r.name)||(r.name=r.name.replace(ma,""),t.push(r))}return t}(o));var p,d=sa(e,o,r);f&&(d.ns=f),"style"!==(p=d).tag&&("script"!==p.tag||p.attrsMap.type&&"text/javascript"!==p.attrsMap.type)||ee()||(d.forbidden=!0);for(var v=0;v<Uo.length;v++)d=Uo[v](d,t)||d;s||(!function(e){null!=Ir(e,"v-pre")&&(e.pre=!0)}(d),d.pre&&(s=!0)),Vo(d.tag)&&(c=!0),s?function(e){var t=e.attrsList,n=t.length;if(n)for(var r=e.attrs=new Array(n),i=0;i<n;i++)r[i]={name:t[i].name,value:JSON.stringify(t[i].value)},null!=t[i].start&&(r[i].start=t[i].start,r[i].end=t[i].end);else e.pre||(e.plain=!0)}(d):d.processed||(la(d),function(e){var t=Ir(e,"v-if");if(t)e.if=t,fa(e,{exp:t,block:e});else{null!=Ir(e,"v-else")&&(e.else=!0);var n=Ir(e,"v-else-if");n&&(e.elseif=n)}}(d),function(e){null!=Ir(e,"v-once")&&(e.once=!0)}(d)),n||(n=d),a?u(d):(r=d,i.push(d))},end:function(e,t,n){var o=i[i.length-1];i.length-=1,r=i[i.length-1],u(o)},chars:function(e,t,n){if(r&&(!J||"textarea"!==r.tag||r.attrsMap.placeholder!==e)){var i,u,l,f=r.children;if(e=c||e.trim()?"script"===(i=r).tag||"style"===i.tag?e:oa(e):f.length?a?"condense"===a&&ra.test(e)?"":" ":o?" ":"":"")"condense"===a&&(e=e.replace(ia," ")),!s&&" "!==e&&(u=function(e,t){var n=t?po(t):lo;if(n.test(e)){for(var r,i,o,a=[],s=[],c=n.lastIndex=0;r=n.exec(e);){(i=r.index)>c&&(s.push(o=e.slice(c,i)),a.push(JSON.stringify(o)));var u=Cr(r[1].trim());a.push("_s("+u+")"),s.push({"@binding":u}),c=i+r[0].length}return c<e.length&&(s.push(o=e.slice(c)),a.push(JSON.stringify(o))),{expression:a.join("+"),tokens:s}}}(e,Ho))?l={type:2,expression:u.expression,tokens:u.tokens,text:e}:" "===e&&f.length&&" "===f[f.length-1].text||(l={type:3,text:e}),l&&f.push(l)}},comment:function(e,t,n){if(r){var i={type:3,text:e,isComment:!0};r.children.push(i)}}}),n}function ua(e,t){var n,r;(r=Mr(n=e,"key"))&&(n.key=r),e.plain=!e.key&&!e.scopedSlots&&!e.attrsList.length,function(e){var t=Mr(e,"ref");t&&(e.ref=t,e.refInFor=function(e){var t=e;for(;t;){if(void 0!==t.for)return!0;t=t.parent}return!1}(e))}(e),function(e){var t;"template"===e.tag?(t=Ir(e,"scope"),e.slotScope=t||Ir(e,"slot-scope")):(t=Ir(e,"slot-scope"))&&(e.slotScope=t);var n=Mr(e,"slot");n&&(e.slotTarget='""'===n?'"default"':n,e.slotTargetDynamic=!(!e.attrsMap[":slot"]&&!e.attrsMap["v-bind:slot"]),"template"===e.tag||e.slotScope||Tr(e,"slot",n,function(e,t){return e.rawAttrsMap[":"+t]||e.rawAttrsMap["v-bind:"+t]||e.rawAttrsMap[t]}(e,"slot")));if("template"===e.tag){var r=Dr(e,na);if(r){var i=pa(r),o=i.name,a=i.dynamic;e.slotTarget=o,e.slotTargetDynamic=a,e.slotScope=r.value||aa}}else{var s=Dr(e,na);if(s){var c=e.scopedSlots||(e.scopedSlots={}),u=pa(s),l=u.name,f=u.dynamic,p=c[l]=sa("template",[],e);p.slotTarget=l,p.slotTargetDynamic=f,p.children=e.children.filter(function(e){if(!e.slotScope)return e.parent=p,!0}),p.slotScope=s.value||aa,e.children=[],e.plain=!1}}}(e),function(e){"slot"===e.tag&&(e.slotName=Mr(e,"name"))}(e),function(e){var t;(t=Mr(e,"is"))&&(e.component=t);null!=Ir(e,"inline-template")&&(e.inlineTemplate=!0)}(e);for(var i=0;i<Bo.length;i++)e=Bo[i](e,t)||e;return function(e){var t,n,r,i,o,a,s,c,u=e.attrsList;for(t=0,n=u.length;t<n;t++)if(r=i=u[t].name,o=u[t].value,Wo.test(r))if(e.hasBindings=!0,(a=da(r.replace(Wo,"")))&&(r=r.replace(ta,"")),ea.test(r))r=r.replace(ea,""),o=Cr(o),(c=Yo.test(r))&&(r=r.slice(1,-1)),a&&(a.prop&&!c&&"innerHtml"===(r=b(r))&&(r="innerHTML"),a.camel&&!c&&(r=b(r)),a.sync&&(s=Fr(o,"$event"),c?Lr(e,'"update:"+('+r+")",s,null,!1,0,u[t],!0):(Lr(e,"update:"+b(r),s,null,!1,0,u[t]),x(r)!==b(r)&&Lr(e,"update:"+x(r),s,null,!1,0,u[t])))),a&&a.prop||!e.component&&Ko(e.tag,e.attrsMap.type,r)?Sr(e,r,o,u[t],c):Tr(e,r,o,u[t],c);else if(qo.test(r))r=r.replace(qo,""),(c=Yo.test(r))&&(r=r.slice(1,-1)),Lr(e,r,o,a,!1,0,u[t],c);else{var l=(r=r.replace(Wo,"")).match(Qo),f=l&&l[1];c=!1,f&&(r=r.slice(0,-(f.length+1)),Yo.test(f)&&(f=f.slice(1,-1),c=!0)),jr(e,r,i,o,f,c,a,u[t])}else Tr(e,r,JSON.stringify(o),u[t]),!e.component&&"muted"===r&&Ko(e.tag,e.attrsMap.type,r)&&Sr(e,r,"true",u[t])}(e),e}function la(e){var t;if(t=Ir(e,"v-for")){var n=function(e){var t=e.match(Zo);if(!t)return;var n={};n.for=t[2].trim();var r=t[1].trim().replace(Xo,""),i=r.match(Go);i?(n.alias=r.replace(Go,"").trim(),n.iterator1=i[1].trim(),i[2]&&(n.iterator2=i[2].trim())):n.alias=r;return n}(t);n&&k(e,n)}}function fa(e,t){e.ifConditions||(e.ifConditions=[]),e.ifConditions.push(t)}function pa(e){var t=e.name.replace(na,"");return t||"#"!==e.name[0]&&(t="default"),Yo.test(t)?{name:t.slice(1,-1),dynamic:!0}:{name:'"'+t+'"',dynamic:!1}}function da(e){var t=e.match(ta);if(t){var n={};return t.forEach(function(e){n[e.slice(1)]=!0}),n}}function va(e){for(var t={},n=0,r=e.length;n<r;n++)t[e[n].name]=e[n].value;return t}var ha=/^xmlns:NS\d+/,ma=/^NS\d+:/;function ya(e){return sa(e.tag,e.attrsList.slice(),e.parent)}var ga=[vo,mo,{preTransformNode:function(e,t){if("input"===e.tag){var n,r=e.attrsMap;if(!r["v-model"])return;if((r[":type"]||r["v-bind:type"])&&(n=Mr(e,"type")),r.type||n||!r["v-bind"]||(n="("+r["v-bind"]+").type"),n){var i=Ir(e,"v-if",!0),o=i?"&&("+i+")":"",a=null!=Ir(e,"v-else",!0),s=Ir(e,"v-else-if",!0),c=ya(e);la(c),Er(c,"type","checkbox"),ua(c,t),c.processed=!0,c.if="("+n+")==='checkbox'"+o,fa(c,{exp:c.if,block:c});var u=ya(e);Ir(u,"v-for",!0),Er(u,"type","radio"),ua(u,t),fa(c,{exp:"("+n+")==='radio'"+o,block:u});var l=ya(e);return Ir(l,"v-for",!0),Er(l,":type",n),ua(l,t),fa(c,{exp:i,block:l}),a?c.else=!0:s&&(c.elseif=s),c}}}}];var _a,ba,$a={expectHTML:!0,modules:ga,directives:{model:function(e,t,n){var r=t.value,i=t.modifiers,o=e.tag,a=e.attrsMap.type;if(e.component)return Rr(e,r,i),!1;if("select"===o)!function(e,t,n){var r='var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(n&&n.number?"_n(val)":"val")+"});";r=r+" "+Fr(t,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),Lr(e,"change",r,null,!0)}(e,r,i);else if("input"===o&&"checkbox"===a)!function(e,t,n){var r=n&&n.number,i=Mr(e,"value")||"null",o=Mr(e,"true-value")||"true",a=Mr(e,"false-value")||"false";Sr(e,"checked","Array.isArray("+t+")?_i("+t+","+i+")>-1"+("true"===o?":("+t+")":":_q("+t+","+o+")")),Lr(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Fr(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Fr(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Fr(t,"$$c")+"}",null,!0)}(e,r,i);else if("input"===o&&"radio"===a)!function(e,t,n){var r=n&&n.number,i=Mr(e,"value")||"null";Sr(e,"checked","_q("+t+","+(i=r?"_n("+i+")":i)+")"),Lr(e,"change",Fr(t,i),null,!0)}(e,r,i);else if("input"===o||"textarea"===o)!function(e,t,n){var r=e.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,c=!o&&"range"!==r,u=o?"change":"range"===r?Jr:"input",l="$event.target.value";s&&(l="$event.target.value.trim()"),a&&(l="_n("+l+")");var f=Fr(t,l);c&&(f="if($event.target.composing)return;"+f),Sr(e,"value","("+t+")"),Lr(e,u,f,null,!0),(s||a)&&Lr(e,"blur","$forceUpdate()")}(e,r,i);else if(!P.isReservedTag(o))return Rr(e,r,i),!1;return!0},text:function(e,t){t.value&&Sr(e,"textContent","_s("+t.value+")",t)},html:function(e,t){t.value&&Sr(e,"innerHTML","_s("+t.value+")",t)}},isPreTag:function(e){return"pre"===e},isUnaryTag:go,mustUseProp:En,canBeLeftOpenTag:_o,isReservedTag:Jn,getTagNamespace:qn,staticKeys:function(e){return e.reduce(function(e,t){return e.concat(t.staticKeys||[])},[]).join(",")}(ga)},wa=g(function(e){return p("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))});function xa(e,t){e&&(_a=wa(t.staticKeys||""),ba=t.isReservedTag||T,function e(t){t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||d(e.tag)||!ba(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(_a)))}(t);if(1===t.type){if(!ba(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,r=t.children.length;n<r;n++){var i=t.children[n];e(i),i.static||(t.static=!1)}if(t.ifConditions)for(var o=1,a=t.ifConditions.length;o<a;o++){var s=t.ifConditions[o].block;e(s),s.static||(t.static=!1)}}}(e),function e(t,n){if(1===t.type){if((t.static||t.once)&&(t.staticInFor=n),t.static&&t.children.length&&(1!==t.children.length||3!==t.children[0].type))return void(t.staticRoot=!0);if(t.staticRoot=!1,t.children)for(var r=0,i=t.children.length;r<i;r++)e(t.children[r],n||!!t.for);if(t.ifConditions)for(var o=1,a=t.ifConditions.length;o<a;o++)e(t.ifConditions[o].block,n)}}(e,!1))}var Ca=/^([\w$_]+|\([^)]*?\))\s*=>|^function\s*\(/,Aa=/\([^)]*?\);*$/,ka=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Oa={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Sa={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Ta=function(e){return"if("+e+")return null;"},Ea={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Ta("$event.target !== $event.currentTarget"),ctrl:Ta("!$event.ctrlKey"),shift:Ta("!$event.shiftKey"),alt:Ta("!$event.altKey"),meta:Ta("!$event.metaKey"),left:Ta("'button' in $event && $event.button !== 0"),middle:Ta("'button' in $event && $event.button !== 1"),right:Ta("'button' in $event && $event.button !== 2")};function ja(e,t){var n=t?"nativeOn:":"on:",r="",i="";for(var o in e){var a=Na(e[o]);e[o]&&e[o].dynamic?i+=o+","+a+",":r+='"'+o+'":'+a+","}return r="{"+r.slice(0,-1)+"}",i?n+"_d("+r+",["+i.slice(0,-1)+"])":n+r}function Na(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map(function(e){return Na(e)}).join(",")+"]";var t=ka.test(e.value),n=Ca.test(e.value),r=ka.test(e.value.replace(Aa,""));if(e.modifiers){var i="",o="",a=[];for(var s in e.modifiers)if(Ea[s])o+=Ea[s],Oa[s]&&a.push(s);else if("exact"===s){var c=e.modifiers;o+=Ta(["ctrl","shift","alt","meta"].filter(function(e){return!c[e]}).map(function(e){return"$event."+e+"Key"}).join("||"))}else a.push(s);return a.length&&(i+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(La).join("&&")+")return null;"}(a)),o&&(i+=o),"function($event){"+i+(t?"return "+e.value+"($event)":n?"return ("+e.value+")($event)":r?"return "+e.value:e.value)+"}"}return t||n?e.value:"function($event){"+(r?"return "+e.value:e.value)+"}"}function La(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=Oa[e],r=Sa[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var Ma={on:function(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function(e,t){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}},cloak:S},Ia=function(e){this.options=e,this.warn=e.warn||kr,this.transforms=Or(e.modules,"transformCode"),this.dataGenFns=Or(e.modules,"genData"),this.directives=k(k({},Ma),e.directives);var t=e.isReservedTag||T;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Da(e,t){var n=new Ia(t);return{render:"with(this){return "+(e?Pa(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function Pa(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Ra(e,t);if(e.once&&!e.onceProcessed)return Fa(e,t);if(e.for&&!e.forProcessed)return Ba(e,t);if(e.if&&!e.ifProcessed)return Ha(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=Ka(e,t),i="_t("+n+(r?","+r:""),o=e.attrs||e.dynamicAttrs?Wa((e.attrs||[]).concat(e.dynamicAttrs||[]).map(function(e){return{name:b(e.name),value:e.value,dynamic:e.dynamic}})):null,a=e.attrsMap["v-bind"];!o&&!a||r||(i+=",null");o&&(i+=","+o);a&&(i+=(o?"":",null")+","+a);return i+")"}(e,t);var n;if(e.component)n=function(e,t,n){var r=t.inlineTemplate?null:Ka(t,n,!0);return"_c("+e+","+Ua(t,n)+(r?","+r:"")+")"}(e.component,e,t);else{var r;(!e.plain||e.pre&&t.maybeComponent(e))&&(r=Ua(e,t));var i=e.inlineTemplate?null:Ka(e,t,!0);n="_c('"+e.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var o=0;o<t.transforms.length;o++)n=t.transforms[o](e,n);return n}return Ka(e,t)||"void 0"}function Ra(e,t){e.staticProcessed=!0;var n=t.pre;return e.pre&&(t.pre=e.pre),t.staticRenderFns.push("with(this){return "+Pa(e,t)+"}"),t.pre=n,"_m("+(t.staticRenderFns.length-1)+(e.staticInFor?",true":"")+")"}function Fa(e,t){if(e.onceProcessed=!0,e.if&&!e.ifProcessed)return Ha(e,t);if(e.staticInFor){for(var n="",r=e.parent;r;){if(r.for){n=r.key;break}r=r.parent}return n?"_o("+Pa(e,t)+","+t.onceId+++","+n+")":Pa(e,t)}return Ra(e,t)}function Ha(e,t,n,r){return e.ifProcessed=!0,function e(t,n,r,i){if(!t.length)return i||"_e()";var o=t.shift();return o.exp?"("+o.exp+")?"+a(o.block)+":"+e(t,n,r,i):""+a(o.block);function a(e){return r?r(e,n):e.once?Fa(e,n):Pa(e,n)}}(e.ifConditions.slice(),t,n,r)}function Ba(e,t,n,r){var i=e.for,o=e.alias,a=e.iterator1?","+e.iterator1:"",s=e.iterator2?","+e.iterator2:"";return e.forProcessed=!0,(r||"_l")+"(("+i+"),function("+o+a+s+"){return "+(n||Pa)(e,t)+"})"}function Ua(e,t){var n="{",r=function(e,t){var n=e.directives;if(!n)return;var r,i,o,a,s="directives:[",c=!1;for(r=0,i=n.length;r<i;r++){o=n[r],a=!0;var u=t.directives[o.name];u&&(a=!!u(e,o,t.warn)),a&&(c=!0,s+='{name:"'+o.name+'",rawName:"'+o.rawName+'"'+(o.value?",value:("+o.value+"),expression:"+JSON.stringify(o.value):"")+(o.arg?",arg:"+(o.isDynamicArg?o.arg:'"'+o.arg+'"'):"")+(o.modifiers?",modifiers:"+JSON.stringify(o.modifiers):"")+"},")}if(c)return s.slice(0,-1)+"]"}(e,t);r&&(n+=r+","),e.key&&(n+="key:"+e.key+","),e.ref&&(n+="ref:"+e.ref+","),e.refInFor&&(n+="refInFor:true,"),e.pre&&(n+="pre:true,"),e.component&&(n+='tag:"'+e.tag+'",');for(var i=0;i<t.dataGenFns.length;i++)n+=t.dataGenFns[i](e);if(e.attrs&&(n+="attrs:"+Wa(e.attrs)+","),e.props&&(n+="domProps:"+Wa(e.props)+","),e.events&&(n+=ja(e.events,!1)+","),e.nativeEvents&&(n+=ja(e.nativeEvents,!0)+","),e.slotTarget&&!e.slotScope&&(n+="slot:"+e.slotTarget+","),e.scopedSlots&&(n+=function(e,t,n){var r=Object.keys(t).some(function(e){var n=t[e];return n.slotTargetDynamic||n.if||n.for||za(n)});if(!r)for(var i=e.parent;i;){if(i.slotScope&&i.slotScope!==aa){r=!0;break}i=i.parent}return"scopedSlots:_u(["+Object.keys(t).map(function(e){return Va(t[e],n)}).join(",")+"]"+(r?",true":"")+")"}(e,e.scopedSlots,t)+","),e.model&&(n+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var o=function(e,t){var n=e.children[0];if(n&&1===n.type){var r=Da(n,t.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map(function(e){return"function(){"+e+"}"}).join(",")+"]}"}}(e,t);o&&(n+=o+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b("+n+',"'+e.tag+'",'+Wa(e.dynamicAttrs)+")"),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function za(e){return 1===e.type&&("slot"===e.tag||e.children.some(za))}function Va(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return Ha(e,t,Va,"null");if(e.for&&!e.forProcessed)return Ba(e,t,Va);var r=e.slotScope===aa?"":String(e.slotScope),i="function("+r+"){return "+("template"===e.tag?e.if&&n?"("+e.if+")?"+(Ka(e,t)||"undefined")+":undefined":Ka(e,t)||"undefined":Pa(e,t))+"}",o=r?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+i+o+"}"}function Ka(e,t,n,r,i){var o=e.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=n?t.maybeComponent(a)?",1":",0":"";return""+(r||Pa)(a,t)+s}var c=n?function(e,t){for(var n=0,r=0;r<e.length;r++){var i=e[r];if(1===i.type){if(Ja(i)||i.ifConditions&&i.ifConditions.some(function(e){return Ja(e.block)})){n=2;break}(t(i)||i.ifConditions&&i.ifConditions.some(function(e){return t(e.block)}))&&(n=1)}}return n}(o,t.maybeComponent):0,u=i||qa;return"["+o.map(function(e){return u(e,t)}).join(",")+"]"+(c?","+c:"")}}function Ja(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function qa(e,t){return 1===e.type?Pa(e,t):3===e.type&&e.isComment?(r=e,"_e("+JSON.stringify(r.text)+")"):"_v("+(2===(n=e).type?n.expression:Za(JSON.stringify(n.text)))+")";var n,r}function Wa(e){for(var t="",n="",r=0;r<e.length;r++){var i=e[r],o=Za(i.value);i.dynamic?n+=i.name+","+o+",":t+='"'+i.name+'":'+o+","}return t="{"+t.slice(0,-1)+"}",n?"_d("+t+",["+n.slice(0,-1)+"])":t}function Za(e){return e.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b");function Ga(e,t){try{return new Function(e)}catch(n){return t.push({err:n,code:e}),S}}function Xa(e){var t=Object.create(null);return function(n,r,i){(r=k({},r)).warn;delete r.warn;var o=r.delimiters?String(r.delimiters)+n:n;if(t[o])return t[o];var a=e(n,r),s={},c=[];return s.render=Ga(a.render,c),s.staticRenderFns=a.staticRenderFns.map(function(e){return Ga(e,c)}),t[o]=s}}var Ya,Qa,es=(Ya=function(e,t){var n=ca(e.trim(),t);!1!==t.optimize&&xa(n,t);var r=Da(n,t);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}},function(e){function t(t,n){var r=Object.create(e),i=[],o=[];if(n)for(var a in n.modules&&(r.modules=(e.modules||[]).concat(n.modules)),n.directives&&(r.directives=k(Object.create(e.directives||null),n.directives)),n)"modules"!==a&&"directives"!==a&&(r[a]=n[a]);r.warn=function(e,t,n){(n?o:i).push(e)};var s=Ya(t.trim(),r);return s.errors=i,s.tips=o,s}return{compile:t,compileToFunctions:Xa(t)}})($a),ts=(es.compile,es.compileToFunctions);function ns(e){return(Qa=Qa||document.createElement("div")).innerHTML=e?'<a href="\n"/>':'<div a="\n"/>',Qa.innerHTML.indexOf("&#10;")>0}var rs=!!U&&ns(!1),is=!!U&&ns(!0),os=g(function(e){var t=Gn(e);return t&&t.innerHTML}),as=bn.prototype.$mount;return bn.prototype.$mount=function(e,t){if((e=e&&Gn(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=os(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(r){var i=ts(r,{outputSourceRange:!1,shouldDecodeNewlines:rs,shouldDecodeNewlinesForHref:is,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return as.call(this,e,t)},bn.compile=ts,bn});
crop-thumbnails.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin URI: https://wordpress.org/extend/plugins/crop-thumbnails/
5
  * Author: Volkmar Kantor
6
  * Author URI: https://www.totalmedial.de
7
- * Version: 1.2.3
8
  * Description: The easy way to adjust your cropped image sizes.
9
  *
10
  *
@@ -26,7 +26,7 @@
26
  */
27
 
28
 
29
- define('CROP_THUMBNAILS_VERSION','1.2.3');
30
 
31
 
32
  function cptLoadLanguage() {
4
  * Plugin URI: https://wordpress.org/extend/plugins/crop-thumbnails/
5
  * Author: Volkmar Kantor
6
  * Author URI: https://www.totalmedial.de
7
+ * Version: 1.2.4
8
  * Description: The easy way to adjust your cropped image sizes.
9
  *
10
  *
26
  */
27
 
28
 
29
+ define('CROP_THUMBNAILS_VERSION','1.2.4');
30
 
31
 
32
  function cptLoadLanguage() {
functions/backendpreparer.php CHANGED
@@ -58,8 +58,8 @@ class CropPostThumbnailsBackendPreparer {
58
  global $pagenow;
59
  if ($this->shouldCropThumbnailsBeActive()) {
60
  wp_enqueue_script( 'jcrop' );
61
- wp_enqueue_script( 'vue', plugins_url('app/vendor/vue.min.js', dirname(__FILE__)), array(), CROP_THUMBNAILS_VERSION);
62
- wp_enqueue_script( 'cpt_crop_editor', plugins_url('app/app.js', dirname(__FILE__)), array('jquery','vue','imagesloaded','json2','jcrop'), CROP_THUMBNAILS_VERSION);
63
  add_action('admin_footer',array($this,'addLinksToAdmin'));
64
  }
65
  }
58
  global $pagenow;
59
  if ($this->shouldCropThumbnailsBeActive()) {
60
  wp_enqueue_script( 'jcrop' );
61
+ wp_enqueue_script( 'cpt_vue', plugins_url('app/vendor/vue.min.js', dirname(__FILE__)), array(), CROP_THUMBNAILS_VERSION);
62
+ wp_enqueue_script( 'cpt_crop_editor', plugins_url('app/app.js', dirname(__FILE__)), array('jquery','cpt_vue','imagesloaded','json2','jcrop'), CROP_THUMBNAILS_VERSION);
63
  add_action('admin_footer',array($this,'addLinksToAdmin'));
64
  }
65
  }
functions/save.php CHANGED
@@ -67,7 +67,7 @@ class CptSaveThumbnail {
67
 
68
  $croppedSize = self::getCroppedSize($activeImageSize,$imageMetadata,$input);
69
 
70
- $currentFilePath = self::generateFilename($sourceImgPath, $croppedSize['width'], $croppedSize['height']);
71
  self::addDebug("filename: ".$currentFilePath);
72
  $currentFilePathInfo = pathinfo($currentFilePath);
73
  $temporaryCopyFile = $GLOBALS['CROP_THUMBNAILS_HELPER']->getUploadDir().DIRECTORY_SEPARATOR.$currentFilePathInfo['basename'];
@@ -327,16 +327,17 @@ class CptSaveThumbnail {
327
  * @param string Path to the original (full-size) file.
328
  * @param int width of the new image
329
  * @param int height of the new image
 
330
  * @return string path to the new image
331
  */
332
- protected static function generateFilename( $file, $w, $h ){
333
  $info = pathinfo($file);
334
  $dir = $info['dirname'];
335
  $ext = $info['extension'];
336
  $name = wp_basename($file, '.'.$ext);
337
  $suffix = $w.'x'.$h;
338
  $destfilename = $dir.'/'.$name.'-'.$suffix.'.'.$ext;
339
- return $destfilename;
340
  }
341
 
342
  /**
@@ -358,4 +359,4 @@ class CptSaveThumbnail {
358
  }
359
  return apply_filters('crop_thumbnails_user_permission_check', $return, $imageId);
360
  }
361
- }
67
 
68
  $croppedSize = self::getCroppedSize($activeImageSize,$imageMetadata,$input);
69
 
70
+ $currentFilePath = self::generateFilename($sourceImgPath, $croppedSize['width'], $croppedSize['height'], $activeImageSize->crop);
71
  self::addDebug("filename: ".$currentFilePath);
72
  $currentFilePathInfo = pathinfo($currentFilePath);
73
  $temporaryCopyFile = $GLOBALS['CROP_THUMBNAILS_HELPER']->getUploadDir().DIRECTORY_SEPARATOR.$currentFilePathInfo['basename'];
327
  * @param string Path to the original (full-size) file.
328
  * @param int width of the new image
329
  * @param int height of the new image
330
+ * @param boolean crop is this a cropped image-size
331
  * @return string path to the new image
332
  */
333
+ protected static function generateFilename( $file, $w, $h, $crop ){
334
  $info = pathinfo($file);
335
  $dir = $info['dirname'];
336
  $ext = $info['extension'];
337
  $name = wp_basename($file, '.'.$ext);
338
  $suffix = $w.'x'.$h;
339
  $destfilename = $dir.'/'.$name.'-'.$suffix.'.'.$ext;
340
+ return apply_filters('crop_thumbnails_filename', $destfilename, $file, $w, $h, $crop, $info);
341
  }
342
 
343
  /**
359
  }
360
  return apply_filters('crop_thumbnails_user_permission_check', $return, $imageId);
361
  }
362
+ }
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: post-thumbnails, images, media library
5
  Requires at least: 4.6
6
  Requires PHP: 5.3.0
7
  Tested up to: 5.0
8
- Stable tag: 1.2.3
9
  License: GPL v3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
@@ -16,8 +16,20 @@ License URI: http://www.gnu.org/licenses/gpl-3.0.html
16
  The plugin provides the functionality to adjust the crop region of cropped images. It add buttons to the edit-pages and media-dialog to access a crop-editor.
17
  In the crop-editor you can choose one or more (if they have the same ratio) imagesizes and cut-off the part of the image you want.
18
 
19
- = How to define cropped image sizes? =
 
 
20
 
 
 
 
 
 
 
 
 
 
 
21
  The plugin do not add additional image sizes, it only provides functionality to edit the crop area.
22
 
23
  You can use "`add_image_size`" inside your functions.php to add additional cropped image sizes. [See "add_image_size" documentation](https://developer.wordpress.org/reference/functions/add_image_size/).
@@ -48,23 +60,16 @@ if ( has_post_thumbnail() ) {
48
  }
49
  `
50
 
51
- == Installation ==
52
-
53
- You can use the built in installer and upgrader, or you can install the plugin manually.
54
-
55
- 1. You can either use the automatic plugin installer or your FTP program to upload it to your wp-content/plugins directory the top-level folder. Don't just upload all the php files and put them in /wp-content/plugins/.
56
- 2. Activate the plugin through the 'Plugins' menu in WordPress
57
- 3. Configure any settings from "Settings > Crop-Thumbnails".
58
- 4. Use it.
59
-
60
- == Frequently Asked Questions ==
61
-
62
  = What internal rules the plugin use for cropping? =
63
  * The plugin will only crop image-sizes where crop is set to "`true`" (hard crop mode - see: http://codex.wordpress.org/Function_Reference/add_image_size).
64
  * If you had set one image dimension in add_image_size() to "`0`", the plugin will crop it in the ratio of the original image.
65
  * If you had set one image dimension in add_image_size() to "`9999`", the plugin will change the 9999 to the actual size of the current original image.
66
  * You are able to crop all images with the same ratio at once (default) or and any imagesize (and ratio) seperate.
67
 
 
 
 
 
68
  = I've cropped the image, but the new version do not appear in the frontend. =
69
  If you had viewed your image on the site before, your browser has cached the image. You can hard refresh the page by hitting:
70
  * "`CTRL + F5`" (on Windows)
@@ -103,11 +108,7 @@ $('body').on('cropThumbnailModalClosed',function() {
103
  `
104
 
105
  = What languages are supported? =
106
- * English
107
- * German (de_DE)
108
- * brazilian portuguese (pt_BR) - thanks to Alex Meusburger
109
- * Ukrainian (uk) - thanks to Jurko Chervony from www.skinik.name
110
- * Italian (it) - thanks to akteon18
111
 
112
  = I want to contribute code. =
113
  Fantastic, i published the code on [github](https://github.com/vollyimnetz/crop-thumbnails). But be warned, i am carefully evaluate new features.
@@ -123,6 +124,12 @@ If you fork and planning to publish the forked plugin, please contact me.
123
  5. Quicktest on settings-page, to check if your system is correct setup.
124
 
125
  == Changelog ==
 
 
 
 
 
 
126
  = 1.2.3 =
127
  * fix a php-notice displayed on the settings-screen
128
 
5
  Requires at least: 4.6
6
  Requires PHP: 5.3.0
7
  Tested up to: 5.0
8
+ Stable tag: 1.2.4
9
  License: GPL v3
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
11
 
16
  The plugin provides the functionality to adjust the crop region of cropped images. It add buttons to the edit-pages and media-dialog to access a crop-editor.
17
  In the crop-editor you can choose one or more (if they have the same ratio) imagesizes and cut-off the part of the image you want.
18
 
19
+ The plugin is especially useful for theme developers who want to keep full control over cropped image sizes. If you want to dive even deeper, you can get informations about the hooks and filters on the [github page of the plugin](https://github.com/vollyimnetz/crop-thumbnails).
20
+
21
+ == Installation ==
22
 
23
+ You can use the built in installer and upgrader, or you can install the plugin manually.
24
+
25
+ 1. You can either use the automatic plugin installer or your FTP program to upload it to your wp-content/plugins directory the top-level folder. Don't just upload all the php files and put them in /wp-content/plugins/.
26
+ 2. Activate the plugin through the 'Plugins' menu in WordPress
27
+ 3. Configure any settings from "Settings > Crop-Thumbnails".
28
+ 4. Use it.
29
+
30
+ == Frequently Asked Questions ==
31
+
32
+ = How to define cropped image sizes? =
33
  The plugin do not add additional image sizes, it only provides functionality to edit the crop area.
34
 
35
  You can use "`add_image_size`" inside your functions.php to add additional cropped image sizes. [See "add_image_size" documentation](https://developer.wordpress.org/reference/functions/add_image_size/).
60
  }
61
  `
62
 
 
 
 
 
 
 
 
 
 
 
 
63
  = What internal rules the plugin use for cropping? =
64
  * The plugin will only crop image-sizes where crop is set to "`true`" (hard crop mode - see: http://codex.wordpress.org/Function_Reference/add_image_size).
65
  * If you had set one image dimension in add_image_size() to "`0`", the plugin will crop it in the ratio of the original image.
66
  * If you had set one image dimension in add_image_size() to "`9999`", the plugin will change the 9999 to the actual size of the current original image.
67
  * You are able to crop all images with the same ratio at once (default) or and any imagesize (and ratio) seperate.
68
 
69
+ = How to use this plugin on ACF taxonomy-images
70
+ The "Adavanced Custom Fields" plugin has a functionality to add images to taxonomies. To add cropping functionality on these images you have to add a small code-snippet to your functions.php
71
+ [Have a look on the github readme-page for details.](https://github.com/vollyimnetz/crop-thumbnails#filter-crop_thumbnails_activat_on_adminpages)
72
+
73
  = I've cropped the image, but the new version do not appear in the frontend. =
74
  If you had viewed your image on the site before, your browser has cached the image. You can hard refresh the page by hitting:
75
  * "`CTRL + F5`" (on Windows)
108
  `
109
 
110
  = What languages are supported? =
111
+ You may have a look on the [Translation Page](https://translate.wordpress.org/projects/wp-plugins/crop-thumbnails).
 
 
 
 
112
 
113
  = I want to contribute code. =
114
  Fantastic, i published the code on [github](https://github.com/vollyimnetz/crop-thumbnails). But be warned, i am carefully evaluate new features.
124
  5. Quicktest on settings-page, to check if your system is correct setup.
125
 
126
  == Changelog ==
127
+ = 1.2.4 =
128
+ * change the enqueue-name of the vue.js-library provided with the plugin to "cpt_vue" to make it possible to prevent this specific include
129
+ * update js-dev dependencies
130
+ * add the filter "crop_thumbnails_filename" to make it possible to change the target path/filename (thanks to https://github.com/matzeeable)
131
+ * improve readme
132
+
133
  = 1.2.3 =
134
  * fix a php-notice displayed on the settings-screen
135