@bingads-webui-campaign/accounts-grid 0.0.1-security → 13.6.3

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of @bingads-webui-campaign/accounts-grid might be problematic. Click here for more details.

Files changed (126) hide show
  1. package/AUTHORS.txt +337 -0
  2. package/LICENSE.txt +20 -0
  3. package/README.md +58 -3
  4. package/bower.json +14 -0
  5. package/dist/jquery.js +10996 -0
  6. package/dist/jquery.min.js +2 -0
  7. package/dist/jquery.min.map +1 -0
  8. package/dist/jquery.slim.js +8894 -0
  9. package/dist/jquery.slim.min.js +2 -0
  10. package/dist/jquery.slim.min.map +1 -0
  11. package/external/sizzle/LICENSE.txt +36 -0
  12. package/external/sizzle/dist/sizzle.js +2542 -0
  13. package/external/sizzle/dist/sizzle.min.js +3 -0
  14. package/external/sizzle/dist/sizzle.min.map +1 -0
  15. package/package.json +139 -3
  16. package/src/ajax/jsonp.js +103 -0
  17. package/src/ajax/load.js +77 -0
  18. package/src/ajax/script.js +74 -0
  19. package/src/ajax/var/location.js +5 -0
  20. package/src/ajax/var/nonce.js +5 -0
  21. package/src/ajax/var/rquery.js +5 -0
  22. package/src/ajax/xhr.js +170 -0
  23. package/src/ajax.js +876 -0
  24. package/src/attributes/attr.js +141 -0
  25. package/src/attributes/classes.js +184 -0
  26. package/src/attributes/prop.js +142 -0
  27. package/src/attributes/support.js +33 -0
  28. package/src/attributes/val.js +191 -0
  29. package/src/attributes.js +13 -0
  30. package/src/callbacks.js +236 -0
  31. package/src/core/DOMEval.js +43 -0
  32. package/src/core/access.js +72 -0
  33. package/src/core/camelCase.js +23 -0
  34. package/src/core/init.js +129 -0
  35. package/src/core/isAttached.js +26 -0
  36. package/src/core/nodeName.js +13 -0
  37. package/src/core/parseHTML.js +65 -0
  38. package/src/core/parseXML.js +35 -0
  39. package/src/core/ready-no-deferred.js +97 -0
  40. package/src/core/ready.js +86 -0
  41. package/src/core/readyException.js +13 -0
  42. package/src/core/stripAndCollapse.js +14 -0
  43. package/src/core/support.js +20 -0
  44. package/src/core/toType.js +20 -0
  45. package/src/core/var/rsingleTag.js +7 -0
  46. package/src/core.js +400 -0
  47. package/src/css/addGetHookIf.js +26 -0
  48. package/src/css/adjustCSS.js +74 -0
  49. package/src/css/curCSS.js +100 -0
  50. package/src/css/finalPropName.js +42 -0
  51. package/src/css/hiddenVisibleSelectors.js +15 -0
  52. package/src/css/showHide.js +105 -0
  53. package/src/css/support.js +152 -0
  54. package/src/css/var/cssExpand.js +5 -0
  55. package/src/css/var/getStyles.js +17 -0
  56. package/src/css/var/isHiddenWithinTree.js +34 -0
  57. package/src/css/var/rboxStyle.js +7 -0
  58. package/src/css/var/rcustomProp.js +7 -0
  59. package/src/css/var/rnumnonpx.js +7 -0
  60. package/src/css/var/swap.js +26 -0
  61. package/src/css.js +495 -0
  62. package/src/data/Data.js +162 -0
  63. package/src/data/var/acceptData.js +19 -0
  64. package/src/data/var/dataPriv.js +7 -0
  65. package/src/data/var/dataUser.js +7 -0
  66. package/src/data.js +180 -0
  67. package/src/deferred/exceptionHook.js +21 -0
  68. package/src/deferred.js +399 -0
  69. package/src/deprecated/ajax-event-alias.js +22 -0
  70. package/src/deprecated/event.js +50 -0
  71. package/src/deprecated.js +89 -0
  72. package/src/dimensions.js +60 -0
  73. package/src/effects/Tween.js +125 -0
  74. package/src/effects/animatedSelector.js +15 -0
  75. package/src/effects.js +702 -0
  76. package/src/event/focusin.js +58 -0
  77. package/src/event/support.js +11 -0
  78. package/src/event/trigger.js +199 -0
  79. package/src/event.js +874 -0
  80. package/src/exports/amd.js +26 -0
  81. package/src/exports/global.js +34 -0
  82. package/src/jquery.js +41 -0
  83. package/src/manipulation/_evalUrl.js +32 -0
  84. package/src/manipulation/buildFragment.js +106 -0
  85. package/src/manipulation/getAll.js +32 -0
  86. package/src/manipulation/setGlobalEval.js +22 -0
  87. package/src/manipulation/support.js +41 -0
  88. package/src/manipulation/var/rscriptType.js +5 -0
  89. package/src/manipulation/var/rtagName.js +8 -0
  90. package/src/manipulation/wrapMap.js +30 -0
  91. package/src/manipulation.js +487 -0
  92. package/src/offset.js +232 -0
  93. package/src/queue/delay.js +23 -0
  94. package/src/queue.js +145 -0
  95. package/src/selector-native.js +240 -0
  96. package/src/selector-sizzle.js +19 -0
  97. package/src/selector.js +3 -0
  98. package/src/serialize.js +134 -0
  99. package/src/traversing/findFilter.js +97 -0
  100. package/src/traversing/var/dir.js +22 -0
  101. package/src/traversing/var/rneedsContext.js +8 -0
  102. package/src/traversing/var/siblings.js +17 -0
  103. package/src/traversing.js +198 -0
  104. package/src/var/ObjectFunctionString.js +7 -0
  105. package/src/var/arr.js +5 -0
  106. package/src/var/class2type.js +6 -0
  107. package/src/var/document.js +5 -0
  108. package/src/var/documentElement.js +7 -0
  109. package/src/var/flat.js +16 -0
  110. package/src/var/fnToString.js +7 -0
  111. package/src/var/getProto.js +5 -0
  112. package/src/var/hasOwn.js +7 -0
  113. package/src/var/indexOf.js +7 -0
  114. package/src/var/isFunction.js +17 -0
  115. package/src/var/isWindow.js +8 -0
  116. package/src/var/pnum.js +5 -0
  117. package/src/var/push.js +7 -0
  118. package/src/var/rcheckableType.js +5 -0
  119. package/src/var/rcssNum.js +9 -0
  120. package/src/var/rnothtmlwhite.js +8 -0
  121. package/src/var/rtrimCSS.js +12 -0
  122. package/src/var/slice.js +7 -0
  123. package/src/var/support.js +6 -0
  124. package/src/var/toString.js +7 -0
  125. package/src/var/whitespace.js +8 -0
  126. package/src/wrap.js +78 -0
