sanitize-html 1.24.0 → 1.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/README.md +16 -2
- package/dist/sanitize-html-es2015.js +2656 -3029
- package/dist/sanitize-html.js +705 -1428
- package/dist/sanitize-html.min.js +1 -1
- package/package.json +4 -7
package/dist/sanitize-html.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";function _createForOfIteratorHelper(o){if(typeof Symbol==="undefined"||o[Symbol.iterator]==null){if(Array.isArray(o)||(
|
|
1
|
+
"use strict";function _createForOfIteratorHelper(o,allowArrayLike){var it;if(typeof Symbol==="undefined"||o[Symbol.iterator]==null){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function e(_e){throw _e;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=o[Symbol.iterator]();},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function e(_e2){didErr=true;err=_e2;},f:function f(){try{if(!normalCompletion&&it["return"]!=null)it["return"]();}finally{if(didErr)throw err;}}};}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _iterableToArray(iter){if(typeof Symbol!=="undefined"&&Symbol.iterator in Object(iter))return Array.from(iter);}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++){arr2[i]=arr[i];}return arr2;}function _typeof(obj){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(obj){return typeof obj;};}else{_typeof=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};}return _typeof(obj);}(function(f){if((typeof exports==="undefined"?"undefined":_typeof(exports))==="object"&&typeof module!=="undefined"){module.exports=f();}else if(typeof define==="function"&&define.amd){define([],f);}else{var g;if(typeof window!=="undefined"){g=window;}else if(typeof global!=="undefined"){g=global;}else if(typeof self!=="undefined"){g=self;}else{g=this;}g.sanitizeHtml=f();}})(function(){var define,module,exports;return function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a;}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r);},p,p.exports,r,e,n,t);}return n[i].exports;}for(var u="function"==typeof require&&require,i=0;i<t.length;i++){o(t[i]);}return o;}return r;}()({1:[function(require,module,exports){'use strict';exports.byteLength=byteLength;exports.toByteArray=toByteArray;exports.fromByteArray=fromByteArray;var lookup=[];var revLookup=[];var Arr=typeof Uint8Array!=='undefined'?Uint8Array:Array;var code='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';for(var i=0,len=code.length;i<len;++i){lookup[i]=code[i];revLookup[code.charCodeAt(i)]=i;}// Support decoding URL-safe base64 strings, as Node.js does.
|
|
2
2
|
// See: https://en.wikipedia.org/wiki/Base64#URL_applications
|
|
3
3
|
revLookup['-'.charCodeAt(0)]=62;revLookup['_'.charCodeAt(0)]=63;function getLens(b64){var len=b64.length;if(len%4>0){throw new Error('Invalid string. Length must be a multiple of 4');}// Trim off extra bytes after placeholder bytes are found
|
|
4
4
|
// See: https://github.com/beatgammit/base64-js/issues/42
|
|
@@ -466,1325 +466,60 @@ if(this._sectionStart<this._index){this._handleTrailingData();}this._cbs.onend()
|
|
|
466
466
|
*/exports.EVENTS={attribute:2,cdatastart:0,cdataend:0,text:1,processinginstruction:2,comment:1,commentend:0,closetag:1,opentag:2,opentagname:1,error:1,end:0};/*
|
|
467
467
|
All of the following exports exist for backwards-compatibility.
|
|
468
468
|
They should probably be removed eventually.
|
|
469
|
-
*/__export(require("./FeedHandler"));__export(require("./WritableStream"));__export(require("./CollectingHandler"));var DomUtils=__importStar(require("domutils"));exports.DomUtils=DomUtils;var FeedHandler_1=require("./FeedHandler");exports.RssHandler=FeedHandler_1.FeedHandler;},{"./CollectingHandler":26,"./FeedHandler":27,"./Parser":29,"./Tokenizer":30,"./WritableStream":2,"domelementtype":6,"domhandler":7,"domutils":10}],32:[function(require,module,exports){exports.read=function(buffer,offset,isLE,mLen,nBytes){var e,m;var eLen=nBytes*8-mLen-1;var eMax=(1<<eLen)-1;var eBias=eMax>>1;var nBits=-7;var i=isLE?nBytes-1:0;var d=isLE?-1:1;var s=buffer[offset+i];i+=d;e=s&(1<<-nBits)-1;s>>=-nBits;nBits+=eLen;for(;nBits>0;e=e*256+buffer[offset+i],i+=d,nBits-=8){}m=e&(1<<-nBits)-1;e>>=-nBits;nBits+=mLen;for(;nBits>0;m=m*256+buffer[offset+i],i+=d,nBits-=8){}if(e===0){e=1-eBias;}else if(e===eMax){return m?NaN:(s?-1:1)*Infinity;}else{m=m+Math.pow(2,mLen);e=e-eBias;}return(s?-1:1)*m*Math.pow(2,e-mLen);};exports.write=function(buffer,value,offset,isLE,mLen,nBytes){var e,m,c;var eLen=nBytes*8-mLen-1;var eMax=(1<<eLen)-1;var eBias=eMax>>1;var rt=mLen===23?Math.pow(2,-24)-Math.pow(2,-77):0;var i=isLE?0:nBytes-1;var d=isLE?1:-1;var s=value<0||value===0&&1/value<0?1:0;value=Math.abs(value);if(isNaN(value)||value===Infinity){m=isNaN(value)?1:0;e=eMax;}else{e=Math.floor(Math.log(value)/Math.LN2);if(value*(c=Math.pow(2,-e))<1){e--;c*=2;}if(e+eBias>=1){value+=rt/c;}else{value+=rt*Math.pow(2,1-eBias);}if(value*c>=2){e++;c/=2;}if(e+eBias>=eMax){m=0;e=eMax;}else if(e+eBias>=1){m=(value*c-1)*Math.pow(2,mLen);e=e+eBias;}else{m=value*Math.pow(2,eBias-1)*Math.pow(2,mLen);e=0;}}for(;mLen>=8;buffer[offset+i]=m&0xff,i+=d,m/=256,mLen-=8){}e=e<<mLen|m;eLen+=mLen;for(;eLen>0;buffer[offset+i]=e&0xff,i+=d,e/=256,eLen-=8){}buffer[offset+i-d]|=s*128;};},{}],33:[function(require,module,exports){(function(
|
|
470
|
-
* lodash (Custom Build) <https://lodash.com/>
|
|
471
|
-
* Build: `lodash modularize exports="npm" -o ./`
|
|
472
|
-
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
|
473
|
-
* Released under MIT license <https://lodash.com/license>
|
|
474
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
475
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
476
|
-
*/ /** Used as the size to enable large array optimizations. */var LARGE_ARRAY_SIZE=200;/** Used to stand-in for `undefined` hash values. */var HASH_UNDEFINED='__lodash_hash_undefined__';/** Used as references for various `Number` constants. */var MAX_SAFE_INTEGER=9007199254740991;/** `Object#toString` result references. */var argsTag='[object Arguments]',arrayTag='[object Array]',boolTag='[object Boolean]',dateTag='[object Date]',errorTag='[object Error]',funcTag='[object Function]',genTag='[object GeneratorFunction]',mapTag='[object Map]',numberTag='[object Number]',objectTag='[object Object]',promiseTag='[object Promise]',regexpTag='[object RegExp]',setTag='[object Set]',stringTag='[object String]',symbolTag='[object Symbol]',weakMapTag='[object WeakMap]';var arrayBufferTag='[object ArrayBuffer]',dataViewTag='[object DataView]',float32Tag='[object Float32Array]',float64Tag='[object Float64Array]',int8Tag='[object Int8Array]',int16Tag='[object Int16Array]',int32Tag='[object Int32Array]',uint8Tag='[object Uint8Array]',uint8ClampedTag='[object Uint8ClampedArray]',uint16Tag='[object Uint16Array]',uint32Tag='[object Uint32Array]';/**
|
|
477
|
-
* Used to match `RegExp`
|
|
478
|
-
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
479
|
-
*/var reRegExpChar=/[\\^$.*+?()[\]{}|]/g;/** Used to match `RegExp` flags from their coerced string values. */var reFlags=/\w*$/;/** Used to detect host constructors (Safari). */var reIsHostCtor=/^\[object .+?Constructor\]$/;/** Used to detect unsigned integer values. */var reIsUint=/^(?:0|[1-9]\d*)$/;/** Used to identify `toStringTag` values supported by `_.clone`. */var cloneableTags={};cloneableTags[argsTag]=cloneableTags[arrayTag]=cloneableTags[arrayBufferTag]=cloneableTags[dataViewTag]=cloneableTags[boolTag]=cloneableTags[dateTag]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag]=cloneableTags[numberTag]=cloneableTags[objectTag]=cloneableTags[regexpTag]=cloneableTags[setTag]=cloneableTags[stringTag]=cloneableTags[symbolTag]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=true;cloneableTags[errorTag]=cloneableTags[funcTag]=cloneableTags[weakMapTag]=false;/** Detect free variable `global` from Node.js. */var freeGlobal=_typeof(global)=='object'&&global&&global.Object===Object&&global;/** Detect free variable `self`. */var freeSelf=(typeof self==="undefined"?"undefined":_typeof(self))=='object'&&self&&self.Object===Object&&self;/** Used as a reference to the global object. */var root=freeGlobal||freeSelf||Function('return this')();/** Detect free variable `exports`. */var freeExports=_typeof(exports)=='object'&&exports&&!exports.nodeType&&exports;/** Detect free variable `module`. */var freeModule=freeExports&&_typeof(module)=='object'&&module&&!module.nodeType&&module;/** Detect the popular CommonJS extension `module.exports`. */var moduleExports=freeModule&&freeModule.exports===freeExports;/**
|
|
480
|
-
* Adds the key-value `pair` to `map`.
|
|
481
|
-
*
|
|
482
|
-
* @private
|
|
483
|
-
* @param {Object} map The map to modify.
|
|
484
|
-
* @param {Array} pair The key-value pair to add.
|
|
485
|
-
* @returns {Object} Returns `map`.
|
|
486
|
-
*/function addMapEntry(map,pair){// Don't return `map.set` because it's not chainable in IE 11.
|
|
487
|
-
map.set(pair[0],pair[1]);return map;}/**
|
|
488
|
-
* Adds `value` to `set`.
|
|
489
|
-
*
|
|
490
|
-
* @private
|
|
491
|
-
* @param {Object} set The set to modify.
|
|
492
|
-
* @param {*} value The value to add.
|
|
493
|
-
* @returns {Object} Returns `set`.
|
|
494
|
-
*/function addSetEntry(set,value){// Don't return `set.add` because it's not chainable in IE 11.
|
|
495
|
-
set.add(value);return set;}/**
|
|
496
|
-
* A specialized version of `_.forEach` for arrays without support for
|
|
497
|
-
* iteratee shorthands.
|
|
498
|
-
*
|
|
499
|
-
* @private
|
|
500
|
-
* @param {Array} [array] The array to iterate over.
|
|
501
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
502
|
-
* @returns {Array} Returns `array`.
|
|
503
|
-
*/function arrayEach(array,iteratee){var index=-1,length=array?array.length:0;while(++index<length){if(iteratee(array[index],index,array)===false){break;}}return array;}/**
|
|
504
|
-
* Appends the elements of `values` to `array`.
|
|
505
|
-
*
|
|
506
|
-
* @private
|
|
507
|
-
* @param {Array} array The array to modify.
|
|
508
|
-
* @param {Array} values The values to append.
|
|
509
|
-
* @returns {Array} Returns `array`.
|
|
510
|
-
*/function arrayPush(array,values){var index=-1,length=values.length,offset=array.length;while(++index<length){array[offset+index]=values[index];}return array;}/**
|
|
511
|
-
* A specialized version of `_.reduce` for arrays without support for
|
|
512
|
-
* iteratee shorthands.
|
|
513
|
-
*
|
|
514
|
-
* @private
|
|
515
|
-
* @param {Array} [array] The array to iterate over.
|
|
516
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
517
|
-
* @param {*} [accumulator] The initial value.
|
|
518
|
-
* @param {boolean} [initAccum] Specify using the first element of `array` as
|
|
519
|
-
* the initial value.
|
|
520
|
-
* @returns {*} Returns the accumulated value.
|
|
521
|
-
*/function arrayReduce(array,iteratee,accumulator,initAccum){var index=-1,length=array?array.length:0;if(initAccum&&length){accumulator=array[++index];}while(++index<length){accumulator=iteratee(accumulator,array[index],index,array);}return accumulator;}/**
|
|
522
|
-
* The base implementation of `_.times` without support for iteratee shorthands
|
|
523
|
-
* or max array length checks.
|
|
524
|
-
*
|
|
525
|
-
* @private
|
|
526
|
-
* @param {number} n The number of times to invoke `iteratee`.
|
|
527
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
528
|
-
* @returns {Array} Returns the array of results.
|
|
529
|
-
*/function baseTimes(n,iteratee){var index=-1,result=Array(n);while(++index<n){result[index]=iteratee(index);}return result;}/**
|
|
530
|
-
* Gets the value at `key` of `object`.
|
|
531
|
-
*
|
|
532
|
-
* @private
|
|
533
|
-
* @param {Object} [object] The object to query.
|
|
534
|
-
* @param {string} key The key of the property to get.
|
|
535
|
-
* @returns {*} Returns the property value.
|
|
536
|
-
*/function getValue(object,key){return object==null?undefined:object[key];}/**
|
|
537
|
-
* Checks if `value` is a host object in IE < 9.
|
|
538
|
-
*
|
|
539
|
-
* @private
|
|
540
|
-
* @param {*} value The value to check.
|
|
541
|
-
* @returns {boolean} Returns `true` if `value` is a host object, else `false`.
|
|
542
|
-
*/function isHostObject(value){// Many host objects are `Object` objects that can coerce to strings
|
|
543
|
-
// despite having improperly defined `toString` methods.
|
|
544
|
-
var result=false;if(value!=null&&typeof value.toString!='function'){try{result=!!(value+'');}catch(e){}}return result;}/**
|
|
545
|
-
* Converts `map` to its key-value pairs.
|
|
546
|
-
*
|
|
547
|
-
* @private
|
|
548
|
-
* @param {Object} map The map to convert.
|
|
549
|
-
* @returns {Array} Returns the key-value pairs.
|
|
550
|
-
*/function mapToArray(map){var index=-1,result=Array(map.size);map.forEach(function(value,key){result[++index]=[key,value];});return result;}/**
|
|
551
|
-
* Creates a unary function that invokes `func` with its argument transformed.
|
|
552
|
-
*
|
|
553
|
-
* @private
|
|
554
|
-
* @param {Function} func The function to wrap.
|
|
555
|
-
* @param {Function} transform The argument transform.
|
|
556
|
-
* @returns {Function} Returns the new function.
|
|
557
|
-
*/function overArg(func,transform){return function(arg){return func(transform(arg));};}/**
|
|
558
|
-
* Converts `set` to an array of its values.
|
|
559
|
-
*
|
|
560
|
-
* @private
|
|
561
|
-
* @param {Object} set The set to convert.
|
|
562
|
-
* @returns {Array} Returns the values.
|
|
563
|
-
*/function setToArray(set){var index=-1,result=Array(set.size);set.forEach(function(value){result[++index]=value;});return result;}/** Used for built-in method references. */var arrayProto=Array.prototype,funcProto=Function.prototype,objectProto=Object.prototype;/** Used to detect overreaching core-js shims. */var coreJsData=root['__core-js_shared__'];/** Used to detect methods masquerading as native. */var maskSrcKey=function(){var uid=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||'');return uid?'Symbol(src)_1.'+uid:'';}();/** Used to resolve the decompiled source of functions. */var funcToString=funcProto.toString;/** Used to check objects for own properties. */var hasOwnProperty=objectProto.hasOwnProperty;/**
|
|
564
|
-
* Used to resolve the
|
|
565
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
566
|
-
* of values.
|
|
567
|
-
*/var objectToString=objectProto.toString;/** Used to detect if a method is native. */var reIsNative=RegExp('^'+funcToString.call(hasOwnProperty).replace(reRegExpChar,'\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,'$1.*?')+'$');/** Built-in value references. */var Buffer=moduleExports?root.Buffer:undefined,_Symbol=root.Symbol,Uint8Array=root.Uint8Array,getPrototype=overArg(Object.getPrototypeOf,Object),objectCreate=Object.create,propertyIsEnumerable=objectProto.propertyIsEnumerable,splice=arrayProto.splice;/* Built-in method references for those with the same name as other `lodash` methods. */var nativeGetSymbols=Object.getOwnPropertySymbols,nativeIsBuffer=Buffer?Buffer.isBuffer:undefined,nativeKeys=overArg(Object.keys,Object);/* Built-in method references that are verified to be native. */var DataView=getNative(root,'DataView'),Map=getNative(root,'Map'),Promise=getNative(root,'Promise'),Set=getNative(root,'Set'),WeakMap=getNative(root,'WeakMap'),nativeCreate=getNative(Object,'create');/** Used to detect maps, sets, and weakmaps. */var dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map),promiseCtorString=toSource(Promise),setCtorString=toSource(Set),weakMapCtorString=toSource(WeakMap);/** Used to convert symbols to primitives and strings. */var symbolProto=_Symbol?_Symbol.prototype:undefined,symbolValueOf=symbolProto?symbolProto.valueOf:undefined;/**
|
|
568
|
-
* Creates a hash object.
|
|
569
|
-
*
|
|
570
|
-
* @private
|
|
571
|
-
* @constructor
|
|
572
|
-
* @param {Array} [entries] The key-value pairs to cache.
|
|
573
|
-
*/function Hash(entries){var index=-1,length=entries?entries.length:0;this.clear();while(++index<length){var entry=entries[index];this.set(entry[0],entry[1]);}}/**
|
|
574
|
-
* Removes all key-value entries from the hash.
|
|
575
|
-
*
|
|
576
|
-
* @private
|
|
577
|
-
* @name clear
|
|
578
|
-
* @memberOf Hash
|
|
579
|
-
*/function hashClear(){this.__data__=nativeCreate?nativeCreate(null):{};}/**
|
|
580
|
-
* Removes `key` and its value from the hash.
|
|
581
|
-
*
|
|
582
|
-
* @private
|
|
583
|
-
* @name delete
|
|
584
|
-
* @memberOf Hash
|
|
585
|
-
* @param {Object} hash The hash to modify.
|
|
586
|
-
* @param {string} key The key of the value to remove.
|
|
587
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
588
|
-
*/function hashDelete(key){return this.has(key)&&delete this.__data__[key];}/**
|
|
589
|
-
* Gets the hash value for `key`.
|
|
590
|
-
*
|
|
591
|
-
* @private
|
|
592
|
-
* @name get
|
|
593
|
-
* @memberOf Hash
|
|
594
|
-
* @param {string} key The key of the value to get.
|
|
595
|
-
* @returns {*} Returns the entry value.
|
|
596
|
-
*/function hashGet(key){var data=this.__data__;if(nativeCreate){var result=data[key];return result===HASH_UNDEFINED?undefined:result;}return hasOwnProperty.call(data,key)?data[key]:undefined;}/**
|
|
597
|
-
* Checks if a hash value for `key` exists.
|
|
598
|
-
*
|
|
599
|
-
* @private
|
|
600
|
-
* @name has
|
|
601
|
-
* @memberOf Hash
|
|
602
|
-
* @param {string} key The key of the entry to check.
|
|
603
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
604
|
-
*/function hashHas(key){var data=this.__data__;return nativeCreate?data[key]!==undefined:hasOwnProperty.call(data,key);}/**
|
|
605
|
-
* Sets the hash `key` to `value`.
|
|
606
|
-
*
|
|
607
|
-
* @private
|
|
608
|
-
* @name set
|
|
609
|
-
* @memberOf Hash
|
|
610
|
-
* @param {string} key The key of the value to set.
|
|
611
|
-
* @param {*} value The value to set.
|
|
612
|
-
* @returns {Object} Returns the hash instance.
|
|
613
|
-
*/function hashSet(key,value){var data=this.__data__;data[key]=nativeCreate&&value===undefined?HASH_UNDEFINED:value;return this;}// Add methods to `Hash`.
|
|
614
|
-
Hash.prototype.clear=hashClear;Hash.prototype['delete']=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;/**
|
|
615
|
-
* Creates an list cache object.
|
|
616
|
-
*
|
|
617
|
-
* @private
|
|
618
|
-
* @constructor
|
|
619
|
-
* @param {Array} [entries] The key-value pairs to cache.
|
|
620
|
-
*/function ListCache(entries){var index=-1,length=entries?entries.length:0;this.clear();while(++index<length){var entry=entries[index];this.set(entry[0],entry[1]);}}/**
|
|
621
|
-
* Removes all key-value entries from the list cache.
|
|
622
|
-
*
|
|
623
|
-
* @private
|
|
624
|
-
* @name clear
|
|
625
|
-
* @memberOf ListCache
|
|
626
|
-
*/function listCacheClear(){this.__data__=[];}/**
|
|
627
|
-
* Removes `key` and its value from the list cache.
|
|
628
|
-
*
|
|
629
|
-
* @private
|
|
630
|
-
* @name delete
|
|
631
|
-
* @memberOf ListCache
|
|
632
|
-
* @param {string} key The key of the value to remove.
|
|
633
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
634
|
-
*/function listCacheDelete(key){var data=this.__data__,index=assocIndexOf(data,key);if(index<0){return false;}var lastIndex=data.length-1;if(index==lastIndex){data.pop();}else{splice.call(data,index,1);}return true;}/**
|
|
635
|
-
* Gets the list cache value for `key`.
|
|
636
|
-
*
|
|
637
|
-
* @private
|
|
638
|
-
* @name get
|
|
639
|
-
* @memberOf ListCache
|
|
640
|
-
* @param {string} key The key of the value to get.
|
|
641
|
-
* @returns {*} Returns the entry value.
|
|
642
|
-
*/function listCacheGet(key){var data=this.__data__,index=assocIndexOf(data,key);return index<0?undefined:data[index][1];}/**
|
|
643
|
-
* Checks if a list cache value for `key` exists.
|
|
644
|
-
*
|
|
645
|
-
* @private
|
|
646
|
-
* @name has
|
|
647
|
-
* @memberOf ListCache
|
|
648
|
-
* @param {string} key The key of the entry to check.
|
|
649
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
650
|
-
*/function listCacheHas(key){return assocIndexOf(this.__data__,key)>-1;}/**
|
|
651
|
-
* Sets the list cache `key` to `value`.
|
|
652
|
-
*
|
|
653
|
-
* @private
|
|
654
|
-
* @name set
|
|
655
|
-
* @memberOf ListCache
|
|
656
|
-
* @param {string} key The key of the value to set.
|
|
657
|
-
* @param {*} value The value to set.
|
|
658
|
-
* @returns {Object} Returns the list cache instance.
|
|
659
|
-
*/function listCacheSet(key,value){var data=this.__data__,index=assocIndexOf(data,key);if(index<0){data.push([key,value]);}else{data[index][1]=value;}return this;}// Add methods to `ListCache`.
|
|
660
|
-
ListCache.prototype.clear=listCacheClear;ListCache.prototype['delete']=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;/**
|
|
661
|
-
* Creates a map cache object to store key-value pairs.
|
|
662
|
-
*
|
|
663
|
-
* @private
|
|
664
|
-
* @constructor
|
|
665
|
-
* @param {Array} [entries] The key-value pairs to cache.
|
|
666
|
-
*/function MapCache(entries){var index=-1,length=entries?entries.length:0;this.clear();while(++index<length){var entry=entries[index];this.set(entry[0],entry[1]);}}/**
|
|
667
|
-
* Removes all key-value entries from the map.
|
|
668
|
-
*
|
|
669
|
-
* @private
|
|
670
|
-
* @name clear
|
|
671
|
-
* @memberOf MapCache
|
|
672
|
-
*/function mapCacheClear(){this.__data__={'hash':new Hash(),'map':new(Map||ListCache)(),'string':new Hash()};}/**
|
|
673
|
-
* Removes `key` and its value from the map.
|
|
674
|
-
*
|
|
675
|
-
* @private
|
|
676
|
-
* @name delete
|
|
677
|
-
* @memberOf MapCache
|
|
678
|
-
* @param {string} key The key of the value to remove.
|
|
679
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
680
|
-
*/function mapCacheDelete(key){return getMapData(this,key)['delete'](key);}/**
|
|
681
|
-
* Gets the map value for `key`.
|
|
682
|
-
*
|
|
683
|
-
* @private
|
|
684
|
-
* @name get
|
|
685
|
-
* @memberOf MapCache
|
|
686
|
-
* @param {string} key The key of the value to get.
|
|
687
|
-
* @returns {*} Returns the entry value.
|
|
688
|
-
*/function mapCacheGet(key){return getMapData(this,key).get(key);}/**
|
|
689
|
-
* Checks if a map value for `key` exists.
|
|
690
|
-
*
|
|
691
|
-
* @private
|
|
692
|
-
* @name has
|
|
693
|
-
* @memberOf MapCache
|
|
694
|
-
* @param {string} key The key of the entry to check.
|
|
695
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
696
|
-
*/function mapCacheHas(key){return getMapData(this,key).has(key);}/**
|
|
697
|
-
* Sets the map `key` to `value`.
|
|
698
|
-
*
|
|
699
|
-
* @private
|
|
700
|
-
* @name set
|
|
701
|
-
* @memberOf MapCache
|
|
702
|
-
* @param {string} key The key of the value to set.
|
|
703
|
-
* @param {*} value The value to set.
|
|
704
|
-
* @returns {Object} Returns the map cache instance.
|
|
705
|
-
*/function mapCacheSet(key,value){getMapData(this,key).set(key,value);return this;}// Add methods to `MapCache`.
|
|
706
|
-
MapCache.prototype.clear=mapCacheClear;MapCache.prototype['delete']=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;/**
|
|
707
|
-
* Creates a stack cache object to store key-value pairs.
|
|
708
|
-
*
|
|
709
|
-
* @private
|
|
710
|
-
* @constructor
|
|
711
|
-
* @param {Array} [entries] The key-value pairs to cache.
|
|
712
|
-
*/function Stack(entries){this.__data__=new ListCache(entries);}/**
|
|
713
|
-
* Removes all key-value entries from the stack.
|
|
714
|
-
*
|
|
715
|
-
* @private
|
|
716
|
-
* @name clear
|
|
717
|
-
* @memberOf Stack
|
|
718
|
-
*/function stackClear(){this.__data__=new ListCache();}/**
|
|
719
|
-
* Removes `key` and its value from the stack.
|
|
720
|
-
*
|
|
721
|
-
* @private
|
|
722
|
-
* @name delete
|
|
723
|
-
* @memberOf Stack
|
|
724
|
-
* @param {string} key The key of the value to remove.
|
|
725
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
726
|
-
*/function stackDelete(key){return this.__data__['delete'](key);}/**
|
|
727
|
-
* Gets the stack value for `key`.
|
|
728
|
-
*
|
|
729
|
-
* @private
|
|
730
|
-
* @name get
|
|
731
|
-
* @memberOf Stack
|
|
732
|
-
* @param {string} key The key of the value to get.
|
|
733
|
-
* @returns {*} Returns the entry value.
|
|
734
|
-
*/function stackGet(key){return this.__data__.get(key);}/**
|
|
735
|
-
* Checks if a stack value for `key` exists.
|
|
736
|
-
*
|
|
737
|
-
* @private
|
|
738
|
-
* @name has
|
|
739
|
-
* @memberOf Stack
|
|
740
|
-
* @param {string} key The key of the entry to check.
|
|
741
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
742
|
-
*/function stackHas(key){return this.__data__.has(key);}/**
|
|
743
|
-
* Sets the stack `key` to `value`.
|
|
744
|
-
*
|
|
745
|
-
* @private
|
|
746
|
-
* @name set
|
|
747
|
-
* @memberOf Stack
|
|
748
|
-
* @param {string} key The key of the value to set.
|
|
749
|
-
* @param {*} value The value to set.
|
|
750
|
-
* @returns {Object} Returns the stack cache instance.
|
|
751
|
-
*/function stackSet(key,value){var cache=this.__data__;if(cache instanceof ListCache){var pairs=cache.__data__;if(!Map||pairs.length<LARGE_ARRAY_SIZE-1){pairs.push([key,value]);return this;}cache=this.__data__=new MapCache(pairs);}cache.set(key,value);return this;}// Add methods to `Stack`.
|
|
752
|
-
Stack.prototype.clear=stackClear;Stack.prototype['delete']=stackDelete;Stack.prototype.get=stackGet;Stack.prototype.has=stackHas;Stack.prototype.set=stackSet;/**
|
|
753
|
-
* Creates an array of the enumerable property names of the array-like `value`.
|
|
754
|
-
*
|
|
755
|
-
* @private
|
|
756
|
-
* @param {*} value The value to query.
|
|
757
|
-
* @param {boolean} inherited Specify returning inherited property names.
|
|
758
|
-
* @returns {Array} Returns the array of property names.
|
|
759
|
-
*/function arrayLikeKeys(value,inherited){// Safari 8.1 makes `arguments.callee` enumerable in strict mode.
|
|
760
|
-
// Safari 9 makes `arguments.length` enumerable in strict mode.
|
|
761
|
-
var result=isArray(value)||isArguments(value)?baseTimes(value.length,String):[];var length=result.length,skipIndexes=!!length;for(var key in value){if((inherited||hasOwnProperty.call(value,key))&&!(skipIndexes&&(key=='length'||isIndex(key,length)))){result.push(key);}}return result;}/**
|
|
762
|
-
* Assigns `value` to `key` of `object` if the existing value is not equivalent
|
|
763
|
-
* using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
764
|
-
* for equality comparisons.
|
|
765
|
-
*
|
|
766
|
-
* @private
|
|
767
|
-
* @param {Object} object The object to modify.
|
|
768
|
-
* @param {string} key The key of the property to assign.
|
|
769
|
-
* @param {*} value The value to assign.
|
|
770
|
-
*/function assignValue(object,key,value){var objValue=object[key];if(!(hasOwnProperty.call(object,key)&&eq(objValue,value))||value===undefined&&!(key in object)){object[key]=value;}}/**
|
|
771
|
-
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
772
|
-
*
|
|
773
|
-
* @private
|
|
774
|
-
* @param {Array} array The array to inspect.
|
|
775
|
-
* @param {*} key The key to search for.
|
|
776
|
-
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
777
|
-
*/function assocIndexOf(array,key){var length=array.length;while(length--){if(eq(array[length][0],key)){return length;}}return-1;}/**
|
|
778
|
-
* The base implementation of `_.assign` without support for multiple sources
|
|
779
|
-
* or `customizer` functions.
|
|
780
|
-
*
|
|
781
|
-
* @private
|
|
782
|
-
* @param {Object} object The destination object.
|
|
783
|
-
* @param {Object} source The source object.
|
|
784
|
-
* @returns {Object} Returns `object`.
|
|
785
|
-
*/function baseAssign(object,source){return object&©Object(source,keys(source),object);}/**
|
|
786
|
-
* The base implementation of `_.clone` and `_.cloneDeep` which tracks
|
|
787
|
-
* traversed objects.
|
|
788
|
-
*
|
|
789
|
-
* @private
|
|
790
|
-
* @param {*} value The value to clone.
|
|
791
|
-
* @param {boolean} [isDeep] Specify a deep clone.
|
|
792
|
-
* @param {boolean} [isFull] Specify a clone including symbols.
|
|
793
|
-
* @param {Function} [customizer] The function to customize cloning.
|
|
794
|
-
* @param {string} [key] The key of `value`.
|
|
795
|
-
* @param {Object} [object] The parent object of `value`.
|
|
796
|
-
* @param {Object} [stack] Tracks traversed objects and their clone counterparts.
|
|
797
|
-
* @returns {*} Returns the cloned value.
|
|
798
|
-
*/function baseClone(value,isDeep,isFull,customizer,key,object,stack){var result;if(customizer){result=object?customizer(value,key,object,stack):customizer(value);}if(result!==undefined){return result;}if(!isObject(value)){return value;}var isArr=isArray(value);if(isArr){result=initCloneArray(value);if(!isDeep){return copyArray(value,result);}}else{var tag=getTag(value),isFunc=tag==funcTag||tag==genTag;if(isBuffer(value)){return cloneBuffer(value,isDeep);}if(tag==objectTag||tag==argsTag||isFunc&&!object){if(isHostObject(value)){return object?value:{};}result=initCloneObject(isFunc?{}:value);if(!isDeep){return copySymbols(value,baseAssign(result,value));}}else{if(!cloneableTags[tag]){return object?value:{};}result=initCloneByTag(value,tag,baseClone,isDeep);}}// Check for circular references and return its corresponding clone.
|
|
799
|
-
stack||(stack=new Stack());var stacked=stack.get(value);if(stacked){return stacked;}stack.set(value,result);if(!isArr){var props=isFull?getAllKeys(value):keys(value);}arrayEach(props||value,function(subValue,key){if(props){key=subValue;subValue=value[key];}// Recursively populate clone (susceptible to call stack limits).
|
|
800
|
-
assignValue(result,key,baseClone(subValue,isDeep,isFull,customizer,key,value,stack));});return result;}/**
|
|
801
|
-
* The base implementation of `_.create` without support for assigning
|
|
802
|
-
* properties to the created object.
|
|
803
|
-
*
|
|
804
|
-
* @private
|
|
805
|
-
* @param {Object} prototype The object to inherit from.
|
|
806
|
-
* @returns {Object} Returns the new object.
|
|
807
|
-
*/function baseCreate(proto){return isObject(proto)?objectCreate(proto):{};}/**
|
|
808
|
-
* The base implementation of `getAllKeys` and `getAllKeysIn` which uses
|
|
809
|
-
* `keysFunc` and `symbolsFunc` to get the enumerable property names and
|
|
810
|
-
* symbols of `object`.
|
|
811
|
-
*
|
|
812
|
-
* @private
|
|
813
|
-
* @param {Object} object The object to query.
|
|
814
|
-
* @param {Function} keysFunc The function to get the keys of `object`.
|
|
815
|
-
* @param {Function} symbolsFunc The function to get the symbols of `object`.
|
|
816
|
-
* @returns {Array} Returns the array of property names and symbols.
|
|
817
|
-
*/function baseGetAllKeys(object,keysFunc,symbolsFunc){var result=keysFunc(object);return isArray(object)?result:arrayPush(result,symbolsFunc(object));}/**
|
|
818
|
-
* The base implementation of `getTag`.
|
|
819
|
-
*
|
|
820
|
-
* @private
|
|
821
|
-
* @param {*} value The value to query.
|
|
822
|
-
* @returns {string} Returns the `toStringTag`.
|
|
823
|
-
*/function baseGetTag(value){return objectToString.call(value);}/**
|
|
824
|
-
* The base implementation of `_.isNative` without bad shim checks.
|
|
825
|
-
*
|
|
826
|
-
* @private
|
|
827
|
-
* @param {*} value The value to check.
|
|
828
|
-
* @returns {boolean} Returns `true` if `value` is a native function,
|
|
829
|
-
* else `false`.
|
|
830
|
-
*/function baseIsNative(value){if(!isObject(value)||isMasked(value)){return false;}var pattern=isFunction(value)||isHostObject(value)?reIsNative:reIsHostCtor;return pattern.test(toSource(value));}/**
|
|
831
|
-
* The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
|
|
832
|
-
*
|
|
833
|
-
* @private
|
|
834
|
-
* @param {Object} object The object to query.
|
|
835
|
-
* @returns {Array} Returns the array of property names.
|
|
836
|
-
*/function baseKeys(object){if(!isPrototype(object)){return nativeKeys(object);}var result=[];for(var key in Object(object)){if(hasOwnProperty.call(object,key)&&key!='constructor'){result.push(key);}}return result;}/**
|
|
837
|
-
* Creates a clone of `buffer`.
|
|
838
|
-
*
|
|
839
|
-
* @private
|
|
840
|
-
* @param {Buffer} buffer The buffer to clone.
|
|
841
|
-
* @param {boolean} [isDeep] Specify a deep clone.
|
|
842
|
-
* @returns {Buffer} Returns the cloned buffer.
|
|
843
|
-
*/function cloneBuffer(buffer,isDeep){if(isDeep){return buffer.slice();}var result=new buffer.constructor(buffer.length);buffer.copy(result);return result;}/**
|
|
844
|
-
* Creates a clone of `arrayBuffer`.
|
|
845
|
-
*
|
|
846
|
-
* @private
|
|
847
|
-
* @param {ArrayBuffer} arrayBuffer The array buffer to clone.
|
|
848
|
-
* @returns {ArrayBuffer} Returns the cloned array buffer.
|
|
849
|
-
*/function cloneArrayBuffer(arrayBuffer){var result=new arrayBuffer.constructor(arrayBuffer.byteLength);new Uint8Array(result).set(new Uint8Array(arrayBuffer));return result;}/**
|
|
850
|
-
* Creates a clone of `dataView`.
|
|
851
|
-
*
|
|
852
|
-
* @private
|
|
853
|
-
* @param {Object} dataView The data view to clone.
|
|
854
|
-
* @param {boolean} [isDeep] Specify a deep clone.
|
|
855
|
-
* @returns {Object} Returns the cloned data view.
|
|
856
|
-
*/function cloneDataView(dataView,isDeep){var buffer=isDeep?cloneArrayBuffer(dataView.buffer):dataView.buffer;return new dataView.constructor(buffer,dataView.byteOffset,dataView.byteLength);}/**
|
|
857
|
-
* Creates a clone of `map`.
|
|
858
|
-
*
|
|
859
|
-
* @private
|
|
860
|
-
* @param {Object} map The map to clone.
|
|
861
|
-
* @param {Function} cloneFunc The function to clone values.
|
|
862
|
-
* @param {boolean} [isDeep] Specify a deep clone.
|
|
863
|
-
* @returns {Object} Returns the cloned map.
|
|
864
|
-
*/function cloneMap(map,isDeep,cloneFunc){var array=isDeep?cloneFunc(mapToArray(map),true):mapToArray(map);return arrayReduce(array,addMapEntry,new map.constructor());}/**
|
|
865
|
-
* Creates a clone of `regexp`.
|
|
866
|
-
*
|
|
867
|
-
* @private
|
|
868
|
-
* @param {Object} regexp The regexp to clone.
|
|
869
|
-
* @returns {Object} Returns the cloned regexp.
|
|
870
|
-
*/function cloneRegExp(regexp){var result=new regexp.constructor(regexp.source,reFlags.exec(regexp));result.lastIndex=regexp.lastIndex;return result;}/**
|
|
871
|
-
* Creates a clone of `set`.
|
|
872
|
-
*
|
|
873
|
-
* @private
|
|
874
|
-
* @param {Object} set The set to clone.
|
|
875
|
-
* @param {Function} cloneFunc The function to clone values.
|
|
876
|
-
* @param {boolean} [isDeep] Specify a deep clone.
|
|
877
|
-
* @returns {Object} Returns the cloned set.
|
|
878
|
-
*/function cloneSet(set,isDeep,cloneFunc){var array=isDeep?cloneFunc(setToArray(set),true):setToArray(set);return arrayReduce(array,addSetEntry,new set.constructor());}/**
|
|
879
|
-
* Creates a clone of the `symbol` object.
|
|
880
|
-
*
|
|
881
|
-
* @private
|
|
882
|
-
* @param {Object} symbol The symbol object to clone.
|
|
883
|
-
* @returns {Object} Returns the cloned symbol object.
|
|
884
|
-
*/function cloneSymbol(symbol){return symbolValueOf?Object(symbolValueOf.call(symbol)):{};}/**
|
|
885
|
-
* Creates a clone of `typedArray`.
|
|
886
|
-
*
|
|
887
|
-
* @private
|
|
888
|
-
* @param {Object} typedArray The typed array to clone.
|
|
889
|
-
* @param {boolean} [isDeep] Specify a deep clone.
|
|
890
|
-
* @returns {Object} Returns the cloned typed array.
|
|
891
|
-
*/function cloneTypedArray(typedArray,isDeep){var buffer=isDeep?cloneArrayBuffer(typedArray.buffer):typedArray.buffer;return new typedArray.constructor(buffer,typedArray.byteOffset,typedArray.length);}/**
|
|
892
|
-
* Copies the values of `source` to `array`.
|
|
893
|
-
*
|
|
894
|
-
* @private
|
|
895
|
-
* @param {Array} source The array to copy values from.
|
|
896
|
-
* @param {Array} [array=[]] The array to copy values to.
|
|
897
|
-
* @returns {Array} Returns `array`.
|
|
898
|
-
*/function copyArray(source,array){var index=-1,length=source.length;array||(array=Array(length));while(++index<length){array[index]=source[index];}return array;}/**
|
|
899
|
-
* Copies properties of `source` to `object`.
|
|
900
|
-
*
|
|
901
|
-
* @private
|
|
902
|
-
* @param {Object} source The object to copy properties from.
|
|
903
|
-
* @param {Array} props The property identifiers to copy.
|
|
904
|
-
* @param {Object} [object={}] The object to copy properties to.
|
|
905
|
-
* @param {Function} [customizer] The function to customize copied values.
|
|
906
|
-
* @returns {Object} Returns `object`.
|
|
907
|
-
*/function copyObject(source,props,object,customizer){object||(object={});var index=-1,length=props.length;while(++index<length){var key=props[index];var newValue=customizer?customizer(object[key],source[key],key,object,source):undefined;assignValue(object,key,newValue===undefined?source[key]:newValue);}return object;}/**
|
|
908
|
-
* Copies own symbol properties of `source` to `object`.
|
|
909
|
-
*
|
|
910
|
-
* @private
|
|
911
|
-
* @param {Object} source The object to copy symbols from.
|
|
912
|
-
* @param {Object} [object={}] The object to copy symbols to.
|
|
913
|
-
* @returns {Object} Returns `object`.
|
|
914
|
-
*/function copySymbols(source,object){return copyObject(source,getSymbols(source),object);}/**
|
|
915
|
-
* Creates an array of own enumerable property names and symbols of `object`.
|
|
916
|
-
*
|
|
917
|
-
* @private
|
|
918
|
-
* @param {Object} object The object to query.
|
|
919
|
-
* @returns {Array} Returns the array of property names and symbols.
|
|
920
|
-
*/function getAllKeys(object){return baseGetAllKeys(object,keys,getSymbols);}/**
|
|
921
|
-
* Gets the data for `map`.
|
|
922
|
-
*
|
|
923
|
-
* @private
|
|
924
|
-
* @param {Object} map The map to query.
|
|
925
|
-
* @param {string} key The reference key.
|
|
926
|
-
* @returns {*} Returns the map data.
|
|
927
|
-
*/function getMapData(map,key){var data=map.__data__;return isKeyable(key)?data[typeof key=='string'?'string':'hash']:data.map;}/**
|
|
928
|
-
* Gets the native function at `key` of `object`.
|
|
929
|
-
*
|
|
930
|
-
* @private
|
|
931
|
-
* @param {Object} object The object to query.
|
|
932
|
-
* @param {string} key The key of the method to get.
|
|
933
|
-
* @returns {*} Returns the function if it's native, else `undefined`.
|
|
934
|
-
*/function getNative(object,key){var value=getValue(object,key);return baseIsNative(value)?value:undefined;}/**
|
|
935
|
-
* Creates an array of the own enumerable symbol properties of `object`.
|
|
936
|
-
*
|
|
937
|
-
* @private
|
|
938
|
-
* @param {Object} object The object to query.
|
|
939
|
-
* @returns {Array} Returns the array of symbols.
|
|
940
|
-
*/var getSymbols=nativeGetSymbols?overArg(nativeGetSymbols,Object):stubArray;/**
|
|
941
|
-
* Gets the `toStringTag` of `value`.
|
|
942
|
-
*
|
|
943
|
-
* @private
|
|
944
|
-
* @param {*} value The value to query.
|
|
945
|
-
* @returns {string} Returns the `toStringTag`.
|
|
946
|
-
*/var getTag=baseGetTag;// Fallback for data views, maps, sets, and weak maps in IE 11,
|
|
947
|
-
// for data views in Edge < 14, and promises in Node.js.
|
|
948
|
-
if(DataView&&getTag(new DataView(new ArrayBuffer(1)))!=dataViewTag||Map&&getTag(new Map())!=mapTag||Promise&&getTag(Promise.resolve())!=promiseTag||Set&&getTag(new Set())!=setTag||WeakMap&&getTag(new WeakMap())!=weakMapTag){getTag=function getTag(value){var result=objectToString.call(value),Ctor=result==objectTag?value.constructor:undefined,ctorString=Ctor?toSource(Ctor):undefined;if(ctorString){switch(ctorString){case dataViewCtorString:return dataViewTag;case mapCtorString:return mapTag;case promiseCtorString:return promiseTag;case setCtorString:return setTag;case weakMapCtorString:return weakMapTag;}}return result;};}/**
|
|
949
|
-
* Initializes an array clone.
|
|
950
|
-
*
|
|
951
|
-
* @private
|
|
952
|
-
* @param {Array} array The array to clone.
|
|
953
|
-
* @returns {Array} Returns the initialized clone.
|
|
954
|
-
*/function initCloneArray(array){var length=array.length,result=array.constructor(length);// Add properties assigned by `RegExp#exec`.
|
|
955
|
-
if(length&&typeof array[0]=='string'&&hasOwnProperty.call(array,'index')){result.index=array.index;result.input=array.input;}return result;}/**
|
|
956
|
-
* Initializes an object clone.
|
|
957
|
-
*
|
|
958
|
-
* @private
|
|
959
|
-
* @param {Object} object The object to clone.
|
|
960
|
-
* @returns {Object} Returns the initialized clone.
|
|
961
|
-
*/function initCloneObject(object){return typeof object.constructor=='function'&&!isPrototype(object)?baseCreate(getPrototype(object)):{};}/**
|
|
962
|
-
* Initializes an object clone based on its `toStringTag`.
|
|
963
|
-
*
|
|
964
|
-
* **Note:** This function only supports cloning values with tags of
|
|
965
|
-
* `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
|
|
966
|
-
*
|
|
967
|
-
* @private
|
|
968
|
-
* @param {Object} object The object to clone.
|
|
969
|
-
* @param {string} tag The `toStringTag` of the object to clone.
|
|
970
|
-
* @param {Function} cloneFunc The function to clone values.
|
|
971
|
-
* @param {boolean} [isDeep] Specify a deep clone.
|
|
972
|
-
* @returns {Object} Returns the initialized clone.
|
|
973
|
-
*/function initCloneByTag(object,tag,cloneFunc,isDeep){var Ctor=object.constructor;switch(tag){case arrayBufferTag:return cloneArrayBuffer(object);case boolTag:case dateTag:return new Ctor(+object);case dataViewTag:return cloneDataView(object,isDeep);case float32Tag:case float64Tag:case int8Tag:case int16Tag:case int32Tag:case uint8Tag:case uint8ClampedTag:case uint16Tag:case uint32Tag:return cloneTypedArray(object,isDeep);case mapTag:return cloneMap(object,isDeep,cloneFunc);case numberTag:case stringTag:return new Ctor(object);case regexpTag:return cloneRegExp(object);case setTag:return cloneSet(object,isDeep,cloneFunc);case symbolTag:return cloneSymbol(object);}}/**
|
|
974
|
-
* Checks if `value` is a valid array-like index.
|
|
975
|
-
*
|
|
976
|
-
* @private
|
|
977
|
-
* @param {*} value The value to check.
|
|
978
|
-
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
979
|
-
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
980
|
-
*/function isIndex(value,length){length=length==null?MAX_SAFE_INTEGER:length;return!!length&&(typeof value=='number'||reIsUint.test(value))&&value>-1&&value%1==0&&value<length;}/**
|
|
981
|
-
* Checks if `value` is suitable for use as unique object key.
|
|
982
|
-
*
|
|
983
|
-
* @private
|
|
984
|
-
* @param {*} value The value to check.
|
|
985
|
-
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
|
|
986
|
-
*/function isKeyable(value){var type=_typeof(value);return type=='string'||type=='number'||type=='symbol'||type=='boolean'?value!=='__proto__':value===null;}/**
|
|
987
|
-
* Checks if `func` has its source masked.
|
|
988
|
-
*
|
|
989
|
-
* @private
|
|
990
|
-
* @param {Function} func The function to check.
|
|
991
|
-
* @returns {boolean} Returns `true` if `func` is masked, else `false`.
|
|
992
|
-
*/function isMasked(func){return!!maskSrcKey&&maskSrcKey in func;}/**
|
|
993
|
-
* Checks if `value` is likely a prototype object.
|
|
994
|
-
*
|
|
995
|
-
* @private
|
|
996
|
-
* @param {*} value The value to check.
|
|
997
|
-
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
|
|
998
|
-
*/function isPrototype(value){var Ctor=value&&value.constructor,proto=typeof Ctor=='function'&&Ctor.prototype||objectProto;return value===proto;}/**
|
|
999
|
-
* Converts `func` to its source code.
|
|
1000
|
-
*
|
|
1001
|
-
* @private
|
|
1002
|
-
* @param {Function} func The function to process.
|
|
1003
|
-
* @returns {string} Returns the source code.
|
|
1004
|
-
*/function toSource(func){if(func!=null){try{return funcToString.call(func);}catch(e){}try{return func+'';}catch(e){}}return'';}/**
|
|
1005
|
-
* This method is like `_.clone` except that it recursively clones `value`.
|
|
1006
|
-
*
|
|
1007
|
-
* @static
|
|
1008
|
-
* @memberOf _
|
|
1009
|
-
* @since 1.0.0
|
|
1010
|
-
* @category Lang
|
|
1011
|
-
* @param {*} value The value to recursively clone.
|
|
1012
|
-
* @returns {*} Returns the deep cloned value.
|
|
1013
|
-
* @see _.clone
|
|
1014
|
-
* @example
|
|
1015
|
-
*
|
|
1016
|
-
* var objects = [{ 'a': 1 }, { 'b': 2 }];
|
|
1017
|
-
*
|
|
1018
|
-
* var deep = _.cloneDeep(objects);
|
|
1019
|
-
* console.log(deep[0] === objects[0]);
|
|
1020
|
-
* // => false
|
|
1021
|
-
*/function cloneDeep(value){return baseClone(value,true,true);}/**
|
|
1022
|
-
* Performs a
|
|
1023
|
-
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
1024
|
-
* comparison between two values to determine if they are equivalent.
|
|
1025
|
-
*
|
|
1026
|
-
* @static
|
|
1027
|
-
* @memberOf _
|
|
1028
|
-
* @since 4.0.0
|
|
1029
|
-
* @category Lang
|
|
1030
|
-
* @param {*} value The value to compare.
|
|
1031
|
-
* @param {*} other The other value to compare.
|
|
1032
|
-
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
1033
|
-
* @example
|
|
1034
|
-
*
|
|
1035
|
-
* var object = { 'a': 1 };
|
|
1036
|
-
* var other = { 'a': 1 };
|
|
1037
|
-
*
|
|
1038
|
-
* _.eq(object, object);
|
|
1039
|
-
* // => true
|
|
1040
|
-
*
|
|
1041
|
-
* _.eq(object, other);
|
|
1042
|
-
* // => false
|
|
1043
|
-
*
|
|
1044
|
-
* _.eq('a', 'a');
|
|
1045
|
-
* // => true
|
|
1046
|
-
*
|
|
1047
|
-
* _.eq('a', Object('a'));
|
|
1048
|
-
* // => false
|
|
1049
|
-
*
|
|
1050
|
-
* _.eq(NaN, NaN);
|
|
1051
|
-
* // => true
|
|
1052
|
-
*/function eq(value,other){return value===other||value!==value&&other!==other;}/**
|
|
1053
|
-
* Checks if `value` is likely an `arguments` object.
|
|
1054
|
-
*
|
|
1055
|
-
* @static
|
|
1056
|
-
* @memberOf _
|
|
1057
|
-
* @since 0.1.0
|
|
1058
|
-
* @category Lang
|
|
1059
|
-
* @param {*} value The value to check.
|
|
1060
|
-
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
1061
|
-
* else `false`.
|
|
1062
|
-
* @example
|
|
1063
|
-
*
|
|
1064
|
-
* _.isArguments(function() { return arguments; }());
|
|
1065
|
-
* // => true
|
|
1066
|
-
*
|
|
1067
|
-
* _.isArguments([1, 2, 3]);
|
|
1068
|
-
* // => false
|
|
1069
|
-
*/function isArguments(value){// Safari 8.1 makes `arguments.callee` enumerable in strict mode.
|
|
1070
|
-
return isArrayLikeObject(value)&&hasOwnProperty.call(value,'callee')&&(!propertyIsEnumerable.call(value,'callee')||objectToString.call(value)==argsTag);}/**
|
|
1071
|
-
* Checks if `value` is classified as an `Array` object.
|
|
1072
|
-
*
|
|
1073
|
-
* @static
|
|
1074
|
-
* @memberOf _
|
|
1075
|
-
* @since 0.1.0
|
|
1076
|
-
* @category Lang
|
|
1077
|
-
* @param {*} value The value to check.
|
|
1078
|
-
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
|
|
1079
|
-
* @example
|
|
1080
|
-
*
|
|
1081
|
-
* _.isArray([1, 2, 3]);
|
|
1082
|
-
* // => true
|
|
1083
|
-
*
|
|
1084
|
-
* _.isArray(document.body.children);
|
|
1085
|
-
* // => false
|
|
1086
|
-
*
|
|
1087
|
-
* _.isArray('abc');
|
|
1088
|
-
* // => false
|
|
1089
|
-
*
|
|
1090
|
-
* _.isArray(_.noop);
|
|
1091
|
-
* // => false
|
|
1092
|
-
*/var isArray=Array.isArray;/**
|
|
1093
|
-
* Checks if `value` is array-like. A value is considered array-like if it's
|
|
1094
|
-
* not a function and has a `value.length` that's an integer greater than or
|
|
1095
|
-
* equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
|
|
1096
|
-
*
|
|
1097
|
-
* @static
|
|
1098
|
-
* @memberOf _
|
|
1099
|
-
* @since 4.0.0
|
|
1100
|
-
* @category Lang
|
|
1101
|
-
* @param {*} value The value to check.
|
|
1102
|
-
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
|
|
1103
|
-
* @example
|
|
1104
|
-
*
|
|
1105
|
-
* _.isArrayLike([1, 2, 3]);
|
|
1106
|
-
* // => true
|
|
1107
|
-
*
|
|
1108
|
-
* _.isArrayLike(document.body.children);
|
|
1109
|
-
* // => true
|
|
1110
|
-
*
|
|
1111
|
-
* _.isArrayLike('abc');
|
|
1112
|
-
* // => true
|
|
1113
|
-
*
|
|
1114
|
-
* _.isArrayLike(_.noop);
|
|
1115
|
-
* // => false
|
|
1116
|
-
*/function isArrayLike(value){return value!=null&&isLength(value.length)&&!isFunction(value);}/**
|
|
1117
|
-
* This method is like `_.isArrayLike` except that it also checks if `value`
|
|
1118
|
-
* is an object.
|
|
1119
|
-
*
|
|
1120
|
-
* @static
|
|
1121
|
-
* @memberOf _
|
|
1122
|
-
* @since 4.0.0
|
|
1123
|
-
* @category Lang
|
|
1124
|
-
* @param {*} value The value to check.
|
|
1125
|
-
* @returns {boolean} Returns `true` if `value` is an array-like object,
|
|
1126
|
-
* else `false`.
|
|
1127
|
-
* @example
|
|
1128
|
-
*
|
|
1129
|
-
* _.isArrayLikeObject([1, 2, 3]);
|
|
1130
|
-
* // => true
|
|
1131
|
-
*
|
|
1132
|
-
* _.isArrayLikeObject(document.body.children);
|
|
1133
|
-
* // => true
|
|
1134
|
-
*
|
|
1135
|
-
* _.isArrayLikeObject('abc');
|
|
1136
|
-
* // => false
|
|
1137
|
-
*
|
|
1138
|
-
* _.isArrayLikeObject(_.noop);
|
|
1139
|
-
* // => false
|
|
1140
|
-
*/function isArrayLikeObject(value){return isObjectLike(value)&&isArrayLike(value);}/**
|
|
1141
|
-
* Checks if `value` is a buffer.
|
|
1142
|
-
*
|
|
1143
|
-
* @static
|
|
1144
|
-
* @memberOf _
|
|
1145
|
-
* @since 4.3.0
|
|
1146
|
-
* @category Lang
|
|
1147
|
-
* @param {*} value The value to check.
|
|
1148
|
-
* @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
|
|
1149
|
-
* @example
|
|
1150
|
-
*
|
|
1151
|
-
* _.isBuffer(new Buffer(2));
|
|
1152
|
-
* // => true
|
|
1153
|
-
*
|
|
1154
|
-
* _.isBuffer(new Uint8Array(2));
|
|
1155
|
-
* // => false
|
|
1156
|
-
*/var isBuffer=nativeIsBuffer||stubFalse;/**
|
|
1157
|
-
* Checks if `value` is classified as a `Function` object.
|
|
1158
|
-
*
|
|
1159
|
-
* @static
|
|
1160
|
-
* @memberOf _
|
|
1161
|
-
* @since 0.1.0
|
|
1162
|
-
* @category Lang
|
|
1163
|
-
* @param {*} value The value to check.
|
|
1164
|
-
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
|
|
1165
|
-
* @example
|
|
1166
|
-
*
|
|
1167
|
-
* _.isFunction(_);
|
|
1168
|
-
* // => true
|
|
1169
|
-
*
|
|
1170
|
-
* _.isFunction(/abc/);
|
|
1171
|
-
* // => false
|
|
1172
|
-
*/function isFunction(value){// The use of `Object#toString` avoids issues with the `typeof` operator
|
|
1173
|
-
// in Safari 8-9 which returns 'object' for typed array and other constructors.
|
|
1174
|
-
var tag=isObject(value)?objectToString.call(value):'';return tag==funcTag||tag==genTag;}/**
|
|
1175
|
-
* Checks if `value` is a valid array-like length.
|
|
1176
|
-
*
|
|
1177
|
-
* **Note:** This method is loosely based on
|
|
1178
|
-
* [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
|
|
1179
|
-
*
|
|
1180
|
-
* @static
|
|
1181
|
-
* @memberOf _
|
|
1182
|
-
* @since 4.0.0
|
|
1183
|
-
* @category Lang
|
|
1184
|
-
* @param {*} value The value to check.
|
|
1185
|
-
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
|
|
1186
|
-
* @example
|
|
1187
|
-
*
|
|
1188
|
-
* _.isLength(3);
|
|
1189
|
-
* // => true
|
|
1190
|
-
*
|
|
1191
|
-
* _.isLength(Number.MIN_VALUE);
|
|
1192
|
-
* // => false
|
|
1193
|
-
*
|
|
1194
|
-
* _.isLength(Infinity);
|
|
1195
|
-
* // => false
|
|
1196
|
-
*
|
|
1197
|
-
* _.isLength('3');
|
|
1198
|
-
* // => false
|
|
1199
|
-
*/function isLength(value){return typeof value=='number'&&value>-1&&value%1==0&&value<=MAX_SAFE_INTEGER;}/**
|
|
1200
|
-
* Checks if `value` is the
|
|
1201
|
-
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
1202
|
-
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
1203
|
-
*
|
|
1204
|
-
* @static
|
|
1205
|
-
* @memberOf _
|
|
1206
|
-
* @since 0.1.0
|
|
1207
|
-
* @category Lang
|
|
1208
|
-
* @param {*} value The value to check.
|
|
1209
|
-
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
1210
|
-
* @example
|
|
1211
|
-
*
|
|
1212
|
-
* _.isObject({});
|
|
1213
|
-
* // => true
|
|
1214
|
-
*
|
|
1215
|
-
* _.isObject([1, 2, 3]);
|
|
1216
|
-
* // => true
|
|
1217
|
-
*
|
|
1218
|
-
* _.isObject(_.noop);
|
|
1219
|
-
* // => true
|
|
1220
|
-
*
|
|
1221
|
-
* _.isObject(null);
|
|
1222
|
-
* // => false
|
|
1223
|
-
*/function isObject(value){var type=_typeof(value);return!!value&&(type=='object'||type=='function');}/**
|
|
1224
|
-
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
1225
|
-
* and has a `typeof` result of "object".
|
|
1226
|
-
*
|
|
1227
|
-
* @static
|
|
1228
|
-
* @memberOf _
|
|
1229
|
-
* @since 4.0.0
|
|
1230
|
-
* @category Lang
|
|
1231
|
-
* @param {*} value The value to check.
|
|
1232
|
-
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
1233
|
-
* @example
|
|
1234
|
-
*
|
|
1235
|
-
* _.isObjectLike({});
|
|
1236
|
-
* // => true
|
|
1237
|
-
*
|
|
1238
|
-
* _.isObjectLike([1, 2, 3]);
|
|
1239
|
-
* // => true
|
|
1240
|
-
*
|
|
1241
|
-
* _.isObjectLike(_.noop);
|
|
1242
|
-
* // => false
|
|
1243
|
-
*
|
|
1244
|
-
* _.isObjectLike(null);
|
|
1245
|
-
* // => false
|
|
1246
|
-
*/function isObjectLike(value){return!!value&&_typeof(value)=='object';}/**
|
|
1247
|
-
* Creates an array of the own enumerable property names of `object`.
|
|
1248
|
-
*
|
|
1249
|
-
* **Note:** Non-object values are coerced to objects. See the
|
|
1250
|
-
* [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
1251
|
-
* for more details.
|
|
1252
|
-
*
|
|
1253
|
-
* @static
|
|
1254
|
-
* @since 0.1.0
|
|
1255
|
-
* @memberOf _
|
|
1256
|
-
* @category Object
|
|
1257
|
-
* @param {Object} object The object to query.
|
|
1258
|
-
* @returns {Array} Returns the array of property names.
|
|
1259
|
-
* @example
|
|
1260
|
-
*
|
|
1261
|
-
* function Foo() {
|
|
1262
|
-
* this.a = 1;
|
|
1263
|
-
* this.b = 2;
|
|
1264
|
-
* }
|
|
1265
|
-
*
|
|
1266
|
-
* Foo.prototype.c = 3;
|
|
1267
|
-
*
|
|
1268
|
-
* _.keys(new Foo);
|
|
1269
|
-
* // => ['a', 'b'] (iteration order is not guaranteed)
|
|
1270
|
-
*
|
|
1271
|
-
* _.keys('hi');
|
|
1272
|
-
* // => ['0', '1']
|
|
1273
|
-
*/function keys(object){return isArrayLike(object)?arrayLikeKeys(object):baseKeys(object);}/**
|
|
1274
|
-
* This method returns a new empty array.
|
|
1275
|
-
*
|
|
1276
|
-
* @static
|
|
1277
|
-
* @memberOf _
|
|
1278
|
-
* @since 4.13.0
|
|
1279
|
-
* @category Util
|
|
1280
|
-
* @returns {Array} Returns the new empty array.
|
|
1281
|
-
* @example
|
|
1282
|
-
*
|
|
1283
|
-
* var arrays = _.times(2, _.stubArray);
|
|
1284
|
-
*
|
|
1285
|
-
* console.log(arrays);
|
|
1286
|
-
* // => [[], []]
|
|
1287
|
-
*
|
|
1288
|
-
* console.log(arrays[0] === arrays[1]);
|
|
1289
|
-
* // => false
|
|
1290
|
-
*/function stubArray(){return[];}/**
|
|
1291
|
-
* This method returns `false`.
|
|
1292
|
-
*
|
|
1293
|
-
* @static
|
|
1294
|
-
* @memberOf _
|
|
1295
|
-
* @since 4.13.0
|
|
1296
|
-
* @category Util
|
|
1297
|
-
* @returns {boolean} Returns `false`.
|
|
1298
|
-
* @example
|
|
1299
|
-
*
|
|
1300
|
-
* _.times(2, _.stubFalse);
|
|
1301
|
-
* // => [false, false]
|
|
1302
|
-
*/function stubFalse(){return false;}module.exports=cloneDeep;}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{});},{}],34:[function(require,module,exports){(function(global){/**
|
|
1303
|
-
* lodash (Custom Build) <https://lodash.com/>
|
|
1304
|
-
* Build: `lodash modularize exports="npm" -o ./`
|
|
1305
|
-
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
|
1306
|
-
* Released under MIT license <https://lodash.com/license>
|
|
1307
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
1308
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
1309
|
-
*/ /** Used as references for various `Number` constants. */var INFINITY=1/0;/** `Object#toString` result references. */var symbolTag='[object Symbol]';/**
|
|
1310
|
-
* Used to match `RegExp`
|
|
1311
|
-
* [syntax characters](http://ecma-international.org/ecma-262/6.0/#sec-patterns).
|
|
1312
|
-
*/var reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reHasRegExpChar=RegExp(reRegExpChar.source);/** Detect free variable `global` from Node.js. */var freeGlobal=_typeof(global)=='object'&&global&&global.Object===Object&&global;/** Detect free variable `self`. */var freeSelf=(typeof self==="undefined"?"undefined":_typeof(self))=='object'&&self&&self.Object===Object&&self;/** Used as a reference to the global object. */var root=freeGlobal||freeSelf||Function('return this')();/** Used for built-in method references. */var objectProto=Object.prototype;/**
|
|
1313
|
-
* Used to resolve the
|
|
1314
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
|
|
1315
|
-
* of values.
|
|
1316
|
-
*/var objectToString=objectProto.toString;/** Built-in value references. */var _Symbol2=root.Symbol;/** Used to convert symbols to primitives and strings. */var symbolProto=_Symbol2?_Symbol2.prototype:undefined,symbolToString=symbolProto?symbolProto.toString:undefined;/**
|
|
1317
|
-
* The base implementation of `_.toString` which doesn't convert nullish
|
|
1318
|
-
* values to empty strings.
|
|
1319
|
-
*
|
|
1320
|
-
* @private
|
|
1321
|
-
* @param {*} value The value to process.
|
|
1322
|
-
* @returns {string} Returns the string.
|
|
1323
|
-
*/function baseToString(value){// Exit early for strings to avoid a performance hit in some environments.
|
|
1324
|
-
if(typeof value=='string'){return value;}if(isSymbol(value)){return symbolToString?symbolToString.call(value):'';}var result=value+'';return result=='0'&&1/value==-INFINITY?'-0':result;}/**
|
|
1325
|
-
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
1326
|
-
* and has a `typeof` result of "object".
|
|
1327
|
-
*
|
|
1328
|
-
* @static
|
|
1329
|
-
* @memberOf _
|
|
1330
|
-
* @since 4.0.0
|
|
1331
|
-
* @category Lang
|
|
1332
|
-
* @param {*} value The value to check.
|
|
1333
|
-
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
1334
|
-
* @example
|
|
1335
|
-
*
|
|
1336
|
-
* _.isObjectLike({});
|
|
1337
|
-
* // => true
|
|
1338
|
-
*
|
|
1339
|
-
* _.isObjectLike([1, 2, 3]);
|
|
1340
|
-
* // => true
|
|
1341
|
-
*
|
|
1342
|
-
* _.isObjectLike(_.noop);
|
|
1343
|
-
* // => false
|
|
1344
|
-
*
|
|
1345
|
-
* _.isObjectLike(null);
|
|
1346
|
-
* // => false
|
|
1347
|
-
*/function isObjectLike(value){return!!value&&_typeof(value)=='object';}/**
|
|
1348
|
-
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
1349
|
-
*
|
|
1350
|
-
* @static
|
|
1351
|
-
* @memberOf _
|
|
1352
|
-
* @since 4.0.0
|
|
1353
|
-
* @category Lang
|
|
1354
|
-
* @param {*} value The value to check.
|
|
1355
|
-
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
1356
|
-
* @example
|
|
1357
|
-
*
|
|
1358
|
-
* _.isSymbol(Symbol.iterator);
|
|
1359
|
-
* // => true
|
|
1360
|
-
*
|
|
1361
|
-
* _.isSymbol('abc');
|
|
1362
|
-
* // => false
|
|
1363
|
-
*/function isSymbol(value){return _typeof(value)=='symbol'||isObjectLike(value)&&objectToString.call(value)==symbolTag;}/**
|
|
1364
|
-
* Converts `value` to a string. An empty string is returned for `null`
|
|
1365
|
-
* and `undefined` values. The sign of `-0` is preserved.
|
|
1366
|
-
*
|
|
1367
|
-
* @static
|
|
1368
|
-
* @memberOf _
|
|
1369
|
-
* @since 4.0.0
|
|
1370
|
-
* @category Lang
|
|
1371
|
-
* @param {*} value The value to process.
|
|
1372
|
-
* @returns {string} Returns the string.
|
|
1373
|
-
* @example
|
|
1374
|
-
*
|
|
1375
|
-
* _.toString(null);
|
|
1376
|
-
* // => ''
|
|
1377
|
-
*
|
|
1378
|
-
* _.toString(-0);
|
|
1379
|
-
* // => '-0'
|
|
1380
|
-
*
|
|
1381
|
-
* _.toString([1, 2, 3]);
|
|
1382
|
-
* // => '1,2,3'
|
|
1383
|
-
*/function toString(value){return value==null?'':baseToString(value);}/**
|
|
1384
|
-
* Escapes the `RegExp` special characters "^", "$", "\", ".", "*", "+",
|
|
1385
|
-
* "?", "(", ")", "[", "]", "{", "}", and "|" in `string`.
|
|
1386
|
-
*
|
|
1387
|
-
* @static
|
|
1388
|
-
* @memberOf _
|
|
1389
|
-
* @since 3.0.0
|
|
1390
|
-
* @category String
|
|
1391
|
-
* @param {string} [string=''] The string to escape.
|
|
1392
|
-
* @returns {string} Returns the escaped string.
|
|
1393
|
-
* @example
|
|
1394
|
-
*
|
|
1395
|
-
* _.escapeRegExp('[lodash](https://lodash.com/)');
|
|
1396
|
-
* // => '\[lodash\]\(https://lodash\.com/\)'
|
|
1397
|
-
*/function escapeRegExp(string){string=toString(string);return string&&reHasRegExpChar.test(string)?string.replace(reRegExpChar,'\\$&'):string;}module.exports=escapeRegExp;}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{});},{}],35:[function(require,module,exports){/**
|
|
1398
|
-
* lodash (Custom Build) <https://lodash.com/>
|
|
1399
|
-
* Build: `lodash modularize exports="npm" -o ./`
|
|
1400
|
-
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
|
1401
|
-
* Released under MIT license <https://lodash.com/license>
|
|
1402
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
1403
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
1404
|
-
*/ /** `Object#toString` result references. */var objectTag='[object Object]';/**
|
|
1405
|
-
* Checks if `value` is a host object in IE < 9.
|
|
1406
|
-
*
|
|
1407
|
-
* @private
|
|
1408
|
-
* @param {*} value The value to check.
|
|
1409
|
-
* @returns {boolean} Returns `true` if `value` is a host object, else `false`.
|
|
1410
|
-
*/function isHostObject(value){// Many host objects are `Object` objects that can coerce to strings
|
|
1411
|
-
// despite having improperly defined `toString` methods.
|
|
1412
|
-
var result=false;if(value!=null&&typeof value.toString!='function'){try{result=!!(value+'');}catch(e){}}return result;}/**
|
|
1413
|
-
* Creates a unary function that invokes `func` with its argument transformed.
|
|
1414
|
-
*
|
|
1415
|
-
* @private
|
|
1416
|
-
* @param {Function} func The function to wrap.
|
|
1417
|
-
* @param {Function} transform The argument transform.
|
|
1418
|
-
* @returns {Function} Returns the new function.
|
|
1419
|
-
*/function overArg(func,transform){return function(arg){return func(transform(arg));};}/** Used for built-in method references. */var funcProto=Function.prototype,objectProto=Object.prototype;/** Used to resolve the decompiled source of functions. */var funcToString=funcProto.toString;/** Used to check objects for own properties. */var hasOwnProperty=objectProto.hasOwnProperty;/** Used to infer the `Object` constructor. */var objectCtorString=funcToString.call(Object);/**
|
|
1420
|
-
* Used to resolve the
|
|
1421
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
1422
|
-
* of values.
|
|
1423
|
-
*/var objectToString=objectProto.toString;/** Built-in value references. */var getPrototype=overArg(Object.getPrototypeOf,Object);/**
|
|
1424
|
-
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
1425
|
-
* and has a `typeof` result of "object".
|
|
1426
|
-
*
|
|
1427
|
-
* @static
|
|
1428
|
-
* @memberOf _
|
|
1429
|
-
* @since 4.0.0
|
|
1430
|
-
* @category Lang
|
|
1431
|
-
* @param {*} value The value to check.
|
|
1432
|
-
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
1433
|
-
* @example
|
|
1434
|
-
*
|
|
1435
|
-
* _.isObjectLike({});
|
|
1436
|
-
* // => true
|
|
1437
|
-
*
|
|
1438
|
-
* _.isObjectLike([1, 2, 3]);
|
|
1439
|
-
* // => true
|
|
1440
|
-
*
|
|
1441
|
-
* _.isObjectLike(_.noop);
|
|
1442
|
-
* // => false
|
|
1443
|
-
*
|
|
1444
|
-
* _.isObjectLike(null);
|
|
1445
|
-
* // => false
|
|
1446
|
-
*/function isObjectLike(value){return!!value&&_typeof(value)=='object';}/**
|
|
1447
|
-
* Checks if `value` is a plain object, that is, an object created by the
|
|
1448
|
-
* `Object` constructor or one with a `[[Prototype]]` of `null`.
|
|
1449
|
-
*
|
|
1450
|
-
* @static
|
|
1451
|
-
* @memberOf _
|
|
1452
|
-
* @since 0.8.0
|
|
1453
|
-
* @category Lang
|
|
1454
|
-
* @param {*} value The value to check.
|
|
1455
|
-
* @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
|
|
1456
|
-
* @example
|
|
1457
|
-
*
|
|
1458
|
-
* function Foo() {
|
|
1459
|
-
* this.a = 1;
|
|
1460
|
-
* }
|
|
1461
|
-
*
|
|
1462
|
-
* _.isPlainObject(new Foo);
|
|
1463
|
-
* // => false
|
|
1464
|
-
*
|
|
1465
|
-
* _.isPlainObject([1, 2, 3]);
|
|
1466
|
-
* // => false
|
|
1467
|
-
*
|
|
1468
|
-
* _.isPlainObject({ 'x': 0, 'y': 0 });
|
|
1469
|
-
* // => true
|
|
1470
|
-
*
|
|
1471
|
-
* _.isPlainObject(Object.create(null));
|
|
1472
|
-
* // => true
|
|
1473
|
-
*/function isPlainObject(value){if(!isObjectLike(value)||objectToString.call(value)!=objectTag||isHostObject(value)){return false;}var proto=getPrototype(value);if(proto===null){return true;}var Ctor=hasOwnProperty.call(proto,'constructor')&&proto.constructor;return typeof Ctor=='function'&&Ctor instanceof Ctor&&funcToString.call(Ctor)==objectCtorString;}module.exports=isPlainObject;},{}],36:[function(require,module,exports){/**
|
|
1474
|
-
* lodash 4.0.1 (Custom Build) <https://lodash.com/>
|
|
1475
|
-
* Build: `lodash modularize exports="npm" -o ./`
|
|
1476
|
-
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
|
|
1477
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
1478
|
-
* Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
1479
|
-
* Available under MIT license <https://lodash.com/license>
|
|
1480
|
-
*/ /** `Object#toString` result references. */var stringTag='[object String]';/** Used for built-in method references. */var objectProto=Object.prototype;/**
|
|
1481
|
-
* Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
|
|
1482
|
-
* of values.
|
|
1483
|
-
*/var objectToString=objectProto.toString;/**
|
|
1484
|
-
* Checks if `value` is classified as an `Array` object.
|
|
1485
|
-
*
|
|
1486
|
-
* @static
|
|
1487
|
-
* @memberOf _
|
|
1488
|
-
* @type Function
|
|
1489
|
-
* @category Lang
|
|
1490
|
-
* @param {*} value The value to check.
|
|
1491
|
-
* @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
|
|
1492
|
-
* @example
|
|
1493
|
-
*
|
|
1494
|
-
* _.isArray([1, 2, 3]);
|
|
1495
|
-
* // => true
|
|
1496
|
-
*
|
|
1497
|
-
* _.isArray(document.body.children);
|
|
1498
|
-
* // => false
|
|
1499
|
-
*
|
|
1500
|
-
* _.isArray('abc');
|
|
1501
|
-
* // => false
|
|
1502
|
-
*
|
|
1503
|
-
* _.isArray(_.noop);
|
|
1504
|
-
* // => false
|
|
1505
|
-
*/var isArray=Array.isArray;/**
|
|
1506
|
-
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
1507
|
-
* and has a `typeof` result of "object".
|
|
1508
|
-
*
|
|
1509
|
-
* @static
|
|
1510
|
-
* @memberOf _
|
|
1511
|
-
* @category Lang
|
|
1512
|
-
* @param {*} value The value to check.
|
|
1513
|
-
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
1514
|
-
* @example
|
|
1515
|
-
*
|
|
1516
|
-
* _.isObjectLike({});
|
|
1517
|
-
* // => true
|
|
1518
|
-
*
|
|
1519
|
-
* _.isObjectLike([1, 2, 3]);
|
|
1520
|
-
* // => true
|
|
1521
|
-
*
|
|
1522
|
-
* _.isObjectLike(_.noop);
|
|
1523
|
-
* // => false
|
|
1524
|
-
*
|
|
1525
|
-
* _.isObjectLike(null);
|
|
1526
|
-
* // => false
|
|
1527
|
-
*/function isObjectLike(value){return!!value&&_typeof(value)=='object';}/**
|
|
1528
|
-
* Checks if `value` is classified as a `String` primitive or object.
|
|
1529
|
-
*
|
|
1530
|
-
* @static
|
|
1531
|
-
* @memberOf _
|
|
1532
|
-
* @category Lang
|
|
1533
|
-
* @param {*} value The value to check.
|
|
1534
|
-
* @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
|
|
1535
|
-
* @example
|
|
1536
|
-
*
|
|
1537
|
-
* _.isString('abc');
|
|
1538
|
-
* // => true
|
|
1539
|
-
*
|
|
1540
|
-
* _.isString(1);
|
|
1541
|
-
* // => false
|
|
1542
|
-
*/function isString(value){return typeof value=='string'||!isArray(value)&&isObjectLike(value)&&objectToString.call(value)==stringTag;}module.exports=isString;},{}],37:[function(require,module,exports){(function(global){/**
|
|
1543
|
-
* Lodash (Custom Build) <https://lodash.com/>
|
|
1544
|
-
* Build: `lodash modularize exports="npm" -o ./`
|
|
1545
|
-
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
1546
|
-
* Released under MIT license <https://lodash.com/license>
|
|
1547
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
1548
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
1549
|
-
*/ /** Used as the size to enable large array optimizations. */var LARGE_ARRAY_SIZE=200;/** Used to stand-in for `undefined` hash values. */var HASH_UNDEFINED='__lodash_hash_undefined__';/** Used to detect hot functions by number of calls within a span of milliseconds. */var HOT_COUNT=800,HOT_SPAN=16;/** Used as references for various `Number` constants. */var MAX_SAFE_INTEGER=9007199254740991;/** `Object#toString` result references. */var argsTag='[object Arguments]',arrayTag='[object Array]',asyncTag='[object AsyncFunction]',boolTag='[object Boolean]',dateTag='[object Date]',errorTag='[object Error]',funcTag='[object Function]',genTag='[object GeneratorFunction]',mapTag='[object Map]',numberTag='[object Number]',nullTag='[object Null]',objectTag='[object Object]',proxyTag='[object Proxy]',regexpTag='[object RegExp]',setTag='[object Set]',stringTag='[object String]',undefinedTag='[object Undefined]',weakMapTag='[object WeakMap]';var arrayBufferTag='[object ArrayBuffer]',dataViewTag='[object DataView]',float32Tag='[object Float32Array]',float64Tag='[object Float64Array]',int8Tag='[object Int8Array]',int16Tag='[object Int16Array]',int32Tag='[object Int32Array]',uint8Tag='[object Uint8Array]',uint8ClampedTag='[object Uint8ClampedArray]',uint16Tag='[object Uint16Array]',uint32Tag='[object Uint32Array]';/**
|
|
1550
|
-
* Used to match `RegExp`
|
|
1551
|
-
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
1552
|
-
*/var reRegExpChar=/[\\^$.*+?()[\]{}|]/g;/** Used to detect host constructors (Safari). */var reIsHostCtor=/^\[object .+?Constructor\]$/;/** Used to detect unsigned integer values. */var reIsUint=/^(?:0|[1-9]\d*)$/;/** Used to identify `toStringTag` values of typed arrays. */var typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=true;typedArrayTags[argsTag]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag]=typedArrayTags[numberTag]=typedArrayTags[objectTag]=typedArrayTags[regexpTag]=typedArrayTags[setTag]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag]=false;/** Detect free variable `global` from Node.js. */var freeGlobal=_typeof(global)=='object'&&global&&global.Object===Object&&global;/** Detect free variable `self`. */var freeSelf=(typeof self==="undefined"?"undefined":_typeof(self))=='object'&&self&&self.Object===Object&&self;/** Used as a reference to the global object. */var root=freeGlobal||freeSelf||Function('return this')();/** Detect free variable `exports`. */var freeExports=_typeof(exports)=='object'&&exports&&!exports.nodeType&&exports;/** Detect free variable `module`. */var freeModule=freeExports&&_typeof(module)=='object'&&module&&!module.nodeType&&module;/** Detect the popular CommonJS extension `module.exports`. */var moduleExports=freeModule&&freeModule.exports===freeExports;/** Detect free variable `process` from Node.js. */var freeProcess=moduleExports&&freeGlobal.process;/** Used to access faster Node.js helpers. */var nodeUtil=function(){try{// Use `util.types` for Node.js 10+.
|
|
1553
|
-
var types=freeModule&&freeModule.require&&freeModule.require('util').types;if(types){return types;}// Legacy `process.binding('util')` for Node.js < 10.
|
|
1554
|
-
return freeProcess&&freeProcess.binding&&freeProcess.binding('util');}catch(e){}}();/* Node.js helper references. */var nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray;/**
|
|
1555
|
-
* A faster alternative to `Function#apply`, this function invokes `func`
|
|
1556
|
-
* with the `this` binding of `thisArg` and the arguments of `args`.
|
|
1557
|
-
*
|
|
1558
|
-
* @private
|
|
1559
|
-
* @param {Function} func The function to invoke.
|
|
1560
|
-
* @param {*} thisArg The `this` binding of `func`.
|
|
1561
|
-
* @param {Array} args The arguments to invoke `func` with.
|
|
1562
|
-
* @returns {*} Returns the result of `func`.
|
|
1563
|
-
*/function apply(func,thisArg,args){switch(args.length){case 0:return func.call(thisArg);case 1:return func.call(thisArg,args[0]);case 2:return func.call(thisArg,args[0],args[1]);case 3:return func.call(thisArg,args[0],args[1],args[2]);}return func.apply(thisArg,args);}/**
|
|
1564
|
-
* The base implementation of `_.times` without support for iteratee shorthands
|
|
1565
|
-
* or max array length checks.
|
|
1566
|
-
*
|
|
1567
|
-
* @private
|
|
1568
|
-
* @param {number} n The number of times to invoke `iteratee`.
|
|
1569
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
1570
|
-
* @returns {Array} Returns the array of results.
|
|
1571
|
-
*/function baseTimes(n,iteratee){var index=-1,result=Array(n);while(++index<n){result[index]=iteratee(index);}return result;}/**
|
|
1572
|
-
* The base implementation of `_.unary` without support for storing metadata.
|
|
1573
|
-
*
|
|
1574
|
-
* @private
|
|
1575
|
-
* @param {Function} func The function to cap arguments for.
|
|
1576
|
-
* @returns {Function} Returns the new capped function.
|
|
1577
|
-
*/function baseUnary(func){return function(value){return func(value);};}/**
|
|
1578
|
-
* Gets the value at `key` of `object`.
|
|
1579
|
-
*
|
|
1580
|
-
* @private
|
|
1581
|
-
* @param {Object} [object] The object to query.
|
|
1582
|
-
* @param {string} key The key of the property to get.
|
|
1583
|
-
* @returns {*} Returns the property value.
|
|
1584
|
-
*/function getValue(object,key){return object==null?undefined:object[key];}/**
|
|
1585
|
-
* Creates a unary function that invokes `func` with its argument transformed.
|
|
1586
|
-
*
|
|
1587
|
-
* @private
|
|
1588
|
-
* @param {Function} func The function to wrap.
|
|
1589
|
-
* @param {Function} transform The argument transform.
|
|
1590
|
-
* @returns {Function} Returns the new function.
|
|
1591
|
-
*/function overArg(func,transform){return function(arg){return func(transform(arg));};}/** Used for built-in method references. */var arrayProto=Array.prototype,funcProto=Function.prototype,objectProto=Object.prototype;/** Used to detect overreaching core-js shims. */var coreJsData=root['__core-js_shared__'];/** Used to resolve the decompiled source of functions. */var funcToString=funcProto.toString;/** Used to check objects for own properties. */var hasOwnProperty=objectProto.hasOwnProperty;/** Used to detect methods masquerading as native. */var maskSrcKey=function(){var uid=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||'');return uid?'Symbol(src)_1.'+uid:'';}();/**
|
|
1592
|
-
* Used to resolve the
|
|
1593
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
1594
|
-
* of values.
|
|
1595
|
-
*/var nativeObjectToString=objectProto.toString;/** Used to infer the `Object` constructor. */var objectCtorString=funcToString.call(Object);/** Used to detect if a method is native. */var reIsNative=RegExp('^'+funcToString.call(hasOwnProperty).replace(reRegExpChar,'\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,'$1.*?')+'$');/** Built-in value references. */var Buffer=moduleExports?root.Buffer:undefined,_Symbol3=root.Symbol,Uint8Array=root.Uint8Array,allocUnsafe=Buffer?Buffer.allocUnsafe:undefined,getPrototype=overArg(Object.getPrototypeOf,Object),objectCreate=Object.create,propertyIsEnumerable=objectProto.propertyIsEnumerable,splice=arrayProto.splice,symToStringTag=_Symbol3?_Symbol3.toStringTag:undefined;var defineProperty=function(){try{var func=getNative(Object,'defineProperty');func({},'',{});return func;}catch(e){}}();/* Built-in method references for those with the same name as other `lodash` methods. */var nativeIsBuffer=Buffer?Buffer.isBuffer:undefined,nativeMax=Math.max,nativeNow=Date.now;/* Built-in method references that are verified to be native. */var Map=getNative(root,'Map'),nativeCreate=getNative(Object,'create');/**
|
|
1596
|
-
* The base implementation of `_.create` without support for assigning
|
|
1597
|
-
* properties to the created object.
|
|
1598
|
-
*
|
|
1599
|
-
* @private
|
|
1600
|
-
* @param {Object} proto The object to inherit from.
|
|
1601
|
-
* @returns {Object} Returns the new object.
|
|
1602
|
-
*/var baseCreate=function(){function object(){}return function(proto){if(!isObject(proto)){return{};}if(objectCreate){return objectCreate(proto);}object.prototype=proto;var result=new object();object.prototype=undefined;return result;};}();/**
|
|
469
|
+
*/__export(require("./FeedHandler"));__export(require("./WritableStream"));__export(require("./CollectingHandler"));var DomUtils=__importStar(require("domutils"));exports.DomUtils=DomUtils;var FeedHandler_1=require("./FeedHandler");exports.RssHandler=FeedHandler_1.FeedHandler;},{"./CollectingHandler":26,"./FeedHandler":27,"./Parser":29,"./Tokenizer":30,"./WritableStream":2,"domelementtype":6,"domhandler":7,"domutils":10}],32:[function(require,module,exports){exports.read=function(buffer,offset,isLE,mLen,nBytes){var e,m;var eLen=nBytes*8-mLen-1;var eMax=(1<<eLen)-1;var eBias=eMax>>1;var nBits=-7;var i=isLE?nBytes-1:0;var d=isLE?-1:1;var s=buffer[offset+i];i+=d;e=s&(1<<-nBits)-1;s>>=-nBits;nBits+=eLen;for(;nBits>0;e=e*256+buffer[offset+i],i+=d,nBits-=8){}m=e&(1<<-nBits)-1;e>>=-nBits;nBits+=mLen;for(;nBits>0;m=m*256+buffer[offset+i],i+=d,nBits-=8){}if(e===0){e=1-eBias;}else if(e===eMax){return m?NaN:(s?-1:1)*Infinity;}else{m=m+Math.pow(2,mLen);e=e-eBias;}return(s?-1:1)*m*Math.pow(2,e-mLen);};exports.write=function(buffer,value,offset,isLE,mLen,nBytes){var e,m,c;var eLen=nBytes*8-mLen-1;var eMax=(1<<eLen)-1;var eBias=eMax>>1;var rt=mLen===23?Math.pow(2,-24)-Math.pow(2,-77):0;var i=isLE?0:nBytes-1;var d=isLE?1:-1;var s=value<0||value===0&&1/value<0?1:0;value=Math.abs(value);if(isNaN(value)||value===Infinity){m=isNaN(value)?1:0;e=eMax;}else{e=Math.floor(Math.log(value)/Math.LN2);if(value*(c=Math.pow(2,-e))<1){e--;c*=2;}if(e+eBias>=1){value+=rt/c;}else{value+=rt*Math.pow(2,1-eBias);}if(value*c>=2){e++;c/=2;}if(e+eBias>=eMax){m=0;e=eMax;}else if(e+eBias>=1){m=(value*c-1)*Math.pow(2,mLen);e=e+eBias;}else{m=value*Math.pow(2,eBias-1)*Math.pow(2,mLen);e=0;}}for(;mLen>=8;buffer[offset+i]=m&0xff,i+=d,m/=256,mLen-=8){}e=e<<mLen|m;eLen+=mLen;for(;eLen>0;buffer[offset+i]=e&0xff,i+=d,e/=256,eLen-=8){}buffer[offset+i-d]|=s*128;};},{}],33:[function(require,module,exports){var getNative=require('./_getNative'),root=require('./_root');/* Built-in method references that are verified to be native. */var DataView=getNative(root,'DataView');module.exports=DataView;},{"./_getNative":93,"./_root":130}],34:[function(require,module,exports){var hashClear=require('./_hashClear'),hashDelete=require('./_hashDelete'),hashGet=require('./_hashGet'),hashHas=require('./_hashHas'),hashSet=require('./_hashSet');/**
|
|
1603
470
|
* Creates a hash object.
|
|
1604
471
|
*
|
|
1605
472
|
* @private
|
|
1606
473
|
* @constructor
|
|
1607
474
|
* @param {Array} [entries] The key-value pairs to cache.
|
|
1608
|
-
*/function Hash(entries){var index=-1,length=entries==null?0:entries.length;this.clear();while(++index<length){var entry=entries[index];this.set(entry[0],entry[1]);}}
|
|
1609
|
-
|
|
1610
|
-
*
|
|
1611
|
-
* @private
|
|
1612
|
-
* @name clear
|
|
1613
|
-
* @memberOf Hash
|
|
1614
|
-
*/function hashClear(){this.__data__=nativeCreate?nativeCreate(null):{};this.size=0;}/**
|
|
1615
|
-
* Removes `key` and its value from the hash.
|
|
1616
|
-
*
|
|
1617
|
-
* @private
|
|
1618
|
-
* @name delete
|
|
1619
|
-
* @memberOf Hash
|
|
1620
|
-
* @param {Object} hash The hash to modify.
|
|
1621
|
-
* @param {string} key The key of the value to remove.
|
|
1622
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
1623
|
-
*/function hashDelete(key){var result=this.has(key)&&delete this.__data__[key];this.size-=result?1:0;return result;}/**
|
|
1624
|
-
* Gets the hash value for `key`.
|
|
1625
|
-
*
|
|
1626
|
-
* @private
|
|
1627
|
-
* @name get
|
|
1628
|
-
* @memberOf Hash
|
|
1629
|
-
* @param {string} key The key of the value to get.
|
|
1630
|
-
* @returns {*} Returns the entry value.
|
|
1631
|
-
*/function hashGet(key){var data=this.__data__;if(nativeCreate){var result=data[key];return result===HASH_UNDEFINED?undefined:result;}return hasOwnProperty.call(data,key)?data[key]:undefined;}/**
|
|
1632
|
-
* Checks if a hash value for `key` exists.
|
|
1633
|
-
*
|
|
1634
|
-
* @private
|
|
1635
|
-
* @name has
|
|
1636
|
-
* @memberOf Hash
|
|
1637
|
-
* @param {string} key The key of the entry to check.
|
|
1638
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1639
|
-
*/function hashHas(key){var data=this.__data__;return nativeCreate?data[key]!==undefined:hasOwnProperty.call(data,key);}/**
|
|
1640
|
-
* Sets the hash `key` to `value`.
|
|
1641
|
-
*
|
|
1642
|
-
* @private
|
|
1643
|
-
* @name set
|
|
1644
|
-
* @memberOf Hash
|
|
1645
|
-
* @param {string} key The key of the value to set.
|
|
1646
|
-
* @param {*} value The value to set.
|
|
1647
|
-
* @returns {Object} Returns the hash instance.
|
|
1648
|
-
*/function hashSet(key,value){var data=this.__data__;this.size+=this.has(key)?0:1;data[key]=nativeCreate&&value===undefined?HASH_UNDEFINED:value;return this;}// Add methods to `Hash`.
|
|
1649
|
-
Hash.prototype.clear=hashClear;Hash.prototype['delete']=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;/**
|
|
475
|
+
*/function Hash(entries){var index=-1,length=entries==null?0:entries.length;this.clear();while(++index<length){var entry=entries[index];this.set(entry[0],entry[1]);}}// Add methods to `Hash`.
|
|
476
|
+
Hash.prototype.clear=hashClear;Hash.prototype['delete']=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;module.exports=Hash;},{"./_hashClear":100,"./_hashDelete":101,"./_hashGet":102,"./_hashHas":103,"./_hashSet":104}],35:[function(require,module,exports){var listCacheClear=require('./_listCacheClear'),listCacheDelete=require('./_listCacheDelete'),listCacheGet=require('./_listCacheGet'),listCacheHas=require('./_listCacheHas'),listCacheSet=require('./_listCacheSet');/**
|
|
1650
477
|
* Creates an list cache object.
|
|
1651
478
|
*
|
|
1652
479
|
* @private
|
|
1653
480
|
* @constructor
|
|
1654
481
|
* @param {Array} [entries] The key-value pairs to cache.
|
|
1655
|
-
*/function ListCache(entries){var index=-1,length=entries==null?0:entries.length;this.clear();while(++index<length){var entry=entries[index];this.set(entry[0],entry[1]);}}
|
|
1656
|
-
|
|
1657
|
-
*
|
|
1658
|
-
* @private
|
|
1659
|
-
* @name clear
|
|
1660
|
-
* @memberOf ListCache
|
|
1661
|
-
*/function listCacheClear(){this.__data__=[];this.size=0;}/**
|
|
1662
|
-
* Removes `key` and its value from the list cache.
|
|
1663
|
-
*
|
|
1664
|
-
* @private
|
|
1665
|
-
* @name delete
|
|
1666
|
-
* @memberOf ListCache
|
|
1667
|
-
* @param {string} key The key of the value to remove.
|
|
1668
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
1669
|
-
*/function listCacheDelete(key){var data=this.__data__,index=assocIndexOf(data,key);if(index<0){return false;}var lastIndex=data.length-1;if(index==lastIndex){data.pop();}else{splice.call(data,index,1);}--this.size;return true;}/**
|
|
1670
|
-
* Gets the list cache value for `key`.
|
|
1671
|
-
*
|
|
1672
|
-
* @private
|
|
1673
|
-
* @name get
|
|
1674
|
-
* @memberOf ListCache
|
|
1675
|
-
* @param {string} key The key of the value to get.
|
|
1676
|
-
* @returns {*} Returns the entry value.
|
|
1677
|
-
*/function listCacheGet(key){var data=this.__data__,index=assocIndexOf(data,key);return index<0?undefined:data[index][1];}/**
|
|
1678
|
-
* Checks if a list cache value for `key` exists.
|
|
1679
|
-
*
|
|
1680
|
-
* @private
|
|
1681
|
-
* @name has
|
|
1682
|
-
* @memberOf ListCache
|
|
1683
|
-
* @param {string} key The key of the entry to check.
|
|
1684
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1685
|
-
*/function listCacheHas(key){return assocIndexOf(this.__data__,key)>-1;}/**
|
|
1686
|
-
* Sets the list cache `key` to `value`.
|
|
1687
|
-
*
|
|
1688
|
-
* @private
|
|
1689
|
-
* @name set
|
|
1690
|
-
* @memberOf ListCache
|
|
1691
|
-
* @param {string} key The key of the value to set.
|
|
1692
|
-
* @param {*} value The value to set.
|
|
1693
|
-
* @returns {Object} Returns the list cache instance.
|
|
1694
|
-
*/function listCacheSet(key,value){var data=this.__data__,index=assocIndexOf(data,key);if(index<0){++this.size;data.push([key,value]);}else{data[index][1]=value;}return this;}// Add methods to `ListCache`.
|
|
1695
|
-
ListCache.prototype.clear=listCacheClear;ListCache.prototype['delete']=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;/**
|
|
482
|
+
*/function ListCache(entries){var index=-1,length=entries==null?0:entries.length;this.clear();while(++index<length){var entry=entries[index];this.set(entry[0],entry[1]);}}// Add methods to `ListCache`.
|
|
483
|
+
ListCache.prototype.clear=listCacheClear;ListCache.prototype['delete']=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;module.exports=ListCache;},{"./_listCacheClear":113,"./_listCacheDelete":114,"./_listCacheGet":115,"./_listCacheHas":116,"./_listCacheSet":117}],36:[function(require,module,exports){var getNative=require('./_getNative'),root=require('./_root');/* Built-in method references that are verified to be native. */var Map=getNative(root,'Map');module.exports=Map;},{"./_getNative":93,"./_root":130}],37:[function(require,module,exports){var mapCacheClear=require('./_mapCacheClear'),mapCacheDelete=require('./_mapCacheDelete'),mapCacheGet=require('./_mapCacheGet'),mapCacheHas=require('./_mapCacheHas'),mapCacheSet=require('./_mapCacheSet');/**
|
|
1696
484
|
* Creates a map cache object to store key-value pairs.
|
|
1697
485
|
*
|
|
1698
486
|
* @private
|
|
1699
487
|
* @constructor
|
|
1700
488
|
* @param {Array} [entries] The key-value pairs to cache.
|
|
1701
|
-
*/function MapCache(entries){var index=-1,length=entries==null?0:entries.length;this.clear();while(++index<length){var entry=entries[index];this.set(entry[0],entry[1]);}}
|
|
1702
|
-
|
|
1703
|
-
*
|
|
1704
|
-
* @private
|
|
1705
|
-
* @name clear
|
|
1706
|
-
* @memberOf MapCache
|
|
1707
|
-
*/function mapCacheClear(){this.size=0;this.__data__={'hash':new Hash(),'map':new(Map||ListCache)(),'string':new Hash()};}/**
|
|
1708
|
-
* Removes `key` and its value from the map.
|
|
1709
|
-
*
|
|
1710
|
-
* @private
|
|
1711
|
-
* @name delete
|
|
1712
|
-
* @memberOf MapCache
|
|
1713
|
-
* @param {string} key The key of the value to remove.
|
|
1714
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
1715
|
-
*/function mapCacheDelete(key){var result=getMapData(this,key)['delete'](key);this.size-=result?1:0;return result;}/**
|
|
1716
|
-
* Gets the map value for `key`.
|
|
1717
|
-
*
|
|
1718
|
-
* @private
|
|
1719
|
-
* @name get
|
|
1720
|
-
* @memberOf MapCache
|
|
1721
|
-
* @param {string} key The key of the value to get.
|
|
1722
|
-
* @returns {*} Returns the entry value.
|
|
1723
|
-
*/function mapCacheGet(key){return getMapData(this,key).get(key);}/**
|
|
1724
|
-
* Checks if a map value for `key` exists.
|
|
1725
|
-
*
|
|
1726
|
-
* @private
|
|
1727
|
-
* @name has
|
|
1728
|
-
* @memberOf MapCache
|
|
1729
|
-
* @param {string} key The key of the entry to check.
|
|
1730
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1731
|
-
*/function mapCacheHas(key){return getMapData(this,key).has(key);}/**
|
|
1732
|
-
* Sets the map `key` to `value`.
|
|
1733
|
-
*
|
|
1734
|
-
* @private
|
|
1735
|
-
* @name set
|
|
1736
|
-
* @memberOf MapCache
|
|
1737
|
-
* @param {string} key The key of the value to set.
|
|
1738
|
-
* @param {*} value The value to set.
|
|
1739
|
-
* @returns {Object} Returns the map cache instance.
|
|
1740
|
-
*/function mapCacheSet(key,value){var data=getMapData(this,key),size=data.size;data.set(key,value);this.size+=data.size==size?0:1;return this;}// Add methods to `MapCache`.
|
|
1741
|
-
MapCache.prototype.clear=mapCacheClear;MapCache.prototype['delete']=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;/**
|
|
489
|
+
*/function MapCache(entries){var index=-1,length=entries==null?0:entries.length;this.clear();while(++index<length){var entry=entries[index];this.set(entry[0],entry[1]);}}// Add methods to `MapCache`.
|
|
490
|
+
MapCache.prototype.clear=mapCacheClear;MapCache.prototype['delete']=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;module.exports=MapCache;},{"./_mapCacheClear":118,"./_mapCacheDelete":119,"./_mapCacheGet":120,"./_mapCacheHas":121,"./_mapCacheSet":122}],38:[function(require,module,exports){var getNative=require('./_getNative'),root=require('./_root');/* Built-in method references that are verified to be native. */var Promise=getNative(root,'Promise');module.exports=Promise;},{"./_getNative":93,"./_root":130}],39:[function(require,module,exports){var getNative=require('./_getNative'),root=require('./_root');/* Built-in method references that are verified to be native. */var Set=getNative(root,'Set');module.exports=Set;},{"./_getNative":93,"./_root":130}],40:[function(require,module,exports){var ListCache=require('./_ListCache'),stackClear=require('./_stackClear'),stackDelete=require('./_stackDelete'),stackGet=require('./_stackGet'),stackHas=require('./_stackHas'),stackSet=require('./_stackSet');/**
|
|
1742
491
|
* Creates a stack cache object to store key-value pairs.
|
|
1743
492
|
*
|
|
1744
493
|
* @private
|
|
1745
494
|
* @constructor
|
|
1746
495
|
* @param {Array} [entries] The key-value pairs to cache.
|
|
1747
|
-
*/function Stack(entries){var data=this.__data__=new ListCache(entries);this.size=data.size;}
|
|
1748
|
-
|
|
1749
|
-
*
|
|
1750
|
-
*
|
|
1751
|
-
* @name clear
|
|
1752
|
-
* @memberOf Stack
|
|
1753
|
-
*/function stackClear(){this.__data__=new ListCache();this.size=0;}/**
|
|
1754
|
-
* Removes `key` and its value from the stack.
|
|
1755
|
-
*
|
|
1756
|
-
* @private
|
|
1757
|
-
* @name delete
|
|
1758
|
-
* @memberOf Stack
|
|
1759
|
-
* @param {string} key The key of the value to remove.
|
|
1760
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
1761
|
-
*/function stackDelete(key){var data=this.__data__,result=data['delete'](key);this.size=data.size;return result;}/**
|
|
1762
|
-
* Gets the stack value for `key`.
|
|
496
|
+
*/function Stack(entries){var data=this.__data__=new ListCache(entries);this.size=data.size;}// Add methods to `Stack`.
|
|
497
|
+
Stack.prototype.clear=stackClear;Stack.prototype['delete']=stackDelete;Stack.prototype.get=stackGet;Stack.prototype.has=stackHas;Stack.prototype.set=stackSet;module.exports=Stack;},{"./_ListCache":35,"./_stackClear":134,"./_stackDelete":135,"./_stackGet":136,"./_stackHas":137,"./_stackSet":138}],41:[function(require,module,exports){var root=require('./_root');/** Built-in value references. */var _Symbol=root.Symbol;module.exports=_Symbol;},{"./_root":130}],42:[function(require,module,exports){var root=require('./_root');/** Built-in value references. */var Uint8Array=root.Uint8Array;module.exports=Uint8Array;},{"./_root":130}],43:[function(require,module,exports){var getNative=require('./_getNative'),root=require('./_root');/* Built-in method references that are verified to be native. */var WeakMap=getNative(root,'WeakMap');module.exports=WeakMap;},{"./_getNative":93,"./_root":130}],44:[function(require,module,exports){/**
|
|
498
|
+
* A faster alternative to `Function#apply`, this function invokes `func`
|
|
499
|
+
* with the `this` binding of `thisArg` and the arguments of `args`.
|
|
1763
500
|
*
|
|
1764
501
|
* @private
|
|
1765
|
-
* @
|
|
1766
|
-
* @
|
|
1767
|
-
* @param {
|
|
1768
|
-
* @returns {*} Returns the
|
|
1769
|
-
*/function
|
|
1770
|
-
*
|
|
502
|
+
* @param {Function} func The function to invoke.
|
|
503
|
+
* @param {*} thisArg The `this` binding of `func`.
|
|
504
|
+
* @param {Array} args The arguments to invoke `func` with.
|
|
505
|
+
* @returns {*} Returns the result of `func`.
|
|
506
|
+
*/function apply(func,thisArg,args){switch(args.length){case 0:return func.call(thisArg);case 1:return func.call(thisArg,args[0]);case 2:return func.call(thisArg,args[0],args[1]);case 3:return func.call(thisArg,args[0],args[1],args[2]);}return func.apply(thisArg,args);}module.exports=apply;},{}],45:[function(require,module,exports){/**
|
|
507
|
+
* A specialized version of `_.forEach` for arrays without support for
|
|
508
|
+
* iteratee shorthands.
|
|
1771
509
|
*
|
|
1772
510
|
* @private
|
|
1773
|
-
* @
|
|
1774
|
-
* @
|
|
1775
|
-
* @
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
*
|
|
511
|
+
* @param {Array} [array] The array to iterate over.
|
|
512
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
513
|
+
* @returns {Array} Returns `array`.
|
|
514
|
+
*/function arrayEach(array,iteratee){var index=-1,length=array==null?0:array.length;while(++index<length){if(iteratee(array[index],index,array)===false){break;}}return array;}module.exports=arrayEach;},{}],46:[function(require,module,exports){/**
|
|
515
|
+
* A specialized version of `_.filter` for arrays without support for
|
|
516
|
+
* iteratee shorthands.
|
|
1779
517
|
*
|
|
1780
518
|
* @private
|
|
1781
|
-
* @
|
|
1782
|
-
* @
|
|
1783
|
-
* @
|
|
1784
|
-
|
|
1785
|
-
* @returns {Object} Returns the stack cache instance.
|
|
1786
|
-
*/function stackSet(key,value){var data=this.__data__;if(data instanceof ListCache){var pairs=data.__data__;if(!Map||pairs.length<LARGE_ARRAY_SIZE-1){pairs.push([key,value]);this.size=++data.size;return this;}data=this.__data__=new MapCache(pairs);}data.set(key,value);this.size=data.size;return this;}// Add methods to `Stack`.
|
|
1787
|
-
Stack.prototype.clear=stackClear;Stack.prototype['delete']=stackDelete;Stack.prototype.get=stackGet;Stack.prototype.has=stackHas;Stack.prototype.set=stackSet;/**
|
|
519
|
+
* @param {Array} [array] The array to iterate over.
|
|
520
|
+
* @param {Function} predicate The function invoked per iteration.
|
|
521
|
+
* @returns {Array} Returns the new filtered array.
|
|
522
|
+
*/function arrayFilter(array,predicate){var index=-1,length=array==null?0:array.length,resIndex=0,result=[];while(++index<length){var value=array[index];if(predicate(value,index,array)){result[resIndex++]=value;}}return result;}module.exports=arrayFilter;},{}],47:[function(require,module,exports){var baseTimes=require('./_baseTimes'),isArguments=require('./isArguments'),isArray=require('./isArray'),isBuffer=require('./isBuffer'),isIndex=require('./_isIndex'),isTypedArray=require('./isTypedArray');/** Used for built-in method references. */var objectProto=Object.prototype;/** Used to check objects for own properties. */var hasOwnProperty=objectProto.hasOwnProperty;/**
|
|
1788
523
|
* Creates an array of the enumerable property names of the array-like `value`.
|
|
1789
524
|
*
|
|
1790
525
|
* @private
|
|
@@ -1795,7 +530,22 @@ Stack.prototype.clear=stackClear;Stack.prototype['delete']=stackDelete;Stack.pro
|
|
|
1795
530
|
key=='length'||// Node.js 0.10 has enumerable non-index properties on buffers.
|
|
1796
531
|
isBuff&&(key=='offset'||key=='parent')||// PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
1797
532
|
isType&&(key=='buffer'||key=='byteLength'||key=='byteOffset')||// Skip index properties.
|
|
1798
|
-
isIndex(key,length)))){result.push(key);}}return result;}/**
|
|
533
|
+
isIndex(key,length)))){result.push(key);}}return result;}module.exports=arrayLikeKeys;},{"./_baseTimes":72,"./_isIndex":108,"./isArguments":145,"./isArray":146,"./isBuffer":149,"./isTypedArray":159}],48:[function(require,module,exports){/**
|
|
534
|
+
* A specialized version of `_.map` for arrays without support for iteratee
|
|
535
|
+
* shorthands.
|
|
536
|
+
*
|
|
537
|
+
* @private
|
|
538
|
+
* @param {Array} [array] The array to iterate over.
|
|
539
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
540
|
+
* @returns {Array} Returns the new mapped array.
|
|
541
|
+
*/function arrayMap(array,iteratee){var index=-1,length=array==null?0:array.length,result=Array(length);while(++index<length){result[index]=iteratee(array[index],index,array);}return result;}module.exports=arrayMap;},{}],49:[function(require,module,exports){/**
|
|
542
|
+
* Appends the elements of `values` to `array`.
|
|
543
|
+
*
|
|
544
|
+
* @private
|
|
545
|
+
* @param {Array} array The array to modify.
|
|
546
|
+
* @param {Array} values The values to append.
|
|
547
|
+
* @returns {Array} Returns `array`.
|
|
548
|
+
*/function arrayPush(array,values){var index=-1,length=values.length,offset=array.length;while(++index<length){array[offset+index]=values[index];}return array;}module.exports=arrayPush;},{}],50:[function(require,module,exports){var baseAssignValue=require('./_baseAssignValue'),eq=require('./eq');/**
|
|
1799
549
|
* This function is like `assignValue` except that it doesn't assign
|
|
1800
550
|
* `undefined` values.
|
|
1801
551
|
*
|
|
@@ -1803,7 +553,7 @@ isIndex(key,length)))){result.push(key);}}return result;}/**
|
|
|
1803
553
|
* @param {Object} object The object to modify.
|
|
1804
554
|
* @param {string} key The key of the property to assign.
|
|
1805
555
|
* @param {*} value The value to assign.
|
|
1806
|
-
*/function assignMergeValue(object,key,value){if(value!==undefined&&!eq(object[key],value)||value===undefined&&!(key in object)){baseAssignValue(object,key,value);}}
|
|
556
|
+
*/function assignMergeValue(object,key,value){if(value!==undefined&&!eq(object[key],value)||value===undefined&&!(key in object)){baseAssignValue(object,key,value);}}module.exports=assignMergeValue;},{"./_baseAssignValue":55,"./eq":142}],51:[function(require,module,exports){var baseAssignValue=require('./_baseAssignValue'),eq=require('./eq');/** Used for built-in method references. */var objectProto=Object.prototype;/** Used to check objects for own properties. */var hasOwnProperty=objectProto.hasOwnProperty;/**
|
|
1807
557
|
* Assigns `value` to `key` of `object` if the existing value is not equivalent
|
|
1808
558
|
* using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
1809
559
|
* for equality comparisons.
|
|
@@ -1812,14 +562,30 @@ isIndex(key,length)))){result.push(key);}}return result;}/**
|
|
|
1812
562
|
* @param {Object} object The object to modify.
|
|
1813
563
|
* @param {string} key The key of the property to assign.
|
|
1814
564
|
* @param {*} value The value to assign.
|
|
1815
|
-
*/function assignValue(object,key,value){var objValue=object[key];if(!(hasOwnProperty.call(object,key)&&eq(objValue,value))||value===undefined&&!(key in object)){baseAssignValue(object,key,value);}}
|
|
565
|
+
*/function assignValue(object,key,value){var objValue=object[key];if(!(hasOwnProperty.call(object,key)&&eq(objValue,value))||value===undefined&&!(key in object)){baseAssignValue(object,key,value);}}module.exports=assignValue;},{"./_baseAssignValue":55,"./eq":142}],52:[function(require,module,exports){var eq=require('./eq');/**
|
|
1816
566
|
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
1817
567
|
*
|
|
1818
568
|
* @private
|
|
1819
569
|
* @param {Array} array The array to inspect.
|
|
1820
570
|
* @param {*} key The key to search for.
|
|
1821
571
|
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
1822
|
-
*/function assocIndexOf(array,key){var length=array.length;while(length--){if(eq(array[length][0],key)){return length;}}return-1;}
|
|
572
|
+
*/function assocIndexOf(array,key){var length=array.length;while(length--){if(eq(array[length][0],key)){return length;}}return-1;}module.exports=assocIndexOf;},{"./eq":142}],53:[function(require,module,exports){var copyObject=require('./_copyObject'),keys=require('./keys');/**
|
|
573
|
+
* The base implementation of `_.assign` without support for multiple sources
|
|
574
|
+
* or `customizer` functions.
|
|
575
|
+
*
|
|
576
|
+
* @private
|
|
577
|
+
* @param {Object} object The destination object.
|
|
578
|
+
* @param {Object} source The source object.
|
|
579
|
+
* @returns {Object} Returns `object`.
|
|
580
|
+
*/function baseAssign(object,source){return object&©Object(source,keys(source),object);}module.exports=baseAssign;},{"./_copyObject":82,"./keys":160}],54:[function(require,module,exports){var copyObject=require('./_copyObject'),keysIn=require('./keysIn');/**
|
|
581
|
+
* The base implementation of `_.assignIn` without support for multiple sources
|
|
582
|
+
* or `customizer` functions.
|
|
583
|
+
*
|
|
584
|
+
* @private
|
|
585
|
+
* @param {Object} object The destination object.
|
|
586
|
+
* @param {Object} source The source object.
|
|
587
|
+
* @returns {Object} Returns `object`.
|
|
588
|
+
*/function baseAssignIn(object,source){return object&©Object(source,keysIn(source),object);}module.exports=baseAssignIn;},{"./_copyObject":82,"./keysIn":161}],55:[function(require,module,exports){var defineProperty=require('./_defineProperty');/**
|
|
1823
589
|
* The base implementation of `assignValue` and `assignMergeValue` without
|
|
1824
590
|
* value checks.
|
|
1825
591
|
*
|
|
@@ -1827,7 +593,31 @@ isIndex(key,length)))){result.push(key);}}return result;}/**
|
|
|
1827
593
|
* @param {Object} object The object to modify.
|
|
1828
594
|
* @param {string} key The key of the property to assign.
|
|
1829
595
|
* @param {*} value The value to assign.
|
|
1830
|
-
*/function baseAssignValue(object,key,value){if(key=='__proto__'&&defineProperty){defineProperty(object,key,{'configurable':true,'enumerable':true,'value':value,'writable':true});}else{object[key]=value;}}
|
|
596
|
+
*/function baseAssignValue(object,key,value){if(key=='__proto__'&&defineProperty){defineProperty(object,key,{'configurable':true,'enumerable':true,'value':value,'writable':true});}else{object[key]=value;}}module.exports=baseAssignValue;},{"./_defineProperty":88}],56:[function(require,module,exports){var Stack=require('./_Stack'),arrayEach=require('./_arrayEach'),assignValue=require('./_assignValue'),baseAssign=require('./_baseAssign'),baseAssignIn=require('./_baseAssignIn'),cloneBuffer=require('./_cloneBuffer'),copyArray=require('./_copyArray'),copySymbols=require('./_copySymbols'),copySymbolsIn=require('./_copySymbolsIn'),getAllKeys=require('./_getAllKeys'),getAllKeysIn=require('./_getAllKeysIn'),getTag=require('./_getTag'),initCloneArray=require('./_initCloneArray'),initCloneByTag=require('./_initCloneByTag'),initCloneObject=require('./_initCloneObject'),isArray=require('./isArray'),isBuffer=require('./isBuffer'),isMap=require('./isMap'),isObject=require('./isObject'),isSet=require('./isSet'),keys=require('./keys');/** Used to compose bitmasks for cloning. */var CLONE_DEEP_FLAG=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG=4;/** `Object#toString` result references. */var argsTag='[object Arguments]',arrayTag='[object Array]',boolTag='[object Boolean]',dateTag='[object Date]',errorTag='[object Error]',funcTag='[object Function]',genTag='[object GeneratorFunction]',mapTag='[object Map]',numberTag='[object Number]',objectTag='[object Object]',regexpTag='[object RegExp]',setTag='[object Set]',stringTag='[object String]',symbolTag='[object Symbol]',weakMapTag='[object WeakMap]';var arrayBufferTag='[object ArrayBuffer]',dataViewTag='[object DataView]',float32Tag='[object Float32Array]',float64Tag='[object Float64Array]',int8Tag='[object Int8Array]',int16Tag='[object Int16Array]',int32Tag='[object Int32Array]',uint8Tag='[object Uint8Array]',uint8ClampedTag='[object Uint8ClampedArray]',uint16Tag='[object Uint16Array]',uint32Tag='[object Uint32Array]';/** Used to identify `toStringTag` values supported by `_.clone`. */var cloneableTags={};cloneableTags[argsTag]=cloneableTags[arrayTag]=cloneableTags[arrayBufferTag]=cloneableTags[dataViewTag]=cloneableTags[boolTag]=cloneableTags[dateTag]=cloneableTags[float32Tag]=cloneableTags[float64Tag]=cloneableTags[int8Tag]=cloneableTags[int16Tag]=cloneableTags[int32Tag]=cloneableTags[mapTag]=cloneableTags[numberTag]=cloneableTags[objectTag]=cloneableTags[regexpTag]=cloneableTags[setTag]=cloneableTags[stringTag]=cloneableTags[symbolTag]=cloneableTags[uint8Tag]=cloneableTags[uint8ClampedTag]=cloneableTags[uint16Tag]=cloneableTags[uint32Tag]=true;cloneableTags[errorTag]=cloneableTags[funcTag]=cloneableTags[weakMapTag]=false;/**
|
|
597
|
+
* The base implementation of `_.clone` and `_.cloneDeep` which tracks
|
|
598
|
+
* traversed objects.
|
|
599
|
+
*
|
|
600
|
+
* @private
|
|
601
|
+
* @param {*} value The value to clone.
|
|
602
|
+
* @param {boolean} bitmask The bitmask flags.
|
|
603
|
+
* 1 - Deep clone
|
|
604
|
+
* 2 - Flatten inherited properties
|
|
605
|
+
* 4 - Clone symbols
|
|
606
|
+
* @param {Function} [customizer] The function to customize cloning.
|
|
607
|
+
* @param {string} [key] The key of `value`.
|
|
608
|
+
* @param {Object} [object] The parent object of `value`.
|
|
609
|
+
* @param {Object} [stack] Tracks traversed objects and their clone counterparts.
|
|
610
|
+
* @returns {*} Returns the cloned value.
|
|
611
|
+
*/function baseClone(value,bitmask,customizer,key,object,stack){var result,isDeep=bitmask&CLONE_DEEP_FLAG,isFlat=bitmask&CLONE_FLAT_FLAG,isFull=bitmask&CLONE_SYMBOLS_FLAG;if(customizer){result=object?customizer(value,key,object,stack):customizer(value);}if(result!==undefined){return result;}if(!isObject(value)){return value;}var isArr=isArray(value);if(isArr){result=initCloneArray(value);if(!isDeep){return copyArray(value,result);}}else{var tag=getTag(value),isFunc=tag==funcTag||tag==genTag;if(isBuffer(value)){return cloneBuffer(value,isDeep);}if(tag==objectTag||tag==argsTag||isFunc&&!object){result=isFlat||isFunc?{}:initCloneObject(value);if(!isDeep){return isFlat?copySymbolsIn(value,baseAssignIn(result,value)):copySymbols(value,baseAssign(result,value));}}else{if(!cloneableTags[tag]){return object?value:{};}result=initCloneByTag(value,tag,isDeep);}}// Check for circular references and return its corresponding clone.
|
|
612
|
+
stack||(stack=new Stack());var stacked=stack.get(value);if(stacked){return stacked;}stack.set(value,result);if(isSet(value)){value.forEach(function(subValue){result.add(baseClone(subValue,bitmask,customizer,subValue,value,stack));});}else if(isMap(value)){value.forEach(function(subValue,key){result.set(key,baseClone(subValue,bitmask,customizer,key,value,stack));});}var keysFunc=isFull?isFlat?getAllKeysIn:getAllKeys:isFlat?keysIn:keys;var props=isArr?undefined:keysFunc(value);arrayEach(props||value,function(subValue,key){if(props){key=subValue;subValue=value[key];}// Recursively populate clone (susceptible to call stack limits).
|
|
613
|
+
assignValue(result,key,baseClone(subValue,bitmask,customizer,key,value,stack));});return result;}module.exports=baseClone;},{"./_Stack":40,"./_arrayEach":45,"./_assignValue":51,"./_baseAssign":53,"./_baseAssignIn":54,"./_cloneBuffer":76,"./_copyArray":81,"./_copySymbols":83,"./_copySymbolsIn":84,"./_getAllKeys":90,"./_getAllKeysIn":91,"./_getTag":98,"./_initCloneArray":105,"./_initCloneByTag":106,"./_initCloneObject":107,"./isArray":146,"./isBuffer":149,"./isMap":152,"./isObject":153,"./isSet":156,"./keys":160}],57:[function(require,module,exports){var isObject=require('./isObject');/** Built-in value references. */var objectCreate=Object.create;/**
|
|
614
|
+
* The base implementation of `_.create` without support for assigning
|
|
615
|
+
* properties to the created object.
|
|
616
|
+
*
|
|
617
|
+
* @private
|
|
618
|
+
* @param {Object} proto The object to inherit from.
|
|
619
|
+
* @returns {Object} Returns the new object.
|
|
620
|
+
*/var baseCreate=function(){function object(){}return function(proto){if(!isObject(proto)){return{};}if(objectCreate){return objectCreate(proto);}object.prototype=proto;var result=new object();object.prototype=undefined;return result;};}();module.exports=baseCreate;},{"./isObject":153}],58:[function(require,module,exports){var createBaseFor=require('./_createBaseFor');/**
|
|
1831
621
|
* The base implementation of `baseForOwn` which iterates over `object`
|
|
1832
622
|
* properties returned by `keysFunc` and invokes `iteratee` for each property.
|
|
1833
623
|
* Iteratee functions may exit iteration early by explicitly returning `false`.
|
|
@@ -1837,38 +627,69 @@ isIndex(key,length)))){result.push(key);}}return result;}/**
|
|
|
1837
627
|
* @param {Function} iteratee The function invoked per iteration.
|
|
1838
628
|
* @param {Function} keysFunc The function to get the keys of `object`.
|
|
1839
629
|
* @returns {Object} Returns `object`.
|
|
1840
|
-
*/var baseFor=createBaseFor();/**
|
|
630
|
+
*/var baseFor=createBaseFor();module.exports=baseFor;},{"./_createBaseFor":87}],59:[function(require,module,exports){var arrayPush=require('./_arrayPush'),isArray=require('./isArray');/**
|
|
631
|
+
* The base implementation of `getAllKeys` and `getAllKeysIn` which uses
|
|
632
|
+
* `keysFunc` and `symbolsFunc` to get the enumerable property names and
|
|
633
|
+
* symbols of `object`.
|
|
634
|
+
*
|
|
635
|
+
* @private
|
|
636
|
+
* @param {Object} object The object to query.
|
|
637
|
+
* @param {Function} keysFunc The function to get the keys of `object`.
|
|
638
|
+
* @param {Function} symbolsFunc The function to get the symbols of `object`.
|
|
639
|
+
* @returns {Array} Returns the array of property names and symbols.
|
|
640
|
+
*/function baseGetAllKeys(object,keysFunc,symbolsFunc){var result=keysFunc(object);return isArray(object)?result:arrayPush(result,symbolsFunc(object));}module.exports=baseGetAllKeys;},{"./_arrayPush":49,"./isArray":146}],60:[function(require,module,exports){var _Symbol2=require('./_Symbol'),getRawTag=require('./_getRawTag'),objectToString=require('./_objectToString');/** `Object#toString` result references. */var nullTag='[object Null]',undefinedTag='[object Undefined]';/** Built-in value references. */var symToStringTag=_Symbol2?_Symbol2.toStringTag:undefined;/**
|
|
1841
641
|
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
1842
642
|
*
|
|
1843
643
|
* @private
|
|
1844
644
|
* @param {*} value The value to query.
|
|
1845
645
|
* @returns {string} Returns the `toStringTag`.
|
|
1846
|
-
*/function baseGetTag(value){if(value==null){return value===undefined?undefinedTag:nullTag;}return symToStringTag&&symToStringTag in Object(value)?getRawTag(value):objectToString(value);}
|
|
646
|
+
*/function baseGetTag(value){if(value==null){return value===undefined?undefinedTag:nullTag;}return symToStringTag&&symToStringTag in Object(value)?getRawTag(value):objectToString(value);}module.exports=baseGetTag;},{"./_Symbol":41,"./_getRawTag":95,"./_objectToString":127}],61:[function(require,module,exports){var baseGetTag=require('./_baseGetTag'),isObjectLike=require('./isObjectLike');/** `Object#toString` result references. */var argsTag='[object Arguments]';/**
|
|
1847
647
|
* The base implementation of `_.isArguments`.
|
|
1848
648
|
*
|
|
1849
649
|
* @private
|
|
1850
650
|
* @param {*} value The value to check.
|
|
1851
651
|
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
1852
|
-
*/function baseIsArguments(value){return isObjectLike(value)&&baseGetTag(value)==argsTag;}
|
|
652
|
+
*/function baseIsArguments(value){return isObjectLike(value)&&baseGetTag(value)==argsTag;}module.exports=baseIsArguments;},{"./_baseGetTag":60,"./isObjectLike":154}],62:[function(require,module,exports){var getTag=require('./_getTag'),isObjectLike=require('./isObjectLike');/** `Object#toString` result references. */var mapTag='[object Map]';/**
|
|
653
|
+
* The base implementation of `_.isMap` without Node.js optimizations.
|
|
654
|
+
*
|
|
655
|
+
* @private
|
|
656
|
+
* @param {*} value The value to check.
|
|
657
|
+
* @returns {boolean} Returns `true` if `value` is a map, else `false`.
|
|
658
|
+
*/function baseIsMap(value){return isObjectLike(value)&&getTag(value)==mapTag;}module.exports=baseIsMap;},{"./_getTag":98,"./isObjectLike":154}],63:[function(require,module,exports){var isFunction=require('./isFunction'),isMasked=require('./_isMasked'),isObject=require('./isObject'),toSource=require('./_toSource');/**
|
|
659
|
+
* Used to match `RegExp`
|
|
660
|
+
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
661
|
+
*/var reRegExpChar=/[\\^$.*+?()[\]{}|]/g;/** Used to detect host constructors (Safari). */var reIsHostCtor=/^\[object .+?Constructor\]$/;/** Used for built-in method references. */var funcProto=Function.prototype,objectProto=Object.prototype;/** Used to resolve the decompiled source of functions. */var funcToString=funcProto.toString;/** Used to check objects for own properties. */var hasOwnProperty=objectProto.hasOwnProperty;/** Used to detect if a method is native. */var reIsNative=RegExp('^'+funcToString.call(hasOwnProperty).replace(reRegExpChar,'\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,'$1.*?')+'$');/**
|
|
1853
662
|
* The base implementation of `_.isNative` without bad shim checks.
|
|
1854
663
|
*
|
|
1855
664
|
* @private
|
|
1856
665
|
* @param {*} value The value to check.
|
|
1857
666
|
* @returns {boolean} Returns `true` if `value` is a native function,
|
|
1858
667
|
* else `false`.
|
|
1859
|
-
*/function baseIsNative(value){if(!isObject(value)||isMasked(value)){return false;}var pattern=isFunction(value)?reIsNative:reIsHostCtor;return pattern.test(toSource(value));}
|
|
668
|
+
*/function baseIsNative(value){if(!isObject(value)||isMasked(value)){return false;}var pattern=isFunction(value)?reIsNative:reIsHostCtor;return pattern.test(toSource(value));}module.exports=baseIsNative;},{"./_isMasked":111,"./_toSource":139,"./isFunction":150,"./isObject":153}],64:[function(require,module,exports){var getTag=require('./_getTag'),isObjectLike=require('./isObjectLike');/** `Object#toString` result references. */var setTag='[object Set]';/**
|
|
669
|
+
* The base implementation of `_.isSet` without Node.js optimizations.
|
|
670
|
+
*
|
|
671
|
+
* @private
|
|
672
|
+
* @param {*} value The value to check.
|
|
673
|
+
* @returns {boolean} Returns `true` if `value` is a set, else `false`.
|
|
674
|
+
*/function baseIsSet(value){return isObjectLike(value)&&getTag(value)==setTag;}module.exports=baseIsSet;},{"./_getTag":98,"./isObjectLike":154}],65:[function(require,module,exports){var baseGetTag=require('./_baseGetTag'),isLength=require('./isLength'),isObjectLike=require('./isObjectLike');/** `Object#toString` result references. */var argsTag='[object Arguments]',arrayTag='[object Array]',boolTag='[object Boolean]',dateTag='[object Date]',errorTag='[object Error]',funcTag='[object Function]',mapTag='[object Map]',numberTag='[object Number]',objectTag='[object Object]',regexpTag='[object RegExp]',setTag='[object Set]',stringTag='[object String]',weakMapTag='[object WeakMap]';var arrayBufferTag='[object ArrayBuffer]',dataViewTag='[object DataView]',float32Tag='[object Float32Array]',float64Tag='[object Float64Array]',int8Tag='[object Int8Array]',int16Tag='[object Int16Array]',int32Tag='[object Int32Array]',uint8Tag='[object Uint8Array]',uint8ClampedTag='[object Uint8ClampedArray]',uint16Tag='[object Uint16Array]',uint32Tag='[object Uint32Array]';/** Used to identify `toStringTag` values of typed arrays. */var typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=true;typedArrayTags[argsTag]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag]=typedArrayTags[numberTag]=typedArrayTags[objectTag]=typedArrayTags[regexpTag]=typedArrayTags[setTag]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag]=false;/**
|
|
1860
675
|
* The base implementation of `_.isTypedArray` without Node.js optimizations.
|
|
1861
676
|
*
|
|
1862
677
|
* @private
|
|
1863
678
|
* @param {*} value The value to check.
|
|
1864
679
|
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
1865
|
-
*/function baseIsTypedArray(value){return isObjectLike(value)&&isLength(value.length)&&!!typedArrayTags[baseGetTag(value)];}
|
|
680
|
+
*/function baseIsTypedArray(value){return isObjectLike(value)&&isLength(value.length)&&!!typedArrayTags[baseGetTag(value)];}module.exports=baseIsTypedArray;},{"./_baseGetTag":60,"./isLength":151,"./isObjectLike":154}],66:[function(require,module,exports){var isPrototype=require('./_isPrototype'),nativeKeys=require('./_nativeKeys');/** Used for built-in method references. */var objectProto=Object.prototype;/** Used to check objects for own properties. */var hasOwnProperty=objectProto.hasOwnProperty;/**
|
|
681
|
+
* The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
|
|
682
|
+
*
|
|
683
|
+
* @private
|
|
684
|
+
* @param {Object} object The object to query.
|
|
685
|
+
* @returns {Array} Returns the array of property names.
|
|
686
|
+
*/function baseKeys(object){if(!isPrototype(object)){return nativeKeys(object);}var result=[];for(var key in Object(object)){if(hasOwnProperty.call(object,key)&&key!='constructor'){result.push(key);}}return result;}module.exports=baseKeys;},{"./_isPrototype":112,"./_nativeKeys":124}],67:[function(require,module,exports){var isObject=require('./isObject'),isPrototype=require('./_isPrototype'),nativeKeysIn=require('./_nativeKeysIn');/** Used for built-in method references. */var objectProto=Object.prototype;/** Used to check objects for own properties. */var hasOwnProperty=objectProto.hasOwnProperty;/**
|
|
1866
687
|
* The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
|
|
1867
688
|
*
|
|
1868
689
|
* @private
|
|
1869
690
|
* @param {Object} object The object to query.
|
|
1870
691
|
* @returns {Array} Returns the array of property names.
|
|
1871
|
-
*/function baseKeysIn(object){if(!isObject(object)){return nativeKeysIn(object);}var isProto=isPrototype(object),result=[];for(var key in object){if(!(key=='constructor'&&(isProto||!hasOwnProperty.call(object,key)))){result.push(key);}}return result;}
|
|
692
|
+
*/function baseKeysIn(object){if(!isObject(object)){return nativeKeysIn(object);}var isProto=isPrototype(object),result=[];for(var key in object){if(!(key=='constructor'&&(isProto||!hasOwnProperty.call(object,key)))){result.push(key);}}return result;}module.exports=baseKeysIn;},{"./_isPrototype":112,"./_nativeKeysIn":125,"./isObject":153}],68:[function(require,module,exports){var Stack=require('./_Stack'),assignMergeValue=require('./_assignMergeValue'),baseFor=require('./_baseFor'),baseMergeDeep=require('./_baseMergeDeep'),isObject=require('./isObject'),keysIn=require('./keysIn'),safeGet=require('./_safeGet');/**
|
|
1872
693
|
* The base implementation of `_.merge` without support for multiple sources.
|
|
1873
694
|
*
|
|
1874
695
|
* @private
|
|
@@ -1878,7 +699,7 @@ isIndex(key,length)))){result.push(key);}}return result;}/**
|
|
|
1878
699
|
* @param {Function} [customizer] The function to customize merged values.
|
|
1879
700
|
* @param {Object} [stack] Tracks traversed source values and their merged
|
|
1880
701
|
* counterparts.
|
|
1881
|
-
*/function baseMerge(object,source,srcIndex,customizer,stack){if(object===source){return;}baseFor(source,function(srcValue,key){stack||(stack=new Stack());if(isObject(srcValue)){baseMergeDeep(object,source,key,srcIndex,baseMerge,customizer,stack);}else{var newValue=customizer?customizer(safeGet(object,key),srcValue,key+'',object,source,stack):undefined;if(newValue===undefined){newValue=srcValue;}assignMergeValue(object,key,newValue);}},keysIn);}
|
|
702
|
+
*/function baseMerge(object,source,srcIndex,customizer,stack){if(object===source){return;}baseFor(source,function(srcValue,key){stack||(stack=new Stack());if(isObject(srcValue)){baseMergeDeep(object,source,key,srcIndex,baseMerge,customizer,stack);}else{var newValue=customizer?customizer(safeGet(object,key),srcValue,key+'',object,source,stack):undefined;if(newValue===undefined){newValue=srcValue;}assignMergeValue(object,key,newValue);}},keysIn);}module.exports=baseMerge;},{"./_Stack":40,"./_assignMergeValue":50,"./_baseFor":58,"./_baseMergeDeep":69,"./_safeGet":131,"./isObject":153,"./keysIn":161}],69:[function(require,module,exports){var assignMergeValue=require('./_assignMergeValue'),cloneBuffer=require('./_cloneBuffer'),cloneTypedArray=require('./_cloneTypedArray'),copyArray=require('./_copyArray'),initCloneObject=require('./_initCloneObject'),isArguments=require('./isArguments'),isArray=require('./isArray'),isArrayLikeObject=require('./isArrayLikeObject'),isBuffer=require('./isBuffer'),isFunction=require('./isFunction'),isObject=require('./isObject'),isPlainObject=require('./isPlainObject'),isTypedArray=require('./isTypedArray'),safeGet=require('./_safeGet'),toPlainObject=require('./toPlainObject');/**
|
|
1882
703
|
* A specialized version of `baseMerge` for arrays and objects which performs
|
|
1883
704
|
* deep merges and tracks traversed objects enabling objects with circular
|
|
1884
705
|
* references to be merged.
|
|
@@ -1893,48 +714,90 @@ isIndex(key,length)))){result.push(key);}}return result;}/**
|
|
|
1893
714
|
* @param {Object} [stack] Tracks traversed source values and their merged
|
|
1894
715
|
* counterparts.
|
|
1895
716
|
*/function baseMergeDeep(object,source,key,srcIndex,mergeFunc,customizer,stack){var objValue=safeGet(object,key),srcValue=safeGet(source,key),stacked=stack.get(srcValue);if(stacked){assignMergeValue(object,key,stacked);return;}var newValue=customizer?customizer(objValue,srcValue,key+'',object,source,stack):undefined;var isCommon=newValue===undefined;if(isCommon){var isArr=isArray(srcValue),isBuff=!isArr&&isBuffer(srcValue),isTyped=!isArr&&!isBuff&&isTypedArray(srcValue);newValue=srcValue;if(isArr||isBuff||isTyped){if(isArray(objValue)){newValue=objValue;}else if(isArrayLikeObject(objValue)){newValue=copyArray(objValue);}else if(isBuff){isCommon=false;newValue=cloneBuffer(srcValue,true);}else if(isTyped){isCommon=false;newValue=cloneTypedArray(srcValue,true);}else{newValue=[];}}else if(isPlainObject(srcValue)||isArguments(srcValue)){newValue=objValue;if(isArguments(objValue)){newValue=toPlainObject(objValue);}else if(!isObject(objValue)||isFunction(objValue)){newValue=initCloneObject(srcValue);}}else{isCommon=false;}}if(isCommon){// Recursively merge objects and arrays (susceptible to call stack limits).
|
|
1896
|
-
stack.set(srcValue,newValue);mergeFunc(newValue,srcValue,srcIndex,customizer,stack);stack['delete'](srcValue);}assignMergeValue(object,key,newValue);}
|
|
717
|
+
stack.set(srcValue,newValue);mergeFunc(newValue,srcValue,srcIndex,customizer,stack);stack['delete'](srcValue);}assignMergeValue(object,key,newValue);}module.exports=baseMergeDeep;},{"./_assignMergeValue":50,"./_cloneBuffer":76,"./_cloneTypedArray":80,"./_copyArray":81,"./_initCloneObject":107,"./_safeGet":131,"./isArguments":145,"./isArray":146,"./isArrayLikeObject":148,"./isBuffer":149,"./isFunction":150,"./isObject":153,"./isPlainObject":155,"./isTypedArray":159,"./toPlainObject":165}],70:[function(require,module,exports){var identity=require('./identity'),overRest=require('./_overRest'),setToString=require('./_setToString');/**
|
|
1897
718
|
* The base implementation of `_.rest` which doesn't validate or coerce arguments.
|
|
1898
719
|
*
|
|
1899
720
|
* @private
|
|
1900
721
|
* @param {Function} func The function to apply a rest parameter to.
|
|
1901
722
|
* @param {number} [start=func.length-1] The start position of the rest parameter.
|
|
1902
723
|
* @returns {Function} Returns the new function.
|
|
1903
|
-
*/function baseRest(func,start){return setToString(overRest(func,start,identity),func+'');}
|
|
724
|
+
*/function baseRest(func,start){return setToString(overRest(func,start,identity),func+'');}module.exports=baseRest;},{"./_overRest":129,"./_setToString":132,"./identity":144}],71:[function(require,module,exports){var constant=require('./constant'),defineProperty=require('./_defineProperty'),identity=require('./identity');/**
|
|
1904
725
|
* The base implementation of `setToString` without support for hot loop shorting.
|
|
1905
726
|
*
|
|
1906
727
|
* @private
|
|
1907
728
|
* @param {Function} func The function to modify.
|
|
1908
729
|
* @param {Function} string The `toString` result.
|
|
1909
730
|
* @returns {Function} Returns `func`.
|
|
1910
|
-
*/var baseSetToString=!defineProperty?identity:function(func,string){return defineProperty(func,'toString',{'configurable':true,'enumerable':false,'value':constant(string),'writable':true});}
|
|
731
|
+
*/var baseSetToString=!defineProperty?identity:function(func,string){return defineProperty(func,'toString',{'configurable':true,'enumerable':false,'value':constant(string),'writable':true});};module.exports=baseSetToString;},{"./_defineProperty":88,"./constant":141,"./identity":144}],72:[function(require,module,exports){/**
|
|
732
|
+
* The base implementation of `_.times` without support for iteratee shorthands
|
|
733
|
+
* or max array length checks.
|
|
734
|
+
*
|
|
735
|
+
* @private
|
|
736
|
+
* @param {number} n The number of times to invoke `iteratee`.
|
|
737
|
+
* @param {Function} iteratee The function invoked per iteration.
|
|
738
|
+
* @returns {Array} Returns the array of results.
|
|
739
|
+
*/function baseTimes(n,iteratee){var index=-1,result=Array(n);while(++index<n){result[index]=iteratee(index);}return result;}module.exports=baseTimes;},{}],73:[function(require,module,exports){var _Symbol3=require('./_Symbol'),arrayMap=require('./_arrayMap'),isArray=require('./isArray'),isSymbol=require('./isSymbol');/** Used as references for various `Number` constants. */var INFINITY=1/0;/** Used to convert symbols to primitives and strings. */var symbolProto=_Symbol3?_Symbol3.prototype:undefined,symbolToString=symbolProto?symbolProto.toString:undefined;/**
|
|
740
|
+
* The base implementation of `_.toString` which doesn't convert nullish
|
|
741
|
+
* values to empty strings.
|
|
742
|
+
*
|
|
743
|
+
* @private
|
|
744
|
+
* @param {*} value The value to process.
|
|
745
|
+
* @returns {string} Returns the string.
|
|
746
|
+
*/function baseToString(value){// Exit early for strings to avoid a performance hit in some environments.
|
|
747
|
+
if(typeof value=='string'){return value;}if(isArray(value)){// Recursively convert values (susceptible to call stack limits).
|
|
748
|
+
return arrayMap(value,baseToString)+'';}if(isSymbol(value)){return symbolToString?symbolToString.call(value):'';}var result=value+'';return result=='0'&&1/value==-INFINITY?'-0':result;}module.exports=baseToString;},{"./_Symbol":41,"./_arrayMap":48,"./isArray":146,"./isSymbol":158}],74:[function(require,module,exports){/**
|
|
749
|
+
* The base implementation of `_.unary` without support for storing metadata.
|
|
750
|
+
*
|
|
751
|
+
* @private
|
|
752
|
+
* @param {Function} func The function to cap arguments for.
|
|
753
|
+
* @returns {Function} Returns the new capped function.
|
|
754
|
+
*/function baseUnary(func){return function(value){return func(value);};}module.exports=baseUnary;},{}],75:[function(require,module,exports){var Uint8Array=require('./_Uint8Array');/**
|
|
755
|
+
* Creates a clone of `arrayBuffer`.
|
|
756
|
+
*
|
|
757
|
+
* @private
|
|
758
|
+
* @param {ArrayBuffer} arrayBuffer The array buffer to clone.
|
|
759
|
+
* @returns {ArrayBuffer} Returns the cloned array buffer.
|
|
760
|
+
*/function cloneArrayBuffer(arrayBuffer){var result=new arrayBuffer.constructor(arrayBuffer.byteLength);new Uint8Array(result).set(new Uint8Array(arrayBuffer));return result;}module.exports=cloneArrayBuffer;},{"./_Uint8Array":42}],76:[function(require,module,exports){var root=require('./_root');/** Detect free variable `exports`. */var freeExports=_typeof(exports)=='object'&&exports&&!exports.nodeType&&exports;/** Detect free variable `module`. */var freeModule=freeExports&&_typeof(module)=='object'&&module&&!module.nodeType&&module;/** Detect the popular CommonJS extension `module.exports`. */var moduleExports=freeModule&&freeModule.exports===freeExports;/** Built-in value references. */var Buffer=moduleExports?root.Buffer:undefined,allocUnsafe=Buffer?Buffer.allocUnsafe:undefined;/**
|
|
1911
761
|
* Creates a clone of `buffer`.
|
|
1912
762
|
*
|
|
1913
763
|
* @private
|
|
1914
764
|
* @param {Buffer} buffer The buffer to clone.
|
|
1915
765
|
* @param {boolean} [isDeep] Specify a deep clone.
|
|
1916
766
|
* @returns {Buffer} Returns the cloned buffer.
|
|
1917
|
-
*/function cloneBuffer(buffer,isDeep){if(isDeep){return buffer.slice();}var length=buffer.length,result=allocUnsafe?allocUnsafe(length):new buffer.constructor(length);buffer.copy(result);return result;}
|
|
1918
|
-
* Creates a clone of `
|
|
767
|
+
*/function cloneBuffer(buffer,isDeep){if(isDeep){return buffer.slice();}var length=buffer.length,result=allocUnsafe?allocUnsafe(length):new buffer.constructor(length);buffer.copy(result);return result;}module.exports=cloneBuffer;},{"./_root":130}],77:[function(require,module,exports){var cloneArrayBuffer=require('./_cloneArrayBuffer');/**
|
|
768
|
+
* Creates a clone of `dataView`.
|
|
1919
769
|
*
|
|
1920
770
|
* @private
|
|
1921
|
-
* @param {
|
|
1922
|
-
* @
|
|
1923
|
-
|
|
771
|
+
* @param {Object} dataView The data view to clone.
|
|
772
|
+
* @param {boolean} [isDeep] Specify a deep clone.
|
|
773
|
+
* @returns {Object} Returns the cloned data view.
|
|
774
|
+
*/function cloneDataView(dataView,isDeep){var buffer=isDeep?cloneArrayBuffer(dataView.buffer):dataView.buffer;return new dataView.constructor(buffer,dataView.byteOffset,dataView.byteLength);}module.exports=cloneDataView;},{"./_cloneArrayBuffer":75}],78:[function(require,module,exports){/** Used to match `RegExp` flags from their coerced string values. */var reFlags=/\w*$/;/**
|
|
775
|
+
* Creates a clone of `regexp`.
|
|
776
|
+
*
|
|
777
|
+
* @private
|
|
778
|
+
* @param {Object} regexp The regexp to clone.
|
|
779
|
+
* @returns {Object} Returns the cloned regexp.
|
|
780
|
+
*/function cloneRegExp(regexp){var result=new regexp.constructor(regexp.source,reFlags.exec(regexp));result.lastIndex=regexp.lastIndex;return result;}module.exports=cloneRegExp;},{}],79:[function(require,module,exports){var _Symbol4=require('./_Symbol');/** Used to convert symbols to primitives and strings. */var symbolProto=_Symbol4?_Symbol4.prototype:undefined,symbolValueOf=symbolProto?symbolProto.valueOf:undefined;/**
|
|
781
|
+
* Creates a clone of the `symbol` object.
|
|
782
|
+
*
|
|
783
|
+
* @private
|
|
784
|
+
* @param {Object} symbol The symbol object to clone.
|
|
785
|
+
* @returns {Object} Returns the cloned symbol object.
|
|
786
|
+
*/function cloneSymbol(symbol){return symbolValueOf?Object(symbolValueOf.call(symbol)):{};}module.exports=cloneSymbol;},{"./_Symbol":41}],80:[function(require,module,exports){var cloneArrayBuffer=require('./_cloneArrayBuffer');/**
|
|
1924
787
|
* Creates a clone of `typedArray`.
|
|
1925
788
|
*
|
|
1926
789
|
* @private
|
|
1927
790
|
* @param {Object} typedArray The typed array to clone.
|
|
1928
791
|
* @param {boolean} [isDeep] Specify a deep clone.
|
|
1929
792
|
* @returns {Object} Returns the cloned typed array.
|
|
1930
|
-
*/function cloneTypedArray(typedArray,isDeep){var buffer=isDeep?cloneArrayBuffer(typedArray.buffer):typedArray.buffer;return new typedArray.constructor(buffer,typedArray.byteOffset,typedArray.length);}/**
|
|
793
|
+
*/function cloneTypedArray(typedArray,isDeep){var buffer=isDeep?cloneArrayBuffer(typedArray.buffer):typedArray.buffer;return new typedArray.constructor(buffer,typedArray.byteOffset,typedArray.length);}module.exports=cloneTypedArray;},{"./_cloneArrayBuffer":75}],81:[function(require,module,exports){/**
|
|
1931
794
|
* Copies the values of `source` to `array`.
|
|
1932
795
|
*
|
|
1933
796
|
* @private
|
|
1934
797
|
* @param {Array} source The array to copy values from.
|
|
1935
798
|
* @param {Array} [array=[]] The array to copy values to.
|
|
1936
799
|
* @returns {Array} Returns `array`.
|
|
1937
|
-
*/function copyArray(source,array){var index=-1,length=source.length;array||(array=Array(length));while(++index<length){array[index]=source[index];}return array;}
|
|
800
|
+
*/function copyArray(source,array){var index=-1,length=source.length;array||(array=Array(length));while(++index<length){array[index]=source[index];}return array;}module.exports=copyArray;},{}],82:[function(require,module,exports){var assignValue=require('./_assignValue'),baseAssignValue=require('./_baseAssignValue');/**
|
|
1938
801
|
* Copies properties of `source` to `object`.
|
|
1939
802
|
*
|
|
1940
803
|
* @private
|
|
@@ -1943,52 +806,167 @@ stack.set(srcValue,newValue);mergeFunc(newValue,srcValue,srcIndex,customizer,sta
|
|
|
1943
806
|
* @param {Object} [object={}] The object to copy properties to.
|
|
1944
807
|
* @param {Function} [customizer] The function to customize copied values.
|
|
1945
808
|
* @returns {Object} Returns `object`.
|
|
1946
|
-
*/function copyObject(source,props,object,customizer){var isNew=!object;object||(object={});var index=-1,length=props.length;while(++index<length){var key=props[index];var newValue=customizer?customizer(object[key],source[key],key,object,source):undefined;if(newValue===undefined){newValue=source[key];}if(isNew){baseAssignValue(object,key,newValue);}else{assignValue(object,key,newValue);}}return object;}
|
|
809
|
+
*/function copyObject(source,props,object,customizer){var isNew=!object;object||(object={});var index=-1,length=props.length;while(++index<length){var key=props[index];var newValue=customizer?customizer(object[key],source[key],key,object,source):undefined;if(newValue===undefined){newValue=source[key];}if(isNew){baseAssignValue(object,key,newValue);}else{assignValue(object,key,newValue);}}return object;}module.exports=copyObject;},{"./_assignValue":51,"./_baseAssignValue":55}],83:[function(require,module,exports){var copyObject=require('./_copyObject'),getSymbols=require('./_getSymbols');/**
|
|
810
|
+
* Copies own symbols of `source` to `object`.
|
|
811
|
+
*
|
|
812
|
+
* @private
|
|
813
|
+
* @param {Object} source The object to copy symbols from.
|
|
814
|
+
* @param {Object} [object={}] The object to copy symbols to.
|
|
815
|
+
* @returns {Object} Returns `object`.
|
|
816
|
+
*/function copySymbols(source,object){return copyObject(source,getSymbols(source),object);}module.exports=copySymbols;},{"./_copyObject":82,"./_getSymbols":96}],84:[function(require,module,exports){var copyObject=require('./_copyObject'),getSymbolsIn=require('./_getSymbolsIn');/**
|
|
817
|
+
* Copies own and inherited symbols of `source` to `object`.
|
|
818
|
+
*
|
|
819
|
+
* @private
|
|
820
|
+
* @param {Object} source The object to copy symbols from.
|
|
821
|
+
* @param {Object} [object={}] The object to copy symbols to.
|
|
822
|
+
* @returns {Object} Returns `object`.
|
|
823
|
+
*/function copySymbolsIn(source,object){return copyObject(source,getSymbolsIn(source),object);}module.exports=copySymbolsIn;},{"./_copyObject":82,"./_getSymbolsIn":97}],85:[function(require,module,exports){var root=require('./_root');/** Used to detect overreaching core-js shims. */var coreJsData=root['__core-js_shared__'];module.exports=coreJsData;},{"./_root":130}],86:[function(require,module,exports){var baseRest=require('./_baseRest'),isIterateeCall=require('./_isIterateeCall');/**
|
|
1947
824
|
* Creates a function like `_.assign`.
|
|
1948
825
|
*
|
|
1949
826
|
* @private
|
|
1950
827
|
* @param {Function} assigner The function to assign values.
|
|
1951
828
|
* @returns {Function} Returns the new assigner function.
|
|
1952
|
-
*/function createAssigner(assigner){return baseRest(function(object,sources){var index=-1,length=sources.length,customizer=length>1?sources[length-1]:undefined,guard=length>2?sources[2]:undefined;customizer=assigner.length>3&&typeof customizer=='function'?(length--,customizer):undefined;if(guard&&isIterateeCall(sources[0],sources[1],guard)){customizer=length<3?undefined:customizer;length=1;}object=Object(object);while(++index<length){var source=sources[index];if(source){assigner(object,source,index,customizer);}}return object;});}/**
|
|
829
|
+
*/function createAssigner(assigner){return baseRest(function(object,sources){var index=-1,length=sources.length,customizer=length>1?sources[length-1]:undefined,guard=length>2?sources[2]:undefined;customizer=assigner.length>3&&typeof customizer=='function'?(length--,customizer):undefined;if(guard&&isIterateeCall(sources[0],sources[1],guard)){customizer=length<3?undefined:customizer;length=1;}object=Object(object);while(++index<length){var source=sources[index];if(source){assigner(object,source,index,customizer);}}return object;});}module.exports=createAssigner;},{"./_baseRest":70,"./_isIterateeCall":109}],87:[function(require,module,exports){/**
|
|
1953
830
|
* Creates a base function for methods like `_.forIn` and `_.forOwn`.
|
|
1954
831
|
*
|
|
1955
832
|
* @private
|
|
1956
833
|
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
1957
834
|
* @returns {Function} Returns the new base function.
|
|
1958
|
-
*/function createBaseFor(fromRight){return function(object,iteratee,keysFunc){var index=-1,iterable=Object(object),props=keysFunc(object),length=props.length;while(length--){var key=props[fromRight?length:++index];if(iteratee(iterable[key],key,iterable)===false){break;}}return object;};}/**
|
|
835
|
+
*/function createBaseFor(fromRight){return function(object,iteratee,keysFunc){var index=-1,iterable=Object(object),props=keysFunc(object),length=props.length;while(length--){var key=props[fromRight?length:++index];if(iteratee(iterable[key],key,iterable)===false){break;}}return object;};}module.exports=createBaseFor;},{}],88:[function(require,module,exports){var getNative=require('./_getNative');var defineProperty=function(){try{var func=getNative(Object,'defineProperty');func({},'',{});return func;}catch(e){}}();module.exports=defineProperty;},{"./_getNative":93}],89:[function(require,module,exports){(function(global){/** Detect free variable `global` from Node.js. */var freeGlobal=_typeof(global)=='object'&&global&&global.Object===Object&&global;module.exports=freeGlobal;}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{});},{}],90:[function(require,module,exports){var baseGetAllKeys=require('./_baseGetAllKeys'),getSymbols=require('./_getSymbols'),keys=require('./keys');/**
|
|
836
|
+
* Creates an array of own enumerable property names and symbols of `object`.
|
|
837
|
+
*
|
|
838
|
+
* @private
|
|
839
|
+
* @param {Object} object The object to query.
|
|
840
|
+
* @returns {Array} Returns the array of property names and symbols.
|
|
841
|
+
*/function getAllKeys(object){return baseGetAllKeys(object,keys,getSymbols);}module.exports=getAllKeys;},{"./_baseGetAllKeys":59,"./_getSymbols":96,"./keys":160}],91:[function(require,module,exports){var baseGetAllKeys=require('./_baseGetAllKeys'),getSymbolsIn=require('./_getSymbolsIn'),keysIn=require('./keysIn');/**
|
|
842
|
+
* Creates an array of own and inherited enumerable property names and
|
|
843
|
+
* symbols of `object`.
|
|
844
|
+
*
|
|
845
|
+
* @private
|
|
846
|
+
* @param {Object} object The object to query.
|
|
847
|
+
* @returns {Array} Returns the array of property names and symbols.
|
|
848
|
+
*/function getAllKeysIn(object){return baseGetAllKeys(object,keysIn,getSymbolsIn);}module.exports=getAllKeysIn;},{"./_baseGetAllKeys":59,"./_getSymbolsIn":97,"./keysIn":161}],92:[function(require,module,exports){var isKeyable=require('./_isKeyable');/**
|
|
1959
849
|
* Gets the data for `map`.
|
|
1960
850
|
*
|
|
1961
851
|
* @private
|
|
1962
852
|
* @param {Object} map The map to query.
|
|
1963
853
|
* @param {string} key The reference key.
|
|
1964
854
|
* @returns {*} Returns the map data.
|
|
1965
|
-
*/function getMapData(map,key){var data=map.__data__;return isKeyable(key)?data[typeof key=='string'?'string':'hash']:data.map;}
|
|
855
|
+
*/function getMapData(map,key){var data=map.__data__;return isKeyable(key)?data[typeof key=='string'?'string':'hash']:data.map;}module.exports=getMapData;},{"./_isKeyable":110}],93:[function(require,module,exports){var baseIsNative=require('./_baseIsNative'),getValue=require('./_getValue');/**
|
|
1966
856
|
* Gets the native function at `key` of `object`.
|
|
1967
857
|
*
|
|
1968
858
|
* @private
|
|
1969
859
|
* @param {Object} object The object to query.
|
|
1970
860
|
* @param {string} key The key of the method to get.
|
|
1971
861
|
* @returns {*} Returns the function if it's native, else `undefined`.
|
|
1972
|
-
*/function getNative(object,key){var value=getValue(object,key);return baseIsNative(value)?value:undefined;}
|
|
862
|
+
*/function getNative(object,key){var value=getValue(object,key);return baseIsNative(value)?value:undefined;}module.exports=getNative;},{"./_baseIsNative":63,"./_getValue":99}],94:[function(require,module,exports){var overArg=require('./_overArg');/** Built-in value references. */var getPrototype=overArg(Object.getPrototypeOf,Object);module.exports=getPrototype;},{"./_overArg":128}],95:[function(require,module,exports){var _Symbol5=require('./_Symbol');/** Used for built-in method references. */var objectProto=Object.prototype;/** Used to check objects for own properties. */var hasOwnProperty=objectProto.hasOwnProperty;/**
|
|
863
|
+
* Used to resolve the
|
|
864
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
865
|
+
* of values.
|
|
866
|
+
*/var nativeObjectToString=objectProto.toString;/** Built-in value references. */var symToStringTag=_Symbol5?_Symbol5.toStringTag:undefined;/**
|
|
1973
867
|
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
1974
868
|
*
|
|
1975
869
|
* @private
|
|
1976
870
|
* @param {*} value The value to query.
|
|
1977
871
|
* @returns {string} Returns the raw `toStringTag`.
|
|
1978
|
-
*/function getRawTag(value){var isOwn=hasOwnProperty.call(value,symToStringTag),tag=value[symToStringTag];try{value[symToStringTag]=undefined;var unmasked=true;}catch(e){}var result=nativeObjectToString.call(value);if(unmasked){if(isOwn){value[symToStringTag]=tag;}else{delete value[symToStringTag];}}return result;}
|
|
872
|
+
*/function getRawTag(value){var isOwn=hasOwnProperty.call(value,symToStringTag),tag=value[symToStringTag];try{value[symToStringTag]=undefined;var unmasked=true;}catch(e){}var result=nativeObjectToString.call(value);if(unmasked){if(isOwn){value[symToStringTag]=tag;}else{delete value[symToStringTag];}}return result;}module.exports=getRawTag;},{"./_Symbol":41}],96:[function(require,module,exports){var arrayFilter=require('./_arrayFilter'),stubArray=require('./stubArray');/** Used for built-in method references. */var objectProto=Object.prototype;/** Built-in value references. */var propertyIsEnumerable=objectProto.propertyIsEnumerable;/* Built-in method references for those with the same name as other `lodash` methods. */var nativeGetSymbols=Object.getOwnPropertySymbols;/**
|
|
873
|
+
* Creates an array of the own enumerable symbols of `object`.
|
|
874
|
+
*
|
|
875
|
+
* @private
|
|
876
|
+
* @param {Object} object The object to query.
|
|
877
|
+
* @returns {Array} Returns the array of symbols.
|
|
878
|
+
*/var getSymbols=!nativeGetSymbols?stubArray:function(object){if(object==null){return[];}object=Object(object);return arrayFilter(nativeGetSymbols(object),function(symbol){return propertyIsEnumerable.call(object,symbol);});};module.exports=getSymbols;},{"./_arrayFilter":46,"./stubArray":163}],97:[function(require,module,exports){var arrayPush=require('./_arrayPush'),getPrototype=require('./_getPrototype'),getSymbols=require('./_getSymbols'),stubArray=require('./stubArray');/* Built-in method references for those with the same name as other `lodash` methods. */var nativeGetSymbols=Object.getOwnPropertySymbols;/**
|
|
879
|
+
* Creates an array of the own and inherited enumerable symbols of `object`.
|
|
880
|
+
*
|
|
881
|
+
* @private
|
|
882
|
+
* @param {Object} object The object to query.
|
|
883
|
+
* @returns {Array} Returns the array of symbols.
|
|
884
|
+
*/var getSymbolsIn=!nativeGetSymbols?stubArray:function(object){var result=[];while(object){arrayPush(result,getSymbols(object));object=getPrototype(object);}return result;};module.exports=getSymbolsIn;},{"./_arrayPush":49,"./_getPrototype":94,"./_getSymbols":96,"./stubArray":163}],98:[function(require,module,exports){var DataView=require('./_DataView'),Map=require('./_Map'),Promise=require('./_Promise'),Set=require('./_Set'),WeakMap=require('./_WeakMap'),baseGetTag=require('./_baseGetTag'),toSource=require('./_toSource');/** `Object#toString` result references. */var mapTag='[object Map]',objectTag='[object Object]',promiseTag='[object Promise]',setTag='[object Set]',weakMapTag='[object WeakMap]';var dataViewTag='[object DataView]';/** Used to detect maps, sets, and weakmaps. */var dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map),promiseCtorString=toSource(Promise),setCtorString=toSource(Set),weakMapCtorString=toSource(WeakMap);/**
|
|
885
|
+
* Gets the `toStringTag` of `value`.
|
|
886
|
+
*
|
|
887
|
+
* @private
|
|
888
|
+
* @param {*} value The value to query.
|
|
889
|
+
* @returns {string} Returns the `toStringTag`.
|
|
890
|
+
*/var getTag=baseGetTag;// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.
|
|
891
|
+
if(DataView&&getTag(new DataView(new ArrayBuffer(1)))!=dataViewTag||Map&&getTag(new Map())!=mapTag||Promise&&getTag(Promise.resolve())!=promiseTag||Set&&getTag(new Set())!=setTag||WeakMap&&getTag(new WeakMap())!=weakMapTag){getTag=function getTag(value){var result=baseGetTag(value),Ctor=result==objectTag?value.constructor:undefined,ctorString=Ctor?toSource(Ctor):'';if(ctorString){switch(ctorString){case dataViewCtorString:return dataViewTag;case mapCtorString:return mapTag;case promiseCtorString:return promiseTag;case setCtorString:return setTag;case weakMapCtorString:return weakMapTag;}}return result;};}module.exports=getTag;},{"./_DataView":33,"./_Map":36,"./_Promise":38,"./_Set":39,"./_WeakMap":43,"./_baseGetTag":60,"./_toSource":139}],99:[function(require,module,exports){/**
|
|
892
|
+
* Gets the value at `key` of `object`.
|
|
893
|
+
*
|
|
894
|
+
* @private
|
|
895
|
+
* @param {Object} [object] The object to query.
|
|
896
|
+
* @param {string} key The key of the property to get.
|
|
897
|
+
* @returns {*} Returns the property value.
|
|
898
|
+
*/function getValue(object,key){return object==null?undefined:object[key];}module.exports=getValue;},{}],100:[function(require,module,exports){var nativeCreate=require('./_nativeCreate');/**
|
|
899
|
+
* Removes all key-value entries from the hash.
|
|
900
|
+
*
|
|
901
|
+
* @private
|
|
902
|
+
* @name clear
|
|
903
|
+
* @memberOf Hash
|
|
904
|
+
*/function hashClear(){this.__data__=nativeCreate?nativeCreate(null):{};this.size=0;}module.exports=hashClear;},{"./_nativeCreate":123}],101:[function(require,module,exports){/**
|
|
905
|
+
* Removes `key` and its value from the hash.
|
|
906
|
+
*
|
|
907
|
+
* @private
|
|
908
|
+
* @name delete
|
|
909
|
+
* @memberOf Hash
|
|
910
|
+
* @param {Object} hash The hash to modify.
|
|
911
|
+
* @param {string} key The key of the value to remove.
|
|
912
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
913
|
+
*/function hashDelete(key){var result=this.has(key)&&delete this.__data__[key];this.size-=result?1:0;return result;}module.exports=hashDelete;},{}],102:[function(require,module,exports){var nativeCreate=require('./_nativeCreate');/** Used to stand-in for `undefined` hash values. */var HASH_UNDEFINED='__lodash_hash_undefined__';/** Used for built-in method references. */var objectProto=Object.prototype;/** Used to check objects for own properties. */var hasOwnProperty=objectProto.hasOwnProperty;/**
|
|
914
|
+
* Gets the hash value for `key`.
|
|
915
|
+
*
|
|
916
|
+
* @private
|
|
917
|
+
* @name get
|
|
918
|
+
* @memberOf Hash
|
|
919
|
+
* @param {string} key The key of the value to get.
|
|
920
|
+
* @returns {*} Returns the entry value.
|
|
921
|
+
*/function hashGet(key){var data=this.__data__;if(nativeCreate){var result=data[key];return result===HASH_UNDEFINED?undefined:result;}return hasOwnProperty.call(data,key)?data[key]:undefined;}module.exports=hashGet;},{"./_nativeCreate":123}],103:[function(require,module,exports){var nativeCreate=require('./_nativeCreate');/** Used for built-in method references. */var objectProto=Object.prototype;/** Used to check objects for own properties. */var hasOwnProperty=objectProto.hasOwnProperty;/**
|
|
922
|
+
* Checks if a hash value for `key` exists.
|
|
923
|
+
*
|
|
924
|
+
* @private
|
|
925
|
+
* @name has
|
|
926
|
+
* @memberOf Hash
|
|
927
|
+
* @param {string} key The key of the entry to check.
|
|
928
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
929
|
+
*/function hashHas(key){var data=this.__data__;return nativeCreate?data[key]!==undefined:hasOwnProperty.call(data,key);}module.exports=hashHas;},{"./_nativeCreate":123}],104:[function(require,module,exports){var nativeCreate=require('./_nativeCreate');/** Used to stand-in for `undefined` hash values. */var HASH_UNDEFINED='__lodash_hash_undefined__';/**
|
|
930
|
+
* Sets the hash `key` to `value`.
|
|
931
|
+
*
|
|
932
|
+
* @private
|
|
933
|
+
* @name set
|
|
934
|
+
* @memberOf Hash
|
|
935
|
+
* @param {string} key The key of the value to set.
|
|
936
|
+
* @param {*} value The value to set.
|
|
937
|
+
* @returns {Object} Returns the hash instance.
|
|
938
|
+
*/function hashSet(key,value){var data=this.__data__;this.size+=this.has(key)?0:1;data[key]=nativeCreate&&value===undefined?HASH_UNDEFINED:value;return this;}module.exports=hashSet;},{"./_nativeCreate":123}],105:[function(require,module,exports){/** Used for built-in method references. */var objectProto=Object.prototype;/** Used to check objects for own properties. */var hasOwnProperty=objectProto.hasOwnProperty;/**
|
|
939
|
+
* Initializes an array clone.
|
|
940
|
+
*
|
|
941
|
+
* @private
|
|
942
|
+
* @param {Array} array The array to clone.
|
|
943
|
+
* @returns {Array} Returns the initialized clone.
|
|
944
|
+
*/function initCloneArray(array){var length=array.length,result=new array.constructor(length);// Add properties assigned by `RegExp#exec`.
|
|
945
|
+
if(length&&typeof array[0]=='string'&&hasOwnProperty.call(array,'index')){result.index=array.index;result.input=array.input;}return result;}module.exports=initCloneArray;},{}],106:[function(require,module,exports){var cloneArrayBuffer=require('./_cloneArrayBuffer'),cloneDataView=require('./_cloneDataView'),cloneRegExp=require('./_cloneRegExp'),cloneSymbol=require('./_cloneSymbol'),cloneTypedArray=require('./_cloneTypedArray');/** `Object#toString` result references. */var boolTag='[object Boolean]',dateTag='[object Date]',mapTag='[object Map]',numberTag='[object Number]',regexpTag='[object RegExp]',setTag='[object Set]',stringTag='[object String]',symbolTag='[object Symbol]';var arrayBufferTag='[object ArrayBuffer]',dataViewTag='[object DataView]',float32Tag='[object Float32Array]',float64Tag='[object Float64Array]',int8Tag='[object Int8Array]',int16Tag='[object Int16Array]',int32Tag='[object Int32Array]',uint8Tag='[object Uint8Array]',uint8ClampedTag='[object Uint8ClampedArray]',uint16Tag='[object Uint16Array]',uint32Tag='[object Uint32Array]';/**
|
|
946
|
+
* Initializes an object clone based on its `toStringTag`.
|
|
947
|
+
*
|
|
948
|
+
* **Note:** This function only supports cloning values with tags of
|
|
949
|
+
* `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
|
|
950
|
+
*
|
|
951
|
+
* @private
|
|
952
|
+
* @param {Object} object The object to clone.
|
|
953
|
+
* @param {string} tag The `toStringTag` of the object to clone.
|
|
954
|
+
* @param {boolean} [isDeep] Specify a deep clone.
|
|
955
|
+
* @returns {Object} Returns the initialized clone.
|
|
956
|
+
*/function initCloneByTag(object,tag,isDeep){var Ctor=object.constructor;switch(tag){case arrayBufferTag:return cloneArrayBuffer(object);case boolTag:case dateTag:return new Ctor(+object);case dataViewTag:return cloneDataView(object,isDeep);case float32Tag:case float64Tag:case int8Tag:case int16Tag:case int32Tag:case uint8Tag:case uint8ClampedTag:case uint16Tag:case uint32Tag:return cloneTypedArray(object,isDeep);case mapTag:return new Ctor();case numberTag:case stringTag:return new Ctor(object);case regexpTag:return cloneRegExp(object);case setTag:return new Ctor();case symbolTag:return cloneSymbol(object);}}module.exports=initCloneByTag;},{"./_cloneArrayBuffer":75,"./_cloneDataView":77,"./_cloneRegExp":78,"./_cloneSymbol":79,"./_cloneTypedArray":80}],107:[function(require,module,exports){var baseCreate=require('./_baseCreate'),getPrototype=require('./_getPrototype'),isPrototype=require('./_isPrototype');/**
|
|
1979
957
|
* Initializes an object clone.
|
|
1980
958
|
*
|
|
1981
959
|
* @private
|
|
1982
960
|
* @param {Object} object The object to clone.
|
|
1983
961
|
* @returns {Object} Returns the initialized clone.
|
|
1984
|
-
*/function initCloneObject(object){return typeof object.constructor=='function'&&!isPrototype(object)?baseCreate(getPrototype(object)):{};}/**
|
|
962
|
+
*/function initCloneObject(object){return typeof object.constructor=='function'&&!isPrototype(object)?baseCreate(getPrototype(object)):{};}module.exports=initCloneObject;},{"./_baseCreate":57,"./_getPrototype":94,"./_isPrototype":112}],108:[function(require,module,exports){/** Used as references for various `Number` constants. */var MAX_SAFE_INTEGER=9007199254740991;/** Used to detect unsigned integer values. */var reIsUint=/^(?:0|[1-9]\d*)$/;/**
|
|
1985
963
|
* Checks if `value` is a valid array-like index.
|
|
1986
964
|
*
|
|
1987
965
|
* @private
|
|
1988
966
|
* @param {*} value The value to check.
|
|
1989
967
|
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
1990
968
|
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
1991
|
-
*/function isIndex(value,length){var type=_typeof(value);length=length==null?MAX_SAFE_INTEGER:length;return!!length&&(type=='number'||type!='symbol'&&reIsUint.test(value))&&value>-1&&value%1==0&&value<length;}
|
|
969
|
+
*/function isIndex(value,length){var type=_typeof(value);length=length==null?MAX_SAFE_INTEGER:length;return!!length&&(type=='number'||type!='symbol'&&reIsUint.test(value))&&value>-1&&value%1==0&&value<length;}module.exports=isIndex;},{}],109:[function(require,module,exports){var eq=require('./eq'),isArrayLike=require('./isArrayLike'),isIndex=require('./_isIndex'),isObject=require('./isObject');/**
|
|
1992
970
|
* Checks if the given arguments are from an iteratee call.
|
|
1993
971
|
*
|
|
1994
972
|
* @private
|
|
@@ -1997,25 +975,103 @@ stack.set(srcValue,newValue);mergeFunc(newValue,srcValue,srcIndex,customizer,sta
|
|
|
1997
975
|
* @param {*} object The potential iteratee object argument.
|
|
1998
976
|
* @returns {boolean} Returns `true` if the arguments are from an iteratee call,
|
|
1999
977
|
* else `false`.
|
|
2000
|
-
*/function isIterateeCall(value,index,object){if(!isObject(object)){return false;}var type=_typeof(index);if(type=='number'?isArrayLike(object)&&isIndex(index,object.length):type=='string'&&index in object){return eq(object[index],value);}return false;}/**
|
|
978
|
+
*/function isIterateeCall(value,index,object){if(!isObject(object)){return false;}var type=_typeof(index);if(type=='number'?isArrayLike(object)&&isIndex(index,object.length):type=='string'&&index in object){return eq(object[index],value);}return false;}module.exports=isIterateeCall;},{"./_isIndex":108,"./eq":142,"./isArrayLike":147,"./isObject":153}],110:[function(require,module,exports){/**
|
|
2001
979
|
* Checks if `value` is suitable for use as unique object key.
|
|
2002
980
|
*
|
|
2003
981
|
* @private
|
|
2004
982
|
* @param {*} value The value to check.
|
|
2005
983
|
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
|
|
2006
|
-
*/function isKeyable(value){var type=_typeof(value);return type=='string'||type=='number'||type=='symbol'||type=='boolean'?value!=='__proto__':value===null;}
|
|
984
|
+
*/function isKeyable(value){var type=_typeof(value);return type=='string'||type=='number'||type=='symbol'||type=='boolean'?value!=='__proto__':value===null;}module.exports=isKeyable;},{}],111:[function(require,module,exports){var coreJsData=require('./_coreJsData');/** Used to detect methods masquerading as native. */var maskSrcKey=function(){var uid=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||'');return uid?'Symbol(src)_1.'+uid:'';}();/**
|
|
2007
985
|
* Checks if `func` has its source masked.
|
|
2008
986
|
*
|
|
2009
987
|
* @private
|
|
2010
988
|
* @param {Function} func The function to check.
|
|
2011
989
|
* @returns {boolean} Returns `true` if `func` is masked, else `false`.
|
|
2012
|
-
*/function isMasked(func){return!!maskSrcKey&&maskSrcKey in func;}/**
|
|
990
|
+
*/function isMasked(func){return!!maskSrcKey&&maskSrcKey in func;}module.exports=isMasked;},{"./_coreJsData":85}],112:[function(require,module,exports){/** Used for built-in method references. */var objectProto=Object.prototype;/**
|
|
2013
991
|
* Checks if `value` is likely a prototype object.
|
|
2014
992
|
*
|
|
2015
993
|
* @private
|
|
2016
994
|
* @param {*} value The value to check.
|
|
2017
995
|
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
|
|
2018
|
-
*/function isPrototype(value){var Ctor=value&&value.constructor,proto=typeof Ctor=='function'&&Ctor.prototype||objectProto;return value===proto;}/**
|
|
996
|
+
*/function isPrototype(value){var Ctor=value&&value.constructor,proto=typeof Ctor=='function'&&Ctor.prototype||objectProto;return value===proto;}module.exports=isPrototype;},{}],113:[function(require,module,exports){/**
|
|
997
|
+
* Removes all key-value entries from the list cache.
|
|
998
|
+
*
|
|
999
|
+
* @private
|
|
1000
|
+
* @name clear
|
|
1001
|
+
* @memberOf ListCache
|
|
1002
|
+
*/function listCacheClear(){this.__data__=[];this.size=0;}module.exports=listCacheClear;},{}],114:[function(require,module,exports){var assocIndexOf=require('./_assocIndexOf');/** Used for built-in method references. */var arrayProto=Array.prototype;/** Built-in value references. */var splice=arrayProto.splice;/**
|
|
1003
|
+
* Removes `key` and its value from the list cache.
|
|
1004
|
+
*
|
|
1005
|
+
* @private
|
|
1006
|
+
* @name delete
|
|
1007
|
+
* @memberOf ListCache
|
|
1008
|
+
* @param {string} key The key of the value to remove.
|
|
1009
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
1010
|
+
*/function listCacheDelete(key){var data=this.__data__,index=assocIndexOf(data,key);if(index<0){return false;}var lastIndex=data.length-1;if(index==lastIndex){data.pop();}else{splice.call(data,index,1);}--this.size;return true;}module.exports=listCacheDelete;},{"./_assocIndexOf":52}],115:[function(require,module,exports){var assocIndexOf=require('./_assocIndexOf');/**
|
|
1011
|
+
* Gets the list cache value for `key`.
|
|
1012
|
+
*
|
|
1013
|
+
* @private
|
|
1014
|
+
* @name get
|
|
1015
|
+
* @memberOf ListCache
|
|
1016
|
+
* @param {string} key The key of the value to get.
|
|
1017
|
+
* @returns {*} Returns the entry value.
|
|
1018
|
+
*/function listCacheGet(key){var data=this.__data__,index=assocIndexOf(data,key);return index<0?undefined:data[index][1];}module.exports=listCacheGet;},{"./_assocIndexOf":52}],116:[function(require,module,exports){var assocIndexOf=require('./_assocIndexOf');/**
|
|
1019
|
+
* Checks if a list cache value for `key` exists.
|
|
1020
|
+
*
|
|
1021
|
+
* @private
|
|
1022
|
+
* @name has
|
|
1023
|
+
* @memberOf ListCache
|
|
1024
|
+
* @param {string} key The key of the entry to check.
|
|
1025
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1026
|
+
*/function listCacheHas(key){return assocIndexOf(this.__data__,key)>-1;}module.exports=listCacheHas;},{"./_assocIndexOf":52}],117:[function(require,module,exports){var assocIndexOf=require('./_assocIndexOf');/**
|
|
1027
|
+
* Sets the list cache `key` to `value`.
|
|
1028
|
+
*
|
|
1029
|
+
* @private
|
|
1030
|
+
* @name set
|
|
1031
|
+
* @memberOf ListCache
|
|
1032
|
+
* @param {string} key The key of the value to set.
|
|
1033
|
+
* @param {*} value The value to set.
|
|
1034
|
+
* @returns {Object} Returns the list cache instance.
|
|
1035
|
+
*/function listCacheSet(key,value){var data=this.__data__,index=assocIndexOf(data,key);if(index<0){++this.size;data.push([key,value]);}else{data[index][1]=value;}return this;}module.exports=listCacheSet;},{"./_assocIndexOf":52}],118:[function(require,module,exports){var Hash=require('./_Hash'),ListCache=require('./_ListCache'),Map=require('./_Map');/**
|
|
1036
|
+
* Removes all key-value entries from the map.
|
|
1037
|
+
*
|
|
1038
|
+
* @private
|
|
1039
|
+
* @name clear
|
|
1040
|
+
* @memberOf MapCache
|
|
1041
|
+
*/function mapCacheClear(){this.size=0;this.__data__={'hash':new Hash(),'map':new(Map||ListCache)(),'string':new Hash()};}module.exports=mapCacheClear;},{"./_Hash":34,"./_ListCache":35,"./_Map":36}],119:[function(require,module,exports){var getMapData=require('./_getMapData');/**
|
|
1042
|
+
* Removes `key` and its value from the map.
|
|
1043
|
+
*
|
|
1044
|
+
* @private
|
|
1045
|
+
* @name delete
|
|
1046
|
+
* @memberOf MapCache
|
|
1047
|
+
* @param {string} key The key of the value to remove.
|
|
1048
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
1049
|
+
*/function mapCacheDelete(key){var result=getMapData(this,key)['delete'](key);this.size-=result?1:0;return result;}module.exports=mapCacheDelete;},{"./_getMapData":92}],120:[function(require,module,exports){var getMapData=require('./_getMapData');/**
|
|
1050
|
+
* Gets the map value for `key`.
|
|
1051
|
+
*
|
|
1052
|
+
* @private
|
|
1053
|
+
* @name get
|
|
1054
|
+
* @memberOf MapCache
|
|
1055
|
+
* @param {string} key The key of the value to get.
|
|
1056
|
+
* @returns {*} Returns the entry value.
|
|
1057
|
+
*/function mapCacheGet(key){return getMapData(this,key).get(key);}module.exports=mapCacheGet;},{"./_getMapData":92}],121:[function(require,module,exports){var getMapData=require('./_getMapData');/**
|
|
1058
|
+
* Checks if a map value for `key` exists.
|
|
1059
|
+
*
|
|
1060
|
+
* @private
|
|
1061
|
+
* @name has
|
|
1062
|
+
* @memberOf MapCache
|
|
1063
|
+
* @param {string} key The key of the entry to check.
|
|
1064
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1065
|
+
*/function mapCacheHas(key){return getMapData(this,key).has(key);}module.exports=mapCacheHas;},{"./_getMapData":92}],122:[function(require,module,exports){var getMapData=require('./_getMapData');/**
|
|
1066
|
+
* Sets the map `key` to `value`.
|
|
1067
|
+
*
|
|
1068
|
+
* @private
|
|
1069
|
+
* @name set
|
|
1070
|
+
* @memberOf MapCache
|
|
1071
|
+
* @param {string} key The key of the value to set.
|
|
1072
|
+
* @param {*} value The value to set.
|
|
1073
|
+
* @returns {Object} Returns the map cache instance.
|
|
1074
|
+
*/function mapCacheSet(key,value){var data=getMapData(this,key),size=data.size;data.set(key,value);this.size+=data.size==size?0:1;return this;}module.exports=mapCacheSet;},{"./_getMapData":92}],123:[function(require,module,exports){var getNative=require('./_getNative');/* Built-in method references that are verified to be native. */var nativeCreate=getNative(Object,'create');module.exports=nativeCreate;},{"./_getNative":93}],124:[function(require,module,exports){var overArg=require('./_overArg');/* Built-in method references for those with the same name as other `lodash` methods. */var nativeKeys=overArg(Object.keys,Object);module.exports=nativeKeys;},{"./_overArg":128}],125:[function(require,module,exports){/**
|
|
2019
1075
|
* This function is like
|
|
2020
1076
|
* [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
2021
1077
|
* except that it includes inherited enumerable properties.
|
|
@@ -2023,13 +1079,26 @@ stack.set(srcValue,newValue);mergeFunc(newValue,srcValue,srcIndex,customizer,sta
|
|
|
2023
1079
|
* @private
|
|
2024
1080
|
* @param {Object} object The object to query.
|
|
2025
1081
|
* @returns {Array} Returns the array of property names.
|
|
2026
|
-
*/function nativeKeysIn(object){var result=[];if(object!=null){for(var key in Object(object)){result.push(key);}}return result;}
|
|
1082
|
+
*/function nativeKeysIn(object){var result=[];if(object!=null){for(var key in Object(object)){result.push(key);}}return result;}module.exports=nativeKeysIn;},{}],126:[function(require,module,exports){var freeGlobal=require('./_freeGlobal');/** Detect free variable `exports`. */var freeExports=_typeof(exports)=='object'&&exports&&!exports.nodeType&&exports;/** Detect free variable `module`. */var freeModule=freeExports&&_typeof(module)=='object'&&module&&!module.nodeType&&module;/** Detect the popular CommonJS extension `module.exports`. */var moduleExports=freeModule&&freeModule.exports===freeExports;/** Detect free variable `process` from Node.js. */var freeProcess=moduleExports&&freeGlobal.process;/** Used to access faster Node.js helpers. */var nodeUtil=function(){try{// Use `util.types` for Node.js 10+.
|
|
1083
|
+
var types=freeModule&&freeModule.require&&freeModule.require('util').types;if(types){return types;}// Legacy `process.binding('util')` for Node.js < 10.
|
|
1084
|
+
return freeProcess&&freeProcess.binding&&freeProcess.binding('util');}catch(e){}}();module.exports=nodeUtil;},{"./_freeGlobal":89}],127:[function(require,module,exports){/** Used for built-in method references. */var objectProto=Object.prototype;/**
|
|
1085
|
+
* Used to resolve the
|
|
1086
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
1087
|
+
* of values.
|
|
1088
|
+
*/var nativeObjectToString=objectProto.toString;/**
|
|
2027
1089
|
* Converts `value` to a string using `Object.prototype.toString`.
|
|
2028
1090
|
*
|
|
2029
1091
|
* @private
|
|
2030
1092
|
* @param {*} value The value to convert.
|
|
2031
1093
|
* @returns {string} Returns the converted string.
|
|
2032
|
-
*/function objectToString(value){return nativeObjectToString.call(value);}/**
|
|
1094
|
+
*/function objectToString(value){return nativeObjectToString.call(value);}module.exports=objectToString;},{}],128:[function(require,module,exports){/**
|
|
1095
|
+
* Creates a unary function that invokes `func` with its argument transformed.
|
|
1096
|
+
*
|
|
1097
|
+
* @private
|
|
1098
|
+
* @param {Function} func The function to wrap.
|
|
1099
|
+
* @param {Function} transform The argument transform.
|
|
1100
|
+
* @returns {Function} Returns the new function.
|
|
1101
|
+
*/function overArg(func,transform){return function(arg){return func(transform(arg));};}module.exports=overArg;},{}],129:[function(require,module,exports){var apply=require('./_apply');/* Built-in method references for those with the same name as other `lodash` methods. */var nativeMax=Math.max;/**
|
|
2033
1102
|
* A specialized version of `baseRest` which transforms the rest array.
|
|
2034
1103
|
*
|
|
2035
1104
|
* @private
|
|
@@ -2037,21 +1106,21 @@ stack.set(srcValue,newValue);mergeFunc(newValue,srcValue,srcIndex,customizer,sta
|
|
|
2037
1106
|
* @param {number} [start=func.length-1] The start position of the rest parameter.
|
|
2038
1107
|
* @param {Function} transform The rest array transform.
|
|
2039
1108
|
* @returns {Function} Returns the new function.
|
|
2040
|
-
*/function overRest(func,start,transform){start=nativeMax(start===undefined?func.length-1:start,0);return function(){var args=arguments,index=-1,length=nativeMax(args.length-start,0),array=Array(length);while(++index<length){array[index]=args[start+index];}index=-1;var otherArgs=Array(start+1);while(++index<start){otherArgs[index]=args[index];}otherArgs[start]=transform(array);return apply(func,this,otherArgs);};}/**
|
|
1109
|
+
*/function overRest(func,start,transform){start=nativeMax(start===undefined?func.length-1:start,0);return function(){var args=arguments,index=-1,length=nativeMax(args.length-start,0),array=Array(length);while(++index<length){array[index]=args[start+index];}index=-1;var otherArgs=Array(start+1);while(++index<start){otherArgs[index]=args[index];}otherArgs[start]=transform(array);return apply(func,this,otherArgs);};}module.exports=overRest;},{"./_apply":44}],130:[function(require,module,exports){var freeGlobal=require('./_freeGlobal');/** Detect free variable `self`. */var freeSelf=(typeof self==="undefined"?"undefined":_typeof(self))=='object'&&self&&self.Object===Object&&self;/** Used as a reference to the global object. */var root=freeGlobal||freeSelf||Function('return this')();module.exports=root;},{"./_freeGlobal":89}],131:[function(require,module,exports){/**
|
|
2041
1110
|
* Gets the value at `key`, unless `key` is "__proto__" or "constructor".
|
|
2042
1111
|
*
|
|
2043
1112
|
* @private
|
|
2044
1113
|
* @param {Object} object The object to query.
|
|
2045
1114
|
* @param {string} key The key of the property to get.
|
|
2046
1115
|
* @returns {*} Returns the property value.
|
|
2047
|
-
*/function safeGet(object,key){if(key==='constructor'&&typeof object[key]==='function'){return;}if(key=='__proto__'){return;}return object[key];}
|
|
1116
|
+
*/function safeGet(object,key){if(key==='constructor'&&typeof object[key]==='function'){return;}if(key=='__proto__'){return;}return object[key];}module.exports=safeGet;},{}],132:[function(require,module,exports){var baseSetToString=require('./_baseSetToString'),shortOut=require('./_shortOut');/**
|
|
2048
1117
|
* Sets the `toString` method of `func` to return `string`.
|
|
2049
1118
|
*
|
|
2050
1119
|
* @private
|
|
2051
1120
|
* @param {Function} func The function to modify.
|
|
2052
1121
|
* @param {Function} string The `toString` result.
|
|
2053
1122
|
* @returns {Function} Returns `func`.
|
|
2054
|
-
*/var setToString=shortOut(baseSetToString);/**
|
|
1123
|
+
*/var setToString=shortOut(baseSetToString);module.exports=setToString;},{"./_baseSetToString":71,"./_shortOut":133}],133:[function(require,module,exports){/** Used to detect hot functions by number of calls within a span of milliseconds. */var HOT_COUNT=800,HOT_SPAN=16;/* Built-in method references for those with the same name as other `lodash` methods. */var nativeNow=Date.now;/**
|
|
2055
1124
|
* Creates a function that'll short out and invoke `identity` instead
|
|
2056
1125
|
* of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
|
|
2057
1126
|
* milliseconds.
|
|
@@ -2059,13 +1128,87 @@ stack.set(srcValue,newValue);mergeFunc(newValue,srcValue,srcIndex,customizer,sta
|
|
|
2059
1128
|
* @private
|
|
2060
1129
|
* @param {Function} func The function to restrict.
|
|
2061
1130
|
* @returns {Function} Returns the new shortable function.
|
|
2062
|
-
*/function shortOut(func){var count=0,lastCalled=0;return function(){var stamp=nativeNow(),remaining=HOT_SPAN-(stamp-lastCalled);lastCalled=stamp;if(remaining>0){if(++count>=HOT_COUNT){return arguments[0];}}else{count=0;}return func.apply(undefined,arguments);};}
|
|
1131
|
+
*/function shortOut(func){var count=0,lastCalled=0;return function(){var stamp=nativeNow(),remaining=HOT_SPAN-(stamp-lastCalled);lastCalled=stamp;if(remaining>0){if(++count>=HOT_COUNT){return arguments[0];}}else{count=0;}return func.apply(undefined,arguments);};}module.exports=shortOut;},{}],134:[function(require,module,exports){var ListCache=require('./_ListCache');/**
|
|
1132
|
+
* Removes all key-value entries from the stack.
|
|
1133
|
+
*
|
|
1134
|
+
* @private
|
|
1135
|
+
* @name clear
|
|
1136
|
+
* @memberOf Stack
|
|
1137
|
+
*/function stackClear(){this.__data__=new ListCache();this.size=0;}module.exports=stackClear;},{"./_ListCache":35}],135:[function(require,module,exports){/**
|
|
1138
|
+
* Removes `key` and its value from the stack.
|
|
1139
|
+
*
|
|
1140
|
+
* @private
|
|
1141
|
+
* @name delete
|
|
1142
|
+
* @memberOf Stack
|
|
1143
|
+
* @param {string} key The key of the value to remove.
|
|
1144
|
+
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
1145
|
+
*/function stackDelete(key){var data=this.__data__,result=data['delete'](key);this.size=data.size;return result;}module.exports=stackDelete;},{}],136:[function(require,module,exports){/**
|
|
1146
|
+
* Gets the stack value for `key`.
|
|
1147
|
+
*
|
|
1148
|
+
* @private
|
|
1149
|
+
* @name get
|
|
1150
|
+
* @memberOf Stack
|
|
1151
|
+
* @param {string} key The key of the value to get.
|
|
1152
|
+
* @returns {*} Returns the entry value.
|
|
1153
|
+
*/function stackGet(key){return this.__data__.get(key);}module.exports=stackGet;},{}],137:[function(require,module,exports){/**
|
|
1154
|
+
* Checks if a stack value for `key` exists.
|
|
1155
|
+
*
|
|
1156
|
+
* @private
|
|
1157
|
+
* @name has
|
|
1158
|
+
* @memberOf Stack
|
|
1159
|
+
* @param {string} key The key of the entry to check.
|
|
1160
|
+
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1161
|
+
*/function stackHas(key){return this.__data__.has(key);}module.exports=stackHas;},{}],138:[function(require,module,exports){var ListCache=require('./_ListCache'),Map=require('./_Map'),MapCache=require('./_MapCache');/** Used as the size to enable large array optimizations. */var LARGE_ARRAY_SIZE=200;/**
|
|
1162
|
+
* Sets the stack `key` to `value`.
|
|
1163
|
+
*
|
|
1164
|
+
* @private
|
|
1165
|
+
* @name set
|
|
1166
|
+
* @memberOf Stack
|
|
1167
|
+
* @param {string} key The key of the value to set.
|
|
1168
|
+
* @param {*} value The value to set.
|
|
1169
|
+
* @returns {Object} Returns the stack cache instance.
|
|
1170
|
+
*/function stackSet(key,value){var data=this.__data__;if(data instanceof ListCache){var pairs=data.__data__;if(!Map||pairs.length<LARGE_ARRAY_SIZE-1){pairs.push([key,value]);this.size=++data.size;return this;}data=this.__data__=new MapCache(pairs);}data.set(key,value);this.size=data.size;return this;}module.exports=stackSet;},{"./_ListCache":35,"./_Map":36,"./_MapCache":37}],139:[function(require,module,exports){/** Used for built-in method references. */var funcProto=Function.prototype;/** Used to resolve the decompiled source of functions. */var funcToString=funcProto.toString;/**
|
|
2063
1171
|
* Converts `func` to its source code.
|
|
2064
1172
|
*
|
|
2065
1173
|
* @private
|
|
2066
1174
|
* @param {Function} func The function to convert.
|
|
2067
1175
|
* @returns {string} Returns the source code.
|
|
2068
|
-
*/function toSource(func){if(func!=null){try{return funcToString.call(func);}catch(e){}try{return func+'';}catch(e){}}return'';}
|
|
1176
|
+
*/function toSource(func){if(func!=null){try{return funcToString.call(func);}catch(e){}try{return func+'';}catch(e){}}return'';}module.exports=toSource;},{}],140:[function(require,module,exports){var baseClone=require('./_baseClone');/** Used to compose bitmasks for cloning. */var CLONE_DEEP_FLAG=1,CLONE_SYMBOLS_FLAG=4;/**
|
|
1177
|
+
* This method is like `_.clone` except that it recursively clones `value`.
|
|
1178
|
+
*
|
|
1179
|
+
* @static
|
|
1180
|
+
* @memberOf _
|
|
1181
|
+
* @since 1.0.0
|
|
1182
|
+
* @category Lang
|
|
1183
|
+
* @param {*} value The value to recursively clone.
|
|
1184
|
+
* @returns {*} Returns the deep cloned value.
|
|
1185
|
+
* @see _.clone
|
|
1186
|
+
* @example
|
|
1187
|
+
*
|
|
1188
|
+
* var objects = [{ 'a': 1 }, { 'b': 2 }];
|
|
1189
|
+
*
|
|
1190
|
+
* var deep = _.cloneDeep(objects);
|
|
1191
|
+
* console.log(deep[0] === objects[0]);
|
|
1192
|
+
* // => false
|
|
1193
|
+
*/function cloneDeep(value){return baseClone(value,CLONE_DEEP_FLAG|CLONE_SYMBOLS_FLAG);}module.exports=cloneDeep;},{"./_baseClone":56}],141:[function(require,module,exports){/**
|
|
1194
|
+
* Creates a function that returns `value`.
|
|
1195
|
+
*
|
|
1196
|
+
* @static
|
|
1197
|
+
* @memberOf _
|
|
1198
|
+
* @since 2.4.0
|
|
1199
|
+
* @category Util
|
|
1200
|
+
* @param {*} value The value to return from the new function.
|
|
1201
|
+
* @returns {Function} Returns the new constant function.
|
|
1202
|
+
* @example
|
|
1203
|
+
*
|
|
1204
|
+
* var objects = _.times(2, _.constant({ 'a': 1 }));
|
|
1205
|
+
*
|
|
1206
|
+
* console.log(objects);
|
|
1207
|
+
* // => [{ 'a': 1 }, { 'a': 1 }]
|
|
1208
|
+
*
|
|
1209
|
+
* console.log(objects[0] === objects[1]);
|
|
1210
|
+
* // => true
|
|
1211
|
+
*/function constant(value){return function(){return value;};}module.exports=constant;},{}],142:[function(require,module,exports){/**
|
|
2069
1212
|
* Performs a
|
|
2070
1213
|
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
2071
1214
|
* comparison between two values to determine if they are equivalent.
|
|
@@ -2096,7 +1239,39 @@ stack.set(srcValue,newValue);mergeFunc(newValue,srcValue,srcIndex,customizer,sta
|
|
|
2096
1239
|
*
|
|
2097
1240
|
* _.eq(NaN, NaN);
|
|
2098
1241
|
* // => true
|
|
2099
|
-
*/function eq(value,other){return value===other||value!==value&&other!==other;}
|
|
1242
|
+
*/function eq(value,other){return value===other||value!==value&&other!==other;}module.exports=eq;},{}],143:[function(require,module,exports){var toString=require('./toString');/**
|
|
1243
|
+
* Used to match `RegExp`
|
|
1244
|
+
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
1245
|
+
*/var reRegExpChar=/[\\^$.*+?()[\]{}|]/g,reHasRegExpChar=RegExp(reRegExpChar.source);/**
|
|
1246
|
+
* Escapes the `RegExp` special characters "^", "$", "\", ".", "*", "+",
|
|
1247
|
+
* "?", "(", ")", "[", "]", "{", "}", and "|" in `string`.
|
|
1248
|
+
*
|
|
1249
|
+
* @static
|
|
1250
|
+
* @memberOf _
|
|
1251
|
+
* @since 3.0.0
|
|
1252
|
+
* @category String
|
|
1253
|
+
* @param {string} [string=''] The string to escape.
|
|
1254
|
+
* @returns {string} Returns the escaped string.
|
|
1255
|
+
* @example
|
|
1256
|
+
*
|
|
1257
|
+
* _.escapeRegExp('[lodash](https://lodash.com/)');
|
|
1258
|
+
* // => '\[lodash\]\(https://lodash\.com/\)'
|
|
1259
|
+
*/function escapeRegExp(string){string=toString(string);return string&&reHasRegExpChar.test(string)?string.replace(reRegExpChar,'\\$&'):string;}module.exports=escapeRegExp;},{"./toString":166}],144:[function(require,module,exports){/**
|
|
1260
|
+
* This method returns the first argument it receives.
|
|
1261
|
+
*
|
|
1262
|
+
* @static
|
|
1263
|
+
* @since 0.1.0
|
|
1264
|
+
* @memberOf _
|
|
1265
|
+
* @category Util
|
|
1266
|
+
* @param {*} value Any value.
|
|
1267
|
+
* @returns {*} Returns `value`.
|
|
1268
|
+
* @example
|
|
1269
|
+
*
|
|
1270
|
+
* var object = { 'a': 1 };
|
|
1271
|
+
*
|
|
1272
|
+
* console.log(_.identity(object) === object);
|
|
1273
|
+
* // => true
|
|
1274
|
+
*/function identity(value){return value;}module.exports=identity;},{}],145:[function(require,module,exports){var baseIsArguments=require('./_baseIsArguments'),isObjectLike=require('./isObjectLike');/** Used for built-in method references. */var objectProto=Object.prototype;/** Used to check objects for own properties. */var hasOwnProperty=objectProto.hasOwnProperty;/** Built-in value references. */var propertyIsEnumerable=objectProto.propertyIsEnumerable;/**
|
|
2100
1275
|
* Checks if `value` is likely an `arguments` object.
|
|
2101
1276
|
*
|
|
2102
1277
|
* @static
|
|
@@ -2113,7 +1288,7 @@ stack.set(srcValue,newValue);mergeFunc(newValue,srcValue,srcIndex,customizer,sta
|
|
|
2113
1288
|
*
|
|
2114
1289
|
* _.isArguments([1, 2, 3]);
|
|
2115
1290
|
* // => false
|
|
2116
|
-
*/var isArguments=baseIsArguments(function(){return arguments;}())?baseIsArguments:function(value){return isObjectLike(value)&&hasOwnProperty.call(value,'callee')&&!propertyIsEnumerable.call(value,'callee');}
|
|
1291
|
+
*/var isArguments=baseIsArguments(function(){return arguments;}())?baseIsArguments:function(value){return isObjectLike(value)&&hasOwnProperty.call(value,'callee')&&!propertyIsEnumerable.call(value,'callee');};module.exports=isArguments;},{"./_baseIsArguments":61,"./isObjectLike":154}],146:[function(require,module,exports){/**
|
|
2117
1292
|
* Checks if `value` is classified as an `Array` object.
|
|
2118
1293
|
*
|
|
2119
1294
|
* @static
|
|
@@ -2135,7 +1310,7 @@ stack.set(srcValue,newValue);mergeFunc(newValue,srcValue,srcIndex,customizer,sta
|
|
|
2135
1310
|
*
|
|
2136
1311
|
* _.isArray(_.noop);
|
|
2137
1312
|
* // => false
|
|
2138
|
-
*/var isArray=Array.isArray;/**
|
|
1313
|
+
*/var isArray=Array.isArray;module.exports=isArray;},{}],147:[function(require,module,exports){var isFunction=require('./isFunction'),isLength=require('./isLength');/**
|
|
2139
1314
|
* Checks if `value` is array-like. A value is considered array-like if it's
|
|
2140
1315
|
* not a function and has a `value.length` that's an integer greater than or
|
|
2141
1316
|
* equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
|
|
@@ -2159,7 +1334,7 @@ stack.set(srcValue,newValue);mergeFunc(newValue,srcValue,srcIndex,customizer,sta
|
|
|
2159
1334
|
*
|
|
2160
1335
|
* _.isArrayLike(_.noop);
|
|
2161
1336
|
* // => false
|
|
2162
|
-
*/function isArrayLike(value){return value!=null&&isLength(value.length)&&!isFunction(value);}
|
|
1337
|
+
*/function isArrayLike(value){return value!=null&&isLength(value.length)&&!isFunction(value);}module.exports=isArrayLike;},{"./isFunction":150,"./isLength":151}],148:[function(require,module,exports){var isArrayLike=require('./isArrayLike'),isObjectLike=require('./isObjectLike');/**
|
|
2163
1338
|
* This method is like `_.isArrayLike` except that it also checks if `value`
|
|
2164
1339
|
* is an object.
|
|
2165
1340
|
*
|
|
@@ -2183,7 +1358,7 @@ stack.set(srcValue,newValue);mergeFunc(newValue,srcValue,srcIndex,customizer,sta
|
|
|
2183
1358
|
*
|
|
2184
1359
|
* _.isArrayLikeObject(_.noop);
|
|
2185
1360
|
* // => false
|
|
2186
|
-
*/function isArrayLikeObject(value){return isObjectLike(value)&&isArrayLike(value);}
|
|
1361
|
+
*/function isArrayLikeObject(value){return isObjectLike(value)&&isArrayLike(value);}module.exports=isArrayLikeObject;},{"./isArrayLike":147,"./isObjectLike":154}],149:[function(require,module,exports){var root=require('./_root'),stubFalse=require('./stubFalse');/** Detect free variable `exports`. */var freeExports=_typeof(exports)=='object'&&exports&&!exports.nodeType&&exports;/** Detect free variable `module`. */var freeModule=freeExports&&_typeof(module)=='object'&&module&&!module.nodeType&&module;/** Detect the popular CommonJS extension `module.exports`. */var moduleExports=freeModule&&freeModule.exports===freeExports;/** Built-in value references. */var Buffer=moduleExports?root.Buffer:undefined;/* Built-in method references for those with the same name as other `lodash` methods. */var nativeIsBuffer=Buffer?Buffer.isBuffer:undefined;/**
|
|
2187
1362
|
* Checks if `value` is a buffer.
|
|
2188
1363
|
*
|
|
2189
1364
|
* @static
|
|
@@ -2199,7 +1374,7 @@ stack.set(srcValue,newValue);mergeFunc(newValue,srcValue,srcIndex,customizer,sta
|
|
|
2199
1374
|
*
|
|
2200
1375
|
* _.isBuffer(new Uint8Array(2));
|
|
2201
1376
|
* // => false
|
|
2202
|
-
*/var isBuffer=nativeIsBuffer||stubFalse;/**
|
|
1377
|
+
*/var isBuffer=nativeIsBuffer||stubFalse;module.exports=isBuffer;},{"./_root":130,"./stubFalse":164}],150:[function(require,module,exports){var baseGetTag=require('./_baseGetTag'),isObject=require('./isObject');/** `Object#toString` result references. */var asyncTag='[object AsyncFunction]',funcTag='[object Function]',genTag='[object GeneratorFunction]',proxyTag='[object Proxy]';/**
|
|
2203
1378
|
* Checks if `value` is classified as a `Function` object.
|
|
2204
1379
|
*
|
|
2205
1380
|
* @static
|
|
@@ -2217,7 +1392,7 @@ stack.set(srcValue,newValue);mergeFunc(newValue,srcValue,srcIndex,customizer,sta
|
|
|
2217
1392
|
* // => false
|
|
2218
1393
|
*/function isFunction(value){if(!isObject(value)){return false;}// The use of `Object#toString` avoids issues with the `typeof` operator
|
|
2219
1394
|
// in Safari 9 which returns 'object' for typed arrays and other constructors.
|
|
2220
|
-
var tag=baseGetTag(value);return tag==funcTag||tag==genTag||tag==asyncTag||tag==proxyTag;}/**
|
|
1395
|
+
var tag=baseGetTag(value);return tag==funcTag||tag==genTag||tag==asyncTag||tag==proxyTag;}module.exports=isFunction;},{"./_baseGetTag":60,"./isObject":153}],151:[function(require,module,exports){/** Used as references for various `Number` constants. */var MAX_SAFE_INTEGER=9007199254740991;/**
|
|
2221
1396
|
* Checks if `value` is a valid array-like length.
|
|
2222
1397
|
*
|
|
2223
1398
|
* **Note:** This method is loosely based on
|
|
@@ -2242,7 +1417,23 @@ var tag=baseGetTag(value);return tag==funcTag||tag==genTag||tag==asyncTag||tag==
|
|
|
2242
1417
|
*
|
|
2243
1418
|
* _.isLength('3');
|
|
2244
1419
|
* // => false
|
|
2245
|
-
*/function isLength(value){return typeof value=='number'&&value>-1&&value%1==0&&value<=MAX_SAFE_INTEGER;}
|
|
1420
|
+
*/function isLength(value){return typeof value=='number'&&value>-1&&value%1==0&&value<=MAX_SAFE_INTEGER;}module.exports=isLength;},{}],152:[function(require,module,exports){var baseIsMap=require('./_baseIsMap'),baseUnary=require('./_baseUnary'),nodeUtil=require('./_nodeUtil');/* Node.js helper references. */var nodeIsMap=nodeUtil&&nodeUtil.isMap;/**
|
|
1421
|
+
* Checks if `value` is classified as a `Map` object.
|
|
1422
|
+
*
|
|
1423
|
+
* @static
|
|
1424
|
+
* @memberOf _
|
|
1425
|
+
* @since 4.3.0
|
|
1426
|
+
* @category Lang
|
|
1427
|
+
* @param {*} value The value to check.
|
|
1428
|
+
* @returns {boolean} Returns `true` if `value` is a map, else `false`.
|
|
1429
|
+
* @example
|
|
1430
|
+
*
|
|
1431
|
+
* _.isMap(new Map);
|
|
1432
|
+
* // => true
|
|
1433
|
+
*
|
|
1434
|
+
* _.isMap(new WeakMap);
|
|
1435
|
+
* // => false
|
|
1436
|
+
*/var isMap=nodeIsMap?baseUnary(nodeIsMap):baseIsMap;module.exports=isMap;},{"./_baseIsMap":62,"./_baseUnary":74,"./_nodeUtil":126}],153:[function(require,module,exports){/**
|
|
2246
1437
|
* Checks if `value` is the
|
|
2247
1438
|
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
2248
1439
|
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
@@ -2266,7 +1457,7 @@ var tag=baseGetTag(value);return tag==funcTag||tag==genTag||tag==asyncTag||tag==
|
|
|
2266
1457
|
*
|
|
2267
1458
|
* _.isObject(null);
|
|
2268
1459
|
* // => false
|
|
2269
|
-
*/function isObject(value){var type=_typeof(value);return value!=null&&(type=='object'||type=='function');}/**
|
|
1460
|
+
*/function isObject(value){var type=_typeof(value);return value!=null&&(type=='object'||type=='function');}module.exports=isObject;},{}],154:[function(require,module,exports){/**
|
|
2270
1461
|
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
2271
1462
|
* and has a `typeof` result of "object".
|
|
2272
1463
|
*
|
|
@@ -2289,7 +1480,7 @@ var tag=baseGetTag(value);return tag==funcTag||tag==genTag||tag==asyncTag||tag==
|
|
|
2289
1480
|
*
|
|
2290
1481
|
* _.isObjectLike(null);
|
|
2291
1482
|
* // => false
|
|
2292
|
-
*/function isObjectLike(value){return value!=null&&_typeof(value)=='object';}
|
|
1483
|
+
*/function isObjectLike(value){return value!=null&&_typeof(value)=='object';}module.exports=isObjectLike;},{}],155:[function(require,module,exports){var baseGetTag=require('./_baseGetTag'),getPrototype=require('./_getPrototype'),isObjectLike=require('./isObjectLike');/** `Object#toString` result references. */var objectTag='[object Object]';/** Used for built-in method references. */var funcProto=Function.prototype,objectProto=Object.prototype;/** Used to resolve the decompiled source of functions. */var funcToString=funcProto.toString;/** Used to check objects for own properties. */var hasOwnProperty=objectProto.hasOwnProperty;/** Used to infer the `Object` constructor. */var objectCtorString=funcToString.call(Object);/**
|
|
2293
1484
|
* Checks if `value` is a plain object, that is, an object created by the
|
|
2294
1485
|
* `Object` constructor or one with a `[[Prototype]]` of `null`.
|
|
2295
1486
|
*
|
|
@@ -2316,7 +1507,55 @@ var tag=baseGetTag(value);return tag==funcTag||tag==genTag||tag==asyncTag||tag==
|
|
|
2316
1507
|
*
|
|
2317
1508
|
* _.isPlainObject(Object.create(null));
|
|
2318
1509
|
* // => true
|
|
2319
|
-
*/function isPlainObject(value){if(!isObjectLike(value)||baseGetTag(value)!=objectTag){return false;}var proto=getPrototype(value);if(proto===null){return true;}var Ctor=hasOwnProperty.call(proto,'constructor')&&proto.constructor;return typeof Ctor=='function'&&Ctor instanceof Ctor&&funcToString.call(Ctor)==objectCtorString;}
|
|
1510
|
+
*/function isPlainObject(value){if(!isObjectLike(value)||baseGetTag(value)!=objectTag){return false;}var proto=getPrototype(value);if(proto===null){return true;}var Ctor=hasOwnProperty.call(proto,'constructor')&&proto.constructor;return typeof Ctor=='function'&&Ctor instanceof Ctor&&funcToString.call(Ctor)==objectCtorString;}module.exports=isPlainObject;},{"./_baseGetTag":60,"./_getPrototype":94,"./isObjectLike":154}],156:[function(require,module,exports){var baseIsSet=require('./_baseIsSet'),baseUnary=require('./_baseUnary'),nodeUtil=require('./_nodeUtil');/* Node.js helper references. */var nodeIsSet=nodeUtil&&nodeUtil.isSet;/**
|
|
1511
|
+
* Checks if `value` is classified as a `Set` object.
|
|
1512
|
+
*
|
|
1513
|
+
* @static
|
|
1514
|
+
* @memberOf _
|
|
1515
|
+
* @since 4.3.0
|
|
1516
|
+
* @category Lang
|
|
1517
|
+
* @param {*} value The value to check.
|
|
1518
|
+
* @returns {boolean} Returns `true` if `value` is a set, else `false`.
|
|
1519
|
+
* @example
|
|
1520
|
+
*
|
|
1521
|
+
* _.isSet(new Set);
|
|
1522
|
+
* // => true
|
|
1523
|
+
*
|
|
1524
|
+
* _.isSet(new WeakSet);
|
|
1525
|
+
* // => false
|
|
1526
|
+
*/var isSet=nodeIsSet?baseUnary(nodeIsSet):baseIsSet;module.exports=isSet;},{"./_baseIsSet":64,"./_baseUnary":74,"./_nodeUtil":126}],157:[function(require,module,exports){var baseGetTag=require('./_baseGetTag'),isArray=require('./isArray'),isObjectLike=require('./isObjectLike');/** `Object#toString` result references. */var stringTag='[object String]';/**
|
|
1527
|
+
* Checks if `value` is classified as a `String` primitive or object.
|
|
1528
|
+
*
|
|
1529
|
+
* @static
|
|
1530
|
+
* @since 0.1.0
|
|
1531
|
+
* @memberOf _
|
|
1532
|
+
* @category Lang
|
|
1533
|
+
* @param {*} value The value to check.
|
|
1534
|
+
* @returns {boolean} Returns `true` if `value` is a string, else `false`.
|
|
1535
|
+
* @example
|
|
1536
|
+
*
|
|
1537
|
+
* _.isString('abc');
|
|
1538
|
+
* // => true
|
|
1539
|
+
*
|
|
1540
|
+
* _.isString(1);
|
|
1541
|
+
* // => false
|
|
1542
|
+
*/function isString(value){return typeof value=='string'||!isArray(value)&&isObjectLike(value)&&baseGetTag(value)==stringTag;}module.exports=isString;},{"./_baseGetTag":60,"./isArray":146,"./isObjectLike":154}],158:[function(require,module,exports){var baseGetTag=require('./_baseGetTag'),isObjectLike=require('./isObjectLike');/** `Object#toString` result references. */var symbolTag='[object Symbol]';/**
|
|
1543
|
+
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
1544
|
+
*
|
|
1545
|
+
* @static
|
|
1546
|
+
* @memberOf _
|
|
1547
|
+
* @since 4.0.0
|
|
1548
|
+
* @category Lang
|
|
1549
|
+
* @param {*} value The value to check.
|
|
1550
|
+
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
1551
|
+
* @example
|
|
1552
|
+
*
|
|
1553
|
+
* _.isSymbol(Symbol.iterator);
|
|
1554
|
+
* // => true
|
|
1555
|
+
*
|
|
1556
|
+
* _.isSymbol('abc');
|
|
1557
|
+
* // => false
|
|
1558
|
+
*/function isSymbol(value){return _typeof(value)=='symbol'||isObjectLike(value)&&baseGetTag(value)==symbolTag;}module.exports=isSymbol;},{"./_baseGetTag":60,"./isObjectLike":154}],159:[function(require,module,exports){var baseIsTypedArray=require('./_baseIsTypedArray'),baseUnary=require('./_baseUnary'),nodeUtil=require('./_nodeUtil');/* Node.js helper references. */var nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray;/**
|
|
2320
1559
|
* Checks if `value` is classified as a typed array.
|
|
2321
1560
|
*
|
|
2322
1561
|
* @static
|
|
@@ -2332,30 +1571,34 @@ var tag=baseGetTag(value);return tag==funcTag||tag==genTag||tag==asyncTag||tag==
|
|
|
2332
1571
|
*
|
|
2333
1572
|
* _.isTypedArray([]);
|
|
2334
1573
|
* // => false
|
|
2335
|
-
*/var isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray;/**
|
|
2336
|
-
*
|
|
2337
|
-
*
|
|
1574
|
+
*/var isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray;module.exports=isTypedArray;},{"./_baseIsTypedArray":65,"./_baseUnary":74,"./_nodeUtil":126}],160:[function(require,module,exports){var arrayLikeKeys=require('./_arrayLikeKeys'),baseKeys=require('./_baseKeys'),isArrayLike=require('./isArrayLike');/**
|
|
1575
|
+
* Creates an array of the own enumerable property names of `object`.
|
|
1576
|
+
*
|
|
1577
|
+
* **Note:** Non-object values are coerced to objects. See the
|
|
1578
|
+
* [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
1579
|
+
* for more details.
|
|
2338
1580
|
*
|
|
2339
1581
|
* @static
|
|
1582
|
+
* @since 0.1.0
|
|
2340
1583
|
* @memberOf _
|
|
2341
|
-
* @
|
|
2342
|
-
* @
|
|
2343
|
-
* @
|
|
2344
|
-
* @returns {Object} Returns the converted plain object.
|
|
1584
|
+
* @category Object
|
|
1585
|
+
* @param {Object} object The object to query.
|
|
1586
|
+
* @returns {Array} Returns the array of property names.
|
|
2345
1587
|
* @example
|
|
2346
1588
|
*
|
|
2347
1589
|
* function Foo() {
|
|
1590
|
+
* this.a = 1;
|
|
2348
1591
|
* this.b = 2;
|
|
2349
1592
|
* }
|
|
2350
1593
|
*
|
|
2351
1594
|
* Foo.prototype.c = 3;
|
|
2352
1595
|
*
|
|
2353
|
-
* _.
|
|
2354
|
-
* // =>
|
|
1596
|
+
* _.keys(new Foo);
|
|
1597
|
+
* // => ['a', 'b'] (iteration order is not guaranteed)
|
|
2355
1598
|
*
|
|
2356
|
-
* _.
|
|
2357
|
-
* // =>
|
|
2358
|
-
*/function
|
|
1599
|
+
* _.keys('hi');
|
|
1600
|
+
* // => ['0', '1']
|
|
1601
|
+
*/function keys(object){return isArrayLike(object)?arrayLikeKeys(object):baseKeys(object);}module.exports=keys;},{"./_arrayLikeKeys":47,"./_baseKeys":66,"./isArrayLike":147}],161:[function(require,module,exports){var arrayLikeKeys=require('./_arrayLikeKeys'),baseKeysIn=require('./_baseKeysIn'),isArrayLike=require('./isArrayLike');/**
|
|
2359
1602
|
* Creates an array of the own and inherited enumerable property names of `object`.
|
|
2360
1603
|
*
|
|
2361
1604
|
* **Note:** Non-object values are coerced to objects.
|
|
@@ -2377,7 +1620,7 @@ var tag=baseGetTag(value);return tag==funcTag||tag==genTag||tag==asyncTag||tag==
|
|
|
2377
1620
|
*
|
|
2378
1621
|
* _.keysIn(new Foo);
|
|
2379
1622
|
* // => ['a', 'b', 'c'] (iteration order is not guaranteed)
|
|
2380
|
-
*/function keysIn(object){return isArrayLike(object)?arrayLikeKeys(object,true):baseKeysIn(object);}
|
|
1623
|
+
*/function keysIn(object){return isArrayLike(object)?arrayLikeKeys(object,true):baseKeysIn(object);}module.exports=keysIn;},{"./_arrayLikeKeys":47,"./_baseKeysIn":67,"./isArrayLike":147}],162:[function(require,module,exports){var baseMerge=require('./_baseMerge'),createAssigner=require('./_createAssigner');/**
|
|
2381
1624
|
* This method is like `_.merge` except that it accepts `customizer` which
|
|
2382
1625
|
* is invoked to produce the merged values of the destination and source
|
|
2383
1626
|
* properties. If `customizer` returns `undefined`, merging is handled by the
|
|
@@ -2407,52 +1650,79 @@ var tag=baseGetTag(value);return tag==funcTag||tag==genTag||tag==asyncTag||tag==
|
|
|
2407
1650
|
*
|
|
2408
1651
|
* _.mergeWith(object, other, customizer);
|
|
2409
1652
|
* // => { 'a': [1, 3], 'b': [2, 4] }
|
|
2410
|
-
*/var mergeWith=createAssigner(function(object,source,srcIndex,customizer){baseMerge(object,source,srcIndex,customizer);})
|
|
2411
|
-
*
|
|
1653
|
+
*/var mergeWith=createAssigner(function(object,source,srcIndex,customizer){baseMerge(object,source,srcIndex,customizer);});module.exports=mergeWith;},{"./_baseMerge":68,"./_createAssigner":86}],163:[function(require,module,exports){/**
|
|
1654
|
+
* This method returns a new empty array.
|
|
2412
1655
|
*
|
|
2413
1656
|
* @static
|
|
2414
1657
|
* @memberOf _
|
|
2415
|
-
* @since
|
|
1658
|
+
* @since 4.13.0
|
|
2416
1659
|
* @category Util
|
|
2417
|
-
* @
|
|
2418
|
-
* @returns {Function} Returns the new constant function.
|
|
1660
|
+
* @returns {Array} Returns the new empty array.
|
|
2419
1661
|
* @example
|
|
2420
1662
|
*
|
|
2421
|
-
* var
|
|
1663
|
+
* var arrays = _.times(2, _.stubArray);
|
|
2422
1664
|
*
|
|
2423
|
-
* console.log(
|
|
2424
|
-
* // => [
|
|
1665
|
+
* console.log(arrays);
|
|
1666
|
+
* // => [[], []]
|
|
2425
1667
|
*
|
|
2426
|
-
* console.log(
|
|
2427
|
-
* // =>
|
|
2428
|
-
*/function
|
|
2429
|
-
* This method returns
|
|
1668
|
+
* console.log(arrays[0] === arrays[1]);
|
|
1669
|
+
* // => false
|
|
1670
|
+
*/function stubArray(){return[];}module.exports=stubArray;},{}],164:[function(require,module,exports){/**
|
|
1671
|
+
* This method returns `false`.
|
|
2430
1672
|
*
|
|
2431
1673
|
* @static
|
|
2432
|
-
* @since 0.1.0
|
|
2433
1674
|
* @memberOf _
|
|
1675
|
+
* @since 4.13.0
|
|
2434
1676
|
* @category Util
|
|
2435
|
-
* @
|
|
2436
|
-
* @returns {*} Returns `value`.
|
|
1677
|
+
* @returns {boolean} Returns `false`.
|
|
2437
1678
|
* @example
|
|
2438
1679
|
*
|
|
2439
|
-
*
|
|
1680
|
+
* _.times(2, _.stubFalse);
|
|
1681
|
+
* // => [false, false]
|
|
1682
|
+
*/function stubFalse(){return false;}module.exports=stubFalse;},{}],165:[function(require,module,exports){var copyObject=require('./_copyObject'),keysIn=require('./keysIn');/**
|
|
1683
|
+
* Converts `value` to a plain object flattening inherited enumerable string
|
|
1684
|
+
* keyed properties of `value` to own properties of the plain object.
|
|
2440
1685
|
*
|
|
2441
|
-
*
|
|
2442
|
-
*
|
|
2443
|
-
|
|
2444
|
-
*
|
|
1686
|
+
* @static
|
|
1687
|
+
* @memberOf _
|
|
1688
|
+
* @since 3.0.0
|
|
1689
|
+
* @category Lang
|
|
1690
|
+
* @param {*} value The value to convert.
|
|
1691
|
+
* @returns {Object} Returns the converted plain object.
|
|
1692
|
+
* @example
|
|
1693
|
+
*
|
|
1694
|
+
* function Foo() {
|
|
1695
|
+
* this.b = 2;
|
|
1696
|
+
* }
|
|
1697
|
+
*
|
|
1698
|
+
* Foo.prototype.c = 3;
|
|
1699
|
+
*
|
|
1700
|
+
* _.assign({ 'a': 1 }, new Foo);
|
|
1701
|
+
* // => { 'a': 1, 'b': 2 }
|
|
1702
|
+
*
|
|
1703
|
+
* _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
|
|
1704
|
+
* // => { 'a': 1, 'b': 2, 'c': 3 }
|
|
1705
|
+
*/function toPlainObject(value){return copyObject(value,keysIn(value));}module.exports=toPlainObject;},{"./_copyObject":82,"./keysIn":161}],166:[function(require,module,exports){var baseToString=require('./_baseToString');/**
|
|
1706
|
+
* Converts `value` to a string. An empty string is returned for `null`
|
|
1707
|
+
* and `undefined` values. The sign of `-0` is preserved.
|
|
2445
1708
|
*
|
|
2446
1709
|
* @static
|
|
2447
1710
|
* @memberOf _
|
|
2448
|
-
* @since 4.
|
|
2449
|
-
* @category
|
|
2450
|
-
* @
|
|
1711
|
+
* @since 4.0.0
|
|
1712
|
+
* @category Lang
|
|
1713
|
+
* @param {*} value The value to convert.
|
|
1714
|
+
* @returns {string} Returns the converted string.
|
|
2451
1715
|
* @example
|
|
2452
1716
|
*
|
|
2453
|
-
* _.
|
|
2454
|
-
* // =>
|
|
2455
|
-
|
|
1717
|
+
* _.toString(null);
|
|
1718
|
+
* // => ''
|
|
1719
|
+
*
|
|
1720
|
+
* _.toString(-0);
|
|
1721
|
+
* // => '-0'
|
|
1722
|
+
*
|
|
1723
|
+
* _.toString([1, 2, 3]);
|
|
1724
|
+
* // => '1,2,3'
|
|
1725
|
+
*/function toString(value){return value==null?'':baseToString(value);}module.exports=toString;},{"./_baseToString":73}],167:[function(require,module,exports){(function(process){// .dirname, .basename, and .extname methods are extracted from Node.js v8.11.1,
|
|
2456
1726
|
// backported and transplited with Babel, with backwards-compat fixes
|
|
2457
1727
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
2458
1728
|
//
|
|
@@ -2514,7 +1784,7 @@ if(startDot===-1)startDot=i;else if(preDotState!==1)preDotState=1;}else if(start
|
|
|
2514
1784
|
preDotState=-1;}}if(startDot===-1||end===-1||// We saw a non-dot character immediately before the dot
|
|
2515
1785
|
preDotState===0||// The (right-most) trimmed path component is exactly '..'
|
|
2516
1786
|
preDotState===1&&startDot===end-1&&startDot===startPart+1){return'';}return path.slice(startDot,end);};function filter(xs,f){if(xs.filter)return xs.filter(f);var res=[];for(var i=0;i<xs.length;i++){if(f(xs[i],i,xs))res.push(xs[i]);}return res;}// String.prototype.substr - negative index don't work in IE8
|
|
2517
|
-
var substr='ab'.substr(-1)==='b'?function(str,start,len){return str.substr(start,len);}:function(str,start,len){if(start<0)start=str.length+start;return str.substr(start,len);};}).call(this,require('_process'));},{"_process":
|
|
1787
|
+
var substr='ab'.substr(-1)==='b'?function(str,start,len){return str.substr(start,len);}:function(str,start,len){if(start<0)start=str.length+start;return str.substr(start,len);};}).call(this,require('_process'));},{"_process":192}],168:[function(require,module,exports){"use strict";exports.__esModule=true;exports["default"]=void 0;var _container=_interopRequireDefault(require("./container"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj};}function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype);subClass.prototype.constructor=subClass;subClass.__proto__=superClass;}/**
|
|
2518
1788
|
* Represents an at-rule.
|
|
2519
1789
|
*
|
|
2520
1790
|
* If it’s followed in the CSS by a {} block, this node will have
|
|
@@ -2579,7 +1849,7 @@ var substr='ab'.substr(-1)==='b'?function(str,start,len){return str.substr(start
|
|
|
2579
1849
|
* // between: ' ',
|
|
2580
1850
|
* // afterName: '\n',
|
|
2581
1851
|
* // after: '\n' }
|
|
2582
|
-
*/;return AtRule;}(_container["default"]);var _default=AtRule;exports["default"]=_default;module.exports=exports["default"];},{"./container":
|
|
1852
|
+
*/;return AtRule;}(_container["default"]);var _default=AtRule;exports["default"]=_default;module.exports=exports["default"];},{"./container":170}],169:[function(require,module,exports){"use strict";exports.__esModule=true;exports["default"]=void 0;var _node=_interopRequireDefault(require("./node"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj};}function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype);subClass.prototype.constructor=subClass;subClass.__proto__=superClass;}/**
|
|
2583
1853
|
* Represents a comment between declarations or statements (rule and at-rules).
|
|
2584
1854
|
*
|
|
2585
1855
|
* Comments inside selectors, at-rule parameters, or declaration values
|
|
@@ -2600,7 +1870,7 @@ var substr='ab'.substr(-1)==='b'?function(str,start,len){return str.substr(start
|
|
|
2600
1870
|
* * `before`: the space symbols before the node.
|
|
2601
1871
|
* * `left`: the space symbols between `/*` and the comment’s text.
|
|
2602
1872
|
* * `right`: the space symbols between the comment’s text.
|
|
2603
|
-
*/return Comment;}(_node["default"]);var _default=Comment;exports["default"]=_default;module.exports=exports["default"];},{"./node":
|
|
1873
|
+
*/return Comment;}(_node["default"]);var _default=Comment;exports["default"]=_default;module.exports=exports["default"];},{"./node":177}],170:[function(require,module,exports){"use strict";exports.__esModule=true;exports["default"]=void 0;var _declaration=_interopRequireDefault(require("./declaration"));var _comment=_interopRequireDefault(require("./comment"));var _node=_interopRequireDefault(require("./node"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj};}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);return Constructor;}function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype);subClass.prototype.constructor=subClass;subClass.__proto__=superClass;}function cleanSource(nodes){return nodes.map(function(i){if(i.nodes)i.nodes=cleanSource(i.nodes);delete i.source;return i;});}/**
|
|
2604
1874
|
* The {@link Root}, {@link AtRule}, and {@link Rule} container nodes
|
|
2605
1875
|
* inherit some common methods to help work with their children.
|
|
2606
1876
|
*
|
|
@@ -2918,7 +2188,7 @@ var substr='ab'.substr(-1)==='b'?function(str,start,len){return str.substr(start
|
|
|
2918
2188
|
* @param {Node} node Container child.
|
|
2919
2189
|
* @param {number} index Child index.
|
|
2920
2190
|
* @return {false|undefined} Returning `false` will break iteration.
|
|
2921
|
-
*/exports["default"]=_default;module.exports=exports["default"];},{"./at-rule":
|
|
2191
|
+
*/exports["default"]=_default;module.exports=exports["default"];},{"./at-rule":168,"./comment":169,"./declaration":172,"./node":177,"./parse":178,"./rule":185}],171:[function(require,module,exports){"use strict";exports.__esModule=true;exports["default"]=void 0;var _supportsColor=_interopRequireDefault(require("supports-color"));var _chalk=_interopRequireDefault(require("chalk"));var _terminalHighlight=_interopRequireDefault(require("./terminal-highlight"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj};}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype);subClass.prototype.constructor=subClass;subClass.__proto__=superClass;}function _wrapNativeSuper(Class){var _cache=typeof Map==="function"?new Map():undefined;_wrapNativeSuper=function _wrapNativeSuper(Class){if(Class===null||!_isNativeFunction(Class))return Class;if(typeof Class!=="function"){throw new TypeError("Super expression must either be null or a function");}if(typeof _cache!=="undefined"){if(_cache.has(Class))return _cache.get(Class);_cache.set(Class,Wrapper);}function Wrapper(){return _construct(Class,arguments,_getPrototypeOf(this).constructor);}Wrapper.prototype=Object.create(Class.prototype,{constructor:{value:Wrapper,enumerable:false,writable:true,configurable:true}});return _setPrototypeOf(Wrapper,Class);};return _wrapNativeSuper(Class);}function isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true;}catch(e){return false;}}function _construct(Parent,args,Class){if(isNativeReflectConstruct()){_construct=Reflect.construct;}else{_construct=function _construct(Parent,args,Class){var a=[null];a.push.apply(a,args);var Constructor=Function.bind.apply(Parent,a);var instance=new Constructor();if(Class)_setPrototypeOf(instance,Class.prototype);return instance;};}return _construct.apply(null,arguments);}function _isNativeFunction(fn){return Function.toString.call(fn).indexOf("[native code]")!==-1;}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}/**
|
|
2922
2192
|
* The CSS parser throws this error for broken CSS.
|
|
2923
2193
|
*
|
|
2924
2194
|
* Custom parsers can throw this error for broken custom syntax using
|
|
@@ -3057,7 +2327,7 @@ var substr='ab'.substr(-1)==='b'?function(str,start,len){return str.substr(start
|
|
|
3057
2327
|
* @example
|
|
3058
2328
|
* error.input.file //=> 'a.css'
|
|
3059
2329
|
* error.file //=> 'a.sass'
|
|
3060
|
-
*/;return CssSyntaxError;}(_wrapNativeSuper(Error));var _default=CssSyntaxError;exports["default"]=_default;module.exports=exports["default"];},{"./terminal-highlight":2,"chalk":2,"supports-color":2}],
|
|
2330
|
+
*/;return CssSyntaxError;}(_wrapNativeSuper(Error));var _default=CssSyntaxError;exports["default"]=_default;module.exports=exports["default"];},{"./terminal-highlight":2,"chalk":2,"supports-color":2}],172:[function(require,module,exports){"use strict";exports.__esModule=true;exports["default"]=void 0;var _node=_interopRequireDefault(require("./node"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj};}function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype);subClass.prototype.constructor=subClass;subClass.__proto__=superClass;}/**
|
|
3061
2331
|
* Represents a CSS declaration.
|
|
3062
2332
|
*
|
|
3063
2333
|
* @extends Node
|
|
@@ -3115,7 +2385,7 @@ var substr='ab'.substr(-1)==='b'?function(str,start,len){return str.substr(start
|
|
|
3115
2385
|
* @example
|
|
3116
2386
|
* const root = postcss.parse('a {\n color:black\n}')
|
|
3117
2387
|
* root.first.first.raws //=> { before: '\n ', between: ':' }
|
|
3118
|
-
*/return Declaration;}(_node["default"]);var _default=Declaration;exports["default"]=_default;module.exports=exports["default"];},{"./node":
|
|
2388
|
+
*/return Declaration;}(_node["default"]);var _default=Declaration;exports["default"]=_default;module.exports=exports["default"];},{"./node":177}],173:[function(require,module,exports){"use strict";exports.__esModule=true;exports["default"]=void 0;var _path=_interopRequireDefault(require("path"));var _cssSyntaxError=_interopRequireDefault(require("./css-syntax-error"));var _previousMap=_interopRequireDefault(require("./previous-map"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj};}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);return Constructor;}var sequence=0;/**
|
|
3119
2389
|
* Represents the source CSS.
|
|
3120
2390
|
*
|
|
3121
2391
|
* @example
|
|
@@ -3188,7 +2458,7 @@ var substr='ab'.substr(-1)==='b'?function(str,start,len){return str.substr(start
|
|
|
3188
2458
|
* @property {string} file Path to file.
|
|
3189
2459
|
* @property {number} line Source line in file.
|
|
3190
2460
|
* @property {number} column Source column in file.
|
|
3191
|
-
*/exports["default"]=_default;module.exports=exports["default"];},{"./css-syntax-error":
|
|
2461
|
+
*/exports["default"]=_default;module.exports=exports["default"];},{"./css-syntax-error":171,"./previous-map":181,"path":167}],174:[function(require,module,exports){(function(process){"use strict";exports.__esModule=true;exports["default"]=void 0;var _mapGenerator=_interopRequireDefault(require("./map-generator"));var _stringify2=_interopRequireDefault(require("./stringify"));var _warnOnce=_interopRequireDefault(require("./warn-once"));var _result=_interopRequireDefault(require("./result"));var _parse=_interopRequireDefault(require("./parse"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj};}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);return Constructor;}function isPromise(obj){return _typeof(obj)==='object'&&typeof obj.then==='function';}/**
|
|
3192
2462
|
* A Promise proxy for the result of PostCSS transformations.
|
|
3193
2463
|
*
|
|
3194
2464
|
* A `LazyResult` instance is returned by {@link Processor#process}.
|
|
@@ -3327,7 +2597,7 @@ var substr='ab'.substr(-1)==='b'?function(str,start,len){return str.substr(start
|
|
|
3327
2597
|
*/ /**
|
|
3328
2598
|
* @callback onRejected
|
|
3329
2599
|
* @param {Error} error
|
|
3330
|
-
*/exports["default"]=_default;module.exports=exports["default"];}).call(this,require('_process'));},{"./map-generator":
|
|
2600
|
+
*/exports["default"]=_default;module.exports=exports["default"];}).call(this,require('_process'));},{"./map-generator":176,"./parse":178,"./result":183,"./stringify":187,"./warn-once":190,"_process":192}],175:[function(require,module,exports){"use strict";exports.__esModule=true;exports["default"]=void 0;/**
|
|
3331
2601
|
* Contains helpers for safely splitting lists of CSS values,
|
|
3332
2602
|
* preserving parentheses and quotes.
|
|
3333
2603
|
*
|
|
@@ -3356,7 +2626,7 @@ var substr='ab'.substr(-1)==='b'?function(str,start,len){return str.substr(start
|
|
|
3356
2626
|
* @example
|
|
3357
2627
|
* postcss.list.comma('black, linear-gradient(white, black)')
|
|
3358
2628
|
* //=> ['black', 'linear-gradient(white, black)']
|
|
3359
|
-
*/comma:function comma(string){return list.split(string,[','],true);}};var _default=list;exports["default"]=_default;module.exports=exports["default"];},{}],
|
|
2629
|
+
*/comma:function comma(string){return list.split(string,[','],true);}};var _default=list;exports["default"]=_default;module.exports=exports["default"];},{}],176:[function(require,module,exports){(function(Buffer){"use strict";exports.__esModule=true;exports["default"]=void 0;var _sourceMap=_interopRequireDefault(require("source-map"));var _path=_interopRequireDefault(require("path"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj};}var MapGenerator=/*#__PURE__*/function(){function MapGenerator(stringify,root,opts){this.stringify=stringify;this.mapOpts=opts.map||{};this.root=root;this.opts=opts;}var _proto=MapGenerator.prototype;_proto.isMap=function isMap(){if(typeof this.opts.map!=='undefined'){return!!this.opts.map;}return this.previous().length>0;};_proto.previous=function previous(){var _this=this;if(!this.previousMaps){this.previousMaps=[];this.root.walk(function(node){if(node.source&&node.source.input.map){var map=node.source.input.map;if(_this.previousMaps.indexOf(map)===-1){_this.previousMaps.push(map);}}});}return this.previousMaps;};_proto.isInline=function isInline(){if(typeof this.mapOpts.inline!=='undefined'){return this.mapOpts.inline;}var annotation=this.mapOpts.annotation;if(typeof annotation!=='undefined'&&annotation!==true){return false;}if(this.previous().length){return this.previous().some(function(i){return i.inline;});}return true;};_proto.isSourcesContent=function isSourcesContent(){if(typeof this.mapOpts.sourcesContent!=='undefined'){return this.mapOpts.sourcesContent;}if(this.previous().length){return this.previous().some(function(i){return i.withContent();});}return true;};_proto.clearAnnotation=function clearAnnotation(){if(this.mapOpts.annotation===false)return;var node;for(var i=this.root.nodes.length-1;i>=0;i--){node=this.root.nodes[i];if(node.type!=='comment')continue;if(node.text.indexOf('# sourceMappingURL=')===0){this.root.removeChild(i);}}};_proto.setSourcesContent=function setSourcesContent(){var _this2=this;var already={};this.root.walk(function(node){if(node.source){var from=node.source.input.from;if(from&&!already[from]){already[from]=true;var relative=_this2.relative(from);_this2.map.setSourceContent(relative,node.source.input.css);}}});};_proto.applyPrevMaps=function applyPrevMaps(){for(var _iterator=this.previous(),_isArray=Array.isArray(_iterator),_i=0,_iterator=_isArray?_iterator:_iterator[Symbol.iterator]();;){var _ref;if(_isArray){if(_i>=_iterator.length)break;_ref=_iterator[_i++];}else{_i=_iterator.next();if(_i.done)break;_ref=_i.value;}var prev=_ref;var from=this.relative(prev.file);var root=prev.root||_path["default"].dirname(prev.file);var map=void 0;if(this.mapOpts.sourcesContent===false){map=new _sourceMap["default"].SourceMapConsumer(prev.text);if(map.sourcesContent){map.sourcesContent=map.sourcesContent.map(function(){return null;});}}else{map=prev.consumer();}this.map.applySourceMap(map,from,this.relative(root));}};_proto.isAnnotation=function isAnnotation(){if(this.isInline()){return true;}if(typeof this.mapOpts.annotation!=='undefined'){return this.mapOpts.annotation;}if(this.previous().length){return this.previous().some(function(i){return i.annotation;});}return true;};_proto.toBase64=function toBase64(str){if(Buffer){return Buffer.from(str).toString('base64');}return window.btoa(unescape(encodeURIComponent(str)));};_proto.addAnnotation=function addAnnotation(){var content;if(this.isInline()){content='data:application/json;base64,'+this.toBase64(this.map.toString());}else if(typeof this.mapOpts.annotation==='string'){content=this.mapOpts.annotation;}else{content=this.outputFile()+'.map';}var eol='\n';if(this.css.indexOf('\r\n')!==-1)eol='\r\n';this.css+=eol+'/*# sourceMappingURL='+content+' */';};_proto.outputFile=function outputFile(){if(this.opts.to){return this.relative(this.opts.to);}if(this.opts.from){return this.relative(this.opts.from);}return'to.css';};_proto.generateMap=function generateMap(){this.generateString();if(this.isSourcesContent())this.setSourcesContent();if(this.previous().length>0)this.applyPrevMaps();if(this.isAnnotation())this.addAnnotation();if(this.isInline()){return[this.css];}return[this.css,this.map];};_proto.relative=function relative(file){if(file.indexOf('<')===0)return file;if(/^\w+:\/\//.test(file))return file;var from=this.opts.to?_path["default"].dirname(this.opts.to):'.';if(typeof this.mapOpts.annotation==='string'){from=_path["default"].dirname(_path["default"].resolve(from,this.mapOpts.annotation));}file=_path["default"].relative(from,file);if(_path["default"].sep==='\\'){return file.replace(/\\/g,'/');}return file;};_proto.sourcePath=function sourcePath(node){if(this.mapOpts.from){return this.mapOpts.from;}return this.relative(node.source.input.from);};_proto.generateString=function generateString(){var _this3=this;this.css='';this.map=new _sourceMap["default"].SourceMapGenerator({file:this.outputFile()});var line=1;var column=1;var lines,last;this.stringify(this.root,function(str,node,type){_this3.css+=str;if(node&&type!=='end'){if(node.source&&node.source.start){_this3.map.addMapping({source:_this3.sourcePath(node),generated:{line:line,column:column-1},original:{line:node.source.start.line,column:node.source.start.column-1}});}else{_this3.map.addMapping({source:'<no source>',original:{line:1,column:0},generated:{line:line,column:column-1}});}}lines=str.match(/\n/g);if(lines){line+=lines.length;last=str.lastIndexOf('\n');column=str.length-last;}else{column+=str.length;}if(node&&type!=='start'){var p=node.parent||{raws:{}};if(node.type!=='decl'||node!==p.last||p.raws.semicolon){if(node.source&&node.source.end){_this3.map.addMapping({source:_this3.sourcePath(node),generated:{line:line,column:column-2},original:{line:node.source.end.line,column:node.source.end.column-1}});}else{_this3.map.addMapping({source:'<no source>',original:{line:1,column:0},generated:{line:line,column:column-1}});}}}});};_proto.generate=function generate(){this.clearAnnotation();if(this.isMap()){return this.generateMap();}var result='';this.stringify(this.root,function(i){result+=i;});return[result];};return MapGenerator;}();var _default=MapGenerator;exports["default"]=_default;module.exports=exports["default"];}).call(this,require("buffer").Buffer);},{"buffer":3,"path":167,"source-map":207}],177:[function(require,module,exports){(function(process){"use strict";exports.__esModule=true;exports["default"]=void 0;var _cssSyntaxError=_interopRequireDefault(require("./css-syntax-error"));var _stringifier=_interopRequireDefault(require("./stringifier"));var _stringify=_interopRequireDefault(require("./stringify"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj};}function cloneNode(obj,parent){var cloned=new obj.constructor();for(var i in obj){if(!obj.hasOwnProperty(i))continue;var value=obj[i];var type=_typeof(value);if(i==='parent'&&type==='object'){if(parent)cloned[i]=parent;}else if(i==='source'){cloned[i]=value;}else if(value instanceof Array){cloned[i]=value.map(function(j){return cloneNode(j,cloned);});}else{if(type==='object'&&value!==null)value=cloneNode(value);cloned[i]=value;}}return cloned;}/**
|
|
3360
2630
|
* All node classes inherit the following common methods.
|
|
3361
2631
|
*
|
|
3362
2632
|
* @abstract
|
|
@@ -3651,10 +2921,10 @@ var substr='ab'.substr(-1)==='b'?function(str,start,len){return str.substr(start
|
|
|
3651
2921
|
* @property {Input} input {@link Input} with input file
|
|
3652
2922
|
* @property {position} start The starting position of the node’s source.
|
|
3653
2923
|
* @property {position} end The ending position of the node’s source.
|
|
3654
|
-
*/exports["default"]=_default;module.exports=exports["default"];}).call(this,require('_process'));},{"./css-syntax-error":
|
|
2924
|
+
*/exports["default"]=_default;module.exports=exports["default"];}).call(this,require('_process'));},{"./css-syntax-error":171,"./stringifier":186,"./stringify":187,"_process":192}],178:[function(require,module,exports){(function(process){"use strict";exports.__esModule=true;exports["default"]=void 0;var _parser=_interopRequireDefault(require("./parser"));var _input=_interopRequireDefault(require("./input"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj};}function parse(css,opts){var input=new _input["default"](css,opts);var parser=new _parser["default"](input);try{parser.parse();}catch(e){if(process.env.NODE_ENV!=='production'){if(e.name==='CssSyntaxError'&&opts&&opts.from){if(/\.scss$/i.test(opts.from)){e.message+='\nYou tried to parse SCSS with '+'the standard CSS parser; '+'try again with the postcss-scss parser';}else if(/\.sass/i.test(opts.from)){e.message+='\nYou tried to parse Sass with '+'the standard CSS parser; '+'try again with the postcss-sass parser';}else if(/\.less$/i.test(opts.from)){e.message+='\nYou tried to parse Less with '+'the standard CSS parser; '+'try again with the postcss-less parser';}}}throw e;}return parser.root;}var _default=parse;exports["default"]=_default;module.exports=exports["default"];}).call(this,require('_process'));},{"./input":173,"./parser":179,"_process":192}],179:[function(require,module,exports){"use strict";exports.__esModule=true;exports["default"]=void 0;var _declaration=_interopRequireDefault(require("./declaration"));var _tokenize=_interopRequireDefault(require("./tokenize"));var _comment=_interopRequireDefault(require("./comment"));var _atRule=_interopRequireDefault(require("./at-rule"));var _root=_interopRequireDefault(require("./root"));var _rule=_interopRequireDefault(require("./rule"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj};}var Parser=/*#__PURE__*/function(){function Parser(input){this.input=input;this.root=new _root["default"]();this.current=this.root;this.spaces='';this.semicolon=false;this.createTokenizer();this.root.source={input:input,start:{line:1,column:1}};}var _proto=Parser.prototype;_proto.createTokenizer=function createTokenizer(){this.tokenizer=(0,_tokenize["default"])(this.input);};_proto.parse=function parse(){var token;while(!this.tokenizer.endOfFile()){token=this.tokenizer.nextToken();switch(token[0]){case'space':this.spaces+=token[1];break;case';':this.freeSemicolon(token);break;case'}':this.end(token);break;case'comment':this.comment(token);break;case'at-word':this.atrule(token);break;case'{':this.emptyRule(token);break;default:this.other(token);break;}}this.endFile();};_proto.comment=function comment(token){var node=new _comment["default"]();this.init(node,token[2],token[3]);node.source.end={line:token[4],column:token[5]};var text=token[1].slice(2,-2);if(/^\s*$/.test(text)){node.text='';node.raws.left=text;node.raws.right='';}else{var match=text.match(/^(\s*)([^]*[^\s])(\s*)$/);node.text=match[2];node.raws.left=match[1];node.raws.right=match[3];}};_proto.emptyRule=function emptyRule(token){var node=new _rule["default"]();this.init(node,token[2],token[3]);node.selector='';node.raws.between='';this.current=node;};_proto.other=function other(start){var end=false;var type=null;var colon=false;var bracket=null;var brackets=[];var tokens=[];var token=start;while(token){type=token[0];tokens.push(token);if(type==='('||type==='['){if(!bracket)bracket=token;brackets.push(type==='('?')':']');}else if(brackets.length===0){if(type===';'){if(colon){this.decl(tokens);return;}else{break;}}else if(type==='{'){this.rule(tokens);return;}else if(type==='}'){this.tokenizer.back(tokens.pop());end=true;break;}else if(type===':'){colon=true;}}else if(type===brackets[brackets.length-1]){brackets.pop();if(brackets.length===0)bracket=null;}token=this.tokenizer.nextToken();}if(this.tokenizer.endOfFile())end=true;if(brackets.length>0)this.unclosedBracket(bracket);if(end&&colon){while(tokens.length){token=tokens[tokens.length-1][0];if(token!=='space'&&token!=='comment')break;this.tokenizer.back(tokens.pop());}this.decl(tokens);}else{this.unknownWord(tokens);}};_proto.rule=function rule(tokens){tokens.pop();var node=new _rule["default"]();this.init(node,tokens[0][2],tokens[0][3]);node.raws.between=this.spacesAndCommentsFromEnd(tokens);this.raw(node,'selector',tokens);this.current=node;};_proto.decl=function decl(tokens){var node=new _declaration["default"]();this.init(node);var last=tokens[tokens.length-1];if(last[0]===';'){this.semicolon=true;tokens.pop();}if(last[4]){node.source.end={line:last[4],column:last[5]};}else{node.source.end={line:last[2],column:last[3]};}while(tokens[0][0]!=='word'){if(tokens.length===1)this.unknownWord(tokens);node.raws.before+=tokens.shift()[1];}node.source.start={line:tokens[0][2],column:tokens[0][3]};node.prop='';while(tokens.length){var type=tokens[0][0];if(type===':'||type==='space'||type==='comment'){break;}node.prop+=tokens.shift()[1];}node.raws.between='';var token;while(tokens.length){token=tokens.shift();if(token[0]===':'){node.raws.between+=token[1];break;}else{if(token[0]==='word'&&/\w/.test(token[1])){this.unknownWord([token]);}node.raws.between+=token[1];}}if(node.prop[0]==='_'||node.prop[0]==='*'){node.raws.before+=node.prop[0];node.prop=node.prop.slice(1);}node.raws.between+=this.spacesAndCommentsFromStart(tokens);this.precheckMissedSemicolon(tokens);for(var i=tokens.length-1;i>0;i--){token=tokens[i];if(token[1].toLowerCase()==='!important'){node.important=true;var string=this.stringFrom(tokens,i);string=this.spacesFromEnd(tokens)+string;if(string!==' !important')node.raws.important=string;break;}else if(token[1].toLowerCase()==='important'){var cache=tokens.slice(0);var str='';for(var j=i;j>0;j--){var _type=cache[j][0];if(str.trim().indexOf('!')===0&&_type!=='space'){break;}str=cache.pop()[1]+str;}if(str.trim().indexOf('!')===0){node.important=true;node.raws.important=str;tokens=cache;}}if(token[0]!=='space'&&token[0]!=='comment'){break;}}this.raw(node,'value',tokens);if(node.value.indexOf(':')!==-1)this.checkMissedSemicolon(tokens);};_proto.atrule=function atrule(token){var node=new _atRule["default"]();node.name=token[1].slice(1);if(node.name===''){this.unnamedAtrule(node,token);}this.init(node,token[2],token[3]);var prev;var shift;var last=false;var open=false;var params=[];while(!this.tokenizer.endOfFile()){token=this.tokenizer.nextToken();if(token[0]===';'){node.source.end={line:token[2],column:token[3]};this.semicolon=true;break;}else if(token[0]==='{'){open=true;break;}else if(token[0]==='}'){if(params.length>0){shift=params.length-1;prev=params[shift];while(prev&&prev[0]==='space'){prev=params[--shift];}if(prev){node.source.end={line:prev[4],column:prev[5]};}}this.end(token);break;}else{params.push(token);}if(this.tokenizer.endOfFile()){last=true;break;}}node.raws.between=this.spacesAndCommentsFromEnd(params);if(params.length){node.raws.afterName=this.spacesAndCommentsFromStart(params);this.raw(node,'params',params);if(last){token=params[params.length-1];node.source.end={line:token[4],column:token[5]};this.spaces=node.raws.between;node.raws.between='';}}else{node.raws.afterName='';node.params='';}if(open){node.nodes=[];this.current=node;}};_proto.end=function end(token){if(this.current.nodes&&this.current.nodes.length){this.current.raws.semicolon=this.semicolon;}this.semicolon=false;this.current.raws.after=(this.current.raws.after||'')+this.spaces;this.spaces='';if(this.current.parent){this.current.source.end={line:token[2],column:token[3]};this.current=this.current.parent;}else{this.unexpectedClose(token);}};_proto.endFile=function endFile(){if(this.current.parent)this.unclosedBlock();if(this.current.nodes&&this.current.nodes.length){this.current.raws.semicolon=this.semicolon;}this.current.raws.after=(this.current.raws.after||'')+this.spaces;};_proto.freeSemicolon=function freeSemicolon(token){this.spaces+=token[1];if(this.current.nodes){var prev=this.current.nodes[this.current.nodes.length-1];if(prev&&prev.type==='rule'&&!prev.raws.ownSemicolon){prev.raws.ownSemicolon=this.spaces;this.spaces='';}}}// Helpers
|
|
3655
2925
|
;_proto.init=function init(node,line,column){this.current.push(node);node.source={start:{line:line,column:column},input:this.input};node.raws.before=this.spaces;this.spaces='';if(node.type!=='comment')this.semicolon=false;};_proto.raw=function raw(node,prop,tokens){var token,type;var length=tokens.length;var value='';var clean=true;var next,prev;var pattern=/^([.|#])?([\w])+/i;for(var i=0;i<length;i+=1){token=tokens[i];type=token[0];if(type==='comment'&&node.type==='rule'){prev=tokens[i-1];next=tokens[i+1];if(prev[0]!=='space'&&next[0]!=='space'&&pattern.test(prev[1])&&pattern.test(next[1])){value+=token[1];}else{clean=false;}continue;}if(type==='comment'||type==='space'&&i===length-1){clean=false;}else{value+=token[1];}}if(!clean){var raw=tokens.reduce(function(all,i){return all+i[1];},'');node.raws[prop]={value:value,raw:raw};}node[prop]=value;};_proto.spacesAndCommentsFromEnd=function spacesAndCommentsFromEnd(tokens){var lastTokenType;var spaces='';while(tokens.length){lastTokenType=tokens[tokens.length-1][0];if(lastTokenType!=='space'&&lastTokenType!=='comment')break;spaces=tokens.pop()[1]+spaces;}return spaces;};_proto.spacesAndCommentsFromStart=function spacesAndCommentsFromStart(tokens){var next;var spaces='';while(tokens.length){next=tokens[0][0];if(next!=='space'&&next!=='comment')break;spaces+=tokens.shift()[1];}return spaces;};_proto.spacesFromEnd=function spacesFromEnd(tokens){var lastTokenType;var spaces='';while(tokens.length){lastTokenType=tokens[tokens.length-1][0];if(lastTokenType!=='space')break;spaces=tokens.pop()[1]+spaces;}return spaces;};_proto.stringFrom=function stringFrom(tokens,from){var result='';for(var i=from;i<tokens.length;i++){result+=tokens[i][1];}tokens.splice(from,tokens.length-from);return result;};_proto.colon=function colon(tokens){var brackets=0;var token,type,prev;for(var i=0;i<tokens.length;i++){token=tokens[i];type=token[0];if(type==='('){brackets+=1;}if(type===')'){brackets-=1;}if(brackets===0&&type===':'){if(!prev){this.doubleColon(token);}else if(prev[0]==='word'&&prev[1]==='progid'){continue;}else{return i;}}prev=token;}return false;}// Errors
|
|
3656
2926
|
;_proto.unclosedBracket=function unclosedBracket(bracket){throw this.input.error('Unclosed bracket',bracket[2],bracket[3]);};_proto.unknownWord=function unknownWord(tokens){throw this.input.error('Unknown word',tokens[0][2],tokens[0][3]);};_proto.unexpectedClose=function unexpectedClose(token){throw this.input.error('Unexpected }',token[2],token[3]);};_proto.unclosedBlock=function unclosedBlock(){var pos=this.current.source.start;throw this.input.error('Unclosed block',pos.line,pos.column);};_proto.doubleColon=function doubleColon(token){throw this.input.error('Double colon',token[2],token[3]);};_proto.unnamedAtrule=function unnamedAtrule(node,token){throw this.input.error('At-rule without name',token[2],token[3]);};_proto.precheckMissedSemicolon=function precheckMissedSemicolon()/* tokens */{// Hook for Safe Parser
|
|
3657
|
-
};_proto.checkMissedSemicolon=function checkMissedSemicolon(tokens){var colon=this.colon(tokens);if(colon===false)return;var founded=0;var token;for(var j=colon-1;j>=0;j--){token=tokens[j];if(token[0]!=='space'){founded+=1;if(founded===2)break;}}throw this.input.error('Missed semicolon',token[2],token[3]);};return Parser;}();exports["default"]=Parser;module.exports=exports["default"];},{"./at-rule":
|
|
2927
|
+
};_proto.checkMissedSemicolon=function checkMissedSemicolon(tokens){var colon=this.colon(tokens);if(colon===false)return;var founded=0;var token;for(var j=colon-1;j>=0;j--){token=tokens[j];if(token[0]!=='space'){founded+=1;if(founded===2)break;}}throw this.input.error('Missed semicolon',token[2],token[3]);};return Parser;}();exports["default"]=Parser;module.exports=exports["default"];},{"./at-rule":168,"./comment":169,"./declaration":172,"./root":184,"./rule":185,"./tokenize":188}],180:[function(require,module,exports){"use strict";exports.__esModule=true;exports["default"]=void 0;var _declaration=_interopRequireDefault(require("./declaration"));var _processor=_interopRequireDefault(require("./processor"));var _stringify=_interopRequireDefault(require("./stringify"));var _comment=_interopRequireDefault(require("./comment"));var _atRule=_interopRequireDefault(require("./at-rule"));var _vendor=_interopRequireDefault(require("./vendor"));var _parse=_interopRequireDefault(require("./parse"));var _list=_interopRequireDefault(require("./list"));var _rule=_interopRequireDefault(require("./rule"));var _root=_interopRequireDefault(require("./root"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj};}/**
|
|
3658
2928
|
* Create a new {@link Processor} instance that will apply `plugins`
|
|
3659
2929
|
* as CSS processors.
|
|
3660
2930
|
*
|
|
@@ -3828,7 +3098,7 @@ var substr='ab'.substr(-1)==='b'?function(str,start,len){return str.substr(start
|
|
|
3828
3098
|
*
|
|
3829
3099
|
* @example
|
|
3830
3100
|
* postcss.root({ after: '\n' }).toString() //=> "\n"
|
|
3831
|
-
*/postcss.root=function(defaults){return new _root["default"](defaults);};var _default=postcss;exports["default"]=_default;module.exports=exports["default"];},{"./at-rule":
|
|
3101
|
+
*/postcss.root=function(defaults){return new _root["default"](defaults);};var _default=postcss;exports["default"]=_default;module.exports=exports["default"];},{"./at-rule":168,"./comment":169,"./declaration":172,"./list":175,"./parse":178,"./processor":182,"./root":184,"./rule":185,"./stringify":187,"./vendor":189}],181:[function(require,module,exports){(function(Buffer){"use strict";exports.__esModule=true;exports["default"]=void 0;var _sourceMap=_interopRequireDefault(require("source-map"));var _path=_interopRequireDefault(require("path"));var _fs=_interopRequireDefault(require("fs"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj};}function fromBase64(str){if(Buffer){return Buffer.from(str,'base64').toString();}else{return window.atob(str);}}/**
|
|
3832
3102
|
* Source map information from input CSS.
|
|
3833
3103
|
* For example, source map after Sass compiler.
|
|
3834
3104
|
*
|
|
@@ -3857,7 +3127,9 @@ var substr='ab'.substr(-1)==='b'?function(str,start,len){return str.substr(start
|
|
|
3857
3127
|
* Does source map contains `sourcesContent` with input source text.
|
|
3858
3128
|
*
|
|
3859
3129
|
* @return {boolean} Is `sourcesContent` present.
|
|
3860
|
-
*/;_proto.withContent=function withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0);};_proto.startWith=function startWith(string,start){if(!string)return false;return string.substr(0,start.length)===start;};_proto.
|
|
3130
|
+
*/;_proto.withContent=function withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0);};_proto.startWith=function startWith(string,start){if(!string)return false;return string.substr(0,start.length)===start;};_proto.getAnnotationURL=function getAnnotationURL(sourceMapString){return sourceMapString.match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//)[1].trim();};_proto.loadAnnotation=function loadAnnotation(css){var annotations=css.match(/\/\*\s*# sourceMappingURL=(.*)\s*\*\//mg);if(annotations&&annotations.length>0){// Locate the last sourceMappingURL to avoid picking up
|
|
3131
|
+
// sourceMappingURLs from comments, strings, etc.
|
|
3132
|
+
var lastAnnotation=annotations[annotations.length-1];if(lastAnnotation){this.annotation=this.getAnnotationURL(lastAnnotation);}}};_proto.decodeInline=function decodeInline(text){var baseCharsetUri=/^data:application\/json;charset=utf-?8;base64,/;var baseUri=/^data:application\/json;base64,/;var uri='data:application/json,';if(this.startWith(text,uri)){return decodeURIComponent(text.substr(uri.length));}if(baseCharsetUri.test(text)||baseUri.test(text)){return fromBase64(text.substr(RegExp.lastMatch.length));}var encoding=text.match(/data:application\/json;([^,]+),/)[1];throw new Error('Unsupported source map encoding '+encoding);};_proto.loadMap=function loadMap(file,prev){if(prev===false)return false;if(prev){if(typeof prev==='string'){return prev;}else if(typeof prev==='function'){var prevPath=prev(file);if(prevPath&&_fs["default"].existsSync&&_fs["default"].existsSync(prevPath)){return _fs["default"].readFileSync(prevPath,'utf-8').toString().trim();}else{throw new Error('Unable to load previous source map: '+prevPath.toString());}}else if(prev instanceof _sourceMap["default"].SourceMapConsumer){return _sourceMap["default"].SourceMapGenerator.fromSourceMap(prev).toString();}else if(prev instanceof _sourceMap["default"].SourceMapGenerator){return prev.toString();}else if(this.isMap(prev)){return JSON.stringify(prev);}else{throw new Error('Unsupported previous source map format: '+prev.toString());}}else if(this.inline){return this.decodeInline(this.annotation);}else if(this.annotation){var map=this.annotation;if(file)map=_path["default"].join(_path["default"].dirname(file),map);this.root=_path["default"].dirname(map);if(_fs["default"].existsSync&&_fs["default"].existsSync(map)){return _fs["default"].readFileSync(map,'utf-8').toString().trim();}else{return false;}}};_proto.isMap=function isMap(map){if(_typeof(map)!=='object')return false;return typeof map.mappings==='string'||typeof map._mappings==='string';};return PreviousMap;}();var _default=PreviousMap;exports["default"]=_default;module.exports=exports["default"];}).call(this,require("buffer").Buffer);},{"buffer":3,"fs":2,"path":167,"source-map":207}],182:[function(require,module,exports){(function(process){"use strict";exports.__esModule=true;exports["default"]=void 0;var _lazyResult=_interopRequireDefault(require("./lazy-result"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj};}/**
|
|
3861
3133
|
* Contains plugins to process CSS. Create one `Processor` instance,
|
|
3862
3134
|
* initialize its plugins, and then use that instance on numerous CSS files.
|
|
3863
3135
|
*
|
|
@@ -3877,7 +3149,7 @@ var substr='ab'.substr(-1)==='b'?function(str,start,len){return str.substr(start
|
|
|
3877
3149
|
* if (result.processor.version.split('.')[0] !== '6') {
|
|
3878
3150
|
* throw new Error('This plugin works only with PostCSS 6')
|
|
3879
3151
|
* }
|
|
3880
|
-
*/this.version='7.0.
|
|
3152
|
+
*/this.version='7.0.31';/**
|
|
3881
3153
|
* Plugins added to this processor.
|
|
3882
3154
|
*
|
|
3883
3155
|
* @type {pluginFunction[]}
|
|
@@ -4000,7 +3272,7 @@ var substr='ab'.substr(-1)==='b'?function(str,start,len){return str.substr(start
|
|
|
4000
3272
|
* annotation comment to map.
|
|
4001
3273
|
* @property {string} map.from Override `from` in map’s
|
|
4002
3274
|
* sources`.
|
|
4003
|
-
*/exports["default"]=_default;module.exports=exports["default"];}).call(this,require('_process'));},{"./lazy-result":
|
|
3275
|
+
*/exports["default"]=_default;module.exports=exports["default"];}).call(this,require('_process'));},{"./lazy-result":174,"_process":192}],183:[function(require,module,exports){"use strict";exports.__esModule=true;exports["default"]=void 0;var _warning=_interopRequireDefault(require("./warning"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj};}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);return Constructor;}/**
|
|
4004
3276
|
* Provides the result of the PostCSS transformations.
|
|
4005
3277
|
*
|
|
4006
3278
|
* A Result instance is returned by {@link LazyResult#then}
|
|
@@ -4125,7 +3397,7 @@ var substr='ab'.substr(-1)==='b'?function(str,start,len){return str.substr(start
|
|
|
4125
3397
|
* @typedef {object} Message
|
|
4126
3398
|
* @property {string} type Message type.
|
|
4127
3399
|
* @property {string} plugin Source PostCSS plugin name.
|
|
4128
|
-
*/exports["default"]=_default;module.exports=exports["default"];},{"./warning":
|
|
3400
|
+
*/exports["default"]=_default;module.exports=exports["default"];},{"./warning":191}],184:[function(require,module,exports){"use strict";exports.__esModule=true;exports["default"]=void 0;var _container=_interopRequireDefault(require("./container"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj};}function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype);subClass.prototype.constructor=subClass;subClass.__proto__=superClass;}/**
|
|
4129
3401
|
* Represents a CSS file and contains all its parsed nodes.
|
|
4130
3402
|
*
|
|
4131
3403
|
* @extends Container
|
|
@@ -4160,7 +3432,7 @@ var substr='ab'.substr(-1)==='b'?function(str,start,len){return str.substr(start
|
|
|
4160
3432
|
* @example
|
|
4161
3433
|
* postcss.parse('a {}\n').raws //=> { after: '\n' }
|
|
4162
3434
|
* postcss.parse('a {}').raws //=> { after: '' }
|
|
4163
|
-
*/;return Root;}(_container["default"]);var _default=Root;exports["default"]=_default;module.exports=exports["default"];},{"./container":
|
|
3435
|
+
*/;return Root;}(_container["default"]);var _default=Root;exports["default"]=_default;module.exports=exports["default"];},{"./container":170,"./lazy-result":174,"./processor":182}],185:[function(require,module,exports){"use strict";exports.__esModule=true;exports["default"]=void 0;var _container=_interopRequireDefault(require("./container"));var _list=_interopRequireDefault(require("./list"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj};}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);return Constructor;}function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype);subClass.prototype.constructor=subClass;subClass.__proto__=superClass;}/**
|
|
4164
3436
|
* Represents a CSS rule: a selector followed by a declaration block.
|
|
4165
3437
|
*
|
|
4166
3438
|
* @extends Container
|
|
@@ -4221,11 +3493,11 @@ var substr='ab'.substr(-1)==='b'?function(str,start,len){return str.substr(start
|
|
|
4221
3493
|
* @example
|
|
4222
3494
|
* const root = postcss.parse('a {\n color:black\n}')
|
|
4223
3495
|
* root.first.first.raws //=> { before: '', between: ' ', after: '\n' }
|
|
4224
|
-
*/}]);return Rule;}(_container["default"]);var _default=Rule;exports["default"]=_default;module.exports=exports["default"];},{"./container":
|
|
3496
|
+
*/}]);return Rule;}(_container["default"]);var _default=Rule;exports["default"]=_default;module.exports=exports["default"];},{"./container":170,"./list":175}],186:[function(require,module,exports){"use strict";exports.__esModule=true;exports["default"]=void 0;var DEFAULT_RAW={colon:': ',indent:' ',beforeDecl:'\n',beforeRule:'\n',beforeOpen:' ',beforeClose:'\n',beforeComment:'\n',after:'\n',emptyBody:'',commentLeft:' ',commentRight:' ',semicolon:false};function capitalize(str){return str[0].toUpperCase()+str.slice(1);}var Stringifier=/*#__PURE__*/function(){function Stringifier(builder){this.builder=builder;}var _proto=Stringifier.prototype;_proto.stringify=function stringify(node,semicolon){this[node.type](node,semicolon);};_proto.root=function root(node){this.body(node);if(node.raws.after)this.builder(node.raws.after);};_proto.comment=function comment(node){var left=this.raw(node,'left','commentLeft');var right=this.raw(node,'right','commentRight');this.builder('/*'+left+node.text+right+'*/',node);};_proto.decl=function decl(node,semicolon){var between=this.raw(node,'between','colon');var string=node.prop+between+this.rawValue(node,'value');if(node.important){string+=node.raws.important||' !important';}if(semicolon)string+=';';this.builder(string,node);};_proto.rule=function rule(node){this.block(node,this.rawValue(node,'selector'));if(node.raws.ownSemicolon){this.builder(node.raws.ownSemicolon,node,'end');}};_proto.atrule=function atrule(node,semicolon){var name='@'+node.name;var params=node.params?this.rawValue(node,'params'):'';if(typeof node.raws.afterName!=='undefined'){name+=node.raws.afterName;}else if(params){name+=' ';}if(node.nodes){this.block(node,name+params);}else{var end=(node.raws.between||'')+(semicolon?';':'');this.builder(name+params+end,node);}};_proto.body=function body(node){var last=node.nodes.length-1;while(last>0){if(node.nodes[last].type!=='comment')break;last-=1;}var semicolon=this.raw(node,'semicolon');for(var i=0;i<node.nodes.length;i++){var child=node.nodes[i];var before=this.raw(child,'before');if(before)this.builder(before);this.stringify(child,last!==i||semicolon);}};_proto.block=function block(node,start){var between=this.raw(node,'between','beforeOpen');this.builder(start+between+'{',node,'start');var after;if(node.nodes&&node.nodes.length){this.body(node);after=this.raw(node,'after');}else{after=this.raw(node,'after','emptyBody');}if(after)this.builder(after);this.builder('}',node,'end');};_proto.raw=function raw(node,own,detect){var value;if(!detect)detect=own;// Already had
|
|
4225
3497
|
if(own){value=node.raws[own];if(typeof value!=='undefined')return value;}var parent=node.parent;// Hack for first rule in CSS
|
|
4226
3498
|
if(detect==='before'){if(!parent||parent.type==='root'&&parent.first===node){return'';}}// Floating child without parent
|
|
4227
3499
|
if(!parent)return DEFAULT_RAW[detect];// Detect style by other nodes
|
|
4228
|
-
var root=node.root();if(!root.rawCache)root.rawCache={};if(typeof root.rawCache[detect]!=='undefined'){return root.rawCache[detect];}if(detect==='before'||detect==='after'){return this.beforeAfter(node,detect);}else{var method='raw'+capitalize(detect);if(this[method]){value=this[method](root,node);}else{root.walk(function(i){value=i.raws[own];if(typeof value!=='undefined')return false;});}}if(typeof value==='undefined')value=DEFAULT_RAW[detect];root.rawCache[detect]=value;return value;};_proto.rawSemicolon=function rawSemicolon(root){var value;root.walk(function(i){if(i.nodes&&i.nodes.length&&i.last.type==='decl'){value=i.raws.semicolon;if(typeof value!=='undefined')return false;}});return value;};_proto.rawEmptyBody=function rawEmptyBody(root){var value;root.walk(function(i){if(i.nodes&&i.nodes.length===0){value=i.raws.after;if(typeof value!=='undefined')return false;}});return value;};_proto.rawIndent=function rawIndent(root){if(root.raws.indent)return root.raws.indent;var value;root.walk(function(i){var p=i.parent;if(p&&p!==root&&p.parent&&p.parent===root){if(typeof i.raws.before!=='undefined'){var parts=i.raws.before.split('\n');value=parts[parts.length-1];value=value.replace(/[^\s]/g,'');return false;}}});return value;};_proto.rawBeforeComment=function rawBeforeComment(root,node){var value;root.walkComments(function(i){if(typeof i.raws.before!=='undefined'){value=i.raws.before;if(value.indexOf('\n')!==-1){value=value.replace(/[^\n]+$/,'');}return false;}});if(typeof value==='undefined'){value=this.raw(node,null,'beforeDecl');}else if(value){value=value.replace(/[^\s]/g,'');}return value;};_proto.rawBeforeDecl=function rawBeforeDecl(root,node){var value;root.walkDecls(function(i){if(typeof i.raws.before!=='undefined'){value=i.raws.before;if(value.indexOf('\n')!==-1){value=value.replace(/[^\n]+$/,'');}return false;}});if(typeof value==='undefined'){value=this.raw(node,null,'beforeRule');}else if(value){value=value.replace(/[^\s]/g,'');}return value;};_proto.rawBeforeRule=function rawBeforeRule(root){var value;root.walk(function(i){if(i.nodes&&(i.parent!==root||root.first!==i)){if(typeof i.raws.before!=='undefined'){value=i.raws.before;if(value.indexOf('\n')!==-1){value=value.replace(/[^\n]+$/,'');}return false;}}});if(value)value=value.replace(/[^\s]/g,'');return value;};_proto.rawBeforeClose=function rawBeforeClose(root){var value;root.walk(function(i){if(i.nodes&&i.nodes.length>0){if(typeof i.raws.after!=='undefined'){value=i.raws.after;if(value.indexOf('\n')!==-1){value=value.replace(/[^\n]+$/,'');}return false;}}});if(value)value=value.replace(/[^\s]/g,'');return value;};_proto.rawBeforeOpen=function rawBeforeOpen(root){var value;root.walk(function(i){if(i.type!=='decl'){value=i.raws.between;if(typeof value!=='undefined')return false;}});return value;};_proto.rawColon=function rawColon(root){var value;root.walkDecls(function(i){if(typeof i.raws.between!=='undefined'){value=i.raws.between.replace(/[^\s:]/g,'');return false;}});return value;};_proto.beforeAfter=function beforeAfter(node,detect){var value;if(node.type==='decl'){value=this.raw(node,null,'beforeDecl');}else if(node.type==='comment'){value=this.raw(node,null,'beforeComment');}else if(detect==='before'){value=this.raw(node,null,'beforeRule');}else{value=this.raw(node,null,'beforeClose');}var buf=node.parent;var depth=0;while(buf&&buf.type!=='root'){depth+=1;buf=buf.parent;}if(value.indexOf('\n')!==-1){var indent=this.raw(node,null,'indent');if(indent.length){for(var step=0;step<depth;step++){value+=indent;}}}return value;};_proto.rawValue=function rawValue(node,prop){var value=node[prop];var raw=node.raws[prop];if(raw&&raw.value===value){return raw.raw;}return value;};return Stringifier;}();var _default=Stringifier;exports["default"]=_default;module.exports=exports["default"];},{}],
|
|
3500
|
+
var root=node.root();if(!root.rawCache)root.rawCache={};if(typeof root.rawCache[detect]!=='undefined'){return root.rawCache[detect];}if(detect==='before'||detect==='after'){return this.beforeAfter(node,detect);}else{var method='raw'+capitalize(detect);if(this[method]){value=this[method](root,node);}else{root.walk(function(i){value=i.raws[own];if(typeof value!=='undefined')return false;});}}if(typeof value==='undefined')value=DEFAULT_RAW[detect];root.rawCache[detect]=value;return value;};_proto.rawSemicolon=function rawSemicolon(root){var value;root.walk(function(i){if(i.nodes&&i.nodes.length&&i.last.type==='decl'){value=i.raws.semicolon;if(typeof value!=='undefined')return false;}});return value;};_proto.rawEmptyBody=function rawEmptyBody(root){var value;root.walk(function(i){if(i.nodes&&i.nodes.length===0){value=i.raws.after;if(typeof value!=='undefined')return false;}});return value;};_proto.rawIndent=function rawIndent(root){if(root.raws.indent)return root.raws.indent;var value;root.walk(function(i){var p=i.parent;if(p&&p!==root&&p.parent&&p.parent===root){if(typeof i.raws.before!=='undefined'){var parts=i.raws.before.split('\n');value=parts[parts.length-1];value=value.replace(/[^\s]/g,'');return false;}}});return value;};_proto.rawBeforeComment=function rawBeforeComment(root,node){var value;root.walkComments(function(i){if(typeof i.raws.before!=='undefined'){value=i.raws.before;if(value.indexOf('\n')!==-1){value=value.replace(/[^\n]+$/,'');}return false;}});if(typeof value==='undefined'){value=this.raw(node,null,'beforeDecl');}else if(value){value=value.replace(/[^\s]/g,'');}return value;};_proto.rawBeforeDecl=function rawBeforeDecl(root,node){var value;root.walkDecls(function(i){if(typeof i.raws.before!=='undefined'){value=i.raws.before;if(value.indexOf('\n')!==-1){value=value.replace(/[^\n]+$/,'');}return false;}});if(typeof value==='undefined'){value=this.raw(node,null,'beforeRule');}else if(value){value=value.replace(/[^\s]/g,'');}return value;};_proto.rawBeforeRule=function rawBeforeRule(root){var value;root.walk(function(i){if(i.nodes&&(i.parent!==root||root.first!==i)){if(typeof i.raws.before!=='undefined'){value=i.raws.before;if(value.indexOf('\n')!==-1){value=value.replace(/[^\n]+$/,'');}return false;}}});if(value)value=value.replace(/[^\s]/g,'');return value;};_proto.rawBeforeClose=function rawBeforeClose(root){var value;root.walk(function(i){if(i.nodes&&i.nodes.length>0){if(typeof i.raws.after!=='undefined'){value=i.raws.after;if(value.indexOf('\n')!==-1){value=value.replace(/[^\n]+$/,'');}return false;}}});if(value)value=value.replace(/[^\s]/g,'');return value;};_proto.rawBeforeOpen=function rawBeforeOpen(root){var value;root.walk(function(i){if(i.type!=='decl'){value=i.raws.between;if(typeof value!=='undefined')return false;}});return value;};_proto.rawColon=function rawColon(root){var value;root.walkDecls(function(i){if(typeof i.raws.between!=='undefined'){value=i.raws.between.replace(/[^\s:]/g,'');return false;}});return value;};_proto.beforeAfter=function beforeAfter(node,detect){var value;if(node.type==='decl'){value=this.raw(node,null,'beforeDecl');}else if(node.type==='comment'){value=this.raw(node,null,'beforeComment');}else if(detect==='before'){value=this.raw(node,null,'beforeRule');}else{value=this.raw(node,null,'beforeClose');}var buf=node.parent;var depth=0;while(buf&&buf.type!=='root'){depth+=1;buf=buf.parent;}if(value.indexOf('\n')!==-1){var indent=this.raw(node,null,'indent');if(indent.length){for(var step=0;step<depth;step++){value+=indent;}}}return value;};_proto.rawValue=function rawValue(node,prop){var value=node[prop];var raw=node.raws[prop];if(raw&&raw.value===value){return raw.raw;}return value;};return Stringifier;}();var _default=Stringifier;exports["default"]=_default;module.exports=exports["default"];},{}],187:[function(require,module,exports){"use strict";exports.__esModule=true;exports["default"]=void 0;var _stringifier=_interopRequireDefault(require("./stringifier"));function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj};}function stringify(node,builder){var str=new _stringifier["default"](builder);str.stringify(node);}var _default=stringify;exports["default"]=_default;module.exports=exports["default"];},{"./stringifier":186}],188:[function(require,module,exports){"use strict";exports.__esModule=true;exports["default"]=tokenizer;var SINGLE_QUOTE='\''.charCodeAt(0);var DOUBLE_QUOTE='"'.charCodeAt(0);var BACKSLASH='\\'.charCodeAt(0);var SLASH='/'.charCodeAt(0);var NEWLINE='\n'.charCodeAt(0);var SPACE=' '.charCodeAt(0);var FEED='\f'.charCodeAt(0);var TAB='\t'.charCodeAt(0);var CR='\r'.charCodeAt(0);var OPEN_SQUARE='['.charCodeAt(0);var CLOSE_SQUARE=']'.charCodeAt(0);var OPEN_PARENTHESES='('.charCodeAt(0);var CLOSE_PARENTHESES=')'.charCodeAt(0);var OPEN_CURLY='{'.charCodeAt(0);var CLOSE_CURLY='}'.charCodeAt(0);var SEMICOLON=';'.charCodeAt(0);var ASTERISK='*'.charCodeAt(0);var COLON=':'.charCodeAt(0);var AT='@'.charCodeAt(0);var RE_AT_END=/[ \n\t\r\f{}()'"\\;/[\]#]/g;var RE_WORD_END=/[ \n\t\r\f(){}:;@!'"\\\][#]|\/(?=\*)/g;var RE_BAD_BRACKET=/.[\\/("'\n]/;var RE_HEX_ESCAPE=/[a-f0-9]/i;function tokenizer(input,options){if(options===void 0){options={};}var css=input.css.valueOf();var ignore=options.ignoreErrors;var code,next,quote,lines,last,content,escape;var nextLine,nextOffset,escaped,escapePos,prev,n,currentToken;var length=css.length;var offset=-1;var line=1;var pos=0;var buffer=[];var returned=[];function position(){return pos;}function unclosed(what){throw input.error('Unclosed '+what,line,pos-offset);}function endOfFile(){return returned.length===0&&pos>=length;}function nextToken(opts){if(returned.length)return returned.pop();if(pos>=length)return;var ignoreUnclosed=opts?opts.ignoreUnclosed:false;code=css.charCodeAt(pos);if(code===NEWLINE||code===FEED||code===CR&&css.charCodeAt(pos+1)!==NEWLINE){offset=pos;line+=1;}switch(code){case NEWLINE:case SPACE:case TAB:case CR:case FEED:next=pos;do{next+=1;code=css.charCodeAt(next);if(code===NEWLINE){offset=next;line+=1;}}while(code===SPACE||code===NEWLINE||code===TAB||code===CR||code===FEED);currentToken=['space',css.slice(pos,next)];pos=next-1;break;case OPEN_SQUARE:case CLOSE_SQUARE:case OPEN_CURLY:case CLOSE_CURLY:case COLON:case SEMICOLON:case CLOSE_PARENTHESES:var controlChar=String.fromCharCode(code);currentToken=[controlChar,controlChar,line,pos-offset];break;case OPEN_PARENTHESES:prev=buffer.length?buffer.pop()[1]:'';n=css.charCodeAt(pos+1);if(prev==='url'&&n!==SINGLE_QUOTE&&n!==DOUBLE_QUOTE&&n!==SPACE&&n!==NEWLINE&&n!==TAB&&n!==FEED&&n!==CR){next=pos;do{escaped=false;next=css.indexOf(')',next+1);if(next===-1){if(ignore||ignoreUnclosed){next=pos;break;}else{unclosed('bracket');}}escapePos=next;while(css.charCodeAt(escapePos-1)===BACKSLASH){escapePos-=1;escaped=!escaped;}}while(escaped);currentToken=['brackets',css.slice(pos,next+1),line,pos-offset,line,next-offset];pos=next;}else{next=css.indexOf(')',pos+1);content=css.slice(pos,next+1);if(next===-1||RE_BAD_BRACKET.test(content)){currentToken=['(','(',line,pos-offset];}else{currentToken=['brackets',content,line,pos-offset,line,next-offset];pos=next;}}break;case SINGLE_QUOTE:case DOUBLE_QUOTE:quote=code===SINGLE_QUOTE?'\'':'"';next=pos;do{escaped=false;next=css.indexOf(quote,next+1);if(next===-1){if(ignore||ignoreUnclosed){next=pos+1;break;}else{unclosed('string');}}escapePos=next;while(css.charCodeAt(escapePos-1)===BACKSLASH){escapePos-=1;escaped=!escaped;}}while(escaped);content=css.slice(pos,next+1);lines=content.split('\n');last=lines.length-1;if(last>0){nextLine=line+last;nextOffset=next-lines[last].length;}else{nextLine=line;nextOffset=offset;}currentToken=['string',css.slice(pos,next+1),line,pos-offset,nextLine,next-nextOffset];offset=nextOffset;line=nextLine;pos=next;break;case AT:RE_AT_END.lastIndex=pos+1;RE_AT_END.test(css);if(RE_AT_END.lastIndex===0){next=css.length-1;}else{next=RE_AT_END.lastIndex-2;}currentToken=['at-word',css.slice(pos,next+1),line,pos-offset,line,next-offset];pos=next;break;case BACKSLASH:next=pos;escape=true;while(css.charCodeAt(next+1)===BACKSLASH){next+=1;escape=!escape;}code=css.charCodeAt(next+1);if(escape&&code!==SLASH&&code!==SPACE&&code!==NEWLINE&&code!==TAB&&code!==CR&&code!==FEED){next+=1;if(RE_HEX_ESCAPE.test(css.charAt(next))){while(RE_HEX_ESCAPE.test(css.charAt(next+1))){next+=1;}if(css.charCodeAt(next+1)===SPACE){next+=1;}}}currentToken=['word',css.slice(pos,next+1),line,pos-offset,line,next-offset];pos=next;break;default:if(code===SLASH&&css.charCodeAt(pos+1)===ASTERISK){next=css.indexOf('*/',pos+2)+1;if(next===0){if(ignore||ignoreUnclosed){next=css.length;}else{unclosed('comment');}}content=css.slice(pos,next+1);lines=content.split('\n');last=lines.length-1;if(last>0){nextLine=line+last;nextOffset=next-lines[last].length;}else{nextLine=line;nextOffset=offset;}currentToken=['comment',content,line,pos-offset,nextLine,next-nextOffset];offset=nextOffset;line=nextLine;pos=next;}else{RE_WORD_END.lastIndex=pos+1;RE_WORD_END.test(css);if(RE_WORD_END.lastIndex===0){next=css.length-1;}else{next=RE_WORD_END.lastIndex-2;}currentToken=['word',css.slice(pos,next+1),line,pos-offset,line,next-offset];buffer.push(currentToken);pos=next;}break;}pos++;return currentToken;}function back(token){returned.push(token);}return{back:back,nextToken:nextToken,endOfFile:endOfFile,position:position};}module.exports=exports["default"];},{}],189:[function(require,module,exports){"use strict";exports.__esModule=true;exports["default"]=void 0;/**
|
|
4229
3501
|
* Contains helpers for working with vendor prefixes.
|
|
4230
3502
|
*
|
|
4231
3503
|
* @example
|
|
@@ -4251,7 +3523,7 @@ var root=node.root();if(!root.rawCache)root.rawCache={};if(typeof root.rawCache[
|
|
|
4251
3523
|
*
|
|
4252
3524
|
* @example
|
|
4253
3525
|
* postcss.vendor.unprefixed('-moz-tab-size') //=> 'tab-size'
|
|
4254
|
-
*/unprefixed:function unprefixed(prop){return prop.replace(/^-\w+-/,'');}};var _default=vendor;exports["default"]=_default;module.exports=exports["default"];},{}],
|
|
3526
|
+
*/unprefixed:function unprefixed(prop){return prop.replace(/^-\w+-/,'');}};var _default=vendor;exports["default"]=_default;module.exports=exports["default"];},{}],190:[function(require,module,exports){"use strict";exports.__esModule=true;exports["default"]=warnOnce;var printed={};function warnOnce(message){if(printed[message])return;printed[message]=true;if(typeof console!=='undefined'&&console.warn){console.warn(message);}}module.exports=exports["default"];},{}],191:[function(require,module,exports){"use strict";exports.__esModule=true;exports["default"]=void 0;/**
|
|
4255
3527
|
* Represents a plugin’s warning. It can be created using {@link Node#warn}.
|
|
4256
3528
|
*
|
|
4257
3529
|
* @example
|
|
@@ -4317,7 +3589,7 @@ var root=node.root();if(!root.rawCache)root.rawCache={};if(typeof root.rawCache[
|
|
|
4317
3589
|
*
|
|
4318
3590
|
* @example
|
|
4319
3591
|
* warning.node.toString() //=> 'color: white !important'
|
|
4320
|
-
*/;return Warning;}();var _default=Warning;exports["default"]=_default;module.exports=exports["default"];},{}],
|
|
3592
|
+
*/;return Warning;}();var _default=Warning;exports["default"]=_default;module.exports=exports["default"];},{}],192:[function(require,module,exports){// shim for using process in browser
|
|
4321
3593
|
var process=module.exports={};// cached from whatever global is present so that test runners that stub it
|
|
4322
3594
|
// don't break things. But we need to wrap it in a try catch in case it is
|
|
4323
3595
|
// wrapped in strict mode code which doesn't define any globals. It's inside a
|
|
@@ -4335,7 +3607,7 @@ return cachedClearTimeout.call(null,marker);}catch(e){// same as above but when
|
|
|
4335
3607
|
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
|
|
4336
3608
|
return cachedClearTimeout.call(this,marker);}}}var queue=[];var draining=false;var currentQueue;var queueIndex=-1;function cleanUpNextTick(){if(!draining||!currentQueue){return;}draining=false;if(currentQueue.length){queue=currentQueue.concat(queue);}else{queueIndex=-1;}if(queue.length){drainQueue();}}function drainQueue(){if(draining){return;}var timeout=runTimeout(cleanUpNextTick);draining=true;var len=queue.length;while(len){currentQueue=queue;queue=[];while(++queueIndex<len){if(currentQueue){currentQueue[queueIndex].run();}}queueIndex=-1;len=queue.length;}currentQueue=null;draining=false;runClearTimeout(timeout);}process.nextTick=function(fun){var args=new Array(arguments.length-1);if(arguments.length>1){for(var i=1;i<arguments.length;i++){args[i-1]=arguments[i];}}queue.push(new Item(fun,args));if(queue.length===1&&!draining){runTimeout(drainQueue);}};// v8 likes predictible objects
|
|
4337
3609
|
function Item(fun,array){this.fun=fun;this.array=array;}Item.prototype.run=function(){this.fun.apply(null,this.array);};process.title='browser';process.browser=true;process.env={};process.argv=[];process.version='';// empty string to avoid regexp issues
|
|
4338
|
-
process.versions={};function noop(){}process.on=noop;process.addListener=noop;process.once=noop;process.off=noop;process.removeListener=noop;process.removeAllListeners=noop;process.emit=noop;process.prependListener=noop;process.prependOnceListener=noop;process.listeners=function(name){return[];};process.binding=function(name){throw new Error('process.binding is not supported');};process.cwd=function(){return'/';};process.chdir=function(dir){throw new Error('process.chdir is not supported');};process.umask=function(){return 0;};},{}],
|
|
3610
|
+
process.versions={};function noop(){}process.on=noop;process.addListener=noop;process.once=noop;process.off=noop;process.removeListener=noop;process.removeAllListeners=noop;process.emit=noop;process.prependListener=noop;process.prependOnceListener=noop;process.listeners=function(name){return[];};process.binding=function(name){throw new Error('process.binding is not supported');};process.cwd=function(){return'/';};process.chdir=function(dir){throw new Error('process.chdir is not supported');};process.umask=function(){return 0;};},{}],193:[function(require,module,exports){(function(global){/*! https://mths.be/punycode v1.4.1 by @mathias */;(function(root){/** Detect free variables */var freeExports=_typeof(exports)=='object'&&exports&&!exports.nodeType&&exports;var freeModule=_typeof(module)=='object'&&module&&!module.nodeType&&module;var freeGlobal=_typeof(global)=='object'&&global;if(freeGlobal.global===freeGlobal||freeGlobal.window===freeGlobal||freeGlobal.self===freeGlobal){root=freeGlobal;}/**
|
|
4339
3611
|
* The `punycode` object.
|
|
4340
3612
|
* @name punycode
|
|
4341
3613
|
* @type Object
|
|
@@ -4490,7 +3762,7 @@ for(q=delta,k=base;;/* no condition */k+=base){t=k<=bias?tMin:k>=bias+tMax?tMax:
|
|
|
4490
3762
|
if(typeof define=='function'&&_typeof(define.amd)=='object'&&define.amd){define('punycode',function(){return punycode;});}else if(freeExports&&freeModule){if(module.exports==freeExports){// in Node.js, io.js, or RingoJS v0.8.0+
|
|
4491
3763
|
freeModule.exports=punycode;}else{// in Narwhal or RingoJS v0.7.0-
|
|
4492
3764
|
for(key in punycode){punycode.hasOwnProperty(key)&&(freeExports[key]=punycode[key]);}}}else{// in Rhino or a web browser
|
|
4493
|
-
root.punycode=punycode;}})(this);}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{});},{}],
|
|
3765
|
+
root.punycode=punycode;}})(this);}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{});},{}],194:[function(require,module,exports){// Copyright Joyent, Inc. and other Node contributors.
|
|
4494
3766
|
//
|
|
4495
3767
|
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
4496
3768
|
// copy of this software and associated documentation files (the
|
|
@@ -4514,7 +3786,7 @@ root.punycode=punycode;}})(this);}).call(this,typeof global!=="undefined"?global
|
|
|
4514
3786
|
// obj.hasOwnProperty(prop) will break.
|
|
4515
3787
|
// See: https://github.com/joyent/node/issues/1707
|
|
4516
3788
|
function hasOwnProperty(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop);}module.exports=function(qs,sep,eq,options){sep=sep||'&';eq=eq||'=';var obj={};if(typeof qs!=='string'||qs.length===0){return obj;}var regexp=/\+/g;qs=qs.split(sep);var maxKeys=1000;if(options&&typeof options.maxKeys==='number'){maxKeys=options.maxKeys;}var len=qs.length;// maxKeys <= 0 means that we should not limit keys count
|
|
4517
|
-
if(maxKeys>0&&len>maxKeys){len=maxKeys;}for(var i=0;i<len;++i){var x=qs[i].replace(regexp,'%20'),idx=x.indexOf(eq),kstr,vstr,k,v;if(idx>=0){kstr=x.substr(0,idx);vstr=x.substr(idx+1);}else{kstr=x;vstr='';}k=decodeURIComponent(kstr);v=decodeURIComponent(vstr);if(!hasOwnProperty(obj,k)){obj[k]=v;}else if(isArray(obj[k])){obj[k].push(v);}else{obj[k]=[obj[k],v];}}return obj;};var isArray=Array.isArray||function(xs){return Object.prototype.toString.call(xs)==='[object Array]';};},{}],
|
|
3789
|
+
if(maxKeys>0&&len>maxKeys){len=maxKeys;}for(var i=0;i<len;++i){var x=qs[i].replace(regexp,'%20'),idx=x.indexOf(eq),kstr,vstr,k,v;if(idx>=0){kstr=x.substr(0,idx);vstr=x.substr(idx+1);}else{kstr=x;vstr='';}k=decodeURIComponent(kstr);v=decodeURIComponent(vstr);if(!hasOwnProperty(obj,k)){obj[k]=v;}else if(isArray(obj[k])){obj[k].push(v);}else{obj[k]=[obj[k],v];}}return obj;};var isArray=Array.isArray||function(xs){return Object.prototype.toString.call(xs)==='[object Array]';};},{}],195:[function(require,module,exports){// Copyright Joyent, Inc. and other Node contributors.
|
|
4518
3790
|
//
|
|
4519
3791
|
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
4520
3792
|
// copy of this software and associated documentation files (the
|
|
@@ -4534,7 +3806,7 @@ if(maxKeys>0&&len>maxKeys){len=maxKeys;}for(var i=0;i<len;++i){var x=qs[i].repla
|
|
|
4534
3806
|
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
4535
3807
|
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
4536
3808
|
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
4537
|
-
'use strict';var stringifyPrimitive=function stringifyPrimitive(v){switch(_typeof(v)){case'string':return v;case'boolean':return v?'true':'false';case'number':return isFinite(v)?v:'';default:return'';}};module.exports=function(obj,sep,eq,name){sep=sep||'&';eq=eq||'=';if(obj===null){obj=undefined;}if(_typeof(obj)==='object'){return map(objectKeys(obj),function(k){var ks=encodeURIComponent(stringifyPrimitive(k))+eq;if(isArray(obj[k])){return map(obj[k],function(v){return ks+encodeURIComponent(stringifyPrimitive(v));}).join(sep);}else{return ks+encodeURIComponent(stringifyPrimitive(obj[k]));}}).join(sep);}if(!name)return'';return encodeURIComponent(stringifyPrimitive(name))+eq+encodeURIComponent(stringifyPrimitive(obj));};var isArray=Array.isArray||function(xs){return Object.prototype.toString.call(xs)==='[object Array]';};function map(xs,f){if(xs.map)return xs.map(f);var res=[];for(var i=0;i<xs.length;i++){res.push(f(xs[i],i));}return res;}var objectKeys=Object.keys||function(obj){var res=[];for(var key in obj){if(Object.prototype.hasOwnProperty.call(obj,key))res.push(key);}return res;};},{}],
|
|
3809
|
+
'use strict';var stringifyPrimitive=function stringifyPrimitive(v){switch(_typeof(v)){case'string':return v;case'boolean':return v?'true':'false';case'number':return isFinite(v)?v:'';default:return'';}};module.exports=function(obj,sep,eq,name){sep=sep||'&';eq=eq||'=';if(obj===null){obj=undefined;}if(_typeof(obj)==='object'){return map(objectKeys(obj),function(k){var ks=encodeURIComponent(stringifyPrimitive(k))+eq;if(isArray(obj[k])){return map(obj[k],function(v){return ks+encodeURIComponent(stringifyPrimitive(v));}).join(sep);}else{return ks+encodeURIComponent(stringifyPrimitive(obj[k]));}}).join(sep);}if(!name)return'';return encodeURIComponent(stringifyPrimitive(name))+eq+encodeURIComponent(stringifyPrimitive(obj));};var isArray=Array.isArray||function(xs){return Object.prototype.toString.call(xs)==='[object Array]';};function map(xs,f){if(xs.map)return xs.map(f);var res=[];for(var i=0;i<xs.length;i++){res.push(f(xs[i],i));}return res;}var objectKeys=Object.keys||function(obj){var res=[];for(var key in obj){if(Object.prototype.hasOwnProperty.call(obj,key))res.push(key);}return res;};},{}],196:[function(require,module,exports){'use strict';exports.decode=exports.parse=require('./decode');exports.encode=exports.stringify=require('./encode');},{"./decode":194,"./encode":195}],197:[function(require,module,exports){/* -*- Mode: js; js-indent-level: 2; -*- */ /*
|
|
4538
3810
|
* Copyright 2011 Mozilla Foundation and contributors
|
|
4539
3811
|
* Licensed under the New BSD license. See LICENSE or:
|
|
4540
3812
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
@@ -4570,7 +3842,7 @@ if(maxKeys>0&&len>maxKeys){len=maxKeys;}for(var i=0;i<len;++i){var x=qs[i].repla
|
|
|
4570
3842
|
* Returns the array representation of this set (which has the proper indices
|
|
4571
3843
|
* indicated by indexOf). Note that this is a copy of the internal array used
|
|
4572
3844
|
* for storing the members so that no one can mess with internal state.
|
|
4573
|
-
*/ArraySet.prototype.toArray=function ArraySet_toArray(){return this._array.slice();};exports.ArraySet=ArraySet;},{"./util":
|
|
3845
|
+
*/ArraySet.prototype.toArray=function ArraySet_toArray(){return this._array.slice();};exports.ArraySet=ArraySet;},{"./util":206}],198:[function(require,module,exports){/* -*- Mode: js; js-indent-level: 2; -*- */ /*
|
|
4574
3846
|
* Copyright 2011 Mozilla Foundation and contributors
|
|
4575
3847
|
* Licensed under the New BSD license. See LICENSE or:
|
|
4576
3848
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
@@ -4635,7 +3907,7 @@ var VLQ_CONTINUATION_BIT=VLQ_BASE;/**
|
|
|
4635
3907
|
digit|=VLQ_CONTINUATION_BIT;}encoded+=base64.encode(digit);}while(vlq>0);return encoded;};/**
|
|
4636
3908
|
* Decodes the next base 64 VLQ value from the given string and returns the
|
|
4637
3909
|
* value and the rest of the string via the out parameter.
|
|
4638
|
-
*/exports.decode=function base64VLQ_decode(aStr,aIndex,aOutParam){var strLen=aStr.length;var result=0;var shift=0;var continuation,digit;do{if(aIndex>=strLen){throw new Error("Expected more digits in base 64 VLQ value.");}digit=base64.decode(aStr.charCodeAt(aIndex++));if(digit===-1){throw new Error("Invalid base64 digit: "+aStr.charAt(aIndex-1));}continuation=!!(digit&VLQ_CONTINUATION_BIT);digit&=VLQ_BASE_MASK;result=result+(digit<<shift);shift+=VLQ_BASE_SHIFT;}while(continuation);aOutParam.value=fromVLQSigned(result);aOutParam.rest=aIndex;};},{"./base64":
|
|
3910
|
+
*/exports.decode=function base64VLQ_decode(aStr,aIndex,aOutParam){var strLen=aStr.length;var result=0;var shift=0;var continuation,digit;do{if(aIndex>=strLen){throw new Error("Expected more digits in base 64 VLQ value.");}digit=base64.decode(aStr.charCodeAt(aIndex++));if(digit===-1){throw new Error("Invalid base64 digit: "+aStr.charAt(aIndex-1));}continuation=!!(digit&VLQ_CONTINUATION_BIT);digit&=VLQ_BASE_MASK;result=result+(digit<<shift);shift+=VLQ_BASE_SHIFT;}while(continuation);aOutParam.value=fromVLQSigned(result);aOutParam.rest=aIndex;};},{"./base64":199}],199:[function(require,module,exports){/* -*- Mode: js; js-indent-level: 2; -*- */ /*
|
|
4639
3911
|
* Copyright 2011 Mozilla Foundation and contributors
|
|
4640
3912
|
* Licensed under the New BSD license. See LICENSE or:
|
|
4641
3913
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
@@ -4658,7 +3930,7 @@ if(littleA<=charCode&&charCode<=littleZ){return charCode-littleA+littleOffset;}/
|
|
|
4658
3930
|
if(zero<=charCode&&charCode<=nine){return charCode-zero+numberOffset;}// 62: +
|
|
4659
3931
|
if(charCode==plus){return 62;}// 63: /
|
|
4660
3932
|
if(charCode==slash){return 63;}// Invalid base64 digit.
|
|
4661
|
-
return-1;};},{}],
|
|
3933
|
+
return-1;};},{}],200:[function(require,module,exports){/* -*- Mode: js; js-indent-level: 2; -*- */ /*
|
|
4662
3934
|
* Copyright 2011 Mozilla Foundation and contributors
|
|
4663
3935
|
* Licensed under the New BSD license. See LICENSE or:
|
|
4664
3936
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
@@ -4711,7 +3983,7 @@ if(aBias==exports.LEAST_UPPER_BOUND){return mid;}else{return aLow<0?-1:aLow;}}}/
|
|
|
4711
3983
|
*/exports.search=function search(aNeedle,aHaystack,aCompare,aBias){if(aHaystack.length===0){return-1;}var index=recursiveSearch(-1,aHaystack.length,aNeedle,aHaystack,aCompare,aBias||exports.GREATEST_LOWER_BOUND);if(index<0){return-1;}// We have found either the exact element, or the next-closest element than
|
|
4712
3984
|
// the one we are searching for. However, there may be more than one such
|
|
4713
3985
|
// element. Make sure we always return the smallest of these.
|
|
4714
|
-
while(index-1>=0){if(aCompare(aHaystack[index],aHaystack[index-1],true)!==0){break;}--index;}return index;};},{}],
|
|
3986
|
+
while(index-1>=0){if(aCompare(aHaystack[index],aHaystack[index-1],true)!==0){break;}--index;}return index;};},{}],201:[function(require,module,exports){/* -*- Mode: js; js-indent-level: 2; -*- */ /*
|
|
4715
3987
|
* Copyright 2014 Mozilla Foundation and contributors
|
|
4716
3988
|
* Licensed under the New BSD license. See LICENSE or:
|
|
4717
3989
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
@@ -4741,7 +4013,7 @@ this._last={generatedLine:-1,generatedColumn:0};}/**
|
|
|
4741
4013
|
* performance. The return value must NOT be mutated, and should be treated as
|
|
4742
4014
|
* an immutable borrow. If you want to take ownership, you must make your own
|
|
4743
4015
|
* copy.
|
|
4744
|
-
*/MappingList.prototype.toArray=function MappingList_toArray(){if(!this._sorted){this._array.sort(util.compareByGeneratedPositionsInflated);this._sorted=true;}return this._array;};exports.MappingList=MappingList;},{"./util":
|
|
4016
|
+
*/MappingList.prototype.toArray=function MappingList_toArray(){if(!this._sorted){this._array.sort(util.compareByGeneratedPositionsInflated);this._sorted=true;}return this._array;};exports.MappingList=MappingList;},{"./util":206}],202:[function(require,module,exports){/* -*- Mode: js; js-indent-level: 2; -*- */ /*
|
|
4745
4017
|
* Copyright 2011 Mozilla Foundation and contributors
|
|
4746
4018
|
* Licensed under the New BSD license. See LICENSE or:
|
|
4747
4019
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
@@ -4808,7 +4080,7 @@ doQuickSort(ary,comparator,p,q-1);doQuickSort(ary,comparator,q+1,r);}}/**
|
|
|
4808
4080
|
* An array to sort.
|
|
4809
4081
|
* @param {function} comparator
|
|
4810
4082
|
* Function to use to compare two items.
|
|
4811
|
-
*/exports.quickSort=function(ary,comparator){doQuickSort(ary,comparator,0,ary.length-1);};},{}],
|
|
4083
|
+
*/exports.quickSort=function(ary,comparator){doQuickSort(ary,comparator,0,ary.length-1);};},{}],203:[function(require,module,exports){/* -*- Mode: js; js-indent-level: 2; -*- */ /*
|
|
4812
4084
|
* Copyright 2011 Mozilla Foundation and contributors
|
|
4813
4085
|
* Licensed under the New BSD license. See LICENSE or:
|
|
4814
4086
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
@@ -5166,7 +4438,7 @@ if(section.consumer._findSourceIndex(util.getArg(aArgs,'source'))===-1){continue
|
|
|
5166
4438
|
// generated positions relative to the start of the section, so we
|
|
5167
4439
|
// need to offset them to be relative to the start of the concatenated
|
|
5168
4440
|
// generated file.
|
|
5169
|
-
var adjustedMapping={source:source,generatedLine:mapping.generatedLine+(section.generatedOffset.generatedLine-1),generatedColumn:mapping.generatedColumn+(section.generatedOffset.generatedLine===mapping.generatedLine?section.generatedOffset.generatedColumn-1:0),originalLine:mapping.originalLine,originalColumn:mapping.originalColumn,name:name};this.__generatedMappings.push(adjustedMapping);if(typeof adjustedMapping.originalLine==='number'){this.__originalMappings.push(adjustedMapping);}}}quickSort(this.__generatedMappings,util.compareByGeneratedPositionsDeflated);quickSort(this.__originalMappings,util.compareByOriginalPositions);};exports.IndexedSourceMapConsumer=IndexedSourceMapConsumer;},{"./array-set":
|
|
4441
|
+
var adjustedMapping={source:source,generatedLine:mapping.generatedLine+(section.generatedOffset.generatedLine-1),generatedColumn:mapping.generatedColumn+(section.generatedOffset.generatedLine===mapping.generatedLine?section.generatedOffset.generatedColumn-1:0),originalLine:mapping.originalLine,originalColumn:mapping.originalColumn,name:name};this.__generatedMappings.push(adjustedMapping);if(typeof adjustedMapping.originalLine==='number'){this.__originalMappings.push(adjustedMapping);}}}quickSort(this.__generatedMappings,util.compareByGeneratedPositionsDeflated);quickSort(this.__originalMappings,util.compareByOriginalPositions);};exports.IndexedSourceMapConsumer=IndexedSourceMapConsumer;},{"./array-set":197,"./base64-vlq":198,"./binary-search":200,"./quick-sort":202,"./util":206}],204:[function(require,module,exports){/* -*- Mode: js; js-indent-level: 2; -*- */ /*
|
|
5170
4442
|
* Copyright 2011 Mozilla Foundation and contributors
|
|
5171
4443
|
* Licensed under the New BSD license. See LICENSE or:
|
|
5172
4444
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
@@ -5243,7 +4515,7 @@ next+=base64VLQ.encode(mapping.originalLine-1-previousOriginalLine);previousOrig
|
|
|
5243
4515
|
* Externalize the source map.
|
|
5244
4516
|
*/SourceMapGenerator.prototype.toJSON=function SourceMapGenerator_toJSON(){var map={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};if(this._file!=null){map.file=this._file;}if(this._sourceRoot!=null){map.sourceRoot=this._sourceRoot;}if(this._sourcesContents){map.sourcesContent=this._generateSourcesContent(map.sources,map.sourceRoot);}return map;};/**
|
|
5245
4517
|
* Render the source map being generated to a string.
|
|
5246
|
-
*/SourceMapGenerator.prototype.toString=function SourceMapGenerator_toString(){return JSON.stringify(this.toJSON());};exports.SourceMapGenerator=SourceMapGenerator;},{"./array-set":
|
|
4518
|
+
*/SourceMapGenerator.prototype.toString=function SourceMapGenerator_toString(){return JSON.stringify(this.toJSON());};exports.SourceMapGenerator=SourceMapGenerator;},{"./array-set":197,"./base64-vlq":198,"./mapping-list":201,"./util":206}],205:[function(require,module,exports){/* -*- Mode: js; js-indent-level: 2; -*- */ /*
|
|
5247
4519
|
* Copyright 2011 Mozilla Foundation and contributors
|
|
5248
4520
|
* Licensed under the New BSD license. See LICENSE or:
|
|
5249
4521
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
@@ -5342,7 +4614,7 @@ aSourceMapConsumer.sources.forEach(function(sourceFile){var content=aSourceMapCo
|
|
|
5342
4614
|
* Returns the string representation of this source node along with a source
|
|
5343
4615
|
* map.
|
|
5344
4616
|
*/SourceNode.prototype.toStringWithSourceMap=function SourceNode_toStringWithSourceMap(aArgs){var generated={code:"",line:1,column:0};var map=new SourceMapGenerator(aArgs);var sourceMappingActive=false;var lastOriginalSource=null;var lastOriginalLine=null;var lastOriginalColumn=null;var lastOriginalName=null;this.walk(function(chunk,original){generated.code+=chunk;if(original.source!==null&&original.line!==null&&original.column!==null){if(lastOriginalSource!==original.source||lastOriginalLine!==original.line||lastOriginalColumn!==original.column||lastOriginalName!==original.name){map.addMapping({source:original.source,original:{line:original.line,column:original.column},generated:{line:generated.line,column:generated.column},name:original.name});}lastOriginalSource=original.source;lastOriginalLine=original.line;lastOriginalColumn=original.column;lastOriginalName=original.name;sourceMappingActive=true;}else if(sourceMappingActive){map.addMapping({generated:{line:generated.line,column:generated.column}});lastOriginalSource=null;sourceMappingActive=false;}for(var idx=0,length=chunk.length;idx<length;idx++){if(chunk.charCodeAt(idx)===NEWLINE_CODE){generated.line++;generated.column=0;// Mappings end at eol
|
|
5345
|
-
if(idx+1===length){lastOriginalSource=null;sourceMappingActive=false;}else if(sourceMappingActive){map.addMapping({source:original.source,original:{line:original.line,column:original.column},generated:{line:generated.line,column:generated.column},name:original.name});}}else{generated.column++;}}});this.walkSourceContents(function(sourceFile,sourceContent){map.setSourceContent(sourceFile,sourceContent);});return{code:generated.code,map:map};};exports.SourceNode=SourceNode;},{"./source-map-generator":
|
|
4617
|
+
if(idx+1===length){lastOriginalSource=null;sourceMappingActive=false;}else if(sourceMappingActive){map.addMapping({source:original.source,original:{line:original.line,column:original.column},generated:{line:generated.line,column:generated.column},name:original.name});}}else{generated.column++;}}});this.walkSourceContents(function(sourceFile,sourceContent){map.setSourceContent(sourceFile,sourceContent);});return{code:generated.code,map:map};};exports.SourceNode=SourceNode;},{"./source-map-generator":204,"./util":206}],206:[function(require,module,exports){/* -*- Mode: js; js-indent-level: 2; -*- */ /*
|
|
5346
4618
|
* Copyright 2011 Mozilla Foundation and contributors
|
|
5347
4619
|
* Licensed under the New BSD license. See LICENSE or:
|
|
5348
4620
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
@@ -5454,11 +4726,11 @@ sourceURL=sourceRoot+sourceURL;}// Historically, SourceMapConsumer did not take
|
|
|
5454
4726
|
// “sourceRoot”, the sources are resolved relative to the
|
|
5455
4727
|
// SourceMap (like resolving script src in a html document).
|
|
5456
4728
|
if(sourceMapURL){var parsed=urlParse(sourceMapURL);if(!parsed){throw new Error("sourceMapURL could not be parsed");}if(parsed.path){// Strip the last path component, but keep the "/".
|
|
5457
|
-
var index=parsed.path.lastIndexOf('/');if(index>=0){parsed.path=parsed.path.substring(0,index+1);}}sourceURL=join(urlGenerate(parsed),sourceURL);}return normalize(sourceURL);}exports.computeSourceURL=computeSourceURL;},{}],
|
|
4729
|
+
var index=parsed.path.lastIndexOf('/');if(index>=0){parsed.path=parsed.path.substring(0,index+1);}}sourceURL=join(urlGenerate(parsed),sourceURL);}return normalize(sourceURL);}exports.computeSourceURL=computeSourceURL;},{}],207:[function(require,module,exports){/*
|
|
5458
4730
|
* Copyright 2009-2011 Mozilla Foundation and contributors
|
|
5459
4731
|
* Licensed under the New BSD license. See LICENSE.txt or:
|
|
5460
4732
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
5461
|
-
*/exports.SourceMapGenerator=require('./lib/source-map-generator').SourceMapGenerator;exports.SourceMapConsumer=require('./lib/source-map-consumer').SourceMapConsumer;exports.SourceNode=require('./lib/source-node').SourceNode;},{"./lib/source-map-consumer":
|
|
4733
|
+
*/exports.SourceMapGenerator=require('./lib/source-map-generator').SourceMapGenerator;exports.SourceMapConsumer=require('./lib/source-map-consumer').SourceMapConsumer;exports.SourceNode=require('./lib/source-node').SourceNode;},{"./lib/source-map-consumer":203,"./lib/source-map-generator":204,"./lib/source-node":205}],208:[function(require,module,exports){'use strict';var integerRegex=/^\d+$/;function deepUnique(array){return array.sort().filter(function(element,index){return JSON.stringify(element)!==JSON.stringify(array[index-1]);});}exports.parse=function(string){return deepUnique(string.split(',').map(function(part){var result={};part.trim().split(/\s+/).forEach(function(element,index){if(index===0){result.url=element;return;}var value=element.slice(0,element.length-1);var postfix=element[element.length-1];var integerValue=parseInt(value,10);var floatValue=parseFloat(value);if(postfix==='w'&&integerRegex.test(value)){result.width=integerValue;}else if(postfix==='h'&&integerRegex.test(value)){result.height=integerValue;}else if(postfix==='x'&&!Number.isNaN(floatValue)){result.density=floatValue;}else{throw new Error("Invalid srcset descriptor: ".concat(element));}});return result;}));};exports.stringify=function(array){return _toConsumableArray(new Set(array.map(function(element){if(!element.url){throw new Error('URL is required');}var result=[element.url];if(element.width){result.push("".concat(element.width,"w"));}if(element.height){result.push("".concat(element.height,"h"));}if(element.density){result.push("".concat(element.density,"x"));}return result.join(' ');}))).join(', ');};},{}],209:[function(require,module,exports){// Copyright Joyent, Inc. and other Node contributors.
|
|
5462
4734
|
//
|
|
5463
4735
|
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
5464
4736
|
// copy of this software and associated documentation files (the
|
|
@@ -5605,8 +4877,9 @@ if(psychotic){result.hostname=result.host=isAbsolute?'':srcPath.length?srcPath.s
|
|
|
5605
4877
|
//this especially happens in cases like
|
|
5606
4878
|
//url.resolveObject('mailto:local1@domain1', 'local2@domain2')
|
|
5607
4879
|
var authInHost=result.host&&result.host.indexOf('@')>0?result.host.split('@'):false;if(authInHost){result.auth=authInHost.shift();result.host=result.hostname=authInHost.shift();}}mustEndAbs=mustEndAbs||result.host&&srcPath.length;if(mustEndAbs&&!isAbsolute){srcPath.unshift('');}if(!srcPath.length){result.pathname=null;result.path=null;}else{result.pathname=srcPath.join('/');}//to support request.http
|
|
5608
|
-
if(!util.isNull(result.pathname)||!util.isNull(result.search)){result.path=(result.pathname?result.pathname:'')+(result.search?result.search:'');}result.auth=relative.auth||result.auth;result.slashes=result.slashes||relative.slashes;result.href=result.format();return result;};Url.prototype.parseHost=function(){var host=this.host;var port=portPattern.exec(host);if(port){port=port[0];if(port!==':'){this.port=port.substr(1);}host=host.substr(0,host.length-port.length);}if(host)this.hostname=host;};},{"./util":
|
|
5609
|
-
var mediaTags=['img','audio','video','picture','svg','object','map','iframe','embed']
|
|
4880
|
+
if(!util.isNull(result.pathname)||!util.isNull(result.search)){result.path=(result.pathname?result.pathname:'')+(result.search?result.search:'');}result.auth=relative.auth||result.auth;result.slashes=result.slashes||relative.slashes;result.href=result.format();return result;};Url.prototype.parseHost=function(){var host=this.host;var port=portPattern.exec(host);if(port){port=port[0];if(port!==':'){this.port=port.substr(1);}host=host.substr(0,host.length-port.length);}if(host)this.hostname=host;};},{"./util":210,"punycode":193,"querystring":196}],210:[function(require,module,exports){'use strict';module.exports={isString:function isString(arg){return typeof arg==='string';},isObject:function isObject(arg){return _typeof(arg)==='object'&&arg!==null;},isNull:function isNull(arg){return arg===null;},isNullOrUndefined:function isNullOrUndefined(arg){return arg==null;}};},{}],211:[function(require,module,exports){module.exports=extend;var hasOwnProperty=Object.prototype.hasOwnProperty;function extend(){var target={};for(var i=0;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;}},{}],212:[function(require,module,exports){/* eslint-disable no-useless-escape */var htmlparser=require('htmlparser2');var extend=require('xtend');var quoteRegexp=require('lodash/escapeRegExp');var cloneDeep=require('lodash/cloneDeep');var mergeWith=require('lodash/mergeWith');var isString=require('lodash/isString');var isPlainObject=require('lodash/isPlainObject');var srcset=require('srcset');var postcss=require('postcss');var url=require('url');// Tags that can conceivably represent stand-alone media.
|
|
4881
|
+
var mediaTags=['img','audio','video','picture','svg','object','map','iframe','embed'];// Tags that are inherently vulnerable to being used in XSS attacks.
|
|
4882
|
+
var vulnerableTags=['script','style'];function each(obj,cb){if(obj){Object.keys(obj).forEach(function(key){cb(obj[key],key);});}}// Avoid false positives with .__proto__, .hasOwnProperty, etc.
|
|
5610
4883
|
function has(obj,key){return{}.hasOwnProperty.call(obj,key);}// Returns those elements of `a` for which `cb(a)` returns truthy
|
|
5611
4884
|
function filter(a,cb){var n=[];each(a,function(v){if(cb(v)){n.push(v);}});return n;}function isEmptyObject(obj){for(var key in obj){if(has(obj,key)){return false;}}return true;}module.exports=sanitizeHtml;// A valid attribute name.
|
|
5612
4885
|
// We use a tolerant definition based on the set of strings defined by
|
|
@@ -5624,12 +4897,16 @@ var VALID_HTML_ATTRIBUTE_NAME=/^[^\0\t\n\f\r /<=>]+$/;// Ignore the _recursing f
|
|
|
5624
4897
|
// https://github.com/fb55/htmlparser2/issues/105
|
|
5625
4898
|
function sanitizeHtml(html,options,_recursing){var result='';// Used for hot swapping the result variable with an empty string in order to "capture" the text written to it.
|
|
5626
4899
|
var tempResult='';function Frame(tag,attribs){var that=this;this.tag=tag;this.attribs=attribs||{};this.tagPosition=result.length;this.text='';// Node inner text
|
|
5627
|
-
this.mediaChildren=[];this.updateParentNodeText=function(){if(stack.length){var parentFrame=stack[stack.length-1];parentFrame.text+=that.text;}};this.updateParentNodeMediaChildren=function(){if(stack.length&&mediaTags.includes(this.tag)){var parentFrame=stack[stack.length-1];parentFrame.mediaChildren.push(this.tag);}};}if(!options){options=sanitizeHtml.defaults;options.parser=htmlParserDefaults;}else{options=extend(sanitizeHtml.defaults,options);if(options.parser){options.parser=extend(htmlParserDefaults,options.parser);}else{options.parser=htmlParserDefaults;}}//
|
|
4900
|
+
this.mediaChildren=[];this.updateParentNodeText=function(){if(stack.length){var parentFrame=stack[stack.length-1];parentFrame.text+=that.text;}};this.updateParentNodeMediaChildren=function(){if(stack.length&&mediaTags.includes(this.tag)){var parentFrame=stack[stack.length-1];parentFrame.mediaChildren.push(this.tag);}};}if(!options){options=sanitizeHtml.defaults;options.parser=htmlParserDefaults;}else{options=extend(sanitizeHtml.defaults,options);if(options.parser){options.parser=extend(htmlParserDefaults,options.parser);}else{options.parser=htmlParserDefaults;}}// vulnerableTags
|
|
4901
|
+
vulnerableTags.forEach(function(tag){if(options.allowedTags&&options.allowedTags.includes(tag)&&!options.allowVulnerableTags){// eslint-disable-next-line no-console
|
|
4902
|
+
console.warn("\n\n\u26A0\uFE0F Your `allowedTags` option includes, `".concat(tag,"`, which is inherently\nvulnerable to XSS attacks. Please remove it from `allowedTags`.\nOr, to disable this warning, add the `allowVulnerableTags` option\nand ensure you are accounting for this risk.\n\n"));}});// Tags that contain something other than HTML, or where discarding
|
|
5628
4903
|
// the text when the tag is disallowed makes sense for other reasons.
|
|
5629
4904
|
// If we are not allowing these tags, we should drop their content too.
|
|
5630
4905
|
// For other tags you would drop the tag but keep its content.
|
|
5631
4906
|
var nonTextTagsArray=options.nonTextTags||['script','style','textarea'];var allowedAttributesMap;var allowedAttributesGlobMap;if(options.allowedAttributes){allowedAttributesMap={};allowedAttributesGlobMap={};each(options.allowedAttributes,function(attributes,tag){allowedAttributesMap[tag]=[];var globRegex=[];attributes.forEach(function(obj){if(isString(obj)&&obj.indexOf('*')>=0){globRegex.push(quoteRegexp(obj).replace(/\\\*/g,'.*'));}else{allowedAttributesMap[tag].push(obj);}});allowedAttributesGlobMap[tag]=new RegExp('^('+globRegex.join('|')+')$');});}var allowedClassesMap={};each(options.allowedClasses,function(classes,tag){// Implicitly allows the class attribute
|
|
5632
|
-
if(allowedAttributesMap){if(!has(allowedAttributesMap,tag)){allowedAttributesMap[tag]=[];}allowedAttributesMap[tag].push('class');}allowedClassesMap[tag]=classes;});var transformTagsMap={};var transformTagsAll;each(options.transformTags,function(transform,tag){var transFun;if(typeof transform==='function'){transFun=transform;}else if(typeof transform==="string"){transFun=sanitizeHtml.simpleTransform(transform);}if(tag==='*'){transformTagsAll=transFun;}else{transformTagsMap[tag]=transFun;}});var depth
|
|
4907
|
+
if(allowedAttributesMap){if(!has(allowedAttributesMap,tag)){allowedAttributesMap[tag]=[];}allowedAttributesMap[tag].push('class');}allowedClassesMap[tag]=classes;});var transformTagsMap={};var transformTagsAll;each(options.transformTags,function(transform,tag){var transFun;if(typeof transform==='function'){transFun=transform;}else if(typeof transform==="string"){transFun=sanitizeHtml.simpleTransform(transform);}if(tag==='*'){transformTagsAll=transFun;}else{transformTagsMap[tag]=transFun;}});var depth;var stack;var skipMap;var transformMap;var skipText;var skipTextDepth;initializeState();var parser=new htmlparser.Parser({onopentag:function onopentag(name,attribs){// If `enforceHtmlBoundary` is `true` and this has found the opening
|
|
4908
|
+
// `html` tag, reset the state.
|
|
4909
|
+
if(options.enforceHtmlBoundary&&name==='html'){initializeState();}if(skipText){skipTextDepth++;return;}var frame=new Frame(name,attribs);stack.push(frame);var skip=false;var hasText=!!frame.text;var transformedTag;if(has(transformTagsMap,name)){transformedTag=transformTagsMap[name](name,attribs);frame.attribs=attribs=transformedTag.attribs;if(transformedTag.text!==undefined){frame.innerText=transformedTag.text;}if(name!==transformedTag.tagName){frame.name=name=transformedTag.tagName;transformMap[depth]=transformedTag.tagName;}}if(transformTagsAll){transformedTag=transformTagsAll(name,attribs);frame.attribs=attribs=transformedTag.attribs;if(name!==transformedTag.tagName){frame.name=name=transformedTag.tagName;transformMap[depth]=transformedTag.tagName;}}if(options.allowedTags&&options.allowedTags.indexOf(name)===-1||options.disallowedTagsMode==='recursiveEscape'&&!isEmptyObject(skipMap)){skip=true;skipMap[depth]=true;if(options.disallowedTagsMode==='discard'){if(nonTextTagsArray.indexOf(name)!==-1){skipText=true;skipTextDepth=1;}}skipMap[depth]=true;}depth++;if(skip){if(options.disallowedTagsMode==='discard'){// We want the contents but not this tag
|
|
5633
4910
|
return;}tempResult=result;result='';}result+='<'+name;if(!allowedAttributesMap||has(allowedAttributesMap,name)||allowedAttributesMap['*']){each(attribs,function(value,a){if(!VALID_HTML_ATTRIBUTE_NAME.test(a)){// This prevents part of an attribute name in the output from being
|
|
5634
4911
|
// interpreted as the end of an attribute, or end of a tag.
|
|
5635
4912
|
delete frame.attribs[a];return;}var parsed;// check allowedAttributesMap for the element and attribute and modify the value
|
|
@@ -5647,8 +4924,8 @@ text=lastFrame.innerText!==undefined?lastFrame.innerText:text;}if(options.disall
|
|
|
5647
4924
|
// your concern, don't allow them. The same is essentially true for style tags
|
|
5648
4925
|
// which have their own collection of XSS vectors.
|
|
5649
4926
|
result+=text;}else{var escaped=escapeHtml(text,false);if(options.textFilter){result+=options.textFilter(escaped,tag);}else{result+=escaped;}}if(stack.length){var frame=stack[stack.length-1];frame.text+=text;}},onclosetag:function onclosetag(name){if(skipText){skipTextDepth--;if(!skipTextDepth){skipText=false;}else{return;}}var frame=stack.pop();if(!frame){// Do not crash on bad markup
|
|
5650
|
-
return;}skipText=false;depth--;var skip=skipMap[depth];if(skip){delete skipMap[depth];if(options.disallowedTagsMode==='discard'){frame.updateParentNodeText();return;}tempResult=result;result='';}if(transformMap[depth]){name=transformMap[depth];delete transformMap[depth];}if(options.exclusiveFilter&&options.exclusiveFilter(frame)){result=result.substr(0,frame.tagPosition);return;}frame.updateParentNodeMediaChildren();frame.updateParentNodeText();if(options.selfClosing.indexOf(name)!==-1){// Already output />
|
|
5651
|
-
if(skip){result=tempResult;tempResult='';}return;}result+="</"+name+">";if(skip){result=tempResult+escapeHtml(result);tempResult='';}}},options.parser);parser.write(html);parser.end();return result;function escapeHtml(s,quote){if(typeof s!=='string'){s=s+'';}if(options.parser.decodeEntities){s=s.replace(/&/g,'&').replace(/</g,'<').replace(/\>/g,'>');if(quote){s=s.replace(/\"/g,'"');}}// TODO: this is inadequate because it will pass `&0;`. This approach
|
|
4927
|
+
return;}skipText=options.enforceHtmlBoundary?name==='html':false;depth--;var skip=skipMap[depth];if(skip){delete skipMap[depth];if(options.disallowedTagsMode==='discard'){frame.updateParentNodeText();return;}tempResult=result;result='';}if(transformMap[depth]){name=transformMap[depth];delete transformMap[depth];}if(options.exclusiveFilter&&options.exclusiveFilter(frame)){result=result.substr(0,frame.tagPosition);return;}frame.updateParentNodeMediaChildren();frame.updateParentNodeText();if(options.selfClosing.indexOf(name)!==-1){// Already output />
|
|
4928
|
+
if(skip){result=tempResult;tempResult='';}return;}result+="</"+name+">";if(skip){result=tempResult+escapeHtml(result);tempResult='';}}},options.parser);parser.write(html);parser.end();return result;function initializeState(){result='';depth=0;stack=[];skipMap={};transformMap={};skipText=false;skipTextDepth=0;}function escapeHtml(s,quote){if(typeof s!=='string'){s=s+'';}if(options.parser.decodeEntities){s=s.replace(/&/g,'&').replace(/</g,'<').replace(/\>/g,'>');if(quote){s=s.replace(/\"/g,'"');}}// TODO: this is inadequate because it will pass `&0;`. This approach
|
|
5652
4929
|
// will not work, each & must be considered with regard to whether it
|
|
5653
4930
|
// is followed by a 100% syntactically valid entity or not, and escaped
|
|
5654
4931
|
// if it is not. If this bothers you, don't set parser.decodeEntities
|
|
@@ -5698,4 +4975,4 @@ var htmlParserDefaults={decodeEntities:true};sanitizeHtml.defaults={allowedTags:
|
|
|
5698
4975
|
// and if you do the URL is checked for safety
|
|
5699
4976
|
img:['src']},// Lots of these won't come up by default because we don't allow them
|
|
5700
4977
|
selfClosing:['img','br','hr','area','base','basefont','input','link','meta'],// URL schemes we permit
|
|
5701
|
-
allowedSchemes:['http','https','ftp','mailto'],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:['href','src','cite'],allowProtocolRelative:true};sanitizeHtml.simpleTransform=function(newTagName,newAttribs,merge){merge=merge===undefined?true:merge;newAttribs=newAttribs||{};return function(tagName,attribs){var attrib;if(merge){for(attrib in newAttribs){attribs[attrib]=newAttribs[attrib];}}else{attribs=newAttribs;}return{tagName:newTagName,attribs:attribs};};};},{"htmlparser2":31,"lodash
|
|
4978
|
+
allowedSchemes:['http','https','ftp','mailto'],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:['href','src','cite'],allowProtocolRelative:true,enforceHtmlBoundary:false};sanitizeHtml.simpleTransform=function(newTagName,newAttribs,merge){merge=merge===undefined?true:merge;newAttribs=newAttribs||{};return function(tagName,attribs){var attrib;if(merge){for(attrib in newAttribs){attribs[attrib]=newAttribs[attrib];}}else{attribs=newAttribs;}return{tagName:newTagName,attribs:attribs};};};},{"htmlparser2":31,"lodash/cloneDeep":140,"lodash/escapeRegExp":143,"lodash/isPlainObject":155,"lodash/isString":157,"lodash/mergeWith":162,"postcss":180,"srcset":208,"url":209,"xtend":211}]},{},[212])(212);});
|