1
1
/*!
2
2
* Vue.js v2.6.14
3
- * (c) 2014-2021 Evan You
3
+ * (c) 2014-2023 Evan You
4
4
* Released under the MIT License.
5
5
*/
6
6
/* */
@@ -929,7 +929,7 @@ var Observer = function Observer (value) {
929
929
Observer . prototype . walk = function walk ( obj ) {
930
930
var keys = Object . keys ( obj ) ;
931
931
for ( var i = 0 ; i < keys . length ; i ++ ) {
932
- defineReactive$$1 ( obj , keys [ i ] ) ;
932
+ defineReactive ( obj , keys [ i ] ) ;
933
933
}
934
934
} ;
935
935
@@ -996,7 +996,7 @@ function observe (value, asRootData) {
996
996
/**
997
997
* Define a reactive property on an Object.
998
998
*/
999
- function defineReactive$$1 (
999
+ function defineReactive (
1000
1000
obj ,
1001
1001
key ,
1002
1002
val ,
@@ -1089,7 +1089,7 @@ function set (target, key, val) {
1089
1089
target [ key ] = val ;
1090
1090
return val
1091
1091
}
1092
- defineReactive$$1 ( ob . value , key , val ) ;
1092
+ defineReactive ( ob . value , key , val ) ;
1093
1093
ob . dep . notify ( ) ;
1094
1094
return val
1095
1095
}
@@ -1483,9 +1483,9 @@ function normalizeDirectives (options) {
1483
1483
var dirs = options . directives ;
1484
1484
if ( dirs ) {
1485
1485
for ( var key in dirs ) {
1486
- var def$$1 = dirs [ key ] ;
1487
- if ( typeof def$$1 === 'function' ) {
1488
- dirs [ key ] = { bind : def$$1 , update : def$$1 } ;
1486
+ var def = dirs [ key ] ;
1487
+ if ( typeof def === 'function' ) {
1488
+ dirs [ key ] = { bind : def , update : def } ;
1489
1489
}
1490
1490
}
1491
1491
}
@@ -1627,7 +1627,7 @@ function validateProp (
1627
1627
if (
1628
1628
process . env . NODE_ENV !== 'production' &&
1629
1629
// skip validation for weex recycle-list child component props
1630
- ! ( false )
1630
+ ! ( false )
1631
1631
) {
1632
1632
assertProp ( prop , key , value , vm , absent ) ;
1633
1633
}
@@ -2006,8 +2006,6 @@ function nextTick (cb, ctx) {
2006
2006
}
2007
2007
}
2008
2008
2009
- /* */
2010
-
2011
2009
/* not type checking this file because flow doesn't play well with Proxy */
2012
2010
2013
2011
var initProxy ;
@@ -2161,13 +2159,13 @@ if (process.env.NODE_ENV !== 'production') {
2161
2159
var normalizeEvent = cached ( function ( name ) {
2162
2160
var passive = name . charAt ( 0 ) === '&' ;
2163
2161
name = passive ? name . slice ( 1 ) : name ;
2164
- var once$$1 = name . charAt ( 0 ) === '~' ; // Prefixed last, checked first
2165
- name = once$$1 ? name . slice ( 1 ) : name ;
2162
+ var once = name . charAt ( 0 ) === '~' ; // Prefixed last, checked first
2163
+ name = once ? name . slice ( 1 ) : name ;
2166
2164
var capture = name . charAt ( 0 ) === '!' ;
2167
2165
name = capture ? name . slice ( 1 ) : name ;
2168
2166
return {
2169
2167
name : name ,
2170
- once : once$$1 ,
2168
+ once : once ,
2171
2169
capture : capture ,
2172
2170
passive : passive
2173
2171
}
@@ -2196,13 +2194,13 @@ function updateListeners (
2196
2194
on ,
2197
2195
oldOn ,
2198
2196
add ,
2199
- remove$$1 ,
2197
+ remove ,
2200
2198
createOnceHandler ,
2201
2199
vm
2202
2200
) {
2203
- var name , def$$1 , cur , old , event ;
2201
+ var name , def , cur , old , event ;
2204
2202
for ( name in on ) {
2205
- def$$1 = cur = on [ name ] ;
2203
+ def = cur = on [ name ] ;
2206
2204
old = oldOn [ name ] ;
2207
2205
event = normalizeEvent ( name ) ;
2208
2206
if ( isUndef ( cur ) ) {
@@ -2226,7 +2224,7 @@ function updateListeners (
2226
2224
for ( name in oldOn ) {
2227
2225
if ( isUndef ( on [ name ] ) ) {
2228
2226
event = normalizeEvent ( name ) ;
2229
- remove$$1 ( event . name , oldOn [ name ] , event . capture ) ;
2227
+ remove ( event . name , oldOn [ name ] , event . capture ) ;
2230
2228
}
2231
2229
}
2232
2230
}
@@ -2439,7 +2437,7 @@ function initInjections (vm) {
2439
2437
Object . keys ( result ) . forEach ( function ( key ) {
2440
2438
/* istanbul ignore else */
2441
2439
if ( process . env . NODE_ENV !== 'production' ) {
2442
- defineReactive$$1 ( vm , key , result [ key ] , function ( ) {
2440
+ defineReactive ( vm , key , result [ key ] , function ( ) {
2443
2441
warn (
2444
2442
"Avoid mutating an injected value directly since the changes will be " +
2445
2443
"overwritten whenever the provided component re-renders. " +
@@ -2448,7 +2446,7 @@ function initInjections (vm) {
2448
2446
) ;
2449
2447
} ) ;
2450
2448
} else {
2451
- defineReactive$$1 ( vm , key , result [ key ] ) ;
2449
+ defineReactive ( vm , key , result [ key ] ) ;
2452
2450
}
2453
2451
} ) ;
2454
2452
toggleObserving ( true ) ;
@@ -3112,12 +3110,6 @@ function mergeProps (to, from) {
3112
3110
3113
3111
/* */
3114
3112
3115
- /* */
3116
-
3117
- /* */
3118
-
3119
- /* */
3120
-
3121
3113
// inline hooks to be invoked on component VNodes during patch
3122
3114
var componentVNodeHooks = {
3123
3115
init : function init ( vnode , hydrating ) {
@@ -3520,15 +3512,15 @@ function initRender (vm) {
3520
3512
3521
3513
/* istanbul ignore else */
3522
3514
if ( process . env . NODE_ENV !== 'production' ) {
3523
- defineReactive$$1 ( vm , '$attrs' , parentData && parentData . attrs || emptyObject , function ( ) {
3515
+ defineReactive ( vm , '$attrs' , parentData && parentData . attrs || emptyObject , function ( ) {
3524
3516
! isUpdatingChildComponent && warn ( "$attrs is readonly." , vm ) ;
3525
3517
} , true ) ;
3526
- defineReactive$$1 ( vm , '$listeners' , options . _parentListeners || emptyObject , function ( ) {
3518
+ defineReactive ( vm , '$listeners' , options . _parentListeners || emptyObject , function ( ) {
3527
3519
! isUpdatingChildComponent && warn ( "$listeners is readonly." , vm ) ;
3528
3520
} , true ) ;
3529
3521
} else {
3530
- defineReactive$$1 ( vm , '$attrs' , parentData && parentData . attrs || emptyObject , null , true ) ;
3531
- defineReactive$$1 ( vm , '$listeners' , options . _parentListeners || emptyObject , null , true ) ;
3522
+ defineReactive ( vm , '$attrs' , parentData && parentData . attrs || emptyObject , null , true ) ;
3523
+ defineReactive ( vm , '$listeners' , options . _parentListeners || emptyObject , null , true ) ;
3532
3524
}
3533
3525
}
3534
3526
@@ -3772,8 +3764,6 @@ function getFirstComponentChild (children) {
3772
3764
3773
3765
/* */
3774
3766
3775
- /* */
3776
-
3777
3767
function initEvents ( vm ) {
3778
3768
vm . _events = Object . create ( null ) ;
3779
3769
vm . _hasHookEvent = false ;
@@ -4424,7 +4414,7 @@ function queueWatcher (watcher) {
4424
4414
4425
4415
4426
4416
4427
- var uid$2 = 0 ;
4417
+ var uid$1 = 0 ;
4428
4418
4429
4419
/**
4430
4420
* A watcher parses an expression, collects dependencies,
@@ -4454,7 +4444,7 @@ var Watcher = function Watcher (
4454
4444
this . deep = this . user = this . lazy = this . sync = false ;
4455
4445
}
4456
4446
this . cb = cb ;
4457
- this . id = ++ uid$2 ; // uid for batching
4447
+ this . id = ++ uid$1 ; // uid for batching
4458
4448
this . active = true ;
4459
4449
this . dirty = this . lazy ; // for lazy watchers
4460
4450
this . deps = [ ] ;
@@ -4686,7 +4676,7 @@ function initProps (vm, propsOptions) {
4686
4676
vm
4687
4677
) ;
4688
4678
}
4689
- defineReactive$$1 ( props , key , value , function ( ) {
4679
+ defineReactive ( props , key , value , function ( ) {
4690
4680
if ( ! isRoot && ! isUpdatingChildComponent ) {
4691
4681
warn (
4692
4682
"Avoid mutating a prop directly since the value will be " +
@@ -4698,7 +4688,7 @@ function initProps (vm, propsOptions) {
4698
4688
}
4699
4689
} ) ;
4700
4690
} else {
4701
- defineReactive$$1 ( props , key , value ) ;
4691
+ defineReactive ( props , key , value ) ;
4702
4692
}
4703
4693
// static props are already proxied on the component's prototype
4704
4694
// during Vue.extend(). We only need to proxy props defined at
@@ -4973,13 +4963,13 @@ function stateMixin (Vue) {
4973
4963
4974
4964
/* */
4975
4965
4976
- var uid$3 = 0 ;
4966
+ var uid$2 = 0 ;
4977
4967
4978
4968
function initMixin ( Vue ) {
4979
4969
Vue . prototype . _init = function ( options ) {
4980
4970
var vm = this ;
4981
4971
// a uid
4982
- vm . _uid = uid$3 ++ ;
4972
+ vm . _uid = uid$2 ++ ;
4983
4973
4984
4974
var startTag , endTag ;
4985
4975
/* istanbul ignore if */
@@ -5446,7 +5436,7 @@ function initGlobalAPI (Vue) {
5446
5436
warn : warn ,
5447
5437
extend : extend ,
5448
5438
mergeOptions : mergeOptions ,
5449
- defineReactive : defineReactive$$1
5439
+ defineReactive : defineReactive
5450
5440
} ;
5451
5441
5452
5442
Vue . set = set ;
@@ -5782,6 +5772,7 @@ function setStyleScope (node, scopeId) {
5782
5772
}
5783
5773
5784
5774
var nodeOps = /*#__PURE__*/ Object . freeze ( {
5775
+ __proto__ : null ,
5785
5776
createElement : createElement$1 ,
5786
5777
createElementNS : createElementNS ,
5787
5778
createTextNode : createTextNode ,
@@ -5912,13 +5903,13 @@ function createPatchFunction (backend) {
5912
5903
}
5913
5904
5914
5905
function createRmCb ( childElm , listeners ) {
5915
- function remove$$1 ( ) {
5916
- if ( -- remove$$1 . listeners === 0 ) {
5906
+ function remove ( ) {
5907
+ if ( -- remove . listeners === 0 ) {
5917
5908
removeNode ( childElm ) ;
5918
5909
}
5919
5910
}
5920
- remove$$1 . listeners = listeners ;
5921
- return remove$$1
5911
+ remove . listeners = listeners ;
5912
+ return remove
5922
5913
}
5923
5914
5924
5915
function removeNode ( el ) {
@@ -5929,7 +5920,7 @@ function createPatchFunction (backend) {
5929
5920
}
5930
5921
}
5931
5922
5932
- function isUnknownElement$$1 ( vnode , inVPre ) {
5923
+ function isUnknownElement ( vnode , inVPre ) {
5933
5924
return (
5934
5925
! inVPre &&
5935
5926
! vnode . ns &&
@@ -5978,7 +5969,7 @@ function createPatchFunction (backend) {
5978
5969
if ( data && data . pre ) {
5979
5970
creatingElmInVPre ++ ;
5980
5971
}
5981
- if ( isUnknownElement$$1 ( vnode , creatingElmInVPre ) ) {
5972
+ if ( isUnknownElement ( vnode , creatingElmInVPre ) ) {
5982
5973
warn (
5983
5974
'Unknown custom element: <' + tag + '> - did you ' +
5984
5975
'register the component correctly? For recursive components, ' +
@@ -6076,11 +6067,11 @@ function createPatchFunction (backend) {
6076
6067
insert ( parentElm , vnode . elm , refElm ) ;
6077
6068
}
6078
6069
6079
- function insert ( parent , elm , ref$$1 ) {
6070
+ function insert ( parent , elm , ref ) {
6080
6071
if ( isDef ( parent ) ) {
6081
- if ( isDef ( ref$$1 ) ) {
6082
- if ( nodeOps . parentNode ( ref$$1 ) === parent ) {
6083
- nodeOps . insertBefore ( parent , elm , ref$$1 ) ;
6072
+ if ( isDef ( ref ) ) {
6073
+ if ( nodeOps . parentNode ( ref ) === parent ) {
6074
+ nodeOps . insertBefore ( parent , elm , ref ) ;
6084
6075
}
6085
6076
} else {
6086
6077
nodeOps . appendChild ( parent , elm ) ;
@@ -6498,7 +6489,7 @@ function createPatchFunction (backend) {
6498
6489
function assertNodeMatch ( node , vnode , inVPre ) {
6499
6490
if ( isDef ( vnode . tag ) ) {
6500
6491
return vnode . tag . indexOf ( 'vue-component' ) === 0 || (
6501
- ! isUnknownElement$$1 ( vnode , inVPre ) &&
6492
+ ! isUnknownElement ( vnode , inVPre ) &&
6502
6493
vnode . tag . toLowerCase ( ) === ( node . tagName && node . tagName . toLowerCase ( ) )
6503
6494
)
6504
6495
} else {
@@ -6875,12 +6866,6 @@ var klass = {
6875
6866
6876
6867
/* */
6877
6868
6878
- /* */
6879
-
6880
- /* */
6881
-
6882
- /* */
6883
-
6884
6869
// in some cases, the event used has to be determined at runtime
6885
6870
// so we used some reserved tokens during compile.
6886
6871
var RANGE_TOKEN = '__r' ;
@@ -6990,15 +6975,18 @@ function updateDOMListeners (oldVnode, vnode) {
6990
6975
}
6991
6976
var on = vnode . data . on || { } ;
6992
6977
var oldOn = oldVnode . data . on || { } ;
6993
- target$1 = vnode . elm ;
6978
+ // vnode is empty when removing all listeners,
6979
+ // and use old vnode dom element
6980
+ target$1 = vnode . elm || oldVnode . elm ;
6994
6981
normalizeEvents ( on ) ;
6995
6982
updateListeners ( on , oldOn , add$1 , remove$2 , createOnceHandler$1 , vnode . context ) ;
6996
6983
target$1 = undefined ;
6997
6984
}
6998
6985
6999
6986
var events = {
7000
6987
create : updateDOMListeners ,
7001
- update : updateDOMListeners
6988
+ update : updateDOMListeners ,
6989
+ destroy : function ( vnode ) { return updateDOMListeners ( vnode , emptyNode ) ; }
7002
6990
} ;
7003
6991
7004
6992
/* */
@@ -7342,20 +7330,20 @@ function removeClass (el, cls) {
7342
7330
7343
7331
/* */
7344
7332
7345
- function resolveTransition ( def$$1 ) {
7346
- if ( ! def$$1 ) {
7333
+ function resolveTransition ( def ) {
7334
+ if ( ! def ) {
7347
7335
return
7348
7336
}
7349
7337
/* istanbul ignore else */
7350
- if ( typeof def$$1 === 'object' ) {
7338
+ if ( typeof def === 'object' ) {
7351
7339
var res = { } ;
7352
- if ( def$$1 . css !== false ) {
7353
- extend ( res , autoCssTransition ( def$$1 . name || 'v' ) ) ;
7340
+ if ( def . css !== false ) {
7341
+ extend ( res , autoCssTransition ( def . name || 'v' ) ) ;
7354
7342
}
7355
- extend ( res , def$$1 ) ;
7343
+ extend ( res , def ) ;
7356
7344
return res
7357
- } else if ( typeof def$$1 === 'string' ) {
7358
- return autoCssTransition ( def$$1 )
7345
+ } else if ( typeof def === 'string' ) {
7346
+ return autoCssTransition ( def )
7359
7347
}
7360
7348
}
7361
7349
@@ -7835,7 +7823,7 @@ function _enter (_, vnode) {
7835
7823
var transition = inBrowser ? {
7836
7824
create : _enter ,
7837
7825
activate : _enter ,
7838
- remove : function remove$$1 ( vnode , rm ) {
7826
+ remove : function remove ( vnode , rm ) {
7839
7827
/* istanbul ignore else */
7840
7828
if ( vnode . data . show !== true ) {
7841
7829
leave ( vnode , rm ) ;
@@ -8015,10 +8003,10 @@ var show = {
8015
8003
var value = ref . value ;
8016
8004
8017
8005
vnode = locateNode ( vnode ) ;
8018
- var transition$$1 = vnode . data && vnode . data . transition ;
8006
+ var transition = vnode . data && vnode . data . transition ;
8019
8007
var originalDisplay = el . __vOriginalDisplay =
8020
8008
el . style . display === 'none' ? '' : el . style . display ;
8021
- if ( value && transition$$1 ) {
8009
+ if ( value && transition ) {
8022
8010
vnode . data . show = true ;
8023
8011
enter ( vnode , function ( ) {
8024
8012
el . style . display = originalDisplay ;
@@ -8035,8 +8023,8 @@ var show = {
8035
8023
/* istanbul ignore if */
8036
8024
if ( ! value === ! oldValue ) { return }
8037
8025
vnode = locateNode ( vnode ) ;
8038
- var transition$$1 = vnode . data && vnode . data . transition ;
8039
- if ( transition$$1 ) {
8026
+ var transition = vnode . data && vnode . data . transition ;
8027
+ if ( transition ) {
8040
8028
vnode . data . show = true ;
8041
8029
if ( value ) {
8042
8030
enter ( vnode , function ( ) {
0 commit comments