@@ -0,0 +1,97 @@
1
+ define( [
2
+ "../core",
3
+ "../var/document",
4
+ "../var/isFunction"
5
+ ], function( jQuery, document, isFunction ) {
6
+
7
+ "use strict";
8
+
9
+ var readyCallbacks = [],
10
+ whenReady = function( fn ) {
11
+ readyCallbacks.push( fn );
12
+ },
13
+ executeReady = function( fn ) {
14
+
15
+ // Prevent errors from freezing future callback execution (gh-1823)
16
+ // Not backwards-compatible as this does not execute sync
17
+ window.setTimeout( function() {
18
+ fn.call( document, jQuery );
19
+ } );
20
+ };
21
+
22
+ jQuery.fn.ready = function( fn ) {
23
+ whenReady( fn );
24
+ return this;
25
+ };
26
+
27
+ jQuery.extend( {
28
+
29
+ // Is the DOM ready to be used? Set to true once it occurs.
30
+ isReady: false,
31
+
32
+ // A counter to track how many items to wait for before
33
+ // the ready event fires. See trac-6781
34
+ readyWait: 1,
35
+
36
+ ready: function( wait ) {
37
+
38
+ // Abort if there are pending holds or we're already ready
39
+ if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {
40
+ return;
41
+ }
42
+
43
+ // Remember that the DOM is ready
44
+ jQuery.isReady = true;
45
+
46
+ // If a normal DOM Ready event fired, decrement, and wait if need be
47
+ if ( wait !== true && --jQuery.readyWait > 0 ) {
48
+ return;
49
+ }
50
+
51
+ whenReady = function( fn ) {
52
+ readyCallbacks.push( fn );
53
+
54
+ while ( readyCallbacks.length ) {
55
+ fn = readyCallbacks.shift();
56
+ if ( isFunction( fn ) ) {
57
+ executeReady( fn );
58
+ }
59
+ }
60
+ };
61
+
62
+ whenReady();
63
+ }
64
+ } );
65
+
66
+ // Make jQuery.ready Promise consumable (gh-1778)
67
+ jQuery.ready.then = jQuery.fn.ready;
68
+
69
+ /**
70
+ * The ready event handler and self cleanup method
71
+ */
72
+ function completed() {
73
+ document.removeEventListener( "DOMContentLoaded", completed );
74
+ window.removeEventListener( "load", completed );
75
+ jQuery.ready();
76
+ }
77
+
78
+ // Catch cases where $(document).ready() is called
79
+ // after the browser event has already occurred.
80
+ // Support: IE9-10 only
81
+ // Older IE sometimes signals "interactive" too soon
82
+ if ( document.readyState === "complete" ||
83
+ ( document.readyState !== "loading" && !document.documentElement.doScroll ) ) {
84
+
85
+ // Handle it asynchronously to allow scripts the opportunity to delay ready
86
+ window.setTimeout( jQuery.ready );
87
+
88
+ } else {
89
+
90
+ // Use the handy event callback
91
+ document.addEventListener( "DOMContentLoaded", completed );
92
+
93
+ // A fallback to window.onload, that will always work
94
+ window.addEventListener( "load", completed );
95
+ }
96
+
97
+ } );
@@ -0,0 +1,86 @@
1
+ define( [
2
+ "../core",
3
+ "../var/document",
4
+ "../core/readyException",
5
+ "../deferred"
6
+ ], function( jQuery, document ) {
7
+
8
+ "use strict";
9
+
10
+ // The deferred used on DOM ready
11
+ var readyList = jQuery.Deferred();
12
+
13
+ jQuery.fn.ready = function( fn ) {
14
+
15
+ readyList
16
+ .then( fn )
17
+
18
+ // Wrap jQuery.readyException in a function so that the lookup
19
+ // happens at the time of error handling instead of callback
20
+ // registration.
21
+ .catch( function( error ) {
22
+ jQuery.readyException( error );
23
+ } );
24
+
25
+ return this;
26
+ };
27
+
28
+ jQuery.extend( {
29
+
30
+ // Is the DOM ready to be used? Set to true once it occurs.
31
+ isReady: false,
32
+
33
+ // A counter to track how many items to wait for before
34
+ // the ready event fires. See trac-6781
35
+ readyWait: 1,
36
+
37
+ // Handle when the DOM is ready
38
+ ready: function( wait ) {
39
+
40
+ // Abort if there are pending holds or we're already ready
41
+ if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {
42
+ return;
43
+ }
44
+
45
+ // Remember that the DOM is ready
46
+ jQuery.isReady = true;
47
+
48
+ // If a normal DOM Ready event fired, decrement, and wait if need be
49
+ if ( wait !== true && --jQuery.readyWait > 0 ) {
50
+ return;
51
+ }
52
+
53
+ // If there are functions bound, to execute
54
+ readyList.resolveWith( document, [ jQuery ] );
55
+ }
56
+ } );
57
+
58
+ jQuery.ready.then = readyList.then;
59
+
60
+ // The ready event handler and self cleanup method
61
+ function completed() {
62
+ document.removeEventListener( "DOMContentLoaded", completed );
63
+ window.removeEventListener( "load", completed );
64
+ jQuery.ready();
65
+ }
66
+
67
+ // Catch cases where $(document).ready() is called
68
+ // after the browser event has already occurred.
69
+ // Support: IE <=9 - 10 only
70
+ // Older IE sometimes signals "interactive" too soon
71
+ if ( document.readyState === "complete" ||
72
+ ( document.readyState !== "loading" && !document.documentElement.doScroll ) ) {
73
+
74
+ // Handle it asynchronously to allow scripts the opportunity to delay ready
75
+ window.setTimeout( jQuery.ready );
76
+
77
+ } else {
78
+
79
+ // Use the handy event callback
80
+ document.addEventListener( "DOMContentLoaded", completed );
81
+
82
+ // A fallback to window.onload, that will always work
83
+ window.addEventListener( "load", completed );
84
+ }
85
+
86
+ } );
@@ -0,0 +1,13 @@
1
+ define( [
2
+ "../core"
3
+ ], function( jQuery ) {
4
+
5
+ "use strict";
6
+
7
+ jQuery.readyException = function( error ) {
8
+ window.setTimeout( function() {
9
+ throw error;
10
+ } );
11
+ };
12
+
13
+ } );
@@ -0,0 +1,14 @@
1
+ define( [
2
+ "../var/rnothtmlwhite"
3
+ ], function( rnothtmlwhite ) {
4
+ "use strict";
5
+
6
+ // Strip and collapse whitespace according to HTML spec
7
+ // https://infra.spec.whatwg.org/#strip-and-collapse-ascii-whitespace
8
+ function stripAndCollapse( value ) {
9
+ var tokens = value.match( rnothtmlwhite ) || [];
10
+ return tokens.join( " " );
11
+ }
12
+
13
+ return stripAndCollapse;
14
+ } );
@@ -0,0 +1,20 @@
1
+ define( [
2
+ "../var/document",
3
+ "../var/support"
4
+ ], function( document, support ) {
5
+
6
+ "use strict";
7
+
8
+ // Support: Safari 8 only
9
+ // In Safari 8 documents created via document.implementation.createHTMLDocument
10
+ // collapse sibling forms: the second one becomes a child of the first one.
11
+ // Because of that, this security measure has to be disabled in Safari 8.
12
+ // https://bugs.webkit.org/show_bug.cgi?id=137337
13
+ support.createHTMLDocument = ( function() {
14
+ var body = document.implementation.createHTMLDocument( "" ).body;
15
+ body.innerHTML = "<form></form><form></form>";
16
+ return body.childNodes.length === 2;
17
+ } )();
18
+
19
+ return support;
20
+ } );
@@ -0,0 +1,20 @@
1
+ define( [
2
+ "../var/class2type",
3
+ "../var/toString"
4
+ ], function( class2type, toString ) {
5
+
6
+ "use strict";
7
+
8
+ function toType( obj ) {
9
+ if ( obj == null ) {
10
+ return obj + "";
11
+ }
12
+
13
+ // Support: Android <=2.3 only (functionish RegExp)
14
+ return typeof obj === "object" || typeof obj === "function" ?
15
+ class2type[ toString.call( obj ) ] || "object" :
16
+ typeof obj;
17
+ }
18
+
19
+ return toType;
20
+ } );
@@ -0,0 +1,7 @@
1
+ define( function() {
2
+ "use strict";
3
+
4
+ // rsingleTag matches a string consisting of a single HTML element with no attributes
5
+ // and captures the element's name
6
+ return ( /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i );
7
+ } );
package/src/core.js ADDED
@@ -0,0 +1,400 @@
1
+ /* global Symbol */
2
+ // Defining this global in .eslintrc.json would create a danger of using the global
3
+ // unguarded in another place, it seems safer to define global only for this module
4
+
5
+ define( [
6
+ "./var/arr",
7
+ "./var/getProto",
8
+ "./var/slice",
9
+ "./var/flat",
10
+ "./var/push",
11
+ "./var/indexOf",
12
+ "./var/class2type",
13
+ "./var/toString",
14
+ "./var/hasOwn",
15
+ "./var/fnToString",
16
+ "./var/ObjectFunctionString",
17
+ "./var/support",
18
+ "./var/isFunction",
19
+ "./var/isWindow",
20
+ "./core/DOMEval",
21
+ "./core/toType"
22
+ ], function( arr, getProto, slice, flat, push, indexOf,
23
+ class2type, toString, hasOwn, fnToString, ObjectFunctionString,
24
+ support, isFunction, isWindow, DOMEval, toType ) {
25
+
26
+ "use strict";
27
+
28
+ var
29
+ version = "3.6.3",
30
+
31
+ // Define a local copy of jQuery
32
+ jQuery = function( selector, context ) {
33
+
34
+ // The jQuery object is actually just the init constructor 'enhanced'
35
+ // Need init if jQuery is called (just allow error to be thrown if not included)
36
+ return new jQuery.fn.init( selector, context );
37
+ };
38
+
39
+ jQuery.fn = jQuery.prototype = {
40
+
41
+ // The current version of jQuery being used
42
+ jquery: version,
43
+
44
+ constructor: jQuery,
45
+
46
+ // The default length of a jQuery object is 0
47
+ length: 0,
48
+
49
+ toArray: function() {
50
+ return slice.call( this );
51
+ },
52
+
53
+ // Get the Nth element in the matched element set OR
54
+ // Get the whole matched element set as a clean array
55
+ get: function( num ) {
56
+
57
+ // Return all the elements in a clean array
58
+ if ( num == null ) {
59
+ return slice.call( this );
60
+ }
61
+
62
+ // Return just the one element from the set
63
+ return num < 0 ? this[ num + this.length ] : this[ num ];
64
+ },
65
+
66
+ // Take an array of elements and push it onto the stack
67
+ // (returning the new matched element set)
68
+ pushStack: function( elems ) {
69
+
70
+ // Build a new jQuery matched element set
71
+ var ret = jQuery.merge( this.constructor(), elems );
72
+
73
+ // Add the old object onto the stack (as a reference)
74
+ ret.prevObject = this;
75
+
76
+ // Return the newly-formed element set
77
+ return ret;
78
+ },
79
+
80
+ // Execute a callback for every element in the matched set.
81
+ each: function( callback ) {
82
+ return jQuery.each( this, callback );
83
+ },
84
+
85
+ map: function( callback ) {
86
+ return this.pushStack( jQuery.map( this, function( elem, i ) {
87
+ return callback.call( elem, i, elem );
88
+ } ) );
89
+ },
90
+
91
+ slice: function() {
92
+ return this.pushStack( slice.apply( this, arguments ) );
93
+ },
94
+
95
+ first: function() {
96
+ return this.eq( 0 );
97
+ },
98
+
99
+ last: function() {
100
+ return this.eq( -1 );
101
+ },
102
+
103
+ even: function() {
104
+ return this.pushStack( jQuery.grep( this, function( _elem, i ) {
105
+ return ( i + 1 ) % 2;
106
+ } ) );
107
+ },
108
+
109
+ odd: function() {
110
+ return this.pushStack( jQuery.grep( this, function( _elem, i ) {
111
+ return i % 2;
112
+ } ) );
113
+ },
114
+
115
+ eq: function( i ) {
116
+ var len = this.length,
117
+ j = +i + ( i < 0 ? len : 0 );
118
+ return this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] );
119
+ },
120
+
121
+ end: function() {
122
+ return this.prevObject || this.constructor();
123
+ },
124
+
125
+ // For internal use only.
126
+ // Behaves like an Array's method, not like a jQuery method.
127
+ push: push,
128
+ sort: arr.sort,
129
+ splice: arr.splice
130
+ };
131
+
132
+ jQuery.extend = jQuery.fn.extend = function() {
133
+ var options, name, src, copy, copyIsArray, clone,
134
+ target = arguments[ 0 ] || {},
135
+ i = 1,
136
+ length = arguments.length,
137
+ deep = false;
138
+
139
+ // Handle a deep copy situation
140
+ if ( typeof target === "boolean" ) {
141
+ deep = target;
142
+
143
+ // Skip the boolean and the target
144
+ target = arguments[ i ] || {};
145
+ i++;
146
+ }
147
+
148
+ // Handle case when target is a string or something (possible in deep copy)
149
+ if ( typeof target !== "object" && !isFunction( target ) ) {
150
+ target = {};
151
+ }
152
+
153
+ // Extend jQuery itself if only one argument is passed
154
+ if ( i === length ) {
155
+ target = this;
156
+ i--;
157
+ }
158
+
159
+ for ( ; i < length; i++ ) {
160
+
161
+ // Only deal with non-null/undefined values
162
+ if ( ( options = arguments[ i ] ) != null ) {
163
+
164
+ // Extend the base object
165
+ for ( name in options ) {
166
+ copy = options[ name ];
167
+
168
+ // Prevent Object.prototype pollution
169
+ // Prevent never-ending loop
170
+ if ( name === "__proto__" || target === copy ) {
171
+ continue;
172
+ }
173
+
174
+ // Recurse if we're merging plain objects or arrays
175
+ if ( deep && copy && ( jQuery.isPlainObject( copy ) ||
176
+ ( copyIsArray = Array.isArray( copy ) ) ) ) {
177
+ src = target[ name ];
178
+
179
+ // Ensure proper type for the source value
180
+ if ( copyIsArray && !Array.isArray( src ) ) {
181
+ clone = [];
182
+ } else if ( !copyIsArray && !jQuery.isPlainObject( src ) ) {
183
+ clone = {};
184
+ } else {
185
+ clone = src;
186
+ }
187
+ copyIsArray = false;
188
+
189
+ // Never move original objects, clone them
190
+ target[ name ] = jQuery.extend( deep, clone, copy );
191
+
192
+ // Don't bring in undefined values
193
+ } else if ( copy !== undefined ) {
194
+ target[ name ] = copy;
195
+ }
196
+ }
197
+ }
198
+ }
199
+
200
+ // Return the modified object
201
+ return target;
202
+ };
203
+
204
+ jQuery.extend( {
205
+
206
+ // Unique for each copy of jQuery on the page
207
+ expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ),
208
+
209
+ // Assume jQuery is ready without the ready module
210
+ isReady: true,
211
+
212
+ error: function( msg ) {
213
+ throw new Error( msg );
214
+ },
215
+
216
+ noop: function() {},
217
+
218
+ isPlainObject: function( obj ) {
219
+ var proto, Ctor;
220
+
221
+ // Detect obvious negatives
222
+ // Use toString instead of jQuery.type to catch host objects
223
+ if ( !obj || toString.call( obj ) !== "[object Object]" ) {
224
+ return false;
225
+ }
226
+
227
+ proto = getProto( obj );
228
+
229
+ // Objects with no prototype (e.g., `Object.create( null )`) are plain
230
+ if ( !proto ) {
231
+ return true;
232
+ }
233
+
234
+ // Objects with prototype are plain iff they were constructed by a global Object function
235
+ Ctor = hasOwn.call( proto, "constructor" ) && proto.constructor;
236
+ return typeof Ctor === "function" && fnToString.call( Ctor ) === ObjectFunctionString;
237
+ },
238
+
239
+ isEmptyObject: function( obj ) {
240
+ var name;
241
+
242
+ for ( name in obj ) {
243
+ return false;
244
+ }
245
+ return true;
246
+ },
247
+
248
+ // Evaluates a script in a provided context; falls back to the global one
249
+ // if not specified.
250
+ globalEval: function( code, options, doc ) {
251
+ DOMEval( code, { nonce: options && options.nonce }, doc );
252
+ },
253
+
254
+ each: function( obj, callback ) {
255
+ var length, i = 0;
256
+
257
+ if ( isArrayLike( obj ) ) {
258
+ length = obj.length;
259
+ for ( ; i < length; i++ ) {
260
+ if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
261
+ break;
262
+ }
263
+ }
264
+ } else {
265
+ for ( i in obj ) {
266
+ if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
267
+ break;
268
+ }
269
+ }
270
+ }
271
+
272
+ return obj;
273
+ },
274
+
275
+ // results is for internal usage only
276
+ makeArray: function( arr, results ) {
277
+ var ret = results || [];
278
+
279
+ if ( arr != null ) {
280
+ if ( isArrayLike( Object( arr ) ) ) {
281
+ jQuery.merge( ret,
282
+ typeof arr === "string" ?
283
+ [ arr ] : arr
284
+ );
285
+ } else {
286
+ push.call( ret, arr );
287
+ }
288
+ }
289
+
290
+ return ret;
291
+ },
292
+
293
+ inArray: function( elem, arr, i ) {
294
+ return arr == null ? -1 : indexOf.call( arr, elem, i );
295
+ },
296
+
297
+ // Support: Android <=4.0 only, PhantomJS 1 only
298
+ // push.apply(_, arraylike) throws on ancient WebKit
299
+ merge: function( first, second ) {
300
+ var len = +second.length,
301
+ j = 0,
302
+ i = first.length;
303
+
304
+ for ( ; j < len; j++ ) {
305
+ first[ i++ ] = second[ j ];
306
+ }
307
+
308
+ first.length = i;
309
+
310
+ return first;
311
+ },
312
+
313
+ grep: function( elems, callback, invert ) {
314
+ var callbackInverse,
315
+ matches = [],
316
+ i = 0,
317
+ length = elems.length,
318
+ callbackExpect = !invert;
319
+
320
+ // Go through the array, only saving the items
321
+ // that pass the validator function
322
+ for ( ; i < length; i++ ) {
323
+ callbackInverse = !callback( elems[ i ], i );
324
+ if ( callbackInverse !== callbackExpect ) {
325
+ matches.push( elems[ i ] );
326
+ }
327
+ }
328
+
329
+ return matches;
330
+ },
331
+
332
+ // arg is for internal usage only
333
+ map: function( elems, callback, arg ) {
334
+ var length, value,
335
+ i = 0,
336
+ ret = [];
337
+
338
+ // Go through the array, translating each of the items to their new values
339
+ if ( isArrayLike( elems ) ) {
340
+ length = elems.length;
341
+ for ( ; i < length; i++ ) {
342
+ value = callback( elems[ i ], i, arg );
343
+
344
+ if ( value != null ) {
345
+ ret.push( value );
346
+ }
347
+ }
348
+
349
+ // Go through every key on the object,
350
+ } else {
351
+ for ( i in elems ) {
352
+ value = callback( elems[ i ], i, arg );
353
+
354
+ if ( value != null ) {
355
+ ret.push( value );
356
+ }
357
+ }
358
+ }
359
+
360
+ // Flatten any nested arrays
361
+ return flat( ret );
362
+ },
363
+
364
+ // A global GUID counter for objects
365
+ guid: 1,
366
+
367
+ // jQuery.support is not used in Core but other projects attach their
368
+ // properties to it so it needs to exist.
369
+ support: support
370
+ } );
371
+
372
+ if ( typeof Symbol === "function" ) {
373
+ jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ];
374
+ }
375
+
376
+ // Populate the class2type map
377
+ jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ),
378
+ function( _i, name ) {
379
+ class2type[ "[object " + name + "]" ] = name.toLowerCase();
380
+ } );
381
+
382
+ function isArrayLike( obj ) {
383
+
384
+ // Support: real iOS 8.2 only (not reproducible in simulator)
385
+ // `in` check used to prevent JIT error (gh-2145)
386
+ // hasOwn isn't used here due to false negatives
387
+ // regarding Nodelist length in IE
388
+ var length = !!obj && "length" in obj && obj.length,
389
+ type = toType( obj );
390
+
391
+ if ( isFunction( obj ) || isWindow( obj ) ) {
392
+ return false;
393
+ }
394
+
395
+ return type === "array" || length === 0 ||
396
+ typeof length === "number" && length > 0 && ( length - 1 ) in obj;
397
+ }
398
+
399
+ return jQuery;
400
+ } );
@@ -0,0 +1,26 @@
1
+ define( function() {
2
+
3
+ "use strict";
4
+
5
+ function addGetHookIf( conditionFn, hookFn ) {
6
+
7
+ // Define the hook, we'll check on the first run if it's really needed.
8
+ return {
9
+ get: function() {
10
+ if ( conditionFn() ) {
11
+
12
+ // Hook not needed (or it's not possible to use it due
13
+ // to missing dependency), remove it.
14
+ delete this.get;
15
+ return;
16
+ }
17
+
18
+ // Hook needed; redefine it so that the support test is not executed again.
19
+ return ( this.get = hookFn ).apply( this, arguments );
20
+ }
21
+ };
22
+ }
23
+
24
+ return addGetHookIf;
25
+
26
+ } );