sanitize-html 1.22.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 +18 -1
- package/README.md +30 -13
- package/dist/sanitize-html-es2015.js +2913 -3194
- package/dist/sanitize-html.js +800 -1473
- package/dist/sanitize-html.min.js +1 -1
- package/package.json +16 -13
package/dist/sanitize-html.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance");}function
|
|
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
|
|
@@ -13,7 +13,7 @@ if(extraBytes===1){tmp=uint8[len-1];parts.push(lookup[tmp>>2]+lookup[tmp<<4&0x3F
|
|
|
13
13
|
*
|
|
14
14
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
15
15
|
* @license MIT
|
|
16
|
-
*/ /* eslint-disable no-proto */'use strict';var base64=require('base64-js');var ieee754=require('ieee754');
|
|
16
|
+
*/ /* eslint-disable no-proto */'use strict';var base64=require('base64-js');var ieee754=require('ieee754');exports.Buffer=Buffer;exports.SlowBuffer=SlowBuffer;exports.INSPECT_MAX_BYTES=50;var K_MAX_LENGTH=0x7fffffff;exports.kMaxLength=K_MAX_LENGTH;/**
|
|
17
17
|
* If `Buffer.TYPED_ARRAY_SUPPORT`:
|
|
18
18
|
* === true Use Uint8Array implementation (fastest)
|
|
19
19
|
* === false Print warning and recommend using `buffer` v4.x which has an Object
|
|
@@ -27,8 +27,8 @@ if(extraBytes===1){tmp=uint8[len-1];parts.push(lookup[tmp>>2]+lookup[tmp<<4&0x3F
|
|
|
27
27
|
* (See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438). IE 10 lacks support
|
|
28
28
|
* for __proto__ and has a buggy typed array implementation.
|
|
29
29
|
*/Buffer.TYPED_ARRAY_SUPPORT=typedArraySupport();if(!Buffer.TYPED_ARRAY_SUPPORT&&typeof console!=='undefined'&&typeof console.error==='function'){console.error('This browser lacks typed array (Uint8Array) support which is required by '+'`buffer` v5.x. Use `buffer` v4.x if you require old browser support.');}function typedArraySupport(){// Can typed array instances can be augmented?
|
|
30
|
-
try{var arr=new Uint8Array(1);
|
|
31
|
-
var buf=new Uint8Array(length);
|
|
30
|
+
try{var arr=new Uint8Array(1);arr.__proto__={__proto__:Uint8Array.prototype,foo:function foo(){return 42;}};return arr.foo()===42;}catch(e){return false;}}Object.defineProperty(Buffer.prototype,'parent',{enumerable:true,get:function get(){if(!Buffer.isBuffer(this))return undefined;return this.buffer;}});Object.defineProperty(Buffer.prototype,'offset',{enumerable:true,get:function get(){if(!Buffer.isBuffer(this))return undefined;return this.byteOffset;}});function createBuffer(length){if(length>K_MAX_LENGTH){throw new RangeError('The value "'+length+'" is invalid for option "size"');}// Return an augmented `Uint8Array` instance
|
|
31
|
+
var buf=new Uint8Array(length);buf.__proto__=Buffer.prototype;return buf;}/**
|
|
32
32
|
* The Buffer constructor returns instances of `Uint8Array` that have their
|
|
33
33
|
* prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of
|
|
34
34
|
* `Uint8Array`, so the returned instances will have all the node `Buffer` methods
|
|
@@ -39,7 +39,7 @@ var buf=new Uint8Array(length);Object.setPrototypeOf(buf,Buffer.prototype);retur
|
|
|
39
39
|
*/function Buffer(arg,encodingOrOffset,length){// Common case.
|
|
40
40
|
if(typeof arg==='number'){if(typeof encodingOrOffset==='string'){throw new TypeError('The "string" argument must be of type string. Received type number');}return allocUnsafe(arg);}return from(arg,encodingOrOffset,length);}// Fix subarray() in ES2016. See: https://github.com/feross/buffer/pull/97
|
|
41
41
|
if(typeof Symbol!=='undefined'&&Symbol.species!=null&&Buffer[Symbol.species]===Buffer){Object.defineProperty(Buffer,Symbol.species,{value:null,configurable:true,enumerable:false,writable:false});}Buffer.poolSize=8192;// not used by this implementation
|
|
42
|
-
function from(value,encodingOrOffset,length){if(typeof value==='string'){return fromString(value,encodingOrOffset);}if(ArrayBuffer.isView(value)){return fromArrayLike(value);}if(value==null){throw
|
|
42
|
+
function from(value,encodingOrOffset,length){if(typeof value==='string'){return fromString(value,encodingOrOffset);}if(ArrayBuffer.isView(value)){return fromArrayLike(value);}if(value==null){throw TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, '+'or Array-like Object. Received type '+_typeof(value));}if(isInstance(value,ArrayBuffer)||value&&isInstance(value.buffer,ArrayBuffer)){return fromArrayBuffer(value,encodingOrOffset,length);}if(typeof value==='number'){throw new TypeError('The "value" argument must not be of type number. Received type number');}var valueOf=value.valueOf&&value.valueOf();if(valueOf!=null&&valueOf!==value){return Buffer.from(valueOf,encodingOrOffset,length);}var b=fromObject(value);if(b)return b;if(typeof Symbol!=='undefined'&&Symbol.toPrimitive!=null&&typeof value[Symbol.toPrimitive]==='function'){return Buffer.from(value[Symbol.toPrimitive]('string'),encodingOrOffset,length);}throw new TypeError('The first argument must be one of type string, Buffer, ArrayBuffer, Array, '+'or Array-like Object. Received type '+_typeof(value));}/**
|
|
43
43
|
* Functionally equivalent to Buffer(arg, encoding) but throws a TypeError
|
|
44
44
|
* if value is a number.
|
|
45
45
|
* Buffer.from(str[, encoding])
|
|
@@ -48,7 +48,7 @@ function from(value,encodingOrOffset,length){if(typeof value==='string'){return
|
|
|
48
48
|
* Buffer.from(arrayBuffer[, byteOffset[, length]])
|
|
49
49
|
**/Buffer.from=function(value,encodingOrOffset,length){return from(value,encodingOrOffset,length);};// Note: Change prototype *after* Buffer.from is defined to workaround Chrome bug:
|
|
50
50
|
// https://github.com/feross/buffer/pull/148
|
|
51
|
-
|
|
51
|
+
Buffer.prototype.__proto__=Uint8Array.prototype;Buffer.__proto__=Uint8Array;function assertSize(size){if(typeof size!=='number'){throw new TypeError('"size" argument must be of type number');}else if(size<0){throw new RangeError('The value "'+size+'" is invalid for option "size"');}}function alloc(size,fill,encoding){assertSize(size);if(size<=0){return createBuffer(size);}if(fill!==undefined){// Only pay attention to encoding if it's a string. This
|
|
52
52
|
// prevents accidentally sending in a number that would
|
|
53
53
|
// be interpretted as a start offset.
|
|
54
54
|
return typeof encoding==='string'?createBuffer(size).fill(fill,encoding):createBuffer(size).fill(fill);}return createBuffer(size);}/**
|
|
@@ -62,7 +62,7 @@ return typeof encoding==='string'?createBuffer(size).fill(fill,encoding):createB
|
|
|
62
62
|
// cause everything after the first invalid character to be ignored. (e.g.
|
|
63
63
|
// 'abxxcd' will be treated as 'ab')
|
|
64
64
|
buf=buf.slice(0,actual);}return buf;}function fromArrayLike(array){var length=array.length<0?0:checked(array.length)|0;var buf=createBuffer(length);for(var i=0;i<length;i+=1){buf[i]=array[i]&255;}return buf;}function fromArrayBuffer(array,byteOffset,length){if(byteOffset<0||array.byteLength<byteOffset){throw new RangeError('"offset" is outside of buffer bounds');}if(array.byteLength<byteOffset+(length||0)){throw new RangeError('"length" is outside of buffer bounds');}var buf;if(byteOffset===undefined&&length===undefined){buf=new Uint8Array(array);}else if(length===undefined){buf=new Uint8Array(array,byteOffset);}else{buf=new Uint8Array(array,byteOffset,length);}// Return an augmented `Uint8Array` instance
|
|
65
|
-
|
|
65
|
+
buf.__proto__=Buffer.prototype;return buf;}function fromObject(obj){if(Buffer.isBuffer(obj)){var len=checked(obj.length)|0;var buf=createBuffer(len);if(buf.length===0){return buf;}obj.copy(buf,0,0,len);return buf;}if(obj.length!==undefined){if(typeof obj.length!=='number'||numberIsNaN(obj.length)){return createBuffer(0);}return fromArrayLike(obj);}if(obj.type==='Buffer'&&Array.isArray(obj.data)){return fromArrayLike(obj.data);}}function checked(length){// Note: cannot use `length < K_MAX_LENGTH` here because that fails when
|
|
66
66
|
// length is NaN (which is otherwise coerced to zero.)
|
|
67
67
|
if(length>=K_MAX_LENGTH){throw new RangeError('Attempt to allocate Buffer larger than maximum '+'size: 0x'+K_MAX_LENGTH.toString(16)+' bytes');}return length|0;}function SlowBuffer(length){if(+length!=length){// eslint-disable-line eqeqeq
|
|
68
68
|
length=0;}return Buffer.alloc(+length);}Buffer.isBuffer=function isBuffer(b){return b!=null&&b._isBuffer===true&&b!==Buffer.prototype;// so Buffer.isBuffer(Buffer.prototype) will be false
|
|
@@ -83,7 +83,7 @@ end>>>=0;start>>>=0;if(end<=start){return'';}if(!encoding)encoding='utf8';while(
|
|
|
83
83
|
// copies of the 'buffer' package in use. This method works even for Buffer
|
|
84
84
|
// instances that were created from another copy of the `buffer` package.
|
|
85
85
|
// See: https://github.com/feross/buffer/issues/154
|
|
86
|
-
Buffer.prototype._isBuffer=true;function swap(b,n,m){var i=b[n];b[n]=b[m];b[m]=i;}Buffer.prototype.swap16=function swap16(){var len=this.length;if(len%2!==0){throw new RangeError('Buffer size must be a multiple of 16-bits');}for(var i=0;i<len;i+=2){swap(this,i,i+1);}return this;};Buffer.prototype.swap32=function swap32(){var len=this.length;if(len%4!==0){throw new RangeError('Buffer size must be a multiple of 32-bits');}for(var i=0;i<len;i+=4){swap(this,i,i+3);swap(this,i+1,i+2);}return this;};Buffer.prototype.swap64=function swap64(){var len=this.length;if(len%8!==0){throw new RangeError('Buffer size must be a multiple of 64-bits');}for(var i=0;i<len;i+=8){swap(this,i,i+7);swap(this,i+1,i+6);swap(this,i+2,i+5);swap(this,i+3,i+4);}return this;};Buffer.prototype.toString=function toString(){var length=this.length;if(length===0)return'';if(arguments.length===0)return utf8Slice(this,0,length);return slowToString.apply(this,arguments);};Buffer.prototype.toLocaleString=Buffer.prototype.toString;Buffer.prototype.equals=function equals(b){if(!Buffer.isBuffer(b))throw new TypeError('Argument must be a Buffer');if(this===b)return true;return Buffer.compare(this,b)===0;};Buffer.prototype.inspect=function inspect(){var str='';var max=exports.INSPECT_MAX_BYTES;str=this.toString('hex',0,max).replace(/(.{2})/g,'$1 ').trim();if(this.length>max)str+=' ... ';return'<Buffer '+str+'>';};
|
|
86
|
+
Buffer.prototype._isBuffer=true;function swap(b,n,m){var i=b[n];b[n]=b[m];b[m]=i;}Buffer.prototype.swap16=function swap16(){var len=this.length;if(len%2!==0){throw new RangeError('Buffer size must be a multiple of 16-bits');}for(var i=0;i<len;i+=2){swap(this,i,i+1);}return this;};Buffer.prototype.swap32=function swap32(){var len=this.length;if(len%4!==0){throw new RangeError('Buffer size must be a multiple of 32-bits');}for(var i=0;i<len;i+=4){swap(this,i,i+3);swap(this,i+1,i+2);}return this;};Buffer.prototype.swap64=function swap64(){var len=this.length;if(len%8!==0){throw new RangeError('Buffer size must be a multiple of 64-bits');}for(var i=0;i<len;i+=8){swap(this,i,i+7);swap(this,i+1,i+6);swap(this,i+2,i+5);swap(this,i+3,i+4);}return this;};Buffer.prototype.toString=function toString(){var length=this.length;if(length===0)return'';if(arguments.length===0)return utf8Slice(this,0,length);return slowToString.apply(this,arguments);};Buffer.prototype.toLocaleString=Buffer.prototype.toString;Buffer.prototype.equals=function equals(b){if(!Buffer.isBuffer(b))throw new TypeError('Argument must be a Buffer');if(this===b)return true;return Buffer.compare(this,b)===0;};Buffer.prototype.inspect=function inspect(){var str='';var max=exports.INSPECT_MAX_BYTES;str=this.toString('hex',0,max).replace(/(.{2})/g,'$1 ').trim();if(this.length>max)str+=' ... ';return'<Buffer '+str+'>';};Buffer.prototype.compare=function compare(target,start,end,thisStart,thisEnd){if(isInstance(target,Uint8Array)){target=Buffer.from(target,target.offset,target.byteLength);}if(!Buffer.isBuffer(target)){throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. '+'Received type '+_typeof(target));}if(start===undefined){start=0;}if(end===undefined){end=target?target.length:0;}if(thisStart===undefined){thisStart=0;}if(thisEnd===undefined){thisEnd=this.length;}if(start<0||end>target.length||thisStart<0||thisEnd>this.length){throw new RangeError('out of range index');}if(thisStart>=thisEnd&&start>=end){return 0;}if(thisStart>=thisEnd){return-1;}if(start>=end){return 1;}start>>>=0;end>>>=0;thisStart>>>=0;thisEnd>>>=0;if(this===target)return 0;var x=thisEnd-thisStart;var y=end-start;var len=Math.min(x,y);var thisCopy=this.slice(thisStart,thisEnd);var targetCopy=target.slice(start,end);for(var i=0;i<len;++i){if(thisCopy[i]!==targetCopy[i]){x=thisCopy[i];y=targetCopy[i];break;}}if(x<y)return-1;if(y<x)return 1;return 0;};// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,
|
|
87
87
|
// OR the last index of `val` in `buffer` at offset <= `byteOffset`.
|
|
88
88
|
//
|
|
89
89
|
// Arguments:
|
|
@@ -113,8 +113,8 @@ codePoint-=0x10000;res.push(codePoint>>>10&0x3FF|0xD800);codePoint=0xDC00|codePo
|
|
|
113
113
|
// We go 1 magnitude less, for safety
|
|
114
114
|
var MAX_ARGUMENTS_LENGTH=0x1000;function decodeCodePointsArray(codePoints){var len=codePoints.length;if(len<=MAX_ARGUMENTS_LENGTH){return String.fromCharCode.apply(String,codePoints);// avoid extra slice()
|
|
115
115
|
}// Decode in chunks to avoid "call stack size exceeded".
|
|
116
|
-
var res='';var i=0;while(i<len){res+=String.fromCharCode.apply(String,codePoints.slice(i,i+=MAX_ARGUMENTS_LENGTH));}return res;}function asciiSlice(buf,start,end){var ret='';end=Math.min(buf.length,end);for(var i=start;i<end;++i){ret+=String.fromCharCode(buf[i]&0x7F);}return ret;}function latin1Slice(buf,start,end){var ret='';end=Math.min(buf.length,end);for(var i=start;i<end;++i){ret+=String.fromCharCode(buf[i]);}return ret;}function hexSlice(buf,start,end){var len=buf.length;if(!start||start<0)start=0;if(!end||end<0||end>len)end=len;var out='';for(var i=start;i<end;++i){out+=
|
|
117
|
-
|
|
116
|
+
var res='';var i=0;while(i<len){res+=String.fromCharCode.apply(String,codePoints.slice(i,i+=MAX_ARGUMENTS_LENGTH));}return res;}function asciiSlice(buf,start,end){var ret='';end=Math.min(buf.length,end);for(var i=start;i<end;++i){ret+=String.fromCharCode(buf[i]&0x7F);}return ret;}function latin1Slice(buf,start,end){var ret='';end=Math.min(buf.length,end);for(var i=start;i<end;++i){ret+=String.fromCharCode(buf[i]);}return ret;}function hexSlice(buf,start,end){var len=buf.length;if(!start||start<0)start=0;if(!end||end<0||end>len)end=len;var out='';for(var i=start;i<end;++i){out+=toHex(buf[i]);}return out;}function utf16leSlice(buf,start,end){var bytes=buf.slice(start,end);var res='';for(var i=0;i<bytes.length;i+=2){res+=String.fromCharCode(bytes[i]+bytes[i+1]*256);}return res;}Buffer.prototype.slice=function slice(start,end){var len=this.length;start=~~start;end=end===undefined?len:~~end;if(start<0){start+=len;if(start<0)start=0;}else if(start>len){start=len;}if(end<0){end+=len;if(end<0)end=0;}else if(end>len){end=len;}if(end<start)end=start;var newBuf=this.subarray(start,end);// Return an augmented `Uint8Array` instance
|
|
117
|
+
newBuf.__proto__=Buffer.prototype;return newBuf;};/*
|
|
118
118
|
* Need to make sure that buffer isn't trying to write out of bounds.
|
|
119
119
|
*/function checkOffset(offset,ext,length){if(offset%1!==0||offset<0)throw new RangeError('offset is not uint');if(offset+ext>length)throw new RangeError('Trying to access beyond buffer length');}Buffer.prototype.readUIntLE=function readUIntLE(offset,byteLength,noAssert){offset=offset>>>0;byteLength=byteLength>>>0;if(!noAssert)checkOffset(offset,byteLength,this.length);var val=this[offset];var mul=1;var i=0;while(++i<byteLength&&(mul*=0x100)){val+=this[offset+i]*mul;}return val;};Buffer.prototype.readUIntBE=function readUIntBE(offset,byteLength,noAssert){offset=offset>>>0;byteLength=byteLength>>>0;if(!noAssert){checkOffset(offset,byteLength,this.length);}var val=this[offset+--byteLength];var mul=1;while(byteLength>0&&(mul*=0x100)){val+=this[offset+--byteLength]*mul;}return val;};Buffer.prototype.readUInt8=function readUInt8(offset,noAssert){offset=offset>>>0;if(!noAssert)checkOffset(offset,1,this.length);return this[offset];};Buffer.prototype.readUInt16LE=function readUInt16LE(offset,noAssert){offset=offset>>>0;if(!noAssert)checkOffset(offset,2,this.length);return this[offset]|this[offset+1]<<8;};Buffer.prototype.readUInt16BE=function readUInt16BE(offset,noAssert){offset=offset>>>0;if(!noAssert)checkOffset(offset,2,this.length);return this[offset]<<8|this[offset+1];};Buffer.prototype.readUInt32LE=function readUInt32LE(offset,noAssert){offset=offset>>>0;if(!noAssert)checkOffset(offset,4,this.length);return(this[offset]|this[offset+1]<<8|this[offset+2]<<16)+this[offset+3]*0x1000000;};Buffer.prototype.readUInt32BE=function readUInt32BE(offset,noAssert){offset=offset>>>0;if(!noAssert)checkOffset(offset,4,this.length);return this[offset]*0x1000000+(this[offset+1]<<16|this[offset+2]<<8|this[offset+3]);};Buffer.prototype.readIntLE=function readIntLE(offset,byteLength,noAssert){offset=offset>>>0;byteLength=byteLength>>>0;if(!noAssert)checkOffset(offset,byteLength,this.length);var val=this[offset];var mul=1;var i=0;while(++i<byteLength&&(mul*=0x100)){val+=this[offset+i]*mul;}mul*=0x80;if(val>=mul)val-=Math.pow(2,8*byteLength);return val;};Buffer.prototype.readIntBE=function readIntBE(offset,byteLength,noAssert){offset=offset>>>0;byteLength=byteLength>>>0;if(!noAssert)checkOffset(offset,byteLength,this.length);var i=byteLength;var mul=1;var val=this[offset+--i];while(i>0&&(mul*=0x100)){val+=this[offset+--i]*mul;}mul*=0x80;if(val>=mul)val-=Math.pow(2,8*byteLength);return val;};Buffer.prototype.readInt8=function readInt8(offset,noAssert){offset=offset>>>0;if(!noAssert)checkOffset(offset,1,this.length);if(!(this[offset]&0x80))return this[offset];return(0xff-this[offset]+1)*-1;};Buffer.prototype.readInt16LE=function readInt16LE(offset,noAssert){offset=offset>>>0;if(!noAssert)checkOffset(offset,2,this.length);var val=this[offset]|this[offset+1]<<8;return val&0x8000?val|0xFFFF0000:val;};Buffer.prototype.readInt16BE=function readInt16BE(offset,noAssert){offset=offset>>>0;if(!noAssert)checkOffset(offset,2,this.length);var val=this[offset+1]|this[offset]<<8;return val&0x8000?val|0xFFFF0000:val;};Buffer.prototype.readInt32LE=function readInt32LE(offset,noAssert){offset=offset>>>0;if(!noAssert)checkOffset(offset,4,this.length);return this[offset]|this[offset+1]<<8|this[offset+2]<<16|this[offset+3]<<24;};Buffer.prototype.readInt32BE=function readInt32BE(offset,noAssert){offset=offset>>>0;if(!noAssert)checkOffset(offset,4,this.length);return this[offset]<<24|this[offset+1]<<16|this[offset+2]<<8|this[offset+3];};Buffer.prototype.readFloatLE=function readFloatLE(offset,noAssert){offset=offset>>>0;if(!noAssert)checkOffset(offset,4,this.length);return ieee754.read(this,offset,true,23,4);};Buffer.prototype.readFloatBE=function readFloatBE(offset,noAssert){offset=offset>>>0;if(!noAssert)checkOffset(offset,4,this.length);return ieee754.read(this,offset,false,23,4);};Buffer.prototype.readDoubleLE=function readDoubleLE(offset,noAssert){offset=offset>>>0;if(!noAssert)checkOffset(offset,8,this.length);return ieee754.read(this,offset,true,52,8);};Buffer.prototype.readDoubleBE=function readDoubleBE(offset,noAssert){offset=offset>>>0;if(!noAssert)checkOffset(offset,8,this.length);return ieee754.read(this,offset,false,52,8);};function checkInt(buf,value,offset,ext,max,min){if(!Buffer.isBuffer(buf))throw new TypeError('"buffer" argument must be a Buffer instance');if(value>max||value<min)throw new RangeError('"value" argument is out of bounds');if(offset+ext>buf.length)throw new RangeError('Index out of range');}Buffer.prototype.writeUIntLE=function writeUIntLE(value,offset,byteLength,noAssert){value=+value;offset=offset>>>0;byteLength=byteLength>>>0;if(!noAssert){var maxBytes=Math.pow(2,8*byteLength)-1;checkInt(this,value,offset,byteLength,maxBytes,0);}var mul=1;var i=0;this[offset]=value&0xFF;while(++i<byteLength&&(mul*=0x100)){this[offset+i]=value/mul&0xFF;}return offset+byteLength;};Buffer.prototype.writeUIntBE=function writeUIntBE(value,offset,byteLength,noAssert){value=+value;offset=offset>>>0;byteLength=byteLength>>>0;if(!noAssert){var maxBytes=Math.pow(2,8*byteLength)-1;checkInt(this,value,offset,byteLength,maxBytes,0);}var i=byteLength-1;var mul=1;this[offset+i]=value&0xFF;while(--i>=0&&(mul*=0x100)){this[offset+i]=value/mul&0xFF;}return offset+byteLength;};Buffer.prototype.writeUInt8=function writeUInt8(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,1,0xff,0);this[offset]=value&0xff;return offset+1;};Buffer.prototype.writeUInt16LE=function writeUInt16LE(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,2,0xffff,0);this[offset]=value&0xff;this[offset+1]=value>>>8;return offset+2;};Buffer.prototype.writeUInt16BE=function writeUInt16BE(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,2,0xffff,0);this[offset]=value>>>8;this[offset+1]=value&0xff;return offset+2;};Buffer.prototype.writeUInt32LE=function writeUInt32LE(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,4,0xffffffff,0);this[offset+3]=value>>>24;this[offset+2]=value>>>16;this[offset+1]=value>>>8;this[offset]=value&0xff;return offset+4;};Buffer.prototype.writeUInt32BE=function writeUInt32BE(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,4,0xffffffff,0);this[offset]=value>>>24;this[offset+1]=value>>>16;this[offset+2]=value>>>8;this[offset+3]=value&0xff;return offset+4;};Buffer.prototype.writeIntLE=function writeIntLE(value,offset,byteLength,noAssert){value=+value;offset=offset>>>0;if(!noAssert){var limit=Math.pow(2,8*byteLength-1);checkInt(this,value,offset,byteLength,limit-1,-limit);}var i=0;var mul=1;var sub=0;this[offset]=value&0xFF;while(++i<byteLength&&(mul*=0x100)){if(value<0&&sub===0&&this[offset+i-1]!==0){sub=1;}this[offset+i]=(value/mul>>0)-sub&0xFF;}return offset+byteLength;};Buffer.prototype.writeIntBE=function writeIntBE(value,offset,byteLength,noAssert){value=+value;offset=offset>>>0;if(!noAssert){var limit=Math.pow(2,8*byteLength-1);checkInt(this,value,offset,byteLength,limit-1,-limit);}var i=byteLength-1;var mul=1;var sub=0;this[offset+i]=value&0xFF;while(--i>=0&&(mul*=0x100)){if(value<0&&sub===0&&this[offset+i+1]!==0){sub=1;}this[offset+i]=(value/mul>>0)-sub&0xFF;}return offset+byteLength;};Buffer.prototype.writeInt8=function writeInt8(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,1,0x7f,-0x80);if(value<0)value=0xff+value+1;this[offset]=value&0xff;return offset+1;};Buffer.prototype.writeInt16LE=function writeInt16LE(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,2,0x7fff,-0x8000);this[offset]=value&0xff;this[offset+1]=value>>>8;return offset+2;};Buffer.prototype.writeInt16BE=function writeInt16BE(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,2,0x7fff,-0x8000);this[offset]=value>>>8;this[offset+1]=value&0xff;return offset+2;};Buffer.prototype.writeInt32LE=function writeInt32LE(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,4,0x7fffffff,-0x80000000);this[offset]=value&0xff;this[offset+1]=value>>>8;this[offset+2]=value>>>16;this[offset+3]=value>>>24;return offset+4;};Buffer.prototype.writeInt32BE=function writeInt32BE(value,offset,noAssert){value=+value;offset=offset>>>0;if(!noAssert)checkInt(this,value,offset,4,0x7fffffff,-0x80000000);if(value<0)value=0xffffffff+value+1;this[offset]=value>>>24;this[offset+1]=value>>>16;this[offset+2]=value>>>8;this[offset+3]=value&0xff;return offset+4;};function checkIEEE754(buf,value,offset,ext,max,min){if(offset+ext>buf.length)throw new RangeError('Index out of range');if(offset<0)throw new RangeError('Index out of range');}function writeFloat(buf,value,offset,littleEndian,noAssert){value=+value;offset=offset>>>0;if(!noAssert){checkIEEE754(buf,value,offset,4,3.4028234663852886e+38,-3.4028234663852886e+38);}ieee754.write(buf,value,offset,littleEndian,23,4);return offset+4;}Buffer.prototype.writeFloatLE=function writeFloatLE(value,offset,noAssert){return writeFloat(this,value,offset,true,noAssert);};Buffer.prototype.writeFloatBE=function writeFloatBE(value,offset,noAssert){return writeFloat(this,value,offset,false,noAssert);};function writeDouble(buf,value,offset,littleEndian,noAssert){value=+value;offset=offset>>>0;if(!noAssert){checkIEEE754(buf,value,offset,8,1.7976931348623157E+308,-1.7976931348623157E+308);}ieee754.write(buf,value,offset,littleEndian,52,8);return offset+8;}Buffer.prototype.writeDoubleLE=function writeDoubleLE(value,offset,noAssert){return writeDouble(this,value,offset,true,noAssert);};Buffer.prototype.writeDoubleBE=function writeDoubleBE(value,offset,noAssert){return writeDouble(this,value,offset,false,noAssert);};// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
|
|
120
120
|
Buffer.prototype.copy=function copy(target,targetStart,start,end){if(!Buffer.isBuffer(target))throw new TypeError('argument should be a Buffer');if(!start)start=0;if(!end&&end!==0)end=this.length;if(targetStart>=target.length)targetStart=target.length;if(!targetStart)targetStart=0;if(end>0&&end<start)end=start;// Copy 0 bytes; we're done
|
|
@@ -128,14 +128,14 @@ for(var i=len-1;i>=0;--i){target[i+targetStart]=this[i+start];}}else{Uint8Array.
|
|
|
128
128
|
// buffer.fill(string[, offset[, end]][, encoding])
|
|
129
129
|
Buffer.prototype.fill=function fill(val,start,end,encoding){// Handle string cases:
|
|
130
130
|
if(typeof val==='string'){if(typeof start==='string'){encoding=start;start=0;end=this.length;}else if(typeof end==='string'){encoding=end;end=this.length;}if(encoding!==undefined&&typeof encoding!=='string'){throw new TypeError('encoding must be a string');}if(typeof encoding==='string'&&!Buffer.isEncoding(encoding)){throw new TypeError('Unknown encoding: '+encoding);}if(val.length===1){var code=val.charCodeAt(0);if(encoding==='utf8'&&code<128||encoding==='latin1'){// Fast path: If `val` fits into a single byte, use that numeric value.
|
|
131
|
-
val=code;}}}else if(typeof val==='number'){val=val&255;}
|
|
131
|
+
val=code;}}}else if(typeof val==='number'){val=val&255;}// Invalid ranges are not set to a default, so can range check early.
|
|
132
132
|
if(start<0||this.length<start||this.length<end){throw new RangeError('Out of range index');}if(end<=start){return this;}start=start>>>0;end=end===undefined?this.length:end>>>0;if(!val)val=0;var i;if(typeof val==='number'){for(i=start;i<end;++i){this[i]=val;}}else{var bytes=Buffer.isBuffer(val)?val:Buffer.from(val,encoding);var len=bytes.length;if(len===0){throw new TypeError('The value "'+val+'" is invalid for argument "value"');}for(i=0;i<end-start;++i){this[i+start]=bytes[i%len];}}return this;};// HELPER FUNCTIONS
|
|
133
133
|
// ================
|
|
134
134
|
var INVALID_BASE64_RE=/[^+/0-9A-Za-z-_]/g;function base64clean(str){// Node takes equal signs as end of the Base64 encoding
|
|
135
135
|
str=str.split('=')[0];// Node strips out invalid characters like \n and \t from the string, base64-js does not
|
|
136
136
|
str=str.trim().replace(INVALID_BASE64_RE,'');// Node converts strings with length < 2 to ''
|
|
137
137
|
if(str.length<2)return'';// Node allows for non-padded base64 strings (missing trailing ===), base64-js does not
|
|
138
|
-
while(str.length%4!==0){str=str+'=';}return str;}function utf8ToBytes(string,units){units=units||Infinity;var codePoint;var length=string.length;var leadSurrogate=null;var bytes=[];for(var i=0;i<length;++i){codePoint=string.charCodeAt(i);// is surrogate component
|
|
138
|
+
while(str.length%4!==0){str=str+'=';}return str;}function toHex(n){if(n<16)return'0'+n.toString(16);return n.toString(16);}function utf8ToBytes(string,units){units=units||Infinity;var codePoint;var length=string.length;var leadSurrogate=null;var bytes=[];for(var i=0;i<length;++i){codePoint=string.charCodeAt(i);// is surrogate component
|
|
139
139
|
if(codePoint>0xD7FF&&codePoint<0xE000){// last char was a lead
|
|
140
140
|
if(!leadSurrogate){// no lead yet
|
|
141
141
|
if(codePoint>0xDBFF){// unexpected trail
|
|
@@ -151,9 +151,7 @@ byteArray.push(str.charCodeAt(i)&0xFF);}return byteArray;}function utf16leToByte
|
|
|
151
151
|
// See: https://github.com/feross/buffer/issues/166
|
|
152
152
|
function isInstance(obj,type){return obj instanceof type||obj!=null&&obj.constructor!=null&&obj.constructor.name!=null&&obj.constructor.name===type.name;}function numberIsNaN(obj){// For IE11 support
|
|
153
153
|
return obj!==obj;// eslint-disable-line no-self-compare
|
|
154
|
-
}
|
|
155
|
-
// See: https://github.com/feross/buffer/issues/219
|
|
156
|
-
var hexSliceLookupTable=function(){var alphabet='0123456789abcdef';var table=new Array(256);for(var i=0;i<16;++i){var i16=i*16;for(var j=0;j<16;++j){table[i16+j]=alphabet[i]+alphabet[j];}}return table;}();}).call(this,require("buffer").Buffer);},{"base64-js":1,"buffer":3,"ieee754":32}],4:[function(require,module,exports){module.exports={"elementNames":{"altglyph":"altGlyph","altglyphdef":"altGlyphDef","altglyphitem":"altGlyphItem","animatecolor":"animateColor","animatemotion":"animateMotion","animatetransform":"animateTransform","clippath":"clipPath","feblend":"feBlend","fecolormatrix":"feColorMatrix","fecomponenttransfer":"feComponentTransfer","fecomposite":"feComposite","feconvolvematrix":"feConvolveMatrix","fediffuselighting":"feDiffuseLighting","fedisplacementmap":"feDisplacementMap","fedistantlight":"feDistantLight","fedropshadow":"feDropShadow","feflood":"feFlood","fefunca":"feFuncA","fefuncb":"feFuncB","fefuncg":"feFuncG","fefuncr":"feFuncR","fegaussianblur":"feGaussianBlur","feimage":"feImage","femerge":"feMerge","femergenode":"feMergeNode","femorphology":"feMorphology","feoffset":"feOffset","fepointlight":"fePointLight","fespecularlighting":"feSpecularLighting","fespotlight":"feSpotLight","fetile":"feTile","feturbulence":"feTurbulence","foreignobject":"foreignObject","glyphref":"glyphRef","lineargradient":"linearGradient","radialgradient":"radialGradient","textpath":"textPath"},"attributeNames":{"definitionurl":"definitionURL","attributename":"attributeName","attributetype":"attributeType","basefrequency":"baseFrequency","baseprofile":"baseProfile","calcmode":"calcMode","clippathunits":"clipPathUnits","diffuseconstant":"diffuseConstant","edgemode":"edgeMode","filterunits":"filterUnits","glyphref":"glyphRef","gradienttransform":"gradientTransform","gradientunits":"gradientUnits","kernelmatrix":"kernelMatrix","kernelunitlength":"kernelUnitLength","keypoints":"keyPoints","keysplines":"keySplines","keytimes":"keyTimes","lengthadjust":"lengthAdjust","limitingconeangle":"limitingConeAngle","markerheight":"markerHeight","markerunits":"markerUnits","markerwidth":"markerWidth","maskcontentunits":"maskContentUnits","maskunits":"maskUnits","numoctaves":"numOctaves","pathlength":"pathLength","patterncontentunits":"patternContentUnits","patterntransform":"patternTransform","patternunits":"patternUnits","pointsatx":"pointsAtX","pointsaty":"pointsAtY","pointsatz":"pointsAtZ","preservealpha":"preserveAlpha","preserveaspectratio":"preserveAspectRatio","primitiveunits":"primitiveUnits","refx":"refX","refy":"refY","repeatcount":"repeatCount","repeatdur":"repeatDur","requiredextensions":"requiredExtensions","requiredfeatures":"requiredFeatures","specularconstant":"specularConstant","specularexponent":"specularExponent","spreadmethod":"spreadMethod","startoffset":"startOffset","stddeviation":"stdDeviation","stitchtiles":"stitchTiles","surfacescale":"surfaceScale","systemlanguage":"systemLanguage","tablevalues":"tableValues","targetx":"targetX","targety":"targetY","textlength":"textLength","viewbox":"viewBox","viewtarget":"viewTarget","xchannelselector":"xChannelSelector","ychannelselector":"yChannelSelector","zoomandpan":"zoomAndPan"}};},{}],5:[function(require,module,exports){/*
|
|
154
|
+
}}).call(this,require("buffer").Buffer);},{"base64-js":1,"buffer":3,"ieee754":32}],4:[function(require,module,exports){module.exports={"elementNames":{"altglyph":"altGlyph","altglyphdef":"altGlyphDef","altglyphitem":"altGlyphItem","animatecolor":"animateColor","animatemotion":"animateMotion","animatetransform":"animateTransform","clippath":"clipPath","feblend":"feBlend","fecolormatrix":"feColorMatrix","fecomponenttransfer":"feComponentTransfer","fecomposite":"feComposite","feconvolvematrix":"feConvolveMatrix","fediffuselighting":"feDiffuseLighting","fedisplacementmap":"feDisplacementMap","fedistantlight":"feDistantLight","fedropshadow":"feDropShadow","feflood":"feFlood","fefunca":"feFuncA","fefuncb":"feFuncB","fefuncg":"feFuncG","fefuncr":"feFuncR","fegaussianblur":"feGaussianBlur","feimage":"feImage","femerge":"feMerge","femergenode":"feMergeNode","femorphology":"feMorphology","feoffset":"feOffset","fepointlight":"fePointLight","fespecularlighting":"feSpecularLighting","fespotlight":"feSpotLight","fetile":"feTile","feturbulence":"feTurbulence","foreignobject":"foreignObject","glyphref":"glyphRef","lineargradient":"linearGradient","radialgradient":"radialGradient","textpath":"textPath"},"attributeNames":{"definitionurl":"definitionURL","attributename":"attributeName","attributetype":"attributeType","basefrequency":"baseFrequency","baseprofile":"baseProfile","calcmode":"calcMode","clippathunits":"clipPathUnits","diffuseconstant":"diffuseConstant","edgemode":"edgeMode","filterunits":"filterUnits","glyphref":"glyphRef","gradienttransform":"gradientTransform","gradientunits":"gradientUnits","kernelmatrix":"kernelMatrix","kernelunitlength":"kernelUnitLength","keypoints":"keyPoints","keysplines":"keySplines","keytimes":"keyTimes","lengthadjust":"lengthAdjust","limitingconeangle":"limitingConeAngle","markerheight":"markerHeight","markerunits":"markerUnits","markerwidth":"markerWidth","maskcontentunits":"maskContentUnits","maskunits":"maskUnits","numoctaves":"numOctaves","pathlength":"pathLength","patterncontentunits":"patternContentUnits","patterntransform":"patternTransform","patternunits":"patternUnits","pointsatx":"pointsAtX","pointsaty":"pointsAtY","pointsatz":"pointsAtZ","preservealpha":"preserveAlpha","preserveaspectratio":"preserveAspectRatio","primitiveunits":"primitiveUnits","refx":"refX","refy":"refY","repeatcount":"repeatCount","repeatdur":"repeatDur","requiredextensions":"requiredExtensions","requiredfeatures":"requiredFeatures","specularconstant":"specularConstant","specularexponent":"specularExponent","spreadmethod":"spreadMethod","startoffset":"startOffset","stddeviation":"stdDeviation","stitchtiles":"stitchTiles","surfacescale":"surfaceScale","systemlanguage":"systemLanguage","tablevalues":"tableValues","targetx":"targetX","targety":"targetY","textlength":"textLength","viewbox":"viewBox","viewtarget":"viewTarget","xchannelselector":"xChannelSelector","ychannelselector":"yChannelSelector","zoomandpan":"zoomAndPan"}};},{}],5:[function(require,module,exports){/*
|
|
157
155
|
Module dependencies
|
|
158
156
|
*/var ElementType=require('domelementtype');var entities=require('entities');/* mixed-case SVG and MathML tags & attributes
|
|
159
157
|
recognized by the HTML parser, see
|
|
@@ -212,7 +210,7 @@ get:function get(){return this.children[0]||null;},enumerable:true,configurable:
|
|
|
212
210
|
get:function get(){return this.name;},set:function set(name){this.name=name;},enumerable:true,configurable:true});return Element;}(NodeWithChildren);exports.Element=Element;},{}],9:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var tagtypes_1=require("./tagtypes");/**
|
|
213
211
|
* Given an array of nodes, remove any member that is contained by another.
|
|
214
212
|
*
|
|
215
|
-
* @param nodes
|
|
213
|
+
* @param nodes Nodes to filter.
|
|
216
214
|
*/function removeSubsets(nodes){var idx=nodes.length;// Check if each node (or one of its ancestors) is already contained in the
|
|
217
215
|
// array.
|
|
218
216
|
while(--idx>=0){var node=nodes[idx];// Remove the node if it is not unique.
|
|
@@ -235,8 +233,8 @@ if(idx>0&&nodes.lastIndexOf(node,idx-1)>=0){nodes.splice(idx,1);continue;}for(va
|
|
|
235
233
|
*
|
|
236
234
|
* Source:
|
|
237
235
|
* http://www.w3.org/TR/DOM-Level-3-Core/glossary.html#dt-document-order
|
|
238
|
-
* @
|
|
239
|
-
* @
|
|
236
|
+
* @param nodaA The first node to use in the comparison
|
|
237
|
+
* @param nodeB The second node to use in the comparison
|
|
240
238
|
*
|
|
241
239
|
* @return A bitmask describing the input nodes' relative position.
|
|
242
240
|
*
|
|
@@ -247,47 +245,97 @@ if(idx>0&&nodes.lastIndexOf(node,idx-1)>=0){nodes.splice(idx,1);continue;}for(va
|
|
|
247
245
|
* remove any duplicate nodes. If the array contains nodes that do not belong
|
|
248
246
|
* to the same document, sort order is unspecified.
|
|
249
247
|
*
|
|
250
|
-
* @
|
|
248
|
+
* @param nodes Array of DOM nodes
|
|
251
249
|
* @returns collection of unique nodes, sorted in document order
|
|
252
|
-
*/function uniqueSort(nodes){nodes=nodes.filter(function(node,i,arr){return!arr.includes(node,i+1);});nodes.sort(function(a,b){var relative=compareDocumentPosition(a,b);if(relative&2/* PRECEDING */){return-1;}else if(relative&4/* FOLLOWING */){return 1;}return 0;});return nodes;}exports.uniqueSort=uniqueSort;},{"./tagtypes":15}],10:[function(require,module,exports){"use strict";function __export(m){for(var p in m){if(!exports.hasOwnProperty(p))exports[p]=m[p];}}Object.defineProperty(exports,"__esModule",{value:true});__export(require("./stringify"));__export(require("./traversal"));__export(require("./manipulation"));__export(require("./querying"));__export(require("./legacy"));__export(require("./helpers"));__export(require("./tagtypes"));},{"./helpers":9,"./legacy":11,"./manipulation":12,"./querying":13,"./stringify":14,"./tagtypes":15,"./traversal":16}],11:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var querying_1=require("./querying");var tagtypes_1=require("./tagtypes");function isTextNode(node){return node.type==="text"/* Text */;}/* eslint-disable @typescript-eslint/camelcase */var Checks={tag_name:function tag_name(name){if(typeof name==="function"){return function(elem){return tagtypes_1.isTag(elem)&&name(elem.name);};}else if(name==="*"){return tagtypes_1.isTag;}else{return function(elem){return tagtypes_1.isTag(elem)&&elem.name===name;};}},tag_type:function tag_type(type){if(typeof type==="function"){return function(elem){return type(elem.type);};}else{return function(elem){return elem.type===type;};}},tag_contains:function tag_contains(data){if(typeof data==="function"){return function(elem){return isTextNode(elem)&&data(elem.data);};}else{return function(elem){return isTextNode(elem)&&elem.data===data;};}}};/* eslint-enable @typescript-eslint/camelcase */function getAttribCheck(attrib,value){if(typeof value==="function"){return function(elem){return tagtypes_1.isTag(elem)&&value(elem.attribs[attrib]);};}else{return function(elem){return tagtypes_1.isTag(elem)&&elem.attribs[attrib]===value;};}}function combineFuncs(a,b){return function(elem){return a(elem)||b(elem);};}function compileTest(options){var funcs=Object.keys(options).map(function(key){var value=options[key]
|
|
253
|
-
return key in Checks?Checks[key](value):getAttribCheck(key,value);});return funcs.length===0?null:funcs.reduce(combineFuncs);}function testElement(options,element){var test=compileTest(options);return test?test(element):true;}exports.testElement=testElement;function getElements(options,element,recurse,limit){if(limit===void 0){limit=Infinity;}var test=compileTest(options);return test?querying_1.filter(test,element,recurse,limit):[];}exports.getElements=getElements;function getElementById(id,element,recurse){if(recurse===void 0){recurse=true;}if(!Array.isArray(element))element=[element];return querying_1.findOne(getAttribCheck("id",id),element,recurse);}exports.getElementById=getElementById;function getElementsByTagName(name,element,recurse,limit){if(limit===void 0){limit=Infinity;}return querying_1.filter(Checks.tag_name(name),element,recurse,limit);}exports.getElementsByTagName=getElementsByTagName;function getElementsByTagType(type,element,recurse,limit){if(recurse===void 0){recurse=true;}if(limit===void 0){limit=Infinity;}return querying_1.filter(Checks.tag_type(type),element,recurse,limit);}exports.getElementsByTagType=getElementsByTagType;},{"./querying":13,"./tagtypes":15}],12:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});/***
|
|
250
|
+
*/function uniqueSort(nodes){nodes=nodes.filter(function(node,i,arr){return!arr.includes(node,i+1);});nodes.sort(function(a,b){var relative=compareDocumentPosition(a,b);if(relative&2/* PRECEDING */){return-1;}else if(relative&4/* FOLLOWING */){return 1;}return 0;});return nodes;}exports.uniqueSort=uniqueSort;},{"./tagtypes":15}],10:[function(require,module,exports){"use strict";function __export(m){for(var p in m){if(!exports.hasOwnProperty(p))exports[p]=m[p];}}Object.defineProperty(exports,"__esModule",{value:true});__export(require("./stringify"));__export(require("./traversal"));__export(require("./manipulation"));__export(require("./querying"));__export(require("./legacy"));__export(require("./helpers"));__export(require("./tagtypes"));},{"./helpers":9,"./legacy":11,"./manipulation":12,"./querying":13,"./stringify":14,"./tagtypes":15,"./traversal":16}],11:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var querying_1=require("./querying");var tagtypes_1=require("./tagtypes");function isTextNode(node){return node.type==="text"/* Text */;}/* eslint-disable @typescript-eslint/camelcase */var Checks={tag_name:function tag_name(name){if(typeof name==="function"){return function(elem){return tagtypes_1.isTag(elem)&&name(elem.name);};}else if(name==="*"){return tagtypes_1.isTag;}else{return function(elem){return tagtypes_1.isTag(elem)&&elem.name===name;};}},tag_type:function tag_type(type){if(typeof type==="function"){return function(elem){return type(elem.type);};}else{return function(elem){return elem.type===type;};}},tag_contains:function tag_contains(data){if(typeof data==="function"){return function(elem){return isTextNode(elem)&&data(elem.data);};}else{return function(elem){return isTextNode(elem)&&elem.data===data;};}}};/* eslint-enable @typescript-eslint/camelcase */function getAttribCheck(attrib,value){if(typeof value==="function"){return function(elem){return tagtypes_1.isTag(elem)&&value(elem.attribs[attrib]);};}else{return function(elem){return tagtypes_1.isTag(elem)&&elem.attribs[attrib]===value;};}}function combineFuncs(a,b){return function(elem){return a(elem)||b(elem);};}function compileTest(options){var funcs=Object.keys(options).map(function(key){var value=options[key];return key in Checks?Checks[key](value):getAttribCheck(key,value);});return funcs.length===0?null:funcs.reduce(combineFuncs);}function testElement(options,element){var test=compileTest(options);return test?test(element):true;}exports.testElement=testElement;function getElements(options,element,recurse,limit){if(limit===void 0){limit=Infinity;}var test=compileTest(options);return test?querying_1.filter(test,element,recurse,limit):[];}exports.getElements=getElements;function getElementById(id,element,recurse){if(recurse===void 0){recurse=true;}if(!Array.isArray(element))element=[element];return querying_1.findOne(getAttribCheck("id",id),element,recurse);}exports.getElementById=getElementById;function getElementsByTagName(name,element,recurse,limit){if(limit===void 0){limit=Infinity;}return querying_1.filter(Checks.tag_name(name),element,recurse,limit);}exports.getElementsByTagName=getElementsByTagName;function getElementsByTagType(type,element,recurse,limit){if(recurse===void 0){recurse=true;}if(limit===void 0){limit=Infinity;}return querying_1.filter(Checks.tag_type(type),element,recurse,limit);}exports.getElementsByTagType=getElementsByTagType;},{"./querying":13,"./tagtypes":15}],12:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});/***
|
|
254
251
|
* Remove an element from the dom
|
|
255
252
|
*
|
|
256
|
-
* @
|
|
253
|
+
* @param elem The element to be removed
|
|
257
254
|
*/function removeElement(elem){if(elem.prev)elem.prev.next=elem.next;if(elem.next)elem.next.prev=elem.prev;if(elem.parent){var childs=elem.parent.children;childs.splice(childs.lastIndexOf(elem),1);}}exports.removeElement=removeElement;/***
|
|
258
255
|
* Replace an element in the dom
|
|
259
256
|
*
|
|
260
|
-
* @
|
|
261
|
-
* @
|
|
257
|
+
* @param elem The element to be replaced
|
|
258
|
+
* @param replacement The element to be added
|
|
262
259
|
*/function replaceElement(elem,replacement){var prev=replacement.prev=elem.prev;if(prev){prev.next=replacement;}var next=replacement.next=elem.next;if(next){next.prev=replacement;}var parent=replacement.parent=elem.parent;if(parent){var childs=parent.children;childs[childs.lastIndexOf(elem)]=replacement;}}exports.replaceElement=replaceElement;/***
|
|
263
260
|
* Append a child to an element
|
|
264
261
|
*
|
|
265
|
-
* @
|
|
266
|
-
* @
|
|
262
|
+
* @param elem The element to append to
|
|
263
|
+
* @param child The element to be added as a child
|
|
267
264
|
*/function appendChild(elem,child){child.parent=elem;if(elem.children.push(child)!==1){var sibling=elem.children[elem.children.length-2];sibling.next=child;child.prev=sibling;child.next=null;}}exports.appendChild=appendChild;/***
|
|
268
265
|
* Append an element after another
|
|
269
266
|
*
|
|
270
|
-
* @
|
|
271
|
-
* @
|
|
272
|
-
*/function append(elem,next){var parent=elem.parent
|
|
267
|
+
* @param elem The element to append to
|
|
268
|
+
* @param next The element be added
|
|
269
|
+
*/function append(elem,next){var parent=elem.parent;var currNext=elem.next;next.next=currNext;next.prev=elem;elem.next=next;next.parent=parent;if(currNext){currNext.prev=next;if(parent){var childs=parent.children;childs.splice(childs.lastIndexOf(currNext),0,next);}}else if(parent){parent.children.push(next);}}exports.append=append;/***
|
|
273
270
|
* Prepend an element before another
|
|
274
271
|
*
|
|
275
|
-
* @
|
|
276
|
-
* @
|
|
277
|
-
*/function prepend(elem,prev){var parent=elem.parent;if(parent){var childs=parent.children;childs.splice(childs.lastIndexOf(elem),0,prev);}if(elem.prev){elem.prev.next=prev;}prev.parent=parent;prev.prev=elem.prev;prev.next=elem;elem.prev=prev;}exports.prepend=prepend;},{}],13:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var tagtypes_1=require("./tagtypes")
|
|
278
|
-
|
|
272
|
+
* @param elem The element to append to
|
|
273
|
+
* @param prev The element be added
|
|
274
|
+
*/function prepend(elem,prev){var parent=elem.parent;if(parent){var childs=parent.children;childs.splice(childs.lastIndexOf(elem),0,prev);}if(elem.prev){elem.prev.next=prev;}prev.parent=parent;prev.prev=elem.prev;prev.next=elem;elem.prev=prev;}exports.prepend=prepend;},{}],13:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var tagtypes_1=require("./tagtypes");/**
|
|
275
|
+
* Search a node and its children for nodes passing a test function.
|
|
276
|
+
*
|
|
277
|
+
* @param test Function to test nodes on.
|
|
278
|
+
* @param element Element to search. Will be included in the result set if it matches.
|
|
279
|
+
* @param recurse Also consider child nodes.
|
|
280
|
+
* @param limit Maximum number of nodes to return.
|
|
281
|
+
*/function filter(test,node,recurse,limit){if(recurse===void 0){recurse=true;}if(limit===void 0){limit=Infinity;}if(!Array.isArray(node))node=[node];return find(test,node,recurse,limit);}exports.filter=filter;/**
|
|
282
|
+
* Like `filter`, but only works on an array of nodes.
|
|
283
|
+
*
|
|
284
|
+
* @param test Function to test nodes on.
|
|
285
|
+
* @param nodes Array of nodes to search.
|
|
286
|
+
* @param recurse Also consider child nodes.
|
|
287
|
+
* @param limit Maximum number of nodes to return.
|
|
288
|
+
*/function find(test,nodes,recurse,limit){var result=[];for(var _i=0,nodes_1=nodes;_i<nodes_1.length;_i++){var elem=nodes_1[_i];if(test(elem)){result.push(elem);if(--limit<=0)break;}if(recurse&&tagtypes_1.hasChildren(elem)&&elem.children.length>0){var children=find(test,elem.children,recurse,limit);result.push.apply(result,children);limit-=children.length;if(limit<=0)break;}}return result;}exports.find=find;/**
|
|
289
|
+
* Finds the first element inside of an array that matches a test function.
|
|
290
|
+
*
|
|
291
|
+
* @param test Function to test nodes on.
|
|
292
|
+
* @param nodes Array of nodes to search.
|
|
293
|
+
*/function findOneChild(test,nodes){return nodes.find(test);}exports.findOneChild=findOneChild;/**
|
|
294
|
+
* Finds one element in a tree that passes a test.
|
|
295
|
+
*
|
|
296
|
+
* @param test Function to test nodes on.
|
|
297
|
+
* @param nodes Array of nodes to search.
|
|
298
|
+
* @param recurse Also consider child nodes.
|
|
299
|
+
*/function findOne(test,nodes,recurse){if(recurse===void 0){recurse=true;}var elem=null;for(var i=0;i<nodes.length&&!elem;i++){var checked=nodes[i];if(!tagtypes_1.isTag(checked)){continue;}else if(test(checked)){elem=checked;}else if(recurse&&checked.children.length>0){elem=findOne(test,checked.children);}}return elem;}exports.findOne=findOne;/**
|
|
300
|
+
* Returns whether a tree of nodes contains at least one node passing a test.
|
|
301
|
+
*
|
|
302
|
+
* @param test Function to test nodes on.
|
|
303
|
+
* @param nodes Array of nodes to search.
|
|
304
|
+
*/function existsOne(test,nodes){return nodes.some(function(checked){return tagtypes_1.isTag(checked)&&(test(checked)||checked.children.length>0&&existsOne(test,checked.children));});}exports.existsOne=existsOne;/**
|
|
305
|
+
* Search and array of nodes and its children for nodes passing a test function.
|
|
306
|
+
*
|
|
307
|
+
* Same as `find`, only with less options, leading to reduced complexity.
|
|
308
|
+
*
|
|
309
|
+
* @param test Function to test nodes on.
|
|
310
|
+
* @param nodes Array of nodes to search.
|
|
311
|
+
*/function findAll(test,nodes){var _a;var result=[];var stack=nodes.filter(tagtypes_1.isTag);var elem;while(elem=stack.shift()){var children=(_a=elem.children)===null||_a===void 0?void 0:_a.filter(tagtypes_1.isTag);if(children&&children.length>0){stack.unshift.apply(stack,children);}if(test(elem))result.push(elem);}return result;}exports.findAll=findAll;},{"./tagtypes":15}],14:[function(require,module,exports){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{"default":mod};};Object.defineProperty(exports,"__esModule",{value:true});var tagtypes_1=require("./tagtypes");var dom_serializer_1=__importDefault(require("dom-serializer"));function getOuterHTML(node,options){return dom_serializer_1["default"](node,options);}exports.getOuterHTML=getOuterHTML;function getInnerHTML(node,options){return tagtypes_1.hasChildren(node)?node.children.map(function(node){return getOuterHTML(node,options);}).join(""):"";}exports.getInnerHTML=getInnerHTML;function getText(node){if(Array.isArray(node))return node.map(getText).join("");if(tagtypes_1.isTag(node))return node.name==="br"?"\n":getText(node.children);if(tagtypes_1.isCDATA(node))return getText(node.children);if(tagtypes_1.isText(node))return node.data;return"";}exports.getText=getText;},{"./tagtypes":15,"dom-serializer":5}],15:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var domelementtype_1=require("domelementtype");function isTag(node){return domelementtype_1.isTag(node);}exports.isTag=isTag;function isCDATA(node){return node.type==="cdata"/* CDATA */;}exports.isCDATA=isCDATA;function isText(node){return node.type==="text"/* Text */;}exports.isText=isText;function isComment(node){return node.type==="comment"/* Comment */;}exports.isComment=isComment;function hasChildren(node){return Object.prototype.hasOwnProperty.call(node,"children");}exports.hasChildren=hasChildren;},{"domelementtype":6}],16:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});function getChildren(elem){return elem.children||null;}exports.getChildren=getChildren;function getParent(elem){return elem.parent||null;}exports.getParent=getParent;function getSiblings(elem){var parent=getParent(elem);return parent?getChildren(parent):[elem];}exports.getSiblings=getSiblings;function getAttributeValue(elem,name){var _a;return(_a=elem.attribs)===null||_a===void 0?void 0:_a[name];}exports.getAttributeValue=getAttributeValue;function hasAttrib(elem,name){return!!elem.attribs&&Object.prototype.hasOwnProperty.call(elem.attribs,name)&&elem.attribs[name]!=null;}exports.hasAttrib=hasAttrib;/***
|
|
279
312
|
* Returns the name property of an element
|
|
280
313
|
*
|
|
281
|
-
* @
|
|
314
|
+
* @param elem The element to get the name for
|
|
282
315
|
*/function getName(elem){return elem.name;}exports.getName=getName;},{}],17:[function(require,module,exports){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{"default":mod};};Object.defineProperty(exports,"__esModule",{value:true});var entities_json_1=__importDefault(require("./maps/entities.json"));var legacy_json_1=__importDefault(require("./maps/legacy.json"));var xml_json_1=__importDefault(require("./maps/xml.json"));var decode_codepoint_1=__importDefault(require("./decode_codepoint"));exports.decodeXML=getStrictDecoder(xml_json_1["default"]);exports.decodeHTMLStrict=getStrictDecoder(entities_json_1["default"]);function getStrictDecoder(map){var keys=Object.keys(map).join("|");var replace=getReplacer(map);keys+="|#[xX][\\da-fA-F]+|#\\d+";var re=new RegExp("&(?:"+keys+");","g");return function(str){return String(str).replace(re,replace);};}var sorter=function sorter(a,b){return a<b?1:-1;};exports.decodeHTML=function(){var legacy=Object.keys(legacy_json_1["default"]).sort(sorter);var keys=Object.keys(entities_json_1["default"]).sort(sorter);for(var i=0,j=0;i<keys.length;i++){if(legacy[j]===keys[i]){keys[i]+=";?";j++;}else{keys[i]+=";";}}var re=new RegExp("&(?:"+keys.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g");var replace=getReplacer(entities_json_1["default"]);function replacer(str){if(str.substr(-1)!==";")str+=";";return replace(str);}//TODO consider creating a merged map
|
|
283
|
-
return function(str){return String(str).replace(re,replacer);};}();function getReplacer(map){return function replace(str){if(str.charAt(1)==="#"){
|
|
284
|
-
function decodeCodePoint(codePoint){if(codePoint>=0xd800&&codePoint<=0xdfff||codePoint>0x10ffff){return"\uFFFD";}if(codePoint in decode_json_1["default"]){//
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
function
|
|
290
|
-
|
|
316
|
+
return function(str){return String(str).replace(re,replacer);};}();function getReplacer(map){return function replace(str){if(str.charAt(1)==="#"){var secondChar=str.charAt(2);if(secondChar==="X"||secondChar==="x"){return decode_codepoint_1["default"](parseInt(str.substr(3),16));}return decode_codepoint_1["default"](parseInt(str.substr(2),10));}return map[str.slice(1,-1)];};}},{"./decode_codepoint":18,"./maps/entities.json":22,"./maps/legacy.json":23,"./maps/xml.json":24}],18:[function(require,module,exports){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{"default":mod};};Object.defineProperty(exports,"__esModule",{value:true});var decode_json_1=__importDefault(require("./maps/decode.json"));// modified version of https://github.com/mathiasbynens/he/blob/master/src/he.js#L94-L119
|
|
317
|
+
function decodeCodePoint(codePoint){if(codePoint>=0xd800&&codePoint<=0xdfff||codePoint>0x10ffff){return"\uFFFD";}if(codePoint in decode_json_1["default"]){codePoint=decode_json_1["default"][codePoint];}var output="";if(codePoint>0xffff){codePoint-=0x10000;output+=String.fromCharCode(codePoint>>>10&0x3ff|0xd800);codePoint=0xdc00|codePoint&0x3ff;}output+=String.fromCharCode(codePoint);return output;}exports["default"]=decodeCodePoint;},{"./maps/decode.json":21}],19:[function(require,module,exports){"use strict";var __importDefault=this&&this.__importDefault||function(mod){return mod&&mod.__esModule?mod:{"default":mod};};Object.defineProperty(exports,"__esModule",{value:true});var xml_json_1=__importDefault(require("./maps/xml.json"));var inverseXML=getInverseObj(xml_json_1["default"]);var xmlReplacer=getInverseReplacer(inverseXML);exports.encodeXML=getInverse(inverseXML,xmlReplacer);var entities_json_1=__importDefault(require("./maps/entities.json"));var inverseHTML=getInverseObj(entities_json_1["default"]);var htmlReplacer=getInverseReplacer(inverseHTML);exports.encodeHTML=getInverse(inverseHTML,htmlReplacer);function getInverseObj(obj){return Object.keys(obj).sort().reduce(function(inverse,name){inverse[obj[name]]="&"+name+";";return inverse;},{});}function getInverseReplacer(inverse){var single=[];var multiple=[];for(var _i=0,_a=Object.keys(inverse);_i<_a.length;_i++){var k=_a[_i];if(k.length===1){// Add value to single array
|
|
318
|
+
single.push("\\"+k);}else{// Add value to multiple array
|
|
319
|
+
multiple.push(k);}}// Add ranges to single characters.
|
|
320
|
+
single.sort();for(var start=0;start<single.length-1;start++){// Find the end of a run of characters
|
|
321
|
+
var end=start;while(end<single.length-1&&single[end].charCodeAt(1)+1===single[end+1].charCodeAt(1)){end+=1;}var count=1+end-start;// We want to replace at least three characters
|
|
322
|
+
if(count<3)continue;single.splice(start,count,single[start]+"-"+single[end]);}multiple.unshift("["+single.join("")+"]");return new RegExp(multiple.join("|"),"g");}var reNonASCII=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g;function singleCharReplacer(c){// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
323
|
+
return"&#x"+c.codePointAt(0).toString(16).toUpperCase()+";";}function getInverse(inverse,re){return function(data){return data.replace(re,function(name){return inverse[name];}).replace(reNonASCII,singleCharReplacer);};}var reXmlChars=getInverseReplacer(inverseXML);function escape(data){return data.replace(reXmlChars,singleCharReplacer).replace(reNonASCII,singleCharReplacer);}exports.escape=escape;},{"./maps/entities.json":22,"./maps/xml.json":24}],20:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var decode_1=require("./decode");var encode_1=require("./encode");/**
|
|
324
|
+
* Decodes a string with entities.
|
|
325
|
+
*
|
|
326
|
+
* @param data String to decode.
|
|
327
|
+
* @param level Optional level to decode at. 0 = XML, 1 = HTML. Default is 0.
|
|
328
|
+
*/function decode(data,level){return(!level||level<=0?decode_1.decodeXML:decode_1.decodeHTML)(data);}exports.decode=decode;/**
|
|
329
|
+
* Decodes a string with entities. Does not allow missing trailing semicolons for entities.
|
|
330
|
+
*
|
|
331
|
+
* @param data String to decode.
|
|
332
|
+
* @param level Optional level to decode at. 0 = XML, 1 = HTML. Default is 0.
|
|
333
|
+
*/function decodeStrict(data,level){return(!level||level<=0?decode_1.decodeXML:decode_1.decodeHTMLStrict)(data);}exports.decodeStrict=decodeStrict;/**
|
|
334
|
+
* Encodes a string with entities.
|
|
335
|
+
*
|
|
336
|
+
* @param data String to encode.
|
|
337
|
+
* @param level Optional level to encode at. 0 = XML, 1 = HTML. Default is 0.
|
|
338
|
+
*/function encode(data,level){return(!level||level<=0?encode_1.encodeXML:encode_1.encodeHTML)(data);}exports.encode=encode;var encode_2=require("./encode");exports.encodeXML=encode_2.encodeXML;exports.encodeHTML=encode_2.encodeHTML;exports.escape=encode_2.escape;// Legacy aliases
|
|
291
339
|
exports.encodeHTML4=encode_2.encodeHTML;exports.encodeHTML5=encode_2.encodeHTML;var decode_2=require("./decode");exports.decodeXML=decode_2.decodeXML;exports.decodeHTML=decode_2.decodeHTML;exports.decodeHTMLStrict=decode_2.decodeHTMLStrict;// Legacy aliases
|
|
292
340
|
exports.decodeHTML4=decode_2.decodeHTML;exports.decodeHTML5=decode_2.decodeHTML;exports.decodeHTML4Strict=decode_2.decodeHTMLStrict;exports.decodeHTML5Strict=decode_2.decodeHTMLStrict;exports.decodeXMLStrict=decode_2.decodeXML;},{"./decode":17,"./encode":19}],21:[function(require,module,exports){module.exports={"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376};},{}],22:[function(require,module,exports){module.exports={"Aacute":"\xC1","aacute":"\xE1","Abreve":"\u0102","abreve":"\u0103","ac":"\u223E","acd":"\u223F","acE":"\u223E\u0333","Acirc":"\xC2","acirc":"\xE2","acute":"\xB4","Acy":"\u0410","acy":"\u0430","AElig":"\xC6","aelig":"\xE6","af":"\u2061","Afr":"\uD835\uDD04","afr":"\uD835\uDD1E","Agrave":"\xC0","agrave":"\xE0","alefsym":"\u2135","aleph":"\u2135","Alpha":"\u0391","alpha":"\u03B1","Amacr":"\u0100","amacr":"\u0101","amalg":"\u2A3F","amp":"&","AMP":"&","andand":"\u2A55","And":"\u2A53","and":"\u2227","andd":"\u2A5C","andslope":"\u2A58","andv":"\u2A5A","ang":"\u2220","ange":"\u29A4","angle":"\u2220","angmsdaa":"\u29A8","angmsdab":"\u29A9","angmsdac":"\u29AA","angmsdad":"\u29AB","angmsdae":"\u29AC","angmsdaf":"\u29AD","angmsdag":"\u29AE","angmsdah":"\u29AF","angmsd":"\u2221","angrt":"\u221F","angrtvb":"\u22BE","angrtvbd":"\u299D","angsph":"\u2222","angst":"\xC5","angzarr":"\u237C","Aogon":"\u0104","aogon":"\u0105","Aopf":"\uD835\uDD38","aopf":"\uD835\uDD52","apacir":"\u2A6F","ap":"\u2248","apE":"\u2A70","ape":"\u224A","apid":"\u224B","apos":"'","ApplyFunction":"\u2061","approx":"\u2248","approxeq":"\u224A","Aring":"\xC5","aring":"\xE5","Ascr":"\uD835\uDC9C","ascr":"\uD835\uDCB6","Assign":"\u2254","ast":"*","asymp":"\u2248","asympeq":"\u224D","Atilde":"\xC3","atilde":"\xE3","Auml":"\xC4","auml":"\xE4","awconint":"\u2233","awint":"\u2A11","backcong":"\u224C","backepsilon":"\u03F6","backprime":"\u2035","backsim":"\u223D","backsimeq":"\u22CD","Backslash":"\u2216","Barv":"\u2AE7","barvee":"\u22BD","barwed":"\u2305","Barwed":"\u2306","barwedge":"\u2305","bbrk":"\u23B5","bbrktbrk":"\u23B6","bcong":"\u224C","Bcy":"\u0411","bcy":"\u0431","bdquo":"\u201E","becaus":"\u2235","because":"\u2235","Because":"\u2235","bemptyv":"\u29B0","bepsi":"\u03F6","bernou":"\u212C","Bernoullis":"\u212C","Beta":"\u0392","beta":"\u03B2","beth":"\u2136","between":"\u226C","Bfr":"\uD835\uDD05","bfr":"\uD835\uDD1F","bigcap":"\u22C2","bigcirc":"\u25EF","bigcup":"\u22C3","bigodot":"\u2A00","bigoplus":"\u2A01","bigotimes":"\u2A02","bigsqcup":"\u2A06","bigstar":"\u2605","bigtriangledown":"\u25BD","bigtriangleup":"\u25B3","biguplus":"\u2A04","bigvee":"\u22C1","bigwedge":"\u22C0","bkarow":"\u290D","blacklozenge":"\u29EB","blacksquare":"\u25AA","blacktriangle":"\u25B4","blacktriangledown":"\u25BE","blacktriangleleft":"\u25C2","blacktriangleright":"\u25B8","blank":"\u2423","blk12":"\u2592","blk14":"\u2591","blk34":"\u2593","block":"\u2588","bne":"=\u20E5","bnequiv":"\u2261\u20E5","bNot":"\u2AED","bnot":"\u2310","Bopf":"\uD835\uDD39","bopf":"\uD835\uDD53","bot":"\u22A5","bottom":"\u22A5","bowtie":"\u22C8","boxbox":"\u29C9","boxdl":"\u2510","boxdL":"\u2555","boxDl":"\u2556","boxDL":"\u2557","boxdr":"\u250C","boxdR":"\u2552","boxDr":"\u2553","boxDR":"\u2554","boxh":"\u2500","boxH":"\u2550","boxhd":"\u252C","boxHd":"\u2564","boxhD":"\u2565","boxHD":"\u2566","boxhu":"\u2534","boxHu":"\u2567","boxhU":"\u2568","boxHU":"\u2569","boxminus":"\u229F","boxplus":"\u229E","boxtimes":"\u22A0","boxul":"\u2518","boxuL":"\u255B","boxUl":"\u255C","boxUL":"\u255D","boxur":"\u2514","boxuR":"\u2558","boxUr":"\u2559","boxUR":"\u255A","boxv":"\u2502","boxV":"\u2551","boxvh":"\u253C","boxvH":"\u256A","boxVh":"\u256B","boxVH":"\u256C","boxvl":"\u2524","boxvL":"\u2561","boxVl":"\u2562","boxVL":"\u2563","boxvr":"\u251C","boxvR":"\u255E","boxVr":"\u255F","boxVR":"\u2560","bprime":"\u2035","breve":"\u02D8","Breve":"\u02D8","brvbar":"\xA6","bscr":"\uD835\uDCB7","Bscr":"\u212C","bsemi":"\u204F","bsim":"\u223D","bsime":"\u22CD","bsolb":"\u29C5","bsol":"\\","bsolhsub":"\u27C8","bull":"\u2022","bullet":"\u2022","bump":"\u224E","bumpE":"\u2AAE","bumpe":"\u224F","Bumpeq":"\u224E","bumpeq":"\u224F","Cacute":"\u0106","cacute":"\u0107","capand":"\u2A44","capbrcup":"\u2A49","capcap":"\u2A4B","cap":"\u2229","Cap":"\u22D2","capcup":"\u2A47","capdot":"\u2A40","CapitalDifferentialD":"\u2145","caps":"\u2229\uFE00","caret":"\u2041","caron":"\u02C7","Cayleys":"\u212D","ccaps":"\u2A4D","Ccaron":"\u010C","ccaron":"\u010D","Ccedil":"\xC7","ccedil":"\xE7","Ccirc":"\u0108","ccirc":"\u0109","Cconint":"\u2230","ccups":"\u2A4C","ccupssm":"\u2A50","Cdot":"\u010A","cdot":"\u010B","cedil":"\xB8","Cedilla":"\xB8","cemptyv":"\u29B2","cent":"\xA2","centerdot":"\xB7","CenterDot":"\xB7","cfr":"\uD835\uDD20","Cfr":"\u212D","CHcy":"\u0427","chcy":"\u0447","check":"\u2713","checkmark":"\u2713","Chi":"\u03A7","chi":"\u03C7","circ":"\u02C6","circeq":"\u2257","circlearrowleft":"\u21BA","circlearrowright":"\u21BB","circledast":"\u229B","circledcirc":"\u229A","circleddash":"\u229D","CircleDot":"\u2299","circledR":"\xAE","circledS":"\u24C8","CircleMinus":"\u2296","CirclePlus":"\u2295","CircleTimes":"\u2297","cir":"\u25CB","cirE":"\u29C3","cire":"\u2257","cirfnint":"\u2A10","cirmid":"\u2AEF","cirscir":"\u29C2","ClockwiseContourIntegral":"\u2232","CloseCurlyDoubleQuote":"\u201D","CloseCurlyQuote":"\u2019","clubs":"\u2663","clubsuit":"\u2663","colon":":","Colon":"\u2237","Colone":"\u2A74","colone":"\u2254","coloneq":"\u2254","comma":",","commat":"@","comp":"\u2201","compfn":"\u2218","complement":"\u2201","complexes":"\u2102","cong":"\u2245","congdot":"\u2A6D","Congruent":"\u2261","conint":"\u222E","Conint":"\u222F","ContourIntegral":"\u222E","copf":"\uD835\uDD54","Copf":"\u2102","coprod":"\u2210","Coproduct":"\u2210","copy":"\xA9","COPY":"\xA9","copysr":"\u2117","CounterClockwiseContourIntegral":"\u2233","crarr":"\u21B5","cross":"\u2717","Cross":"\u2A2F","Cscr":"\uD835\uDC9E","cscr":"\uD835\uDCB8","csub":"\u2ACF","csube":"\u2AD1","csup":"\u2AD0","csupe":"\u2AD2","ctdot":"\u22EF","cudarrl":"\u2938","cudarrr":"\u2935","cuepr":"\u22DE","cuesc":"\u22DF","cularr":"\u21B6","cularrp":"\u293D","cupbrcap":"\u2A48","cupcap":"\u2A46","CupCap":"\u224D","cup":"\u222A","Cup":"\u22D3","cupcup":"\u2A4A","cupdot":"\u228D","cupor":"\u2A45","cups":"\u222A\uFE00","curarr":"\u21B7","curarrm":"\u293C","curlyeqprec":"\u22DE","curlyeqsucc":"\u22DF","curlyvee":"\u22CE","curlywedge":"\u22CF","curren":"\xA4","curvearrowleft":"\u21B6","curvearrowright":"\u21B7","cuvee":"\u22CE","cuwed":"\u22CF","cwconint":"\u2232","cwint":"\u2231","cylcty":"\u232D","dagger":"\u2020","Dagger":"\u2021","daleth":"\u2138","darr":"\u2193","Darr":"\u21A1","dArr":"\u21D3","dash":"\u2010","Dashv":"\u2AE4","dashv":"\u22A3","dbkarow":"\u290F","dblac":"\u02DD","Dcaron":"\u010E","dcaron":"\u010F","Dcy":"\u0414","dcy":"\u0434","ddagger":"\u2021","ddarr":"\u21CA","DD":"\u2145","dd":"\u2146","DDotrahd":"\u2911","ddotseq":"\u2A77","deg":"\xB0","Del":"\u2207","Delta":"\u0394","delta":"\u03B4","demptyv":"\u29B1","dfisht":"\u297F","Dfr":"\uD835\uDD07","dfr":"\uD835\uDD21","dHar":"\u2965","dharl":"\u21C3","dharr":"\u21C2","DiacriticalAcute":"\xB4","DiacriticalDot":"\u02D9","DiacriticalDoubleAcute":"\u02DD","DiacriticalGrave":"`","DiacriticalTilde":"\u02DC","diam":"\u22C4","diamond":"\u22C4","Diamond":"\u22C4","diamondsuit":"\u2666","diams":"\u2666","die":"\xA8","DifferentialD":"\u2146","digamma":"\u03DD","disin":"\u22F2","div":"\xF7","divide":"\xF7","divideontimes":"\u22C7","divonx":"\u22C7","DJcy":"\u0402","djcy":"\u0452","dlcorn":"\u231E","dlcrop":"\u230D","dollar":"$","Dopf":"\uD835\uDD3B","dopf":"\uD835\uDD55","Dot":"\xA8","dot":"\u02D9","DotDot":"\u20DC","doteq":"\u2250","doteqdot":"\u2251","DotEqual":"\u2250","dotminus":"\u2238","dotplus":"\u2214","dotsquare":"\u22A1","doublebarwedge":"\u2306","DoubleContourIntegral":"\u222F","DoubleDot":"\xA8","DoubleDownArrow":"\u21D3","DoubleLeftArrow":"\u21D0","DoubleLeftRightArrow":"\u21D4","DoubleLeftTee":"\u2AE4","DoubleLongLeftArrow":"\u27F8","DoubleLongLeftRightArrow":"\u27FA","DoubleLongRightArrow":"\u27F9","DoubleRightArrow":"\u21D2","DoubleRightTee":"\u22A8","DoubleUpArrow":"\u21D1","DoubleUpDownArrow":"\u21D5","DoubleVerticalBar":"\u2225","DownArrowBar":"\u2913","downarrow":"\u2193","DownArrow":"\u2193","Downarrow":"\u21D3","DownArrowUpArrow":"\u21F5","DownBreve":"\u0311","downdownarrows":"\u21CA","downharpoonleft":"\u21C3","downharpoonright":"\u21C2","DownLeftRightVector":"\u2950","DownLeftTeeVector":"\u295E","DownLeftVectorBar":"\u2956","DownLeftVector":"\u21BD","DownRightTeeVector":"\u295F","DownRightVectorBar":"\u2957","DownRightVector":"\u21C1","DownTeeArrow":"\u21A7","DownTee":"\u22A4","drbkarow":"\u2910","drcorn":"\u231F","drcrop":"\u230C","Dscr":"\uD835\uDC9F","dscr":"\uD835\uDCB9","DScy":"\u0405","dscy":"\u0455","dsol":"\u29F6","Dstrok":"\u0110","dstrok":"\u0111","dtdot":"\u22F1","dtri":"\u25BF","dtrif":"\u25BE","duarr":"\u21F5","duhar":"\u296F","dwangle":"\u29A6","DZcy":"\u040F","dzcy":"\u045F","dzigrarr":"\u27FF","Eacute":"\xC9","eacute":"\xE9","easter":"\u2A6E","Ecaron":"\u011A","ecaron":"\u011B","Ecirc":"\xCA","ecirc":"\xEA","ecir":"\u2256","ecolon":"\u2255","Ecy":"\u042D","ecy":"\u044D","eDDot":"\u2A77","Edot":"\u0116","edot":"\u0117","eDot":"\u2251","ee":"\u2147","efDot":"\u2252","Efr":"\uD835\uDD08","efr":"\uD835\uDD22","eg":"\u2A9A","Egrave":"\xC8","egrave":"\xE8","egs":"\u2A96","egsdot":"\u2A98","el":"\u2A99","Element":"\u2208","elinters":"\u23E7","ell":"\u2113","els":"\u2A95","elsdot":"\u2A97","Emacr":"\u0112","emacr":"\u0113","empty":"\u2205","emptyset":"\u2205","EmptySmallSquare":"\u25FB","emptyv":"\u2205","EmptyVerySmallSquare":"\u25AB","emsp13":"\u2004","emsp14":"\u2005","emsp":"\u2003","ENG":"\u014A","eng":"\u014B","ensp":"\u2002","Eogon":"\u0118","eogon":"\u0119","Eopf":"\uD835\uDD3C","eopf":"\uD835\uDD56","epar":"\u22D5","eparsl":"\u29E3","eplus":"\u2A71","epsi":"\u03B5","Epsilon":"\u0395","epsilon":"\u03B5","epsiv":"\u03F5","eqcirc":"\u2256","eqcolon":"\u2255","eqsim":"\u2242","eqslantgtr":"\u2A96","eqslantless":"\u2A95","Equal":"\u2A75","equals":"=","EqualTilde":"\u2242","equest":"\u225F","Equilibrium":"\u21CC","equiv":"\u2261","equivDD":"\u2A78","eqvparsl":"\u29E5","erarr":"\u2971","erDot":"\u2253","escr":"\u212F","Escr":"\u2130","esdot":"\u2250","Esim":"\u2A73","esim":"\u2242","Eta":"\u0397","eta":"\u03B7","ETH":"\xD0","eth":"\xF0","Euml":"\xCB","euml":"\xEB","euro":"\u20AC","excl":"!","exist":"\u2203","Exists":"\u2203","expectation":"\u2130","exponentiale":"\u2147","ExponentialE":"\u2147","fallingdotseq":"\u2252","Fcy":"\u0424","fcy":"\u0444","female":"\u2640","ffilig":"\uFB03","fflig":"\uFB00","ffllig":"\uFB04","Ffr":"\uD835\uDD09","ffr":"\uD835\uDD23","filig":"\uFB01","FilledSmallSquare":"\u25FC","FilledVerySmallSquare":"\u25AA","fjlig":"fj","flat":"\u266D","fllig":"\uFB02","fltns":"\u25B1","fnof":"\u0192","Fopf":"\uD835\uDD3D","fopf":"\uD835\uDD57","forall":"\u2200","ForAll":"\u2200","fork":"\u22D4","forkv":"\u2AD9","Fouriertrf":"\u2131","fpartint":"\u2A0D","frac12":"\xBD","frac13":"\u2153","frac14":"\xBC","frac15":"\u2155","frac16":"\u2159","frac18":"\u215B","frac23":"\u2154","frac25":"\u2156","frac34":"\xBE","frac35":"\u2157","frac38":"\u215C","frac45":"\u2158","frac56":"\u215A","frac58":"\u215D","frac78":"\u215E","frasl":"\u2044","frown":"\u2322","fscr":"\uD835\uDCBB","Fscr":"\u2131","gacute":"\u01F5","Gamma":"\u0393","gamma":"\u03B3","Gammad":"\u03DC","gammad":"\u03DD","gap":"\u2A86","Gbreve":"\u011E","gbreve":"\u011F","Gcedil":"\u0122","Gcirc":"\u011C","gcirc":"\u011D","Gcy":"\u0413","gcy":"\u0433","Gdot":"\u0120","gdot":"\u0121","ge":"\u2265","gE":"\u2267","gEl":"\u2A8C","gel":"\u22DB","geq":"\u2265","geqq":"\u2267","geqslant":"\u2A7E","gescc":"\u2AA9","ges":"\u2A7E","gesdot":"\u2A80","gesdoto":"\u2A82","gesdotol":"\u2A84","gesl":"\u22DB\uFE00","gesles":"\u2A94","Gfr":"\uD835\uDD0A","gfr":"\uD835\uDD24","gg":"\u226B","Gg":"\u22D9","ggg":"\u22D9","gimel":"\u2137","GJcy":"\u0403","gjcy":"\u0453","gla":"\u2AA5","gl":"\u2277","glE":"\u2A92","glj":"\u2AA4","gnap":"\u2A8A","gnapprox":"\u2A8A","gne":"\u2A88","gnE":"\u2269","gneq":"\u2A88","gneqq":"\u2269","gnsim":"\u22E7","Gopf":"\uD835\uDD3E","gopf":"\uD835\uDD58","grave":"`","GreaterEqual":"\u2265","GreaterEqualLess":"\u22DB","GreaterFullEqual":"\u2267","GreaterGreater":"\u2AA2","GreaterLess":"\u2277","GreaterSlantEqual":"\u2A7E","GreaterTilde":"\u2273","Gscr":"\uD835\uDCA2","gscr":"\u210A","gsim":"\u2273","gsime":"\u2A8E","gsiml":"\u2A90","gtcc":"\u2AA7","gtcir":"\u2A7A","gt":">","GT":">","Gt":"\u226B","gtdot":"\u22D7","gtlPar":"\u2995","gtquest":"\u2A7C","gtrapprox":"\u2A86","gtrarr":"\u2978","gtrdot":"\u22D7","gtreqless":"\u22DB","gtreqqless":"\u2A8C","gtrless":"\u2277","gtrsim":"\u2273","gvertneqq":"\u2269\uFE00","gvnE":"\u2269\uFE00","Hacek":"\u02C7","hairsp":"\u200A","half":"\xBD","hamilt":"\u210B","HARDcy":"\u042A","hardcy":"\u044A","harrcir":"\u2948","harr":"\u2194","hArr":"\u21D4","harrw":"\u21AD","Hat":"^","hbar":"\u210F","Hcirc":"\u0124","hcirc":"\u0125","hearts":"\u2665","heartsuit":"\u2665","hellip":"\u2026","hercon":"\u22B9","hfr":"\uD835\uDD25","Hfr":"\u210C","HilbertSpace":"\u210B","hksearow":"\u2925","hkswarow":"\u2926","hoarr":"\u21FF","homtht":"\u223B","hookleftarrow":"\u21A9","hookrightarrow":"\u21AA","hopf":"\uD835\uDD59","Hopf":"\u210D","horbar":"\u2015","HorizontalLine":"\u2500","hscr":"\uD835\uDCBD","Hscr":"\u210B","hslash":"\u210F","Hstrok":"\u0126","hstrok":"\u0127","HumpDownHump":"\u224E","HumpEqual":"\u224F","hybull":"\u2043","hyphen":"\u2010","Iacute":"\xCD","iacute":"\xED","ic":"\u2063","Icirc":"\xCE","icirc":"\xEE","Icy":"\u0418","icy":"\u0438","Idot":"\u0130","IEcy":"\u0415","iecy":"\u0435","iexcl":"\xA1","iff":"\u21D4","ifr":"\uD835\uDD26","Ifr":"\u2111","Igrave":"\xCC","igrave":"\xEC","ii":"\u2148","iiiint":"\u2A0C","iiint":"\u222D","iinfin":"\u29DC","iiota":"\u2129","IJlig":"\u0132","ijlig":"\u0133","Imacr":"\u012A","imacr":"\u012B","image":"\u2111","ImaginaryI":"\u2148","imagline":"\u2110","imagpart":"\u2111","imath":"\u0131","Im":"\u2111","imof":"\u22B7","imped":"\u01B5","Implies":"\u21D2","incare":"\u2105","in":"\u2208","infin":"\u221E","infintie":"\u29DD","inodot":"\u0131","intcal":"\u22BA","int":"\u222B","Int":"\u222C","integers":"\u2124","Integral":"\u222B","intercal":"\u22BA","Intersection":"\u22C2","intlarhk":"\u2A17","intprod":"\u2A3C","InvisibleComma":"\u2063","InvisibleTimes":"\u2062","IOcy":"\u0401","iocy":"\u0451","Iogon":"\u012E","iogon":"\u012F","Iopf":"\uD835\uDD40","iopf":"\uD835\uDD5A","Iota":"\u0399","iota":"\u03B9","iprod":"\u2A3C","iquest":"\xBF","iscr":"\uD835\uDCBE","Iscr":"\u2110","isin":"\u2208","isindot":"\u22F5","isinE":"\u22F9","isins":"\u22F4","isinsv":"\u22F3","isinv":"\u2208","it":"\u2062","Itilde":"\u0128","itilde":"\u0129","Iukcy":"\u0406","iukcy":"\u0456","Iuml":"\xCF","iuml":"\xEF","Jcirc":"\u0134","jcirc":"\u0135","Jcy":"\u0419","jcy":"\u0439","Jfr":"\uD835\uDD0D","jfr":"\uD835\uDD27","jmath":"\u0237","Jopf":"\uD835\uDD41","jopf":"\uD835\uDD5B","Jscr":"\uD835\uDCA5","jscr":"\uD835\uDCBF","Jsercy":"\u0408","jsercy":"\u0458","Jukcy":"\u0404","jukcy":"\u0454","Kappa":"\u039A","kappa":"\u03BA","kappav":"\u03F0","Kcedil":"\u0136","kcedil":"\u0137","Kcy":"\u041A","kcy":"\u043A","Kfr":"\uD835\uDD0E","kfr":"\uD835\uDD28","kgreen":"\u0138","KHcy":"\u0425","khcy":"\u0445","KJcy":"\u040C","kjcy":"\u045C","Kopf":"\uD835\uDD42","kopf":"\uD835\uDD5C","Kscr":"\uD835\uDCA6","kscr":"\uD835\uDCC0","lAarr":"\u21DA","Lacute":"\u0139","lacute":"\u013A","laemptyv":"\u29B4","lagran":"\u2112","Lambda":"\u039B","lambda":"\u03BB","lang":"\u27E8","Lang":"\u27EA","langd":"\u2991","langle":"\u27E8","lap":"\u2A85","Laplacetrf":"\u2112","laquo":"\xAB","larrb":"\u21E4","larrbfs":"\u291F","larr":"\u2190","Larr":"\u219E","lArr":"\u21D0","larrfs":"\u291D","larrhk":"\u21A9","larrlp":"\u21AB","larrpl":"\u2939","larrsim":"\u2973","larrtl":"\u21A2","latail":"\u2919","lAtail":"\u291B","lat":"\u2AAB","late":"\u2AAD","lates":"\u2AAD\uFE00","lbarr":"\u290C","lBarr":"\u290E","lbbrk":"\u2772","lbrace":"{","lbrack":"[","lbrke":"\u298B","lbrksld":"\u298F","lbrkslu":"\u298D","Lcaron":"\u013D","lcaron":"\u013E","Lcedil":"\u013B","lcedil":"\u013C","lceil":"\u2308","lcub":"{","Lcy":"\u041B","lcy":"\u043B","ldca":"\u2936","ldquo":"\u201C","ldquor":"\u201E","ldrdhar":"\u2967","ldrushar":"\u294B","ldsh":"\u21B2","le":"\u2264","lE":"\u2266","LeftAngleBracket":"\u27E8","LeftArrowBar":"\u21E4","leftarrow":"\u2190","LeftArrow":"\u2190","Leftarrow":"\u21D0","LeftArrowRightArrow":"\u21C6","leftarrowtail":"\u21A2","LeftCeiling":"\u2308","LeftDoubleBracket":"\u27E6","LeftDownTeeVector":"\u2961","LeftDownVectorBar":"\u2959","LeftDownVector":"\u21C3","LeftFloor":"\u230A","leftharpoondown":"\u21BD","leftharpoonup":"\u21BC","leftleftarrows":"\u21C7","leftrightarrow":"\u2194","LeftRightArrow":"\u2194","Leftrightarrow":"\u21D4","leftrightarrows":"\u21C6","leftrightharpoons":"\u21CB","leftrightsquigarrow":"\u21AD","LeftRightVector":"\u294E","LeftTeeArrow":"\u21A4","LeftTee":"\u22A3","LeftTeeVector":"\u295A","leftthreetimes":"\u22CB","LeftTriangleBar":"\u29CF","LeftTriangle":"\u22B2","LeftTriangleEqual":"\u22B4","LeftUpDownVector":"\u2951","LeftUpTeeVector":"\u2960","LeftUpVectorBar":"\u2958","LeftUpVector":"\u21BF","LeftVectorBar":"\u2952","LeftVector":"\u21BC","lEg":"\u2A8B","leg":"\u22DA","leq":"\u2264","leqq":"\u2266","leqslant":"\u2A7D","lescc":"\u2AA8","les":"\u2A7D","lesdot":"\u2A7F","lesdoto":"\u2A81","lesdotor":"\u2A83","lesg":"\u22DA\uFE00","lesges":"\u2A93","lessapprox":"\u2A85","lessdot":"\u22D6","lesseqgtr":"\u22DA","lesseqqgtr":"\u2A8B","LessEqualGreater":"\u22DA","LessFullEqual":"\u2266","LessGreater":"\u2276","lessgtr":"\u2276","LessLess":"\u2AA1","lesssim":"\u2272","LessSlantEqual":"\u2A7D","LessTilde":"\u2272","lfisht":"\u297C","lfloor":"\u230A","Lfr":"\uD835\uDD0F","lfr":"\uD835\uDD29","lg":"\u2276","lgE":"\u2A91","lHar":"\u2962","lhard":"\u21BD","lharu":"\u21BC","lharul":"\u296A","lhblk":"\u2584","LJcy":"\u0409","ljcy":"\u0459","llarr":"\u21C7","ll":"\u226A","Ll":"\u22D8","llcorner":"\u231E","Lleftarrow":"\u21DA","llhard":"\u296B","lltri":"\u25FA","Lmidot":"\u013F","lmidot":"\u0140","lmoustache":"\u23B0","lmoust":"\u23B0","lnap":"\u2A89","lnapprox":"\u2A89","lne":"\u2A87","lnE":"\u2268","lneq":"\u2A87","lneqq":"\u2268","lnsim":"\u22E6","loang":"\u27EC","loarr":"\u21FD","lobrk":"\u27E6","longleftarrow":"\u27F5","LongLeftArrow":"\u27F5","Longleftarrow":"\u27F8","longleftrightarrow":"\u27F7","LongLeftRightArrow":"\u27F7","Longleftrightarrow":"\u27FA","longmapsto":"\u27FC","longrightarrow":"\u27F6","LongRightArrow":"\u27F6","Longrightarrow":"\u27F9","looparrowleft":"\u21AB","looparrowright":"\u21AC","lopar":"\u2985","Lopf":"\uD835\uDD43","lopf":"\uD835\uDD5D","loplus":"\u2A2D","lotimes":"\u2A34","lowast":"\u2217","lowbar":"_","LowerLeftArrow":"\u2199","LowerRightArrow":"\u2198","loz":"\u25CA","lozenge":"\u25CA","lozf":"\u29EB","lpar":"(","lparlt":"\u2993","lrarr":"\u21C6","lrcorner":"\u231F","lrhar":"\u21CB","lrhard":"\u296D","lrm":"\u200E","lrtri":"\u22BF","lsaquo":"\u2039","lscr":"\uD835\uDCC1","Lscr":"\u2112","lsh":"\u21B0","Lsh":"\u21B0","lsim":"\u2272","lsime":"\u2A8D","lsimg":"\u2A8F","lsqb":"[","lsquo":"\u2018","lsquor":"\u201A","Lstrok":"\u0141","lstrok":"\u0142","ltcc":"\u2AA6","ltcir":"\u2A79","lt":"<","LT":"<","Lt":"\u226A","ltdot":"\u22D6","lthree":"\u22CB","ltimes":"\u22C9","ltlarr":"\u2976","ltquest":"\u2A7B","ltri":"\u25C3","ltrie":"\u22B4","ltrif":"\u25C2","ltrPar":"\u2996","lurdshar":"\u294A","luruhar":"\u2966","lvertneqq":"\u2268\uFE00","lvnE":"\u2268\uFE00","macr":"\xAF","male":"\u2642","malt":"\u2720","maltese":"\u2720","Map":"\u2905","map":"\u21A6","mapsto":"\u21A6","mapstodown":"\u21A7","mapstoleft":"\u21A4","mapstoup":"\u21A5","marker":"\u25AE","mcomma":"\u2A29","Mcy":"\u041C","mcy":"\u043C","mdash":"\u2014","mDDot":"\u223A","measuredangle":"\u2221","MediumSpace":"\u205F","Mellintrf":"\u2133","Mfr":"\uD835\uDD10","mfr":"\uD835\uDD2A","mho":"\u2127","micro":"\xB5","midast":"*","midcir":"\u2AF0","mid":"\u2223","middot":"\xB7","minusb":"\u229F","minus":"\u2212","minusd":"\u2238","minusdu":"\u2A2A","MinusPlus":"\u2213","mlcp":"\u2ADB","mldr":"\u2026","mnplus":"\u2213","models":"\u22A7","Mopf":"\uD835\uDD44","mopf":"\uD835\uDD5E","mp":"\u2213","mscr":"\uD835\uDCC2","Mscr":"\u2133","mstpos":"\u223E","Mu":"\u039C","mu":"\u03BC","multimap":"\u22B8","mumap":"\u22B8","nabla":"\u2207","Nacute":"\u0143","nacute":"\u0144","nang":"\u2220\u20D2","nap":"\u2249","napE":"\u2A70\u0338","napid":"\u224B\u0338","napos":"\u0149","napprox":"\u2249","natural":"\u266E","naturals":"\u2115","natur":"\u266E","nbsp":"\xA0","nbump":"\u224E\u0338","nbumpe":"\u224F\u0338","ncap":"\u2A43","Ncaron":"\u0147","ncaron":"\u0148","Ncedil":"\u0145","ncedil":"\u0146","ncong":"\u2247","ncongdot":"\u2A6D\u0338","ncup":"\u2A42","Ncy":"\u041D","ncy":"\u043D","ndash":"\u2013","nearhk":"\u2924","nearr":"\u2197","neArr":"\u21D7","nearrow":"\u2197","ne":"\u2260","nedot":"\u2250\u0338","NegativeMediumSpace":"\u200B","NegativeThickSpace":"\u200B","NegativeThinSpace":"\u200B","NegativeVeryThinSpace":"\u200B","nequiv":"\u2262","nesear":"\u2928","nesim":"\u2242\u0338","NestedGreaterGreater":"\u226B","NestedLessLess":"\u226A","NewLine":"\n","nexist":"\u2204","nexists":"\u2204","Nfr":"\uD835\uDD11","nfr":"\uD835\uDD2B","ngE":"\u2267\u0338","nge":"\u2271","ngeq":"\u2271","ngeqq":"\u2267\u0338","ngeqslant":"\u2A7E\u0338","nges":"\u2A7E\u0338","nGg":"\u22D9\u0338","ngsim":"\u2275","nGt":"\u226B\u20D2","ngt":"\u226F","ngtr":"\u226F","nGtv":"\u226B\u0338","nharr":"\u21AE","nhArr":"\u21CE","nhpar":"\u2AF2","ni":"\u220B","nis":"\u22FC","nisd":"\u22FA","niv":"\u220B","NJcy":"\u040A","njcy":"\u045A","nlarr":"\u219A","nlArr":"\u21CD","nldr":"\u2025","nlE":"\u2266\u0338","nle":"\u2270","nleftarrow":"\u219A","nLeftarrow":"\u21CD","nleftrightarrow":"\u21AE","nLeftrightarrow":"\u21CE","nleq":"\u2270","nleqq":"\u2266\u0338","nleqslant":"\u2A7D\u0338","nles":"\u2A7D\u0338","nless":"\u226E","nLl":"\u22D8\u0338","nlsim":"\u2274","nLt":"\u226A\u20D2","nlt":"\u226E","nltri":"\u22EA","nltrie":"\u22EC","nLtv":"\u226A\u0338","nmid":"\u2224","NoBreak":"\u2060","NonBreakingSpace":"\xA0","nopf":"\uD835\uDD5F","Nopf":"\u2115","Not":"\u2AEC","not":"\xAC","NotCongruent":"\u2262","NotCupCap":"\u226D","NotDoubleVerticalBar":"\u2226","NotElement":"\u2209","NotEqual":"\u2260","NotEqualTilde":"\u2242\u0338","NotExists":"\u2204","NotGreater":"\u226F","NotGreaterEqual":"\u2271","NotGreaterFullEqual":"\u2267\u0338","NotGreaterGreater":"\u226B\u0338","NotGreaterLess":"\u2279","NotGreaterSlantEqual":"\u2A7E\u0338","NotGreaterTilde":"\u2275","NotHumpDownHump":"\u224E\u0338","NotHumpEqual":"\u224F\u0338","notin":"\u2209","notindot":"\u22F5\u0338","notinE":"\u22F9\u0338","notinva":"\u2209","notinvb":"\u22F7","notinvc":"\u22F6","NotLeftTriangleBar":"\u29CF\u0338","NotLeftTriangle":"\u22EA","NotLeftTriangleEqual":"\u22EC","NotLess":"\u226E","NotLessEqual":"\u2270","NotLessGreater":"\u2278","NotLessLess":"\u226A\u0338","NotLessSlantEqual":"\u2A7D\u0338","NotLessTilde":"\u2274","NotNestedGreaterGreater":"\u2AA2\u0338","NotNestedLessLess":"\u2AA1\u0338","notni":"\u220C","notniva":"\u220C","notnivb":"\u22FE","notnivc":"\u22FD","NotPrecedes":"\u2280","NotPrecedesEqual":"\u2AAF\u0338","NotPrecedesSlantEqual":"\u22E0","NotReverseElement":"\u220C","NotRightTriangleBar":"\u29D0\u0338","NotRightTriangle":"\u22EB","NotRightTriangleEqual":"\u22ED","NotSquareSubset":"\u228F\u0338","NotSquareSubsetEqual":"\u22E2","NotSquareSuperset":"\u2290\u0338","NotSquareSupersetEqual":"\u22E3","NotSubset":"\u2282\u20D2","NotSubsetEqual":"\u2288","NotSucceeds":"\u2281","NotSucceedsEqual":"\u2AB0\u0338","NotSucceedsSlantEqual":"\u22E1","NotSucceedsTilde":"\u227F\u0338","NotSuperset":"\u2283\u20D2","NotSupersetEqual":"\u2289","NotTilde":"\u2241","NotTildeEqual":"\u2244","NotTildeFullEqual":"\u2247","NotTildeTilde":"\u2249","NotVerticalBar":"\u2224","nparallel":"\u2226","npar":"\u2226","nparsl":"\u2AFD\u20E5","npart":"\u2202\u0338","npolint":"\u2A14","npr":"\u2280","nprcue":"\u22E0","nprec":"\u2280","npreceq":"\u2AAF\u0338","npre":"\u2AAF\u0338","nrarrc":"\u2933\u0338","nrarr":"\u219B","nrArr":"\u21CF","nrarrw":"\u219D\u0338","nrightarrow":"\u219B","nRightarrow":"\u21CF","nrtri":"\u22EB","nrtrie":"\u22ED","nsc":"\u2281","nsccue":"\u22E1","nsce":"\u2AB0\u0338","Nscr":"\uD835\uDCA9","nscr":"\uD835\uDCC3","nshortmid":"\u2224","nshortparallel":"\u2226","nsim":"\u2241","nsime":"\u2244","nsimeq":"\u2244","nsmid":"\u2224","nspar":"\u2226","nsqsube":"\u22E2","nsqsupe":"\u22E3","nsub":"\u2284","nsubE":"\u2AC5\u0338","nsube":"\u2288","nsubset":"\u2282\u20D2","nsubseteq":"\u2288","nsubseteqq":"\u2AC5\u0338","nsucc":"\u2281","nsucceq":"\u2AB0\u0338","nsup":"\u2285","nsupE":"\u2AC6\u0338","nsupe":"\u2289","nsupset":"\u2283\u20D2","nsupseteq":"\u2289","nsupseteqq":"\u2AC6\u0338","ntgl":"\u2279","Ntilde":"\xD1","ntilde":"\xF1","ntlg":"\u2278","ntriangleleft":"\u22EA","ntrianglelefteq":"\u22EC","ntriangleright":"\u22EB","ntrianglerighteq":"\u22ED","Nu":"\u039D","nu":"\u03BD","num":"#","numero":"\u2116","numsp":"\u2007","nvap":"\u224D\u20D2","nvdash":"\u22AC","nvDash":"\u22AD","nVdash":"\u22AE","nVDash":"\u22AF","nvge":"\u2265\u20D2","nvgt":">\u20D2","nvHarr":"\u2904","nvinfin":"\u29DE","nvlArr":"\u2902","nvle":"\u2264\u20D2","nvlt":"<\u20D2","nvltrie":"\u22B4\u20D2","nvrArr":"\u2903","nvrtrie":"\u22B5\u20D2","nvsim":"\u223C\u20D2","nwarhk":"\u2923","nwarr":"\u2196","nwArr":"\u21D6","nwarrow":"\u2196","nwnear":"\u2927","Oacute":"\xD3","oacute":"\xF3","oast":"\u229B","Ocirc":"\xD4","ocirc":"\xF4","ocir":"\u229A","Ocy":"\u041E","ocy":"\u043E","odash":"\u229D","Odblac":"\u0150","odblac":"\u0151","odiv":"\u2A38","odot":"\u2299","odsold":"\u29BC","OElig":"\u0152","oelig":"\u0153","ofcir":"\u29BF","Ofr":"\uD835\uDD12","ofr":"\uD835\uDD2C","ogon":"\u02DB","Ograve":"\xD2","ograve":"\xF2","ogt":"\u29C1","ohbar":"\u29B5","ohm":"\u03A9","oint":"\u222E","olarr":"\u21BA","olcir":"\u29BE","olcross":"\u29BB","oline":"\u203E","olt":"\u29C0","Omacr":"\u014C","omacr":"\u014D","Omega":"\u03A9","omega":"\u03C9","Omicron":"\u039F","omicron":"\u03BF","omid":"\u29B6","ominus":"\u2296","Oopf":"\uD835\uDD46","oopf":"\uD835\uDD60","opar":"\u29B7","OpenCurlyDoubleQuote":"\u201C","OpenCurlyQuote":"\u2018","operp":"\u29B9","oplus":"\u2295","orarr":"\u21BB","Or":"\u2A54","or":"\u2228","ord":"\u2A5D","order":"\u2134","orderof":"\u2134","ordf":"\xAA","ordm":"\xBA","origof":"\u22B6","oror":"\u2A56","orslope":"\u2A57","orv":"\u2A5B","oS":"\u24C8","Oscr":"\uD835\uDCAA","oscr":"\u2134","Oslash":"\xD8","oslash":"\xF8","osol":"\u2298","Otilde":"\xD5","otilde":"\xF5","otimesas":"\u2A36","Otimes":"\u2A37","otimes":"\u2297","Ouml":"\xD6","ouml":"\xF6","ovbar":"\u233D","OverBar":"\u203E","OverBrace":"\u23DE","OverBracket":"\u23B4","OverParenthesis":"\u23DC","para":"\xB6","parallel":"\u2225","par":"\u2225","parsim":"\u2AF3","parsl":"\u2AFD","part":"\u2202","PartialD":"\u2202","Pcy":"\u041F","pcy":"\u043F","percnt":"%","period":".","permil":"\u2030","perp":"\u22A5","pertenk":"\u2031","Pfr":"\uD835\uDD13","pfr":"\uD835\uDD2D","Phi":"\u03A6","phi":"\u03C6","phiv":"\u03D5","phmmat":"\u2133","phone":"\u260E","Pi":"\u03A0","pi":"\u03C0","pitchfork":"\u22D4","piv":"\u03D6","planck":"\u210F","planckh":"\u210E","plankv":"\u210F","plusacir":"\u2A23","plusb":"\u229E","pluscir":"\u2A22","plus":"+","plusdo":"\u2214","plusdu":"\u2A25","pluse":"\u2A72","PlusMinus":"\xB1","plusmn":"\xB1","plussim":"\u2A26","plustwo":"\u2A27","pm":"\xB1","Poincareplane":"\u210C","pointint":"\u2A15","popf":"\uD835\uDD61","Popf":"\u2119","pound":"\xA3","prap":"\u2AB7","Pr":"\u2ABB","pr":"\u227A","prcue":"\u227C","precapprox":"\u2AB7","prec":"\u227A","preccurlyeq":"\u227C","Precedes":"\u227A","PrecedesEqual":"\u2AAF","PrecedesSlantEqual":"\u227C","PrecedesTilde":"\u227E","preceq":"\u2AAF","precnapprox":"\u2AB9","precneqq":"\u2AB5","precnsim":"\u22E8","pre":"\u2AAF","prE":"\u2AB3","precsim":"\u227E","prime":"\u2032","Prime":"\u2033","primes":"\u2119","prnap":"\u2AB9","prnE":"\u2AB5","prnsim":"\u22E8","prod":"\u220F","Product":"\u220F","profalar":"\u232E","profline":"\u2312","profsurf":"\u2313","prop":"\u221D","Proportional":"\u221D","Proportion":"\u2237","propto":"\u221D","prsim":"\u227E","prurel":"\u22B0","Pscr":"\uD835\uDCAB","pscr":"\uD835\uDCC5","Psi":"\u03A8","psi":"\u03C8","puncsp":"\u2008","Qfr":"\uD835\uDD14","qfr":"\uD835\uDD2E","qint":"\u2A0C","qopf":"\uD835\uDD62","Qopf":"\u211A","qprime":"\u2057","Qscr":"\uD835\uDCAC","qscr":"\uD835\uDCC6","quaternions":"\u210D","quatint":"\u2A16","quest":"?","questeq":"\u225F","quot":"\"","QUOT":"\"","rAarr":"\u21DB","race":"\u223D\u0331","Racute":"\u0154","racute":"\u0155","radic":"\u221A","raemptyv":"\u29B3","rang":"\u27E9","Rang":"\u27EB","rangd":"\u2992","range":"\u29A5","rangle":"\u27E9","raquo":"\xBB","rarrap":"\u2975","rarrb":"\u21E5","rarrbfs":"\u2920","rarrc":"\u2933","rarr":"\u2192","Rarr":"\u21A0","rArr":"\u21D2","rarrfs":"\u291E","rarrhk":"\u21AA","rarrlp":"\u21AC","rarrpl":"\u2945","rarrsim":"\u2974","Rarrtl":"\u2916","rarrtl":"\u21A3","rarrw":"\u219D","ratail":"\u291A","rAtail":"\u291C","ratio":"\u2236","rationals":"\u211A","rbarr":"\u290D","rBarr":"\u290F","RBarr":"\u2910","rbbrk":"\u2773","rbrace":"}","rbrack":"]","rbrke":"\u298C","rbrksld":"\u298E","rbrkslu":"\u2990","Rcaron":"\u0158","rcaron":"\u0159","Rcedil":"\u0156","rcedil":"\u0157","rceil":"\u2309","rcub":"}","Rcy":"\u0420","rcy":"\u0440","rdca":"\u2937","rdldhar":"\u2969","rdquo":"\u201D","rdquor":"\u201D","rdsh":"\u21B3","real":"\u211C","realine":"\u211B","realpart":"\u211C","reals":"\u211D","Re":"\u211C","rect":"\u25AD","reg":"\xAE","REG":"\xAE","ReverseElement":"\u220B","ReverseEquilibrium":"\u21CB","ReverseUpEquilibrium":"\u296F","rfisht":"\u297D","rfloor":"\u230B","rfr":"\uD835\uDD2F","Rfr":"\u211C","rHar":"\u2964","rhard":"\u21C1","rharu":"\u21C0","rharul":"\u296C","Rho":"\u03A1","rho":"\u03C1","rhov":"\u03F1","RightAngleBracket":"\u27E9","RightArrowBar":"\u21E5","rightarrow":"\u2192","RightArrow":"\u2192","Rightarrow":"\u21D2","RightArrowLeftArrow":"\u21C4","rightarrowtail":"\u21A3","RightCeiling":"\u2309","RightDoubleBracket":"\u27E7","RightDownTeeVector":"\u295D","RightDownVectorBar":"\u2955","RightDownVector":"\u21C2","RightFloor":"\u230B","rightharpoondown":"\u21C1","rightharpoonup":"\u21C0","rightleftarrows":"\u21C4","rightleftharpoons":"\u21CC","rightrightarrows":"\u21C9","rightsquigarrow":"\u219D","RightTeeArrow":"\u21A6","RightTee":"\u22A2","RightTeeVector":"\u295B","rightthreetimes":"\u22CC","RightTriangleBar":"\u29D0","RightTriangle":"\u22B3","RightTriangleEqual":"\u22B5","RightUpDownVector":"\u294F","RightUpTeeVector":"\u295C","RightUpVectorBar":"\u2954","RightUpVector":"\u21BE","RightVectorBar":"\u2953","RightVector":"\u21C0","ring":"\u02DA","risingdotseq":"\u2253","rlarr":"\u21C4","rlhar":"\u21CC","rlm":"\u200F","rmoustache":"\u23B1","rmoust":"\u23B1","rnmid":"\u2AEE","roang":"\u27ED","roarr":"\u21FE","robrk":"\u27E7","ropar":"\u2986","ropf":"\uD835\uDD63","Ropf":"\u211D","roplus":"\u2A2E","rotimes":"\u2A35","RoundImplies":"\u2970","rpar":")","rpargt":"\u2994","rppolint":"\u2A12","rrarr":"\u21C9","Rrightarrow":"\u21DB","rsaquo":"\u203A","rscr":"\uD835\uDCC7","Rscr":"\u211B","rsh":"\u21B1","Rsh":"\u21B1","rsqb":"]","rsquo":"\u2019","rsquor":"\u2019","rthree":"\u22CC","rtimes":"\u22CA","rtri":"\u25B9","rtrie":"\u22B5","rtrif":"\u25B8","rtriltri":"\u29CE","RuleDelayed":"\u29F4","ruluhar":"\u2968","rx":"\u211E","Sacute":"\u015A","sacute":"\u015B","sbquo":"\u201A","scap":"\u2AB8","Scaron":"\u0160","scaron":"\u0161","Sc":"\u2ABC","sc":"\u227B","sccue":"\u227D","sce":"\u2AB0","scE":"\u2AB4","Scedil":"\u015E","scedil":"\u015F","Scirc":"\u015C","scirc":"\u015D","scnap":"\u2ABA","scnE":"\u2AB6","scnsim":"\u22E9","scpolint":"\u2A13","scsim":"\u227F","Scy":"\u0421","scy":"\u0441","sdotb":"\u22A1","sdot":"\u22C5","sdote":"\u2A66","searhk":"\u2925","searr":"\u2198","seArr":"\u21D8","searrow":"\u2198","sect":"\xA7","semi":";","seswar":"\u2929","setminus":"\u2216","setmn":"\u2216","sext":"\u2736","Sfr":"\uD835\uDD16","sfr":"\uD835\uDD30","sfrown":"\u2322","sharp":"\u266F","SHCHcy":"\u0429","shchcy":"\u0449","SHcy":"\u0428","shcy":"\u0448","ShortDownArrow":"\u2193","ShortLeftArrow":"\u2190","shortmid":"\u2223","shortparallel":"\u2225","ShortRightArrow":"\u2192","ShortUpArrow":"\u2191","shy":"\xAD","Sigma":"\u03A3","sigma":"\u03C3","sigmaf":"\u03C2","sigmav":"\u03C2","sim":"\u223C","simdot":"\u2A6A","sime":"\u2243","simeq":"\u2243","simg":"\u2A9E","simgE":"\u2AA0","siml":"\u2A9D","simlE":"\u2A9F","simne":"\u2246","simplus":"\u2A24","simrarr":"\u2972","slarr":"\u2190","SmallCircle":"\u2218","smallsetminus":"\u2216","smashp":"\u2A33","smeparsl":"\u29E4","smid":"\u2223","smile":"\u2323","smt":"\u2AAA","smte":"\u2AAC","smtes":"\u2AAC\uFE00","SOFTcy":"\u042C","softcy":"\u044C","solbar":"\u233F","solb":"\u29C4","sol":"/","Sopf":"\uD835\uDD4A","sopf":"\uD835\uDD64","spades":"\u2660","spadesuit":"\u2660","spar":"\u2225","sqcap":"\u2293","sqcaps":"\u2293\uFE00","sqcup":"\u2294","sqcups":"\u2294\uFE00","Sqrt":"\u221A","sqsub":"\u228F","sqsube":"\u2291","sqsubset":"\u228F","sqsubseteq":"\u2291","sqsup":"\u2290","sqsupe":"\u2292","sqsupset":"\u2290","sqsupseteq":"\u2292","square":"\u25A1","Square":"\u25A1","SquareIntersection":"\u2293","SquareSubset":"\u228F","SquareSubsetEqual":"\u2291","SquareSuperset":"\u2290","SquareSupersetEqual":"\u2292","SquareUnion":"\u2294","squarf":"\u25AA","squ":"\u25A1","squf":"\u25AA","srarr":"\u2192","Sscr":"\uD835\uDCAE","sscr":"\uD835\uDCC8","ssetmn":"\u2216","ssmile":"\u2323","sstarf":"\u22C6","Star":"\u22C6","star":"\u2606","starf":"\u2605","straightepsilon":"\u03F5","straightphi":"\u03D5","strns":"\xAF","sub":"\u2282","Sub":"\u22D0","subdot":"\u2ABD","subE":"\u2AC5","sube":"\u2286","subedot":"\u2AC3","submult":"\u2AC1","subnE":"\u2ACB","subne":"\u228A","subplus":"\u2ABF","subrarr":"\u2979","subset":"\u2282","Subset":"\u22D0","subseteq":"\u2286","subseteqq":"\u2AC5","SubsetEqual":"\u2286","subsetneq":"\u228A","subsetneqq":"\u2ACB","subsim":"\u2AC7","subsub":"\u2AD5","subsup":"\u2AD3","succapprox":"\u2AB8","succ":"\u227B","succcurlyeq":"\u227D","Succeeds":"\u227B","SucceedsEqual":"\u2AB0","SucceedsSlantEqual":"\u227D","SucceedsTilde":"\u227F","succeq":"\u2AB0","succnapprox":"\u2ABA","succneqq":"\u2AB6","succnsim":"\u22E9","succsim":"\u227F","SuchThat":"\u220B","sum":"\u2211","Sum":"\u2211","sung":"\u266A","sup1":"\xB9","sup2":"\xB2","sup3":"\xB3","sup":"\u2283","Sup":"\u22D1","supdot":"\u2ABE","supdsub":"\u2AD8","supE":"\u2AC6","supe":"\u2287","supedot":"\u2AC4","Superset":"\u2283","SupersetEqual":"\u2287","suphsol":"\u27C9","suphsub":"\u2AD7","suplarr":"\u297B","supmult":"\u2AC2","supnE":"\u2ACC","supne":"\u228B","supplus":"\u2AC0","supset":"\u2283","Supset":"\u22D1","supseteq":"\u2287","supseteqq":"\u2AC6","supsetneq":"\u228B","supsetneqq":"\u2ACC","supsim":"\u2AC8","supsub":"\u2AD4","supsup":"\u2AD6","swarhk":"\u2926","swarr":"\u2199","swArr":"\u21D9","swarrow":"\u2199","swnwar":"\u292A","szlig":"\xDF","Tab":"\t","target":"\u2316","Tau":"\u03A4","tau":"\u03C4","tbrk":"\u23B4","Tcaron":"\u0164","tcaron":"\u0165","Tcedil":"\u0162","tcedil":"\u0163","Tcy":"\u0422","tcy":"\u0442","tdot":"\u20DB","telrec":"\u2315","Tfr":"\uD835\uDD17","tfr":"\uD835\uDD31","there4":"\u2234","therefore":"\u2234","Therefore":"\u2234","Theta":"\u0398","theta":"\u03B8","thetasym":"\u03D1","thetav":"\u03D1","thickapprox":"\u2248","thicksim":"\u223C","ThickSpace":"\u205F\u200A","ThinSpace":"\u2009","thinsp":"\u2009","thkap":"\u2248","thksim":"\u223C","THORN":"\xDE","thorn":"\xFE","tilde":"\u02DC","Tilde":"\u223C","TildeEqual":"\u2243","TildeFullEqual":"\u2245","TildeTilde":"\u2248","timesbar":"\u2A31","timesb":"\u22A0","times":"\xD7","timesd":"\u2A30","tint":"\u222D","toea":"\u2928","topbot":"\u2336","topcir":"\u2AF1","top":"\u22A4","Topf":"\uD835\uDD4B","topf":"\uD835\uDD65","topfork":"\u2ADA","tosa":"\u2929","tprime":"\u2034","trade":"\u2122","TRADE":"\u2122","triangle":"\u25B5","triangledown":"\u25BF","triangleleft":"\u25C3","trianglelefteq":"\u22B4","triangleq":"\u225C","triangleright":"\u25B9","trianglerighteq":"\u22B5","tridot":"\u25EC","trie":"\u225C","triminus":"\u2A3A","TripleDot":"\u20DB","triplus":"\u2A39","trisb":"\u29CD","tritime":"\u2A3B","trpezium":"\u23E2","Tscr":"\uD835\uDCAF","tscr":"\uD835\uDCC9","TScy":"\u0426","tscy":"\u0446","TSHcy":"\u040B","tshcy":"\u045B","Tstrok":"\u0166","tstrok":"\u0167","twixt":"\u226C","twoheadleftarrow":"\u219E","twoheadrightarrow":"\u21A0","Uacute":"\xDA","uacute":"\xFA","uarr":"\u2191","Uarr":"\u219F","uArr":"\u21D1","Uarrocir":"\u2949","Ubrcy":"\u040E","ubrcy":"\u045E","Ubreve":"\u016C","ubreve":"\u016D","Ucirc":"\xDB","ucirc":"\xFB","Ucy":"\u0423","ucy":"\u0443","udarr":"\u21C5","Udblac":"\u0170","udblac":"\u0171","udhar":"\u296E","ufisht":"\u297E","Ufr":"\uD835\uDD18","ufr":"\uD835\uDD32","Ugrave":"\xD9","ugrave":"\xF9","uHar":"\u2963","uharl":"\u21BF","uharr":"\u21BE","uhblk":"\u2580","ulcorn":"\u231C","ulcorner":"\u231C","ulcrop":"\u230F","ultri":"\u25F8","Umacr":"\u016A","umacr":"\u016B","uml":"\xA8","UnderBar":"_","UnderBrace":"\u23DF","UnderBracket":"\u23B5","UnderParenthesis":"\u23DD","Union":"\u22C3","UnionPlus":"\u228E","Uogon":"\u0172","uogon":"\u0173","Uopf":"\uD835\uDD4C","uopf":"\uD835\uDD66","UpArrowBar":"\u2912","uparrow":"\u2191","UpArrow":"\u2191","Uparrow":"\u21D1","UpArrowDownArrow":"\u21C5","updownarrow":"\u2195","UpDownArrow":"\u2195","Updownarrow":"\u21D5","UpEquilibrium":"\u296E","upharpoonleft":"\u21BF","upharpoonright":"\u21BE","uplus":"\u228E","UpperLeftArrow":"\u2196","UpperRightArrow":"\u2197","upsi":"\u03C5","Upsi":"\u03D2","upsih":"\u03D2","Upsilon":"\u03A5","upsilon":"\u03C5","UpTeeArrow":"\u21A5","UpTee":"\u22A5","upuparrows":"\u21C8","urcorn":"\u231D","urcorner":"\u231D","urcrop":"\u230E","Uring":"\u016E","uring":"\u016F","urtri":"\u25F9","Uscr":"\uD835\uDCB0","uscr":"\uD835\uDCCA","utdot":"\u22F0","Utilde":"\u0168","utilde":"\u0169","utri":"\u25B5","utrif":"\u25B4","uuarr":"\u21C8","Uuml":"\xDC","uuml":"\xFC","uwangle":"\u29A7","vangrt":"\u299C","varepsilon":"\u03F5","varkappa":"\u03F0","varnothing":"\u2205","varphi":"\u03D5","varpi":"\u03D6","varpropto":"\u221D","varr":"\u2195","vArr":"\u21D5","varrho":"\u03F1","varsigma":"\u03C2","varsubsetneq":"\u228A\uFE00","varsubsetneqq":"\u2ACB\uFE00","varsupsetneq":"\u228B\uFE00","varsupsetneqq":"\u2ACC\uFE00","vartheta":"\u03D1","vartriangleleft":"\u22B2","vartriangleright":"\u22B3","vBar":"\u2AE8","Vbar":"\u2AEB","vBarv":"\u2AE9","Vcy":"\u0412","vcy":"\u0432","vdash":"\u22A2","vDash":"\u22A8","Vdash":"\u22A9","VDash":"\u22AB","Vdashl":"\u2AE6","veebar":"\u22BB","vee":"\u2228","Vee":"\u22C1","veeeq":"\u225A","vellip":"\u22EE","verbar":"|","Verbar":"\u2016","vert":"|","Vert":"\u2016","VerticalBar":"\u2223","VerticalLine":"|","VerticalSeparator":"\u2758","VerticalTilde":"\u2240","VeryThinSpace":"\u200A","Vfr":"\uD835\uDD19","vfr":"\uD835\uDD33","vltri":"\u22B2","vnsub":"\u2282\u20D2","vnsup":"\u2283\u20D2","Vopf":"\uD835\uDD4D","vopf":"\uD835\uDD67","vprop":"\u221D","vrtri":"\u22B3","Vscr":"\uD835\uDCB1","vscr":"\uD835\uDCCB","vsubnE":"\u2ACB\uFE00","vsubne":"\u228A\uFE00","vsupnE":"\u2ACC\uFE00","vsupne":"\u228B\uFE00","Vvdash":"\u22AA","vzigzag":"\u299A","Wcirc":"\u0174","wcirc":"\u0175","wedbar":"\u2A5F","wedge":"\u2227","Wedge":"\u22C0","wedgeq":"\u2259","weierp":"\u2118","Wfr":"\uD835\uDD1A","wfr":"\uD835\uDD34","Wopf":"\uD835\uDD4E","wopf":"\uD835\uDD68","wp":"\u2118","wr":"\u2240","wreath":"\u2240","Wscr":"\uD835\uDCB2","wscr":"\uD835\uDCCC","xcap":"\u22C2","xcirc":"\u25EF","xcup":"\u22C3","xdtri":"\u25BD","Xfr":"\uD835\uDD1B","xfr":"\uD835\uDD35","xharr":"\u27F7","xhArr":"\u27FA","Xi":"\u039E","xi":"\u03BE","xlarr":"\u27F5","xlArr":"\u27F8","xmap":"\u27FC","xnis":"\u22FB","xodot":"\u2A00","Xopf":"\uD835\uDD4F","xopf":"\uD835\uDD69","xoplus":"\u2A01","xotime":"\u2A02","xrarr":"\u27F6","xrArr":"\u27F9","Xscr":"\uD835\uDCB3","xscr":"\uD835\uDCCD","xsqcup":"\u2A06","xuplus":"\u2A04","xutri":"\u25B3","xvee":"\u22C1","xwedge":"\u22C0","Yacute":"\xDD","yacute":"\xFD","YAcy":"\u042F","yacy":"\u044F","Ycirc":"\u0176","ycirc":"\u0177","Ycy":"\u042B","ycy":"\u044B","yen":"\xA5","Yfr":"\uD835\uDD1C","yfr":"\uD835\uDD36","YIcy":"\u0407","yicy":"\u0457","Yopf":"\uD835\uDD50","yopf":"\uD835\uDD6A","Yscr":"\uD835\uDCB4","yscr":"\uD835\uDCCE","YUcy":"\u042E","yucy":"\u044E","yuml":"\xFF","Yuml":"\u0178","Zacute":"\u0179","zacute":"\u017A","Zcaron":"\u017D","zcaron":"\u017E","Zcy":"\u0417","zcy":"\u0437","Zdot":"\u017B","zdot":"\u017C","zeetrf":"\u2128","ZeroWidthSpace":"\u200B","Zeta":"\u0396","zeta":"\u03B6","zfr":"\uD835\uDD37","Zfr":"\u2128","ZHcy":"\u0416","zhcy":"\u0436","zigrarr":"\u21DD","zopf":"\uD835\uDD6B","Zopf":"\u2124","Zscr":"\uD835\uDCB5","zscr":"\uD835\uDCCF","zwj":"\u200D","zwnj":"\u200C"};},{}],23:[function(require,module,exports){module.exports={"Aacute":"\xC1","aacute":"\xE1","Acirc":"\xC2","acirc":"\xE2","acute":"\xB4","AElig":"\xC6","aelig":"\xE6","Agrave":"\xC0","agrave":"\xE0","amp":"&","AMP":"&","Aring":"\xC5","aring":"\xE5","Atilde":"\xC3","atilde":"\xE3","Auml":"\xC4","auml":"\xE4","brvbar":"\xA6","Ccedil":"\xC7","ccedil":"\xE7","cedil":"\xB8","cent":"\xA2","copy":"\xA9","COPY":"\xA9","curren":"\xA4","deg":"\xB0","divide":"\xF7","Eacute":"\xC9","eacute":"\xE9","Ecirc":"\xCA","ecirc":"\xEA","Egrave":"\xC8","egrave":"\xE8","ETH":"\xD0","eth":"\xF0","Euml":"\xCB","euml":"\xEB","frac12":"\xBD","frac14":"\xBC","frac34":"\xBE","gt":">","GT":">","Iacute":"\xCD","iacute":"\xED","Icirc":"\xCE","icirc":"\xEE","iexcl":"\xA1","Igrave":"\xCC","igrave":"\xEC","iquest":"\xBF","Iuml":"\xCF","iuml":"\xEF","laquo":"\xAB","lt":"<","LT":"<","macr":"\xAF","micro":"\xB5","middot":"\xB7","nbsp":"\xA0","not":"\xAC","Ntilde":"\xD1","ntilde":"\xF1","Oacute":"\xD3","oacute":"\xF3","Ocirc":"\xD4","ocirc":"\xF4","Ograve":"\xD2","ograve":"\xF2","ordf":"\xAA","ordm":"\xBA","Oslash":"\xD8","oslash":"\xF8","Otilde":"\xD5","otilde":"\xF5","Ouml":"\xD6","ouml":"\xF6","para":"\xB6","plusmn":"\xB1","pound":"\xA3","quot":"\"","QUOT":"\"","raquo":"\xBB","reg":"\xAE","REG":"\xAE","sect":"\xA7","shy":"\xAD","sup1":"\xB9","sup2":"\xB2","sup3":"\xB3","szlig":"\xDF","THORN":"\xDE","thorn":"\xFE","times":"\xD7","Uacute":"\xDA","uacute":"\xFA","Ucirc":"\xDB","ucirc":"\xFB","Ugrave":"\xD9","ugrave":"\xF9","uml":"\xA8","Uuml":"\xDC","uuml":"\xFC","Yacute":"\xDD","yacute":"\xFD","yen":"\xA5","yuml":"\xFF"};},{}],24:[function(require,module,exports){module.exports={"amp":"&","apos":"'","gt":">","lt":"<","quot":"\""};},{}],25:[function(require,module,exports){// Copyright Joyent, Inc. and other Node contributors.
|
|
293
341
|
//
|
|
@@ -418,1325 +466,60 @@ if(this._sectionStart<this._index){this._handleTrailingData();}this._cbs.onend()
|
|
|
418
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};/*
|
|
419
467
|
All of the following exports exist for backwards-compatibility.
|
|
420
468
|
They should probably be removed eventually.
|
|
421
|
-
*/__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(
|
|
422
|
-
* lodash (Custom Build) <https://lodash.com/>
|
|
423
|
-
* Build: `lodash modularize exports="npm" -o ./`
|
|
424
|
-
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
|
425
|
-
* Released under MIT license <https://lodash.com/license>
|
|
426
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
427
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
428
|
-
*/ /** 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]';/**
|
|
429
|
-
* Used to match `RegExp`
|
|
430
|
-
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
431
|
-
*/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;/**
|
|
432
|
-
* Adds the key-value `pair` to `map`.
|
|
433
|
-
*
|
|
434
|
-
* @private
|
|
435
|
-
* @param {Object} map The map to modify.
|
|
436
|
-
* @param {Array} pair The key-value pair to add.
|
|
437
|
-
* @returns {Object} Returns `map`.
|
|
438
|
-
*/function addMapEntry(map,pair){// Don't return `map.set` because it's not chainable in IE 11.
|
|
439
|
-
map.set(pair[0],pair[1]);return map;}/**
|
|
440
|
-
* Adds `value` to `set`.
|
|
441
|
-
*
|
|
442
|
-
* @private
|
|
443
|
-
* @param {Object} set The set to modify.
|
|
444
|
-
* @param {*} value The value to add.
|
|
445
|
-
* @returns {Object} Returns `set`.
|
|
446
|
-
*/function addSetEntry(set,value){// Don't return `set.add` because it's not chainable in IE 11.
|
|
447
|
-
set.add(value);return set;}/**
|
|
448
|
-
* A specialized version of `_.forEach` for arrays without support for
|
|
449
|
-
* iteratee shorthands.
|
|
450
|
-
*
|
|
451
|
-
* @private
|
|
452
|
-
* @param {Array} [array] The array to iterate over.
|
|
453
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
454
|
-
* @returns {Array} Returns `array`.
|
|
455
|
-
*/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;}/**
|
|
456
|
-
* Appends the elements of `values` to `array`.
|
|
457
|
-
*
|
|
458
|
-
* @private
|
|
459
|
-
* @param {Array} array The array to modify.
|
|
460
|
-
* @param {Array} values The values to append.
|
|
461
|
-
* @returns {Array} Returns `array`.
|
|
462
|
-
*/function arrayPush(array,values){var index=-1,length=values.length,offset=array.length;while(++index<length){array[offset+index]=values[index];}return array;}/**
|
|
463
|
-
* A specialized version of `_.reduce` for arrays without support for
|
|
464
|
-
* iteratee shorthands.
|
|
465
|
-
*
|
|
466
|
-
* @private
|
|
467
|
-
* @param {Array} [array] The array to iterate over.
|
|
468
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
469
|
-
* @param {*} [accumulator] The initial value.
|
|
470
|
-
* @param {boolean} [initAccum] Specify using the first element of `array` as
|
|
471
|
-
* the initial value.
|
|
472
|
-
* @returns {*} Returns the accumulated value.
|
|
473
|
-
*/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;}/**
|
|
474
|
-
* The base implementation of `_.times` without support for iteratee shorthands
|
|
475
|
-
* or max array length checks.
|
|
476
|
-
*
|
|
477
|
-
* @private
|
|
478
|
-
* @param {number} n The number of times to invoke `iteratee`.
|
|
479
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
480
|
-
* @returns {Array} Returns the array of results.
|
|
481
|
-
*/function baseTimes(n,iteratee){var index=-1,result=Array(n);while(++index<n){result[index]=iteratee(index);}return result;}/**
|
|
482
|
-
* Gets the value at `key` of `object`.
|
|
483
|
-
*
|
|
484
|
-
* @private
|
|
485
|
-
* @param {Object} [object] The object to query.
|
|
486
|
-
* @param {string} key The key of the property to get.
|
|
487
|
-
* @returns {*} Returns the property value.
|
|
488
|
-
*/function getValue(object,key){return object==null?undefined:object[key];}/**
|
|
489
|
-
* Checks if `value` is a host object in IE < 9.
|
|
490
|
-
*
|
|
491
|
-
* @private
|
|
492
|
-
* @param {*} value The value to check.
|
|
493
|
-
* @returns {boolean} Returns `true` if `value` is a host object, else `false`.
|
|
494
|
-
*/function isHostObject(value){// Many host objects are `Object` objects that can coerce to strings
|
|
495
|
-
// despite having improperly defined `toString` methods.
|
|
496
|
-
var result=false;if(value!=null&&typeof value.toString!='function'){try{result=!!(value+'');}catch(e){}}return result;}/**
|
|
497
|
-
* Converts `map` to its key-value pairs.
|
|
498
|
-
*
|
|
499
|
-
* @private
|
|
500
|
-
* @param {Object} map The map to convert.
|
|
501
|
-
* @returns {Array} Returns the key-value pairs.
|
|
502
|
-
*/function mapToArray(map){var index=-1,result=Array(map.size);map.forEach(function(value,key){result[++index]=[key,value];});return result;}/**
|
|
503
|
-
* Creates a unary function that invokes `func` with its argument transformed.
|
|
504
|
-
*
|
|
505
|
-
* @private
|
|
506
|
-
* @param {Function} func The function to wrap.
|
|
507
|
-
* @param {Function} transform The argument transform.
|
|
508
|
-
* @returns {Function} Returns the new function.
|
|
509
|
-
*/function overArg(func,transform){return function(arg){return func(transform(arg));};}/**
|
|
510
|
-
* Converts `set` to an array of its values.
|
|
511
|
-
*
|
|
512
|
-
* @private
|
|
513
|
-
* @param {Object} set The set to convert.
|
|
514
|
-
* @returns {Array} Returns the values.
|
|
515
|
-
*/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;/**
|
|
516
|
-
* Used to resolve the
|
|
517
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
518
|
-
* of values.
|
|
519
|
-
*/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;/**
|
|
520
|
-
* Creates a hash object.
|
|
521
|
-
*
|
|
522
|
-
* @private
|
|
523
|
-
* @constructor
|
|
524
|
-
* @param {Array} [entries] The key-value pairs to cache.
|
|
525
|
-
*/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]);}}/**
|
|
526
|
-
* Removes all key-value entries from the hash.
|
|
527
|
-
*
|
|
528
|
-
* @private
|
|
529
|
-
* @name clear
|
|
530
|
-
* @memberOf Hash
|
|
531
|
-
*/function hashClear(){this.__data__=nativeCreate?nativeCreate(null):{};}/**
|
|
532
|
-
* Removes `key` and its value from the hash.
|
|
533
|
-
*
|
|
534
|
-
* @private
|
|
535
|
-
* @name delete
|
|
536
|
-
* @memberOf Hash
|
|
537
|
-
* @param {Object} hash The hash to modify.
|
|
538
|
-
* @param {string} key The key of the value to remove.
|
|
539
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
540
|
-
*/function hashDelete(key){return this.has(key)&&delete this.__data__[key];}/**
|
|
541
|
-
* Gets the hash value for `key`.
|
|
542
|
-
*
|
|
543
|
-
* @private
|
|
544
|
-
* @name get
|
|
545
|
-
* @memberOf Hash
|
|
546
|
-
* @param {string} key The key of the value to get.
|
|
547
|
-
* @returns {*} Returns the entry value.
|
|
548
|
-
*/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;}/**
|
|
549
|
-
* Checks if a hash value for `key` exists.
|
|
550
|
-
*
|
|
551
|
-
* @private
|
|
552
|
-
* @name has
|
|
553
|
-
* @memberOf Hash
|
|
554
|
-
* @param {string} key The key of the entry to check.
|
|
555
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
556
|
-
*/function hashHas(key){var data=this.__data__;return nativeCreate?data[key]!==undefined:hasOwnProperty.call(data,key);}/**
|
|
557
|
-
* Sets the hash `key` to `value`.
|
|
558
|
-
*
|
|
559
|
-
* @private
|
|
560
|
-
* @name set
|
|
561
|
-
* @memberOf Hash
|
|
562
|
-
* @param {string} key The key of the value to set.
|
|
563
|
-
* @param {*} value The value to set.
|
|
564
|
-
* @returns {Object} Returns the hash instance.
|
|
565
|
-
*/function hashSet(key,value){var data=this.__data__;data[key]=nativeCreate&&value===undefined?HASH_UNDEFINED:value;return this;}// Add methods to `Hash`.
|
|
566
|
-
Hash.prototype.clear=hashClear;Hash.prototype['delete']=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;/**
|
|
567
|
-
* Creates an list cache object.
|
|
568
|
-
*
|
|
569
|
-
* @private
|
|
570
|
-
* @constructor
|
|
571
|
-
* @param {Array} [entries] The key-value pairs to cache.
|
|
572
|
-
*/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]);}}/**
|
|
573
|
-
* Removes all key-value entries from the list cache.
|
|
574
|
-
*
|
|
575
|
-
* @private
|
|
576
|
-
* @name clear
|
|
577
|
-
* @memberOf ListCache
|
|
578
|
-
*/function listCacheClear(){this.__data__=[];}/**
|
|
579
|
-
* Removes `key` and its value from the list cache.
|
|
580
|
-
*
|
|
581
|
-
* @private
|
|
582
|
-
* @name delete
|
|
583
|
-
* @memberOf ListCache
|
|
584
|
-
* @param {string} key The key of the value to remove.
|
|
585
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
586
|
-
*/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;}/**
|
|
587
|
-
* Gets the list cache value for `key`.
|
|
588
|
-
*
|
|
589
|
-
* @private
|
|
590
|
-
* @name get
|
|
591
|
-
* @memberOf ListCache
|
|
592
|
-
* @param {string} key The key of the value to get.
|
|
593
|
-
* @returns {*} Returns the entry value.
|
|
594
|
-
*/function listCacheGet(key){var data=this.__data__,index=assocIndexOf(data,key);return index<0?undefined:data[index][1];}/**
|
|
595
|
-
* Checks if a list cache value for `key` exists.
|
|
596
|
-
*
|
|
597
|
-
* @private
|
|
598
|
-
* @name has
|
|
599
|
-
* @memberOf ListCache
|
|
600
|
-
* @param {string} key The key of the entry to check.
|
|
601
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
602
|
-
*/function listCacheHas(key){return assocIndexOf(this.__data__,key)>-1;}/**
|
|
603
|
-
* Sets the list cache `key` to `value`.
|
|
604
|
-
*
|
|
605
|
-
* @private
|
|
606
|
-
* @name set
|
|
607
|
-
* @memberOf ListCache
|
|
608
|
-
* @param {string} key The key of the value to set.
|
|
609
|
-
* @param {*} value The value to set.
|
|
610
|
-
* @returns {Object} Returns the list cache instance.
|
|
611
|
-
*/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`.
|
|
612
|
-
ListCache.prototype.clear=listCacheClear;ListCache.prototype['delete']=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;/**
|
|
613
|
-
* Creates a map cache object to store key-value pairs.
|
|
614
|
-
*
|
|
615
|
-
* @private
|
|
616
|
-
* @constructor
|
|
617
|
-
* @param {Array} [entries] The key-value pairs to cache.
|
|
618
|
-
*/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]);}}/**
|
|
619
|
-
* Removes all key-value entries from the map.
|
|
620
|
-
*
|
|
621
|
-
* @private
|
|
622
|
-
* @name clear
|
|
623
|
-
* @memberOf MapCache
|
|
624
|
-
*/function mapCacheClear(){this.__data__={'hash':new Hash(),'map':new(Map||ListCache)(),'string':new Hash()};}/**
|
|
625
|
-
* Removes `key` and its value from the map.
|
|
626
|
-
*
|
|
627
|
-
* @private
|
|
628
|
-
* @name delete
|
|
629
|
-
* @memberOf MapCache
|
|
630
|
-
* @param {string} key The key of the value to remove.
|
|
631
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
632
|
-
*/function mapCacheDelete(key){return getMapData(this,key)['delete'](key);}/**
|
|
633
|
-
* Gets the map value for `key`.
|
|
634
|
-
*
|
|
635
|
-
* @private
|
|
636
|
-
* @name get
|
|
637
|
-
* @memberOf MapCache
|
|
638
|
-
* @param {string} key The key of the value to get.
|
|
639
|
-
* @returns {*} Returns the entry value.
|
|
640
|
-
*/function mapCacheGet(key){return getMapData(this,key).get(key);}/**
|
|
641
|
-
* Checks if a map value for `key` exists.
|
|
642
|
-
*
|
|
643
|
-
* @private
|
|
644
|
-
* @name has
|
|
645
|
-
* @memberOf MapCache
|
|
646
|
-
* @param {string} key The key of the entry to check.
|
|
647
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
648
|
-
*/function mapCacheHas(key){return getMapData(this,key).has(key);}/**
|
|
649
|
-
* Sets the map `key` to `value`.
|
|
650
|
-
*
|
|
651
|
-
* @private
|
|
652
|
-
* @name set
|
|
653
|
-
* @memberOf MapCache
|
|
654
|
-
* @param {string} key The key of the value to set.
|
|
655
|
-
* @param {*} value The value to set.
|
|
656
|
-
* @returns {Object} Returns the map cache instance.
|
|
657
|
-
*/function mapCacheSet(key,value){getMapData(this,key).set(key,value);return this;}// Add methods to `MapCache`.
|
|
658
|
-
MapCache.prototype.clear=mapCacheClear;MapCache.prototype['delete']=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;/**
|
|
659
|
-
* Creates a stack cache object to store key-value pairs.
|
|
660
|
-
*
|
|
661
|
-
* @private
|
|
662
|
-
* @constructor
|
|
663
|
-
* @param {Array} [entries] The key-value pairs to cache.
|
|
664
|
-
*/function Stack(entries){this.__data__=new ListCache(entries);}/**
|
|
665
|
-
* Removes all key-value entries from the stack.
|
|
666
|
-
*
|
|
667
|
-
* @private
|
|
668
|
-
* @name clear
|
|
669
|
-
* @memberOf Stack
|
|
670
|
-
*/function stackClear(){this.__data__=new ListCache();}/**
|
|
671
|
-
* Removes `key` and its value from the stack.
|
|
672
|
-
*
|
|
673
|
-
* @private
|
|
674
|
-
* @name delete
|
|
675
|
-
* @memberOf Stack
|
|
676
|
-
* @param {string} key The key of the value to remove.
|
|
677
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
678
|
-
*/function stackDelete(key){return this.__data__['delete'](key);}/**
|
|
679
|
-
* Gets the stack value for `key`.
|
|
680
|
-
*
|
|
681
|
-
* @private
|
|
682
|
-
* @name get
|
|
683
|
-
* @memberOf Stack
|
|
684
|
-
* @param {string} key The key of the value to get.
|
|
685
|
-
* @returns {*} Returns the entry value.
|
|
686
|
-
*/function stackGet(key){return this.__data__.get(key);}/**
|
|
687
|
-
* Checks if a stack value for `key` exists.
|
|
688
|
-
*
|
|
689
|
-
* @private
|
|
690
|
-
* @name has
|
|
691
|
-
* @memberOf Stack
|
|
692
|
-
* @param {string} key The key of the entry to check.
|
|
693
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
694
|
-
*/function stackHas(key){return this.__data__.has(key);}/**
|
|
695
|
-
* Sets the stack `key` to `value`.
|
|
696
|
-
*
|
|
697
|
-
* @private
|
|
698
|
-
* @name set
|
|
699
|
-
* @memberOf Stack
|
|
700
|
-
* @param {string} key The key of the value to set.
|
|
701
|
-
* @param {*} value The value to set.
|
|
702
|
-
* @returns {Object} Returns the stack cache instance.
|
|
703
|
-
*/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`.
|
|
704
|
-
Stack.prototype.clear=stackClear;Stack.prototype['delete']=stackDelete;Stack.prototype.get=stackGet;Stack.prototype.has=stackHas;Stack.prototype.set=stackSet;/**
|
|
705
|
-
* Creates an array of the enumerable property names of the array-like `value`.
|
|
706
|
-
*
|
|
707
|
-
* @private
|
|
708
|
-
* @param {*} value The value to query.
|
|
709
|
-
* @param {boolean} inherited Specify returning inherited property names.
|
|
710
|
-
* @returns {Array} Returns the array of property names.
|
|
711
|
-
*/function arrayLikeKeys(value,inherited){// Safari 8.1 makes `arguments.callee` enumerable in strict mode.
|
|
712
|
-
// Safari 9 makes `arguments.length` enumerable in strict mode.
|
|
713
|
-
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;}/**
|
|
714
|
-
* Assigns `value` to `key` of `object` if the existing value is not equivalent
|
|
715
|
-
* using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
716
|
-
* for equality comparisons.
|
|
717
|
-
*
|
|
718
|
-
* @private
|
|
719
|
-
* @param {Object} object The object to modify.
|
|
720
|
-
* @param {string} key The key of the property to assign.
|
|
721
|
-
* @param {*} value The value to assign.
|
|
722
|
-
*/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;}}/**
|
|
723
|
-
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
724
|
-
*
|
|
725
|
-
* @private
|
|
726
|
-
* @param {Array} array The array to inspect.
|
|
727
|
-
* @param {*} key The key to search for.
|
|
728
|
-
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
729
|
-
*/function assocIndexOf(array,key){var length=array.length;while(length--){if(eq(array[length][0],key)){return length;}}return-1;}/**
|
|
730
|
-
* The base implementation of `_.assign` without support for multiple sources
|
|
731
|
-
* or `customizer` functions.
|
|
732
|
-
*
|
|
733
|
-
* @private
|
|
734
|
-
* @param {Object} object The destination object.
|
|
735
|
-
* @param {Object} source The source object.
|
|
736
|
-
* @returns {Object} Returns `object`.
|
|
737
|
-
*/function baseAssign(object,source){return object&©Object(source,keys(source),object);}/**
|
|
738
|
-
* The base implementation of `_.clone` and `_.cloneDeep` which tracks
|
|
739
|
-
* traversed objects.
|
|
740
|
-
*
|
|
741
|
-
* @private
|
|
742
|
-
* @param {*} value The value to clone.
|
|
743
|
-
* @param {boolean} [isDeep] Specify a deep clone.
|
|
744
|
-
* @param {boolean} [isFull] Specify a clone including symbols.
|
|
745
|
-
* @param {Function} [customizer] The function to customize cloning.
|
|
746
|
-
* @param {string} [key] The key of `value`.
|
|
747
|
-
* @param {Object} [object] The parent object of `value`.
|
|
748
|
-
* @param {Object} [stack] Tracks traversed objects and their clone counterparts.
|
|
749
|
-
* @returns {*} Returns the cloned value.
|
|
750
|
-
*/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.
|
|
751
|
-
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).
|
|
752
|
-
assignValue(result,key,baseClone(subValue,isDeep,isFull,customizer,key,value,stack));});return result;}/**
|
|
753
|
-
* The base implementation of `_.create` without support for assigning
|
|
754
|
-
* properties to the created object.
|
|
755
|
-
*
|
|
756
|
-
* @private
|
|
757
|
-
* @param {Object} prototype The object to inherit from.
|
|
758
|
-
* @returns {Object} Returns the new object.
|
|
759
|
-
*/function baseCreate(proto){return isObject(proto)?objectCreate(proto):{};}/**
|
|
760
|
-
* The base implementation of `getAllKeys` and `getAllKeysIn` which uses
|
|
761
|
-
* `keysFunc` and `symbolsFunc` to get the enumerable property names and
|
|
762
|
-
* symbols of `object`.
|
|
763
|
-
*
|
|
764
|
-
* @private
|
|
765
|
-
* @param {Object} object The object to query.
|
|
766
|
-
* @param {Function} keysFunc The function to get the keys of `object`.
|
|
767
|
-
* @param {Function} symbolsFunc The function to get the symbols of `object`.
|
|
768
|
-
* @returns {Array} Returns the array of property names and symbols.
|
|
769
|
-
*/function baseGetAllKeys(object,keysFunc,symbolsFunc){var result=keysFunc(object);return isArray(object)?result:arrayPush(result,symbolsFunc(object));}/**
|
|
770
|
-
* The base implementation of `getTag`.
|
|
771
|
-
*
|
|
772
|
-
* @private
|
|
773
|
-
* @param {*} value The value to query.
|
|
774
|
-
* @returns {string} Returns the `toStringTag`.
|
|
775
|
-
*/function baseGetTag(value){return objectToString.call(value);}/**
|
|
776
|
-
* The base implementation of `_.isNative` without bad shim checks.
|
|
777
|
-
*
|
|
778
|
-
* @private
|
|
779
|
-
* @param {*} value The value to check.
|
|
780
|
-
* @returns {boolean} Returns `true` if `value` is a native function,
|
|
781
|
-
* else `false`.
|
|
782
|
-
*/function baseIsNative(value){if(!isObject(value)||isMasked(value)){return false;}var pattern=isFunction(value)||isHostObject(value)?reIsNative:reIsHostCtor;return pattern.test(toSource(value));}/**
|
|
783
|
-
* The base implementation of `_.keys` which doesn't treat sparse arrays as dense.
|
|
784
|
-
*
|
|
785
|
-
* @private
|
|
786
|
-
* @param {Object} object The object to query.
|
|
787
|
-
* @returns {Array} Returns the array of property names.
|
|
788
|
-
*/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;}/**
|
|
789
|
-
* Creates a clone of `buffer`.
|
|
790
|
-
*
|
|
791
|
-
* @private
|
|
792
|
-
* @param {Buffer} buffer The buffer to clone.
|
|
793
|
-
* @param {boolean} [isDeep] Specify a deep clone.
|
|
794
|
-
* @returns {Buffer} Returns the cloned buffer.
|
|
795
|
-
*/function cloneBuffer(buffer,isDeep){if(isDeep){return buffer.slice();}var result=new buffer.constructor(buffer.length);buffer.copy(result);return result;}/**
|
|
796
|
-
* Creates a clone of `arrayBuffer`.
|
|
797
|
-
*
|
|
798
|
-
* @private
|
|
799
|
-
* @param {ArrayBuffer} arrayBuffer The array buffer to clone.
|
|
800
|
-
* @returns {ArrayBuffer} Returns the cloned array buffer.
|
|
801
|
-
*/function cloneArrayBuffer(arrayBuffer){var result=new arrayBuffer.constructor(arrayBuffer.byteLength);new Uint8Array(result).set(new Uint8Array(arrayBuffer));return result;}/**
|
|
802
|
-
* Creates a clone of `dataView`.
|
|
803
|
-
*
|
|
804
|
-
* @private
|
|
805
|
-
* @param {Object} dataView The data view to clone.
|
|
806
|
-
* @param {boolean} [isDeep] Specify a deep clone.
|
|
807
|
-
* @returns {Object} Returns the cloned data view.
|
|
808
|
-
*/function cloneDataView(dataView,isDeep){var buffer=isDeep?cloneArrayBuffer(dataView.buffer):dataView.buffer;return new dataView.constructor(buffer,dataView.byteOffset,dataView.byteLength);}/**
|
|
809
|
-
* Creates a clone of `map`.
|
|
810
|
-
*
|
|
811
|
-
* @private
|
|
812
|
-
* @param {Object} map The map to clone.
|
|
813
|
-
* @param {Function} cloneFunc The function to clone values.
|
|
814
|
-
* @param {boolean} [isDeep] Specify a deep clone.
|
|
815
|
-
* @returns {Object} Returns the cloned map.
|
|
816
|
-
*/function cloneMap(map,isDeep,cloneFunc){var array=isDeep?cloneFunc(mapToArray(map),true):mapToArray(map);return arrayReduce(array,addMapEntry,new map.constructor());}/**
|
|
817
|
-
* Creates a clone of `regexp`.
|
|
818
|
-
*
|
|
819
|
-
* @private
|
|
820
|
-
* @param {Object} regexp The regexp to clone.
|
|
821
|
-
* @returns {Object} Returns the cloned regexp.
|
|
822
|
-
*/function cloneRegExp(regexp){var result=new regexp.constructor(regexp.source,reFlags.exec(regexp));result.lastIndex=regexp.lastIndex;return result;}/**
|
|
823
|
-
* Creates a clone of `set`.
|
|
824
|
-
*
|
|
825
|
-
* @private
|
|
826
|
-
* @param {Object} set The set to clone.
|
|
827
|
-
* @param {Function} cloneFunc The function to clone values.
|
|
828
|
-
* @param {boolean} [isDeep] Specify a deep clone.
|
|
829
|
-
* @returns {Object} Returns the cloned set.
|
|
830
|
-
*/function cloneSet(set,isDeep,cloneFunc){var array=isDeep?cloneFunc(setToArray(set),true):setToArray(set);return arrayReduce(array,addSetEntry,new set.constructor());}/**
|
|
831
|
-
* Creates a clone of the `symbol` object.
|
|
832
|
-
*
|
|
833
|
-
* @private
|
|
834
|
-
* @param {Object} symbol The symbol object to clone.
|
|
835
|
-
* @returns {Object} Returns the cloned symbol object.
|
|
836
|
-
*/function cloneSymbol(symbol){return symbolValueOf?Object(symbolValueOf.call(symbol)):{};}/**
|
|
837
|
-
* Creates a clone of `typedArray`.
|
|
838
|
-
*
|
|
839
|
-
* @private
|
|
840
|
-
* @param {Object} typedArray The typed array to clone.
|
|
841
|
-
* @param {boolean} [isDeep] Specify a deep clone.
|
|
842
|
-
* @returns {Object} Returns the cloned typed array.
|
|
843
|
-
*/function cloneTypedArray(typedArray,isDeep){var buffer=isDeep?cloneArrayBuffer(typedArray.buffer):typedArray.buffer;return new typedArray.constructor(buffer,typedArray.byteOffset,typedArray.length);}/**
|
|
844
|
-
* Copies the values of `source` to `array`.
|
|
845
|
-
*
|
|
846
|
-
* @private
|
|
847
|
-
* @param {Array} source The array to copy values from.
|
|
848
|
-
* @param {Array} [array=[]] The array to copy values to.
|
|
849
|
-
* @returns {Array} Returns `array`.
|
|
850
|
-
*/function copyArray(source,array){var index=-1,length=source.length;array||(array=Array(length));while(++index<length){array[index]=source[index];}return array;}/**
|
|
851
|
-
* Copies properties of `source` to `object`.
|
|
852
|
-
*
|
|
853
|
-
* @private
|
|
854
|
-
* @param {Object} source The object to copy properties from.
|
|
855
|
-
* @param {Array} props The property identifiers to copy.
|
|
856
|
-
* @param {Object} [object={}] The object to copy properties to.
|
|
857
|
-
* @param {Function} [customizer] The function to customize copied values.
|
|
858
|
-
* @returns {Object} Returns `object`.
|
|
859
|
-
*/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;}/**
|
|
860
|
-
* Copies own symbol properties of `source` to `object`.
|
|
861
|
-
*
|
|
862
|
-
* @private
|
|
863
|
-
* @param {Object} source The object to copy symbols from.
|
|
864
|
-
* @param {Object} [object={}] The object to copy symbols to.
|
|
865
|
-
* @returns {Object} Returns `object`.
|
|
866
|
-
*/function copySymbols(source,object){return copyObject(source,getSymbols(source),object);}/**
|
|
867
|
-
* Creates an array of own enumerable property names and symbols of `object`.
|
|
868
|
-
*
|
|
869
|
-
* @private
|
|
870
|
-
* @param {Object} object The object to query.
|
|
871
|
-
* @returns {Array} Returns the array of property names and symbols.
|
|
872
|
-
*/function getAllKeys(object){return baseGetAllKeys(object,keys,getSymbols);}/**
|
|
873
|
-
* Gets the data for `map`.
|
|
874
|
-
*
|
|
875
|
-
* @private
|
|
876
|
-
* @param {Object} map The map to query.
|
|
877
|
-
* @param {string} key The reference key.
|
|
878
|
-
* @returns {*} Returns the map data.
|
|
879
|
-
*/function getMapData(map,key){var data=map.__data__;return isKeyable(key)?data[typeof key=='string'?'string':'hash']:data.map;}/**
|
|
880
|
-
* Gets the native function at `key` of `object`.
|
|
881
|
-
*
|
|
882
|
-
* @private
|
|
883
|
-
* @param {Object} object The object to query.
|
|
884
|
-
* @param {string} key The key of the method to get.
|
|
885
|
-
* @returns {*} Returns the function if it's native, else `undefined`.
|
|
886
|
-
*/function getNative(object,key){var value=getValue(object,key);return baseIsNative(value)?value:undefined;}/**
|
|
887
|
-
* Creates an array of the own enumerable symbol properties of `object`.
|
|
888
|
-
*
|
|
889
|
-
* @private
|
|
890
|
-
* @param {Object} object The object to query.
|
|
891
|
-
* @returns {Array} Returns the array of symbols.
|
|
892
|
-
*/var getSymbols=nativeGetSymbols?overArg(nativeGetSymbols,Object):stubArray;/**
|
|
893
|
-
* Gets the `toStringTag` of `value`.
|
|
894
|
-
*
|
|
895
|
-
* @private
|
|
896
|
-
* @param {*} value The value to query.
|
|
897
|
-
* @returns {string} Returns the `toStringTag`.
|
|
898
|
-
*/var getTag=baseGetTag;// Fallback for data views, maps, sets, and weak maps in IE 11,
|
|
899
|
-
// for data views in Edge < 14, and promises in Node.js.
|
|
900
|
-
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;};}/**
|
|
901
|
-
* Initializes an array clone.
|
|
902
|
-
*
|
|
903
|
-
* @private
|
|
904
|
-
* @param {Array} array The array to clone.
|
|
905
|
-
* @returns {Array} Returns the initialized clone.
|
|
906
|
-
*/function initCloneArray(array){var length=array.length,result=array.constructor(length);// Add properties assigned by `RegExp#exec`.
|
|
907
|
-
if(length&&typeof array[0]=='string'&&hasOwnProperty.call(array,'index')){result.index=array.index;result.input=array.input;}return result;}/**
|
|
908
|
-
* Initializes an object clone.
|
|
909
|
-
*
|
|
910
|
-
* @private
|
|
911
|
-
* @param {Object} object The object to clone.
|
|
912
|
-
* @returns {Object} Returns the initialized clone.
|
|
913
|
-
*/function initCloneObject(object){return typeof object.constructor=='function'&&!isPrototype(object)?baseCreate(getPrototype(object)):{};}/**
|
|
914
|
-
* Initializes an object clone based on its `toStringTag`.
|
|
915
|
-
*
|
|
916
|
-
* **Note:** This function only supports cloning values with tags of
|
|
917
|
-
* `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
|
|
918
|
-
*
|
|
919
|
-
* @private
|
|
920
|
-
* @param {Object} object The object to clone.
|
|
921
|
-
* @param {string} tag The `toStringTag` of the object to clone.
|
|
922
|
-
* @param {Function} cloneFunc The function to clone values.
|
|
923
|
-
* @param {boolean} [isDeep] Specify a deep clone.
|
|
924
|
-
* @returns {Object} Returns the initialized clone.
|
|
925
|
-
*/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);}}/**
|
|
926
|
-
* Checks if `value` is a valid array-like index.
|
|
927
|
-
*
|
|
928
|
-
* @private
|
|
929
|
-
* @param {*} value The value to check.
|
|
930
|
-
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
931
|
-
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
932
|
-
*/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;}/**
|
|
933
|
-
* Checks if `value` is suitable for use as unique object key.
|
|
934
|
-
*
|
|
935
|
-
* @private
|
|
936
|
-
* @param {*} value The value to check.
|
|
937
|
-
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
|
|
938
|
-
*/function isKeyable(value){var type=_typeof(value);return type=='string'||type=='number'||type=='symbol'||type=='boolean'?value!=='__proto__':value===null;}/**
|
|
939
|
-
* Checks if `func` has its source masked.
|
|
940
|
-
*
|
|
941
|
-
* @private
|
|
942
|
-
* @param {Function} func The function to check.
|
|
943
|
-
* @returns {boolean} Returns `true` if `func` is masked, else `false`.
|
|
944
|
-
*/function isMasked(func){return!!maskSrcKey&&maskSrcKey in func;}/**
|
|
945
|
-
* Checks if `value` is likely a prototype object.
|
|
946
|
-
*
|
|
947
|
-
* @private
|
|
948
|
-
* @param {*} value The value to check.
|
|
949
|
-
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
|
|
950
|
-
*/function isPrototype(value){var Ctor=value&&value.constructor,proto=typeof Ctor=='function'&&Ctor.prototype||objectProto;return value===proto;}/**
|
|
951
|
-
* Converts `func` to its source code.
|
|
952
|
-
*
|
|
953
|
-
* @private
|
|
954
|
-
* @param {Function} func The function to process.
|
|
955
|
-
* @returns {string} Returns the source code.
|
|
956
|
-
*/function toSource(func){if(func!=null){try{return funcToString.call(func);}catch(e){}try{return func+'';}catch(e){}}return'';}/**
|
|
957
|
-
* This method is like `_.clone` except that it recursively clones `value`.
|
|
958
|
-
*
|
|
959
|
-
* @static
|
|
960
|
-
* @memberOf _
|
|
961
|
-
* @since 1.0.0
|
|
962
|
-
* @category Lang
|
|
963
|
-
* @param {*} value The value to recursively clone.
|
|
964
|
-
* @returns {*} Returns the deep cloned value.
|
|
965
|
-
* @see _.clone
|
|
966
|
-
* @example
|
|
967
|
-
*
|
|
968
|
-
* var objects = [{ 'a': 1 }, { 'b': 2 }];
|
|
969
|
-
*
|
|
970
|
-
* var deep = _.cloneDeep(objects);
|
|
971
|
-
* console.log(deep[0] === objects[0]);
|
|
972
|
-
* // => false
|
|
973
|
-
*/function cloneDeep(value){return baseClone(value,true,true);}/**
|
|
974
|
-
* Performs a
|
|
975
|
-
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
976
|
-
* comparison between two values to determine if they are equivalent.
|
|
977
|
-
*
|
|
978
|
-
* @static
|
|
979
|
-
* @memberOf _
|
|
980
|
-
* @since 4.0.0
|
|
981
|
-
* @category Lang
|
|
982
|
-
* @param {*} value The value to compare.
|
|
983
|
-
* @param {*} other The other value to compare.
|
|
984
|
-
* @returns {boolean} Returns `true` if the values are equivalent, else `false`.
|
|
985
|
-
* @example
|
|
986
|
-
*
|
|
987
|
-
* var object = { 'a': 1 };
|
|
988
|
-
* var other = { 'a': 1 };
|
|
989
|
-
*
|
|
990
|
-
* _.eq(object, object);
|
|
991
|
-
* // => true
|
|
992
|
-
*
|
|
993
|
-
* _.eq(object, other);
|
|
994
|
-
* // => false
|
|
995
|
-
*
|
|
996
|
-
* _.eq('a', 'a');
|
|
997
|
-
* // => true
|
|
998
|
-
*
|
|
999
|
-
* _.eq('a', Object('a'));
|
|
1000
|
-
* // => false
|
|
1001
|
-
*
|
|
1002
|
-
* _.eq(NaN, NaN);
|
|
1003
|
-
* // => true
|
|
1004
|
-
*/function eq(value,other){return value===other||value!==value&&other!==other;}/**
|
|
1005
|
-
* Checks if `value` is likely an `arguments` object.
|
|
1006
|
-
*
|
|
1007
|
-
* @static
|
|
1008
|
-
* @memberOf _
|
|
1009
|
-
* @since 0.1.0
|
|
1010
|
-
* @category Lang
|
|
1011
|
-
* @param {*} value The value to check.
|
|
1012
|
-
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
1013
|
-
* else `false`.
|
|
1014
|
-
* @example
|
|
1015
|
-
*
|
|
1016
|
-
* _.isArguments(function() { return arguments; }());
|
|
1017
|
-
* // => true
|
|
1018
|
-
*
|
|
1019
|
-
* _.isArguments([1, 2, 3]);
|
|
1020
|
-
* // => false
|
|
1021
|
-
*/function isArguments(value){// Safari 8.1 makes `arguments.callee` enumerable in strict mode.
|
|
1022
|
-
return isArrayLikeObject(value)&&hasOwnProperty.call(value,'callee')&&(!propertyIsEnumerable.call(value,'callee')||objectToString.call(value)==argsTag);}/**
|
|
1023
|
-
* Checks if `value` is classified as an `Array` object.
|
|
1024
|
-
*
|
|
1025
|
-
* @static
|
|
1026
|
-
* @memberOf _
|
|
1027
|
-
* @since 0.1.0
|
|
1028
|
-
* @category Lang
|
|
1029
|
-
* @param {*} value The value to check.
|
|
1030
|
-
* @returns {boolean} Returns `true` if `value` is an array, else `false`.
|
|
1031
|
-
* @example
|
|
1032
|
-
*
|
|
1033
|
-
* _.isArray([1, 2, 3]);
|
|
1034
|
-
* // => true
|
|
1035
|
-
*
|
|
1036
|
-
* _.isArray(document.body.children);
|
|
1037
|
-
* // => false
|
|
1038
|
-
*
|
|
1039
|
-
* _.isArray('abc');
|
|
1040
|
-
* // => false
|
|
1041
|
-
*
|
|
1042
|
-
* _.isArray(_.noop);
|
|
1043
|
-
* // => false
|
|
1044
|
-
*/var isArray=Array.isArray;/**
|
|
1045
|
-
* Checks if `value` is array-like. A value is considered array-like if it's
|
|
1046
|
-
* not a function and has a `value.length` that's an integer greater than or
|
|
1047
|
-
* equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
|
|
1048
|
-
*
|
|
1049
|
-
* @static
|
|
1050
|
-
* @memberOf _
|
|
1051
|
-
* @since 4.0.0
|
|
1052
|
-
* @category Lang
|
|
1053
|
-
* @param {*} value The value to check.
|
|
1054
|
-
* @returns {boolean} Returns `true` if `value` is array-like, else `false`.
|
|
1055
|
-
* @example
|
|
1056
|
-
*
|
|
1057
|
-
* _.isArrayLike([1, 2, 3]);
|
|
1058
|
-
* // => true
|
|
1059
|
-
*
|
|
1060
|
-
* _.isArrayLike(document.body.children);
|
|
1061
|
-
* // => true
|
|
1062
|
-
*
|
|
1063
|
-
* _.isArrayLike('abc');
|
|
1064
|
-
* // => true
|
|
1065
|
-
*
|
|
1066
|
-
* _.isArrayLike(_.noop);
|
|
1067
|
-
* // => false
|
|
1068
|
-
*/function isArrayLike(value){return value!=null&&isLength(value.length)&&!isFunction(value);}/**
|
|
1069
|
-
* This method is like `_.isArrayLike` except that it also checks if `value`
|
|
1070
|
-
* is an object.
|
|
1071
|
-
*
|
|
1072
|
-
* @static
|
|
1073
|
-
* @memberOf _
|
|
1074
|
-
* @since 4.0.0
|
|
1075
|
-
* @category Lang
|
|
1076
|
-
* @param {*} value The value to check.
|
|
1077
|
-
* @returns {boolean} Returns `true` if `value` is an array-like object,
|
|
1078
|
-
* else `false`.
|
|
1079
|
-
* @example
|
|
1080
|
-
*
|
|
1081
|
-
* _.isArrayLikeObject([1, 2, 3]);
|
|
1082
|
-
* // => true
|
|
1083
|
-
*
|
|
1084
|
-
* _.isArrayLikeObject(document.body.children);
|
|
1085
|
-
* // => true
|
|
1086
|
-
*
|
|
1087
|
-
* _.isArrayLikeObject('abc');
|
|
1088
|
-
* // => false
|
|
1089
|
-
*
|
|
1090
|
-
* _.isArrayLikeObject(_.noop);
|
|
1091
|
-
* // => false
|
|
1092
|
-
*/function isArrayLikeObject(value){return isObjectLike(value)&&isArrayLike(value);}/**
|
|
1093
|
-
* Checks if `value` is a buffer.
|
|
1094
|
-
*
|
|
1095
|
-
* @static
|
|
1096
|
-
* @memberOf _
|
|
1097
|
-
* @since 4.3.0
|
|
1098
|
-
* @category Lang
|
|
1099
|
-
* @param {*} value The value to check.
|
|
1100
|
-
* @returns {boolean} Returns `true` if `value` is a buffer, else `false`.
|
|
1101
|
-
* @example
|
|
1102
|
-
*
|
|
1103
|
-
* _.isBuffer(new Buffer(2));
|
|
1104
|
-
* // => true
|
|
1105
|
-
*
|
|
1106
|
-
* _.isBuffer(new Uint8Array(2));
|
|
1107
|
-
* // => false
|
|
1108
|
-
*/var isBuffer=nativeIsBuffer||stubFalse;/**
|
|
1109
|
-
* Checks if `value` is classified as a `Function` object.
|
|
1110
|
-
*
|
|
1111
|
-
* @static
|
|
1112
|
-
* @memberOf _
|
|
1113
|
-
* @since 0.1.0
|
|
1114
|
-
* @category Lang
|
|
1115
|
-
* @param {*} value The value to check.
|
|
1116
|
-
* @returns {boolean} Returns `true` if `value` is a function, else `false`.
|
|
1117
|
-
* @example
|
|
1118
|
-
*
|
|
1119
|
-
* _.isFunction(_);
|
|
1120
|
-
* // => true
|
|
1121
|
-
*
|
|
1122
|
-
* _.isFunction(/abc/);
|
|
1123
|
-
* // => false
|
|
1124
|
-
*/function isFunction(value){// The use of `Object#toString` avoids issues with the `typeof` operator
|
|
1125
|
-
// in Safari 8-9 which returns 'object' for typed array and other constructors.
|
|
1126
|
-
var tag=isObject(value)?objectToString.call(value):'';return tag==funcTag||tag==genTag;}/**
|
|
1127
|
-
* Checks if `value` is a valid array-like length.
|
|
1128
|
-
*
|
|
1129
|
-
* **Note:** This method is loosely based on
|
|
1130
|
-
* [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).
|
|
1131
|
-
*
|
|
1132
|
-
* @static
|
|
1133
|
-
* @memberOf _
|
|
1134
|
-
* @since 4.0.0
|
|
1135
|
-
* @category Lang
|
|
1136
|
-
* @param {*} value The value to check.
|
|
1137
|
-
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`.
|
|
1138
|
-
* @example
|
|
1139
|
-
*
|
|
1140
|
-
* _.isLength(3);
|
|
1141
|
-
* // => true
|
|
1142
|
-
*
|
|
1143
|
-
* _.isLength(Number.MIN_VALUE);
|
|
1144
|
-
* // => false
|
|
1145
|
-
*
|
|
1146
|
-
* _.isLength(Infinity);
|
|
1147
|
-
* // => false
|
|
1148
|
-
*
|
|
1149
|
-
* _.isLength('3');
|
|
1150
|
-
* // => false
|
|
1151
|
-
*/function isLength(value){return typeof value=='number'&&value>-1&&value%1==0&&value<=MAX_SAFE_INTEGER;}/**
|
|
1152
|
-
* Checks if `value` is the
|
|
1153
|
-
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
1154
|
-
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
1155
|
-
*
|
|
1156
|
-
* @static
|
|
1157
|
-
* @memberOf _
|
|
1158
|
-
* @since 0.1.0
|
|
1159
|
-
* @category Lang
|
|
1160
|
-
* @param {*} value The value to check.
|
|
1161
|
-
* @returns {boolean} Returns `true` if `value` is an object, else `false`.
|
|
1162
|
-
* @example
|
|
1163
|
-
*
|
|
1164
|
-
* _.isObject({});
|
|
1165
|
-
* // => true
|
|
1166
|
-
*
|
|
1167
|
-
* _.isObject([1, 2, 3]);
|
|
1168
|
-
* // => true
|
|
1169
|
-
*
|
|
1170
|
-
* _.isObject(_.noop);
|
|
1171
|
-
* // => true
|
|
1172
|
-
*
|
|
1173
|
-
* _.isObject(null);
|
|
1174
|
-
* // => false
|
|
1175
|
-
*/function isObject(value){var type=_typeof(value);return!!value&&(type=='object'||type=='function');}/**
|
|
1176
|
-
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
1177
|
-
* and has a `typeof` result of "object".
|
|
1178
|
-
*
|
|
1179
|
-
* @static
|
|
1180
|
-
* @memberOf _
|
|
1181
|
-
* @since 4.0.0
|
|
1182
|
-
* @category Lang
|
|
1183
|
-
* @param {*} value The value to check.
|
|
1184
|
-
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
1185
|
-
* @example
|
|
1186
|
-
*
|
|
1187
|
-
* _.isObjectLike({});
|
|
1188
|
-
* // => true
|
|
1189
|
-
*
|
|
1190
|
-
* _.isObjectLike([1, 2, 3]);
|
|
1191
|
-
* // => true
|
|
1192
|
-
*
|
|
1193
|
-
* _.isObjectLike(_.noop);
|
|
1194
|
-
* // => false
|
|
1195
|
-
*
|
|
1196
|
-
* _.isObjectLike(null);
|
|
1197
|
-
* // => false
|
|
1198
|
-
*/function isObjectLike(value){return!!value&&_typeof(value)=='object';}/**
|
|
1199
|
-
* Creates an array of the own enumerable property names of `object`.
|
|
1200
|
-
*
|
|
1201
|
-
* **Note:** Non-object values are coerced to objects. See the
|
|
1202
|
-
* [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
1203
|
-
* for more details.
|
|
1204
|
-
*
|
|
1205
|
-
* @static
|
|
1206
|
-
* @since 0.1.0
|
|
1207
|
-
* @memberOf _
|
|
1208
|
-
* @category Object
|
|
1209
|
-
* @param {Object} object The object to query.
|
|
1210
|
-
* @returns {Array} Returns the array of property names.
|
|
1211
|
-
* @example
|
|
1212
|
-
*
|
|
1213
|
-
* function Foo() {
|
|
1214
|
-
* this.a = 1;
|
|
1215
|
-
* this.b = 2;
|
|
1216
|
-
* }
|
|
1217
|
-
*
|
|
1218
|
-
* Foo.prototype.c = 3;
|
|
1219
|
-
*
|
|
1220
|
-
* _.keys(new Foo);
|
|
1221
|
-
* // => ['a', 'b'] (iteration order is not guaranteed)
|
|
1222
|
-
*
|
|
1223
|
-
* _.keys('hi');
|
|
1224
|
-
* // => ['0', '1']
|
|
1225
|
-
*/function keys(object){return isArrayLike(object)?arrayLikeKeys(object):baseKeys(object);}/**
|
|
1226
|
-
* This method returns a new empty array.
|
|
1227
|
-
*
|
|
1228
|
-
* @static
|
|
1229
|
-
* @memberOf _
|
|
1230
|
-
* @since 4.13.0
|
|
1231
|
-
* @category Util
|
|
1232
|
-
* @returns {Array} Returns the new empty array.
|
|
1233
|
-
* @example
|
|
1234
|
-
*
|
|
1235
|
-
* var arrays = _.times(2, _.stubArray);
|
|
1236
|
-
*
|
|
1237
|
-
* console.log(arrays);
|
|
1238
|
-
* // => [[], []]
|
|
1239
|
-
*
|
|
1240
|
-
* console.log(arrays[0] === arrays[1]);
|
|
1241
|
-
* // => false
|
|
1242
|
-
*/function stubArray(){return[];}/**
|
|
1243
|
-
* This method returns `false`.
|
|
1244
|
-
*
|
|
1245
|
-
* @static
|
|
1246
|
-
* @memberOf _
|
|
1247
|
-
* @since 4.13.0
|
|
1248
|
-
* @category Util
|
|
1249
|
-
* @returns {boolean} Returns `false`.
|
|
1250
|
-
* @example
|
|
1251
|
-
*
|
|
1252
|
-
* _.times(2, _.stubFalse);
|
|
1253
|
-
* // => [false, false]
|
|
1254
|
-
*/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){/**
|
|
1255
|
-
* lodash (Custom Build) <https://lodash.com/>
|
|
1256
|
-
* Build: `lodash modularize exports="npm" -o ./`
|
|
1257
|
-
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
|
1258
|
-
* Released under MIT license <https://lodash.com/license>
|
|
1259
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
1260
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
1261
|
-
*/ /** Used as references for various `Number` constants. */var INFINITY=1/0;/** `Object#toString` result references. */var symbolTag='[object Symbol]';/**
|
|
1262
|
-
* Used to match `RegExp`
|
|
1263
|
-
* [syntax characters](http://ecma-international.org/ecma-262/6.0/#sec-patterns).
|
|
1264
|
-
*/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;/**
|
|
1265
|
-
* Used to resolve the
|
|
1266
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
|
|
1267
|
-
* of values.
|
|
1268
|
-
*/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;/**
|
|
1269
|
-
* The base implementation of `_.toString` which doesn't convert nullish
|
|
1270
|
-
* values to empty strings.
|
|
1271
|
-
*
|
|
1272
|
-
* @private
|
|
1273
|
-
* @param {*} value The value to process.
|
|
1274
|
-
* @returns {string} Returns the string.
|
|
1275
|
-
*/function baseToString(value){// Exit early for strings to avoid a performance hit in some environments.
|
|
1276
|
-
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;}/**
|
|
1277
|
-
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
1278
|
-
* and has a `typeof` result of "object".
|
|
1279
|
-
*
|
|
1280
|
-
* @static
|
|
1281
|
-
* @memberOf _
|
|
1282
|
-
* @since 4.0.0
|
|
1283
|
-
* @category Lang
|
|
1284
|
-
* @param {*} value The value to check.
|
|
1285
|
-
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
1286
|
-
* @example
|
|
1287
|
-
*
|
|
1288
|
-
* _.isObjectLike({});
|
|
1289
|
-
* // => true
|
|
1290
|
-
*
|
|
1291
|
-
* _.isObjectLike([1, 2, 3]);
|
|
1292
|
-
* // => true
|
|
1293
|
-
*
|
|
1294
|
-
* _.isObjectLike(_.noop);
|
|
1295
|
-
* // => false
|
|
1296
|
-
*
|
|
1297
|
-
* _.isObjectLike(null);
|
|
1298
|
-
* // => false
|
|
1299
|
-
*/function isObjectLike(value){return!!value&&_typeof(value)=='object';}/**
|
|
1300
|
-
* Checks if `value` is classified as a `Symbol` primitive or object.
|
|
1301
|
-
*
|
|
1302
|
-
* @static
|
|
1303
|
-
* @memberOf _
|
|
1304
|
-
* @since 4.0.0
|
|
1305
|
-
* @category Lang
|
|
1306
|
-
* @param {*} value The value to check.
|
|
1307
|
-
* @returns {boolean} Returns `true` if `value` is a symbol, else `false`.
|
|
1308
|
-
* @example
|
|
1309
|
-
*
|
|
1310
|
-
* _.isSymbol(Symbol.iterator);
|
|
1311
|
-
* // => true
|
|
1312
|
-
*
|
|
1313
|
-
* _.isSymbol('abc');
|
|
1314
|
-
* // => false
|
|
1315
|
-
*/function isSymbol(value){return _typeof(value)=='symbol'||isObjectLike(value)&&objectToString.call(value)==symbolTag;}/**
|
|
1316
|
-
* Converts `value` to a string. An empty string is returned for `null`
|
|
1317
|
-
* and `undefined` values. The sign of `-0` is preserved.
|
|
1318
|
-
*
|
|
1319
|
-
* @static
|
|
1320
|
-
* @memberOf _
|
|
1321
|
-
* @since 4.0.0
|
|
1322
|
-
* @category Lang
|
|
1323
|
-
* @param {*} value The value to process.
|
|
1324
|
-
* @returns {string} Returns the string.
|
|
1325
|
-
* @example
|
|
1326
|
-
*
|
|
1327
|
-
* _.toString(null);
|
|
1328
|
-
* // => ''
|
|
1329
|
-
*
|
|
1330
|
-
* _.toString(-0);
|
|
1331
|
-
* // => '-0'
|
|
1332
|
-
*
|
|
1333
|
-
* _.toString([1, 2, 3]);
|
|
1334
|
-
* // => '1,2,3'
|
|
1335
|
-
*/function toString(value){return value==null?'':baseToString(value);}/**
|
|
1336
|
-
* Escapes the `RegExp` special characters "^", "$", "\", ".", "*", "+",
|
|
1337
|
-
* "?", "(", ")", "[", "]", "{", "}", and "|" in `string`.
|
|
1338
|
-
*
|
|
1339
|
-
* @static
|
|
1340
|
-
* @memberOf _
|
|
1341
|
-
* @since 3.0.0
|
|
1342
|
-
* @category String
|
|
1343
|
-
* @param {string} [string=''] The string to escape.
|
|
1344
|
-
* @returns {string} Returns the escaped string.
|
|
1345
|
-
* @example
|
|
1346
|
-
*
|
|
1347
|
-
* _.escapeRegExp('[lodash](https://lodash.com/)');
|
|
1348
|
-
* // => '\[lodash\]\(https://lodash\.com/\)'
|
|
1349
|
-
*/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){/**
|
|
1350
|
-
* lodash (Custom Build) <https://lodash.com/>
|
|
1351
|
-
* Build: `lodash modularize exports="npm" -o ./`
|
|
1352
|
-
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
|
1353
|
-
* Released under MIT license <https://lodash.com/license>
|
|
1354
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
1355
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
1356
|
-
*/ /** `Object#toString` result references. */var objectTag='[object Object]';/**
|
|
1357
|
-
* Checks if `value` is a host object in IE < 9.
|
|
1358
|
-
*
|
|
1359
|
-
* @private
|
|
1360
|
-
* @param {*} value The value to check.
|
|
1361
|
-
* @returns {boolean} Returns `true` if `value` is a host object, else `false`.
|
|
1362
|
-
*/function isHostObject(value){// Many host objects are `Object` objects that can coerce to strings
|
|
1363
|
-
// despite having improperly defined `toString` methods.
|
|
1364
|
-
var result=false;if(value!=null&&typeof value.toString!='function'){try{result=!!(value+'');}catch(e){}}return result;}/**
|
|
1365
|
-
* Creates a unary function that invokes `func` with its argument transformed.
|
|
1366
|
-
*
|
|
1367
|
-
* @private
|
|
1368
|
-
* @param {Function} func The function to wrap.
|
|
1369
|
-
* @param {Function} transform The argument transform.
|
|
1370
|
-
* @returns {Function} Returns the new function.
|
|
1371
|
-
*/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);/**
|
|
1372
|
-
* Used to resolve the
|
|
1373
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
1374
|
-
* of values.
|
|
1375
|
-
*/var objectToString=objectProto.toString;/** Built-in value references. */var getPrototype=overArg(Object.getPrototypeOf,Object);/**
|
|
1376
|
-
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
1377
|
-
* and has a `typeof` result of "object".
|
|
1378
|
-
*
|
|
1379
|
-
* @static
|
|
1380
|
-
* @memberOf _
|
|
1381
|
-
* @since 4.0.0
|
|
1382
|
-
* @category Lang
|
|
1383
|
-
* @param {*} value The value to check.
|
|
1384
|
-
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
1385
|
-
* @example
|
|
1386
|
-
*
|
|
1387
|
-
* _.isObjectLike({});
|
|
1388
|
-
* // => true
|
|
1389
|
-
*
|
|
1390
|
-
* _.isObjectLike([1, 2, 3]);
|
|
1391
|
-
* // => true
|
|
1392
|
-
*
|
|
1393
|
-
* _.isObjectLike(_.noop);
|
|
1394
|
-
* // => false
|
|
1395
|
-
*
|
|
1396
|
-
* _.isObjectLike(null);
|
|
1397
|
-
* // => false
|
|
1398
|
-
*/function isObjectLike(value){return!!value&&_typeof(value)=='object';}/**
|
|
1399
|
-
* Checks if `value` is a plain object, that is, an object created by the
|
|
1400
|
-
* `Object` constructor or one with a `[[Prototype]]` of `null`.
|
|
1401
|
-
*
|
|
1402
|
-
* @static
|
|
1403
|
-
* @memberOf _
|
|
1404
|
-
* @since 0.8.0
|
|
1405
|
-
* @category Lang
|
|
1406
|
-
* @param {*} value The value to check.
|
|
1407
|
-
* @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
|
|
1408
|
-
* @example
|
|
1409
|
-
*
|
|
1410
|
-
* function Foo() {
|
|
1411
|
-
* this.a = 1;
|
|
1412
|
-
* }
|
|
1413
|
-
*
|
|
1414
|
-
* _.isPlainObject(new Foo);
|
|
1415
|
-
* // => false
|
|
1416
|
-
*
|
|
1417
|
-
* _.isPlainObject([1, 2, 3]);
|
|
1418
|
-
* // => false
|
|
1419
|
-
*
|
|
1420
|
-
* _.isPlainObject({ 'x': 0, 'y': 0 });
|
|
1421
|
-
* // => true
|
|
1422
|
-
*
|
|
1423
|
-
* _.isPlainObject(Object.create(null));
|
|
1424
|
-
* // => true
|
|
1425
|
-
*/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){/**
|
|
1426
|
-
* lodash 4.0.1 (Custom Build) <https://lodash.com/>
|
|
1427
|
-
* Build: `lodash modularize exports="npm" -o ./`
|
|
1428
|
-
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
|
|
1429
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
1430
|
-
* Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
1431
|
-
* Available under MIT license <https://lodash.com/license>
|
|
1432
|
-
*/ /** `Object#toString` result references. */var stringTag='[object String]';/** Used for built-in method references. */var objectProto=Object.prototype;/**
|
|
1433
|
-
* Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
|
|
1434
|
-
* of values.
|
|
1435
|
-
*/var objectToString=objectProto.toString;/**
|
|
1436
|
-
* Checks if `value` is classified as an `Array` object.
|
|
1437
|
-
*
|
|
1438
|
-
* @static
|
|
1439
|
-
* @memberOf _
|
|
1440
|
-
* @type Function
|
|
1441
|
-
* @category Lang
|
|
1442
|
-
* @param {*} value The value to check.
|
|
1443
|
-
* @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
|
|
1444
|
-
* @example
|
|
1445
|
-
*
|
|
1446
|
-
* _.isArray([1, 2, 3]);
|
|
1447
|
-
* // => true
|
|
1448
|
-
*
|
|
1449
|
-
* _.isArray(document.body.children);
|
|
1450
|
-
* // => false
|
|
1451
|
-
*
|
|
1452
|
-
* _.isArray('abc');
|
|
1453
|
-
* // => false
|
|
1454
|
-
*
|
|
1455
|
-
* _.isArray(_.noop);
|
|
1456
|
-
* // => false
|
|
1457
|
-
*/var isArray=Array.isArray;/**
|
|
1458
|
-
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
1459
|
-
* and has a `typeof` result of "object".
|
|
1460
|
-
*
|
|
1461
|
-
* @static
|
|
1462
|
-
* @memberOf _
|
|
1463
|
-
* @category Lang
|
|
1464
|
-
* @param {*} value The value to check.
|
|
1465
|
-
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
1466
|
-
* @example
|
|
1467
|
-
*
|
|
1468
|
-
* _.isObjectLike({});
|
|
1469
|
-
* // => true
|
|
1470
|
-
*
|
|
1471
|
-
* _.isObjectLike([1, 2, 3]);
|
|
1472
|
-
* // => true
|
|
1473
|
-
*
|
|
1474
|
-
* _.isObjectLike(_.noop);
|
|
1475
|
-
* // => false
|
|
1476
|
-
*
|
|
1477
|
-
* _.isObjectLike(null);
|
|
1478
|
-
* // => false
|
|
1479
|
-
*/function isObjectLike(value){return!!value&&_typeof(value)=='object';}/**
|
|
1480
|
-
* Checks if `value` is classified as a `String` primitive or object.
|
|
1481
|
-
*
|
|
1482
|
-
* @static
|
|
1483
|
-
* @memberOf _
|
|
1484
|
-
* @category Lang
|
|
1485
|
-
* @param {*} value The value to check.
|
|
1486
|
-
* @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
|
|
1487
|
-
* @example
|
|
1488
|
-
*
|
|
1489
|
-
* _.isString('abc');
|
|
1490
|
-
* // => true
|
|
1491
|
-
*
|
|
1492
|
-
* _.isString(1);
|
|
1493
|
-
* // => false
|
|
1494
|
-
*/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){/**
|
|
1495
|
-
* Lodash (Custom Build) <https://lodash.com/>
|
|
1496
|
-
* Build: `lodash modularize exports="npm" -o ./`
|
|
1497
|
-
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
1498
|
-
* Released under MIT license <https://lodash.com/license>
|
|
1499
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
1500
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
1501
|
-
*/ /** 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]';/**
|
|
1502
|
-
* Used to match `RegExp`
|
|
1503
|
-
* [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).
|
|
1504
|
-
*/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+.
|
|
1505
|
-
var types=freeModule&&freeModule.require&&freeModule.require('util').types;if(types){return types;}// Legacy `process.binding('util')` for Node.js < 10.
|
|
1506
|
-
return freeProcess&&freeProcess.binding&&freeProcess.binding('util');}catch(e){}}();/* Node.js helper references. */var nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray;/**
|
|
1507
|
-
* A faster alternative to `Function#apply`, this function invokes `func`
|
|
1508
|
-
* with the `this` binding of `thisArg` and the arguments of `args`.
|
|
1509
|
-
*
|
|
1510
|
-
* @private
|
|
1511
|
-
* @param {Function} func The function to invoke.
|
|
1512
|
-
* @param {*} thisArg The `this` binding of `func`.
|
|
1513
|
-
* @param {Array} args The arguments to invoke `func` with.
|
|
1514
|
-
* @returns {*} Returns the result of `func`.
|
|
1515
|
-
*/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);}/**
|
|
1516
|
-
* The base implementation of `_.times` without support for iteratee shorthands
|
|
1517
|
-
* or max array length checks.
|
|
1518
|
-
*
|
|
1519
|
-
* @private
|
|
1520
|
-
* @param {number} n The number of times to invoke `iteratee`.
|
|
1521
|
-
* @param {Function} iteratee The function invoked per iteration.
|
|
1522
|
-
* @returns {Array} Returns the array of results.
|
|
1523
|
-
*/function baseTimes(n,iteratee){var index=-1,result=Array(n);while(++index<n){result[index]=iteratee(index);}return result;}/**
|
|
1524
|
-
* The base implementation of `_.unary` without support for storing metadata.
|
|
1525
|
-
*
|
|
1526
|
-
* @private
|
|
1527
|
-
* @param {Function} func The function to cap arguments for.
|
|
1528
|
-
* @returns {Function} Returns the new capped function.
|
|
1529
|
-
*/function baseUnary(func){return function(value){return func(value);};}/**
|
|
1530
|
-
* Gets the value at `key` of `object`.
|
|
1531
|
-
*
|
|
1532
|
-
* @private
|
|
1533
|
-
* @param {Object} [object] The object to query.
|
|
1534
|
-
* @param {string} key The key of the property to get.
|
|
1535
|
-
* @returns {*} Returns the property value.
|
|
1536
|
-
*/function getValue(object,key){return object==null?undefined:object[key];}/**
|
|
1537
|
-
* Creates a unary function that invokes `func` with its argument transformed.
|
|
1538
|
-
*
|
|
1539
|
-
* @private
|
|
1540
|
-
* @param {Function} func The function to wrap.
|
|
1541
|
-
* @param {Function} transform The argument transform.
|
|
1542
|
-
* @returns {Function} Returns the new function.
|
|
1543
|
-
*/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:'';}();/**
|
|
1544
|
-
* Used to resolve the
|
|
1545
|
-
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
1546
|
-
* of values.
|
|
1547
|
-
*/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');/**
|
|
1548
|
-
* The base implementation of `_.create` without support for assigning
|
|
1549
|
-
* properties to the created object.
|
|
1550
|
-
*
|
|
1551
|
-
* @private
|
|
1552
|
-
* @param {Object} proto The object to inherit from.
|
|
1553
|
-
* @returns {Object} Returns the new object.
|
|
1554
|
-
*/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');/**
|
|
1555
470
|
* Creates a hash object.
|
|
1556
471
|
*
|
|
1557
472
|
* @private
|
|
1558
473
|
* @constructor
|
|
1559
474
|
* @param {Array} [entries] The key-value pairs to cache.
|
|
1560
|
-
*/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]);}}
|
|
1561
|
-
|
|
1562
|
-
*
|
|
1563
|
-
* @private
|
|
1564
|
-
* @name clear
|
|
1565
|
-
* @memberOf Hash
|
|
1566
|
-
*/function hashClear(){this.__data__=nativeCreate?nativeCreate(null):{};this.size=0;}/**
|
|
1567
|
-
* Removes `key` and its value from the hash.
|
|
1568
|
-
*
|
|
1569
|
-
* @private
|
|
1570
|
-
* @name delete
|
|
1571
|
-
* @memberOf Hash
|
|
1572
|
-
* @param {Object} hash The hash to modify.
|
|
1573
|
-
* @param {string} key The key of the value to remove.
|
|
1574
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
1575
|
-
*/function hashDelete(key){var result=this.has(key)&&delete this.__data__[key];this.size-=result?1:0;return result;}/**
|
|
1576
|
-
* Gets the hash value for `key`.
|
|
1577
|
-
*
|
|
1578
|
-
* @private
|
|
1579
|
-
* @name get
|
|
1580
|
-
* @memberOf Hash
|
|
1581
|
-
* @param {string} key The key of the value to get.
|
|
1582
|
-
* @returns {*} Returns the entry value.
|
|
1583
|
-
*/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;}/**
|
|
1584
|
-
* Checks if a hash value for `key` exists.
|
|
1585
|
-
*
|
|
1586
|
-
* @private
|
|
1587
|
-
* @name has
|
|
1588
|
-
* @memberOf Hash
|
|
1589
|
-
* @param {string} key The key of the entry to check.
|
|
1590
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1591
|
-
*/function hashHas(key){var data=this.__data__;return nativeCreate?data[key]!==undefined:hasOwnProperty.call(data,key);}/**
|
|
1592
|
-
* Sets the hash `key` to `value`.
|
|
1593
|
-
*
|
|
1594
|
-
* @private
|
|
1595
|
-
* @name set
|
|
1596
|
-
* @memberOf Hash
|
|
1597
|
-
* @param {string} key The key of the value to set.
|
|
1598
|
-
* @param {*} value The value to set.
|
|
1599
|
-
* @returns {Object} Returns the hash instance.
|
|
1600
|
-
*/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`.
|
|
1601
|
-
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');/**
|
|
1602
477
|
* Creates an list cache object.
|
|
1603
478
|
*
|
|
1604
479
|
* @private
|
|
1605
480
|
* @constructor
|
|
1606
481
|
* @param {Array} [entries] The key-value pairs to cache.
|
|
1607
|
-
*/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]);}}
|
|
1608
|
-
|
|
1609
|
-
*
|
|
1610
|
-
* @private
|
|
1611
|
-
* @name clear
|
|
1612
|
-
* @memberOf ListCache
|
|
1613
|
-
*/function listCacheClear(){this.__data__=[];this.size=0;}/**
|
|
1614
|
-
* Removes `key` and its value from the list cache.
|
|
1615
|
-
*
|
|
1616
|
-
* @private
|
|
1617
|
-
* @name delete
|
|
1618
|
-
* @memberOf ListCache
|
|
1619
|
-
* @param {string} key The key of the value to remove.
|
|
1620
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
1621
|
-
*/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;}/**
|
|
1622
|
-
* Gets the list cache value for `key`.
|
|
1623
|
-
*
|
|
1624
|
-
* @private
|
|
1625
|
-
* @name get
|
|
1626
|
-
* @memberOf ListCache
|
|
1627
|
-
* @param {string} key The key of the value to get.
|
|
1628
|
-
* @returns {*} Returns the entry value.
|
|
1629
|
-
*/function listCacheGet(key){var data=this.__data__,index=assocIndexOf(data,key);return index<0?undefined:data[index][1];}/**
|
|
1630
|
-
* Checks if a list cache value for `key` exists.
|
|
1631
|
-
*
|
|
1632
|
-
* @private
|
|
1633
|
-
* @name has
|
|
1634
|
-
* @memberOf ListCache
|
|
1635
|
-
* @param {string} key The key of the entry to check.
|
|
1636
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1637
|
-
*/function listCacheHas(key){return assocIndexOf(this.__data__,key)>-1;}/**
|
|
1638
|
-
* Sets the list cache `key` to `value`.
|
|
1639
|
-
*
|
|
1640
|
-
* @private
|
|
1641
|
-
* @name set
|
|
1642
|
-
* @memberOf ListCache
|
|
1643
|
-
* @param {string} key The key of the value to set.
|
|
1644
|
-
* @param {*} value The value to set.
|
|
1645
|
-
* @returns {Object} Returns the list cache instance.
|
|
1646
|
-
*/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`.
|
|
1647
|
-
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');/**
|
|
1648
484
|
* Creates a map cache object to store key-value pairs.
|
|
1649
485
|
*
|
|
1650
486
|
* @private
|
|
1651
487
|
* @constructor
|
|
1652
488
|
* @param {Array} [entries] The key-value pairs to cache.
|
|
1653
|
-
*/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]);}}
|
|
1654
|
-
|
|
1655
|
-
*
|
|
1656
|
-
* @private
|
|
1657
|
-
* @name clear
|
|
1658
|
-
* @memberOf MapCache
|
|
1659
|
-
*/function mapCacheClear(){this.size=0;this.__data__={'hash':new Hash(),'map':new(Map||ListCache)(),'string':new Hash()};}/**
|
|
1660
|
-
* Removes `key` and its value from the map.
|
|
1661
|
-
*
|
|
1662
|
-
* @private
|
|
1663
|
-
* @name delete
|
|
1664
|
-
* @memberOf MapCache
|
|
1665
|
-
* @param {string} key The key of the value to remove.
|
|
1666
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
1667
|
-
*/function mapCacheDelete(key){var result=getMapData(this,key)['delete'](key);this.size-=result?1:0;return result;}/**
|
|
1668
|
-
* Gets the map value for `key`.
|
|
1669
|
-
*
|
|
1670
|
-
* @private
|
|
1671
|
-
* @name get
|
|
1672
|
-
* @memberOf MapCache
|
|
1673
|
-
* @param {string} key The key of the value to get.
|
|
1674
|
-
* @returns {*} Returns the entry value.
|
|
1675
|
-
*/function mapCacheGet(key){return getMapData(this,key).get(key);}/**
|
|
1676
|
-
* Checks if a map value for `key` exists.
|
|
1677
|
-
*
|
|
1678
|
-
* @private
|
|
1679
|
-
* @name has
|
|
1680
|
-
* @memberOf MapCache
|
|
1681
|
-
* @param {string} key The key of the entry to check.
|
|
1682
|
-
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
|
1683
|
-
*/function mapCacheHas(key){return getMapData(this,key).has(key);}/**
|
|
1684
|
-
* Sets the map `key` to `value`.
|
|
1685
|
-
*
|
|
1686
|
-
* @private
|
|
1687
|
-
* @name set
|
|
1688
|
-
* @memberOf MapCache
|
|
1689
|
-
* @param {string} key The key of the value to set.
|
|
1690
|
-
* @param {*} value The value to set.
|
|
1691
|
-
* @returns {Object} Returns the map cache instance.
|
|
1692
|
-
*/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`.
|
|
1693
|
-
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');/**
|
|
1694
491
|
* Creates a stack cache object to store key-value pairs.
|
|
1695
492
|
*
|
|
1696
493
|
* @private
|
|
1697
494
|
* @constructor
|
|
1698
495
|
* @param {Array} [entries] The key-value pairs to cache.
|
|
1699
|
-
*/function Stack(entries){var data=this.__data__=new ListCache(entries);this.size=data.size;}
|
|
1700
|
-
|
|
1701
|
-
*
|
|
1702
|
-
*
|
|
1703
|
-
* @name clear
|
|
1704
|
-
* @memberOf Stack
|
|
1705
|
-
*/function stackClear(){this.__data__=new ListCache();this.size=0;}/**
|
|
1706
|
-
* Removes `key` and its value from the stack.
|
|
1707
|
-
*
|
|
1708
|
-
* @private
|
|
1709
|
-
* @name delete
|
|
1710
|
-
* @memberOf Stack
|
|
1711
|
-
* @param {string} key The key of the value to remove.
|
|
1712
|
-
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
|
|
1713
|
-
*/function stackDelete(key){var data=this.__data__,result=data['delete'](key);this.size=data.size;return result;}/**
|
|
1714
|
-
* 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`.
|
|
1715
500
|
*
|
|
1716
501
|
* @private
|
|
1717
|
-
* @
|
|
1718
|
-
* @
|
|
1719
|
-
* @param {
|
|
1720
|
-
* @returns {*} Returns the
|
|
1721
|
-
*/function
|
|
1722
|
-
*
|
|
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.
|
|
1723
509
|
*
|
|
1724
510
|
* @private
|
|
1725
|
-
* @
|
|
1726
|
-
* @
|
|
1727
|
-
* @
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
*
|
|
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.
|
|
1731
517
|
*
|
|
1732
518
|
* @private
|
|
1733
|
-
* @
|
|
1734
|
-
* @
|
|
1735
|
-
* @
|
|
1736
|
-
|
|
1737
|
-
* @returns {Object} Returns the stack cache instance.
|
|
1738
|
-
*/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`.
|
|
1739
|
-
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;/**
|
|
1740
523
|
* Creates an array of the enumerable property names of the array-like `value`.
|
|
1741
524
|
*
|
|
1742
525
|
* @private
|
|
@@ -1747,7 +530,22 @@ Stack.prototype.clear=stackClear;Stack.prototype['delete']=stackDelete;Stack.pro
|
|
|
1747
530
|
key=='length'||// Node.js 0.10 has enumerable non-index properties on buffers.
|
|
1748
531
|
isBuff&&(key=='offset'||key=='parent')||// PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
1749
532
|
isType&&(key=='buffer'||key=='byteLength'||key=='byteOffset')||// Skip index properties.
|
|
1750
|
-
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');/**
|
|
1751
549
|
* This function is like `assignValue` except that it doesn't assign
|
|
1752
550
|
* `undefined` values.
|
|
1753
551
|
*
|
|
@@ -1755,7 +553,7 @@ isIndex(key,length)))){result.push(key);}}return result;}/**
|
|
|
1755
553
|
* @param {Object} object The object to modify.
|
|
1756
554
|
* @param {string} key The key of the property to assign.
|
|
1757
555
|
* @param {*} value The value to assign.
|
|
1758
|
-
*/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;/**
|
|
1759
557
|
* Assigns `value` to `key` of `object` if the existing value is not equivalent
|
|
1760
558
|
* using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
1761
559
|
* for equality comparisons.
|
|
@@ -1764,14 +562,30 @@ isIndex(key,length)))){result.push(key);}}return result;}/**
|
|
|
1764
562
|
* @param {Object} object The object to modify.
|
|
1765
563
|
* @param {string} key The key of the property to assign.
|
|
1766
564
|
* @param {*} value The value to assign.
|
|
1767
|
-
*/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');/**
|
|
1768
566
|
* Gets the index at which the `key` is found in `array` of key-value pairs.
|
|
1769
567
|
*
|
|
1770
568
|
* @private
|
|
1771
569
|
* @param {Array} array The array to inspect.
|
|
1772
570
|
* @param {*} key The key to search for.
|
|
1773
571
|
* @returns {number} Returns the index of the matched value, else `-1`.
|
|
1774
|
-
*/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');/**
|
|
1775
589
|
* The base implementation of `assignValue` and `assignMergeValue` without
|
|
1776
590
|
* value checks.
|
|
1777
591
|
*
|
|
@@ -1779,7 +593,31 @@ isIndex(key,length)))){result.push(key);}}return result;}/**
|
|
|
1779
593
|
* @param {Object} object The object to modify.
|
|
1780
594
|
* @param {string} key The key of the property to assign.
|
|
1781
595
|
* @param {*} value The value to assign.
|
|
1782
|
-
*/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');/**
|
|
1783
621
|
* The base implementation of `baseForOwn` which iterates over `object`
|
|
1784
622
|
* properties returned by `keysFunc` and invokes `iteratee` for each property.
|
|
1785
623
|
* Iteratee functions may exit iteration early by explicitly returning `false`.
|
|
@@ -1789,38 +627,69 @@ isIndex(key,length)))){result.push(key);}}return result;}/**
|
|
|
1789
627
|
* @param {Function} iteratee The function invoked per iteration.
|
|
1790
628
|
* @param {Function} keysFunc The function to get the keys of `object`.
|
|
1791
629
|
* @returns {Object} Returns `object`.
|
|
1792
|
-
*/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;/**
|
|
1793
641
|
* The base implementation of `getTag` without fallbacks for buggy environments.
|
|
1794
642
|
*
|
|
1795
643
|
* @private
|
|
1796
644
|
* @param {*} value The value to query.
|
|
1797
645
|
* @returns {string} Returns the `toStringTag`.
|
|
1798
|
-
*/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]';/**
|
|
1799
647
|
* The base implementation of `_.isArguments`.
|
|
1800
648
|
*
|
|
1801
649
|
* @private
|
|
1802
650
|
* @param {*} value The value to check.
|
|
1803
651
|
* @returns {boolean} Returns `true` if `value` is an `arguments` object,
|
|
1804
|
-
*/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.*?')+'$');/**
|
|
1805
662
|
* The base implementation of `_.isNative` without bad shim checks.
|
|
1806
663
|
*
|
|
1807
664
|
* @private
|
|
1808
665
|
* @param {*} value The value to check.
|
|
1809
666
|
* @returns {boolean} Returns `true` if `value` is a native function,
|
|
1810
667
|
* else `false`.
|
|
1811
|
-
*/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;/**
|
|
1812
675
|
* The base implementation of `_.isTypedArray` without Node.js optimizations.
|
|
1813
676
|
*
|
|
1814
677
|
* @private
|
|
1815
678
|
* @param {*} value The value to check.
|
|
1816
679
|
* @returns {boolean} Returns `true` if `value` is a typed array, else `false`.
|
|
1817
|
-
*/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;/**
|
|
1818
687
|
* The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
|
|
1819
688
|
*
|
|
1820
689
|
* @private
|
|
1821
690
|
* @param {Object} object The object to query.
|
|
1822
691
|
* @returns {Array} Returns the array of property names.
|
|
1823
|
-
*/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');/**
|
|
1824
693
|
* The base implementation of `_.merge` without support for multiple sources.
|
|
1825
694
|
*
|
|
1826
695
|
* @private
|
|
@@ -1830,7 +699,7 @@ isIndex(key,length)))){result.push(key);}}return result;}/**
|
|
|
1830
699
|
* @param {Function} [customizer] The function to customize merged values.
|
|
1831
700
|
* @param {Object} [stack] Tracks traversed source values and their merged
|
|
1832
701
|
* counterparts.
|
|
1833
|
-
*/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');/**
|
|
1834
703
|
* A specialized version of `baseMerge` for arrays and objects which performs
|
|
1835
704
|
* deep merges and tracks traversed objects enabling objects with circular
|
|
1836
705
|
* references to be merged.
|
|
@@ -1845,48 +714,90 @@ isIndex(key,length)))){result.push(key);}}return result;}/**
|
|
|
1845
714
|
* @param {Object} [stack] Tracks traversed source values and their merged
|
|
1846
715
|
* counterparts.
|
|
1847
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).
|
|
1848
|
-
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');/**
|
|
1849
718
|
* The base implementation of `_.rest` which doesn't validate or coerce arguments.
|
|
1850
719
|
*
|
|
1851
720
|
* @private
|
|
1852
721
|
* @param {Function} func The function to apply a rest parameter to.
|
|
1853
722
|
* @param {number} [start=func.length-1] The start position of the rest parameter.
|
|
1854
723
|
* @returns {Function} Returns the new function.
|
|
1855
|
-
*/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');/**
|
|
1856
725
|
* The base implementation of `setToString` without support for hot loop shorting.
|
|
1857
726
|
*
|
|
1858
727
|
* @private
|
|
1859
728
|
* @param {Function} func The function to modify.
|
|
1860
729
|
* @param {Function} string The `toString` result.
|
|
1861
730
|
* @returns {Function} Returns `func`.
|
|
1862
|
-
*/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;/**
|
|
1863
761
|
* Creates a clone of `buffer`.
|
|
1864
762
|
*
|
|
1865
763
|
* @private
|
|
1866
764
|
* @param {Buffer} buffer The buffer to clone.
|
|
1867
765
|
* @param {boolean} [isDeep] Specify a deep clone.
|
|
1868
766
|
* @returns {Buffer} Returns the cloned buffer.
|
|
1869
|
-
*/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;}
|
|
1870
|
-
* 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`.
|
|
1871
769
|
*
|
|
1872
770
|
* @private
|
|
1873
|
-
* @param {
|
|
1874
|
-
* @
|
|
1875
|
-
|
|
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');/**
|
|
1876
787
|
* Creates a clone of `typedArray`.
|
|
1877
788
|
*
|
|
1878
789
|
* @private
|
|
1879
790
|
* @param {Object} typedArray The typed array to clone.
|
|
1880
791
|
* @param {boolean} [isDeep] Specify a deep clone.
|
|
1881
792
|
* @returns {Object} Returns the cloned typed array.
|
|
1882
|
-
*/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){/**
|
|
1883
794
|
* Copies the values of `source` to `array`.
|
|
1884
795
|
*
|
|
1885
796
|
* @private
|
|
1886
797
|
* @param {Array} source The array to copy values from.
|
|
1887
798
|
* @param {Array} [array=[]] The array to copy values to.
|
|
1888
799
|
* @returns {Array} Returns `array`.
|
|
1889
|
-
*/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');/**
|
|
1890
801
|
* Copies properties of `source` to `object`.
|
|
1891
802
|
*
|
|
1892
803
|
* @private
|
|
@@ -1895,52 +806,167 @@ stack.set(srcValue,newValue);mergeFunc(newValue,srcValue,srcIndex,customizer,sta
|
|
|
1895
806
|
* @param {Object} [object={}] The object to copy properties to.
|
|
1896
807
|
* @param {Function} [customizer] The function to customize copied values.
|
|
1897
808
|
* @returns {Object} Returns `object`.
|
|
1898
|
-
*/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');/**
|
|
1899
824
|
* Creates a function like `_.assign`.
|
|
1900
825
|
*
|
|
1901
826
|
* @private
|
|
1902
827
|
* @param {Function} assigner The function to assign values.
|
|
1903
828
|
* @returns {Function} Returns the new assigner function.
|
|
1904
|
-
*/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){/**
|
|
1905
830
|
* Creates a base function for methods like `_.forIn` and `_.forOwn`.
|
|
1906
831
|
*
|
|
1907
832
|
* @private
|
|
1908
833
|
* @param {boolean} [fromRight] Specify iterating from right to left.
|
|
1909
834
|
* @returns {Function} Returns the new base function.
|
|
1910
|
-
*/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');/**
|
|
1911
849
|
* Gets the data for `map`.
|
|
1912
850
|
*
|
|
1913
851
|
* @private
|
|
1914
852
|
* @param {Object} map The map to query.
|
|
1915
853
|
* @param {string} key The reference key.
|
|
1916
854
|
* @returns {*} Returns the map data.
|
|
1917
|
-
*/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');/**
|
|
1918
856
|
* Gets the native function at `key` of `object`.
|
|
1919
857
|
*
|
|
1920
858
|
* @private
|
|
1921
859
|
* @param {Object} object The object to query.
|
|
1922
860
|
* @param {string} key The key of the method to get.
|
|
1923
861
|
* @returns {*} Returns the function if it's native, else `undefined`.
|
|
1924
|
-
*/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;/**
|
|
1925
867
|
* A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
|
|
1926
868
|
*
|
|
1927
869
|
* @private
|
|
1928
870
|
* @param {*} value The value to query.
|
|
1929
871
|
* @returns {string} Returns the raw `toStringTag`.
|
|
1930
|
-
*/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');/**
|
|
1931
957
|
* Initializes an object clone.
|
|
1932
958
|
*
|
|
1933
959
|
* @private
|
|
1934
960
|
* @param {Object} object The object to clone.
|
|
1935
961
|
* @returns {Object} Returns the initialized clone.
|
|
1936
|
-
*/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*)$/;/**
|
|
1937
963
|
* Checks if `value` is a valid array-like index.
|
|
1938
964
|
*
|
|
1939
965
|
* @private
|
|
1940
966
|
* @param {*} value The value to check.
|
|
1941
967
|
* @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.
|
|
1942
968
|
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
|
1943
|
-
*/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');/**
|
|
1944
970
|
* Checks if the given arguments are from an iteratee call.
|
|
1945
971
|
*
|
|
1946
972
|
* @private
|
|
@@ -1949,25 +975,103 @@ stack.set(srcValue,newValue);mergeFunc(newValue,srcValue,srcIndex,customizer,sta
|
|
|
1949
975
|
* @param {*} object The potential iteratee object argument.
|
|
1950
976
|
* @returns {boolean} Returns `true` if the arguments are from an iteratee call,
|
|
1951
977
|
* else `false`.
|
|
1952
|
-
*/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){/**
|
|
1953
979
|
* Checks if `value` is suitable for use as unique object key.
|
|
1954
980
|
*
|
|
1955
981
|
* @private
|
|
1956
982
|
* @param {*} value The value to check.
|
|
1957
983
|
* @returns {boolean} Returns `true` if `value` is suitable, else `false`.
|
|
1958
|
-
*/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:'';}();/**
|
|
1959
985
|
* Checks if `func` has its source masked.
|
|
1960
986
|
*
|
|
1961
987
|
* @private
|
|
1962
988
|
* @param {Function} func The function to check.
|
|
1963
989
|
* @returns {boolean} Returns `true` if `func` is masked, else `false`.
|
|
1964
|
-
*/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;/**
|
|
1965
991
|
* Checks if `value` is likely a prototype object.
|
|
1966
992
|
*
|
|
1967
993
|
* @private
|
|
1968
994
|
* @param {*} value The value to check.
|
|
1969
995
|
* @returns {boolean} Returns `true` if `value` is a prototype, else `false`.
|
|
1970
|
-
*/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){/**
|
|
1971
1075
|
* This function is like
|
|
1972
1076
|
* [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
|
|
1973
1077
|
* except that it includes inherited enumerable properties.
|
|
@@ -1975,13 +1079,26 @@ stack.set(srcValue,newValue);mergeFunc(newValue,srcValue,srcIndex,customizer,sta
|
|
|
1975
1079
|
* @private
|
|
1976
1080
|
* @param {Object} object The object to query.
|
|
1977
1081
|
* @returns {Array} Returns the array of property names.
|
|
1978
|
-
*/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;/**
|
|
1979
1089
|
* Converts `value` to a string using `Object.prototype.toString`.
|
|
1980
1090
|
*
|
|
1981
1091
|
* @private
|
|
1982
1092
|
* @param {*} value The value to convert.
|
|
1983
1093
|
* @returns {string} Returns the converted string.
|
|
1984
|
-
*/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;/**
|
|
1985
1102
|
* A specialized version of `baseRest` which transforms the rest array.
|
|
1986
1103
|
*
|
|
1987
1104
|
* @private
|
|
@@ -1989,21 +1106,21 @@ stack.set(srcValue,newValue);mergeFunc(newValue,srcValue,srcIndex,customizer,sta
|
|
|
1989
1106
|
* @param {number} [start=func.length-1] The start position of the rest parameter.
|
|
1990
1107
|
* @param {Function} transform The rest array transform.
|
|
1991
1108
|
* @returns {Function} Returns the new function.
|
|
1992
|
-
*/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){/**
|
|
1993
1110
|
* Gets the value at `key`, unless `key` is "__proto__" or "constructor".
|
|
1994
1111
|
*
|
|
1995
1112
|
* @private
|
|
1996
1113
|
* @param {Object} object The object to query.
|
|
1997
1114
|
* @param {string} key The key of the property to get.
|
|
1998
1115
|
* @returns {*} Returns the property value.
|
|
1999
|
-
*/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');/**
|
|
2000
1117
|
* Sets the `toString` method of `func` to return `string`.
|
|
2001
1118
|
*
|
|
2002
1119
|
* @private
|
|
2003
1120
|
* @param {Function} func The function to modify.
|
|
2004
1121
|
* @param {Function} string The `toString` result.
|
|
2005
1122
|
* @returns {Function} Returns `func`.
|
|
2006
|
-
*/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;/**
|
|
2007
1124
|
* Creates a function that'll short out and invoke `identity` instead
|
|
2008
1125
|
* of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`
|
|
2009
1126
|
* milliseconds.
|
|
@@ -2011,13 +1128,87 @@ stack.set(srcValue,newValue);mergeFunc(newValue,srcValue,srcIndex,customizer,sta
|
|
|
2011
1128
|
* @private
|
|
2012
1129
|
* @param {Function} func The function to restrict.
|
|
2013
1130
|
* @returns {Function} Returns the new shortable function.
|
|
2014
|
-
*/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;/**
|
|
2015
1171
|
* Converts `func` to its source code.
|
|
2016
1172
|
*
|
|
2017
1173
|
* @private
|
|
2018
1174
|
* @param {Function} func The function to convert.
|
|
2019
1175
|
* @returns {string} Returns the source code.
|
|
2020
|
-
*/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){/**
|
|
2021
1212
|
* Performs a
|
|
2022
1213
|
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
2023
1214
|
* comparison between two values to determine if they are equivalent.
|
|
@@ -2048,7 +1239,39 @@ stack.set(srcValue,newValue);mergeFunc(newValue,srcValue,srcIndex,customizer,sta
|
|
|
2048
1239
|
*
|
|
2049
1240
|
* _.eq(NaN, NaN);
|
|
2050
1241
|
* // => true
|
|
2051
|
-
*/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;/**
|
|
2052
1275
|
* Checks if `value` is likely an `arguments` object.
|
|
2053
1276
|
*
|
|
2054
1277
|
* @static
|
|
@@ -2065,7 +1288,7 @@ stack.set(srcValue,newValue);mergeFunc(newValue,srcValue,srcIndex,customizer,sta
|
|
|
2065
1288
|
*
|
|
2066
1289
|
* _.isArguments([1, 2, 3]);
|
|
2067
1290
|
* // => false
|
|
2068
|
-
*/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){/**
|
|
2069
1292
|
* Checks if `value` is classified as an `Array` object.
|
|
2070
1293
|
*
|
|
2071
1294
|
* @static
|
|
@@ -2087,7 +1310,7 @@ stack.set(srcValue,newValue);mergeFunc(newValue,srcValue,srcIndex,customizer,sta
|
|
|
2087
1310
|
*
|
|
2088
1311
|
* _.isArray(_.noop);
|
|
2089
1312
|
* // => false
|
|
2090
|
-
*/var isArray=Array.isArray;/**
|
|
1313
|
+
*/var isArray=Array.isArray;module.exports=isArray;},{}],147:[function(require,module,exports){var isFunction=require('./isFunction'),isLength=require('./isLength');/**
|
|
2091
1314
|
* Checks if `value` is array-like. A value is considered array-like if it's
|
|
2092
1315
|
* not a function and has a `value.length` that's an integer greater than or
|
|
2093
1316
|
* equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.
|
|
@@ -2111,7 +1334,7 @@ stack.set(srcValue,newValue);mergeFunc(newValue,srcValue,srcIndex,customizer,sta
|
|
|
2111
1334
|
*
|
|
2112
1335
|
* _.isArrayLike(_.noop);
|
|
2113
1336
|
* // => false
|
|
2114
|
-
*/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');/**
|
|
2115
1338
|
* This method is like `_.isArrayLike` except that it also checks if `value`
|
|
2116
1339
|
* is an object.
|
|
2117
1340
|
*
|
|
@@ -2135,7 +1358,7 @@ stack.set(srcValue,newValue);mergeFunc(newValue,srcValue,srcIndex,customizer,sta
|
|
|
2135
1358
|
*
|
|
2136
1359
|
* _.isArrayLikeObject(_.noop);
|
|
2137
1360
|
* // => false
|
|
2138
|
-
*/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;/**
|
|
2139
1362
|
* Checks if `value` is a buffer.
|
|
2140
1363
|
*
|
|
2141
1364
|
* @static
|
|
@@ -2151,7 +1374,7 @@ stack.set(srcValue,newValue);mergeFunc(newValue,srcValue,srcIndex,customizer,sta
|
|
|
2151
1374
|
*
|
|
2152
1375
|
* _.isBuffer(new Uint8Array(2));
|
|
2153
1376
|
* // => false
|
|
2154
|
-
*/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]';/**
|
|
2155
1378
|
* Checks if `value` is classified as a `Function` object.
|
|
2156
1379
|
*
|
|
2157
1380
|
* @static
|
|
@@ -2169,7 +1392,7 @@ stack.set(srcValue,newValue);mergeFunc(newValue,srcValue,srcIndex,customizer,sta
|
|
|
2169
1392
|
* // => false
|
|
2170
1393
|
*/function isFunction(value){if(!isObject(value)){return false;}// The use of `Object#toString` avoids issues with the `typeof` operator
|
|
2171
1394
|
// in Safari 9 which returns 'object' for typed arrays and other constructors.
|
|
2172
|
-
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;/**
|
|
2173
1396
|
* Checks if `value` is a valid array-like length.
|
|
2174
1397
|
*
|
|
2175
1398
|
* **Note:** This method is loosely based on
|
|
@@ -2194,7 +1417,23 @@ var tag=baseGetTag(value);return tag==funcTag||tag==genTag||tag==asyncTag||tag==
|
|
|
2194
1417
|
*
|
|
2195
1418
|
* _.isLength('3');
|
|
2196
1419
|
* // => false
|
|
2197
|
-
*/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){/**
|
|
2198
1437
|
* Checks if `value` is the
|
|
2199
1438
|
* [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)
|
|
2200
1439
|
* of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)
|
|
@@ -2218,7 +1457,7 @@ var tag=baseGetTag(value);return tag==funcTag||tag==genTag||tag==asyncTag||tag==
|
|
|
2218
1457
|
*
|
|
2219
1458
|
* _.isObject(null);
|
|
2220
1459
|
* // => false
|
|
2221
|
-
*/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){/**
|
|
2222
1461
|
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
2223
1462
|
* and has a `typeof` result of "object".
|
|
2224
1463
|
*
|
|
@@ -2241,7 +1480,7 @@ var tag=baseGetTag(value);return tag==funcTag||tag==genTag||tag==asyncTag||tag==
|
|
|
2241
1480
|
*
|
|
2242
1481
|
* _.isObjectLike(null);
|
|
2243
1482
|
* // => false
|
|
2244
|
-
*/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);/**
|
|
2245
1484
|
* Checks if `value` is a plain object, that is, an object created by the
|
|
2246
1485
|
* `Object` constructor or one with a `[[Prototype]]` of `null`.
|
|
2247
1486
|
*
|
|
@@ -2268,7 +1507,55 @@ var tag=baseGetTag(value);return tag==funcTag||tag==genTag||tag==asyncTag||tag==
|
|
|
2268
1507
|
*
|
|
2269
1508
|
* _.isPlainObject(Object.create(null));
|
|
2270
1509
|
* // => true
|
|
2271
|
-
*/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;/**
|
|
2272
1559
|
* Checks if `value` is classified as a typed array.
|
|
2273
1560
|
*
|
|
2274
1561
|
* @static
|
|
@@ -2284,30 +1571,34 @@ var tag=baseGetTag(value);return tag==funcTag||tag==genTag||tag==asyncTag||tag==
|
|
|
2284
1571
|
*
|
|
2285
1572
|
* _.isTypedArray([]);
|
|
2286
1573
|
* // => false
|
|
2287
|
-
*/var isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray;/**
|
|
2288
|
-
*
|
|
2289
|
-
*
|
|
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.
|
|
2290
1580
|
*
|
|
2291
1581
|
* @static
|
|
1582
|
+
* @since 0.1.0
|
|
2292
1583
|
* @memberOf _
|
|
2293
|
-
* @
|
|
2294
|
-
* @
|
|
2295
|
-
* @
|
|
2296
|
-
* @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.
|
|
2297
1587
|
* @example
|
|
2298
1588
|
*
|
|
2299
1589
|
* function Foo() {
|
|
1590
|
+
* this.a = 1;
|
|
2300
1591
|
* this.b = 2;
|
|
2301
1592
|
* }
|
|
2302
1593
|
*
|
|
2303
1594
|
* Foo.prototype.c = 3;
|
|
2304
1595
|
*
|
|
2305
|
-
* _.
|
|
2306
|
-
* // =>
|
|
1596
|
+
* _.keys(new Foo);
|
|
1597
|
+
* // => ['a', 'b'] (iteration order is not guaranteed)
|
|
2307
1598
|
*
|
|
2308
|
-
* _.
|
|
2309
|
-
* // =>
|
|
2310
|
-
*/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');/**
|
|
2311
1602
|
* Creates an array of the own and inherited enumerable property names of `object`.
|
|
2312
1603
|
*
|
|
2313
1604
|
* **Note:** Non-object values are coerced to objects.
|
|
@@ -2329,7 +1620,7 @@ var tag=baseGetTag(value);return tag==funcTag||tag==genTag||tag==asyncTag||tag==
|
|
|
2329
1620
|
*
|
|
2330
1621
|
* _.keysIn(new Foo);
|
|
2331
1622
|
* // => ['a', 'b', 'c'] (iteration order is not guaranteed)
|
|
2332
|
-
*/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');/**
|
|
2333
1624
|
* This method is like `_.merge` except that it accepts `customizer` which
|
|
2334
1625
|
* is invoked to produce the merged values of the destination and source
|
|
2335
1626
|
* properties. If `customizer` returns `undefined`, merging is handled by the
|
|
@@ -2359,52 +1650,79 @@ var tag=baseGetTag(value);return tag==funcTag||tag==genTag||tag==asyncTag||tag==
|
|
|
2359
1650
|
*
|
|
2360
1651
|
* _.mergeWith(object, other, customizer);
|
|
2361
1652
|
* // => { 'a': [1, 3], 'b': [2, 4] }
|
|
2362
|
-
*/var mergeWith=createAssigner(function(object,source,srcIndex,customizer){baseMerge(object,source,srcIndex,customizer);})
|
|
2363
|
-
*
|
|
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.
|
|
2364
1655
|
*
|
|
2365
1656
|
* @static
|
|
2366
1657
|
* @memberOf _
|
|
2367
|
-
* @since
|
|
1658
|
+
* @since 4.13.0
|
|
2368
1659
|
* @category Util
|
|
2369
|
-
* @
|
|
2370
|
-
* @returns {Function} Returns the new constant function.
|
|
1660
|
+
* @returns {Array} Returns the new empty array.
|
|
2371
1661
|
* @example
|
|
2372
1662
|
*
|
|
2373
|
-
* var
|
|
1663
|
+
* var arrays = _.times(2, _.stubArray);
|
|
2374
1664
|
*
|
|
2375
|
-
* console.log(
|
|
2376
|
-
* // => [
|
|
1665
|
+
* console.log(arrays);
|
|
1666
|
+
* // => [[], []]
|
|
2377
1667
|
*
|
|
2378
|
-
* console.log(
|
|
2379
|
-
* // =>
|
|
2380
|
-
*/function
|
|
2381
|
-
* 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`.
|
|
2382
1672
|
*
|
|
2383
1673
|
* @static
|
|
2384
|
-
* @since 0.1.0
|
|
2385
1674
|
* @memberOf _
|
|
1675
|
+
* @since 4.13.0
|
|
2386
1676
|
* @category Util
|
|
2387
|
-
* @
|
|
2388
|
-
* @returns {*} Returns `value`.
|
|
1677
|
+
* @returns {boolean} Returns `false`.
|
|
2389
1678
|
* @example
|
|
2390
1679
|
*
|
|
2391
|
-
*
|
|
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.
|
|
2392
1685
|
*
|
|
2393
|
-
*
|
|
2394
|
-
*
|
|
2395
|
-
|
|
2396
|
-
*
|
|
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.
|
|
2397
1708
|
*
|
|
2398
1709
|
* @static
|
|
2399
1710
|
* @memberOf _
|
|
2400
|
-
* @since 4.
|
|
2401
|
-
* @category
|
|
2402
|
-
* @
|
|
1711
|
+
* @since 4.0.0
|
|
1712
|
+
* @category Lang
|
|
1713
|
+
* @param {*} value The value to convert.
|
|
1714
|
+
* @returns {string} Returns the converted string.
|
|
2403
1715
|
* @example
|
|
2404
1716
|
*
|
|
2405
|
-
* _.
|
|
2406
|
-
* // =>
|
|
2407
|
-
|
|
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,
|
|
2408
1726
|
// backported and transplited with Babel, with backwards-compat fixes
|
|
2409
1727
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
2410
1728
|
//
|
|
@@ -2466,7 +1784,7 @@ if(startDot===-1)startDot=i;else if(preDotState!==1)preDotState=1;}else if(start
|
|
|
2466
1784
|
preDotState=-1;}}if(startDot===-1||end===-1||// We saw a non-dot character immediately before the dot
|
|
2467
1785
|
preDotState===0||// The (right-most) trimmed path component is exactly '..'
|
|
2468
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
|
|
2469
|
-
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;}/**
|
|
2470
1788
|
* Represents an at-rule.
|
|
2471
1789
|
*
|
|
2472
1790
|
* If it’s followed in the CSS by a {} block, this node will have
|
|
@@ -2531,7 +1849,7 @@ var substr='ab'.substr(-1)==='b'?function(str,start,len){return str.substr(start
|
|
|
2531
1849
|
* // between: ' ',
|
|
2532
1850
|
* // afterName: '\n',
|
|
2533
1851
|
* // after: '\n' }
|
|
2534
|
-
*/;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;}/**
|
|
2535
1853
|
* Represents a comment between declarations or statements (rule and at-rules).
|
|
2536
1854
|
*
|
|
2537
1855
|
* Comments inside selectors, at-rule parameters, or declaration values
|
|
@@ -2552,7 +1870,7 @@ var substr='ab'.substr(-1)==='b'?function(str,start,len){return str.substr(start
|
|
|
2552
1870
|
* * `before`: the space symbols before the node.
|
|
2553
1871
|
* * `left`: the space symbols between `/*` and the comment’s text.
|
|
2554
1872
|
* * `right`: the space symbols between the comment’s text.
|
|
2555
|
-
*/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;});}/**
|
|
2556
1874
|
* The {@link Root}, {@link AtRule}, and {@link Rule} container nodes
|
|
2557
1875
|
* inherit some common methods to help work with their children.
|
|
2558
1876
|
*
|
|
@@ -2870,7 +2188,7 @@ var substr='ab'.substr(-1)==='b'?function(str,start,len){return str.substr(start
|
|
|
2870
2188
|
* @param {Node} node Container child.
|
|
2871
2189
|
* @param {number} index Child index.
|
|
2872
2190
|
* @return {false|undefined} Returning `false` will break iteration.
|
|
2873
|
-
*/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);}/**
|
|
2874
2192
|
* The CSS parser throws this error for broken CSS.
|
|
2875
2193
|
*
|
|
2876
2194
|
* Custom parsers can throw this error for broken custom syntax using
|
|
@@ -3009,7 +2327,7 @@ var substr='ab'.substr(-1)==='b'?function(str,start,len){return str.substr(start
|
|
|
3009
2327
|
* @example
|
|
3010
2328
|
* error.input.file //=> 'a.css'
|
|
3011
2329
|
* error.file //=> 'a.sass'
|
|
3012
|
-
*/;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;}/**
|
|
3013
2331
|
* Represents a CSS declaration.
|
|
3014
2332
|
*
|
|
3015
2333
|
* @extends Node
|
|
@@ -3067,7 +2385,7 @@ var substr='ab'.substr(-1)==='b'?function(str,start,len){return str.substr(start
|
|
|
3067
2385
|
* @example
|
|
3068
2386
|
* const root = postcss.parse('a {\n color:black\n}')
|
|
3069
2387
|
* root.first.first.raws //=> { before: '\n ', between: ':' }
|
|
3070
|
-
*/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;/**
|
|
3071
2389
|
* Represents the source CSS.
|
|
3072
2390
|
*
|
|
3073
2391
|
* @example
|
|
@@ -3140,7 +2458,7 @@ var substr='ab'.substr(-1)==='b'?function(str,start,len){return str.substr(start
|
|
|
3140
2458
|
* @property {string} file Path to file.
|
|
3141
2459
|
* @property {number} line Source line in file.
|
|
3142
2460
|
* @property {number} column Source column in file.
|
|
3143
|
-
*/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';}/**
|
|
3144
2462
|
* A Promise proxy for the result of PostCSS transformations.
|
|
3145
2463
|
*
|
|
3146
2464
|
* A `LazyResult` instance is returned by {@link Processor#process}.
|
|
@@ -3279,7 +2597,7 @@ var substr='ab'.substr(-1)==='b'?function(str,start,len){return str.substr(start
|
|
|
3279
2597
|
*/ /**
|
|
3280
2598
|
* @callback onRejected
|
|
3281
2599
|
* @param {Error} error
|
|
3282
|
-
*/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;/**
|
|
3283
2601
|
* Contains helpers for safely splitting lists of CSS values,
|
|
3284
2602
|
* preserving parentheses and quotes.
|
|
3285
2603
|
*
|
|
@@ -3308,7 +2626,7 @@ var substr='ab'.substr(-1)==='b'?function(str,start,len){return str.substr(start
|
|
|
3308
2626
|
* @example
|
|
3309
2627
|
* postcss.list.comma('black, linear-gradient(white, black)')
|
|
3310
2628
|
* //=> ['black', 'linear-gradient(white, black)']
|
|
3311
|
-
*/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;}/**
|
|
3312
2630
|
* All node classes inherit the following common methods.
|
|
3313
2631
|
*
|
|
3314
2632
|
* @abstract
|
|
@@ -3603,10 +2921,10 @@ var substr='ab'.substr(-1)==='b'?function(str,start,len){return str.substr(start
|
|
|
3603
2921
|
* @property {Input} input {@link Input} with input file
|
|
3604
2922
|
* @property {position} start The starting position of the node’s source.
|
|
3605
2923
|
* @property {position} end The ending position of the node’s source.
|
|
3606
|
-
*/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
|
|
3607
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
|
|
3608
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
|
|
3609
|
-
};_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};}/**
|
|
3610
2928
|
* Create a new {@link Processor} instance that will apply `plugins`
|
|
3611
2929
|
* as CSS processors.
|
|
3612
2930
|
*
|
|
@@ -3780,7 +3098,7 @@ var substr='ab'.substr(-1)==='b'?function(str,start,len){return str.substr(start
|
|
|
3780
3098
|
*
|
|
3781
3099
|
* @example
|
|
3782
3100
|
* postcss.root({ after: '\n' }).toString() //=> "\n"
|
|
3783
|
-
*/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);}}/**
|
|
3784
3102
|
* Source map information from input CSS.
|
|
3785
3103
|
* For example, source map after Sass compiler.
|
|
3786
3104
|
*
|
|
@@ -3809,7 +3127,9 @@ var substr='ab'.substr(-1)==='b'?function(str,start,len){return str.substr(start
|
|
|
3809
3127
|
* Does source map contains `sourcesContent` with input source text.
|
|
3810
3128
|
*
|
|
3811
3129
|
* @return {boolean} Is `sourcesContent` present.
|
|
3812
|
-
*/;_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};}/**
|
|
3813
3133
|
* Contains plugins to process CSS. Create one `Processor` instance,
|
|
3814
3134
|
* initialize its plugins, and then use that instance on numerous CSS files.
|
|
3815
3135
|
*
|
|
@@ -3829,7 +3149,7 @@ var substr='ab'.substr(-1)==='b'?function(str,start,len){return str.substr(start
|
|
|
3829
3149
|
* if (result.processor.version.split('.')[0] !== '6') {
|
|
3830
3150
|
* throw new Error('This plugin works only with PostCSS 6')
|
|
3831
3151
|
* }
|
|
3832
|
-
*/this.version='7.0.
|
|
3152
|
+
*/this.version='7.0.31';/**
|
|
3833
3153
|
* Plugins added to this processor.
|
|
3834
3154
|
*
|
|
3835
3155
|
* @type {pluginFunction[]}
|
|
@@ -3952,7 +3272,7 @@ var substr='ab'.substr(-1)==='b'?function(str,start,len){return str.substr(start
|
|
|
3952
3272
|
* annotation comment to map.
|
|
3953
3273
|
* @property {string} map.from Override `from` in map’s
|
|
3954
3274
|
* sources`.
|
|
3955
|
-
*/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;}/**
|
|
3956
3276
|
* Provides the result of the PostCSS transformations.
|
|
3957
3277
|
*
|
|
3958
3278
|
* A Result instance is returned by {@link LazyResult#then}
|
|
@@ -4077,7 +3397,7 @@ var substr='ab'.substr(-1)==='b'?function(str,start,len){return str.substr(start
|
|
|
4077
3397
|
* @typedef {object} Message
|
|
4078
3398
|
* @property {string} type Message type.
|
|
4079
3399
|
* @property {string} plugin Source PostCSS plugin name.
|
|
4080
|
-
*/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;}/**
|
|
4081
3401
|
* Represents a CSS file and contains all its parsed nodes.
|
|
4082
3402
|
*
|
|
4083
3403
|
* @extends Container
|
|
@@ -4112,7 +3432,7 @@ var substr='ab'.substr(-1)==='b'?function(str,start,len){return str.substr(start
|
|
|
4112
3432
|
* @example
|
|
4113
3433
|
* postcss.parse('a {}\n').raws //=> { after: '\n' }
|
|
4114
3434
|
* postcss.parse('a {}').raws //=> { after: '' }
|
|
4115
|
-
*/;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;}/**
|
|
4116
3436
|
* Represents a CSS rule: a selector followed by a declaration block.
|
|
4117
3437
|
*
|
|
4118
3438
|
* @extends Container
|
|
@@ -4173,11 +3493,11 @@ var substr='ab'.substr(-1)==='b'?function(str,start,len){return str.substr(start
|
|
|
4173
3493
|
* @example
|
|
4174
3494
|
* const root = postcss.parse('a {\n color:black\n}')
|
|
4175
3495
|
* root.first.first.raws //=> { before: '', between: ' ', after: '\n' }
|
|
4176
|
-
*/}]);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
|
|
4177
3497
|
if(own){value=node.raws[own];if(typeof value!=='undefined')return value;}var parent=node.parent;// Hack for first rule in CSS
|
|
4178
3498
|
if(detect==='before'){if(!parent||parent.type==='root'&&parent.first===node){return'';}}// Floating child without parent
|
|
4179
3499
|
if(!parent)return DEFAULT_RAW[detect];// Detect style by other nodes
|
|
4180
|
-
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;/**
|
|
4181
3501
|
* Contains helpers for working with vendor prefixes.
|
|
4182
3502
|
*
|
|
4183
3503
|
* @example
|
|
@@ -4203,7 +3523,7 @@ var root=node.root();if(!root.rawCache)root.rawCache={};if(typeof root.rawCache[
|
|
|
4203
3523
|
*
|
|
4204
3524
|
* @example
|
|
4205
3525
|
* postcss.vendor.unprefixed('-moz-tab-size') //=> 'tab-size'
|
|
4206
|
-
*/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;/**
|
|
4207
3527
|
* Represents a plugin’s warning. It can be created using {@link Node#warn}.
|
|
4208
3528
|
*
|
|
4209
3529
|
* @example
|
|
@@ -4269,7 +3589,7 @@ var root=node.root();if(!root.rawCache)root.rawCache={};if(typeof root.rawCache[
|
|
|
4269
3589
|
*
|
|
4270
3590
|
* @example
|
|
4271
3591
|
* warning.node.toString() //=> 'color: white !important'
|
|
4272
|
-
*/;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
|
|
4273
3593
|
var process=module.exports={};// cached from whatever global is present so that test runners that stub it
|
|
4274
3594
|
// don't break things. But we need to wrap it in a try catch in case it is
|
|
4275
3595
|
// wrapped in strict mode code which doesn't define any globals. It's inside a
|
|
@@ -4287,7 +3607,7 @@ return cachedClearTimeout.call(null,marker);}catch(e){// same as above but when
|
|
|
4287
3607
|
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
|
|
4288
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
|
|
4289
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
|
|
4290
|
-
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;}/**
|
|
4291
3611
|
* The `punycode` object.
|
|
4292
3612
|
* @name punycode
|
|
4293
3613
|
* @type Object
|
|
@@ -4442,7 +3762,7 @@ for(q=delta,k=base;;/* no condition */k+=base){t=k<=bias?tMin:k>=bias+tMax?tMax:
|
|
|
4442
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+
|
|
4443
3763
|
freeModule.exports=punycode;}else{// in Narwhal or RingoJS v0.7.0-
|
|
4444
3764
|
for(key in punycode){punycode.hasOwnProperty(key)&&(freeExports[key]=punycode[key]);}}}else{// in Rhino or a web browser
|
|
4445
|
-
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.
|
|
4446
3766
|
//
|
|
4447
3767
|
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
4448
3768
|
// copy of this software and associated documentation files (the
|
|
@@ -4466,7 +3786,7 @@ root.punycode=punycode;}})(this);}).call(this,typeof global!=="undefined"?global
|
|
|
4466
3786
|
// obj.hasOwnProperty(prop) will break.
|
|
4467
3787
|
// See: https://github.com/joyent/node/issues/1707
|
|
4468
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
|
|
4469
|
-
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.
|
|
4470
3790
|
//
|
|
4471
3791
|
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
4472
3792
|
// copy of this software and associated documentation files (the
|
|
@@ -4486,7 +3806,7 @@ if(maxKeys>0&&len>maxKeys){len=maxKeys;}for(var i=0;i<len;++i){var x=qs[i].repla
|
|
|
4486
3806
|
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
4487
3807
|
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
4488
3808
|
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
4489
|
-
'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; -*- */ /*
|
|
4490
3810
|
* Copyright 2011 Mozilla Foundation and contributors
|
|
4491
3811
|
* Licensed under the New BSD license. See LICENSE or:
|
|
4492
3812
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
@@ -4522,7 +3842,7 @@ if(maxKeys>0&&len>maxKeys){len=maxKeys;}for(var i=0;i<len;++i){var x=qs[i].repla
|
|
|
4522
3842
|
* Returns the array representation of this set (which has the proper indices
|
|
4523
3843
|
* indicated by indexOf). Note that this is a copy of the internal array used
|
|
4524
3844
|
* for storing the members so that no one can mess with internal state.
|
|
4525
|
-
*/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; -*- */ /*
|
|
4526
3846
|
* Copyright 2011 Mozilla Foundation and contributors
|
|
4527
3847
|
* Licensed under the New BSD license. See LICENSE or:
|
|
4528
3848
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
@@ -4587,7 +3907,7 @@ var VLQ_CONTINUATION_BIT=VLQ_BASE;/**
|
|
|
4587
3907
|
digit|=VLQ_CONTINUATION_BIT;}encoded+=base64.encode(digit);}while(vlq>0);return encoded;};/**
|
|
4588
3908
|
* Decodes the next base 64 VLQ value from the given string and returns the
|
|
4589
3909
|
* value and the rest of the string via the out parameter.
|
|
4590
|
-
*/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; -*- */ /*
|
|
4591
3911
|
* Copyright 2011 Mozilla Foundation and contributors
|
|
4592
3912
|
* Licensed under the New BSD license. See LICENSE or:
|
|
4593
3913
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
@@ -4610,7 +3930,7 @@ if(littleA<=charCode&&charCode<=littleZ){return charCode-littleA+littleOffset;}/
|
|
|
4610
3930
|
if(zero<=charCode&&charCode<=nine){return charCode-zero+numberOffset;}// 62: +
|
|
4611
3931
|
if(charCode==plus){return 62;}// 63: /
|
|
4612
3932
|
if(charCode==slash){return 63;}// Invalid base64 digit.
|
|
4613
|
-
return-1;};},{}],
|
|
3933
|
+
return-1;};},{}],200:[function(require,module,exports){/* -*- Mode: js; js-indent-level: 2; -*- */ /*
|
|
4614
3934
|
* Copyright 2011 Mozilla Foundation and contributors
|
|
4615
3935
|
* Licensed under the New BSD license. See LICENSE or:
|
|
4616
3936
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
@@ -4663,7 +3983,7 @@ if(aBias==exports.LEAST_UPPER_BOUND){return mid;}else{return aLow<0?-1:aLow;}}}/
|
|
|
4663
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
|
|
4664
3984
|
// the one we are searching for. However, there may be more than one such
|
|
4665
3985
|
// element. Make sure we always return the smallest of these.
|
|
4666
|
-
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; -*- */ /*
|
|
4667
3987
|
* Copyright 2014 Mozilla Foundation and contributors
|
|
4668
3988
|
* Licensed under the New BSD license. See LICENSE or:
|
|
4669
3989
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
@@ -4693,7 +4013,7 @@ this._last={generatedLine:-1,generatedColumn:0};}/**
|
|
|
4693
4013
|
* performance. The return value must NOT be mutated, and should be treated as
|
|
4694
4014
|
* an immutable borrow. If you want to take ownership, you must make your own
|
|
4695
4015
|
* copy.
|
|
4696
|
-
*/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; -*- */ /*
|
|
4697
4017
|
* Copyright 2011 Mozilla Foundation and contributors
|
|
4698
4018
|
* Licensed under the New BSD license. See LICENSE or:
|
|
4699
4019
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
@@ -4760,7 +4080,7 @@ doQuickSort(ary,comparator,p,q-1);doQuickSort(ary,comparator,q+1,r);}}/**
|
|
|
4760
4080
|
* An array to sort.
|
|
4761
4081
|
* @param {function} comparator
|
|
4762
4082
|
* Function to use to compare two items.
|
|
4763
|
-
*/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; -*- */ /*
|
|
4764
4084
|
* Copyright 2011 Mozilla Foundation and contributors
|
|
4765
4085
|
* Licensed under the New BSD license. See LICENSE or:
|
|
4766
4086
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
@@ -5118,7 +4438,7 @@ if(section.consumer._findSourceIndex(util.getArg(aArgs,'source'))===-1){continue
|
|
|
5118
4438
|
// generated positions relative to the start of the section, so we
|
|
5119
4439
|
// need to offset them to be relative to the start of the concatenated
|
|
5120
4440
|
// generated file.
|
|
5121
|
-
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; -*- */ /*
|
|
5122
4442
|
* Copyright 2011 Mozilla Foundation and contributors
|
|
5123
4443
|
* Licensed under the New BSD license. See LICENSE or:
|
|
5124
4444
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
@@ -5195,7 +4515,7 @@ next+=base64VLQ.encode(mapping.originalLine-1-previousOriginalLine);previousOrig
|
|
|
5195
4515
|
* Externalize the source map.
|
|
5196
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;};/**
|
|
5197
4517
|
* Render the source map being generated to a string.
|
|
5198
|
-
*/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; -*- */ /*
|
|
5199
4519
|
* Copyright 2011 Mozilla Foundation and contributors
|
|
5200
4520
|
* Licensed under the New BSD license. See LICENSE or:
|
|
5201
4521
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
@@ -5294,7 +4614,7 @@ aSourceMapConsumer.sources.forEach(function(sourceFile){var content=aSourceMapCo
|
|
|
5294
4614
|
* Returns the string representation of this source node along with a source
|
|
5295
4615
|
* map.
|
|
5296
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
|
|
5297
|
-
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; -*- */ /*
|
|
5298
4618
|
* Copyright 2011 Mozilla Foundation and contributors
|
|
5299
4619
|
* Licensed under the New BSD license. See LICENSE or:
|
|
5300
4620
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
@@ -5406,11 +4726,11 @@ sourceURL=sourceRoot+sourceURL;}// Historically, SourceMapConsumer did not take
|
|
|
5406
4726
|
// “sourceRoot”, the sources are resolved relative to the
|
|
5407
4727
|
// SourceMap (like resolving script src in a html document).
|
|
5408
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 "/".
|
|
5409
|
-
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){/*
|
|
5410
4730
|
* Copyright 2009-2011 Mozilla Foundation and contributors
|
|
5411
4731
|
* Licensed under the New BSD license. See LICENSE.txt or:
|
|
5412
4732
|
* http://opensource.org/licenses/BSD-3-Clause
|
|
5413
|
-
*/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.
|
|
5414
4734
|
//
|
|
5415
4735
|
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
5416
4736
|
// copy of this software and associated documentation files (the
|
|
@@ -5557,7 +4877,9 @@ if(psychotic){result.hostname=result.host=isAbsolute?'':srcPath.length?srcPath.s
|
|
|
5557
4877
|
//this especially happens in cases like
|
|
5558
4878
|
//url.resolveObject('mailto:local1@domain1', 'local2@domain2')
|
|
5559
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
|
|
5560
|
-
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":
|
|
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.
|
|
5561
4883
|
function has(obj,key){return{}.hasOwnProperty.call(obj,key);}// Returns those elements of `a` for which `cb(a)` returns truthy
|
|
5562
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.
|
|
5563
4885
|
// We use a tolerant definition based on the set of strings defined by
|
|
@@ -5575,19 +4897,23 @@ var VALID_HTML_ATTRIBUTE_NAME=/^[^\0\t\n\f\r /<=>]+$/;// Ignore the _recursing f
|
|
|
5575
4897
|
// https://github.com/fb55/htmlparser2/issues/105
|
|
5576
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.
|
|
5577
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
|
|
5578
|
-
this.updateParentNodeText=function(){if(stack.length){var parentFrame=stack[stack.length-1];parentFrame.text+=that.text;}};}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
|
|
5579
4903
|
// the text when the tag is disallowed makes sense for other reasons.
|
|
5580
4904
|
// If we are not allowing these tags, we should drop their content too.
|
|
5581
4905
|
// For other tags you would drop the tag but keep its content.
|
|
5582
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
|
|
5583
|
-
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
|
|
5584
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
|
|
5585
4911
|
// interpreted as the end of an attribute, or end of a tag.
|
|
5586
4912
|
delete frame.attribs[a];return;}var parsed;// check allowedAttributesMap for the element and attribute and modify the value
|
|
5587
4913
|
// as necessary if there are specific values defined.
|
|
5588
|
-
var passedAllowedAttributesMapCheck=false;if(!allowedAttributesMap||has(allowedAttributesMap,name)&&allowedAttributesMap[name].indexOf(a)!==-1||allowedAttributesMap['*']&&allowedAttributesMap['*'].indexOf(a)!==-1||has(allowedAttributesGlobMap,name)&&allowedAttributesGlobMap[name].test(a)||allowedAttributesGlobMap['*']&&allowedAttributesGlobMap['*'].test(a)){passedAllowedAttributesMapCheck=true;}else if(allowedAttributesMap&&allowedAttributesMap[name]){var
|
|
5589
|
-
var splitStrArray=value.split(' ');var
|
|
5590
|
-
newValue=value;}value=newValue;}}}catch(err){
|
|
4914
|
+
var passedAllowedAttributesMapCheck=false;if(!allowedAttributesMap||has(allowedAttributesMap,name)&&allowedAttributesMap[name].indexOf(a)!==-1||allowedAttributesMap['*']&&allowedAttributesMap['*'].indexOf(a)!==-1||has(allowedAttributesGlobMap,name)&&allowedAttributesGlobMap[name].test(a)||allowedAttributesGlobMap['*']&&allowedAttributesGlobMap['*'].test(a)){passedAllowedAttributesMapCheck=true;}else if(allowedAttributesMap&&allowedAttributesMap[name]){var _iterator10=_createForOfIteratorHelper(allowedAttributesMap[name]),_step;try{for(_iterator10.s();!(_step=_iterator10.n()).done;){var o=_step.value;if(isPlainObject(o)&&o.name&&o.name===a){passedAllowedAttributesMapCheck=true;var newValue='';if(o.multiple===true){// verify the values that are allowed
|
|
4915
|
+
var splitStrArray=value.split(' ');var _iterator11=_createForOfIteratorHelper(splitStrArray),_step2;try{for(_iterator11.s();!(_step2=_iterator11.n()).done;){var s=_step2.value;if(o.values.indexOf(s)!==-1){if(newValue===''){newValue=s;}else{newValue+=' '+s;}}}}catch(err){_iterator11.e(err);}finally{_iterator11.f();}}else if(o.values.indexOf(value)>=0){// verified an allowed value matches the entire attribute value
|
|
4916
|
+
newValue=value;}value=newValue;}}}catch(err){_iterator10.e(err);}finally{_iterator10.f();}}if(passedAllowedAttributesMapCheck){if(options.allowedSchemesAppliedToAttributes.indexOf(a)!==-1){if(naughtyHref(name,value)){delete frame.attribs[a];return;}}if(name==='iframe'&&a==='src'){var allowed=true;try{// naughtyHref is in charge of whether protocol relative URLs
|
|
5591
4917
|
// are cool. We should just accept them
|
|
5592
4918
|
parsed=url.parse(value,false,true);var isRelativeUrl=parsed&&parsed.host===null&&parsed.protocol===null;if(isRelativeUrl){// default value of allowIframeRelativeUrls is true unless allowIframeHostnames specified
|
|
5593
4919
|
allowed=has(options,"allowIframeRelativeUrls")?options.allowIframeRelativeUrls:!options.allowedIframeHostnames;}else if(options.allowedIframeHostnames){allowed=options.allowedIframeHostnames.find(function(hostname){return hostname===parsed.hostname;});}}catch(e){// Unparseable iframe src
|
|
@@ -5597,9 +4923,9 @@ text=lastFrame.innerText!==undefined?lastFrame.innerText:text;}if(options.disall
|
|
|
5597
4923
|
// script tags is, by definition, game over for XSS protection, so if that's
|
|
5598
4924
|
// your concern, don't allow them. The same is essentially true for style tags
|
|
5599
4925
|
// which have their own collection of XSS vectors.
|
|
5600
|
-
result+=text;}else{var escaped=escapeHtml(text,false);if(options.textFilter){result+=options.textFilter(escaped);}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
|
|
5601
|
-
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.updateParentNodeText();if(options.selfClosing.indexOf(name)!==-1){// Already output />
|
|
5602
|
-
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
|
|
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
|
|
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
|
|
5603
4929
|
// will not work, each & must be considered with regard to whether it
|
|
5604
4930
|
// is followed by a 100% syntactically valid entity or not, and escaped
|
|
5605
4931
|
// if it is not. If this bothers you, don't set parser.decodeEntities
|
|
@@ -5608,6 +4934,7 @@ s=s.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,'&')// Match ampersands not part of
|
|
|
5608
4934
|
.replace(/</g,'<').replace(/\>/g,'>');if(quote){s=s.replace(/\"/g,'"');}return s;}function naughtyHref(name,href){// Browsers ignore character codes of 32 (space) and below in a surprising
|
|
5609
4935
|
// number of situations. Start reading here:
|
|
5610
4936
|
// https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet#Embedded_tab
|
|
4937
|
+
// eslint-disable-next-line no-control-regex
|
|
5611
4938
|
href=href.replace(/[\x00-\x20]+/g,'');// Clobber any comments in URLs, which the browser might
|
|
5612
4939
|
// interpret inside an XML data island, allowing
|
|
5613
4940
|
// a javascript: URL to be snuck through
|
|
@@ -5643,9 +4970,9 @@ if(allowedStyles[astRules.selector]&&allowedStyles['*']){selectedRule=mergeWith(
|
|
|
5643
4970
|
if(selectedRule.hasOwnProperty(attributeObject.prop)){var matchesRegex=selectedRule[attributeObject.prop].some(function(regularExpression){return regularExpression.test(attributeObject.value);});if(matchesRegex){allowedDeclarationsList.push(attributeObject);}}return allowedDeclarationsList;};}function filterClasses(classes,allowed){if(!allowed){// The class attribute is allowed without filtering on this tag
|
|
5644
4971
|
return classes;}classes=classes.split(/\s+/);return classes.filter(function(clss){return allowed.indexOf(clss)!==-1;}).join(' ');}}// Defaults are accessible to you so that you can use them as a starting point
|
|
5645
4972
|
// programmatically if you wish
|
|
5646
|
-
var htmlParserDefaults={decodeEntities:true};sanitizeHtml.defaults={allowedTags:['h3','h4','h5','h6','blockquote','p','a','ul','ol','nl','li','b','i','strong','em','strike','code','hr','br','div','table','thead','caption','tbody','tr','th','td','pre','iframe'],disallowedTagsMode:'discard',allowedAttributes:{a:['href','name','target'],// We don't currently allow img itself by default, but this
|
|
4973
|
+
var htmlParserDefaults={decodeEntities:true};sanitizeHtml.defaults={allowedTags:['h3','h4','h5','h6','blockquote','p','a','ul','ol','nl','li','b','i','strong','em','strike','abbr','code','hr','br','div','table','thead','caption','tbody','tr','th','td','pre','iframe'],disallowedTagsMode:'discard',allowedAttributes:{a:['href','name','target'],// We don't currently allow img itself by default, but this
|
|
5647
4974
|
// would make sense if we did. You could add srcset here,
|
|
5648
4975
|
// and if you do the URL is checked for safety
|
|
5649
4976
|
img:['src']},// Lots of these won't come up by default because we don't allow them
|
|
5650
4977
|
selfClosing:['img','br','hr','area','base','basefont','input','link','meta'],// URL schemes we permit
|
|
5651
|
-
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);});
|