bootstrap-table-accent-neutralise.js 88 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668
  1. (function (global, factory) {
  2. typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
  3. typeof define === 'function' && define.amd ? define(['jquery'], factory) :
  4. (global = global || self, factory(global.jQuery));
  5. }(this, (function ($) { 'use strict';
  6. $ = $ && Object.prototype.hasOwnProperty.call($, 'default') ? $['default'] : $;
  7. var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
  8. function createCommonjsModule(fn, module) {
  9. return module = { exports: {} }, fn(module, module.exports), module.exports;
  10. }
  11. var check = function (it) {
  12. return it && it.Math == Math && it;
  13. };
  14. // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
  15. var global_1 =
  16. // eslint-disable-next-line no-undef
  17. check(typeof globalThis == 'object' && globalThis) ||
  18. check(typeof window == 'object' && window) ||
  19. check(typeof self == 'object' && self) ||
  20. check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
  21. // eslint-disable-next-line no-new-func
  22. Function('return this')();
  23. var fails = function (exec) {
  24. try {
  25. return !!exec();
  26. } catch (error) {
  27. return true;
  28. }
  29. };
  30. // Thank's IE8 for his funny defineProperty
  31. var descriptors = !fails(function () {
  32. return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
  33. });
  34. var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
  35. var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  36. // Nashorn ~ JDK8 bug
  37. var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
  38. // `Object.prototype.propertyIsEnumerable` method implementation
  39. // https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable
  40. var f = NASHORN_BUG ? function propertyIsEnumerable(V) {
  41. var descriptor = getOwnPropertyDescriptor(this, V);
  42. return !!descriptor && descriptor.enumerable;
  43. } : nativePropertyIsEnumerable;
  44. var objectPropertyIsEnumerable = {
  45. f: f
  46. };
  47. var createPropertyDescriptor = function (bitmap, value) {
  48. return {
  49. enumerable: !(bitmap & 1),
  50. configurable: !(bitmap & 2),
  51. writable: !(bitmap & 4),
  52. value: value
  53. };
  54. };
  55. var toString = {}.toString;
  56. var classofRaw = function (it) {
  57. return toString.call(it).slice(8, -1);
  58. };
  59. var split = ''.split;
  60. // fallback for non-array-like ES3 and non-enumerable old V8 strings
  61. var indexedObject = fails(function () {
  62. // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
  63. // eslint-disable-next-line no-prototype-builtins
  64. return !Object('z').propertyIsEnumerable(0);
  65. }) ? function (it) {
  66. return classofRaw(it) == 'String' ? split.call(it, '') : Object(it);
  67. } : Object;
  68. // `RequireObjectCoercible` abstract operation
  69. // https://tc39.github.io/ecma262/#sec-requireobjectcoercible
  70. var requireObjectCoercible = function (it) {
  71. if (it == undefined) throw TypeError("Can't call method on " + it);
  72. return it;
  73. };
  74. // toObject with fallback for non-array-like ES3 strings
  75. var toIndexedObject = function (it) {
  76. return indexedObject(requireObjectCoercible(it));
  77. };
  78. var isObject = function (it) {
  79. return typeof it === 'object' ? it !== null : typeof it === 'function';
  80. };
  81. // `ToPrimitive` abstract operation
  82. // https://tc39.github.io/ecma262/#sec-toprimitive
  83. // instead of the ES6 spec version, we didn't implement @@toPrimitive case
  84. // and the second argument - flag - preferred type is a string
  85. var toPrimitive = function (input, PREFERRED_STRING) {
  86. if (!isObject(input)) return input;
  87. var fn, val;
  88. if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
  89. if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;
  90. if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
  91. throw TypeError("Can't convert object to primitive value");
  92. };
  93. var hasOwnProperty = {}.hasOwnProperty;
  94. var has = function (it, key) {
  95. return hasOwnProperty.call(it, key);
  96. };
  97. var document$1 = global_1.document;
  98. // typeof document.createElement is 'object' in old IE
  99. var EXISTS = isObject(document$1) && isObject(document$1.createElement);
  100. var documentCreateElement = function (it) {
  101. return EXISTS ? document$1.createElement(it) : {};
  102. };
  103. // Thank's IE8 for his funny defineProperty
  104. var ie8DomDefine = !descriptors && !fails(function () {
  105. return Object.defineProperty(documentCreateElement('div'), 'a', {
  106. get: function () { return 7; }
  107. }).a != 7;
  108. });
  109. var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
  110. // `Object.getOwnPropertyDescriptor` method
  111. // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor
  112. var f$1 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
  113. O = toIndexedObject(O);
  114. P = toPrimitive(P, true);
  115. if (ie8DomDefine) try {
  116. return nativeGetOwnPropertyDescriptor(O, P);
  117. } catch (error) { /* empty */ }
  118. if (has(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);
  119. };
  120. var objectGetOwnPropertyDescriptor = {
  121. f: f$1
  122. };
  123. var anObject = function (it) {
  124. if (!isObject(it)) {
  125. throw TypeError(String(it) + ' is not an object');
  126. } return it;
  127. };
  128. var nativeDefineProperty = Object.defineProperty;
  129. // `Object.defineProperty` method
  130. // https://tc39.github.io/ecma262/#sec-object.defineproperty
  131. var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
  132. anObject(O);
  133. P = toPrimitive(P, true);
  134. anObject(Attributes);
  135. if (ie8DomDefine) try {
  136. return nativeDefineProperty(O, P, Attributes);
  137. } catch (error) { /* empty */ }
  138. if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
  139. if ('value' in Attributes) O[P] = Attributes.value;
  140. return O;
  141. };
  142. var objectDefineProperty = {
  143. f: f$2
  144. };
  145. var createNonEnumerableProperty = descriptors ? function (object, key, value) {
  146. return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value));
  147. } : function (object, key, value) {
  148. object[key] = value;
  149. return object;
  150. };
  151. var setGlobal = function (key, value) {
  152. try {
  153. createNonEnumerableProperty(global_1, key, value);
  154. } catch (error) {
  155. global_1[key] = value;
  156. } return value;
  157. };
  158. var SHARED = '__core-js_shared__';
  159. var store = global_1[SHARED] || setGlobal(SHARED, {});
  160. var sharedStore = store;
  161. var functionToString = Function.toString;
  162. // this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
  163. if (typeof sharedStore.inspectSource != 'function') {
  164. sharedStore.inspectSource = function (it) {
  165. return functionToString.call(it);
  166. };
  167. }
  168. var inspectSource = sharedStore.inspectSource;
  169. var WeakMap = global_1.WeakMap;
  170. var nativeWeakMap = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));
  171. var shared = createCommonjsModule(function (module) {
  172. (module.exports = function (key, value) {
  173. return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
  174. })('versions', []).push({
  175. version: '3.6.0',
  176. mode: 'global',
  177. copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
  178. });
  179. });
  180. var id = 0;
  181. var postfix = Math.random();
  182. var uid = function (key) {
  183. return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
  184. };
  185. var keys = shared('keys');
  186. var sharedKey = function (key) {
  187. return keys[key] || (keys[key] = uid(key));
  188. };
  189. var hiddenKeys = {};
  190. var WeakMap$1 = global_1.WeakMap;
  191. var set, get, has$1;
  192. var enforce = function (it) {
  193. return has$1(it) ? get(it) : set(it, {});
  194. };
  195. var getterFor = function (TYPE) {
  196. return function (it) {
  197. var state;
  198. if (!isObject(it) || (state = get(it)).type !== TYPE) {
  199. throw TypeError('Incompatible receiver, ' + TYPE + ' required');
  200. } return state;
  201. };
  202. };
  203. if (nativeWeakMap) {
  204. var store$1 = new WeakMap$1();
  205. var wmget = store$1.get;
  206. var wmhas = store$1.has;
  207. var wmset = store$1.set;
  208. set = function (it, metadata) {
  209. wmset.call(store$1, it, metadata);
  210. return metadata;
  211. };
  212. get = function (it) {
  213. return wmget.call(store$1, it) || {};
  214. };
  215. has$1 = function (it) {
  216. return wmhas.call(store$1, it);
  217. };
  218. } else {
  219. var STATE = sharedKey('state');
  220. hiddenKeys[STATE] = true;
  221. set = function (it, metadata) {
  222. createNonEnumerableProperty(it, STATE, metadata);
  223. return metadata;
  224. };
  225. get = function (it) {
  226. return has(it, STATE) ? it[STATE] : {};
  227. };
  228. has$1 = function (it) {
  229. return has(it, STATE);
  230. };
  231. }
  232. var internalState = {
  233. set: set,
  234. get: get,
  235. has: has$1,
  236. enforce: enforce,
  237. getterFor: getterFor
  238. };
  239. var redefine = createCommonjsModule(function (module) {
  240. var getInternalState = internalState.get;
  241. var enforceInternalState = internalState.enforce;
  242. var TEMPLATE = String(String).split('String');
  243. (module.exports = function (O, key, value, options) {
  244. var unsafe = options ? !!options.unsafe : false;
  245. var simple = options ? !!options.enumerable : false;
  246. var noTargetGet = options ? !!options.noTargetGet : false;
  247. if (typeof value == 'function') {
  248. if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key);
  249. enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');
  250. }
  251. if (O === global_1) {
  252. if (simple) O[key] = value;
  253. else setGlobal(key, value);
  254. return;
  255. } else if (!unsafe) {
  256. delete O[key];
  257. } else if (!noTargetGet && O[key]) {
  258. simple = true;
  259. }
  260. if (simple) O[key] = value;
  261. else createNonEnumerableProperty(O, key, value);
  262. // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
  263. })(Function.prototype, 'toString', function toString() {
  264. return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
  265. });
  266. });
  267. var path = global_1;
  268. var aFunction = function (variable) {
  269. return typeof variable == 'function' ? variable : undefined;
  270. };
  271. var getBuiltIn = function (namespace, method) {
  272. return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global_1[namespace])
  273. : path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method];
  274. };
  275. var ceil = Math.ceil;
  276. var floor = Math.floor;
  277. // `ToInteger` abstract operation
  278. // https://tc39.github.io/ecma262/#sec-tointeger
  279. var toInteger = function (argument) {
  280. return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);
  281. };
  282. var min = Math.min;
  283. // `ToLength` abstract operation
  284. // https://tc39.github.io/ecma262/#sec-tolength
  285. var toLength = function (argument) {
  286. return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
  287. };
  288. var max = Math.max;
  289. var min$1 = Math.min;
  290. // Helper for a popular repeating case of the spec:
  291. // Let integer be ? ToInteger(index).
  292. // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
  293. var toAbsoluteIndex = function (index, length) {
  294. var integer = toInteger(index);
  295. return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
  296. };
  297. // `Array.prototype.{ indexOf, includes }` methods implementation
  298. var createMethod = function (IS_INCLUDES) {
  299. return function ($this, el, fromIndex) {
  300. var O = toIndexedObject($this);
  301. var length = toLength(O.length);
  302. var index = toAbsoluteIndex(fromIndex, length);
  303. var value;
  304. // Array#includes uses SameValueZero equality algorithm
  305. // eslint-disable-next-line no-self-compare
  306. if (IS_INCLUDES && el != el) while (length > index) {
  307. value = O[index++];
  308. // eslint-disable-next-line no-self-compare
  309. if (value != value) return true;
  310. // Array#indexOf ignores holes, Array#includes - not
  311. } else for (;length > index; index++) {
  312. if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
  313. } return !IS_INCLUDES && -1;
  314. };
  315. };
  316. var arrayIncludes = {
  317. // `Array.prototype.includes` method
  318. // https://tc39.github.io/ecma262/#sec-array.prototype.includes
  319. includes: createMethod(true),
  320. // `Array.prototype.indexOf` method
  321. // https://tc39.github.io/ecma262/#sec-array.prototype.indexof
  322. indexOf: createMethod(false)
  323. };
  324. var indexOf = arrayIncludes.indexOf;
  325. var objectKeysInternal = function (object, names) {
  326. var O = toIndexedObject(object);
  327. var i = 0;
  328. var result = [];
  329. var key;
  330. for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);
  331. // Don't enum bug & hidden keys
  332. while (names.length > i) if (has(O, key = names[i++])) {
  333. ~indexOf(result, key) || result.push(key);
  334. }
  335. return result;
  336. };
  337. // IE8- don't enum bug keys
  338. var enumBugKeys = [
  339. 'constructor',
  340. 'hasOwnProperty',
  341. 'isPrototypeOf',
  342. 'propertyIsEnumerable',
  343. 'toLocaleString',
  344. 'toString',
  345. 'valueOf'
  346. ];
  347. var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
  348. // `Object.getOwnPropertyNames` method
  349. // https://tc39.github.io/ecma262/#sec-object.getownpropertynames
  350. var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
  351. return objectKeysInternal(O, hiddenKeys$1);
  352. };
  353. var objectGetOwnPropertyNames = {
  354. f: f$3
  355. };
  356. var f$4 = Object.getOwnPropertySymbols;
  357. var objectGetOwnPropertySymbols = {
  358. f: f$4
  359. };
  360. // all object keys, includes non-enumerable and symbols
  361. var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
  362. var keys = objectGetOwnPropertyNames.f(anObject(it));
  363. var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
  364. return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
  365. };
  366. var copyConstructorProperties = function (target, source) {
  367. var keys = ownKeys(source);
  368. var defineProperty = objectDefineProperty.f;
  369. var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
  370. for (var i = 0; i < keys.length; i++) {
  371. var key = keys[i];
  372. if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
  373. }
  374. };
  375. var replacement = /#|\.prototype\./;
  376. var isForced = function (feature, detection) {
  377. var value = data[normalize(feature)];
  378. return value == POLYFILL ? true
  379. : value == NATIVE ? false
  380. : typeof detection == 'function' ? fails(detection)
  381. : !!detection;
  382. };
  383. var normalize = isForced.normalize = function (string) {
  384. return String(string).replace(replacement, '.').toLowerCase();
  385. };
  386. var data = isForced.data = {};
  387. var NATIVE = isForced.NATIVE = 'N';
  388. var POLYFILL = isForced.POLYFILL = 'P';
  389. var isForced_1 = isForced;
  390. var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
  391. /*
  392. options.target - name of the target object
  393. options.global - target is the global object
  394. options.stat - export as static methods of target
  395. options.proto - export as prototype methods of target
  396. options.real - real prototype method for the `pure` version
  397. options.forced - export even if the native feature is available
  398. options.bind - bind methods to the target, required for the `pure` version
  399. options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
  400. options.unsafe - use the simple assignment of property instead of delete + defineProperty
  401. options.sham - add a flag to not completely full polyfills
  402. options.enumerable - export as enumerable property
  403. options.noTargetGet - prevent calling a getter on target
  404. */
  405. var _export = function (options, source) {
  406. var TARGET = options.target;
  407. var GLOBAL = options.global;
  408. var STATIC = options.stat;
  409. var FORCED, target, key, targetProperty, sourceProperty, descriptor;
  410. if (GLOBAL) {
  411. target = global_1;
  412. } else if (STATIC) {
  413. target = global_1[TARGET] || setGlobal(TARGET, {});
  414. } else {
  415. target = (global_1[TARGET] || {}).prototype;
  416. }
  417. if (target) for (key in source) {
  418. sourceProperty = source[key];
  419. if (options.noTargetGet) {
  420. descriptor = getOwnPropertyDescriptor$1(target, key);
  421. targetProperty = descriptor && descriptor.value;
  422. } else targetProperty = target[key];
  423. FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
  424. // contained in target
  425. if (!FORCED && targetProperty !== undefined) {
  426. if (typeof sourceProperty === typeof targetProperty) continue;
  427. copyConstructorProperties(sourceProperty, targetProperty);
  428. }
  429. // add a flag to not completely full polyfills
  430. if (options.sham || (targetProperty && targetProperty.sham)) {
  431. createNonEnumerableProperty(sourceProperty, 'sham', true);
  432. }
  433. // extend global
  434. redefine(target, key, sourceProperty, options);
  435. }
  436. };
  437. var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
  438. // Chrome 38 Symbol has incorrect toString conversion
  439. // eslint-disable-next-line no-undef
  440. return !String(Symbol());
  441. });
  442. var useSymbolAsUid = nativeSymbol
  443. // eslint-disable-next-line no-undef
  444. && !Symbol.sham
  445. // eslint-disable-next-line no-undef
  446. && typeof Symbol() == 'symbol';
  447. // `IsArray` abstract operation
  448. // https://tc39.github.io/ecma262/#sec-isarray
  449. var isArray = Array.isArray || function isArray(arg) {
  450. return classofRaw(arg) == 'Array';
  451. };
  452. // `ToObject` abstract operation
  453. // https://tc39.github.io/ecma262/#sec-toobject
  454. var toObject = function (argument) {
  455. return Object(requireObjectCoercible(argument));
  456. };
  457. // `Object.keys` method
  458. // https://tc39.github.io/ecma262/#sec-object.keys
  459. var objectKeys = Object.keys || function keys(O) {
  460. return objectKeysInternal(O, enumBugKeys);
  461. };
  462. // `Object.defineProperties` method
  463. // https://tc39.github.io/ecma262/#sec-object.defineproperties
  464. var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
  465. anObject(O);
  466. var keys = objectKeys(Properties);
  467. var length = keys.length;
  468. var index = 0;
  469. var key;
  470. while (length > index) objectDefineProperty.f(O, key = keys[index++], Properties[key]);
  471. return O;
  472. };
  473. var html = getBuiltIn('document', 'documentElement');
  474. var GT = '>';
  475. var LT = '<';
  476. var PROTOTYPE = 'prototype';
  477. var SCRIPT = 'script';
  478. var IE_PROTO = sharedKey('IE_PROTO');
  479. var EmptyConstructor = function () { /* empty */ };
  480. var scriptTag = function (content) {
  481. return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
  482. };
  483. // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
  484. var NullProtoObjectViaActiveX = function (activeXDocument) {
  485. activeXDocument.write(scriptTag(''));
  486. activeXDocument.close();
  487. var temp = activeXDocument.parentWindow.Object;
  488. activeXDocument = null; // avoid memory leak
  489. return temp;
  490. };
  491. // Create object with fake `null` prototype: use iframe Object with cleared prototype
  492. var NullProtoObjectViaIFrame = function () {
  493. // Thrash, waste and sodomy: IE GC bug
  494. var iframe = documentCreateElement('iframe');
  495. var JS = 'java' + SCRIPT + ':';
  496. var iframeDocument;
  497. iframe.style.display = 'none';
  498. html.appendChild(iframe);
  499. // https://github.com/zloirock/core-js/issues/475
  500. iframe.src = String(JS);
  501. iframeDocument = iframe.contentWindow.document;
  502. iframeDocument.open();
  503. iframeDocument.write(scriptTag('document.F=Object'));
  504. iframeDocument.close();
  505. return iframeDocument.F;
  506. };
  507. // Check for document.domain and active x support
  508. // No need to use active x approach when document.domain is not set
  509. // see https://github.com/es-shims/es5-shim/issues/150
  510. // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
  511. // avoid IE GC bug
  512. var activeXDocument;
  513. var NullProtoObject = function () {
  514. try {
  515. /* global ActiveXObject */
  516. activeXDocument = document.domain && new ActiveXObject('htmlfile');
  517. } catch (error) { /* ignore */ }
  518. NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();
  519. var length = enumBugKeys.length;
  520. while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
  521. return NullProtoObject();
  522. };
  523. hiddenKeys[IE_PROTO] = true;
  524. // `Object.create` method
  525. // https://tc39.github.io/ecma262/#sec-object.create
  526. var objectCreate = Object.create || function create(O, Properties) {
  527. var result;
  528. if (O !== null) {
  529. EmptyConstructor[PROTOTYPE] = anObject(O);
  530. result = new EmptyConstructor();
  531. EmptyConstructor[PROTOTYPE] = null;
  532. // add "__proto__" for Object.getPrototypeOf polyfill
  533. result[IE_PROTO] = O;
  534. } else result = NullProtoObject();
  535. return Properties === undefined ? result : objectDefineProperties(result, Properties);
  536. };
  537. var nativeGetOwnPropertyNames = objectGetOwnPropertyNames.f;
  538. var toString$1 = {}.toString;
  539. var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
  540. ? Object.getOwnPropertyNames(window) : [];
  541. var getWindowNames = function (it) {
  542. try {
  543. return nativeGetOwnPropertyNames(it);
  544. } catch (error) {
  545. return windowNames.slice();
  546. }
  547. };
  548. // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
  549. var f$5 = function getOwnPropertyNames(it) {
  550. return windowNames && toString$1.call(it) == '[object Window]'
  551. ? getWindowNames(it)
  552. : nativeGetOwnPropertyNames(toIndexedObject(it));
  553. };
  554. var objectGetOwnPropertyNamesExternal = {
  555. f: f$5
  556. };
  557. var WellKnownSymbolsStore = shared('wks');
  558. var Symbol$1 = global_1.Symbol;
  559. var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : uid;
  560. var wellKnownSymbol = function (name) {
  561. if (!has(WellKnownSymbolsStore, name)) {
  562. if (nativeSymbol && has(Symbol$1, name)) WellKnownSymbolsStore[name] = Symbol$1[name];
  563. else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
  564. } return WellKnownSymbolsStore[name];
  565. };
  566. var f$6 = wellKnownSymbol;
  567. var wrappedWellKnownSymbol = {
  568. f: f$6
  569. };
  570. var defineProperty = objectDefineProperty.f;
  571. var defineWellKnownSymbol = function (NAME) {
  572. var Symbol = path.Symbol || (path.Symbol = {});
  573. if (!has(Symbol, NAME)) defineProperty(Symbol, NAME, {
  574. value: wrappedWellKnownSymbol.f(NAME)
  575. });
  576. };
  577. var defineProperty$1 = objectDefineProperty.f;
  578. var TO_STRING_TAG = wellKnownSymbol('toStringTag');
  579. var setToStringTag = function (it, TAG, STATIC) {
  580. if (it && !has(it = STATIC ? it : it.prototype, TO_STRING_TAG)) {
  581. defineProperty$1(it, TO_STRING_TAG, { configurable: true, value: TAG });
  582. }
  583. };
  584. var aFunction$1 = function (it) {
  585. if (typeof it != 'function') {
  586. throw TypeError(String(it) + ' is not a function');
  587. } return it;
  588. };
  589. // optional / simple context binding
  590. var bindContext = function (fn, that, length) {
  591. aFunction$1(fn);
  592. if (that === undefined) return fn;
  593. switch (length) {
  594. case 0: return function () {
  595. return fn.call(that);
  596. };
  597. case 1: return function (a) {
  598. return fn.call(that, a);
  599. };
  600. case 2: return function (a, b) {
  601. return fn.call(that, a, b);
  602. };
  603. case 3: return function (a, b, c) {
  604. return fn.call(that, a, b, c);
  605. };
  606. }
  607. return function (/* ...args */) {
  608. return fn.apply(that, arguments);
  609. };
  610. };
  611. var SPECIES = wellKnownSymbol('species');
  612. // `ArraySpeciesCreate` abstract operation
  613. // https://tc39.github.io/ecma262/#sec-arrayspeciescreate
  614. var arraySpeciesCreate = function (originalArray, length) {
  615. var C;
  616. if (isArray(originalArray)) {
  617. C = originalArray.constructor;
  618. // cross-realm fallback
  619. if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
  620. else if (isObject(C)) {
  621. C = C[SPECIES];
  622. if (C === null) C = undefined;
  623. }
  624. } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
  625. };
  626. var push = [].push;
  627. // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex }` methods implementation
  628. var createMethod$1 = function (TYPE) {
  629. var IS_MAP = TYPE == 1;
  630. var IS_FILTER = TYPE == 2;
  631. var IS_SOME = TYPE == 3;
  632. var IS_EVERY = TYPE == 4;
  633. var IS_FIND_INDEX = TYPE == 6;
  634. var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
  635. return function ($this, callbackfn, that, specificCreate) {
  636. var O = toObject($this);
  637. var self = indexedObject(O);
  638. var boundFunction = bindContext(callbackfn, that, 3);
  639. var length = toLength(self.length);
  640. var index = 0;
  641. var create = specificCreate || arraySpeciesCreate;
  642. var target = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
  643. var value, result;
  644. for (;length > index; index++) if (NO_HOLES || index in self) {
  645. value = self[index];
  646. result = boundFunction(value, index, O);
  647. if (TYPE) {
  648. if (IS_MAP) target[index] = result; // map
  649. else if (result) switch (TYPE) {
  650. case 3: return true; // some
  651. case 5: return value; // find
  652. case 6: return index; // findIndex
  653. case 2: push.call(target, value); // filter
  654. } else if (IS_EVERY) return false; // every
  655. }
  656. }
  657. return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
  658. };
  659. };
  660. var arrayIteration = {
  661. // `Array.prototype.forEach` method
  662. // https://tc39.github.io/ecma262/#sec-array.prototype.foreach
  663. forEach: createMethod$1(0),
  664. // `Array.prototype.map` method
  665. // https://tc39.github.io/ecma262/#sec-array.prototype.map
  666. map: createMethod$1(1),
  667. // `Array.prototype.filter` method
  668. // https://tc39.github.io/ecma262/#sec-array.prototype.filter
  669. filter: createMethod$1(2),
  670. // `Array.prototype.some` method
  671. // https://tc39.github.io/ecma262/#sec-array.prototype.some
  672. some: createMethod$1(3),
  673. // `Array.prototype.every` method
  674. // https://tc39.github.io/ecma262/#sec-array.prototype.every
  675. every: createMethod$1(4),
  676. // `Array.prototype.find` method
  677. // https://tc39.github.io/ecma262/#sec-array.prototype.find
  678. find: createMethod$1(5),
  679. // `Array.prototype.findIndex` method
  680. // https://tc39.github.io/ecma262/#sec-array.prototype.findIndex
  681. findIndex: createMethod$1(6)
  682. };
  683. var $forEach = arrayIteration.forEach;
  684. var HIDDEN = sharedKey('hidden');
  685. var SYMBOL = 'Symbol';
  686. var PROTOTYPE$1 = 'prototype';
  687. var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
  688. var setInternalState = internalState.set;
  689. var getInternalState = internalState.getterFor(SYMBOL);
  690. var ObjectPrototype = Object[PROTOTYPE$1];
  691. var $Symbol = global_1.Symbol;
  692. var $stringify = getBuiltIn('JSON', 'stringify');
  693. var nativeGetOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
  694. var nativeDefineProperty$1 = objectDefineProperty.f;
  695. var nativeGetOwnPropertyNames$1 = objectGetOwnPropertyNamesExternal.f;
  696. var nativePropertyIsEnumerable$1 = objectPropertyIsEnumerable.f;
  697. var AllSymbols = shared('symbols');
  698. var ObjectPrototypeSymbols = shared('op-symbols');
  699. var StringToSymbolRegistry = shared('string-to-symbol-registry');
  700. var SymbolToStringRegistry = shared('symbol-to-string-registry');
  701. var WellKnownSymbolsStore$1 = shared('wks');
  702. var QObject = global_1.QObject;
  703. // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
  704. var USE_SETTER = !QObject || !QObject[PROTOTYPE$1] || !QObject[PROTOTYPE$1].findChild;
  705. // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
  706. var setSymbolDescriptor = descriptors && fails(function () {
  707. return objectCreate(nativeDefineProperty$1({}, 'a', {
  708. get: function () { return nativeDefineProperty$1(this, 'a', { value: 7 }).a; }
  709. })).a != 7;
  710. }) ? function (O, P, Attributes) {
  711. var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor$1(ObjectPrototype, P);
  712. if (ObjectPrototypeDescriptor) delete ObjectPrototype[P];
  713. nativeDefineProperty$1(O, P, Attributes);
  714. if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {
  715. nativeDefineProperty$1(ObjectPrototype, P, ObjectPrototypeDescriptor);
  716. }
  717. } : nativeDefineProperty$1;
  718. var wrap = function (tag, description) {
  719. var symbol = AllSymbols[tag] = objectCreate($Symbol[PROTOTYPE$1]);
  720. setInternalState(symbol, {
  721. type: SYMBOL,
  722. tag: tag,
  723. description: description
  724. });
  725. if (!descriptors) symbol.description = description;
  726. return symbol;
  727. };
  728. var isSymbol = nativeSymbol && typeof $Symbol.iterator == 'symbol' ? function (it) {
  729. return typeof it == 'symbol';
  730. } : function (it) {
  731. return Object(it) instanceof $Symbol;
  732. };
  733. var $defineProperty = function defineProperty(O, P, Attributes) {
  734. if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes);
  735. anObject(O);
  736. var key = toPrimitive(P, true);
  737. anObject(Attributes);
  738. if (has(AllSymbols, key)) {
  739. if (!Attributes.enumerable) {
  740. if (!has(O, HIDDEN)) nativeDefineProperty$1(O, HIDDEN, createPropertyDescriptor(1, {}));
  741. O[HIDDEN][key] = true;
  742. } else {
  743. if (has(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;
  744. Attributes = objectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) });
  745. } return setSymbolDescriptor(O, key, Attributes);
  746. } return nativeDefineProperty$1(O, key, Attributes);
  747. };
  748. var $defineProperties = function defineProperties(O, Properties) {
  749. anObject(O);
  750. var properties = toIndexedObject(Properties);
  751. var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties));
  752. $forEach(keys, function (key) {
  753. if (!descriptors || $propertyIsEnumerable.call(properties, key)) $defineProperty(O, key, properties[key]);
  754. });
  755. return O;
  756. };
  757. var $create = function create(O, Properties) {
  758. return Properties === undefined ? objectCreate(O) : $defineProperties(objectCreate(O), Properties);
  759. };
  760. var $propertyIsEnumerable = function propertyIsEnumerable(V) {
  761. var P = toPrimitive(V, true);
  762. var enumerable = nativePropertyIsEnumerable$1.call(this, P);
  763. if (this === ObjectPrototype && has(AllSymbols, P) && !has(ObjectPrototypeSymbols, P)) return false;
  764. return enumerable || !has(this, P) || !has(AllSymbols, P) || has(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true;
  765. };
  766. var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {
  767. var it = toIndexedObject(O);
  768. var key = toPrimitive(P, true);
  769. if (it === ObjectPrototype && has(AllSymbols, key) && !has(ObjectPrototypeSymbols, key)) return;
  770. var descriptor = nativeGetOwnPropertyDescriptor$1(it, key);
  771. if (descriptor && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) {
  772. descriptor.enumerable = true;
  773. }
  774. return descriptor;
  775. };
  776. var $getOwnPropertyNames = function getOwnPropertyNames(O) {
  777. var names = nativeGetOwnPropertyNames$1(toIndexedObject(O));
  778. var result = [];
  779. $forEach(names, function (key) {
  780. if (!has(AllSymbols, key) && !has(hiddenKeys, key)) result.push(key);
  781. });
  782. return result;
  783. };
  784. var $getOwnPropertySymbols = function getOwnPropertySymbols(O) {
  785. var IS_OBJECT_PROTOTYPE = O === ObjectPrototype;
  786. var names = nativeGetOwnPropertyNames$1(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O));
  787. var result = [];
  788. $forEach(names, function (key) {
  789. if (has(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || has(ObjectPrototype, key))) {
  790. result.push(AllSymbols[key]);
  791. }
  792. });
  793. return result;
  794. };
  795. // `Symbol` constructor
  796. // https://tc39.github.io/ecma262/#sec-symbol-constructor
  797. if (!nativeSymbol) {
  798. $Symbol = function Symbol() {
  799. if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor');
  800. var description = !arguments.length || arguments[0] === undefined ? undefined : String(arguments[0]);
  801. var tag = uid(description);
  802. var setter = function (value) {
  803. if (this === ObjectPrototype) setter.call(ObjectPrototypeSymbols, value);
  804. if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
  805. setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));
  806. };
  807. if (descriptors && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });
  808. return wrap(tag, description);
  809. };
  810. redefine($Symbol[PROTOTYPE$1], 'toString', function toString() {
  811. return getInternalState(this).tag;
  812. });
  813. objectPropertyIsEnumerable.f = $propertyIsEnumerable;
  814. objectDefineProperty.f = $defineProperty;
  815. objectGetOwnPropertyDescriptor.f = $getOwnPropertyDescriptor;
  816. objectGetOwnPropertyNames.f = objectGetOwnPropertyNamesExternal.f = $getOwnPropertyNames;
  817. objectGetOwnPropertySymbols.f = $getOwnPropertySymbols;
  818. if (descriptors) {
  819. // https://github.com/tc39/proposal-Symbol-description
  820. nativeDefineProperty$1($Symbol[PROTOTYPE$1], 'description', {
  821. configurable: true,
  822. get: function description() {
  823. return getInternalState(this).description;
  824. }
  825. });
  826. {
  827. redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });
  828. }
  829. }
  830. }
  831. if (!useSymbolAsUid) {
  832. wrappedWellKnownSymbol.f = function (name) {
  833. return wrap(wellKnownSymbol(name), name);
  834. };
  835. }
  836. _export({ global: true, wrap: true, forced: !nativeSymbol, sham: !nativeSymbol }, {
  837. Symbol: $Symbol
  838. });
  839. $forEach(objectKeys(WellKnownSymbolsStore$1), function (name) {
  840. defineWellKnownSymbol(name);
  841. });
  842. _export({ target: SYMBOL, stat: true, forced: !nativeSymbol }, {
  843. // `Symbol.for` method
  844. // https://tc39.github.io/ecma262/#sec-symbol.for
  845. 'for': function (key) {
  846. var string = String(key);
  847. if (has(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];
  848. var symbol = $Symbol(string);
  849. StringToSymbolRegistry[string] = symbol;
  850. SymbolToStringRegistry[symbol] = string;
  851. return symbol;
  852. },
  853. // `Symbol.keyFor` method
  854. // https://tc39.github.io/ecma262/#sec-symbol.keyfor
  855. keyFor: function keyFor(sym) {
  856. if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol');
  857. if (has(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];
  858. },
  859. useSetter: function () { USE_SETTER = true; },
  860. useSimple: function () { USE_SETTER = false; }
  861. });
  862. _export({ target: 'Object', stat: true, forced: !nativeSymbol, sham: !descriptors }, {
  863. // `Object.create` method
  864. // https://tc39.github.io/ecma262/#sec-object.create
  865. create: $create,
  866. // `Object.defineProperty` method
  867. // https://tc39.github.io/ecma262/#sec-object.defineproperty
  868. defineProperty: $defineProperty,
  869. // `Object.defineProperties` method
  870. // https://tc39.github.io/ecma262/#sec-object.defineproperties
  871. defineProperties: $defineProperties,
  872. // `Object.getOwnPropertyDescriptor` method
  873. // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptors
  874. getOwnPropertyDescriptor: $getOwnPropertyDescriptor
  875. });
  876. _export({ target: 'Object', stat: true, forced: !nativeSymbol }, {
  877. // `Object.getOwnPropertyNames` method
  878. // https://tc39.github.io/ecma262/#sec-object.getownpropertynames
  879. getOwnPropertyNames: $getOwnPropertyNames,
  880. // `Object.getOwnPropertySymbols` method
  881. // https://tc39.github.io/ecma262/#sec-object.getownpropertysymbols
  882. getOwnPropertySymbols: $getOwnPropertySymbols
  883. });
  884. // Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
  885. // https://bugs.chromium.org/p/v8/issues/detail?id=3443
  886. _export({ target: 'Object', stat: true, forced: fails(function () { objectGetOwnPropertySymbols.f(1); }) }, {
  887. getOwnPropertySymbols: function getOwnPropertySymbols(it) {
  888. return objectGetOwnPropertySymbols.f(toObject(it));
  889. }
  890. });
  891. // `JSON.stringify` method behavior with symbols
  892. // https://tc39.github.io/ecma262/#sec-json.stringify
  893. if ($stringify) {
  894. var FORCED_JSON_STRINGIFY = !nativeSymbol || fails(function () {
  895. var symbol = $Symbol();
  896. // MS Edge converts symbol values to JSON as {}
  897. return $stringify([symbol]) != '[null]'
  898. // WebKit converts symbol values to JSON as null
  899. || $stringify({ a: symbol }) != '{}'
  900. // V8 throws on boxed symbols
  901. || $stringify(Object(symbol)) != '{}';
  902. });
  903. _export({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, {
  904. // eslint-disable-next-line no-unused-vars
  905. stringify: function stringify(it, replacer, space) {
  906. var args = [it];
  907. var index = 1;
  908. var $replacer;
  909. while (arguments.length > index) args.push(arguments[index++]);
  910. $replacer = replacer;
  911. if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
  912. if (!isArray(replacer)) replacer = function (key, value) {
  913. if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
  914. if (!isSymbol(value)) return value;
  915. };
  916. args[1] = replacer;
  917. return $stringify.apply(null, args);
  918. }
  919. });
  920. }
  921. // `Symbol.prototype[@@toPrimitive]` method
  922. // https://tc39.github.io/ecma262/#sec-symbol.prototype-@@toprimitive
  923. if (!$Symbol[PROTOTYPE$1][TO_PRIMITIVE]) {
  924. createNonEnumerableProperty($Symbol[PROTOTYPE$1], TO_PRIMITIVE, $Symbol[PROTOTYPE$1].valueOf);
  925. }
  926. // `Symbol.prototype[@@toStringTag]` property
  927. // https://tc39.github.io/ecma262/#sec-symbol.prototype-@@tostringtag
  928. setToStringTag($Symbol, SYMBOL);
  929. hiddenKeys[HIDDEN] = true;
  930. var defineProperty$2 = objectDefineProperty.f;
  931. var NativeSymbol = global_1.Symbol;
  932. if (descriptors && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) ||
  933. // Safari 12 bug
  934. NativeSymbol().description !== undefined
  935. )) {
  936. var EmptyStringDescriptionStore = {};
  937. // wrap Symbol constructor for correct work with undefined description
  938. var SymbolWrapper = function Symbol() {
  939. var description = arguments.length < 1 || arguments[0] === undefined ? undefined : String(arguments[0]);
  940. var result = this instanceof SymbolWrapper
  941. ? new NativeSymbol(description)
  942. // in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
  943. : description === undefined ? NativeSymbol() : NativeSymbol(description);
  944. if (description === '') EmptyStringDescriptionStore[result] = true;
  945. return result;
  946. };
  947. copyConstructorProperties(SymbolWrapper, NativeSymbol);
  948. var symbolPrototype = SymbolWrapper.prototype = NativeSymbol.prototype;
  949. symbolPrototype.constructor = SymbolWrapper;
  950. var symbolToString = symbolPrototype.toString;
  951. var native = String(NativeSymbol('test')) == 'Symbol(test)';
  952. var regexp = /^Symbol\((.*)\)[^)]+$/;
  953. defineProperty$2(symbolPrototype, 'description', {
  954. configurable: true,
  955. get: function description() {
  956. var symbol = isObject(this) ? this.valueOf() : this;
  957. var string = symbolToString.call(symbol);
  958. if (has(EmptyStringDescriptionStore, symbol)) return '';
  959. var desc = native ? string.slice(7, -1) : string.replace(regexp, '$1');
  960. return desc === '' ? undefined : desc;
  961. }
  962. });
  963. _export({ global: true, forced: true }, {
  964. Symbol: SymbolWrapper
  965. });
  966. }
  967. // `Symbol.iterator` well-known symbol
  968. // https://tc39.github.io/ecma262/#sec-symbol.iterator
  969. defineWellKnownSymbol('iterator');
  970. var userAgent = getBuiltIn('navigator', 'userAgent') || '';
  971. var process = global_1.process;
  972. var versions = process && process.versions;
  973. var v8 = versions && versions.v8;
  974. var match, version;
  975. if (v8) {
  976. match = v8.split('.');
  977. version = match[0] + match[1];
  978. } else if (userAgent) {
  979. match = userAgent.match(/Edge\/(\d+)/);
  980. if (!match || match[1] >= 74) {
  981. match = userAgent.match(/Chrome\/(\d+)/);
  982. if (match) version = match[1];
  983. }
  984. }
  985. var v8Version = version && +version;
  986. var SPECIES$1 = wellKnownSymbol('species');
  987. var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
  988. // We can't use this feature detection in V8 since it causes
  989. // deoptimization and serious performance degradation
  990. // https://github.com/zloirock/core-js/issues/677
  991. return v8Version >= 51 || !fails(function () {
  992. var array = [];
  993. var constructor = array.constructor = {};
  994. constructor[SPECIES$1] = function () {
  995. return { foo: 1 };
  996. };
  997. return array[METHOD_NAME](Boolean).foo !== 1;
  998. });
  999. };
  1000. var $filter = arrayIteration.filter;
  1001. var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');
  1002. // Edge 14- issue
  1003. var USES_TO_LENGTH = HAS_SPECIES_SUPPORT && !fails(function () {
  1004. [].filter.call({ length: -1, 0: 1 }, function (it) { throw it; });
  1005. });
  1006. // `Array.prototype.filter` method
  1007. // https://tc39.github.io/ecma262/#sec-array.prototype.filter
  1008. // with adding support of @@species
  1009. _export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {
  1010. filter: function filter(callbackfn /* , thisArg */) {
  1011. return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
  1012. }
  1013. });
  1014. var UNSCOPABLES = wellKnownSymbol('unscopables');
  1015. var ArrayPrototype = Array.prototype;
  1016. // Array.prototype[@@unscopables]
  1017. // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
  1018. if (ArrayPrototype[UNSCOPABLES] == undefined) {
  1019. objectDefineProperty.f(ArrayPrototype, UNSCOPABLES, {
  1020. configurable: true,
  1021. value: objectCreate(null)
  1022. });
  1023. }
  1024. // add a key to Array.prototype[@@unscopables]
  1025. var addToUnscopables = function (key) {
  1026. ArrayPrototype[UNSCOPABLES][key] = true;
  1027. };
  1028. var $includes = arrayIncludes.includes;
  1029. // `Array.prototype.includes` method
  1030. // https://tc39.github.io/ecma262/#sec-array.prototype.includes
  1031. _export({ target: 'Array', proto: true }, {
  1032. includes: function includes(el /* , fromIndex = 0 */) {
  1033. return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
  1034. }
  1035. });
  1036. // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
  1037. addToUnscopables('includes');
  1038. var sloppyArrayMethod = function (METHOD_NAME, argument) {
  1039. var method = [][METHOD_NAME];
  1040. return !method || !fails(function () {
  1041. // eslint-disable-next-line no-useless-call,no-throw-literal
  1042. method.call(null, argument || function () { throw 1; }, 1);
  1043. });
  1044. };
  1045. var $indexOf = arrayIncludes.indexOf;
  1046. var nativeIndexOf = [].indexOf;
  1047. var NEGATIVE_ZERO = !!nativeIndexOf && 1 / [1].indexOf(1, -0) < 0;
  1048. var SLOPPY_METHOD = sloppyArrayMethod('indexOf');
  1049. // `Array.prototype.indexOf` method
  1050. // https://tc39.github.io/ecma262/#sec-array.prototype.indexof
  1051. _export({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || SLOPPY_METHOD }, {
  1052. indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {
  1053. return NEGATIVE_ZERO
  1054. // convert -0 to +0
  1055. ? nativeIndexOf.apply(this, arguments) || 0
  1056. : $indexOf(this, searchElement, arguments.length > 1 ? arguments[1] : undefined);
  1057. }
  1058. });
  1059. var correctPrototypeGetter = !fails(function () {
  1060. function F() { /* empty */ }
  1061. F.prototype.constructor = null;
  1062. return Object.getPrototypeOf(new F()) !== F.prototype;
  1063. });
  1064. var IE_PROTO$1 = sharedKey('IE_PROTO');
  1065. var ObjectPrototype$1 = Object.prototype;
  1066. // `Object.getPrototypeOf` method
  1067. // https://tc39.github.io/ecma262/#sec-object.getprototypeof
  1068. var objectGetPrototypeOf = correctPrototypeGetter ? Object.getPrototypeOf : function (O) {
  1069. O = toObject(O);
  1070. if (has(O, IE_PROTO$1)) return O[IE_PROTO$1];
  1071. if (typeof O.constructor == 'function' && O instanceof O.constructor) {
  1072. return O.constructor.prototype;
  1073. } return O instanceof Object ? ObjectPrototype$1 : null;
  1074. };
  1075. var ITERATOR = wellKnownSymbol('iterator');
  1076. var BUGGY_SAFARI_ITERATORS = false;
  1077. var returnThis = function () { return this; };
  1078. // `%IteratorPrototype%` object
  1079. // https://tc39.github.io/ecma262/#sec-%iteratorprototype%-object
  1080. var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;
  1081. if ([].keys) {
  1082. arrayIterator = [].keys();
  1083. // Safari 8 has buggy iterators w/o `next`
  1084. if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;
  1085. else {
  1086. PrototypeOfArrayIteratorPrototype = objectGetPrototypeOf(objectGetPrototypeOf(arrayIterator));
  1087. if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;
  1088. }
  1089. }
  1090. if (IteratorPrototype == undefined) IteratorPrototype = {};
  1091. // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
  1092. if ( !has(IteratorPrototype, ITERATOR)) {
  1093. createNonEnumerableProperty(IteratorPrototype, ITERATOR, returnThis);
  1094. }
  1095. var iteratorsCore = {
  1096. IteratorPrototype: IteratorPrototype,
  1097. BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
  1098. };
  1099. var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
  1100. var createIteratorConstructor = function (IteratorConstructor, NAME, next) {
  1101. var TO_STRING_TAG = NAME + ' Iterator';
  1102. IteratorConstructor.prototype = objectCreate(IteratorPrototype$1, { next: createPropertyDescriptor(1, next) });
  1103. setToStringTag(IteratorConstructor, TO_STRING_TAG, false);
  1104. return IteratorConstructor;
  1105. };
  1106. var aPossiblePrototype = function (it) {
  1107. if (!isObject(it) && it !== null) {
  1108. throw TypeError("Can't set " + String(it) + ' as a prototype');
  1109. } return it;
  1110. };
  1111. // `Object.setPrototypeOf` method
  1112. // https://tc39.github.io/ecma262/#sec-object.setprototypeof
  1113. // Works with __proto__ only. Old v8 can't work with null proto objects.
  1114. /* eslint-disable no-proto */
  1115. var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
  1116. var CORRECT_SETTER = false;
  1117. var test = {};
  1118. var setter;
  1119. try {
  1120. setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;
  1121. setter.call(test, []);
  1122. CORRECT_SETTER = test instanceof Array;
  1123. } catch (error) { /* empty */ }
  1124. return function setPrototypeOf(O, proto) {
  1125. anObject(O);
  1126. aPossiblePrototype(proto);
  1127. if (CORRECT_SETTER) setter.call(O, proto);
  1128. else O.__proto__ = proto;
  1129. return O;
  1130. };
  1131. }() : undefined);
  1132. var IteratorPrototype$2 = iteratorsCore.IteratorPrototype;
  1133. var BUGGY_SAFARI_ITERATORS$1 = iteratorsCore.BUGGY_SAFARI_ITERATORS;
  1134. var ITERATOR$1 = wellKnownSymbol('iterator');
  1135. var KEYS = 'keys';
  1136. var VALUES = 'values';
  1137. var ENTRIES = 'entries';
  1138. var returnThis$1 = function () { return this; };
  1139. var defineIterator = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
  1140. createIteratorConstructor(IteratorConstructor, NAME, next);
  1141. var getIterationMethod = function (KIND) {
  1142. if (KIND === DEFAULT && defaultIterator) return defaultIterator;
  1143. if (!BUGGY_SAFARI_ITERATORS$1 && KIND in IterablePrototype) return IterablePrototype[KIND];
  1144. switch (KIND) {
  1145. case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
  1146. case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
  1147. case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
  1148. } return function () { return new IteratorConstructor(this); };
  1149. };
  1150. var TO_STRING_TAG = NAME + ' Iterator';
  1151. var INCORRECT_VALUES_NAME = false;
  1152. var IterablePrototype = Iterable.prototype;
  1153. var nativeIterator = IterablePrototype[ITERATOR$1]
  1154. || IterablePrototype['@@iterator']
  1155. || DEFAULT && IterablePrototype[DEFAULT];
  1156. var defaultIterator = !BUGGY_SAFARI_ITERATORS$1 && nativeIterator || getIterationMethod(DEFAULT);
  1157. var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
  1158. var CurrentIteratorPrototype, methods, KEY;
  1159. // fix native
  1160. if (anyNativeIterator) {
  1161. CurrentIteratorPrototype = objectGetPrototypeOf(anyNativeIterator.call(new Iterable()));
  1162. if (IteratorPrototype$2 !== Object.prototype && CurrentIteratorPrototype.next) {
  1163. if ( objectGetPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype$2) {
  1164. if (objectSetPrototypeOf) {
  1165. objectSetPrototypeOf(CurrentIteratorPrototype, IteratorPrototype$2);
  1166. } else if (typeof CurrentIteratorPrototype[ITERATOR$1] != 'function') {
  1167. createNonEnumerableProperty(CurrentIteratorPrototype, ITERATOR$1, returnThis$1);
  1168. }
  1169. }
  1170. // Set @@toStringTag to native iterators
  1171. setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true);
  1172. }
  1173. }
  1174. // fix Array#{values, @@iterator}.name in V8 / FF
  1175. if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
  1176. INCORRECT_VALUES_NAME = true;
  1177. defaultIterator = function values() { return nativeIterator.call(this); };
  1178. }
  1179. // define iterator
  1180. if ( IterablePrototype[ITERATOR$1] !== defaultIterator) {
  1181. createNonEnumerableProperty(IterablePrototype, ITERATOR$1, defaultIterator);
  1182. }
  1183. // export additional methods
  1184. if (DEFAULT) {
  1185. methods = {
  1186. values: getIterationMethod(VALUES),
  1187. keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
  1188. entries: getIterationMethod(ENTRIES)
  1189. };
  1190. if (FORCED) for (KEY in methods) {
  1191. if (BUGGY_SAFARI_ITERATORS$1 || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
  1192. redefine(IterablePrototype, KEY, methods[KEY]);
  1193. }
  1194. } else _export({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS$1 || INCORRECT_VALUES_NAME }, methods);
  1195. }
  1196. return methods;
  1197. };
  1198. var ARRAY_ITERATOR = 'Array Iterator';
  1199. var setInternalState$1 = internalState.set;
  1200. var getInternalState$1 = internalState.getterFor(ARRAY_ITERATOR);
  1201. // `Array.prototype.entries` method
  1202. // https://tc39.github.io/ecma262/#sec-array.prototype.entries
  1203. // `Array.prototype.keys` method
  1204. // https://tc39.github.io/ecma262/#sec-array.prototype.keys
  1205. // `Array.prototype.values` method
  1206. // https://tc39.github.io/ecma262/#sec-array.prototype.values
  1207. // `Array.prototype[@@iterator]` method
  1208. // https://tc39.github.io/ecma262/#sec-array.prototype-@@iterator
  1209. // `CreateArrayIterator` internal method
  1210. // https://tc39.github.io/ecma262/#sec-createarrayiterator
  1211. var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
  1212. setInternalState$1(this, {
  1213. type: ARRAY_ITERATOR,
  1214. target: toIndexedObject(iterated), // target
  1215. index: 0, // next index
  1216. kind: kind // kind
  1217. });
  1218. // `%ArrayIteratorPrototype%.next` method
  1219. // https://tc39.github.io/ecma262/#sec-%arrayiteratorprototype%.next
  1220. }, function () {
  1221. var state = getInternalState$1(this);
  1222. var target = state.target;
  1223. var kind = state.kind;
  1224. var index = state.index++;
  1225. if (!target || index >= target.length) {
  1226. state.target = undefined;
  1227. return { value: undefined, done: true };
  1228. }
  1229. if (kind == 'keys') return { value: index, done: false };
  1230. if (kind == 'values') return { value: target[index], done: false };
  1231. return { value: [index, target[index]], done: false };
  1232. }, 'values');
  1233. // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
  1234. addToUnscopables('keys');
  1235. addToUnscopables('values');
  1236. addToUnscopables('entries');
  1237. var propertyIsEnumerable = objectPropertyIsEnumerable.f;
  1238. // `Object.{ entries, values }` methods implementation
  1239. var createMethod$2 = function (TO_ENTRIES) {
  1240. return function (it) {
  1241. var O = toIndexedObject(it);
  1242. var keys = objectKeys(O);
  1243. var length = keys.length;
  1244. var i = 0;
  1245. var result = [];
  1246. var key;
  1247. while (length > i) {
  1248. key = keys[i++];
  1249. if (!descriptors || propertyIsEnumerable.call(O, key)) {
  1250. result.push(TO_ENTRIES ? [key, O[key]] : O[key]);
  1251. }
  1252. }
  1253. return result;
  1254. };
  1255. };
  1256. var objectToArray = {
  1257. // `Object.entries` method
  1258. // https://tc39.github.io/ecma262/#sec-object.entries
  1259. entries: createMethod$2(true),
  1260. // `Object.values` method
  1261. // https://tc39.github.io/ecma262/#sec-object.values
  1262. values: createMethod$2(false)
  1263. };
  1264. var $entries = objectToArray.entries;
  1265. // `Object.entries` method
  1266. // https://tc39.github.io/ecma262/#sec-object.entries
  1267. _export({ target: 'Object', stat: true }, {
  1268. entries: function entries(O) {
  1269. return $entries(O);
  1270. }
  1271. });
  1272. var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
  1273. var test = {};
  1274. test[TO_STRING_TAG$1] = 'z';
  1275. var toStringTagSupport = String(test) === '[object z]';
  1276. var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
  1277. // ES3 wrong here
  1278. var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
  1279. // fallback for IE11 Script Access Denied error
  1280. var tryGet = function (it, key) {
  1281. try {
  1282. return it[key];
  1283. } catch (error) { /* empty */ }
  1284. };
  1285. // getting tag from ES6+ `Object.prototype.toString`
  1286. var classof = toStringTagSupport ? classofRaw : function (it) {
  1287. var O, tag, result;
  1288. return it === undefined ? 'Undefined' : it === null ? 'Null'
  1289. // @@toStringTag case
  1290. : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG$2)) == 'string' ? tag
  1291. // builtinTag case
  1292. : CORRECT_ARGUMENTS ? classofRaw(O)
  1293. // ES3 arguments fallback
  1294. : (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result;
  1295. };
  1296. // `Object.prototype.toString` method implementation
  1297. // https://tc39.github.io/ecma262/#sec-object.prototype.tostring
  1298. var objectToString = toStringTagSupport ? {}.toString : function toString() {
  1299. return '[object ' + classof(this) + ']';
  1300. };
  1301. // `Object.prototype.toString` method
  1302. // https://tc39.github.io/ecma262/#sec-object.prototype.tostring
  1303. if (!toStringTagSupport) {
  1304. redefine(Object.prototype, 'toString', objectToString, { unsafe: true });
  1305. }
  1306. // a string of all valid unicode whitespaces
  1307. // eslint-disable-next-line max-len
  1308. var whitespaces = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
  1309. var whitespace = '[' + whitespaces + ']';
  1310. var ltrim = RegExp('^' + whitespace + whitespace + '*');
  1311. var rtrim = RegExp(whitespace + whitespace + '*$');
  1312. // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
  1313. var createMethod$3 = function (TYPE) {
  1314. return function ($this) {
  1315. var string = String(requireObjectCoercible($this));
  1316. if (TYPE & 1) string = string.replace(ltrim, '');
  1317. if (TYPE & 2) string = string.replace(rtrim, '');
  1318. return string;
  1319. };
  1320. };
  1321. var stringTrim = {
  1322. // `String.prototype.{ trimLeft, trimStart }` methods
  1323. // https://tc39.github.io/ecma262/#sec-string.prototype.trimstart
  1324. start: createMethod$3(1),
  1325. // `String.prototype.{ trimRight, trimEnd }` methods
  1326. // https://tc39.github.io/ecma262/#sec-string.prototype.trimend
  1327. end: createMethod$3(2),
  1328. // `String.prototype.trim` method
  1329. // https://tc39.github.io/ecma262/#sec-string.prototype.trim
  1330. trim: createMethod$3(3)
  1331. };
  1332. var trim = stringTrim.trim;
  1333. var nativeParseInt = global_1.parseInt;
  1334. var hex = /^[+-]?0[Xx]/;
  1335. var FORCED = nativeParseInt(whitespaces + '08') !== 8 || nativeParseInt(whitespaces + '0x16') !== 22;
  1336. // `parseInt` method
  1337. // https://tc39.github.io/ecma262/#sec-parseint-string-radix
  1338. var _parseInt = FORCED ? function parseInt(string, radix) {
  1339. var S = trim(String(string));
  1340. return nativeParseInt(S, (radix >>> 0) || (hex.test(S) ? 16 : 10));
  1341. } : nativeParseInt;
  1342. // `parseInt` method
  1343. // https://tc39.github.io/ecma262/#sec-parseint-string-radix
  1344. _export({ global: true, forced: parseInt != _parseInt }, {
  1345. parseInt: _parseInt
  1346. });
  1347. // `RegExp.prototype.flags` getter implementation
  1348. // https://tc39.github.io/ecma262/#sec-get-regexp.prototype.flags
  1349. var regexpFlags = function () {
  1350. var that = anObject(this);
  1351. var result = '';
  1352. if (that.global) result += 'g';
  1353. if (that.ignoreCase) result += 'i';
  1354. if (that.multiline) result += 'm';
  1355. if (that.dotAll) result += 's';
  1356. if (that.unicode) result += 'u';
  1357. if (that.sticky) result += 'y';
  1358. return result;
  1359. };
  1360. // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError,
  1361. // so we use an intermediate function.
  1362. function RE(s, f) {
  1363. return RegExp(s, f);
  1364. }
  1365. var UNSUPPORTED_Y = fails(function () {
  1366. // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
  1367. var re = RE('a', 'y');
  1368. re.lastIndex = 2;
  1369. return re.exec('abcd') != null;
  1370. });
  1371. var BROKEN_CARET = fails(function () {
  1372. // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
  1373. var re = RE('^r', 'gy');
  1374. re.lastIndex = 2;
  1375. return re.exec('str') != null;
  1376. });
  1377. var regexpStickyHelpers = {
  1378. UNSUPPORTED_Y: UNSUPPORTED_Y,
  1379. BROKEN_CARET: BROKEN_CARET
  1380. };
  1381. var nativeExec = RegExp.prototype.exec;
  1382. // This always refers to the native implementation, because the
  1383. // String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,
  1384. // which loads this file before patching the method.
  1385. var nativeReplace = String.prototype.replace;
  1386. var patchedExec = nativeExec;
  1387. var UPDATES_LAST_INDEX_WRONG = (function () {
  1388. var re1 = /a/;
  1389. var re2 = /b*/g;
  1390. nativeExec.call(re1, 'a');
  1391. nativeExec.call(re2, 'a');
  1392. return re1.lastIndex !== 0 || re2.lastIndex !== 0;
  1393. })();
  1394. var UNSUPPORTED_Y$1 = regexpStickyHelpers.UNSUPPORTED_Y || regexpStickyHelpers.BROKEN_CARET;
  1395. // nonparticipating capturing group, copied from es5-shim's String#split patch.
  1396. var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
  1397. var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1;
  1398. if (PATCH) {
  1399. patchedExec = function exec(str) {
  1400. var re = this;
  1401. var lastIndex, reCopy, match, i;
  1402. var sticky = UNSUPPORTED_Y$1 && re.sticky;
  1403. var flags = regexpFlags.call(re);
  1404. var source = re.source;
  1405. var charsAdded = 0;
  1406. var strCopy = str;
  1407. if (sticky) {
  1408. flags = flags.replace('y', '');
  1409. if (flags.indexOf('g') === -1) {
  1410. flags += 'g';
  1411. }
  1412. strCopy = String(str).slice(re.lastIndex);
  1413. // Support anchored sticky behavior.
  1414. if (re.lastIndex > 0 && (!re.multiline || re.multiline && str[re.lastIndex - 1] !== '\n')) {
  1415. source = '(?: ' + source + ')';
  1416. strCopy = ' ' + strCopy;
  1417. charsAdded++;
  1418. }
  1419. // ^(? + rx + ) is needed, in combination with some str slicing, to
  1420. // simulate the 'y' flag.
  1421. reCopy = new RegExp('^(?:' + source + ')', flags);
  1422. }
  1423. if (NPCG_INCLUDED) {
  1424. reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
  1425. }
  1426. if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
  1427. match = nativeExec.call(sticky ? reCopy : re, strCopy);
  1428. if (sticky) {
  1429. if (match) {
  1430. match.input = match.input.slice(charsAdded);
  1431. match[0] = match[0].slice(charsAdded);
  1432. match.index = re.lastIndex;
  1433. re.lastIndex += match[0].length;
  1434. } else re.lastIndex = 0;
  1435. } else if (UPDATES_LAST_INDEX_WRONG && match) {
  1436. re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
  1437. }
  1438. if (NPCG_INCLUDED && match && match.length > 1) {
  1439. // Fix browsers whose `exec` methods don't consistently return `undefined`
  1440. // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
  1441. nativeReplace.call(match[0], reCopy, function () {
  1442. for (i = 1; i < arguments.length - 2; i++) {
  1443. if (arguments[i] === undefined) match[i] = undefined;
  1444. }
  1445. });
  1446. }
  1447. return match;
  1448. };
  1449. }
  1450. var regexpExec = patchedExec;
  1451. _export({ target: 'RegExp', proto: true, forced: /./.exec !== regexpExec }, {
  1452. exec: regexpExec
  1453. });
  1454. var MATCH = wellKnownSymbol('match');
  1455. // `IsRegExp` abstract operation
  1456. // https://tc39.github.io/ecma262/#sec-isregexp
  1457. var isRegexp = function (it) {
  1458. var isRegExp;
  1459. return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classofRaw(it) == 'RegExp');
  1460. };
  1461. var notARegexp = function (it) {
  1462. if (isRegexp(it)) {
  1463. throw TypeError("The method doesn't accept regular expressions");
  1464. } return it;
  1465. };
  1466. var MATCH$1 = wellKnownSymbol('match');
  1467. var correctIsRegexpLogic = function (METHOD_NAME) {
  1468. var regexp = /./;
  1469. try {
  1470. '/./'[METHOD_NAME](regexp);
  1471. } catch (e) {
  1472. try {
  1473. regexp[MATCH$1] = false;
  1474. return '/./'[METHOD_NAME](regexp);
  1475. } catch (f) { /* empty */ }
  1476. } return false;
  1477. };
  1478. // `String.prototype.includes` method
  1479. // https://tc39.github.io/ecma262/#sec-string.prototype.includes
  1480. _export({ target: 'String', proto: true, forced: !correctIsRegexpLogic('includes') }, {
  1481. includes: function includes(searchString /* , position = 0 */) {
  1482. return !!~String(requireObjectCoercible(this))
  1483. .indexOf(notARegexp(searchString), arguments.length > 1 ? arguments[1] : undefined);
  1484. }
  1485. });
  1486. // `String.prototype.{ codePointAt, at }` methods implementation
  1487. var createMethod$4 = function (CONVERT_TO_STRING) {
  1488. return function ($this, pos) {
  1489. var S = String(requireObjectCoercible($this));
  1490. var position = toInteger(pos);
  1491. var size = S.length;
  1492. var first, second;
  1493. if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
  1494. first = S.charCodeAt(position);
  1495. return first < 0xD800 || first > 0xDBFF || position + 1 === size
  1496. || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
  1497. ? CONVERT_TO_STRING ? S.charAt(position) : first
  1498. : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
  1499. };
  1500. };
  1501. var stringMultibyte = {
  1502. // `String.prototype.codePointAt` method
  1503. // https://tc39.github.io/ecma262/#sec-string.prototype.codepointat
  1504. codeAt: createMethod$4(false),
  1505. // `String.prototype.at` method
  1506. // https://github.com/mathiasbynens/String.prototype.at
  1507. charAt: createMethod$4(true)
  1508. };
  1509. var charAt = stringMultibyte.charAt;
  1510. var STRING_ITERATOR = 'String Iterator';
  1511. var setInternalState$2 = internalState.set;
  1512. var getInternalState$2 = internalState.getterFor(STRING_ITERATOR);
  1513. // `String.prototype[@@iterator]` method
  1514. // https://tc39.github.io/ecma262/#sec-string.prototype-@@iterator
  1515. defineIterator(String, 'String', function (iterated) {
  1516. setInternalState$2(this, {
  1517. type: STRING_ITERATOR,
  1518. string: String(iterated),
  1519. index: 0
  1520. });
  1521. // `%StringIteratorPrototype%.next` method
  1522. // https://tc39.github.io/ecma262/#sec-%stringiteratorprototype%.next
  1523. }, function next() {
  1524. var state = getInternalState$2(this);
  1525. var string = state.string;
  1526. var index = state.index;
  1527. var point;
  1528. if (index >= string.length) return { value: undefined, done: true };
  1529. point = charAt(string, index);
  1530. state.index += point.length;
  1531. return { value: point, done: false };
  1532. });
  1533. var SPECIES$2 = wellKnownSymbol('species');
  1534. var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
  1535. // #replace needs built-in support for named groups.
  1536. // #match works fine because it just return the exec results, even if it has
  1537. // a "grops" property.
  1538. var re = /./;
  1539. re.exec = function () {
  1540. var result = [];
  1541. result.groups = { a: '7' };
  1542. return result;
  1543. };
  1544. return ''.replace(re, '$<a>') !== '7';
  1545. });
  1546. // IE <= 11 replaces $0 with the whole match, as if it was $&
  1547. // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
  1548. var REPLACE_KEEPS_$0 = (function () {
  1549. return 'a'.replace(/./, '$0') === '$0';
  1550. })();
  1551. // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
  1552. // Weex JS has frozen built-in prototypes, so use try / catch wrapper
  1553. var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
  1554. var re = /(?:)/;
  1555. var originalExec = re.exec;
  1556. re.exec = function () { return originalExec.apply(this, arguments); };
  1557. var result = 'ab'.split(re);
  1558. return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
  1559. });
  1560. var fixRegexpWellKnownSymbolLogic = function (KEY, length, exec, sham) {
  1561. var SYMBOL = wellKnownSymbol(KEY);
  1562. var DELEGATES_TO_SYMBOL = !fails(function () {
  1563. // String methods call symbol-named RegEp methods
  1564. var O = {};
  1565. O[SYMBOL] = function () { return 7; };
  1566. return ''[KEY](O) != 7;
  1567. });
  1568. var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {
  1569. // Symbol-named RegExp methods call .exec
  1570. var execCalled = false;
  1571. var re = /a/;
  1572. if (KEY === 'split') {
  1573. // We can't use real regex here since it causes deoptimization
  1574. // and serious performance degradation in V8
  1575. // https://github.com/zloirock/core-js/issues/306
  1576. re = {};
  1577. // RegExp[@@split] doesn't call the regex's exec method, but first creates
  1578. // a new one. We need to return the patched regex when creating the new one.
  1579. re.constructor = {};
  1580. re.constructor[SPECIES$2] = function () { return re; };
  1581. re.flags = '';
  1582. re[SYMBOL] = /./[SYMBOL];
  1583. }
  1584. re.exec = function () { execCalled = true; return null; };
  1585. re[SYMBOL]('');
  1586. return !execCalled;
  1587. });
  1588. if (
  1589. !DELEGATES_TO_SYMBOL ||
  1590. !DELEGATES_TO_EXEC ||
  1591. (KEY === 'replace' && !(REPLACE_SUPPORTS_NAMED_GROUPS && REPLACE_KEEPS_$0)) ||
  1592. (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
  1593. ) {
  1594. var nativeRegExpMethod = /./[SYMBOL];
  1595. var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
  1596. if (regexp.exec === regexpExec) {
  1597. if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
  1598. // The native String method already delegates to @@method (this
  1599. // polyfilled function), leasing to infinite recursion.
  1600. // We avoid it by directly calling the native @@method method.
  1601. return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
  1602. }
  1603. return { done: true, value: nativeMethod.call(str, regexp, arg2) };
  1604. }
  1605. return { done: false };
  1606. }, { REPLACE_KEEPS_$0: REPLACE_KEEPS_$0 });
  1607. var stringMethod = methods[0];
  1608. var regexMethod = methods[1];
  1609. redefine(String.prototype, KEY, stringMethod);
  1610. redefine(RegExp.prototype, SYMBOL, length == 2
  1611. // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
  1612. // 21.2.5.11 RegExp.prototype[@@split](string, limit)
  1613. ? function (string, arg) { return regexMethod.call(string, this, arg); }
  1614. // 21.2.5.6 RegExp.prototype[@@match](string)
  1615. // 21.2.5.9 RegExp.prototype[@@search](string)
  1616. : function (string) { return regexMethod.call(string, this); }
  1617. );
  1618. }
  1619. if (sham) createNonEnumerableProperty(RegExp.prototype[SYMBOL], 'sham', true);
  1620. };
  1621. var charAt$1 = stringMultibyte.charAt;
  1622. // `AdvanceStringIndex` abstract operation
  1623. // https://tc39.github.io/ecma262/#sec-advancestringindex
  1624. var advanceStringIndex = function (S, index, unicode) {
  1625. return index + (unicode ? charAt$1(S, index).length : 1);
  1626. };
  1627. // `RegExpExec` abstract operation
  1628. // https://tc39.github.io/ecma262/#sec-regexpexec
  1629. var regexpExecAbstract = function (R, S) {
  1630. var exec = R.exec;
  1631. if (typeof exec === 'function') {
  1632. var result = exec.call(R, S);
  1633. if (typeof result !== 'object') {
  1634. throw TypeError('RegExp exec method returned something other than an Object or null');
  1635. }
  1636. return result;
  1637. }
  1638. if (classofRaw(R) !== 'RegExp') {
  1639. throw TypeError('RegExp#exec called on incompatible receiver');
  1640. }
  1641. return regexpExec.call(R, S);
  1642. };
  1643. var max$1 = Math.max;
  1644. var min$2 = Math.min;
  1645. var floor$1 = Math.floor;
  1646. var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d\d?|<[^>]*>)/g;
  1647. var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d\d?)/g;
  1648. var maybeToString = function (it) {
  1649. return it === undefined ? it : String(it);
  1650. };
  1651. // @@replace logic
  1652. fixRegexpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, maybeCallNative, reason) {
  1653. return [
  1654. // `String.prototype.replace` method
  1655. // https://tc39.github.io/ecma262/#sec-string.prototype.replace
  1656. function replace(searchValue, replaceValue) {
  1657. var O = requireObjectCoercible(this);
  1658. var replacer = searchValue == undefined ? undefined : searchValue[REPLACE];
  1659. return replacer !== undefined
  1660. ? replacer.call(searchValue, O, replaceValue)
  1661. : nativeReplace.call(String(O), searchValue, replaceValue);
  1662. },
  1663. // `RegExp.prototype[@@replace]` method
  1664. // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace
  1665. function (regexp, replaceValue) {
  1666. if (reason.REPLACE_KEEPS_$0 || (typeof replaceValue === 'string' && replaceValue.indexOf('$0') === -1)) {
  1667. var res = maybeCallNative(nativeReplace, regexp, this, replaceValue);
  1668. if (res.done) return res.value;
  1669. }
  1670. var rx = anObject(regexp);
  1671. var S = String(this);
  1672. var functionalReplace = typeof replaceValue === 'function';
  1673. if (!functionalReplace) replaceValue = String(replaceValue);
  1674. var global = rx.global;
  1675. if (global) {
  1676. var fullUnicode = rx.unicode;
  1677. rx.lastIndex = 0;
  1678. }
  1679. var results = [];
  1680. while (true) {
  1681. var result = regexpExecAbstract(rx, S);
  1682. if (result === null) break;
  1683. results.push(result);
  1684. if (!global) break;
  1685. var matchStr = String(result[0]);
  1686. if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
  1687. }
  1688. var accumulatedResult = '';
  1689. var nextSourcePosition = 0;
  1690. for (var i = 0; i < results.length; i++) {
  1691. result = results[i];
  1692. var matched = String(result[0]);
  1693. var position = max$1(min$2(toInteger(result.index), S.length), 0);
  1694. var captures = [];
  1695. // NOTE: This is equivalent to
  1696. // captures = result.slice(1).map(maybeToString)
  1697. // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
  1698. // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
  1699. // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
  1700. for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
  1701. var namedCaptures = result.groups;
  1702. if (functionalReplace) {
  1703. var replacerArgs = [matched].concat(captures, position, S);
  1704. if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
  1705. var replacement = String(replaceValue.apply(undefined, replacerArgs));
  1706. } else {
  1707. replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
  1708. }
  1709. if (position >= nextSourcePosition) {
  1710. accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
  1711. nextSourcePosition = position + matched.length;
  1712. }
  1713. }
  1714. return accumulatedResult + S.slice(nextSourcePosition);
  1715. }
  1716. ];
  1717. // https://tc39.github.io/ecma262/#sec-getsubstitution
  1718. function getSubstitution(matched, str, position, captures, namedCaptures, replacement) {
  1719. var tailPos = position + matched.length;
  1720. var m = captures.length;
  1721. var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
  1722. if (namedCaptures !== undefined) {
  1723. namedCaptures = toObject(namedCaptures);
  1724. symbols = SUBSTITUTION_SYMBOLS;
  1725. }
  1726. return nativeReplace.call(replacement, symbols, function (match, ch) {
  1727. var capture;
  1728. switch (ch.charAt(0)) {
  1729. case '$': return '$';
  1730. case '&': return matched;
  1731. case '`': return str.slice(0, position);
  1732. case "'": return str.slice(tailPos);
  1733. case '<':
  1734. capture = namedCaptures[ch.slice(1, -1)];
  1735. break;
  1736. default: // \d\d?
  1737. var n = +ch;
  1738. if (n === 0) return match;
  1739. if (n > m) {
  1740. var f = floor$1(n / 10);
  1741. if (f === 0) return match;
  1742. if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
  1743. return match;
  1744. }
  1745. capture = captures[n - 1];
  1746. }
  1747. return capture === undefined ? '' : capture;
  1748. });
  1749. }
  1750. });
  1751. // iterable DOM collections
  1752. // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
  1753. var domIterables = {
  1754. CSSRuleList: 0,
  1755. CSSStyleDeclaration: 0,
  1756. CSSValueList: 0,
  1757. ClientRectList: 0,
  1758. DOMRectList: 0,
  1759. DOMStringList: 0,
  1760. DOMTokenList: 1,
  1761. DataTransferItemList: 0,
  1762. FileList: 0,
  1763. HTMLAllCollection: 0,
  1764. HTMLCollection: 0,
  1765. HTMLFormElement: 0,
  1766. HTMLSelectElement: 0,
  1767. MediaList: 0,
  1768. MimeTypeArray: 0,
  1769. NamedNodeMap: 0,
  1770. NodeList: 1,
  1771. PaintRequestList: 0,
  1772. Plugin: 0,
  1773. PluginArray: 0,
  1774. SVGLengthList: 0,
  1775. SVGNumberList: 0,
  1776. SVGPathSegList: 0,
  1777. SVGPointList: 0,
  1778. SVGStringList: 0,
  1779. SVGTransformList: 0,
  1780. SourceBufferList: 0,
  1781. StyleSheetList: 0,
  1782. TextTrackCueList: 0,
  1783. TextTrackList: 0,
  1784. TouchList: 0
  1785. };
  1786. var ITERATOR$2 = wellKnownSymbol('iterator');
  1787. var TO_STRING_TAG$3 = wellKnownSymbol('toStringTag');
  1788. var ArrayValues = es_array_iterator.values;
  1789. for (var COLLECTION_NAME in domIterables) {
  1790. var Collection = global_1[COLLECTION_NAME];
  1791. var CollectionPrototype = Collection && Collection.prototype;
  1792. if (CollectionPrototype) {
  1793. // some Chrome versions have non-configurable methods on DOMTokenList
  1794. if (CollectionPrototype[ITERATOR$2] !== ArrayValues) try {
  1795. createNonEnumerableProperty(CollectionPrototype, ITERATOR$2, ArrayValues);
  1796. } catch (error) {
  1797. CollectionPrototype[ITERATOR$2] = ArrayValues;
  1798. }
  1799. if (!CollectionPrototype[TO_STRING_TAG$3]) {
  1800. createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG$3, COLLECTION_NAME);
  1801. }
  1802. if (domIterables[COLLECTION_NAME]) for (var METHOD_NAME in es_array_iterator) {
  1803. // some Chrome versions have non-configurable methods on DOMTokenList
  1804. if (CollectionPrototype[METHOD_NAME] !== es_array_iterator[METHOD_NAME]) try {
  1805. createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, es_array_iterator[METHOD_NAME]);
  1806. } catch (error) {
  1807. CollectionPrototype[METHOD_NAME] = es_array_iterator[METHOD_NAME];
  1808. }
  1809. }
  1810. }
  1811. }
  1812. function _classCallCheck(instance, Constructor) {
  1813. if (!(instance instanceof Constructor)) {
  1814. throw new TypeError("Cannot call a class as a function");
  1815. }
  1816. }
  1817. function _defineProperties(target, props) {
  1818. for (var i = 0; i < props.length; i++) {
  1819. var descriptor = props[i];
  1820. descriptor.enumerable = descriptor.enumerable || false;
  1821. descriptor.configurable = true;
  1822. if ("value" in descriptor) descriptor.writable = true;
  1823. Object.defineProperty(target, descriptor.key, descriptor);
  1824. }
  1825. }
  1826. function _createClass(Constructor, protoProps, staticProps) {
  1827. if (protoProps) _defineProperties(Constructor.prototype, protoProps);
  1828. if (staticProps) _defineProperties(Constructor, staticProps);
  1829. return Constructor;
  1830. }
  1831. function _inherits(subClass, superClass) {
  1832. if (typeof superClass !== "function" && superClass !== null) {
  1833. throw new TypeError("Super expression must either be null or a function");
  1834. }
  1835. subClass.prototype = Object.create(superClass && superClass.prototype, {
  1836. constructor: {
  1837. value: subClass,
  1838. writable: true,
  1839. configurable: true
  1840. }
  1841. });
  1842. if (superClass) _setPrototypeOf(subClass, superClass);
  1843. }
  1844. function _getPrototypeOf(o) {
  1845. _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
  1846. return o.__proto__ || Object.getPrototypeOf(o);
  1847. };
  1848. return _getPrototypeOf(o);
  1849. }
  1850. function _setPrototypeOf(o, p) {
  1851. _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
  1852. o.__proto__ = p;
  1853. return o;
  1854. };
  1855. return _setPrototypeOf(o, p);
  1856. }
  1857. function _assertThisInitialized(self) {
  1858. if (self === void 0) {
  1859. throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
  1860. }
  1861. return self;
  1862. }
  1863. function _possibleConstructorReturn(self, call) {
  1864. if (call && (typeof call === "object" || typeof call === "function")) {
  1865. return call;
  1866. }
  1867. return _assertThisInitialized(self);
  1868. }
  1869. function _superPropBase(object, property) {
  1870. while (!Object.prototype.hasOwnProperty.call(object, property)) {
  1871. object = _getPrototypeOf(object);
  1872. if (object === null) break;
  1873. }
  1874. return object;
  1875. }
  1876. function _get(target, property, receiver) {
  1877. if (typeof Reflect !== "undefined" && Reflect.get) {
  1878. _get = Reflect.get;
  1879. } else {
  1880. _get = function _get(target, property, receiver) {
  1881. var base = _superPropBase(target, property);
  1882. if (!base) return;
  1883. var desc = Object.getOwnPropertyDescriptor(base, property);
  1884. if (desc.get) {
  1885. return desc.get.call(receiver);
  1886. }
  1887. return desc.value;
  1888. };
  1889. }
  1890. return _get(target, property, receiver || target);
  1891. }
  1892. function _slicedToArray(arr, i) {
  1893. return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest();
  1894. }
  1895. function _toConsumableArray(arr) {
  1896. return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
  1897. }
  1898. function _arrayWithoutHoles(arr) {
  1899. if (Array.isArray(arr)) {
  1900. for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
  1901. return arr2;
  1902. }
  1903. }
  1904. function _arrayWithHoles(arr) {
  1905. if (Array.isArray(arr)) return arr;
  1906. }
  1907. function _iterableToArray(iter) {
  1908. if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
  1909. }
  1910. function _iterableToArrayLimit(arr, i) {
  1911. if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
  1912. return;
  1913. }
  1914. var _arr = [];
  1915. var _n = true;
  1916. var _d = false;
  1917. var _e = undefined;
  1918. try {
  1919. for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
  1920. _arr.push(_s.value);
  1921. if (i && _arr.length === i) break;
  1922. }
  1923. } catch (err) {
  1924. _d = true;
  1925. _e = err;
  1926. } finally {
  1927. try {
  1928. if (!_n && _i["return"] != null) _i["return"]();
  1929. } finally {
  1930. if (_d) throw _e;
  1931. }
  1932. }
  1933. return _arr;
  1934. }
  1935. function _nonIterableSpread() {
  1936. throw new TypeError("Invalid attempt to spread non-iterable instance");
  1937. }
  1938. function _nonIterableRest() {
  1939. throw new TypeError("Invalid attempt to destructure non-iterable instance");
  1940. }
  1941. /**
  1942. * @author: Dennis Hernández
  1943. * @webSite: http://djhvscf.github.io/Blog
  1944. * @update: zhixin wen <wenzhixin2010@gmail.com>
  1945. */
  1946. var diacriticsMap = {};
  1947. var defaultAccentsDiacritics = [{
  1948. base: 'A',
  1949. letters: "A\u24B6\uFF21\xC0\xC1\xC2\u1EA6\u1EA4\u1EAA\u1EA8\xC3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\xC4\u01DE\u1EA2\xC5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F"
  1950. }, {
  1951. base: 'AA',
  1952. letters: "\uA732"
  1953. }, {
  1954. base: 'AE',
  1955. letters: "\xC6\u01FC\u01E2"
  1956. }, {
  1957. base: 'AO',
  1958. letters: "\uA734"
  1959. }, {
  1960. base: 'AU',
  1961. letters: "\uA736"
  1962. }, {
  1963. base: 'AV',
  1964. letters: "\uA738\uA73A"
  1965. }, {
  1966. base: 'AY',
  1967. letters: "\uA73C"
  1968. }, {
  1969. base: 'B',
  1970. letters: "B\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181"
  1971. }, {
  1972. base: 'C',
  1973. letters: "C\u24B8\uFF23\u0106\u0108\u010A\u010C\xC7\u1E08\u0187\u023B\uA73E"
  1974. }, {
  1975. base: 'D',
  1976. letters: "D\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779"
  1977. }, {
  1978. base: 'DZ',
  1979. letters: "\u01F1\u01C4"
  1980. }, {
  1981. base: 'Dz',
  1982. letters: "\u01F2\u01C5"
  1983. }, {
  1984. base: 'E',
  1985. letters: "E\u24BA\uFF25\xC8\xC9\xCA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\xCB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E"
  1986. }, {
  1987. base: 'F',
  1988. letters: "F\u24BB\uFF26\u1E1E\u0191\uA77B"
  1989. }, {
  1990. base: 'G',
  1991. letters: "G\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E"
  1992. }, {
  1993. base: 'H',
  1994. letters: "H\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D"
  1995. }, {
  1996. base: 'I',
  1997. letters: "I\u24BE\uFF29\xCC\xCD\xCE\u0128\u012A\u012C\u0130\xCF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197"
  1998. }, {
  1999. base: 'J',
  2000. letters: "J\u24BF\uFF2A\u0134\u0248"
  2001. }, {
  2002. base: 'K',
  2003. letters: "K\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2"
  2004. }, {
  2005. base: 'L',
  2006. letters: "L\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780"
  2007. }, {
  2008. base: 'LJ',
  2009. letters: "\u01C7"
  2010. }, {
  2011. base: 'Lj',
  2012. letters: "\u01C8"
  2013. }, {
  2014. base: 'M',
  2015. letters: "M\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C"
  2016. }, {
  2017. base: 'N',
  2018. letters: "N\u24C3\uFF2E\u01F8\u0143\xD1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4"
  2019. }, {
  2020. base: 'NJ',
  2021. letters: "\u01CA"
  2022. }, {
  2023. base: 'Nj',
  2024. letters: "\u01CB"
  2025. }, {
  2026. base: 'O',
  2027. letters: "O\u24C4\uFF2F\xD2\xD3\xD4\u1ED2\u1ED0\u1ED6\u1ED4\xD5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\xD6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\xD8\u01FE\u0186\u019F\uA74A\uA74C"
  2028. }, {
  2029. base: 'OI',
  2030. letters: "\u01A2"
  2031. }, {
  2032. base: 'OO',
  2033. letters: "\uA74E"
  2034. }, {
  2035. base: 'OU',
  2036. letters: "\u0222"
  2037. }, {
  2038. base: 'OE',
  2039. letters: "\x8C\u0152"
  2040. }, {
  2041. base: 'oe',
  2042. letters: "\x9C\u0153"
  2043. }, {
  2044. base: 'P',
  2045. letters: "P\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754"
  2046. }, {
  2047. base: 'Q',
  2048. letters: "Q\u24C6\uFF31\uA756\uA758\u024A"
  2049. }, {
  2050. base: 'R',
  2051. letters: "R\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782"
  2052. }, {
  2053. base: 'S',
  2054. letters: "S\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784"
  2055. }, {
  2056. base: 'T',
  2057. letters: "T\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786"
  2058. }, {
  2059. base: 'TZ',
  2060. letters: "\uA728"
  2061. }, {
  2062. base: 'U',
  2063. letters: "U\u24CA\uFF35\xD9\xDA\xDB\u0168\u1E78\u016A\u1E7A\u016C\xDC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244"
  2064. }, {
  2065. base: 'V',
  2066. letters: "V\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245"
  2067. }, {
  2068. base: 'VY',
  2069. letters: "\uA760"
  2070. }, {
  2071. base: 'W',
  2072. letters: "W\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72"
  2073. }, {
  2074. base: 'X',
  2075. letters: "X\u24CD\uFF38\u1E8A\u1E8C"
  2076. }, {
  2077. base: 'Y',
  2078. letters: "Y\u24CE\uFF39\u1EF2\xDD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE"
  2079. }, {
  2080. base: 'Z',
  2081. letters: "Z\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762"
  2082. }, {
  2083. base: 'a',
  2084. letters: "a\u24D0\uFF41\u1E9A\xE0\xE1\xE2\u1EA7\u1EA5\u1EAB\u1EA9\xE3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\xE4\u01DF\u1EA3\xE5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250"
  2085. }, {
  2086. base: 'aa',
  2087. letters: "\uA733"
  2088. }, {
  2089. base: 'ae',
  2090. letters: "\xE6\u01FD\u01E3"
  2091. }, {
  2092. base: 'ao',
  2093. letters: "\uA735"
  2094. }, {
  2095. base: 'au',
  2096. letters: "\uA737"
  2097. }, {
  2098. base: 'av',
  2099. letters: "\uA739\uA73B"
  2100. }, {
  2101. base: 'ay',
  2102. letters: "\uA73D"
  2103. }, {
  2104. base: 'b',
  2105. letters: "b\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253"
  2106. }, {
  2107. base: 'c',
  2108. letters: "c\u24D2\uFF43\u0107\u0109\u010B\u010D\xE7\u1E09\u0188\u023C\uA73F\u2184"
  2109. }, {
  2110. base: 'd',
  2111. letters: "d\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A"
  2112. }, {
  2113. base: 'dz',
  2114. letters: "\u01F3\u01C6"
  2115. }, {
  2116. base: 'e',
  2117. letters: "e\u24D4\uFF45\xE8\xE9\xEA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\xEB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD"
  2118. }, {
  2119. base: 'f',
  2120. letters: "f\u24D5\uFF46\u1E1F\u0192\uA77C"
  2121. }, {
  2122. base: 'g',
  2123. letters: "g\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F"
  2124. }, {
  2125. base: 'h',
  2126. letters: "h\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265"
  2127. }, {
  2128. base: 'hv',
  2129. letters: "\u0195"
  2130. }, {
  2131. base: 'i',
  2132. letters: "i\u24D8\uFF49\xEC\xED\xEE\u0129\u012B\u012D\xEF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131"
  2133. }, {
  2134. base: 'j',
  2135. letters: "j\u24D9\uFF4A\u0135\u01F0\u0249"
  2136. }, {
  2137. base: 'k',
  2138. letters: "k\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3"
  2139. }, {
  2140. base: 'l',
  2141. letters: "l\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747"
  2142. }, {
  2143. base: 'lj',
  2144. letters: "\u01C9"
  2145. }, {
  2146. base: 'm',
  2147. letters: "m\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F"
  2148. }, {
  2149. base: 'n',
  2150. letters: "n\u24DD\uFF4E\u01F9\u0144\xF1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5"
  2151. }, {
  2152. base: 'nj',
  2153. letters: "\u01CC"
  2154. }, {
  2155. base: 'o',
  2156. letters: "o\u24DE\uFF4F\xF2\xF3\xF4\u1ED3\u1ED1\u1ED7\u1ED5\xF5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\xF6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\xF8\u01FF\u0254\uA74B\uA74D\u0275"
  2157. }, {
  2158. base: 'oi',
  2159. letters: "\u01A3"
  2160. }, {
  2161. base: 'ou',
  2162. letters: "\u0223"
  2163. }, {
  2164. base: 'oo',
  2165. letters: "\uA74F"
  2166. }, {
  2167. base: 'p',
  2168. letters: "p\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755"
  2169. }, {
  2170. base: 'q',
  2171. letters: "q\u24E0\uFF51\u024B\uA757\uA759"
  2172. }, {
  2173. base: 'r',
  2174. letters: "r\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783"
  2175. }, {
  2176. base: 's',
  2177. letters: "s\u24E2\uFF53\xDF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B"
  2178. }, {
  2179. base: 't',
  2180. letters: "t\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787"
  2181. }, {
  2182. base: 'tz',
  2183. letters: "\uA729"
  2184. }, {
  2185. base: 'u',
  2186. letters: "u\u24E4\uFF55\xF9\xFA\xFB\u0169\u1E79\u016B\u1E7B\u016D\xFC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289"
  2187. }, {
  2188. base: 'v',
  2189. letters: "v\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C"
  2190. }, {
  2191. base: 'vy',
  2192. letters: "\uA761"
  2193. }, {
  2194. base: 'w',
  2195. letters: "w\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73"
  2196. }, {
  2197. base: 'x',
  2198. letters: "x\u24E7\uFF58\u1E8B\u1E8D"
  2199. }, {
  2200. base: 'y',
  2201. letters: "y\u24E8\uFF59\u1EF3\xFD\u0177\u1EF9\u0233\u1E8F\xFF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF"
  2202. }, {
  2203. base: 'z',
  2204. letters: "z\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763"
  2205. }];
  2206. var initNeutraliser = function initNeutraliser() {
  2207. var _iteratorNormalCompletion = true;
  2208. var _didIteratorError = false;
  2209. var _iteratorError = undefined;
  2210. try {
  2211. for (var _iterator = defaultAccentsDiacritics[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
  2212. var diacritic = _step.value;
  2213. var letters = diacritic.letters;
  2214. for (var i = 0; i < letters.length; i++) {
  2215. diacriticsMap[letters[i]] = diacritic.base;
  2216. }
  2217. }
  2218. } catch (err) {
  2219. _didIteratorError = true;
  2220. _iteratorError = err;
  2221. } finally {
  2222. try {
  2223. if (!_iteratorNormalCompletion && _iterator.return != null) {
  2224. _iterator.return();
  2225. }
  2226. } finally {
  2227. if (_didIteratorError) {
  2228. throw _iteratorError;
  2229. }
  2230. }
  2231. }
  2232. };
  2233. /* eslint-disable no-control-regex */
  2234. var removeDiacritics = function removeDiacritics(str) {
  2235. return str.replace(/[^\u0000-\u007E]/g, function (a) {
  2236. return diacriticsMap[a] || a;
  2237. });
  2238. };
  2239. $.extend($.fn.bootstrapTable.defaults, {
  2240. searchAccentNeutralise: false
  2241. });
  2242. $.BootstrapTable =
  2243. /*#__PURE__*/
  2244. function (_$$BootstrapTable) {
  2245. _inherits(_class, _$$BootstrapTable);
  2246. function _class() {
  2247. _classCallCheck(this, _class);
  2248. return _possibleConstructorReturn(this, _getPrototypeOf(_class).apply(this, arguments));
  2249. }
  2250. _createClass(_class, [{
  2251. key: "init",
  2252. value: function init() {
  2253. if (this.options.searchAccentNeutralise) {
  2254. initNeutraliser();
  2255. }
  2256. _get(_getPrototypeOf(_class.prototype), "init", this).call(this);
  2257. }
  2258. }, {
  2259. key: "initSearch",
  2260. value: function initSearch() {
  2261. var _this = this;
  2262. if (this.options.sidePagination !== 'server') {
  2263. var s = this.searchText && this.searchText.toLowerCase();
  2264. var f = $.isEmptyObject(this.filterColumns) ? null : this.filterColumns; // Check filter
  2265. this.data = f ? this.options.data.filter(function (item, i) {
  2266. for (var key in f) {
  2267. if (Array.isArray(f[key]) && !f[key].includes(item[key]) || !Array.isArray(f[key]) && item[key] !== f[key]) {
  2268. return false;
  2269. }
  2270. }
  2271. return true;
  2272. }) : this.options.data;
  2273. this.data = s ? this.options.data.filter(function (item, i) {
  2274. for (var _i = 0, _Object$entries = Object.entries(item); _i < _Object$entries.length; _i++) {
  2275. var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
  2276. key = _Object$entries$_i[0],
  2277. value = _Object$entries$_i[1];
  2278. key = $.isNumeric(key) ? parseInt(key, 10) : key;
  2279. var column = _this.columns[_this.fieldsColumnsIndex[key]];
  2280. var j = _this.header.fields.indexOf(key);
  2281. if (column && column.searchFormatter) {
  2282. value = $.fn.bootstrapTable.utils.calculateObjectValue(column, _this.header.formatters[j], [value, item, i], value);
  2283. }
  2284. var index = _this.header.fields.indexOf(key);
  2285. if (index !== -1 && _this.header.searchables[index] && typeof value === 'string') {
  2286. if (_this.options.searchAccentNeutralise) {
  2287. value = removeDiacritics(value);
  2288. s = removeDiacritics(s);
  2289. }
  2290. if (_this.options.strictSearch) {
  2291. if ("".concat(value).toLowerCase() === s) {
  2292. return true;
  2293. }
  2294. } else {
  2295. if ("".concat(value).toLowerCase().includes(s)) {
  2296. return true;
  2297. }
  2298. }
  2299. }
  2300. }
  2301. return false;
  2302. }) : this.data;
  2303. this.unsortedData = _toConsumableArray(this.data);
  2304. }
  2305. }
  2306. }]);
  2307. return _class;
  2308. }($.BootstrapTable);
  2309. })));