From 6bb76ccd173bc58d6859e0bb24cf63c8b68ba2c7 Mon Sep 17 00:00:00 2001 From: Adam Brown Date: Wed, 14 Dec 2016 19:06:14 -0500 Subject: [PATCH] add server rendering of loaded compares and clean up saving of compares, switch to using isomorphic fetch (and save much compiled size) --- .gitignore | 5 +- dist/browser-bundle.js | 21783 ++--------------- dist/themes/default/assets/fonts/icons.woff2 | Bin 0 -> 71896 bytes package.json | 6 +- src/client/index.js | 12 +- src/common/actions.js | 67 +- src/common/components/Compare.js | 15 +- src/common/components/CompareControls.js | 8 +- src/common/components/Header.js | 21 +- src/common/components/MainControls.js | 23 +- src/common/components/SaveStatus.js | 52 + src/common/constants.js | 10 + src/common/reducers.js | 42 +- src/common/selectors.js | 7 +- src/server/comparison.js | 7 +- src/server/index.js | 48 +- src/server/render.js | 10 +- 17 files changed, 2456 insertions(+), 19660 deletions(-) create mode 100644 dist/themes/default/assets/fonts/icons.woff2 create mode 100644 src/common/components/SaveStatus.js create mode 100644 src/common/constants.js diff --git a/.gitignore b/.gitignore index 2717b4d..d8f7cf0 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,7 @@ data/* # browser-bundle.js browser-bundle.js.map -npm-debug.log.* \ No newline at end of file +npm-debug.log.* + +stats.json +stats.analyzed.txt diff --git a/dist/browser-bundle.js b/dist/browser-bundle.js index fb3c6e4..c87aec5 100644 --- a/dist/browser-bundle.js +++ b/dist/browser-bundle.js @@ -61,7 +61,7 @@ /******/ __webpack_require__.p = ""; /******/ // Load entry module and return exports -/******/ return __webpack_require__(__webpack_require__.s = 1206); +/******/ return __webpack_require__(__webpack_require__.s = 1213); /******/ }) /************************************************************************/ /******/ ([ @@ -69,14 +69,14 @@ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';module.exports=__webpack_require__(944); +'use strict';module.exports=__webpack_require__(950); /***/ }, /* 1 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.objectDiff=exports.numberToWord=exports.numberToWordMap=exports.keyboardKey=exports.SUI=exports.META=exports.leven=exports.isBrowser=exports.getElementType=exports.getUnhandledProps=exports.makeDebugger=exports.debug=exports.customPropTypes=exports.useVerticalAlignProp=exports.useTextAlignProp=exports.useWidthProp=exports.useKeyOrValueAndKey=exports.useValueAndKey=exports.useKeyOnly=exports.childrenUtils=exports.AutoControlledComponent=undefined;var _AutoControlledComponent=__webpack_require__(1090);Object.defineProperty(exports,'AutoControlledComponent',{enumerable:true,get:function get(){return _interopRequireDefault(_AutoControlledComponent).default;}});var _classNameBuilders=__webpack_require__(1094);Object.defineProperty(exports,'useKeyOnly',{enumerable:true,get:function get(){return _classNameBuilders.useKeyOnly;}});Object.defineProperty(exports,'useValueAndKey',{enumerable:true,get:function get(){return _classNameBuilders.useValueAndKey;}});Object.defineProperty(exports,'useKeyOrValueAndKey',{enumerable:true,get:function get(){return _classNameBuilders.useKeyOrValueAndKey;}});Object.defineProperty(exports,'useWidthProp',{enumerable:true,get:function get(){return _classNameBuilders.useWidthProp;}});Object.defineProperty(exports,'useTextAlignProp',{enumerable:true,get:function get(){return _classNameBuilders.useTextAlignProp;}});Object.defineProperty(exports,'useVerticalAlignProp',{enumerable:true,get:function get(){return _classNameBuilders.useVerticalAlignProp;}});var _debug=__webpack_require__(1096);Object.defineProperty(exports,'debug',{enumerable:true,get:function get(){return _debug.debug;}});Object.defineProperty(exports,'makeDebugger',{enumerable:true,get:function get(){return _debug.makeDebugger;}});var _factories=__webpack_require__(1097);Object.keys(_factories).forEach(function(key){if(key==="default"||key==="__esModule")return;Object.defineProperty(exports,key,{enumerable:true,get:function get(){return _factories[key];}});});var _getUnhandledProps=__webpack_require__(1099);Object.defineProperty(exports,'getUnhandledProps',{enumerable:true,get:function get(){return _interopRequireDefault(_getUnhandledProps).default;}});var _getElementType=__webpack_require__(1098);Object.defineProperty(exports,'getElementType',{enumerable:true,get:function get(){return _interopRequireDefault(_getElementType).default;}});var _isBrowser=__webpack_require__(498);Object.defineProperty(exports,'isBrowser',{enumerable:true,get:function get(){return _interopRequireDefault(_isBrowser).default;}});var _leven=__webpack_require__(499);Object.defineProperty(exports,'leven',{enumerable:true,get:function get(){return _interopRequireDefault(_leven).default;}});var _keyboardKey=__webpack_require__(1100);Object.defineProperty(exports,'keyboardKey',{enumerable:true,get:function get(){return _interopRequireDefault(_keyboardKey).default;}});var _numberToWord=__webpack_require__(273);Object.defineProperty(exports,'numberToWordMap',{enumerable:true,get:function get(){return _numberToWord.numberToWordMap;}});Object.defineProperty(exports,'numberToWord',{enumerable:true,get:function get(){return _numberToWord.numberToWord;}});var _objectDiff=__webpack_require__(1101);Object.defineProperty(exports,'objectDiff',{enumerable:true,get:function get(){return _objectDiff.objectDiff;}});var _childrenUtils2=__webpack_require__(1093);var _childrenUtils=_interopRequireWildcard(_childrenUtils2);var _customPropTypes2=__webpack_require__(1095);var _customPropTypes=_interopRequireWildcard(_customPropTypes2);var _META2=__webpack_require__(1091);var _META=_interopRequireWildcard(_META2);var _SUI2=__webpack_require__(1092);var _SUI=_interopRequireWildcard(_SUI2);function _interopRequireWildcard(obj){if(obj&&obj.__esModule){return obj;}else{var newObj={};if(obj!=null){for(var key in obj){if(Object.prototype.hasOwnProperty.call(obj,key))newObj[key]=obj[key];}}newObj.default=obj;return newObj;}}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.childrenUtils=_childrenUtils;exports.customPropTypes=_customPropTypes;exports.META=_META;exports.SUI=_SUI; +'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.objectDiff=exports.numberToWord=exports.numberToWordMap=exports.keyboardKey=exports.SUI=exports.META=exports.leven=exports.isBrowser=exports.getElementType=exports.getUnhandledProps=exports.makeDebugger=exports.debug=exports.customPropTypes=exports.useVerticalAlignProp=exports.useTextAlignProp=exports.useWidthProp=exports.useKeyOrValueAndKey=exports.useValueAndKey=exports.useKeyOnly=exports.childrenUtils=exports.AutoControlledComponent=undefined;var _AutoControlledComponent=__webpack_require__(1096);Object.defineProperty(exports,'AutoControlledComponent',{enumerable:true,get:function get(){return _interopRequireDefault(_AutoControlledComponent).default;}});var _classNameBuilders=__webpack_require__(1100);Object.defineProperty(exports,'useKeyOnly',{enumerable:true,get:function get(){return _classNameBuilders.useKeyOnly;}});Object.defineProperty(exports,'useValueAndKey',{enumerable:true,get:function get(){return _classNameBuilders.useValueAndKey;}});Object.defineProperty(exports,'useKeyOrValueAndKey',{enumerable:true,get:function get(){return _classNameBuilders.useKeyOrValueAndKey;}});Object.defineProperty(exports,'useWidthProp',{enumerable:true,get:function get(){return _classNameBuilders.useWidthProp;}});Object.defineProperty(exports,'useTextAlignProp',{enumerable:true,get:function get(){return _classNameBuilders.useTextAlignProp;}});Object.defineProperty(exports,'useVerticalAlignProp',{enumerable:true,get:function get(){return _classNameBuilders.useVerticalAlignProp;}});var _debug=__webpack_require__(1102);Object.defineProperty(exports,'debug',{enumerable:true,get:function get(){return _debug.debug;}});Object.defineProperty(exports,'makeDebugger',{enumerable:true,get:function get(){return _debug.makeDebugger;}});var _factories=__webpack_require__(1103);Object.keys(_factories).forEach(function(key){if(key==="default"||key==="__esModule")return;Object.defineProperty(exports,key,{enumerable:true,get:function get(){return _factories[key];}});});var _getUnhandledProps=__webpack_require__(1105);Object.defineProperty(exports,'getUnhandledProps',{enumerable:true,get:function get(){return _interopRequireDefault(_getUnhandledProps).default;}});var _getElementType=__webpack_require__(1104);Object.defineProperty(exports,'getElementType',{enumerable:true,get:function get(){return _interopRequireDefault(_getElementType).default;}});var _isBrowser=__webpack_require__(507);Object.defineProperty(exports,'isBrowser',{enumerable:true,get:function get(){return _interopRequireDefault(_isBrowser).default;}});var _leven=__webpack_require__(508);Object.defineProperty(exports,'leven',{enumerable:true,get:function get(){return _interopRequireDefault(_leven).default;}});var _keyboardKey=__webpack_require__(1106);Object.defineProperty(exports,'keyboardKey',{enumerable:true,get:function get(){return _interopRequireDefault(_keyboardKey).default;}});var _numberToWord=__webpack_require__(279);Object.defineProperty(exports,'numberToWordMap',{enumerable:true,get:function get(){return _numberToWord.numberToWordMap;}});Object.defineProperty(exports,'numberToWord',{enumerable:true,get:function get(){return _numberToWord.numberToWord;}});var _objectDiff=__webpack_require__(1107);Object.defineProperty(exports,'objectDiff',{enumerable:true,get:function get(){return _objectDiff.objectDiff;}});var _childrenUtils2=__webpack_require__(1099);var _childrenUtils=_interopRequireWildcard(_childrenUtils2);var _customPropTypes2=__webpack_require__(1101);var _customPropTypes=_interopRequireWildcard(_customPropTypes2);var _META2=__webpack_require__(1097);var _META=_interopRequireWildcard(_META2);var _SUI2=__webpack_require__(1098);var _SUI=_interopRequireWildcard(_SUI2);function _interopRequireWildcard(obj){if(obj&&obj.__esModule){return obj;}else{var newObj={};if(obj!=null){for(var key in obj){if(Object.prototype.hasOwnProperty.call(obj,key))newObj[key]=obj[key];}}newObj.default=obj;return newObj;}}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.childrenUtils=_childrenUtils;exports.customPropTypes=_customPropTypes;exports.META=_META;exports.SUI=_SUI; /***/ }, /* 2 */ @@ -87,7 +87,7 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;'use strict';var Copyright (c) 2016 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames -*//* global define */(function(){'use strict';var hasOwn={}.hasOwnProperty;function classNames(){var classes=[];for(var i=0;i - * @license MIT - *//* eslint-disable no-proto */'use strict';var base64=__webpack_require__(580);var ieee754=__webpack_require__(679);var isArray=__webpack_require__(592);exports.Buffer=Buffer;exports.SlowBuffer=SlowBuffer;exports.INSPECT_MAX_BYTES=50;/** - * If `Buffer.TYPED_ARRAY_SUPPORT`: - * === true Use Uint8Array implementation (fastest) - * === false Use Object implementation (most compatible, even IE6) - * - * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+, - * Opera 11.6+, iOS 4.2+. - * - * Due to various browser bugs, sometimes the Object implementation will be used even - * when the browser supports typed arrays. - * - * Note: - * - * - Firefox 4-29 lacks support for adding new properties to `Uint8Array` instances, - * See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438. - * - * - Chrome 9-10 is missing the `TypedArray.prototype.subarray` function. - * - * - IE10 has a broken `TypedArray.prototype.subarray` function which returns arrays of - * incorrect length in some situations. - - * We detect these buggy browsers and set `Buffer.TYPED_ARRAY_SUPPORT` to `false` so they - * get the Object implementation, which is slower but behaves correctly. - */Buffer.TYPED_ARRAY_SUPPORT=global.TYPED_ARRAY_SUPPORT!==undefined?global.TYPED_ARRAY_SUPPORT:typedArraySupport();/* - * Export kMaxLength after typed array support is determined. - */exports.kMaxLength=kMaxLength();function typedArraySupport(){try{var arr=new Uint8Array(1);arr.__proto__={__proto__:Uint8Array.prototype,foo:function foo(){return 42;}};return arr.foo()===42&&// typed array instances can be augmented -typeof arr.subarray==='function'&&// chrome 9-10 lack `subarray` -arr.subarray(1,1).byteLength===0;// ie10 has broken `subarray` -}catch(e){return false;}}function kMaxLength(){return Buffer.TYPED_ARRAY_SUPPORT?0x7fffffff:0x3fffffff;}function createBuffer(that,length){if(kMaxLength()=kMaxLength()){throw new RangeError('Attempt to allocate Buffer larger than maximum '+'size: 0x'+kMaxLength().toString(16)+' bytes');}return length|0;}function SlowBuffer(length){if(+length!=length){// eslint-disable-line eqeqeq -length=0;}return Buffer.alloc(+length);}Buffer.isBuffer=function isBuffer(b){return!!(b!=null&&b._isBuffer);};Buffer.compare=function compare(a,b){if(!Buffer.isBuffer(a)||!Buffer.isBuffer(b)){throw new TypeError('Arguments must be Buffers');}if(a===b)return 0;var x=a.length;var y=b.length;for(var i=0,len=Math.min(x,y);i>>1;case'base64':return base64ToBytes(string).length;default:if(loweredCase)return utf8ToBytes(string).length;// assume utf8 -encoding=(''+encoding).toLowerCase();loweredCase=true;}}}Buffer.byteLength=byteLength;function slowToString(encoding,start,end){var loweredCase=false;// No need to verify that "this.length <= MAX_UINT32" since it's a read-only -// property of a typed array. -// This behaves neither like String nor Uint8Array in that we set start/end -// to their upper/lower bounds if the value passed is out of range. -// undefined is handled specially as per ECMA-262 6th Edition, -// Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization. -if(start===undefined||start<0){start=0;}// Return early if start > this.length. Done here to prevent potential uint32 -// coercion fail below. -if(start>this.length){return'';}if(end===undefined||end>this.length){end=this.length;}if(end<=0){return'';}// Force coersion to uint32. This will also coerce falsey/NaN values to 0. -end>>>=0;start>>>=0;if(end<=start){return'';}if(!encoding)encoding='utf8';while(true){switch(encoding){case'hex':return hexSlice(this,start,end);case'utf8':case'utf-8':return utf8Slice(this,start,end);case'ascii':return asciiSlice(this,start,end);case'latin1':case'binary':return latin1Slice(this,start,end);case'base64':return base64Slice(this,start,end);case'ucs2':case'ucs-2':case'utf16le':case'utf-16le':return utf16leSlice(this,start,end);default:if(loweredCase)throw new TypeError('Unknown encoding: '+encoding);encoding=(encoding+'').toLowerCase();loweredCase=true;}}}// The property is used by `Buffer.isBuffer` and `is-buffer` (in Safari 5-7) to detect -// Buffer instances. -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;i0){str=this.toString('hex',0,max).match(/.{2}/g).join(' ');if(this.length>max)str+=' ... ';}return'';};Buffer.prototype.compare=function compare(target,start,end,thisStart,thisEnd){if(!Buffer.isBuffer(target)){throw new TypeError('Argument must be a Buffer');}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= `byteOffset`, -// OR the last index of `val` in `buffer` at offset <= `byteOffset`. -// -// Arguments: -// - buffer - a Buffer to search -// - val - a string, Buffer, or number -// - byteOffset - an index into `buffer`; will be clamped to an int32 -// - encoding - an optional encoding, relevant is val is a string -// - dir - true for indexOf, false for lastIndexOf -function bidirectionalIndexOf(buffer,val,byteOffset,encoding,dir){// Empty buffer means no match -if(buffer.length===0)return-1;// Normalize byteOffset -if(typeof byteOffset==='string'){encoding=byteOffset;byteOffset=0;}else if(byteOffset>0x7fffffff){byteOffset=0x7fffffff;}else if(byteOffset<-0x80000000){byteOffset=-0x80000000;}byteOffset=+byteOffset;// Coerce to Number. -if(isNaN(byteOffset)){// byteOffset: it it's undefined, null, NaN, "foo", etc, search whole buffer -byteOffset=dir?0:buffer.length-1;}// Normalize byteOffset: negative offsets start from the end of the buffer -if(byteOffset<0)byteOffset=buffer.length+byteOffset;if(byteOffset>=buffer.length){if(dir)return-1;else byteOffset=buffer.length-1;}else if(byteOffset<0){if(dir)byteOffset=0;else return-1;}// Normalize val -if(typeof val==='string'){val=Buffer.from(val,encoding);}// Finally, search either indexOf (if dir is true) or lastIndexOf -if(Buffer.isBuffer(val)){// Special case: looking for empty string/buffer always fails -if(val.length===0){return-1;}return arrayIndexOf(buffer,val,byteOffset,encoding,dir);}else if(typeof val==='number'){val=val&0xFF;// Search for a byte value [0-255] -if(Buffer.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf==='function'){if(dir){return Uint8Array.prototype.indexOf.call(buffer,val,byteOffset);}else{return Uint8Array.prototype.lastIndexOf.call(buffer,val,byteOffset);}}return arrayIndexOf(buffer,[val],byteOffset,encoding,dir);}throw new TypeError('val must be string, number or Buffer');}function arrayIndexOf(arr,val,byteOffset,encoding,dir){var indexSize=1;var arrLength=arr.length;var valLength=val.length;if(encoding!==undefined){encoding=String(encoding).toLowerCase();if(encoding==='ucs2'||encoding==='ucs-2'||encoding==='utf16le'||encoding==='utf-16le'){if(arr.length<2||val.length<2){return-1;}indexSize=2;arrLength/=2;valLength/=2;byteOffset/=2;}}function read(buf,i){if(indexSize===1){return buf[i];}else{return buf.readUInt16BE(i*indexSize);}}var i;if(dir){var foundIndex=-1;for(i=byteOffset;iarrLength)byteOffset=arrLength-valLength;for(i=byteOffset;i>=0;i--){var found=true;for(var j=0;jremaining){length=remaining;}}// must be an even number of digits -var strLen=string.length;if(strLen%2!==0)throw new TypeError('Invalid hex string');if(length>strLen/2){length=strLen/2;}for(var i=0;iremaining)length=remaining;if(string.length>0&&(length<0||offset<0)||offset>this.length){throw new RangeError('Attempt to write outside buffer bounds');}if(!encoding)encoding='utf8';var loweredCase=false;for(;;){switch(encoding){case'hex':return hexWrite(this,string,offset,length);case'utf8':case'utf-8':return utf8Write(this,string,offset,length);case'ascii':return asciiWrite(this,string,offset,length);case'latin1':case'binary':return latin1Write(this,string,offset,length);case'base64':// Warning: maxLength not taken into account in base64Write -return base64Write(this,string,offset,length);case'ucs2':case'ucs-2':case'utf16le':case'utf-16le':return ucs2Write(this,string,offset,length);default:if(loweredCase)throw new TypeError('Unknown encoding: '+encoding);encoding=(''+encoding).toLowerCase();loweredCase=true;}}};Buffer.prototype.toJSON=function toJSON(){return{type:'Buffer',data:Array.prototype.slice.call(this._arr||this,0)};};function base64Slice(buf,start,end){if(start===0&&end===buf.length){return base64.fromByteArray(buf);}else{return base64.fromByteArray(buf.slice(start,end));}}function utf8Slice(buf,start,end){end=Math.min(buf.length,end);var res=[];var i=start;while(i0xEF?4:firstByte>0xDF?3:firstByte>0xBF?2:1;if(i+bytesPerSequence<=end){var secondByte,thirdByte,fourthByte,tempCodePoint;switch(bytesPerSequence){case 1:if(firstByte<0x80){codePoint=firstByte;}break;case 2:secondByte=buf[i+1];if((secondByte&0xC0)===0x80){tempCodePoint=(firstByte&0x1F)<<0x6|secondByte&0x3F;if(tempCodePoint>0x7F){codePoint=tempCodePoint;}}break;case 3:secondByte=buf[i+1];thirdByte=buf[i+2];if((secondByte&0xC0)===0x80&&(thirdByte&0xC0)===0x80){tempCodePoint=(firstByte&0xF)<<0xC|(secondByte&0x3F)<<0x6|thirdByte&0x3F;if(tempCodePoint>0x7FF&&(tempCodePoint<0xD800||tempCodePoint>0xDFFF)){codePoint=tempCodePoint;}}break;case 4:secondByte=buf[i+1];thirdByte=buf[i+2];fourthByte=buf[i+3];if((secondByte&0xC0)===0x80&&(thirdByte&0xC0)===0x80&&(fourthByte&0xC0)===0x80){tempCodePoint=(firstByte&0xF)<<0x12|(secondByte&0x3F)<<0xC|(thirdByte&0x3F)<<0x6|fourthByte&0x3F;if(tempCodePoint>0xFFFF&&tempCodePoint<0x110000){codePoint=tempCodePoint;}}}}if(codePoint===null){// we did not generate a valid codePoint so insert a -// replacement char (U+FFFD) and advance only 1 byte -codePoint=0xFFFD;bytesPerSequence=1;}else if(codePoint>0xFFFF){// encode to utf16 (surrogate pair dance) -codePoint-=0x10000;res.push(codePoint>>>10&0x3FF|0xD800);codePoint=0xDC00|codePoint&0x3FF;}res.push(codePoint);i+=bytesPerSequence;}return decodeCodePointsArray(res);}// Based on http://stackoverflow.com/a/22747272/680742, the browser with -// the lowest limit is Chrome, with 0x10000 args. -// We go 1 magnitude less, for safety -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() -}// Decode in chunks to avoid "call stack size exceeded". -var res='';var i=0;while(ilen)end=len;var out='';for(var i=start;ilen){start=len;}if(end<0){end+=len;if(end<0)end=0;}else if(end>len){end=len;}if(endlength)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(++i0&&(mul*=0x100)){val+=this[offset+--byteLength]*mul;}return val;};Buffer.prototype.readUInt8=function readUInt8(offset,noAssert){if(!noAssert)checkOffset(offset,1,this.length);return this[offset];};Buffer.prototype.readUInt16LE=function readUInt16LE(offset,noAssert){if(!noAssert)checkOffset(offset,2,this.length);return this[offset]|this[offset+1]<<8;};Buffer.prototype.readUInt16BE=function readUInt16BE(offset,noAssert){if(!noAssert)checkOffset(offset,2,this.length);return this[offset]<<8|this[offset+1];};Buffer.prototype.readUInt32LE=function readUInt32LE(offset,noAssert){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){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=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){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){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){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){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){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){if(!noAssert)checkOffset(offset,4,this.length);return ieee754.read(this,offset,true,23,4);};Buffer.prototype.readFloatBE=function readFloatBE(offset,noAssert){if(!noAssert)checkOffset(offset,4,this.length);return ieee754.read(this,offset,false,23,4);};Buffer.prototype.readDoubleLE=function readDoubleLE(offset,noAssert){if(!noAssert)checkOffset(offset,8,this.length);return ieee754.read(this,offset,true,52,8);};Buffer.prototype.readDoubleBE=function readDoubleBE(offset,noAssert){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||valuebuf.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=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);if(!Buffer.TYPED_ARRAY_SUPPORT)value=Math.floor(value);this[offset]=value&0xff;return offset+1;};function objectWriteUInt16(buf,value,offset,littleEndian){if(value<0)value=0xffff+value+1;for(var i=0,j=Math.min(buf.length-offset,2);i>>(littleEndian?i:1-i)*8;}}Buffer.prototype.writeUInt16LE=function writeUInt16LE(value,offset,noAssert){value=+value;offset=offset|0;if(!noAssert)checkInt(this,value,offset,2,0xffff,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value&0xff;this[offset+1]=value>>>8;}else{objectWriteUInt16(this,value,offset,true);}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);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value>>>8;this[offset+1]=value&0xff;}else{objectWriteUInt16(this,value,offset,false);}return offset+2;};function objectWriteUInt32(buf,value,offset,littleEndian){if(value<0)value=0xffffffff+value+1;for(var i=0,j=Math.min(buf.length-offset,4);i>>(littleEndian?i:3-i)*8&0xff;}}Buffer.prototype.writeUInt32LE=function writeUInt32LE(value,offset,noAssert){value=+value;offset=offset|0;if(!noAssert)checkInt(this,value,offset,4,0xffffffff,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset+3]=value>>>24;this[offset+2]=value>>>16;this[offset+1]=value>>>8;this[offset]=value&0xff;}else{objectWriteUInt32(this,value,offset,true);}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);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value>>>24;this[offset+1]=value>>>16;this[offset+2]=value>>>8;this[offset+3]=value&0xff;}else{objectWriteUInt32(this,value,offset,false);}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>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(!Buffer.TYPED_ARRAY_SUPPORT)value=Math.floor(value);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);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value&0xff;this[offset+1]=value>>>8;}else{objectWriteUInt16(this,value,offset,true);}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);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value>>>8;this[offset+1]=value&0xff;}else{objectWriteUInt16(this,value,offset,false);}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);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value&0xff;this[offset+1]=value>>>8;this[offset+2]=value>>>16;this[offset+3]=value>>>24;}else{objectWriteUInt32(this,value,offset,true);}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;if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value>>>24;this[offset+1]=value>>>16;this[offset+2]=value>>>8;this[offset+3]=value&0xff;}else{objectWriteUInt32(this,value,offset,false);}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){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){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) -Buffer.prototype.copy=function copy(target,targetStart,start,end){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=this.length)throw new RangeError('sourceStart out of bounds');if(end<0)throw new RangeError('sourceEnd out of bounds');// Are we oob? -if(end>this.length)end=this.length;if(target.length-targetStart=0;--i){target[i+targetStart]=this[i+start];}}else if(len<1000||!Buffer.TYPED_ARRAY_SUPPORT){// ascending copy from start -for(i=0;i>>0;end=end===undefined?this.length:end>>>0;if(!val)val=0;var i;if(typeof val==='number'){for(i=start;i0xD7FF&&codePoint<0xE000){// last char was a lead -if(!leadSurrogate){// no lead yet -if(codePoint>0xDBFF){// unexpected trail -if((units-=3)>-1)bytes.push(0xEF,0xBF,0xBD);continue;}else if(i+1===length){// unpaired lead -if((units-=3)>-1)bytes.push(0xEF,0xBF,0xBD);continue;}// valid lead -leadSurrogate=codePoint;continue;}// 2 leads in a row -if(codePoint<0xDC00){if((units-=3)>-1)bytes.push(0xEF,0xBF,0xBD);leadSurrogate=codePoint;continue;}// valid surrogate pair -codePoint=(leadSurrogate-0xD800<<10|codePoint-0xDC00)+0x10000;}else if(leadSurrogate){// valid bmp char, but last char was a lead -if((units-=3)>-1)bytes.push(0xEF,0xBF,0xBD);}leadSurrogate=null;// encode utf8 -if(codePoint<0x80){if((units-=1)<0)break;bytes.push(codePoint);}else if(codePoint<0x800){if((units-=2)<0)break;bytes.push(codePoint>>0x6|0xC0,codePoint&0x3F|0x80);}else if(codePoint<0x10000){if((units-=3)<0)break;bytes.push(codePoint>>0xC|0xE0,codePoint>>0x6&0x3F|0x80,codePoint&0x3F|0x80);}else if(codePoint<0x110000){if((units-=4)<0)break;bytes.push(codePoint>>0x12|0xF0,codePoint>>0xC&0x3F|0x80,codePoint>>0x6&0x3F|0x80,codePoint&0x3F|0x80);}else{throw new Error('Invalid code point');}}return bytes;}function asciiToBytes(str){var byteArray=[];for(var i=0;i>8;lo=c%256;byteArray.push(lo);byteArray.push(hi);}return byteArray;}function base64ToBytes(str){return base64.toByteArray(base64clean(str));}function blitBuffer(src,dst,offset,length){for(var i=0;i=dst.length||i>=src.length)break;dst[i+offset]=src[i];}return i;}function isnan(val){return val!==val;// eslint-disable-line no-self-compare -} -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer, __webpack_require__(17))) - -/***/ }, +/* 4 */, /* 5 */ /***/ function(module, exports) { @@ -343,7 +187,7 @@ for(var key in from){if(hasOwnProperty.call(from,key)){to[key]=from[key];}}}retu * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule warning - */'use strict';var emptyFunction=__webpack_require__(41);/** + */'use strict';var emptyFunction=__webpack_require__(40);/** * Similar to invariant but only logs a warning if the condition is not met. * This can be used to log issues in development environments in critical * paths. Removing the logging code for production environments will keep the @@ -385,93 +229,8 @@ throw new Error(message);}catch(x){}}};}module.exports=warning; */var isArray=Array.isArray;module.exports=isArray; /***/ }, -/* 10 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(global, process) {'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. -var formatRegExp=/%[sdj%]/g;exports.format=function(f){if(!isString(f)){var objects=[];for(var i=0;i=len)return x;switch(x){case'%s':return String(args[i++]);case'%d':return Number(args[i++]);case'%j':try{return JSON.stringify(args[i++]);}catch(_){return'[Circular]';}default:return x;}});for(var x=args[i];i=3)ctx.depth=arguments[2];if(arguments.length>=4)ctx.colors=arguments[3];if(isBoolean(opts)){// legacy... -ctx.showHidden=opts;}else if(opts){// got an "options" object -exports._extend(ctx,opts);}// set default options -if(isUndefined(ctx.showHidden))ctx.showHidden=false;if(isUndefined(ctx.depth))ctx.depth=2;if(isUndefined(ctx.colors))ctx.colors=false;if(isUndefined(ctx.customInspect))ctx.customInspect=true;if(ctx.colors)ctx.stylize=stylizeWithColor;return formatValue(ctx,obj,ctx.depth);}exports.inspect=inspect;// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics -inspect.colors={'bold':[1,22],'italic':[3,23],'underline':[4,24],'inverse':[7,27],'white':[37,39],'grey':[90,39],'black':[30,39],'blue':[34,39],'cyan':[36,39],'green':[32,39],'magenta':[35,39],'red':[31,39],'yellow':[33,39]};// Don't use 'blue' not visible on cmd.exe -inspect.styles={'special':'cyan','number':'yellow','boolean':'yellow','undefined':'grey','null':'bold','string':'green','date':'magenta',// "name": intentionally not styling -'regexp':'red'};function stylizeWithColor(str,styleType){var style=inspect.styles[styleType];if(style){return'\x1B['+inspect.colors[style][0]+'m'+str+'\x1B['+inspect.colors[style][1]+'m';}else{return str;}}function stylizeNoColor(str,styleType){return str;}function arrayToHash(array){var hash={};array.forEach(function(val,idx){hash[val]=true;});return hash;}function formatValue(ctx,value,recurseTimes){// Provide a hook for user-specified inspect functions. -// Check that value is an object with an inspect function on it -if(ctx.customInspect&&value&&isFunction(value.inspect)&&// Filter out the util module, it's inspect function is special -value.inspect!==exports.inspect&&// Also filter out any prototype objects using the circular check. -!(value.constructor&&value.constructor.prototype===value)){var ret=value.inspect(recurseTimes,ctx);if(!isString(ret)){ret=formatValue(ctx,ret,recurseTimes);}return ret;}// Primitive types cannot have properties -var primitive=formatPrimitive(ctx,value);if(primitive){return primitive;}// Look up the keys of the object. -var keys=Object.keys(value);var visibleKeys=arrayToHash(keys);if(ctx.showHidden){keys=Object.getOwnPropertyNames(value);}// IE doesn't make error fields non-enumerable -// http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx -if(isError(value)&&(keys.indexOf('message')>=0||keys.indexOf('description')>=0)){return formatError(value);}// Some type of object without properties can be shortcutted. -if(keys.length===0){if(isFunction(value)){var name=value.name?': '+value.name:'';return ctx.stylize('[Function'+name+']','special');}if(isRegExp(value)){return ctx.stylize(RegExp.prototype.toString.call(value),'regexp');}if(isDate(value)){return ctx.stylize(Date.prototype.toString.call(value),'date');}if(isError(value)){return formatError(value);}}var base='',array=false,braces=['{','}'];// Make Array say that they are Array -if(isArray(value)){array=true;braces=['[',']'];}// Make functions say that they are functions -if(isFunction(value)){var n=value.name?': '+value.name:'';base=' [Function'+n+']';}// Make RegExps say that they are RegExps -if(isRegExp(value)){base=' '+RegExp.prototype.toString.call(value);}// Make dates with properties first say the date -if(isDate(value)){base=' '+Date.prototype.toUTCString.call(value);}// Make error with message first say the error -if(isError(value)){base=' '+formatError(value);}if(keys.length===0&&(!array||value.length==0)){return braces[0]+base+braces[1];}if(recurseTimes<0){if(isRegExp(value)){return ctx.stylize(RegExp.prototype.toString.call(value),'regexp');}else{return ctx.stylize('[Object]','special');}}ctx.seen.push(value);var output;if(array){output=formatArray(ctx,value,recurseTimes,visibleKeys,keys);}else{output=keys.map(function(key){return formatProperty(ctx,value,recurseTimes,visibleKeys,key,array);});}ctx.seen.pop();return reduceToSingleString(output,base,braces);}function formatPrimitive(ctx,value){if(isUndefined(value))return ctx.stylize('undefined','undefined');if(isString(value)){var simple='\''+JSON.stringify(value).replace(/^"|"$/g,'').replace(/'/g,"\\'").replace(/\\"/g,'"')+'\'';return ctx.stylize(simple,'string');}if(isNumber(value))return ctx.stylize(''+value,'number');if(isBoolean(value))return ctx.stylize(''+value,'boolean');// For some reason typeof null is "object", so special case here. -if(isNull(value))return ctx.stylize('null','null');}function formatError(value){return'['+Error.prototype.toString.call(value)+']';}function formatArray(ctx,value,recurseTimes,visibleKeys,keys){var output=[];for(var i=0,l=value.length;i-1){if(array){str=str.split('\n').map(function(line){return' '+line;}).join('\n').substr(2);}else{str='\n'+str.split('\n').map(function(line){return' '+line;}).join('\n');}}}else{str=ctx.stylize('[Circular]','special');}}if(isUndefined(name)){if(array&&key.match(/^\d+$/)){return str;}name=JSON.stringify(''+key);if(name.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)){name=name.substr(1,name.length-2);name=ctx.stylize(name,'name');}else{name=name.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'");name=ctx.stylize(name,'string');}}return name+': '+str;}function reduceToSingleString(output,base,braces){var numLinesEst=0;var length=output.reduce(function(prev,cur){numLinesEst++;if(cur.indexOf('\n')>=0)numLinesEst++;return prev+cur.replace(/\u001b\[\d\d?m/g,'').length+1;},0);if(length>60){return braces[0]+(base===''?'':base+'\n ')+' '+output.join(',\n ')+' '+braces[1];}return braces[0]+base+' '+output.join(', ')+' '+braces[1];}// NOTE: These type checking functions intentionally don't use `instanceof` -// because it is fragile and can be easily faked with `Object.create()`. -function isArray(ar){return Array.isArray(ar);}exports.isArray=isArray;function isBoolean(arg){return typeof arg==='boolean';}exports.isBoolean=isBoolean;function isNull(arg){return arg===null;}exports.isNull=isNull;function isNullOrUndefined(arg){return arg==null;}exports.isNullOrUndefined=isNullOrUndefined;function isNumber(arg){return typeof arg==='number';}exports.isNumber=isNumber;function isString(arg){return typeof arg==='string';}exports.isString=isString;function isSymbol(arg){return(typeof arg==='undefined'?'undefined':_typeof(arg))==='symbol';}exports.isSymbol=isSymbol;function isUndefined(arg){return arg===void 0;}exports.isUndefined=isUndefined;function isRegExp(re){return isObject(re)&&objectToString(re)==='[object RegExp]';}exports.isRegExp=isRegExp;function isObject(arg){return(typeof arg==='undefined'?'undefined':_typeof(arg))==='object'&&arg!==null;}exports.isObject=isObject;function isDate(d){return isObject(d)&&objectToString(d)==='[object Date]';}exports.isDate=isDate;function isError(e){return isObject(e)&&(objectToString(e)==='[object Error]'||e instanceof Error);}exports.isError=isError;function isFunction(arg){return typeof arg==='function';}exports.isFunction=isFunction;function isPrimitive(arg){return arg===null||typeof arg==='boolean'||typeof arg==='number'||typeof arg==='string'||(typeof arg==='undefined'?'undefined':_typeof(arg))==='symbol'||// ES6 symbol -typeof arg==='undefined';}exports.isPrimitive=isPrimitive;exports.isBuffer=__webpack_require__(1162);function objectToString(o){return Object.prototype.toString.call(o);}function pad(n){return n<10?'0'+n.toString(10):n.toString(10);}var months=['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];// 26 Feb 16:19:34 -function timestamp(){var d=new Date();var time=[pad(d.getHours()),pad(d.getMinutes()),pad(d.getSeconds())].join(':');return[d.getDate(),months[d.getMonth()],time].join(' ');}// log is just a thin wrapper to console.log that prepends a timestamp -exports.log=function(){console.log('%s - %s',timestamp(),exports.format.apply(exports,arguments));};/** - * Inherit the prototype methods from one constructor into another. - * - * The Function.prototype.inherits from lang.js rewritten as a standalone - * function (not on Function.prototype). NOTE: If this file is to be loaded - * during bootstrapping this function needs to be rewritten using some native - * functions as prototype setup using normal JavaScript does not work as - * expected during bootstrapping (see mirror.js in r114903). - * - * @param {function} ctor Constructor function which needs to inherit the - * prototype. - * @param {function} superCtor Constructor function to inherit prototype from. - */exports.inherits=__webpack_require__(1161);exports._extend=function(origin,add){// Don't do anything if add isn't an object -if(!add||!isObject(add))return origin;var keys=Object.keys(add);var i=keys.length;while(i--){origin[keys[i]]=add[keys[i]];}return origin;};function hasOwnProperty(obj,prop){return Object.prototype.hasOwnProperty.call(obj,prop);} -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(17), __webpack_require__(3))) - -/***/ }, -/* 11 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -'use strict';exports.randomBytes=exports.rng=exports.pseudoRandomBytes=exports.prng=__webpack_require__(116);exports.createHash=exports.Hash=__webpack_require__(84);exports.createHmac=exports.Hmac=__webpack_require__(200);var hashes=['sha1','sha224','sha256','sha384','sha512','md5','rmd160'].concat(Object.keys(__webpack_require__(314)));exports.getHashes=function(){return hashes;};var p=__webpack_require__(400);exports.pbkdf2=p.pbkdf2;exports.pbkdf2Sync=p.pbkdf2Sync;var aes=__webpack_require__(584);['Cipher','createCipher','Cipheriv','createCipheriv','Decipher','createDecipher','Decipheriv','createDecipheriv','getCiphers','listCiphers'].forEach(function(key){exports[key]=aes[key];});var dh=__webpack_require__(620);['DiffieHellmanGroup','createDiffieHellmanGroup','getDiffieHellman','createDiffieHellman','DiffieHellman'].forEach(function(key){exports[key]=dh[key];});var sign=__webpack_require__(587);['createSign','Sign','createVerify','Verify'].forEach(function(key){exports[key]=sign[key];});exports.createECDH=__webpack_require__(596);var publicEncrypt=__webpack_require__(906);['publicEncrypt','privateEncrypt','publicDecrypt','privateDecrypt'].forEach(function(key){exports[key]=publicEncrypt[key];})// the least I can do is make error messages for the rest of the node.js/crypto api. -;['createCredentials'].forEach(function(name){exports[name]=function(){throw new Error(['sorry, '+name+' is not implemented yet','we accept pull requests','https://github.com/crypto-browserify/crypto-browserify'].join('\n'));};}); - -/***/ }, +/* 10 */, +/* 11 */, /* 12 */ /***/ function(module, exports) { @@ -483,230 +242,8 @@ if(!add||!isObject(add))return origin;var keys=Object.keys(add);var i=keys.lengt */module.exports={}; /***/ }, -/* 13 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(Buffer, process) {'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};// Copyright (c) 2012, Mark Cavage. All rights reserved. -// Copyright 2015 Joyent, Inc. -var assert=__webpack_require__(43);var Stream=__webpack_require__(16).Stream;var util=__webpack_require__(10);///--- Globals -/* JSSTYLED */var UUID_REGEXP=/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/;///--- Internal -function _capitalize(str){return str.charAt(0).toUpperCase()+str.slice(1);}function _toss(name,expected,oper,arg,actual){throw new assert.AssertionError({message:util.format('%s (%s) is required',name,expected),actual:actual===undefined?typeof arg==='undefined'?'undefined':_typeof(arg):actual(arg),expected:expected,operator:oper||'===',stackStartFunction:_toss.caller});}function _getClass(arg){return Object.prototype.toString.call(arg).slice(8,-1);}function noop(){}// Why even bother with asserts? -///--- Exports -var types={bool:{check:function check(arg){return typeof arg==='boolean';}},func:{check:function check(arg){return typeof arg==='function';}},string:{check:function check(arg){return typeof arg==='string';}},object:{check:function check(arg){return(typeof arg==='undefined'?'undefined':_typeof(arg))==='object'&&arg!==null;}},number:{check:function check(arg){return typeof arg==='number'&&!isNaN(arg);}},finite:{check:function check(arg){return typeof arg==='number'&&!isNaN(arg)&&isFinite(arg);}},buffer:{check:function check(arg){return Buffer.isBuffer(arg);},operator:'Buffer.isBuffer'},array:{check:function check(arg){return Array.isArray(arg);},operator:'Array.isArray'},stream:{check:function check(arg){return arg instanceof Stream;},operator:'instanceof',actual:_getClass},date:{check:function check(arg){return arg instanceof Date;},operator:'instanceof',actual:_getClass},regexp:{check:function check(arg){return arg instanceof RegExp;},operator:'instanceof',actual:_getClass},uuid:{check:function check(arg){return typeof arg==='string'&&UUID_REGEXP.test(arg);},operator:'isUUID'}};function _setExports(ndebug){var keys=Object.keys(types);var out;/* re-export standard assert */if(process.env.NODE_NDEBUG){out=noop;}else{out=function out(arg,msg){if(!arg){_toss(msg,'true',arg);}};}/* standard checks */keys.forEach(function(k){if(ndebug){out[k]=noop;return;}var type=types[k];out[k]=function(arg,msg){if(!type.check(arg)){_toss(msg,k,type.operator,arg,type.actual);}};});/* optional checks */keys.forEach(function(k){var name='optional'+_capitalize(k);if(ndebug){out[name]=noop;return;}var type=types[k];out[name]=function(arg,msg){if(arg===undefined||arg===null){return;}if(!type.check(arg)){_toss(msg,k,type.operator,arg,type.actual);}};});/* arrayOf checks */keys.forEach(function(k){var name='arrayOf'+_capitalize(k);if(ndebug){out[name]=noop;return;}var type=types[k];var expected='['+k+']';out[name]=function(arg,msg){if(!Array.isArray(arg)){_toss(msg,expected,type.operator,arg,type.actual);}var i;for(i=0;i0)return left;return right;};BN.min=function min(left,right){if(left.cmp(right)<0)return left;return right;};BN.prototype._init=function init(number,base,endian){if(typeof number==='number'){return this._initNumber(number,base,endian);}if((typeof number==='undefined'?'undefined':_typeof(number))==='object'){return this._initArray(number,base,endian);}if(base==='hex'){base=16;}assert(base===(base|0)&&base>=2&&base<=36);number=number.toString().replace(/\s+/g,'');var start=0;if(number[0]==='-'){start++;}if(base===16){this._parseHex(number,start);}else{this._parseBase(number,base,start);}if(number[0]==='-'){this.negative=1;}this.strip();if(endian!=='le')return;this._initArray(this.toArray(),base,endian);};BN.prototype._initNumber=function _initNumber(number,base,endian){if(number<0){this.negative=1;number=-number;}if(number<0x4000000){this.words=[number&0x3ffffff];this.length=1;}else if(number<0x10000000000000){this.words=[number&0x3ffffff,number/0x4000000&0x3ffffff];this.length=2;}else{assert(number<0x20000000000000);// 2 ^ 53 (unsafe) -this.words=[number&0x3ffffff,number/0x4000000&0x3ffffff,1];this.length=3;}if(endian!=='le')return;// Reverse the bytes -this._initArray(this.toArray(),base,endian);};BN.prototype._initArray=function _initArray(number,base,endian){// Perhaps a Uint8Array -assert(typeof number.length==='number');if(number.length<=0){this.words=[0];this.length=1;return this;}this.length=Math.ceil(number.length/3);this.words=new Array(this.length);for(var i=0;i=0;i-=3){w=number[i]|number[i-1]<<8|number[i-2]<<16;this.words[j]|=w<>>26-off&0x3ffffff;off+=24;if(off>=26){off-=26;j++;}}}else if(endian==='le'){for(i=0,j=0;i>>26-off&0x3ffffff;off+=24;if(off>=26){off-=26;j++;}}}return this.strip();};function parseHex(str,start,end){var r=0;var len=Math.min(str.length,end);for(var i=start;i=49&&c<=54){r|=c-49+0xa;// 'A' - 'F' -}else if(c>=17&&c<=22){r|=c-17+0xa;// '0' - '9' -}else{r|=c&0xf;}}return r;}BN.prototype._parseHex=function _parseHex(number,start){// Create possibly bigger array to ensure that it fits the number -this.length=Math.ceil((number.length-start)/6);this.words=new Array(this.length);for(var i=0;i=start;i-=6){w=parseHex(number,i,i+6);this.words[j]|=w<>>26-off&0x3fffff;off+=24;if(off>=26){off-=26;j++;}}if(i+6!==start){w=parseHex(number,start,i+6);this.words[j]|=w<>>26-off&0x3fffff;}this.strip();};function parseBase(str,start,end,mul){var r=0;var len=Math.min(str.length,end);for(var i=start;i=49){r+=c-49+0xa;// 'A' -}else if(c>=17){r+=c-17+0xa;// '0' - '9' -}else{r+=c;}}return r;}BN.prototype._parseBase=function _parseBase(number,base,start){// Initialize as zero -this.words=[0];this.length=1;// Find length of limb in base -for(var limbLen=0,limbPow=1;limbPow<=0x3ffffff;limbPow*=base){limbLen++;}limbLen--;limbPow=limbPow/base|0;var total=number.length-start;var mod=total%limbLen;var end=Math.min(total,total-mod)+start;var word=0;for(var i=start;i1&&this.words[this.length-1]===0){this.length--;}return this._normSign();};BN.prototype._normSign=function _normSign(){// -0 = 0 -if(this.length===1&&this.words[0]===0){this.negative=0;}return this;};BN.prototype.inspect=function inspect(){return(this.red?'';};/* - - var zeros = []; - var groupSizes = []; - var groupBases = []; - - var s = ''; - var i = -1; - while (++i < BN.wordSize) { - zeros[i] = s; - s += '0'; - } - groupSizes[0] = 0; - groupSizes[1] = 0; - groupBases[0] = 0; - groupBases[1] = 0; - var base = 2 - 1; - while (++base < 36 + 1) { - var groupSize = 0; - var groupBase = 1; - while (groupBase < (1 << BN.wordSize) / base) { - groupBase *= base; - groupSize += 1; - } - groupSizes[base] = groupSize; - groupBases[base] = groupBase; - } - - */var zeros=['','0','00','000','0000','00000','000000','0000000','00000000','000000000','0000000000','00000000000','000000000000','0000000000000','00000000000000','000000000000000','0000000000000000','00000000000000000','000000000000000000','0000000000000000000','00000000000000000000','000000000000000000000','0000000000000000000000','00000000000000000000000','000000000000000000000000','0000000000000000000000000'];var groupSizes=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5];var groupBases=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,10000000,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];BN.prototype.toString=function toString(base,padding){base=base||10;padding=padding|0||1;var out;if(base===16||base==='hex'){out='';var off=0;var carry=0;for(var i=0;i>>24-off&0xffffff;if(carry!==0||i!==this.length-1){out=zeros[6-word.length]+word+out;}else{out=word+out;}off+=2;if(off>=26){off-=26;i--;}}if(carry!==0){out=carry.toString(16)+out;}while(out.length%padding!==0){out='0'+out;}if(this.negative!==0){out='-'+out;}return out;}if(base===(base|0)&&base>=2&&base<=36){// var groupSize = Math.floor(BN.wordSize * Math.LN2 / Math.log(base)); -var groupSize=groupSizes[base];// var groupBase = Math.pow(base, groupSize); -var groupBase=groupBases[base];out='';var c=this.clone();c.negative=0;while(!c.isZero()){var r=c.modn(groupBase).toString(base);c=c.idivn(groupBase);if(!c.isZero()){out=zeros[groupSize-r.length]+r+out;}else{out=r+out;}}if(this.isZero()){out='0'+out;}while(out.length%padding!==0){out='0'+out;}if(this.negative!==0){out='-'+out;}return out;}assert(false,'Base should be between 2 and 36');};BN.prototype.toNumber=function toNumber(){var ret=this.words[0];if(this.length===2){ret+=this.words[1]*0x4000000;}else if(this.length===3&&this.words[2]===0x01){// NOTE: at this stage it is known that the top bit is set -ret+=0x10000000000000+this.words[1]*0x4000000;}else if(this.length>2){assert(false,'Number can only safely store up to 53 bits');}return this.negative!==0?-ret:ret;};BN.prototype.toJSON=function toJSON(){return this.toString(16);};BN.prototype.toBuffer=function toBuffer(endian,length){assert(typeof Buffer!=='undefined');return this.toArrayLike(Buffer,endian,length);};BN.prototype.toArray=function toArray(endian,length){return this.toArrayLike(Array,endian,length);};BN.prototype.toArrayLike=function toArrayLike(ArrayType,endian,length){var byteLength=this.byteLength();var reqLength=length||Math.max(1,byteLength);assert(byteLength<=reqLength,'byte array longer than desired length');assert(reqLength>0,'Requested array length <= 0');this.strip();var littleEndian=endian==='le';var res=new ArrayType(reqLength);var b,i;var q=this.clone();if(!littleEndian){// Assume big-endian -for(i=0;i=0x1000){r+=13;t>>>=13;}if(t>=0x40){r+=7;t>>>=7;}if(t>=0x8){r+=4;t>>>=4;}if(t>=0x02){r+=2;t>>>=2;}return r+t;};}BN.prototype._zeroBits=function _zeroBits(w){// Short-cut -if(w===0)return 26;var t=w;var r=0;if((t&0x1fff)===0){r+=13;t>>>=13;}if((t&0x7f)===0){r+=7;t>>>=7;}if((t&0xf)===0){r+=4;t>>>=4;}if((t&0x3)===0){r+=2;t>>>=2;}if((t&0x1)===0){r++;}return r;};// Return number of used bits in a BN -BN.prototype.bitLength=function bitLength(){var w=this.words[this.length-1];var hi=this._countBits(w);return(this.length-1)*26+hi;};function toBitArray(num){var w=new Array(num.bitLength());for(var bit=0;bit>>wbit;}return w;}// Number of trailing zero bits -BN.prototype.zeroBits=function zeroBits(){if(this.isZero())return 0;var r=0;for(var i=0;inum.length)return this.clone().ior(num);return num.clone().ior(this);};BN.prototype.uor=function uor(num){if(this.length>num.length)return this.clone().iuor(num);return num.clone().iuor(this);};// And `num` with `this` in-place -BN.prototype.iuand=function iuand(num){// b = min-length(num, this) -var b;if(this.length>num.length){b=num;}else{b=this;}for(var i=0;inum.length)return this.clone().iand(num);return num.clone().iand(this);};BN.prototype.uand=function uand(num){if(this.length>num.length)return this.clone().iuand(num);return num.clone().iuand(this);};// Xor `num` with `this` in-place -BN.prototype.iuxor=function iuxor(num){// a.length > b.length -var a;var b;if(this.length>num.length){a=this;b=num;}else{a=num;b=this;}for(var i=0;inum.length)return this.clone().ixor(num);return num.clone().ixor(this);};BN.prototype.uxor=function uxor(num){if(this.length>num.length)return this.clone().iuxor(num);return num.clone().iuxor(this);};// Not ``this`` with ``width`` bitwidth -BN.prototype.inotn=function inotn(width){assert(typeof width==='number'&&width>=0);var bytesNeeded=Math.ceil(width/26)|0;var bitsLeft=width%26;// Extend the buffer with leading zeroes -this._expand(bytesNeeded);if(bitsLeft>0){bytesNeeded--;}// Handle complete words -for(var i=0;i0){this.words[i]=~this.words[i]&0x3ffffff>>26-bitsLeft;}// And remove leading zeroes -return this.strip();};BN.prototype.notn=function notn(width){return this.clone().inotn(width);};// Set `bit` of `this` -BN.prototype.setn=function setn(bit,val){assert(typeof bit==='number'&&bit>=0);var off=bit/26|0;var wbit=bit%26;this._expand(off+1);if(val){this.words[off]=this.words[off]|1< b.length -var a,b;if(this.length>num.length){a=this;b=num;}else{a=num;b=this;}var carry=0;for(var i=0;i>>26;}for(;carry!==0&&i>>26;}this.length=a.length;if(carry!==0){this.words[this.length]=carry;this.length++;// Copy the rest of the words -}else if(a!==this){for(;inum.length)return this.clone().iadd(num);return num.clone().iadd(this);};// Subtract `num` from `this` in-place -BN.prototype.isub=function isub(num){// this - (-num) = this + num -if(num.negative!==0){num.negative=0;var r=this.iadd(num);num.negative=1;return r._normSign();// -this - num = -(this + num) -}else if(this.negative!==0){this.negative=0;this.iadd(num);this.negative=1;return this._normSign();}// At this point both numbers are positive -var cmp=this.cmp(num);// Optimization - zeroify -if(cmp===0){this.negative=0;this.length=1;this.words[0]=0;return this;}// a > b -var a,b;if(cmp>0){a=this;b=num;}else{a=num;b=this;}var carry=0;for(var i=0;i>26;this.words[i]=r&0x3ffffff;}for(;carry!==0&&i>26;this.words[i]=r&0x3ffffff;}// Copy rest of the words -if(carry===0&&i= 0x3ffffff -var ncarry=carry>>>26;var rword=carry&0x3ffffff;var maxJ=Math.min(k,num.length-1);for(var j=Math.max(0,k-self.length+1);j<=maxJ;j++){var i=k-j|0;a=self.words[i]|0;b=num.words[j]|0;r=a*b+rword;ncarry+=r/0x4000000|0;rword=r&0x3ffffff;}out.words[k]=rword|0;carry=ncarry|0;}if(carry!==0){out.words[k]=carry|0;}else{out.length--;}return out.strip();}// TODO(indutny): it may be reasonable to omit it for users who don't need -// to work with 256-bit numbers, otherwise it gives 20% improvement for 256-bit -// multiplication (like elliptic secp256k1). -var comb10MulTo=function comb10MulTo(self,num,out){var a=self.words;var b=num.words;var o=out.words;var c=0;var lo;var mid;var hi;var a0=a[0]|0;var al0=a0&0x1fff;var ah0=a0>>>13;var a1=a[1]|0;var al1=a1&0x1fff;var ah1=a1>>>13;var a2=a[2]|0;var al2=a2&0x1fff;var ah2=a2>>>13;var a3=a[3]|0;var al3=a3&0x1fff;var ah3=a3>>>13;var a4=a[4]|0;var al4=a4&0x1fff;var ah4=a4>>>13;var a5=a[5]|0;var al5=a5&0x1fff;var ah5=a5>>>13;var a6=a[6]|0;var al6=a6&0x1fff;var ah6=a6>>>13;var a7=a[7]|0;var al7=a7&0x1fff;var ah7=a7>>>13;var a8=a[8]|0;var al8=a8&0x1fff;var ah8=a8>>>13;var a9=a[9]|0;var al9=a9&0x1fff;var ah9=a9>>>13;var b0=b[0]|0;var bl0=b0&0x1fff;var bh0=b0>>>13;var b1=b[1]|0;var bl1=b1&0x1fff;var bh1=b1>>>13;var b2=b[2]|0;var bl2=b2&0x1fff;var bh2=b2>>>13;var b3=b[3]|0;var bl3=b3&0x1fff;var bh3=b3>>>13;var b4=b[4]|0;var bl4=b4&0x1fff;var bh4=b4>>>13;var b5=b[5]|0;var bl5=b5&0x1fff;var bh5=b5>>>13;var b6=b[6]|0;var bl6=b6&0x1fff;var bh6=b6>>>13;var b7=b[7]|0;var bl7=b7&0x1fff;var bh7=b7>>>13;var b8=b[8]|0;var bl8=b8&0x1fff;var bh8=b8>>>13;var b9=b[9]|0;var bl9=b9&0x1fff;var bh9=b9>>>13;out.negative=self.negative^num.negative;out.length=19;/* k = 0 */lo=Math.imul(al0,bl0);mid=Math.imul(al0,bh0);mid=mid+Math.imul(ah0,bl0)|0;hi=Math.imul(ah0,bh0);var w0=(c+lo|0)+((mid&0x1fff)<<13)|0;c=(hi+(mid>>>13)|0)+(w0>>>26)|0;w0&=0x3ffffff;/* k = 1 */lo=Math.imul(al1,bl0);mid=Math.imul(al1,bh0);mid=mid+Math.imul(ah1,bl0)|0;hi=Math.imul(ah1,bh0);lo=lo+Math.imul(al0,bl1)|0;mid=mid+Math.imul(al0,bh1)|0;mid=mid+Math.imul(ah0,bl1)|0;hi=hi+Math.imul(ah0,bh1)|0;var w1=(c+lo|0)+((mid&0x1fff)<<13)|0;c=(hi+(mid>>>13)|0)+(w1>>>26)|0;w1&=0x3ffffff;/* k = 2 */lo=Math.imul(al2,bl0);mid=Math.imul(al2,bh0);mid=mid+Math.imul(ah2,bl0)|0;hi=Math.imul(ah2,bh0);lo=lo+Math.imul(al1,bl1)|0;mid=mid+Math.imul(al1,bh1)|0;mid=mid+Math.imul(ah1,bl1)|0;hi=hi+Math.imul(ah1,bh1)|0;lo=lo+Math.imul(al0,bl2)|0;mid=mid+Math.imul(al0,bh2)|0;mid=mid+Math.imul(ah0,bl2)|0;hi=hi+Math.imul(ah0,bh2)|0;var w2=(c+lo|0)+((mid&0x1fff)<<13)|0;c=(hi+(mid>>>13)|0)+(w2>>>26)|0;w2&=0x3ffffff;/* k = 3 */lo=Math.imul(al3,bl0);mid=Math.imul(al3,bh0);mid=mid+Math.imul(ah3,bl0)|0;hi=Math.imul(ah3,bh0);lo=lo+Math.imul(al2,bl1)|0;mid=mid+Math.imul(al2,bh1)|0;mid=mid+Math.imul(ah2,bl1)|0;hi=hi+Math.imul(ah2,bh1)|0;lo=lo+Math.imul(al1,bl2)|0;mid=mid+Math.imul(al1,bh2)|0;mid=mid+Math.imul(ah1,bl2)|0;hi=hi+Math.imul(ah1,bh2)|0;lo=lo+Math.imul(al0,bl3)|0;mid=mid+Math.imul(al0,bh3)|0;mid=mid+Math.imul(ah0,bl3)|0;hi=hi+Math.imul(ah0,bh3)|0;var w3=(c+lo|0)+((mid&0x1fff)<<13)|0;c=(hi+(mid>>>13)|0)+(w3>>>26)|0;w3&=0x3ffffff;/* k = 4 */lo=Math.imul(al4,bl0);mid=Math.imul(al4,bh0);mid=mid+Math.imul(ah4,bl0)|0;hi=Math.imul(ah4,bh0);lo=lo+Math.imul(al3,bl1)|0;mid=mid+Math.imul(al3,bh1)|0;mid=mid+Math.imul(ah3,bl1)|0;hi=hi+Math.imul(ah3,bh1)|0;lo=lo+Math.imul(al2,bl2)|0;mid=mid+Math.imul(al2,bh2)|0;mid=mid+Math.imul(ah2,bl2)|0;hi=hi+Math.imul(ah2,bh2)|0;lo=lo+Math.imul(al1,bl3)|0;mid=mid+Math.imul(al1,bh3)|0;mid=mid+Math.imul(ah1,bl3)|0;hi=hi+Math.imul(ah1,bh3)|0;lo=lo+Math.imul(al0,bl4)|0;mid=mid+Math.imul(al0,bh4)|0;mid=mid+Math.imul(ah0,bl4)|0;hi=hi+Math.imul(ah0,bh4)|0;var w4=(c+lo|0)+((mid&0x1fff)<<13)|0;c=(hi+(mid>>>13)|0)+(w4>>>26)|0;w4&=0x3ffffff;/* k = 5 */lo=Math.imul(al5,bl0);mid=Math.imul(al5,bh0);mid=mid+Math.imul(ah5,bl0)|0;hi=Math.imul(ah5,bh0);lo=lo+Math.imul(al4,bl1)|0;mid=mid+Math.imul(al4,bh1)|0;mid=mid+Math.imul(ah4,bl1)|0;hi=hi+Math.imul(ah4,bh1)|0;lo=lo+Math.imul(al3,bl2)|0;mid=mid+Math.imul(al3,bh2)|0;mid=mid+Math.imul(ah3,bl2)|0;hi=hi+Math.imul(ah3,bh2)|0;lo=lo+Math.imul(al2,bl3)|0;mid=mid+Math.imul(al2,bh3)|0;mid=mid+Math.imul(ah2,bl3)|0;hi=hi+Math.imul(ah2,bh3)|0;lo=lo+Math.imul(al1,bl4)|0;mid=mid+Math.imul(al1,bh4)|0;mid=mid+Math.imul(ah1,bl4)|0;hi=hi+Math.imul(ah1,bh4)|0;lo=lo+Math.imul(al0,bl5)|0;mid=mid+Math.imul(al0,bh5)|0;mid=mid+Math.imul(ah0,bl5)|0;hi=hi+Math.imul(ah0,bh5)|0;var w5=(c+lo|0)+((mid&0x1fff)<<13)|0;c=(hi+(mid>>>13)|0)+(w5>>>26)|0;w5&=0x3ffffff;/* k = 6 */lo=Math.imul(al6,bl0);mid=Math.imul(al6,bh0);mid=mid+Math.imul(ah6,bl0)|0;hi=Math.imul(ah6,bh0);lo=lo+Math.imul(al5,bl1)|0;mid=mid+Math.imul(al5,bh1)|0;mid=mid+Math.imul(ah5,bl1)|0;hi=hi+Math.imul(ah5,bh1)|0;lo=lo+Math.imul(al4,bl2)|0;mid=mid+Math.imul(al4,bh2)|0;mid=mid+Math.imul(ah4,bl2)|0;hi=hi+Math.imul(ah4,bh2)|0;lo=lo+Math.imul(al3,bl3)|0;mid=mid+Math.imul(al3,bh3)|0;mid=mid+Math.imul(ah3,bl3)|0;hi=hi+Math.imul(ah3,bh3)|0;lo=lo+Math.imul(al2,bl4)|0;mid=mid+Math.imul(al2,bh4)|0;mid=mid+Math.imul(ah2,bl4)|0;hi=hi+Math.imul(ah2,bh4)|0;lo=lo+Math.imul(al1,bl5)|0;mid=mid+Math.imul(al1,bh5)|0;mid=mid+Math.imul(ah1,bl5)|0;hi=hi+Math.imul(ah1,bh5)|0;lo=lo+Math.imul(al0,bl6)|0;mid=mid+Math.imul(al0,bh6)|0;mid=mid+Math.imul(ah0,bl6)|0;hi=hi+Math.imul(ah0,bh6)|0;var w6=(c+lo|0)+((mid&0x1fff)<<13)|0;c=(hi+(mid>>>13)|0)+(w6>>>26)|0;w6&=0x3ffffff;/* k = 7 */lo=Math.imul(al7,bl0);mid=Math.imul(al7,bh0);mid=mid+Math.imul(ah7,bl0)|0;hi=Math.imul(ah7,bh0);lo=lo+Math.imul(al6,bl1)|0;mid=mid+Math.imul(al6,bh1)|0;mid=mid+Math.imul(ah6,bl1)|0;hi=hi+Math.imul(ah6,bh1)|0;lo=lo+Math.imul(al5,bl2)|0;mid=mid+Math.imul(al5,bh2)|0;mid=mid+Math.imul(ah5,bl2)|0;hi=hi+Math.imul(ah5,bh2)|0;lo=lo+Math.imul(al4,bl3)|0;mid=mid+Math.imul(al4,bh3)|0;mid=mid+Math.imul(ah4,bl3)|0;hi=hi+Math.imul(ah4,bh3)|0;lo=lo+Math.imul(al3,bl4)|0;mid=mid+Math.imul(al3,bh4)|0;mid=mid+Math.imul(ah3,bl4)|0;hi=hi+Math.imul(ah3,bh4)|0;lo=lo+Math.imul(al2,bl5)|0;mid=mid+Math.imul(al2,bh5)|0;mid=mid+Math.imul(ah2,bl5)|0;hi=hi+Math.imul(ah2,bh5)|0;lo=lo+Math.imul(al1,bl6)|0;mid=mid+Math.imul(al1,bh6)|0;mid=mid+Math.imul(ah1,bl6)|0;hi=hi+Math.imul(ah1,bh6)|0;lo=lo+Math.imul(al0,bl7)|0;mid=mid+Math.imul(al0,bh7)|0;mid=mid+Math.imul(ah0,bl7)|0;hi=hi+Math.imul(ah0,bh7)|0;var w7=(c+lo|0)+((mid&0x1fff)<<13)|0;c=(hi+(mid>>>13)|0)+(w7>>>26)|0;w7&=0x3ffffff;/* k = 8 */lo=Math.imul(al8,bl0);mid=Math.imul(al8,bh0);mid=mid+Math.imul(ah8,bl0)|0;hi=Math.imul(ah8,bh0);lo=lo+Math.imul(al7,bl1)|0;mid=mid+Math.imul(al7,bh1)|0;mid=mid+Math.imul(ah7,bl1)|0;hi=hi+Math.imul(ah7,bh1)|0;lo=lo+Math.imul(al6,bl2)|0;mid=mid+Math.imul(al6,bh2)|0;mid=mid+Math.imul(ah6,bl2)|0;hi=hi+Math.imul(ah6,bh2)|0;lo=lo+Math.imul(al5,bl3)|0;mid=mid+Math.imul(al5,bh3)|0;mid=mid+Math.imul(ah5,bl3)|0;hi=hi+Math.imul(ah5,bh3)|0;lo=lo+Math.imul(al4,bl4)|0;mid=mid+Math.imul(al4,bh4)|0;mid=mid+Math.imul(ah4,bl4)|0;hi=hi+Math.imul(ah4,bh4)|0;lo=lo+Math.imul(al3,bl5)|0;mid=mid+Math.imul(al3,bh5)|0;mid=mid+Math.imul(ah3,bl5)|0;hi=hi+Math.imul(ah3,bh5)|0;lo=lo+Math.imul(al2,bl6)|0;mid=mid+Math.imul(al2,bh6)|0;mid=mid+Math.imul(ah2,bl6)|0;hi=hi+Math.imul(ah2,bh6)|0;lo=lo+Math.imul(al1,bl7)|0;mid=mid+Math.imul(al1,bh7)|0;mid=mid+Math.imul(ah1,bl7)|0;hi=hi+Math.imul(ah1,bh7)|0;lo=lo+Math.imul(al0,bl8)|0;mid=mid+Math.imul(al0,bh8)|0;mid=mid+Math.imul(ah0,bl8)|0;hi=hi+Math.imul(ah0,bh8)|0;var w8=(c+lo|0)+((mid&0x1fff)<<13)|0;c=(hi+(mid>>>13)|0)+(w8>>>26)|0;w8&=0x3ffffff;/* k = 9 */lo=Math.imul(al9,bl0);mid=Math.imul(al9,bh0);mid=mid+Math.imul(ah9,bl0)|0;hi=Math.imul(ah9,bh0);lo=lo+Math.imul(al8,bl1)|0;mid=mid+Math.imul(al8,bh1)|0;mid=mid+Math.imul(ah8,bl1)|0;hi=hi+Math.imul(ah8,bh1)|0;lo=lo+Math.imul(al7,bl2)|0;mid=mid+Math.imul(al7,bh2)|0;mid=mid+Math.imul(ah7,bl2)|0;hi=hi+Math.imul(ah7,bh2)|0;lo=lo+Math.imul(al6,bl3)|0;mid=mid+Math.imul(al6,bh3)|0;mid=mid+Math.imul(ah6,bl3)|0;hi=hi+Math.imul(ah6,bh3)|0;lo=lo+Math.imul(al5,bl4)|0;mid=mid+Math.imul(al5,bh4)|0;mid=mid+Math.imul(ah5,bl4)|0;hi=hi+Math.imul(ah5,bh4)|0;lo=lo+Math.imul(al4,bl5)|0;mid=mid+Math.imul(al4,bh5)|0;mid=mid+Math.imul(ah4,bl5)|0;hi=hi+Math.imul(ah4,bh5)|0;lo=lo+Math.imul(al3,bl6)|0;mid=mid+Math.imul(al3,bh6)|0;mid=mid+Math.imul(ah3,bl6)|0;hi=hi+Math.imul(ah3,bh6)|0;lo=lo+Math.imul(al2,bl7)|0;mid=mid+Math.imul(al2,bh7)|0;mid=mid+Math.imul(ah2,bl7)|0;hi=hi+Math.imul(ah2,bh7)|0;lo=lo+Math.imul(al1,bl8)|0;mid=mid+Math.imul(al1,bh8)|0;mid=mid+Math.imul(ah1,bl8)|0;hi=hi+Math.imul(ah1,bh8)|0;lo=lo+Math.imul(al0,bl9)|0;mid=mid+Math.imul(al0,bh9)|0;mid=mid+Math.imul(ah0,bl9)|0;hi=hi+Math.imul(ah0,bh9)|0;var w9=(c+lo|0)+((mid&0x1fff)<<13)|0;c=(hi+(mid>>>13)|0)+(w9>>>26)|0;w9&=0x3ffffff;/* k = 10 */lo=Math.imul(al9,bl1);mid=Math.imul(al9,bh1);mid=mid+Math.imul(ah9,bl1)|0;hi=Math.imul(ah9,bh1);lo=lo+Math.imul(al8,bl2)|0;mid=mid+Math.imul(al8,bh2)|0;mid=mid+Math.imul(ah8,bl2)|0;hi=hi+Math.imul(ah8,bh2)|0;lo=lo+Math.imul(al7,bl3)|0;mid=mid+Math.imul(al7,bh3)|0;mid=mid+Math.imul(ah7,bl3)|0;hi=hi+Math.imul(ah7,bh3)|0;lo=lo+Math.imul(al6,bl4)|0;mid=mid+Math.imul(al6,bh4)|0;mid=mid+Math.imul(ah6,bl4)|0;hi=hi+Math.imul(ah6,bh4)|0;lo=lo+Math.imul(al5,bl5)|0;mid=mid+Math.imul(al5,bh5)|0;mid=mid+Math.imul(ah5,bl5)|0;hi=hi+Math.imul(ah5,bh5)|0;lo=lo+Math.imul(al4,bl6)|0;mid=mid+Math.imul(al4,bh6)|0;mid=mid+Math.imul(ah4,bl6)|0;hi=hi+Math.imul(ah4,bh6)|0;lo=lo+Math.imul(al3,bl7)|0;mid=mid+Math.imul(al3,bh7)|0;mid=mid+Math.imul(ah3,bl7)|0;hi=hi+Math.imul(ah3,bh7)|0;lo=lo+Math.imul(al2,bl8)|0;mid=mid+Math.imul(al2,bh8)|0;mid=mid+Math.imul(ah2,bl8)|0;hi=hi+Math.imul(ah2,bh8)|0;lo=lo+Math.imul(al1,bl9)|0;mid=mid+Math.imul(al1,bh9)|0;mid=mid+Math.imul(ah1,bl9)|0;hi=hi+Math.imul(ah1,bh9)|0;var w10=(c+lo|0)+((mid&0x1fff)<<13)|0;c=(hi+(mid>>>13)|0)+(w10>>>26)|0;w10&=0x3ffffff;/* k = 11 */lo=Math.imul(al9,bl2);mid=Math.imul(al9,bh2);mid=mid+Math.imul(ah9,bl2)|0;hi=Math.imul(ah9,bh2);lo=lo+Math.imul(al8,bl3)|0;mid=mid+Math.imul(al8,bh3)|0;mid=mid+Math.imul(ah8,bl3)|0;hi=hi+Math.imul(ah8,bh3)|0;lo=lo+Math.imul(al7,bl4)|0;mid=mid+Math.imul(al7,bh4)|0;mid=mid+Math.imul(ah7,bl4)|0;hi=hi+Math.imul(ah7,bh4)|0;lo=lo+Math.imul(al6,bl5)|0;mid=mid+Math.imul(al6,bh5)|0;mid=mid+Math.imul(ah6,bl5)|0;hi=hi+Math.imul(ah6,bh5)|0;lo=lo+Math.imul(al5,bl6)|0;mid=mid+Math.imul(al5,bh6)|0;mid=mid+Math.imul(ah5,bl6)|0;hi=hi+Math.imul(ah5,bh6)|0;lo=lo+Math.imul(al4,bl7)|0;mid=mid+Math.imul(al4,bh7)|0;mid=mid+Math.imul(ah4,bl7)|0;hi=hi+Math.imul(ah4,bh7)|0;lo=lo+Math.imul(al3,bl8)|0;mid=mid+Math.imul(al3,bh8)|0;mid=mid+Math.imul(ah3,bl8)|0;hi=hi+Math.imul(ah3,bh8)|0;lo=lo+Math.imul(al2,bl9)|0;mid=mid+Math.imul(al2,bh9)|0;mid=mid+Math.imul(ah2,bl9)|0;hi=hi+Math.imul(ah2,bh9)|0;var w11=(c+lo|0)+((mid&0x1fff)<<13)|0;c=(hi+(mid>>>13)|0)+(w11>>>26)|0;w11&=0x3ffffff;/* k = 12 */lo=Math.imul(al9,bl3);mid=Math.imul(al9,bh3);mid=mid+Math.imul(ah9,bl3)|0;hi=Math.imul(ah9,bh3);lo=lo+Math.imul(al8,bl4)|0;mid=mid+Math.imul(al8,bh4)|0;mid=mid+Math.imul(ah8,bl4)|0;hi=hi+Math.imul(ah8,bh4)|0;lo=lo+Math.imul(al7,bl5)|0;mid=mid+Math.imul(al7,bh5)|0;mid=mid+Math.imul(ah7,bl5)|0;hi=hi+Math.imul(ah7,bh5)|0;lo=lo+Math.imul(al6,bl6)|0;mid=mid+Math.imul(al6,bh6)|0;mid=mid+Math.imul(ah6,bl6)|0;hi=hi+Math.imul(ah6,bh6)|0;lo=lo+Math.imul(al5,bl7)|0;mid=mid+Math.imul(al5,bh7)|0;mid=mid+Math.imul(ah5,bl7)|0;hi=hi+Math.imul(ah5,bh7)|0;lo=lo+Math.imul(al4,bl8)|0;mid=mid+Math.imul(al4,bh8)|0;mid=mid+Math.imul(ah4,bl8)|0;hi=hi+Math.imul(ah4,bh8)|0;lo=lo+Math.imul(al3,bl9)|0;mid=mid+Math.imul(al3,bh9)|0;mid=mid+Math.imul(ah3,bl9)|0;hi=hi+Math.imul(ah3,bh9)|0;var w12=(c+lo|0)+((mid&0x1fff)<<13)|0;c=(hi+(mid>>>13)|0)+(w12>>>26)|0;w12&=0x3ffffff;/* k = 13 */lo=Math.imul(al9,bl4);mid=Math.imul(al9,bh4);mid=mid+Math.imul(ah9,bl4)|0;hi=Math.imul(ah9,bh4);lo=lo+Math.imul(al8,bl5)|0;mid=mid+Math.imul(al8,bh5)|0;mid=mid+Math.imul(ah8,bl5)|0;hi=hi+Math.imul(ah8,bh5)|0;lo=lo+Math.imul(al7,bl6)|0;mid=mid+Math.imul(al7,bh6)|0;mid=mid+Math.imul(ah7,bl6)|0;hi=hi+Math.imul(ah7,bh6)|0;lo=lo+Math.imul(al6,bl7)|0;mid=mid+Math.imul(al6,bh7)|0;mid=mid+Math.imul(ah6,bl7)|0;hi=hi+Math.imul(ah6,bh7)|0;lo=lo+Math.imul(al5,bl8)|0;mid=mid+Math.imul(al5,bh8)|0;mid=mid+Math.imul(ah5,bl8)|0;hi=hi+Math.imul(ah5,bh8)|0;lo=lo+Math.imul(al4,bl9)|0;mid=mid+Math.imul(al4,bh9)|0;mid=mid+Math.imul(ah4,bl9)|0;hi=hi+Math.imul(ah4,bh9)|0;var w13=(c+lo|0)+((mid&0x1fff)<<13)|0;c=(hi+(mid>>>13)|0)+(w13>>>26)|0;w13&=0x3ffffff;/* k = 14 */lo=Math.imul(al9,bl5);mid=Math.imul(al9,bh5);mid=mid+Math.imul(ah9,bl5)|0;hi=Math.imul(ah9,bh5);lo=lo+Math.imul(al8,bl6)|0;mid=mid+Math.imul(al8,bh6)|0;mid=mid+Math.imul(ah8,bl6)|0;hi=hi+Math.imul(ah8,bh6)|0;lo=lo+Math.imul(al7,bl7)|0;mid=mid+Math.imul(al7,bh7)|0;mid=mid+Math.imul(ah7,bl7)|0;hi=hi+Math.imul(ah7,bh7)|0;lo=lo+Math.imul(al6,bl8)|0;mid=mid+Math.imul(al6,bh8)|0;mid=mid+Math.imul(ah6,bl8)|0;hi=hi+Math.imul(ah6,bh8)|0;lo=lo+Math.imul(al5,bl9)|0;mid=mid+Math.imul(al5,bh9)|0;mid=mid+Math.imul(ah5,bl9)|0;hi=hi+Math.imul(ah5,bh9)|0;var w14=(c+lo|0)+((mid&0x1fff)<<13)|0;c=(hi+(mid>>>13)|0)+(w14>>>26)|0;w14&=0x3ffffff;/* k = 15 */lo=Math.imul(al9,bl6);mid=Math.imul(al9,bh6);mid=mid+Math.imul(ah9,bl6)|0;hi=Math.imul(ah9,bh6);lo=lo+Math.imul(al8,bl7)|0;mid=mid+Math.imul(al8,bh7)|0;mid=mid+Math.imul(ah8,bl7)|0;hi=hi+Math.imul(ah8,bh7)|0;lo=lo+Math.imul(al7,bl8)|0;mid=mid+Math.imul(al7,bh8)|0;mid=mid+Math.imul(ah7,bl8)|0;hi=hi+Math.imul(ah7,bh8)|0;lo=lo+Math.imul(al6,bl9)|0;mid=mid+Math.imul(al6,bh9)|0;mid=mid+Math.imul(ah6,bl9)|0;hi=hi+Math.imul(ah6,bh9)|0;var w15=(c+lo|0)+((mid&0x1fff)<<13)|0;c=(hi+(mid>>>13)|0)+(w15>>>26)|0;w15&=0x3ffffff;/* k = 16 */lo=Math.imul(al9,bl7);mid=Math.imul(al9,bh7);mid=mid+Math.imul(ah9,bl7)|0;hi=Math.imul(ah9,bh7);lo=lo+Math.imul(al8,bl8)|0;mid=mid+Math.imul(al8,bh8)|0;mid=mid+Math.imul(ah8,bl8)|0;hi=hi+Math.imul(ah8,bh8)|0;lo=lo+Math.imul(al7,bl9)|0;mid=mid+Math.imul(al7,bh9)|0;mid=mid+Math.imul(ah7,bl9)|0;hi=hi+Math.imul(ah7,bh9)|0;var w16=(c+lo|0)+((mid&0x1fff)<<13)|0;c=(hi+(mid>>>13)|0)+(w16>>>26)|0;w16&=0x3ffffff;/* k = 17 */lo=Math.imul(al9,bl8);mid=Math.imul(al9,bh8);mid=mid+Math.imul(ah9,bl8)|0;hi=Math.imul(ah9,bh8);lo=lo+Math.imul(al8,bl9)|0;mid=mid+Math.imul(al8,bh9)|0;mid=mid+Math.imul(ah8,bl9)|0;hi=hi+Math.imul(ah8,bh9)|0;var w17=(c+lo|0)+((mid&0x1fff)<<13)|0;c=(hi+(mid>>>13)|0)+(w17>>>26)|0;w17&=0x3ffffff;/* k = 18 */lo=Math.imul(al9,bl9);mid=Math.imul(al9,bh9);mid=mid+Math.imul(ah9,bl9)|0;hi=Math.imul(ah9,bh9);var w18=(c+lo|0)+((mid&0x1fff)<<13)|0;c=(hi+(mid>>>13)|0)+(w18>>>26)|0;w18&=0x3ffffff;o[0]=w0;o[1]=w1;o[2]=w2;o[3]=w3;o[4]=w4;o[5]=w5;o[6]=w6;o[7]=w7;o[8]=w8;o[9]=w9;o[10]=w10;o[11]=w11;o[12]=w12;o[13]=w13;o[14]=w14;o[15]=w15;o[16]=w16;o[17]=w17;o[18]=w18;if(c!==0){o[19]=c;out.length++;}return out;};// Polyfill comb -if(!Math.imul){comb10MulTo=smallMulTo;}function bigMulTo(self,num,out){out.negative=num.negative^self.negative;out.length=self.length+num.length;var carry=0;var hncarry=0;for(var k=0;k= 0x3ffffff -var ncarry=hncarry;hncarry=0;var rword=carry&0x3ffffff;var maxJ=Math.min(k,num.length-1);for(var j=Math.max(0,k-self.length+1);j<=maxJ;j++){var i=k-j;var a=self.words[i]|0;var b=num.words[j]|0;var r=a*b;var lo=r&0x3ffffff;ncarry=ncarry+(r/0x4000000|0)|0;lo=lo+rword|0;rword=lo&0x3ffffff;ncarry=ncarry+(lo>>>26)|0;hncarry+=ncarry>>>26;ncarry&=0x3ffffff;}out.words[k]=rword;carry=ncarry;ncarry=hncarry;}if(carry!==0){out.words[k]=carry;}else{out.length--;}return out.strip();}function jumboMulTo(self,num,out){var fftm=new FFTM();return fftm.mulp(self,num,out);}BN.prototype.mulTo=function mulTo(num,out){var res;var len=this.length+num.length;if(this.length===10&&num.length===10){res=comb10MulTo(this,num,out);}else if(len<63){res=smallMulTo(this,num,out);}else if(len<1024){res=bigMulTo(this,num,out);}else{res=jumboMulTo(this,num,out);}return res;};// Cooley-Tukey algorithm for FFT -// slightly revisited to rely on looping instead of recursion -function FFTM(x,y){this.x=x;this.y=y;}FFTM.prototype.makeRBT=function makeRBT(N){var t=new Array(N);var l=BN.prototype._countBits(N)-1;for(var i=0;i>=1;}return rb;};// Performs "tweedling" phase, therefore 'emulating' -// behaviour of the recursive algorithm -FFTM.prototype.permute=function permute(rbt,rws,iws,rtws,itws,N){for(var i=0;i>>1){i++;}return 1<>>13;rws[2*i+1]=carry&0x1fff;carry=carry>>>13;}// Pad with zeroes -for(i=2*len;i>=26;carry+=w/0x4000000|0;// NOTE: lo is 27bit maximum -carry+=lo>>>26;this.words[i]=lo&0x3ffffff;}if(carry!==0){this.words[i]=carry;this.length++;}return this;};BN.prototype.muln=function muln(num){return this.clone().imuln(num);};// `this` * `this` -BN.prototype.sqr=function sqr(){return this.mul(this);};// `this` * `this` in-place -BN.prototype.isqr=function isqr(){return this.imul(this.clone());};// Math.pow(`this`, `num`) -BN.prototype.pow=function pow(num){var w=toBitArray(num);if(w.length===0)return new BN(1);// Skip leading zeroes -var res=this;for(var i=0;i=0);var r=bits%26;var s=(bits-r)/26;var carryMask=0x3ffffff>>>26-r<<26-r;var i;if(r!==0){var carry=0;for(i=0;i>>26-r;}if(carry){this.words[i]=carry;this.length++;}}if(s!==0){for(i=this.length-1;i>=0;i--){this.words[i+s]=this.words[i];}for(i=0;i=0);var h;if(hint){h=(hint-hint%26)/26;}else{h=0;}var r=bits%26;var s=Math.min((bits-r)/26,this.length);var mask=0x3ffffff^0x3ffffff>>>r<s){this.length-=s;for(i=0;i=0&&(carry!==0||i>=h);i--){var word=this.words[i]|0;this.words[i]=carry<<26-r|word>>>r;carry=word&mask;}// Push carried bits as a mask -if(maskedWords&&carry!==0){maskedWords.words[maskedWords.length++]=carry;}if(this.length===0){this.words[0]=0;this.length=1;}return this.strip();};BN.prototype.ishrn=function ishrn(bits,hint,extended){// TODO(indutny): implement me -assert(this.negative===0);return this.iushrn(bits,hint,extended);};// Shift-left -BN.prototype.shln=function shln(bits){return this.clone().ishln(bits);};BN.prototype.ushln=function ushln(bits){return this.clone().iushln(bits);};// Shift-right -BN.prototype.shrn=function shrn(bits){return this.clone().ishrn(bits);};BN.prototype.ushrn=function ushrn(bits){return this.clone().iushrn(bits);};// Test if n bit is set -BN.prototype.testn=function testn(bit){assert(typeof bit==='number'&&bit>=0);var r=bit%26;var s=(bit-r)/26;var q=1<=0);var r=bits%26;var s=(bits-r)/26;assert(this.negative===0,'imaskn works only with positive numbers');if(this.length<=s){return this;}if(r!==0){s++;}this.length=Math.min(s,this.length);if(r!==0){var mask=0x3ffffff^0x3ffffff>>>r<=0x4000000;i++){this.words[i]-=0x4000000;if(i===this.length-1){this.words[i+1]=1;}else{this.words[i+1]++;}}this.length=Math.max(this.length,i+1);return this;};// Subtract plain number `num` from `this` -BN.prototype.isubn=function isubn(num){assert(typeof num==='number');assert(num<0x4000000);if(num<0)return this.iaddn(-num);if(this.negative!==0){this.negative=0;this.iaddn(num);this.negative=1;return this;}this.words[0]-=num;if(this.length===1&&this.words[0]<0){this.words[0]=-this.words[0];this.negative=1;}else{// Carry -for(var i=0;i>26)-(right/0x4000000|0);this.words[i+shift]=w&0x3ffffff;}for(;i>26;this.words[i+shift]=w&0x3ffffff;}if(carry===0)return this.strip();// Subtraction overflow -assert(carry===-1);carry=0;for(i=0;i>26;this.words[i]=w&0x3ffffff;}this.negative=1;return this.strip();};BN.prototype._wordDiv=function _wordDiv(num,mode){var shift=this.length-num.length;var a=this.clone();var b=num;// Normalize -var bhi=b.words[b.length-1]|0;var bhiBits=this._countBits(bhi);shift=26-bhiBits;if(shift!==0){b=b.ushln(shift);a.iushln(shift);bhi=b.words[b.length-1]|0;}// Initialize quotient -var m=a.length-b.length;var q;if(mode!=='mod'){q=new BN(null);q.length=m+1;q.words=new Array(q.length);for(var i=0;i=0;j--){var qj=(a.words[b.length+j]|0)*0x4000000+(a.words[b.length+j-1]|0);// NOTE: (qj / bhi) is (0x3ffffff * 0x4000000 + 0x3ffffff) / 0x2000000 max -// (0x7ffffff) -qj=Math.min(qj/bhi|0,0x3ffffff);a._ishlnsubmul(b,qj,j);while(a.negative!==0){qj--;a.negative=0;a._ishlnsubmul(b,1,j);if(!a.isZero()){a.negative^=1;}}if(q){q.words[j]=qj;}}if(q){q.strip();}a.strip();// Denormalize -if(mode!=='div'&&shift!==0){a.iushrn(shift);}return{div:q||null,mod:a};};// NOTE: 1) `mode` can be set to `mod` to request mod only, -// to `div` to request div only, or be absent to -// request both div & mod -// 2) `positive` is true if unsigned mod is requested -BN.prototype.divmod=function divmod(num,mode,positive){assert(!num.isZero());if(this.isZero()){return{div:new BN(0),mod:new BN(0)};}var div,mod,res;if(this.negative!==0&&num.negative===0){res=this.neg().divmod(num,mode);if(mode!=='mod'){div=res.div.neg();}if(mode!=='div'){mod=res.mod.neg();if(positive&&mod.negative!==0){mod.iadd(num);}}return{div:div,mod:mod};}if(this.negative===0&&num.negative!==0){res=this.divmod(num.neg(),mode);if(mode!=='mod'){div=res.div.neg();}return{div:div,mod:res.mod};}if((this.negative&num.negative)!==0){res=this.neg().divmod(num.neg(),mode);if(mode!=='div'){mod=res.mod.neg();if(positive&&mod.negative!==0){mod.isub(num);}}return{div:res.div,mod:mod};}// Both numbers are positive at this point -// Strip both numbers to approximate shift value -if(num.length>this.length||this.cmp(num)<0){return{div:new BN(0),mod:this};}// Very short reduction -if(num.length===1){if(mode==='div'){return{div:this.divn(num.words[0]),mod:null};}if(mode==='mod'){return{div:null,mod:new BN(this.modn(num.words[0]))};}return{div:this.divn(num.words[0]),mod:new BN(this.modn(num.words[0]))};}return this._wordDiv(num,mode);};// Find `this` / `num` -BN.prototype.div=function div(num){return this.divmod(num,'div',false).div;};// Find `this` % `num` -BN.prototype.mod=function mod(num){return this.divmod(num,'mod',false).mod;};BN.prototype.umod=function umod(num){return this.divmod(num,'mod',true).mod;};// Find Round(`this` / `num`) -BN.prototype.divRound=function divRound(num){var dm=this.divmod(num);// Fast case - exact division -if(dm.mod.isZero())return dm.div;var mod=dm.div.negative!==0?dm.mod.isub(num):dm.mod;var half=num.ushrn(1);var r2=num.andln(1);var cmp=mod.cmp(half);// Round down -if(cmp<0||r2===1&&cmp===0)return dm.div;// Round up -return dm.div.negative!==0?dm.div.isubn(1):dm.div.iaddn(1);};BN.prototype.modn=function modn(num){assert(num<=0x3ffffff);var p=(1<<26)%num;var acc=0;for(var i=this.length-1;i>=0;i--){acc=(p*acc+(this.words[i]|0))%num;}return acc;};// In-place division by number -BN.prototype.idivn=function idivn(num){assert(num<=0x3ffffff);var carry=0;for(var i=this.length-1;i>=0;i--){var w=(this.words[i]|0)+carry*0x4000000;this.words[i]=w/num|0;carry=w%num;}return this.strip();};BN.prototype.divn=function divn(num){return this.clone().idivn(num);};BN.prototype.egcd=function egcd(p){assert(p.negative===0);assert(!p.isZero());var x=this;var y=p.clone();if(x.negative!==0){x=x.umod(p);}else{x=x.clone();}// A * x + B * y = x -var A=new BN(1);var B=new BN(0);// C * x + D * y = y -var C=new BN(0);var D=new BN(1);var g=0;while(x.isEven()&&y.isEven()){x.iushrn(1);y.iushrn(1);++g;}var yp=y.clone();var xp=x.clone();while(!x.isZero()){for(var i=0,im=1;(x.words[0]&im)===0&&i<26;++i,im<<=1){}if(i>0){x.iushrn(i);while(i-->0){if(A.isOdd()||B.isOdd()){A.iadd(yp);B.isub(xp);}A.iushrn(1);B.iushrn(1);}}for(var j=0,jm=1;(y.words[0]&jm)===0&&j<26;++j,jm<<=1){}if(j>0){y.iushrn(j);while(j-->0){if(C.isOdd()||D.isOdd()){C.iadd(yp);D.isub(xp);}C.iushrn(1);D.iushrn(1);}}if(x.cmp(y)>=0){x.isub(y);A.isub(C);B.isub(D);}else{y.isub(x);C.isub(A);D.isub(B);}}return{a:C,b:D,gcd:y.iushln(g)};};// This is reduced incarnation of the binary EEA -// above, designated to invert members of the -// _prime_ fields F(p) at a maximal speed -BN.prototype._invmp=function _invmp(p){assert(p.negative===0);assert(!p.isZero());var a=this;var b=p.clone();if(a.negative!==0){a=a.umod(p);}else{a=a.clone();}var x1=new BN(1);var x2=new BN(0);var delta=b.clone();while(a.cmpn(1)>0&&b.cmpn(1)>0){for(var i=0,im=1;(a.words[0]&im)===0&&i<26;++i,im<<=1){}if(i>0){a.iushrn(i);while(i-->0){if(x1.isOdd()){x1.iadd(delta);}x1.iushrn(1);}}for(var j=0,jm=1;(b.words[0]&jm)===0&&j<26;++j,jm<<=1){}if(j>0){b.iushrn(j);while(j-->0){if(x2.isOdd()){x2.iadd(delta);}x2.iushrn(1);}}if(a.cmp(b)>=0){a.isub(b);x1.isub(x2);}else{b.isub(a);x2.isub(x1);}}var res;if(a.cmpn(1)===0){res=x1;}else{res=x2;}if(res.cmpn(0)<0){res.iadd(p);}return res;};BN.prototype.gcd=function gcd(num){if(this.isZero())return num.abs();if(num.isZero())return this.abs();var a=this.clone();var b=num.clone();a.negative=0;b.negative=0;// Remove common factor of two -for(var shift=0;a.isEven()&&b.isEven();shift++){a.iushrn(1);b.iushrn(1);}do{while(a.isEven()){a.iushrn(1);}while(b.isEven()){b.iushrn(1);}var r=a.cmp(b);if(r<0){// Swap `a` and `b` to make `a` always bigger than `b` -var t=a;a=b;b=t;}else if(r===0||b.cmpn(1)===0){break;}a.isub(b);}while(true);return b.iushln(shift);};// Invert number in the field F(num) -BN.prototype.invm=function invm(num){return this.egcd(num).a.umod(num);};BN.prototype.isEven=function isEven(){return(this.words[0]&1)===0;};BN.prototype.isOdd=function isOdd(){return(this.words[0]&1)===1;};// And first word and num -BN.prototype.andln=function andln(num){return this.words[0]#};// Increment at the bit position in-line -BN.prototype.bincn=function bincn(bit){assert(typeof bit==='number');var r=bit%26;var s=(bit-r)/26;var q=1<>>26;w&=0x3ffffff;this.words[i]=w;}if(carry!==0){this.words[i]=carry;this.length++;}return this;};BN.prototype.isZero=function isZero(){return this.length===1&&this.words[0]===0;};BN.prototype.cmpn=function cmpn(num){var negative=num<0;if(this.negative!==0&&!negative)return-1;if(this.negative===0&&negative)return 1;this.strip();var res;if(this.length>1){res=1;}else{if(negative){num=-num;}assert(num<=0x3ffffff,'Number is too big');var w=this.words[0]|0;res=w===num?0:w `num` -// 0 - if `this` == `num` -// -1 - if `this` < `num` -BN.prototype.cmp=function cmp(num){if(this.negative!==0&&num.negative===0)return-1;if(this.negative===0&&num.negative!==0)return 1;var res=this.ucmp(num);if(this.negative!==0)return-res|0;return res;};// Unsigned comparison -BN.prototype.ucmp=function ucmp(num){// At this point both numbers have the same sign -if(this.length>num.length)return 1;if(this.length=0;i--){var a=this.words[i]|0;var b=num.words[i]|0;if(a===b)continue;if(ab){res=1;}break;}return res;};BN.prototype.gtn=function gtn(num){return this.cmpn(num)===1;};BN.prototype.gt=function gt(num){return this.cmp(num)===1;};BN.prototype.gten=function gten(num){return this.cmpn(num)>=0;};BN.prototype.gte=function gte(num){return this.cmp(num)>=0;};BN.prototype.ltn=function ltn(num){return this.cmpn(num)===-1;};BN.prototype.lt=function lt(num){return this.cmp(num)===-1;};BN.prototype.lten=function lten(num){return this.cmpn(num)<=0;};BN.prototype.lte=function lte(num){return this.cmp(num)<=0;};BN.prototype.eqn=function eqn(num){return this.cmpn(num)===0;};BN.prototype.eq=function eq(num){return this.cmp(num)===0;};// -// A reduce context, could be using montgomery or something better, depending -// on the `m` itself. -// -BN.red=function red(num){return new Red(num);};BN.prototype.toRed=function toRed(ctx){assert(!this.red,'Already a number in reduction context');assert(this.negative===0,'red works only with positives');return ctx.convertTo(this)._forceRed(ctx);};BN.prototype.fromRed=function fromRed(){assert(this.red,'fromRed works only with numbers in reduction context');return this.red.convertFrom(this);};BN.prototype._forceRed=function _forceRed(ctx){this.red=ctx;return this;};BN.prototype.forceRed=function forceRed(ctx){assert(!this.red,'Already a number in reduction context');return this._forceRed(ctx);};BN.prototype.redAdd=function redAdd(num){assert(this.red,'redAdd works only with red numbers');return this.red.add(this,num);};BN.prototype.redIAdd=function redIAdd(num){assert(this.red,'redIAdd works only with red numbers');return this.red.iadd(this,num);};BN.prototype.redSub=function redSub(num){assert(this.red,'redSub works only with red numbers');return this.red.sub(this,num);};BN.prototype.redISub=function redISub(num){assert(this.red,'redISub works only with red numbers');return this.red.isub(this,num);};BN.prototype.redShl=function redShl(num){assert(this.red,'redShl works only with red numbers');return this.red.shl(this,num);};BN.prototype.redMul=function redMul(num){assert(this.red,'redMul works only with red numbers');this.red._verify2(this,num);return this.red.mul(this,num);};BN.prototype.redIMul=function redIMul(num){assert(this.red,'redMul works only with red numbers');this.red._verify2(this,num);return this.red.imul(this,num);};BN.prototype.redSqr=function redSqr(){assert(this.red,'redSqr works only with red numbers');this.red._verify1(this);return this.red.sqr(this);};BN.prototype.redISqr=function redISqr(){assert(this.red,'redISqr works only with red numbers');this.red._verify1(this);return this.red.isqr(this);};// Square root over p -BN.prototype.redSqrt=function redSqrt(){assert(this.red,'redSqrt works only with red numbers');this.red._verify1(this);return this.red.sqrt(this);};BN.prototype.redInvm=function redInvm(){assert(this.red,'redInvm works only with red numbers');this.red._verify1(this);return this.red.invm(this);};// Return negative clone of `this` % `red modulo` -BN.prototype.redNeg=function redNeg(){assert(this.red,'redNeg works only with red numbers');this.red._verify1(this);return this.red.neg(this);};BN.prototype.redPow=function redPow(num){assert(this.red&&!num.red,'redPow(normalNum)');this.red._verify1(this);return this.red.pow(this,num);};// Prime numbers with efficient reduction -var primes={k256:null,p224:null,p192:null,p25519:null};// Pseudo-Mersenne prime -function MPrime(name,p){// P = 2 ^ N - K -this.name=name;this.p=new BN(p,16);this.n=this.p.bitLength();this.k=new BN(1).iushln(this.n).isub(this.p);this.tmp=this._tmp();}MPrime.prototype._tmp=function _tmp(){var tmp=new BN(null);tmp.words=new Array(Math.ceil(this.n/13));return tmp;};MPrime.prototype.ireduce=function ireduce(num){// Assumes that `num` is less than `P^2` -// num = HI * (2 ^ N - K) + HI * K + LO = HI * K + LO (mod P) -var r=num;var rlen;do{this.split(r,this.tmp);r=this.imulK(r);r=r.iadd(this.tmp);rlen=r.bitLength();}while(rlen>this.n);var cmp=rlen0){r.isub(this.p);}else{r.strip();}return r;};MPrime.prototype.split=function split(input,out){input.iushrn(this.n,0,out);};MPrime.prototype.imulK=function imulK(num){return num.imul(this.k);};function K256(){MPrime.call(this,'k256','ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f');}inherits(K256,MPrime);K256.prototype.split=function split(input,output){// 256 = 9 * 26 + 22 -var mask=0x3fffff;var outLen=Math.min(input.length,9);for(var i=0;i>>22;prev=next;}prev>>>=22;input.words[i-10]=prev;if(prev===0&&input.length>10){input.length-=10;}else{input.length-=9;}};K256.prototype.imulK=function imulK(num){// K = 0x1000003d1 = [ 0x40, 0x3d1 ] -num.words[num.length]=0;num.words[num.length+1]=0;num.length+=2;// bounded at: 0x40 * 0x3ffffff + 0x3d0 = 0x100000390 -var lo=0;for(var i=0;i>>=26;num.words[i]=lo;carry=hi;}if(carry!==0){num.words[num.length++]=carry;}return num;};// Exported mostly for testing purposes, use plain name instead -BN._prime=function prime(name){// Cached version of prime -if(primes[name])return primes[name];var prime;if(name==='k256'){prime=new K256();}else if(name==='p224'){prime=new P224();}else if(name==='p192'){prime=new P192();}else if(name==='p25519'){prime=new P25519();}else{throw new Error('Unknown prime '+name);}primes[name]=prime;return prime;};// -// Base reduction engine -// -function Red(m){if(typeof m==='string'){var prime=BN._prime(m);this.m=prime.p;this.prime=prime;}else{assert(m.gtn(1),'modulus must be greater than 1');this.m=m;this.prime=null;}}Red.prototype._verify1=function _verify1(a){assert(a.negative===0,'red works only with positives');assert(a.red,'red works only with red numbers');};Red.prototype._verify2=function _verify2(a,b){assert((a.negative|b.negative)===0,'red works only with positives');assert(a.red&&a.red===b.red,'red works only with red numbers');};Red.prototype.imod=function imod(a){if(this.prime)return this.prime.ireduce(a)._forceRed(this);return a.umod(this.m)._forceRed(this);};Red.prototype.neg=function neg(a){if(a.isZero()){return a.clone();}return this.m.sub(a)._forceRed(this);};Red.prototype.add=function add(a,b){this._verify2(a,b);var res=a.add(b);if(res.cmp(this.m)>=0){res.isub(this.m);}return res._forceRed(this);};Red.prototype.iadd=function iadd(a,b){this._verify2(a,b);var res=a.iadd(b);if(res.cmp(this.m)>=0){res.isub(this.m);}return res;};Red.prototype.sub=function sub(a,b){this._verify2(a,b);var res=a.sub(b);if(res.cmpn(0)<0){res.iadd(this.m);}return res._forceRed(this);};Red.prototype.isub=function isub(a,b){this._verify2(a,b);var res=a.isub(b);if(res.cmpn(0)<0){res.iadd(this.m);}return res;};Red.prototype.shl=function shl(a,num){this._verify1(a);return this.imod(a.ushln(num));};Red.prototype.imul=function imul(a,b){this._verify2(a,b);return this.imod(a.imul(b));};Red.prototype.mul=function mul(a,b){this._verify2(a,b);return this.imod(a.mul(b));};Red.prototype.isqr=function isqr(a){return this.imul(a,a.clone());};Red.prototype.sqr=function sqr(a){return this.mul(a,a);};Red.prototype.sqrt=function sqrt(a){if(a.isZero())return a.clone();var mod3=this.m.andln(3);assert(mod3%2===1);// Fast case -if(mod3===3){var pow=this.m.add(new BN(1)).iushrn(2);return this.pow(a,pow);}// Tonelli-Shanks algorithm (Totally unoptimized and slow) -// -// Find Q and S, that Q * 2 ^ S = (P - 1) -var q=this.m.subn(1);var s=0;while(!q.isZero()&&q.andln(1)===0){s++;q.iushrn(1);}assert(!q.isZero());var one=new BN(1).toRed(this);var nOne=one.redNeg();// Find quadratic non-residue -// NOTE: Max is such because of generalized Riemann hypothesis. -var lpow=this.m.subn(1).iushrn(1);var z=this.m.bitLength();z=new BN(2*z*z).toRed(this);while(this.pow(z,lpow).cmp(nOne)!==0){z.redIAdd(nOne);}var c=this.pow(z,q);var r=this.pow(a,q.addn(1).iushrn(1));var t=this.pow(a,q);var m=s;while(t.cmp(one)!==0){var tmp=t;for(var i=0;tmp.cmp(one)!==0;i++){tmp=tmp.redSqr();}assert(i=0;i--){var word=num.words[i];for(var j=start-1;j>=0;j--){var bit=word>>j&1;if(res!==wnd[0]){res=this.sqr(res);}if(bit===0&¤t===0){currentLen=0;continue;}current<<=1;current|=bit;currentLen++;if(currentLen!==windowSize&&(i!==0||j!==0))continue;res=this.mul(res,wnd[current]);currentLen=0;current=0;}start=26;}return res;};Red.prototype.convertTo=function convertTo(num){var r=num.umod(this.m);return r===num?r.clone():r;};Red.prototype.convertFrom=function convertFrom(num){var res=num.clone();res.red=null;return res;};// -// Montgomery method engine -// -BN.mont=function mont(num){return new Mont(num);};function Mont(m){Red.call(this,m);this.shift=this.m.bitLength();if(this.shift%26!==0){this.shift+=26-this.shift%26;}this.r=new BN(1).iushln(this.shift);this.r2=this.imod(this.r.sqr());this.rinv=this.r._invmp(this.m);this.minv=this.rinv.mul(this.r).isubn(1).div(this.m);this.minv=this.minv.umod(this.r);this.minv=this.r.sub(this.minv);}inherits(Mont,Red);Mont.prototype.convertTo=function convertTo(num){return this.imod(num.ushln(this.shift));};Mont.prototype.convertFrom=function convertFrom(num){var r=this.imod(num.mul(this.rinv));r.red=null;return r;};Mont.prototype.imul=function imul(a,b){if(a.isZero()||b.isZero()){a.words[0]=0;a.length=1;return a;}var t=a.imul(b);var c=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);var u=t.isub(c).iushrn(this.shift);var res=u;if(u.cmp(this.m)>=0){res=u.isub(this.m);}else if(u.cmpn(0)<0){res=u.iadd(this.m);}return res._forceRed(this);};Mont.prototype.mul=function mul(a,b){if(a.isZero()||b.isZero())return new BN(0)._forceRed(this);var t=a.mul(b);var c=t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);var u=t.isub(c).iushrn(this.shift);var res=u;if(u.cmp(this.m)>=0){res=u.isub(this.m);}else if(u.cmpn(0)<0){res=u.iadd(this.m);}return res._forceRed(this);};Mont.prototype.invm=function invm(a){// (AR)^-1 * R^2 = (A^-1 * R^-1) * R^2 = A^-1 * R -var res=this.imod(a._invmp(this.m).mul(this.r2));return res._forceRed(this);};})(typeof module==='undefined'||module,undefined); -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(98)(module))) - -/***/ }, +/* 13 */, +/* 14 */, /* 15 */ /***/ function(module, exports, __webpack_require__) { @@ -723,42 +260,7 @@ var res=this.imod(a._invmp(this.m).mul(this.r2));return res._forceRed(this);};}) */function convert(name,func,options){return baseConvert(util,name,func,options);}module.exports=convert; /***/ }, -/* 16 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -'use strict';// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. -module.exports=Stream;var EE=__webpack_require__(35).EventEmitter;var inherits=__webpack_require__(5);inherits(Stream,EE);Stream.Readable=__webpack_require__(1138);Stream.Writable=__webpack_require__(1140);Stream.Duplex=__webpack_require__(1135);Stream.Transform=__webpack_require__(1139);Stream.PassThrough=__webpack_require__(1137);// Backwards-compat with node 0.4.x -Stream.Stream=Stream;// old-style streams. Note that the pipe method (the only relevant -// part of this class) is overridden in the Readable class. -function Stream(){EE.call(this);}Stream.prototype.pipe=function(dest,options){var source=this;function ondata(chunk){if(dest.writable){if(false===dest.write(chunk)&&source.pause){source.pause();}}}source.on('data',ondata);function ondrain(){if(source.readable&&source.resume){source.resume();}}dest.on('drain',ondrain);// If the 'end' option is not supplied, dest.end() will be called when -// source gets the 'end' or 'close' events. Only dest.end() once. -if(!dest._isStdio&&(!options||options.end!==false)){source.on('end',onend);source.on('close',onclose);}var didOnEnd=false;function onend(){if(didOnEnd)return;didOnEnd=true;dest.end();}function onclose(){if(didOnEnd)return;didOnEnd=true;if(typeof dest.destroy==='function')dest.destroy();}// don't leave dangling pipes when there are errors. -function onerror(er){cleanup();if(EE.listenerCount(this,'error')===0){throw er;// Unhandled stream error in pipe. -}}source.on('error',onerror);dest.on('error',onerror);// remove all the event listeners that were added. -function cleanup(){source.removeListener('data',ondata);dest.removeListener('drain',ondrain);source.removeListener('end',onend);source.removeListener('close',onclose);source.removeListener('error',onerror);dest.removeListener('error',onerror);source.removeListener('end',cleanup);source.removeListener('close',cleanup);dest.removeListener('close',cleanup);}source.on('end',cleanup);source.on('close',cleanup);dest.on('close',cleanup);dest.emit('pipe',source);// Allow for unix-like usage: A.pipe(B).pipe(C) -return dest;}; - -/***/ }, +/* 16 */, /* 17 */ /***/ function(module, exports) { @@ -798,7 +300,7 @@ module.exports=g; /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var baseDifference=__webpack_require__(344),baseRest=__webpack_require__(46),isArrayLikeObject=__webpack_require__(165);/** +'use strict';var baseDifference=__webpack_require__(346),baseRest=__webpack_require__(45),isArrayLikeObject=__webpack_require__(166);/** * Creates an array excluding all given values using * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * for equality comparisons. @@ -820,20 +322,12 @@ module.exports=g; */var without=baseRest(function(array,values){return isArrayLikeObject(array)?baseDifference(array,values):[];});module.exports=without; /***/ }, -/* 20 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};// Copyright 2015 Joyent, Inc. -module.exports={bufferSplit:bufferSplit,addRSAMissing:addRSAMissing,calculateDSAPublic:calculateDSAPublic,mpNormalize:mpNormalize,ecNormalize:ecNormalize,countZeros:countZeros,assertCompatible:assertCompatible,isCompatible:isCompatible,opensslKeyDeriv:opensslKeyDeriv,opensshCipherInfo:opensshCipherInfo};var assert=__webpack_require__(13);var PrivateKey=__webpack_require__(27);var crypto=__webpack_require__(11);var MAX_CLASS_DEPTH=3;function isCompatible(obj,klass,needVer){if(obj===null||(typeof obj==='undefined'?'undefined':_typeof(obj))!=='object')return false;if(needVer===undefined)needVer=klass.prototype._sshpkApiVersion;if(obj instanceof klass&&klass.prototype._sshpkApiVersion[0]==needVer[0])return true;var proto=Object.getPrototypeOf(obj);var depth=0;while(proto.constructor.name!==klass.name){proto=Object.getPrototypeOf(proto);if(!proto||++depth>MAX_CLASS_DEPTH)return false;}if(proto.constructor.name!==klass.name)return false;var ver=proto._sshpkApiVersion;if(ver===undefined)ver=klass._oldVersionDetect(obj);if(ver[0]!=needVer[0]||ver[1]=needVer[1],name+' must be compatible with '+klass.name+' klass '+'version '+needVer[0]+'.'+needVer[1]);}var CIPHER_LEN={'des-ede3-cbc':{key:7,iv:8},'aes-128-cbc':{key:16,iv:16}};var PKCS5_SALT_LEN=8;function opensslKeyDeriv(cipher,salt,passphrase,count){assert.buffer(salt,'salt');assert.buffer(passphrase,'passphrase');assert.number(count,'iteration count');var clen=CIPHER_LEN[cipher];assert.object(clen,'supported cipher');salt=salt.slice(0,PKCS5_SALT_LEN);var D,D_prev,bufs;var material=new Buffer(0);while(material.length=chr.length){var newPart=i+1;parts.push(buf.slice(lastPart,newPart-matches));lastPart=newPart;matches=0;}}if(lastPart<=buf.length)parts.push(buf.slice(lastPart,buf.length));return parts;}function ecNormalize(buf,addZero){assert.buffer(buf);if(buf[0]===0x00&&buf[1]===0x04){if(addZero)return buf;return buf.slice(1);}else if(buf[0]===0x04){if(!addZero)return buf;}else{while(buf[0]===0x00){buf=buf.slice(1);}if(buf[0]===0x02||buf[0]===0x03)throw new Error('Compressed elliptic curve points '+'are not supported');if(buf[0]!==0x04)throw new Error('Not a valid elliptic curve point');if(!addZero)return buf;}var b=new Buffer(buf.length+1);b[0]=0x0;buf.copy(b,1);return b;}function mpNormalize(buf){assert.buffer(buf);while(buf.length>1&&buf[0]===0x00&&(buf[1]&0x80)===0x00){buf=buf.slice(1);}if((buf[0]&0x80)===0x80){var b=new Buffer(buf.length+1);b[0]=0x00;buf.copy(b,1);buf=b;}return buf;}function bigintToMpBuf(bigint){var buf=new Buffer(bigint.toByteArray());buf=mpNormalize(buf);return buf;}function calculateDSAPublic(g,p,x){assert.buffer(g);assert.buffer(p);assert.buffer(x);try{var bigInt=__webpack_require__(69).BigInteger;}catch(e){throw new Error('To load a PKCS#8 format DSA private key, '+'the node jsbn library is required.');}g=new bigInt(g);p=new bigInt(p);x=new bigInt(x);var y=g.modPow(x,p);var ybuf=bigintToMpBuf(y);return ybuf;}function addRSAMissing(key){assert.object(key);assertCompatible(key,PrivateKey,[1,1]);try{var bigInt=__webpack_require__(69).BigInteger;}catch(e){throw new Error('To write a PEM private key from '+'this source, the node jsbn lib is required.');}var d=new bigInt(key.part.d.data);var buf;if(!key.part.dmodp){var p=new bigInt(key.part.p.data);var dmodp=d.mod(p.subtract(1));buf=bigintToMpBuf(dmodp);key.part.dmodp={name:'dmodp',data:buf};key.parts.push(key.part.dmodp);}if(!key.part.dmodq){var q=new bigInt(key.part.q.data);var dmodq=d.mod(q.subtract(1));buf=bigintToMpBuf(dmodq);key.part.dmodq={name:'dmodq',data:buf};key.parts.push(key.part.dmodq);}}function opensshCipherInfo(cipher){var inf={};switch(cipher){case'3des-cbc':inf.keySize=24;inf.blockSize=8;inf.opensslName='des-ede3-cbc';break;case'blowfish-cbc':inf.keySize=16;inf.blockSize=8;inf.opensslName='bf-cbc';break;case'aes128-cbc':case'aes128-ctr':case'aes128-gcm@openssh.com':inf.keySize=16;inf.blockSize=16;inf.opensslName='aes-128-'+cipher.slice(7,10);break;case'aes192-cbc':case'aes192-ctr':case'aes192-gcm@openssh.com':inf.keySize=24;inf.blockSize=16;inf.opensslName='aes-192-'+cipher.slice(7,10);break;case'aes256-cbc':case'aes256-ctr':case'aes256-gcm@openssh.com':inf.keySize=32;inf.blockSize=16;inf.opensslName='aes-256-'+cipher.slice(7,10);break;default:throw new Error('Unsupported openssl cipher "'+cipher+'"');}return inf;} -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer)) - -/***/ }, +/* 20 */, /* 21 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var arrayMap=__webpack_require__(45),baseIteratee=__webpack_require__(38),baseMap=__webpack_require__(348),isArray=__webpack_require__(9);/** +'use strict';var arrayMap=__webpack_require__(44),baseIteratee=__webpack_require__(38),baseMap=__webpack_require__(350),isArray=__webpack_require__(9);/** * Creates an array of values by running each element in `collection` thru * `iteratee`. The iteratee is invoked with three arguments: * (value, index|key, collection). @@ -881,14 +375,39 @@ module.exports={bufferSplit:bufferSplit,addRSAMissing:addRSAMissing,calculateDSA /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.default=undefined;var _Icon=__webpack_require__(185);var _Icon2=_interopRequireDefault(_Icon);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=_Icon2.default; +'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.default=undefined;var _Icon=__webpack_require__(188);var _Icon2=_interopRequireDefault(_Icon);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=_Icon2.default; /***/ }, /* 23 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var arrayLikeKeys=__webpack_require__(340),baseKeys=__webpack_require__(221),isArrayLike=__webpack_require__(42);/** +/* WEBPACK VAR INJECTION */(function(process) {/** + * Copyright 2013-2015, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */'use strict';/** + * Use invariant() to assert state which your program assumes to be true. + * + * Provide sprintf-style format (only %s is supported) and arguments + * to provide information about what broke and what you were + * expecting. + * + * The invariant message will be stripped in production, but the invariant + * will remain to ensure logic does not differ in production. + */var invariant=function invariant(condition,format,a,b,c,d,e,f){if(process.env.NODE_ENV!=='production'){if(format===undefined){throw new Error('invariant requires an error message argument');}}if(!condition){var error;if(format===undefined){error=new Error('Minified exception occurred; use the non-minified dev environment '+'for the full error message and additional helpful warnings.');}else{var args=[a,b,c,d,e,f];var argIndex=0;error=new Error(format.replace(/%s/g,function(){return args[argIndex++];}));error.name='Invariant Violation';}error.framesToPop=1;// we don't care about invariant's own frame +throw error;}};module.exports=invariant; +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) + +/***/ }, +/* 24 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +'use strict';var arrayLikeKeys=__webpack_require__(342),baseKeys=__webpack_require__(221),isArrayLike=__webpack_require__(41);/** * Creates an array of the own enumerable property names of `object`. * * **Note:** Non-object values are coerced to objects. See the @@ -918,7 +437,7 @@ module.exports={bufferSplit:bufferSplit,addRSAMissing:addRSAMissing,calculateDSA */function keys(object){return isArrayLike(object)?arrayLikeKeys(object):baseKeys(object);}module.exports=keys; /***/ }, -/* 24 */ +/* 25 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -931,7 +450,7 @@ module.exports={bufferSplit:bufferSplit,addRSAMissing:addRSAMissing,calculateDSA * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactMount - */'use strict';var DOMProperty=__webpack_require__(75);var ReactBrowserEventEmitter=__webpack_require__(175);var ReactCurrentOwner=__webpack_require__(52);var ReactDOMFeatureFlags=__webpack_require__(417);var ReactElement=__webpack_require__(34);var ReactEmptyComponentRegistry=__webpack_require__(424);var ReactInstanceHandles=__webpack_require__(92);var ReactInstanceMap=__webpack_require__(120);var ReactMarkupChecksum=__webpack_require__(427);var ReactPerf=__webpack_require__(37);var ReactReconciler=__webpack_require__(76);var ReactUpdateQueue=__webpack_require__(247);var ReactUpdates=__webpack_require__(39);var assign=__webpack_require__(7);var emptyObject=__webpack_require__(103);var containsNode=__webpack_require__(323);var instantiateReactComponent=__webpack_require__(254);var invariant=__webpack_require__(6);var setInnerHTML=__webpack_require__(182);var shouldUpdateReactComponent=__webpack_require__(257);var validateDOMNesting=__webpack_require__(259);var warning=__webpack_require__(8);var ATTR_NAME=DOMProperty.ID_ATTRIBUTE_NAME;var nodeCache={};var ELEMENT_NODE_TYPE=1;var DOC_NODE_TYPE=9;var DOCUMENT_FRAGMENT_NODE_TYPE=11;var ownerDocumentContextKey='__ReactMount_ownerDocument$'+Math.random().toString(36).slice(2);/** Mapping from reactRootID to React component instance. */var instancesByReactRootID={};/** Mapping from reactRootID to `container` nodes. */var containersByReactRootID={};if(process.env.NODE_ENV!=='production'){/** __DEV__-only mapping from reactRootID to root elements. */var rootElementsByReactRootID={};}// Used to store breadth-first search state in findComponentRoot. + */'use strict';var DOMProperty=__webpack_require__(77);var ReactBrowserEventEmitter=__webpack_require__(178);var ReactCurrentOwner=__webpack_require__(51);var ReactDOMFeatureFlags=__webpack_require__(426);var ReactElement=__webpack_require__(34);var ReactEmptyComponentRegistry=__webpack_require__(433);var ReactInstanceHandles=__webpack_require__(96);var ReactInstanceMap=__webpack_require__(122);var ReactMarkupChecksum=__webpack_require__(436);var ReactPerf=__webpack_require__(37);var ReactReconciler=__webpack_require__(78);var ReactUpdateQueue=__webpack_require__(253);var ReactUpdates=__webpack_require__(39);var assign=__webpack_require__(7);var emptyObject=__webpack_require__(105);var containsNode=__webpack_require__(328);var instantiateReactComponent=__webpack_require__(260);var invariant=__webpack_require__(6);var setInnerHTML=__webpack_require__(185);var shouldUpdateReactComponent=__webpack_require__(263);var validateDOMNesting=__webpack_require__(265);var warning=__webpack_require__(8);var ATTR_NAME=DOMProperty.ID_ATTRIBUTE_NAME;var nodeCache={};var ELEMENT_NODE_TYPE=1;var DOC_NODE_TYPE=9;var DOCUMENT_FRAGMENT_NODE_TYPE=11;var ownerDocumentContextKey='__ReactMount_ownerDocument$'+Math.random().toString(36).slice(2);/** Mapping from reactRootID to React component instance. */var instancesByReactRootID={};/** Mapping from reactRootID to `container` nodes. */var containersByReactRootID={};if(process.env.NODE_ENV!=='production'){/** __DEV__-only mapping from reactRootID to root elements. */var rootElementsByReactRootID={};}// Used to store breadth-first search state in findComponentRoot. var findComponentRootReusableArray=[];/** * Finds the index of the first character * that's not common between the two given strings. @@ -1196,94 +715,12 @@ var normalizer;if(container.nodeType===ELEMENT_NODE_TYPE){normalizer=document.cr /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 25 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';// Copyright 2015 Joyent, Inc. -var algInfo={'dsa':{parts:['p','q','g','y'],sizePart:'p'},'rsa':{parts:['e','n'],sizePart:'n'},'ecdsa':{parts:['curve','Q'],sizePart:'Q'},'ed25519':{parts:['R'],normalize:false,sizePart:'R'}};algInfo['curve25519']=algInfo['ed25519'];var algPrivInfo={'dsa':{parts:['p','q','g','y','x']},'rsa':{parts:['n','e','d','iqmp','p','q']},'ecdsa':{parts:['curve','Q','d']},'ed25519':{parts:['R','r'],normalize:false}};algPrivInfo['curve25519']=algPrivInfo['ed25519'];var hashAlgs={'md5':true,'sha1':true,'sha256':true,'sha384':true,'sha512':true};/* - * Taken from - * http://csrc.nist.gov/groups/ST/toolkit/documents/dss/NISTReCur.pdf - */var curves={'nistp256':{size:256,pkcs8oid:'1.2.840.10045.3.1.7',p:new Buffer(('00'+'ffffffff 00000001 00000000 00000000'+'00000000 ffffffff ffffffff ffffffff').replace(/ /g,''),'hex'),a:new Buffer(('00'+'FFFFFFFF 00000001 00000000 00000000'+'00000000 FFFFFFFF FFFFFFFF FFFFFFFC').replace(/ /g,''),'hex'),b:new Buffer(('5ac635d8 aa3a93e7 b3ebbd55 769886bc'+'651d06b0 cc53b0f6 3bce3c3e 27d2604b').replace(/ /g,''),'hex'),s:new Buffer(('00'+'c49d3608 86e70493 6a6678e1 139d26b7'+'819f7e90').replace(/ /g,''),'hex'),n:new Buffer(('00'+'ffffffff 00000000 ffffffff ffffffff'+'bce6faad a7179e84 f3b9cac2 fc632551').replace(/ /g,''),'hex'),G:new Buffer(('04'+'6b17d1f2 e12c4247 f8bce6e5 63a440f2'+'77037d81 2deb33a0 f4a13945 d898c296'+'4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16'+'2bce3357 6b315ece cbb64068 37bf51f5').replace(/ /g,''),'hex')},'nistp384':{size:384,pkcs8oid:'1.3.132.0.34',p:new Buffer(('00'+'ffffffff ffffffff ffffffff ffffffff'+'ffffffff ffffffff ffffffff fffffffe'+'ffffffff 00000000 00000000 ffffffff').replace(/ /g,''),'hex'),a:new Buffer(('00'+'FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF'+'FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFE'+'FFFFFFFF 00000000 00000000 FFFFFFFC').replace(/ /g,''),'hex'),b:new Buffer(('b3312fa7 e23ee7e4 988e056b e3f82d19'+'181d9c6e fe814112 0314088f 5013875a'+'c656398d 8a2ed19d 2a85c8ed d3ec2aef').replace(/ /g,''),'hex'),s:new Buffer(('00'+'a335926a a319a27a 1d00896a 6773a482'+'7acdac73').replace(/ /g,''),'hex'),n:new Buffer(('00'+'ffffffff ffffffff ffffffff ffffffff'+'ffffffff ffffffff c7634d81 f4372ddf'+'581a0db2 48b0a77a ecec196a ccc52973').replace(/ /g,''),'hex'),G:new Buffer(('04'+'aa87ca22 be8b0537 8eb1c71e f320ad74'+'6e1d3b62 8ba79b98 59f741e0 82542a38'+'5502f25d bf55296c 3a545e38 72760ab7'+'3617de4a 96262c6f 5d9e98bf 9292dc29'+'f8f41dbd 289a147c e9da3113 b5f0b8c0'+'0a60b1ce 1d7e819d 7a431d7c 90ea0e5f').replace(/ /g,''),'hex')},'nistp521':{size:521,pkcs8oid:'1.3.132.0.35',p:new Buffer(('01ffffff ffffffff ffffffff ffffffff'+'ffffffff ffffffff ffffffff ffffffff'+'ffffffff ffffffff ffffffff ffffffff'+'ffffffff ffffffff ffffffff ffffffff'+'ffff').replace(/ /g,''),'hex'),a:new Buffer(('01FF'+'FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF'+'FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF'+'FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF'+'FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFC').replace(/ /g,''),'hex'),b:new Buffer(('51'+'953eb961 8e1c9a1f 929a21a0 b68540ee'+'a2da725b 99b315f3 b8b48991 8ef109e1'+'56193951 ec7e937b 1652c0bd 3bb1bf07'+'3573df88 3d2c34f1 ef451fd4 6b503f00').replace(/ /g,''),'hex'),s:new Buffer(('00'+'d09e8800 291cb853 96cc6717 393284aa'+'a0da64ba').replace(/ /g,''),'hex'),n:new Buffer(('01ff'+'ffffffff ffffffff ffffffff ffffffff'+'ffffffff ffffffff ffffffff fffffffa'+'51868783 bf2f966b 7fcc0148 f709a5d0'+'3bb5c9b8 899c47ae bb6fb71e 91386409').replace(/ /g,''),'hex'),G:new Buffer(('04'+'00c6 858e06b7 0404e9cd 9e3ecb66 2395b442'+'9c648139 053fb521 f828af60 6b4d3dba'+'a14b5e77 efe75928 fe1dc127 a2ffa8de'+'3348b3c1 856a429b f97e7e31 c2e5bd66'+'0118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9'+'98f54449 579b4468 17afbd17 273e662c'+'97ee7299 5ef42640 c550b901 3fad0761'+'353c7086 a272c240 88be9476 9fd16650').replace(/ /g,''),'hex')}};module.exports={info:algInfo,privInfo:algPrivInfo,hashAlgs:hashAlgs,curves:curves}; -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer)) - -/***/ }, -/* 26 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};// Copyright 2015 Joyent, Inc. -module.exports=Key;var assert=__webpack_require__(13);var algs=__webpack_require__(25);var crypto=__webpack_require__(11);var Fingerprint=__webpack_require__(123);var Signature=__webpack_require__(55);var DiffieHellman=__webpack_require__(1129);var errs=__webpack_require__(54);var utils=__webpack_require__(20);var PrivateKey=__webpack_require__(27);var edCompat;try{edCompat=__webpack_require__(540);}catch(e){/* Just continue through, and bail out if we try to use it. */}var InvalidAlgorithmError=errs.InvalidAlgorithmError;var KeyParseError=errs.KeyParseError;var formats={};formats['auto']=__webpack_require__(541);formats['pem']=__webpack_require__(65);formats['pkcs1']=__webpack_require__(289);formats['pkcs8']=__webpack_require__(124);formats['rfc4253']=__webpack_require__(78);formats['ssh']=__webpack_require__(542);formats['ssh-private']=__webpack_require__(191);formats['openssh']=formats['ssh-private'];function Key(opts){assert.object(opts,'options');assert.arrayOfObject(opts.parts,'options.parts');assert.string(opts.type,'options.type');assert.optionalString(opts.comment,'options.comment');var algInfo=algs.info[opts.type];if((typeof algInfo==='undefined'?'undefined':_typeof(algInfo))!=='object')throw new InvalidAlgorithmError(opts.type);var partLookup={};for(var i=0;i1024)hashAlgo='sha256';if(this.type==='ed25519')hashAlgo='sha512';if(this.type==='ecdsa'){if(this.size<=256)hashAlgo='sha256';else if(this.size<=384)hashAlgo='sha384';else hashAlgo='sha512';}return hashAlgo;};Key.prototype.createVerify=function(hashAlgo){if(hashAlgo===undefined)hashAlgo=this.defaultHashAlgorithm();assert.string(hashAlgo,'hash algorithm');/* ED25519 is not supported by OpenSSL, use a javascript impl. */if(this.type==='ed25519'&&edCompat!==undefined)return new edCompat.Verifier(this,hashAlgo);if(this.type==='curve25519')throw new Error('Curve25519 keys are not suitable for '+'signing or verification');var v,nm,err;try{nm=hashAlgo.toUpperCase();v=crypto.createVerify(nm);}catch(e){err=e;}if(v===undefined||err instanceof Error&&err.message.match(/Unknown message digest/)){nm='RSA-';nm+=hashAlgo.toUpperCase();v=crypto.createVerify(nm);}assert.ok(v,'failed to create verifier');var oldVerify=v.verify.bind(v);var key=this.toBuffer('pkcs8');var self=this;v.verify=function(signature,fmt){if(Signature.isSignature(signature,[2,0])){if(signature.type!==self.type)return false;if(signature.hashAlgorithm&&signature.hashAlgorithm!==hashAlgo)return false;return oldVerify(key,signature.toBuffer('asn1'));}else if(typeof signature==='string'||Buffer.isBuffer(signature)){return oldVerify(key,signature,fmt);/* - * Avoid doing this on valid arguments, walking the prototype - * chain can be quite slow. - */}else if(Signature.isSignature(signature,[1,0])){throw new Error('signature was created by too old '+'a version of sshpk and cannot be verified');}else{throw new TypeError('signature must be a string, '+'Buffer, or Signature object');}};return v;};Key.prototype.createDiffieHellman=function(){if(this.type==='rsa')throw new Error('RSA keys do not support Diffie-Hellman');return new DiffieHellman(this);};Key.prototype.createDH=Key.prototype.createDiffieHellman;Key.parse=function(data,format,options){if(typeof data!=='string')assert.buffer(data,'data');if(format===undefined)format='auto';assert.string(format,'format');if(typeof options==='string')options={filename:options};assert.optionalObject(options,'options');if(options===undefined)options={};assert.optionalString(options.filename,'options.filename');if(options.filename===undefined)options.filename='(unnamed)';assert.object(formats[format],'formats[format]');try{var k=formats[format].read(data,options);if(k instanceof PrivateKey)k=k.toPublic();if(!k.comment)k.comment=options.filename;return k;}catch(e){if(e.name==='KeyEncryptedError')throw e;throw new KeyParseError(options.filename,format,e);}};Key.isKey=function(obj,ver){return utils.isCompatible(obj,Key,ver);};/* - * API versions for Key: - * [1,0] -- initial ver, may take Signature for createVerify or may not - * [1,1] -- added pkcs1, pkcs8 formats - * [1,2] -- added auto, ssh-private, openssh formats - * [1,3] -- added defaultHashAlgorithm - * [1,4] -- added ed support, createDH - * [1,5] -- first explicitly tagged version - */Key.prototype._sshpkApiVersion=[1,5];Key._oldVersionDetect=function(obj){assert.func(obj.toBuffer);assert.func(obj.fingerprint);if(obj.createDH)return[1,4];if(obj.defaultHashAlgorithm)return[1,3];if(obj.formats['auto'])return[1,2];if(obj.formats['pkcs1'])return[1,1];return[1,0];}; -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer)) - -/***/ }, -/* 27 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';// Copyright 2015 Joyent, Inc. -module.exports=PrivateKey;var assert=__webpack_require__(13);var algs=__webpack_require__(25);var crypto=__webpack_require__(11);var Fingerprint=__webpack_require__(123);var Signature=__webpack_require__(55);var errs=__webpack_require__(54);var util=__webpack_require__(10);var utils=__webpack_require__(20);var edCompat;var ed;try{edCompat=__webpack_require__(540);}catch(e){/* Just continue through, and bail out if we try to use it. */}var Key=__webpack_require__(26);var InvalidAlgorithmError=errs.InvalidAlgorithmError;var KeyParseError=errs.KeyParseError;var KeyEncryptedError=errs.KeyEncryptedError;var formats={};formats['auto']=__webpack_require__(541);formats['pem']=__webpack_require__(65);formats['pkcs1']=__webpack_require__(289);formats['pkcs8']=__webpack_require__(124);formats['rfc4253']=__webpack_require__(78);formats['ssh-private']=__webpack_require__(191);formats['openssh']=formats['ssh-private'];formats['ssh']=formats['ssh-private'];function PrivateKey(opts){assert.object(opts,'options');Key.call(this,opts);this._pubCache=undefined;}util.inherits(PrivateKey,Key);PrivateKey.formats=formats;PrivateKey.prototype.toBuffer=function(format,options){if(format===undefined)format='pkcs1';assert.string(format,'format');assert.object(formats[format],'formats[format]');assert.optionalObject(options,'options');return formats[format].write(this,options);};PrivateKey.prototype.hash=function(algo){return this.toPublic().hash(algo);};PrivateKey.prototype.toPublic=function(){if(this._pubCache)return this._pubCache;var algInfo=algs.info[this.type];var pubParts=[];for(var i=0;i false */function isObject(value){var type=typeof value==='undefined'?'undefined':_typeof(value);return value!=null&&(type=='object'||type=='function');}module.exports=isObject; -/***/ }, -/* 33 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(process) {/** - * Copyright 2013-2015, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */'use strict';/** - * Use invariant() to assert state which your program assumes to be true. - * - * Provide sprintf-style format (only %s is supported) and arguments - * to provide information about what broke and what you were - * expecting. - * - * The invariant message will be stripped in production, but the invariant - * will remain to ensure logic does not differ in production. - */var invariant=function invariant(condition,format,a,b,c,d,e,f){if(process.env.NODE_ENV!=='production'){if(format===undefined){throw new Error('invariant requires an error message argument');}}if(!condition){var error;if(format===undefined){error=new Error('Minified exception occurred; use the non-minified dev environment '+'for the full error message and additional helpful warnings.');}else{var args=[a,b,c,d,e,f];var argIndex=0;error=new Error(format.replace(/%s/g,function(){return args[argIndex++];}));error.name='Invariant Violation';}error.framesToPop=1;// we don't care about invariant's own frame -throw error;}};module.exports=invariant; -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) - /***/ }, /* 34 */ /***/ function(module, exports, __webpack_require__) { @@ -1378,7 +790,7 @@ throw error;}};module.exports=invariant; * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactElement - */'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};var ReactCurrentOwner=__webpack_require__(52);var assign=__webpack_require__(7);var canDefineProperty=__webpack_require__(180);// The Symbol used to tag the ReactElement type. If there is no native Symbol + */'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};var ReactCurrentOwner=__webpack_require__(51);var assign=__webpack_require__(7);var canDefineProperty=__webpack_require__(183);// The Symbol used to tag the ReactElement type. If there is no native Symbol // nor polyfill, then a plain number is used for performance. var REACT_ELEMENT_TYPE=typeof Symbol==='function'&&Symbol['for']&&Symbol['for']('react.element')||0xeac7;var RESERVED_PROPS={key:true,ref:true,__self:true,__source:true};/** * Base constructor for all React elements. This is only used to make this @@ -1570,7 +982,7 @@ while(listeners.length){this.removeListener(type,listeners[listeners.length-1]); /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};var baseMatches=__webpack_require__(730),baseMatchesProperty=__webpack_require__(731),identity=__webpack_require__(61),isArray=__webpack_require__(9),property=__webpack_require__(867);/** +'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};var baseMatches=__webpack_require__(730),baseMatchesProperty=__webpack_require__(731),identity=__webpack_require__(60),isArray=__webpack_require__(9),property=__webpack_require__(867);/** * The base implementation of `_.iteratee`. * * @private @@ -1594,7 +1006,7 @@ if(typeof value=='function'){return value;}if(value==null){return identity;}if(( * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactUpdates - */'use strict';var CallbackQueue=__webpack_require__(241);var PooledClass=__webpack_require__(64);var ReactPerf=__webpack_require__(37);var ReactReconciler=__webpack_require__(76);var Transaction=__webpack_require__(179);var assign=__webpack_require__(7);var invariant=__webpack_require__(6);var dirtyComponents=[];var asapCallbackQueue=CallbackQueue.getPooled();var asapEnqueued=false;var batchingStrategy=null;function ensureInjected(){!(ReactUpdates.ReactReconcileTransaction&&batchingStrategy)?process.env.NODE_ENV!=='production'?invariant(false,'ReactUpdates: must inject a reconcile transaction class and batching '+'strategy'):invariant(false):undefined;}var NESTED_UPDATES={initialize:function initialize(){this.dirtyComponentsLength=dirtyComponents.length;},close:function close(){if(this.dirtyComponentsLength!==dirtyComponents.length){// Additional updates were enqueued by componentDidUpdate handlers or + */'use strict';var CallbackQueue=__webpack_require__(247);var PooledClass=__webpack_require__(65);var ReactPerf=__webpack_require__(37);var ReactReconciler=__webpack_require__(78);var Transaction=__webpack_require__(182);var assign=__webpack_require__(7);var invariant=__webpack_require__(6);var dirtyComponents=[];var asapCallbackQueue=CallbackQueue.getPooled();var asapEnqueued=false;var batchingStrategy=null;function ensureInjected(){!(ReactUpdates.ReactReconcileTransaction&&batchingStrategy)?process.env.NODE_ENV!=='production'?invariant(false,'ReactUpdates: must inject a reconcile transaction class and batching '+'strategy'):invariant(false):undefined;}var NESTED_UPDATES={initialize:function initialize(){this.dirtyComponentsLength=dirtyComponents.length;},close:function close(){if(this.dirtyComponentsLength!==dirtyComponents.length){// Additional updates were enqueued by componentDidUpdate handlers or // similar; before our own UPDATE_QUEUEING wrapper closes, we want to run // these new updates so that if A's componentDidUpdate calls setState on // B, B will update before the callback A's updater provided when calling @@ -1641,28 +1053,6 @@ if(!batchingStrategy.isBatchingUpdates){batchingStrategy.batchedUpdates(enqueueU /***/ }, /* 40 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(process) {/** - * Copyright 2014-2015, Facebook, Inc. - * All rights reserved. - * - * This source code is licensed under the BSD-style license found in the - * LICENSE file in the root directory of this source tree. An additional grant - * of patent rights can be found in the PATENTS file in the same directory. - */'use strict';/** - * Similar to invariant but only logs a warning if the condition is not met. - * This can be used to log issues in development environments in critical - * paths. Removing the logging code for production environments will keep the - * same logic and follow the same code paths. - */var warning=function warning(){};if(process.env.NODE_ENV!=='production'){warning=function warning(condition,format,args){var len=arguments.length;args=new Array(len>2?len-2:0);for(var key=2;key - * @license MIT - */var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};function compare(a,b){if(a===b){return 0;}var x=a.length;var y=b.length;for(var i=0,len=Math.min(x,y);i -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the 'Software'), to -// deal in the Software without restriction, including without limitation the -// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or -// sell copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN -// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -var util=__webpack_require__(10);var hasOwn=Object.prototype.hasOwnProperty;var pSlice=Array.prototype.slice;var functionsHaveNames=function(){return function foo(){}.name==='foo';}();function pToString(obj){return Object.prototype.toString.call(obj);}function isView(arrbuf){if(isBuffer(arrbuf)){return false;}if(typeof global.ArrayBuffer!=='function'){return false;}if(typeof ArrayBuffer.isView==='function'){return ArrayBuffer.isView(arrbuf);}if(!arrbuf){return false;}if(arrbuf instanceof DataView){return true;}if(arrbuf.buffer&&arrbuf.buffer instanceof ArrayBuffer){return true;}return false;}// 1. The assert module provides functions that throw -// AssertionError's when particular conditions are not met. The -// assert module must conform to the following interface. -var assert=module.exports=ok;// 2. The AssertionError is defined in assert. -// new assert.AssertionError({ message: message, -// actual: actual, -// expected: expected }) -var regex=/\s*function\s+([^\(\s]*)\s*/;// based on https://github.com/ljharb/function.prototype.name/blob/adeeeec8bfcc6068b187d7d9fb3d5bb1d3a30899/implementation.js -function getName(func){if(!util.isFunction(func)){return;}if(functionsHaveNames){return func.name;}var str=func.toString();var match=str.match(regex);return match&&match[1];}assert.AssertionError=function AssertionError(options){this.name='AssertionError';this.actual=options.actual;this.expected=options.expected;this.operator=options.operator;if(options.message){this.message=options.message;this.generatedMessage=false;}else{this.message=getMessage(this);this.generatedMessage=true;}var stackStartFunction=options.stackStartFunction||fail;if(Error.captureStackTrace){Error.captureStackTrace(this,stackStartFunction);}else{// non v8 browsers so we can have a stacktrace -var err=new Error();if(err.stack){var out=err.stack;// try to strip useless frames -var fn_name=getName(stackStartFunction);var idx=out.indexOf('\n'+fn_name);if(idx>=0){// once we have located the function frame -// we need to strip out everything before it (and its line) -var next_line=out.indexOf('\n',idx+1);out=out.substring(next_line+1);}this.stack=out;}}};// assert.AssertionError instanceof Error -util.inherits(assert.AssertionError,Error);function truncate(s,n){if(typeof s==='string'){return s.length=0;i--){if(ka[i]!==kb[i])return false;}//equivalent values for every corresponding key, and -//~~~possibly expensive deep test -for(i=ka.length-1;i>=0;i--){key=ka[i];if(!_deepEqual(a[key],b[key],strict,actualVisitedObjects))return false;}return true;}// 8. The non-equivalence assertion tests for any deep inequality. -// assert.notDeepEqual(actual, expected, message_opt); -assert.notDeepEqual=function notDeepEqual(actual,expected,message){if(_deepEqual(actual,expected,false)){fail(actual,expected,message,'notDeepEqual',assert.notDeepEqual);}};assert.notDeepStrictEqual=notDeepStrictEqual;function notDeepStrictEqual(actual,expected,message){if(_deepEqual(actual,expected,true)){fail(actual,expected,message,'notDeepStrictEqual',notDeepStrictEqual);}}// 9. The strict equality assertion tests strict equality, as determined by ===. -// assert.strictEqual(actual, expected, message_opt); -assert.strictEqual=function strictEqual(actual,expected,message){if(actual!==expected){fail(actual,expected,message,'===',assert.strictEqual);}};// 10. The strict non-equality assertion tests for strict inequality, as -// determined by !==. assert.notStrictEqual(actual, expected, message_opt); -assert.notStrictEqual=function notStrictEqual(actual,expected,message){if(actual===expected){fail(actual,expected,message,'!==',assert.notStrictEqual);}};function expectedException(actual,expected){if(!actual||!expected){return false;}if(Object.prototype.toString.call(expected)=='[object RegExp]'){return expected.test(actual);}try{if(actual instanceof expected){return true;}}catch(e){// Ignore. The instanceof check doesn't work for arrow functions. -}if(Error.isPrototypeOf(expected)){return false;}return expected.call({},actual)===true;}function _tryBlock(block){var error;try{block();}catch(e){error=e;}return error;}function _throws(shouldThrow,block,expected,message){var actual;if(typeof block!=='function'){throw new TypeError('"block" argument must be a function');}if(typeof expected==='string'){message=expected;expected=null;}actual=_tryBlock(block);message=(expected&&expected.name?' ('+expected.name+').':'.')+(message?' '+message:'.');if(shouldThrow&&!actual){fail(actual,expected,'Missing expected exception'+message);}var userProvidedMessage=typeof message==='string';var isUnwantedException=!shouldThrow&&util.isError(actual);var isUnexpectedException=!shouldThrow&&actual&&!expected;if(isUnwantedException&&userProvidedMessage&&expectedException(actual,expected)||isUnexpectedException){fail(actual,expected,'Got unwanted exception'+message);}if(shouldThrow&&actual&&expected&&!expectedException(actual,expected)||!shouldThrow&&actual){throw actual;}}// 11. Expected to throw an error: -// assert.throws(block, Error_opt, message_opt); -assert.throws=function(block,/*optional*/error,/*optional*/message){_throws(true,block,error,message);};// EXTENSION! This is annoying to write outside this module. -assert.doesNotThrow=function(block,/*optional*/error,/*optional*/message){_throws(false,block,error,message);};assert.ifError=function(err){if(err)throw err;};var objectKeys=Object.keys||function(obj){var keys=[];for(var key in obj){if(hasOwn.call(obj,key))keys.push(key);}return keys;}; -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(17))) - -/***/ }, +/* 42 */, +/* 43 */, /* 44 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(global) {'use strict';var buffer=__webpack_require__(4);var Buffer=buffer.Buffer;var SlowBuffer=buffer.SlowBuffer;var MAX_LEN=buffer.kMaxLength||2147483647;exports.alloc=function alloc(size,fill,encoding){if(typeof Buffer.alloc==='function'){return Buffer.alloc(size,fill,encoding);}if(typeof encoding==='number'){throw new TypeError('encoding must not be number');}if(typeof size!=='number'){throw new TypeError('size must be a number');}if(size>MAX_LEN){throw new RangeError('size is too large');}var enc=encoding;var _fill=fill;if(_fill===undefined){enc=undefined;_fill=0;}var buf=new Buffer(size);if(typeof _fill==='string'){var fillBuf=new Buffer(_fill,enc);var flen=fillBuf.length;var i=-1;while(++iMAX_LEN){throw new RangeError('size is too large');}return new Buffer(size);};exports.from=function from(value,encodingOrOffset,length){if(typeof Buffer.from==='function'&&(!global.Uint8Array||Uint8Array.from!==Buffer.from)){return Buffer.from(value,encodingOrOffset,length);}if(typeof value==='number'){throw new TypeError('"value" argument must not be a number');}if(typeof value==='string'){return new Buffer(value,encodingOrOffset);}if(typeof ArrayBuffer!=='undefined'&&value instanceof ArrayBuffer){var offset=encodingOrOffset;if(arguments.length===1){return new Buffer(value);}if(typeof offset==='undefined'){offset=0;}var len=length;if(typeof len==='undefined'){len=value.byteLength-offset;}if(offset>=value.byteLength){throw new RangeError('\'offset\' is out of bounds');}if(len>value.byteLength-offset){throw new RangeError('\'length\' is out of bounds');}return new Buffer(value.slice(offset,offset+len));}if(Buffer.isBuffer(value)){var out=new Buffer(value.length);value.copy(out,0,0,value.length);return out;}if(value){if(Array.isArray(value)||typeof ArrayBuffer!=='undefined'&&value.buffer instanceof ArrayBuffer||'length'in value){return new Buffer(value);}if(value.type==='Buffer'&&Array.isArray(value.data)){return new Buffer(value.data);}}throw new TypeError('First argument must be a string, Buffer, '+'ArrayBuffer, Array, or array-like object.');};exports.allocUnsafeSlow=function allocUnsafeSlow(size){if(typeof Buffer.allocUnsafeSlow==='function'){return Buffer.allocUnsafeSlow(size);}if(typeof size!=='number'){throw new TypeError('size must be a number');}if(size>=MAX_LEN){throw new RangeError('size is too large');}return new SlowBuffer(size);}; -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(17))) - -/***/ }, -/* 45 */ /***/ function(module, exports) { "use strict"; @@ -1848,11 +1120,11 @@ assert.doesNotThrow=function(block,/*optional*/error,/*optional*/message){_throw */function arrayMap(array,iteratee){var index=-1,length=array==null?0:array.length,result=Array(length);while(++index) */type:_lib.customPropTypes.every([_lib.customPropTypes.demand(['control'])]),/** A field can specify its width in grid columns */width:_react.PropTypes.oneOf(FormField._meta.props.width)};exports.default=FormField; /***/ }, -/* 54 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -'use strict';// Copyright 2015 Joyent, Inc. -var assert=__webpack_require__(13);var util=__webpack_require__(10);function FingerprintFormatError(fp,format){if(Error.captureStackTrace)Error.captureStackTrace(this,FingerprintFormatError);this.name='FingerprintFormatError';this.fingerprint=fp;this.format=format;this.message='Fingerprint format is not supported, or is invalid: ';if(fp!==undefined)this.message+=' fingerprint = '+fp;if(format!==undefined)this.message+=' format = '+format;}util.inherits(FingerprintFormatError,Error);function InvalidAlgorithmError(alg){if(Error.captureStackTrace)Error.captureStackTrace(this,InvalidAlgorithmError);this.name='InvalidAlgorithmError';this.algorithm=alg;this.message='Algorithm "'+alg+'" is not supported';}util.inherits(InvalidAlgorithmError,Error);function KeyParseError(name,format,innerErr){if(Error.captureStackTrace)Error.captureStackTrace(this,KeyParseError);this.name='KeyParseError';this.format=format;this.keyName=name;this.innerErr=innerErr;this.message='Failed to parse '+name+' as a valid '+format+' format key: '+innerErr.message;}util.inherits(KeyParseError,Error);function SignatureParseError(type,format,innerErr){if(Error.captureStackTrace)Error.captureStackTrace(this,SignatureParseError);this.name='SignatureParseError';this.type=type;this.format=format;this.innerErr=innerErr;this.message='Failed to parse the given data as a '+type+' signature in '+format+' format: '+innerErr.message;}util.inherits(SignatureParseError,Error);function CertificateParseError(name,format,innerErr){if(Error.captureStackTrace)Error.captureStackTrace(this,CertificateParseError);this.name='CertificateParseError';this.format=format;this.certName=name;this.innerErr=innerErr;this.message='Failed to parse '+name+' as a valid '+format+' format certificate: '+innerErr.message;}util.inherits(CertificateParseError,Error);function KeyEncryptedError(name,format){if(Error.captureStackTrace)Error.captureStackTrace(this,KeyEncryptedError);this.name='KeyEncryptedError';this.format=format;this.keyName=name;this.message='The '+format+' format key '+name+' is '+'encrypted (password-protected), and no passphrase was '+'provided in `options`';}util.inherits(KeyEncryptedError,Error);module.exports={FingerprintFormatError:FingerprintFormatError,InvalidAlgorithmError:InvalidAlgorithmError,KeyParseError:KeyParseError,SignatureParseError:SignatureParseError,KeyEncryptedError:KeyEncryptedError,CertificateParseError:CertificateParseError}; - -/***/ }, -/* 55 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';// Copyright 2015 Joyent, Inc. -module.exports=Signature;var assert=__webpack_require__(13);var algs=__webpack_require__(25);var crypto=__webpack_require__(11);var errs=__webpack_require__(54);var utils=__webpack_require__(20);var asn1=__webpack_require__(56);var SSHBuffer=__webpack_require__(192);var InvalidAlgorithmError=errs.InvalidAlgorithmError;var SignatureParseError=errs.SignatureParseError;function Signature(opts){assert.object(opts,'options');assert.arrayOfObject(opts.parts,'options.parts');assert.string(opts.type,'options.type');var partLookup={};for(var i=0;i20&&r[0]===0x00)r=r.slice(1);s=this.part.s.data;if(s.length>20&&s[0]===0x00)s=s.slice(1);if(this.hashAlgorithm&&this.hashAlgorithm!=='sha1'||r.length+s.length!==40){throw new Error('OpenSSH only supports '+'DSA signatures with SHA1 hash');}buf.writeBuffer(Buffer.concat([r,s]));return buf.toBuffer();}else if(format==='ssh'&&this.type==='ecdsa'){var inner=new SSHBuffer({});r=this.part.r.data;inner.writeBuffer(r);inner.writePart(this.part.s);buf=new SSHBuffer({});/* XXX: find a more proper way to do this? */var curve;if(r[0]===0x00)r=r.slice(1);var sz=r.length*8;if(sz===256)curve='nistp256';else if(sz===384)curve='nistp384';else if(sz===528)curve='nistp521';buf.writeString('ecdsa-sha2-'+curve);buf.writeBuffer(inner.toBuffer());return buf.toBuffer();}throw new Error('Invalid signature format');default:throw new Error('Invalid signature data');}};Signature.prototype.toString=function(format){assert.optionalString(format,'format');return this.toBuffer(format).toString('base64');};Signature.parse=function(data,type,format){if(typeof data==='string')data=new Buffer(data,'base64');assert.buffer(data,'data');assert.string(format,'format');assert.string(type,'type');var opts={};opts.type=type.toLowerCase();opts.parts=[];try{assert.ok(data.length>0,'signature must not be empty');switch(opts.type){case'rsa':return parseOneNum(data,type,format,opts,'ssh-rsa');case'ed25519':return parseOneNum(data,type,format,opts,'ssh-ed25519');case'dsa':case'ecdsa':if(format==='asn1')return parseDSAasn1(data,type,format,opts);else if(opts.type==='dsa')return parseDSA(data,type,format,opts);else return parseECDSA(data,type,format,opts);default:throw new InvalidAlgorithmError(type);}}catch(e){if(e instanceof InvalidAlgorithmError)throw e;throw new SignatureParseError(type,format,e);}};function parseOneNum(data,type,format,opts,headType){if(format==='ssh'){try{var buf=new SSHBuffer({buffer:data});var head=buf.readString();}catch(e){/* fall through */}if(head===headType){var sig=buf.readPart();assert.ok(buf.atEnd(),'extra trailing bytes');sig.name='sig';opts.parts.push(sig);return new Signature(opts);}}opts.parts.push({name:'sig',data:data});return new Signature(opts);}function parseDSAasn1(data,type,format,opts){var der=new asn1.BerReader(data);der.readSequence();var r=der.readString(asn1.Ber.Integer,true);var s=der.readString(asn1.Ber.Integer,true);opts.parts.push({name:'r',data:utils.mpNormalize(r)});opts.parts.push({name:'s',data:utils.mpNormalize(s)});return new Signature(opts);}function parseDSA(data,type,format,opts){if(data.length!=40){var buf=new SSHBuffer({buffer:data});var d=buf.readBuffer();if(d.toString('ascii')==='ssh-dss')d=buf.readBuffer();assert.ok(buf.atEnd(),'extra trailing bytes');assert.strictEqual(d.length,40,'invalid inner length');data=d;}opts.parts.push({name:'r',data:data.slice(0,20)});opts.parts.push({name:'s',data:data.slice(20,40)});return new Signature(opts);}function parseECDSA(data,type,format,opts){var buf=new SSHBuffer({buffer:data});var r,s;var inner=buf.readBuffer();if(inner.toString('ascii').match(/^ecdsa-/)){inner=buf.readBuffer();assert.ok(buf.atEnd(),'extra trailing bytes on outer');buf=new SSHBuffer({buffer:inner});r=buf.readPart();}else{r={data:inner};}s=buf.readPart();assert.ok(buf.atEnd(),'extra trailing bytes');r.name='r';s.name='s';opts.parts.push(r);opts.parts.push(s);return new Signature(opts);}Signature.isSignature=function(obj,ver){return utils.isCompatible(obj,Signature,ver);};/* - * API versions for Signature: - * [1,0] -- initial ver - * [2,0] -- support for rsa in full ssh format, compat with sshpk-agent - * hashAlgorithm property - * [2,1] -- first tagged version - */Signature.prototype._sshpkApiVersion=[2,1];Signature._oldVersionDetect=function(obj){assert.func(obj.toBuffer);if(obj.hasOwnProperty('hashAlgorithm'))return[2,0];return[1,0];}; -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer)) - -/***/ }, +/* 53 */, +/* 54 */, +/* 55 */, /* 56 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -'use strict';// Copyright 2011 Mark Cavage All rights reserved. -// If you have no idea what ASN.1 or BER is, see this: -// ftp://ftp.rsa.com/pub/pkcs/ascii/layman.asc -var Ber=__webpack_require__(573);///--- Exported API -module.exports={Ber:Ber,BerReader:Ber.Reader,BerWriter:Ber.Writer}; - -/***/ }, -/* 57 */ /***/ function(module, exports) { "use strict"; @@ -2080,7 +1314,7 @@ var lastComponent=components[componentLen-1];if(componentLen>1&&(lastComponent.a //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9kaWZmL2Jhc2UuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IndHQUF3QixBLEtBQVQsUUFBUyxBQUFULE9BQWdCLEFBQUUsRUFFakMsS0FBSyxBQUFMLFVBQWlCLEMsZ0RBQ2YsQUFEZSxtQkFDVixBQURVLFVBQ0MsQUFERCxVQUMwQiwwQkFBQSxHLHVCQUFkLEFBQWMsc0RBQUosQUFBSSxhQUN2QyxNQUFJLFVBQVcsUUFBUSxBQUF2QixBQUNBLFlBQUksTUFBTyxBQUFQLFdBQW1CLEFBQXZCLFdBQW1DLEFBQ2pDLFVBQVcsQUFBWCxBQUNBLGdCQUFVLEFBQVYsQUFDRCxHQUNELE1BQUssQUFBTCxRQUFlLEFBQWYsQUFFQSxXQUFJLE1BQU8sQUFBWCxBQUVBLGFBQVMsQUFBVCxNQUFjLEFBQWQsTUFBcUIsQUFDbkIsSUFBSSxBQUFKLFNBQWMsQUFDWixZQUFXLFVBQVcsQUFBRSxVQUFTLEFBQVQsVUFBb0IsQUFBcEIsQUFBNkIsT0FBckQsRUFBdUQsQUFBdkQsQUFDQSxTQUFPLEFBQVAsQUFDRCxNQUhELEtBR08sQUFDTCxPQUFPLEFBQVAsQUFDRCxPQUNGLEVBR0Q7VUFBWSxLQUFLLEFBQUwsVUFBZSxBQUFmLEFBQVosQUFDQSxxQkFBWSxLQUFLLEFBQUwsVUFBZSxBQUFmLEFBQVosQUFFQSxxQkFBWSxLQUFLLEFBQUwsWUFBaUIsS0FBSyxBQUFMLFNBQWMsQUFBZCxBQUFqQixBQUFaLEFBQ0Esc0JBQVksS0FBSyxBQUFMLFlBQWlCLEtBQUssQUFBTCxTQUFjLEFBQWQsQUFBakIsQUFBWixBQUVBLGVBQUksUUFBUyxVQUFVLEFBQXZCLE9BQStCLE9BQVMsVUFBVSxBQUFsRCxBQUNBLFVBQUksWUFBYSxBQUFqQixBQUNBLEtBQUksZUFBZ0IsT0FBUyxBQUE3QixBQUNBLFVBQUksVUFBVyxDQUFDLENBQUUsT0FBUSxDQUFDLEFBQVgsRUFBYyxXQUFZLEFBQTFCLEFBQUQsQUFBZixLQUdBO0dBQUksUUFBUyxLQUFLLEFBQUwsY0FBbUIsU0FBUyxBQUFULEFBQW5CLEdBQWdDLEFBQWhDLFVBQTJDLEFBQTNDLFVBQXNELEFBQXRELEFBQWIsQUFDQSxNQUFJLFNBQVMsQUFBVCxHQUFZLEFBQVosT0FBcUIsQUFBckIsR0FBMEIsQUFBMUIsUUFBb0MsT0FBUyxBQUFULEdBQWMsQUFBdEQsT0FBOEQsQ0FFNUQ7TUFBTyxNQUFLLENBQUMsQ0FBQyxNQUFPLEtBQUssQUFBTCxLQUFVLEFBQVYsQUFBUixXQUE4QixNQUFPLFVBQVUsQUFBL0MsQUFBRCxBQUFMLEFBQVAsQUFDRCxXQUdEO1FBQVMsQUFBVCxpQkFBMEIsQUFDeEIsS0FBSyxHQUFJLGNBQWUsQ0FBQyxBQUFELEVBQUssQUFBN0IsV0FBeUMsY0FBZ0IsQUFBekQsV0FBcUUsY0FBZ0IsQUFBckYsRUFBd0YsQUFDdEYsSUFBSSxVLHlCQUFBLEksRUFBSixBQUNBLDJCQUFJLFNBQVUsU0FBUyxhQUFlLEFBQXhCLEFBQWQsR0FDSSxXQUFhLFNBQVMsYUFBZSxBQUF4QixBQURqQixHQUVJLFFBQVMsQ0FBQyxXQUFhLFdBQVcsQUFBeEIsT0FBaUMsQUFBbEMsR0FBdUMsQUFGcEQsQUFHQSxnQkFBSSxBQUFKLFFBQWEsQ0FFWDtTQUFTLGFBQWUsQUFBeEIsR0FBNkIsQUFBN0IsQUFDRCxVQUVELElBQUksUUFBUyxTQUFXLFFBQVEsQUFBUixPQUFpQixBQUFqQixFQUFxQixBQUE3QyxPQUNJLFVBQVksWUFBYyxHQUFLLEFBQW5CLFNBQTZCLFFBQVMsQUFEdEQsQUFFQSxVQUFJLENBQUMsQUFBRCxRQUFXLENBQUMsQUFBaEIsVUFBMkIsQ0FFekI7U0FBUyxBQUFULGNBQXlCLEFBQXpCLEFBQ0EsVUFDRDs7QUFLRDtHQUFJLENBQUMsQUFBRCxRQUFZLFdBQWEsUUFBUSxBQUFSLE9BQWlCLFdBQVcsQUFBekQsT0FBa0UsQUFDaEUsVUFBVyxVQUFVLEFBQVYsQUFBWCxBQUNBLGlCQUFLLEFBQUwsY0FBbUIsU0FBUyxBQUE1QixXQUF3QyxBQUF4QyxVQUFtRCxBQUFuRCxBQUNELE1BSEQsS0FHTyxBQUNMLFVBQVcsQUFBWCxBLFFBQ0E7U0FBUyxBQUFULEFBQ0EsY0FBSyxBQUFMLGNBQW1CLFNBQVMsQUFBNUIsV0FBd0MsQUFBeEMsS0FBOEMsQUFBOUMsQUFDRCxXQUVELFNBQVMsS0FBSyxBQUFMLGNBQW1CLEFBQW5CLFNBQTZCLEFBQTdCLFVBQXdDLEFBQXhDLFVBQW1ELEFBQW5ELEFBQVQsY0FHQTtHQUFJLFNBQVMsQUFBVCxPQUFrQixBQUFsQixHQUF1QixBQUF2QixRQUFpQyxRQUFTLEFBQVQsR0FBYyxBQUFuRCxPQUEyRCxBQUN6RCxPQUFPLE1BQUssWUFBWSxBQUFaLEtBQWtCLFNBQVMsQUFBM0IsV0FBdUMsQUFBdkMsVUFBa0QsQUFBbEQsVUFBNkQsS0FBSyxBQUFsRSxBQUFMLEFBQVAsQUFDRCxrQkFGRCxLQUVPLENBRUw7U0FBUyxBQUFULGNBQXlCLEFBQXpCLEFBQ0QsU0FDRixDQUVELENBQ0Q7O0FBS0Q7R0FBSSxBQUFKLFNBQWMsQUFDWCxVQUFTLEFBQVQsT0FBZ0IsQUFDZixZQUFXLFVBQVc7QUFHcEIsNkJBQUksV0FBYSxBQUFqQixjQUFnQyxBQUM5QixPQUFPLEFBQVAsQUFDRCxZQUVELElBQUksQ0FBQyxBQUFMLGlCQUF1QixBQUNyQixDQUNELE9BQ0YsQ0FWRCxFQVVHLEFBVkgsQUFXRCxHQVpBLEFBQUQsQUFhRCxLQWRELEtBY08sQUFDTCxPQUFPLFlBQWMsQUFBckIsY0FBb0MsQUFDbEMsSUFBSSxLQUFNLEFBQVYsQUFDQSxvQkFBSSxBQUFKLElBQVMsQUFDUCxPQUFPLEFBQVAsQUFDRCxLQUNGLENBQ0YsQ0FDRixDQTlHYyxrREFnSGYsQUFoSGUscUNBZ0hELEFBaEhDLFdBZ0hXLEFBaEhYLE1BZ0hrQixBQWhIbEIsUUFnSDJCLEFBQ3hDLElBQUksTUFBTyxXQUFXLFdBQVcsQUFBWCxPQUFvQixBQUEvQixBQUFYLEFBQ0EsTUFBSSxNQUFRLEtBQUssQUFBTCxRQUFlLEFBQXZCLE9BQWdDLEtBQUssQUFBTCxVQUFpQixBQUFyRCxRQUE4RDtBQUc1RDtXQUFXLFdBQVcsQUFBWCxPQUFvQixBQUEvQixHQUFvQyxDQUFDLE1BQU8sS0FBSyxBQUFMLE1BQWEsQUFBckIsRUFBd0IsTUFBTyxBQUEvQixNQUFzQyxRQUFTLEFBQS9DLEFBQXBDLEFBQ0QsU0FKRCxLQUlPLEFBQ0wsWUFBVyxBQUFYLEtBQWdCLENBQUMsTUFBTyxBQUFSLEVBQVcsTUFBTyxBQUFsQixNQUF5QixRQUFTLEFBQWxDLEFBQWhCLEFBQ0QsVUFDRixDQXpIYyxrREEwSGYsQUExSGUscUNBMEhELEFBMUhDLFNBMEhTLEFBMUhULFVBMEhvQixBQTFIcEIsVUEwSCtCLEFBMUgvQixhQTBINkMsQUFDMUQsSUFBSSxRQUFTLFVBQVUsQUFBdkIsT0FDSSxPQUFTLFVBQVUsQUFEdkIsT0FFSSxPQUFTLFNBQVMsQUFGdEIsT0FHSSxPQUFTLE9BQVMsQUFIdEIsYUFLSSxZQUFjLEFBTGxCLEFBTUEsUUFBTyxPQUFTLEFBQVQsRUFBYSxBQUFiLFFBQXVCLE9BQVMsQUFBVCxFQUFhLEFBQXBDLFFBQThDLEtBQUssQUFBTCxPQUFZLFVBQVUsT0FBUyxBQUFuQixBQUFaLEdBQW1DLFVBQVUsT0FBUyxBQUFuQixBQUFuQyxBQUFyRCxJQUFnSCxBQUM5RyxDQUNBLFNBQ0EsU0FDRCxjQUVELElBQUksQUFBSixZQUFpQixBQUNmLFVBQVMsQUFBVCxXQUFvQixBQUFwQixLQUF5QixDQUFDLE1BQU8sQUFBUixBQUF6QixBQUNELGNBRUQsVUFBUyxBQUFULE9BQWtCLEFBQWxCLEFBQ0EsYUFBTyxBQUFQLEFBQ0QsUUE3SWMsa0RBK0lmLEFBL0llLHVCQStJUixBQS9JUSxLQStJRixBQS9JRSxNQStJSyxBQUNsQixPQUFPLFFBQVMsQUFBaEIsQUFDRCxNQWpKYyxrREFrSmYsQUFsSmUsaUNBa0pILEFBbEpHLE1Ba0pJLEFBQ2pCLElBQUksS0FBTSxBQUFWLEFBQ0EsT0FBSyxHQUFJLEdBQUksQUFBYixFQUFnQixFQUFJLE1BQU0sQUFBMUIsT0FBa0MsQUFBbEMsSUFBdUMsQUFDckMsSUFBSSxNQUFNLEFBQU4sQUFBSixHQUFjLEFBQ1osS0FBSSxBQUFKLEtBQVMsTUFBTSxBQUFOLEFBQVQsQUFDRCxJQUNGLENBQ0QsT0FBTyxBQUFQLEFBQ0QsS0ExSmMsa0RBMkpmLEFBM0plLDZCQTJKTCxBQTNKSyxNQTJKRSxBQUNmLE9BQU8sQUFBUCxBQUNELE9BN0pjLGtEQThKZixBQTlKZSwyQkE4Sk4sQUE5Sk0sTUE4SkMsQUFDZCxPQUFPLE9BQU0sQUFBTixNQUFZLEFBQVosQUFBUCxBQUNELElBaEtjLGtEQWlLZixBQWpLZSxtQkFpS1YsQUFqS1UsTUFpS0gsQUFDVixPQUFPLE9BQU0sQUFBTixLQUFXLEFBQVgsQUFBUCxBQUNELElBbktjLEFBQWpCLEdBc0tBLFFBQVMsQUFBVCxhQUFxQixBQUFyQixLQUEyQixBQUEzQixXQUF1QyxBQUF2QyxVQUFrRCxBQUFsRCxVQUE2RCxBQUE3RCxnQkFBOEUsQUFDNUUsSUFBSSxjQUFlLEFBQW5CLEVBQ0ksYUFBZSxXQUFXLEFBRDlCLE9BRUksT0FBUyxBQUZiLEVBR0ksT0FBUyxBQUhiLEFBS0EsT0FBTyxhQUFlLEFBQXRCLGFBQW9DLEFBQXBDLGVBQW9ELEFBQ2xELElBQUksV0FBWSxXQUFXLEFBQVgsQUFBaEIsQUFDQSxpQkFBSSxDQUFDLFVBQVUsQUFBZixRQUF3QixBQUN0QixJQUFJLENBQUMsVUFBVSxBQUFYLE9BQW9CLEFBQXhCLGdCQUF5QyxBQUN2QyxJQUFJLE9BQVEsVUFBVSxBQUFWLE1BQWdCLEFBQWhCLE9BQXdCLE9BQVMsVUFBVSxBQUEzQyxBQUFaLEFBQ0EsYUFBUSxNQUFNLEFBQU4sSUFBVSxTQUFTLEFBQVQsTUFBZ0IsQUFBaEIsRUFBbUIsQUFDbkMsSUFBSSxVQUFXLFVBQVUsT0FBUyxBQUFuQixBQUFmLEFBQ0EsU0FBTyxVQUFTLEFBQVQsT0FBa0IsTUFBTSxBQUF4QixPQUFpQyxBQUFqQyxTQUE0QyxBQUFuRCxBQUNELE1BSE8sQUFBUixBQUtBLGFBQVUsQUFBVixNQUFrQixLQUFLLEFBQUwsS0FBVSxBQUFWLEFBQWxCLEFBQ0QsT0FSRCxLQVFPLEFBQ0wsV0FBVSxBQUFWLE1BQWtCLEtBQUssQUFBTCxLQUFVLFVBQVUsQUFBVixNQUFnQixBQUFoQixPQUF3QixPQUFTLFVBQVUsQUFBM0MsQUFBVixBQUFsQixBQUNELFFBQ0QsU0FBVSxVQUFVLEFBQXBCLE1BR0E7R0FBSSxDQUFDLFVBQVUsQUFBZixNQUFzQixBQUNwQixTQUFVLFVBQVUsQUFBcEIsQUFDRCxNQUNGLENBbEJELEtBa0JPLEFBQ0wsV0FBVSxBQUFWLE1BQWtCLEtBQUssQUFBTCxLQUFVLFVBQVUsQUFBVixNQUFnQixBQUFoQixPQUF3QixPQUFTLFVBQVUsQUFBM0MsQUFBVixBQUFsQixBQUNBLGdCQUFVLFVBQVUsQUFBcEI7O0FBS0E7R0FBSSxjQUFnQixXQUFXLGFBQWUsQUFBMUIsR0FBNkIsQUFBakQsTUFBd0QsQUFDdEQsSUFBSSxLQUFNLFdBQVcsYUFBZSxBQUExQixBQUFWLEFBQ0EsY0FBVyxhQUFlLEFBQTFCLEdBQStCLFdBQVcsQUFBWCxBQUEvQixBQUNBLHlCQUFXLEFBQVgsY0FBMkIsQUFBM0IsQUFDRCxJQUNGLENBQ0Y7QUFJRDtHQUFJLGVBQWdCLFdBQVcsYUFBZSxBQUExQixBQUFwQixBQUNBLE1BQUksYUFBZSxBQUFmLElBQ0ksY0FBYyxBQUFkLE9BQXVCLGNBQWMsQUFEekMsVUFFRyxLQUFLLEFBQUwsT0FBWSxBQUFaLEdBQWdCLGNBQWMsQUFBOUIsQUFGUCxPQUU2QyxBQUMzQyxZQUFXLGFBQWUsQUFBMUIsR0FBNkIsQUFBN0IsT0FBc0MsY0FBYyxBQUFwRCxBQUNBLGlCQUFXLEFBQVgsQUFDRCxNQUVELE9BQU8sQUFBUCxBQUNELGFBRUQsUUFBUyxBQUFULFdBQW1CLEFBQW5CLEtBQXlCLEFBQ3ZCLE9BQU8sQ0FBRSxPQUFRLEtBQUssQUFBZixPQUF1QixXQUFZLEtBQUssQUFBTCxXQUFnQixBQUFoQixNQUFzQixBQUF0QixBQUFuQyxBQUFQLEFBQ0QiLCJmaWxlIjoiYmFzZS5qcyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBkZWZhdWx0IGZ1bmN0aW9uIERpZmYoKSB7fVxuXG5EaWZmLnByb3RvdHlwZSA9IHtcbiAgZGlmZihvbGRTdHJpbmcsIG5ld1N0cmluZywgb3B0aW9ucyA9IHt9KSB7XG4gICAgbGV0IGNhbGxiYWNrID0gb3B0aW9ucy5jYWxsYmFjaztcbiAgICBpZiAodHlwZW9mIG9wdGlvbnMgPT09ICdmdW5jdGlvbicpIHtcbiAgICAgIGNhbGxiYWNrID0gb3B0aW9ucztcbiAgICAgIG9wdGlvbnMgPSB7fTtcbiAgICB9XG4gICAgdGhpcy5vcHRpb25zID0gb3B0aW9ucztcblxuICAgIGxldCBzZWxmID0gdGhpcztcblxuICAgIGZ1bmN0aW9uIGRvbmUodmFsdWUpIHtcbiAgICAgIGlmIChjYWxsYmFjaykge1xuICAgICAgICBzZXRUaW1lb3V0KGZ1bmN0aW9uKCkgeyBjYWxsYmFjayh1bmRlZmluZWQsIHZhbHVlKTsgfSwgMCk7XG4gICAgICAgIHJldHVybiB0cnVlO1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgcmV0dXJuIHZhbHVlO1xuICAgICAgfVxuICAgIH1cblxuICAgIC8vIEFsbG93IHN1YmNsYXNzZXMgdG8gbWFzc2FnZSB0aGUgaW5wdXQgcHJpb3IgdG8gcnVubmluZ1xuICAgIG9sZFN0cmluZyA9IHRoaXMuY2FzdElucHV0KG9sZFN0cmluZyk7XG4gICAgbmV3U3RyaW5nID0gdGhpcy5jYXN0SW5wdXQobmV3U3RyaW5nKTtcblxuICAgIG9sZFN0cmluZyA9IHRoaXMucmVtb3ZlRW1wdHkodGhpcy50b2tlbml6ZShvbGRTdHJpbmcpKTtcbiAgICBuZXdTdHJpbmcgPSB0aGlzLnJlbW92ZUVtcHR5KHRoaXMudG9rZW5pemUobmV3U3RyaW5nKSk7XG5cbiAgICBsZXQgbmV3TGVuID0gbmV3U3RyaW5nLmxlbmd0aCwgb2xkTGVuID0gb2xkU3RyaW5nLmxlbmd0aDtcbiAgICBsZXQgZWRpdExlbmd0aCA9IDE7XG4gICAgbGV0IG1heEVkaXRMZW5ndGggPSBuZXdMZW4gKyBvbGRMZW47XG4gICAgbGV0IGJlc3RQYXRoID0gW3sgbmV3UG9zOiAtMSwgY29tcG9uZW50czogW10gfV07XG5cbiAgICAvLyBTZWVkIGVkaXRMZW5ndGggPSAwLCBpLmUuIHRoZSBjb250ZW50IHN0YXJ0cyB3aXRoIHRoZSBzYW1lIHZhbHVlc1xuICAgIGxldCBvbGRQb3MgPSB0aGlzLmV4dHJhY3RDb21tb24oYmVzdFBhdGhbMF0sIG5ld1N0cmluZywgb2xkU3RyaW5nLCAwKTtcbiAgICBpZiAoYmVzdFBhdGhbMF0ubmV3UG9zICsgMSA+PSBuZXdMZW4gJiYgb2xkUG9zICsgMSA+PSBvbGRMZW4pIHtcbiAgICAgIC8vIElkZW50aXR5IHBlciB0aGUgZXF1YWxpdHkgYW5kIHRva2VuaXplclxuICAgICAgcmV0dXJuIGRvbmUoW3t2YWx1ZTogdGhpcy5qb2luKG5ld1N0cmluZyksIGNvdW50OiBuZXdTdHJpbmcubGVuZ3RofV0pO1xuICAgIH1cblxuICAgIC8vIE1haW4gd29ya2VyIG1ldGhvZC4gY2hlY2tzIGFsbCBwZXJtdXRhdGlvbnMgb2YgYSBnaXZlbiBlZGl0IGxlbmd0aCBmb3IgYWNjZXB0YW5jZS5cbiAgICBmdW5jdGlvbiBleGVjRWRpdExlbmd0aCgpIHtcbiAgICAgIGZvciAobGV0IGRpYWdvbmFsUGF0aCA9IC0xICogZWRpdExlbmd0aDsgZGlhZ29uYWxQYXRoIDw9IGVkaXRMZW5ndGg7IGRpYWdvbmFsUGF0aCArPSAyKSB7XG4gICAgICAgIGxldCBiYXNlUGF0aDtcbiAgICAgICAgbGV0IGFkZFBhdGggPSBiZXN0UGF0aFtkaWFnb25hbFBhdGggLSAxXSxcbiAgICAgICAgICAgIHJlbW92ZVBhdGggPSBiZXN0UGF0aFtkaWFnb25hbFBhdGggKyAxXSxcbiAgICAgICAgICAgIG9sZFBvcyA9IChyZW1vdmVQYXRoID8gcmVtb3ZlUGF0aC5uZXdQb3MgOiAwKSAtIGRpYWdvbmFsUGF0aDtcbiAgICAgICAgaWYgKGFkZFBhdGgpIHtcbiAgICAgICAgICAvLyBObyBvbmUgZWxzZSBpcyBnb2luZyB0byBhdHRlbXB0IHRvIHVzZSB0aGlzIHZhbHVlLCBjbGVhciBpdFxuICAgICAgICAgIGJlc3RQYXRoW2RpYWdvbmFsUGF0aCAtIDFdID0gdW5kZWZpbmVkO1xuICAgICAgICB9XG5cbiAgICAgICAgbGV0IGNhbkFkZCA9IGFkZFBhdGggJiYgYWRkUGF0aC5uZXdQb3MgKyAxIDwgbmV3TGVuLFxuICAgICAgICAgICAgY2FuUmVtb3ZlID0gcmVtb3ZlUGF0aCAmJiAwIDw9IG9sZFBvcyAmJiBvbGRQb3MgPCBvbGRMZW47XG4gICAgICAgIGlmICghY2FuQWRkICYmICFjYW5SZW1vdmUpIHtcbiAgICAgICAgICAvLyBJZiB0aGlzIHBhdGggaXMgYSB0ZXJtaW5hbCB0aGVuIHBydW5lXG4gICAgICAgICAgYmVzdFBhdGhbZGlhZ29uYWxQYXRoXSA9IHVuZGVmaW5lZDtcbiAgICAgICAgICBjb250aW51ZTtcbiAgICAgICAgfVxuXG4gICAgICAgIC8vIFNlbGVjdCB0aGUgZGlhZ29uYWwgdGhhdCB3ZSB3YW50IHRvIGJyYW5jaCBmcm9tLiBXZSBzZWxlY3QgdGhlIHByaW9yXG4gICAgICAgIC8vIHBhdGggd2hvc2UgcG9zaXRpb24gaW4gdGhlIG5ldyBzdHJpbmcgaXMgdGhlIGZhcnRoZXN0IGZyb20gdGhlIG9yaWdpblxuICAgICAgICAvLyBhbmQgZG9lcyBub3QgcGFzcyB0aGUgYm91bmRzIG9mIHRoZSBkaWZmIGdyYXBoXG4gICAgICAgIGlmICghY2FuQWRkIHx8IChjYW5SZW1vdmUgJiYgYWRkUGF0aC5uZXdQb3MgPCByZW1vdmVQYXRoLm5ld1BvcykpIHtcbiAgICAgICAgICBiYXNlUGF0aCA9IGNsb25lUGF0aChyZW1vdmVQYXRoKTtcbiAgICAgICAgICBzZWxmLnB1c2hDb21wb25lbnQoYmFzZVBhdGguY29tcG9uZW50cywgdW5kZWZpbmVkLCB0cnVlKTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICBiYXNlUGF0aCA9IGFkZFBhdGg7ICAgLy8gTm8gbmVlZCB0byBjbG9uZSwgd2UndmUgcHVsbGVkIGl0IGZyb20gdGhlIGxpc3RcbiAgICAgICAgICBiYXNlUGF0aC5uZXdQb3MrKztcbiAgICAgICAgICBzZWxmLnB1c2hDb21wb25lbnQoYmFzZVBhdGguY29tcG9uZW50cywgdHJ1ZSwgdW5kZWZpbmVkKTtcbiAgICAgICAgfVxuXG4gICAgICAgIG9sZFBvcyA9IHNlbGYuZXh0cmFjdENvbW1vbihiYXNlUGF0aCwgbmV3U3RyaW5nLCBvbGRTdHJpbmcsIGRpYWdvbmFsUGF0aCk7XG5cbiAgICAgICAgLy8gSWYgd2UgaGF2ZSBoaXQgdGhlIGVuZCBvZiBib3RoIHN0cmluZ3MsIHRoZW4gd2UgYXJlIGRvbmVcbiAgICAgICAgaWYgKGJhc2VQYXRoLm5ld1BvcyArIDEgPj0gbmV3TGVuICYmIG9sZFBvcyArIDEgPj0gb2xkTGVuKSB7XG4gICAgICAgICAgcmV0dXJuIGRvbmUoYnVpbGRWYWx1ZXMoc2VsZiwgYmFzZVBhdGguY29tcG9uZW50cywgbmV3U3RyaW5nLCBvbGRTdHJpbmcsIHNlbGYudXNlTG9uZ2VzdFRva2VuKSk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgLy8gT3RoZXJ3aXNlIHRyYWNrIHRoaXMgcGF0aCBhcyBhIHBvdGVudGlhbCBjYW5kaWRhdGUgYW5kIGNvbnRpbnVlLlxuICAgICAgICAgIGJlc3RQYXRoW2RpYWdvbmFsUGF0aF0gPSBiYXNlUGF0aDtcbiAgICAgICAgfVxuICAgICAgfVxuXG4gICAgICBlZGl0TGVuZ3RoKys7XG4gICAgfVxuXG4gICAgLy8gUGVyZm9ybXMgdGhlIGxlbmd0aCBvZiBlZGl0IGl0ZXJhdGlvbi4gSXMgYSBiaXQgZnVnbHkgYXMgdGhpcyBoYXMgdG8gc3VwcG9ydCB0aGVcbiAgICAvLyBzeW5jIGFuZCBhc3luYyBtb2RlIHdoaWNoIGlzIG5ldmVyIGZ1bi4gTG9vcHMgb3ZlciBleGVjRWRpdExlbmd0aCB1bnRpbCBhIHZhbHVlXG4gICAgLy8gaXMgcHJvZHVjZWQuXG4gICAgaWYgKGNhbGxiYWNrKSB7XG4gICAgICAoZnVuY3Rpb24gZXhlYygpIHtcbiAgICAgICAgc2V0VGltZW91dChmdW5jdGlvbigpIHtcbiAgICAgICAgICAvLyBUaGlzIHNob3VsZCBub3QgaGFwcGVuLCBidXQgd2Ugd2FudCB0byBiZSBzYWZlLlxuICAgICAgICAgIC8qIGlzdGFuYnVsIGlnbm9yZSBuZXh0ICovXG4gICAgICAgICAgaWYgKGVkaXRMZW5ndGggPiBtYXhFZGl0TGVuZ3RoKSB7XG4gICAgICAgICAgICByZXR1cm4gY2FsbGJhY2soKTtcbiAgICAgICAgICB9XG5cbiAgICAgICAgICBpZiAoIWV4ZWNFZGl0TGVuZ3RoKCkpIHtcbiAgICAgICAgICAgIGV4ZWMoKTtcbiAgICAgICAgICB9XG4gICAgICAgIH0sIDApO1xuICAgICAgfSgpKTtcbiAgICB9IGVsc2Uge1xuICAgICAgd2hpbGUgKGVkaXRMZW5ndGggPD0gbWF4RWRpdExlbmd0aCkge1xuICAgICAgICBsZXQgcmV0ID0gZXhlY0VkaXRMZW5ndGgoKTtcbiAgICAgICAgaWYgKHJldCkge1xuICAgICAgICAgIHJldHVybiByZXQ7XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG4gIH0sXG5cbiAgcHVzaENvbXBvbmVudChjb21wb25lbnRzLCBhZGRlZCwgcmVtb3ZlZCkge1xuICAgIGxldCBsYXN0ID0gY29tcG9uZW50c1tjb21wb25lbnRzLmxlbmd0aCAtIDFdO1xuICAgIGlmIChsYXN0ICYmIGxhc3QuYWRkZWQgPT09IGFkZGVkICYmIGxhc3QucmVtb3ZlZCA9PT0gcmVtb3ZlZCkge1xuICAgICAgLy8gV2UgbmVlZCB0byBjbG9uZSBoZXJlIGFzIHRoZSBjb21wb25lbnQgY2xvbmUgb3BlcmF0aW9uIGlzIGp1c3RcbiAgICAgIC8vIGFzIHNoYWxsb3cgYXJyYXkgY2xvbmVcbiAgICAgIGNvbXBvbmVudHNbY29tcG9uZW50cy5sZW5ndGggLSAxXSA9IHtjb3VudDogbGFzdC5jb3VudCArIDEsIGFkZGVkOiBhZGRlZCwgcmVtb3ZlZDogcmVtb3ZlZCB9O1xuICAgIH0gZWxzZSB7XG4gICAgICBjb21wb25lbnRzLnB1c2goe2NvdW50OiAxLCBhZGRlZDogYWRkZWQsIHJlbW92ZWQ6IHJlbW92ZWQgfSk7XG4gICAgfVxuICB9LFxuICBleHRyYWN0Q29tbW9uKGJhc2VQYXRoLCBuZXdTdHJpbmcsIG9sZFN0cmluZywgZGlhZ29uYWxQYXRoKSB7XG4gICAgbGV0IG5ld0xlbiA9IG5ld1N0cmluZy5sZW5ndGgsXG4gICAgICAgIG9sZExlbiA9IG9sZFN0cmluZy5sZW5ndGgsXG4gICAgICAgIG5ld1BvcyA9IGJhc2VQYXRoLm5ld1BvcyxcbiAgICAgICAgb2xkUG9zID0gbmV3UG9zIC0gZGlhZ29uYWxQYXRoLFxuXG4gICAgICAgIGNvbW1vbkNvdW50ID0gMDtcbiAgICB3aGlsZSAobmV3UG9zICsgMSA8IG5ld0xlbiAmJiBvbGRQb3MgKyAxIDwgb2xkTGVuICYmIHRoaXMuZXF1YWxzKG5ld1N0cmluZ1tuZXdQb3MgKyAxXSwgb2xkU3RyaW5nW29sZFBvcyArIDFdKSkge1xuICAgICAgbmV3UG9zKys7XG4gICAgICBvbGRQb3MrKztcbiAgICAgIGNvbW1vbkNvdW50Kys7XG4gICAgfVxuXG4gICAgaWYgKGNvbW1vbkNvdW50KSB7XG4gICAgICBiYXNlUGF0aC5jb21wb25lbnRzLnB1c2goe2NvdW50OiBjb21tb25Db3VudH0pO1xuICAgIH1cblxuICAgIGJhc2VQYXRoLm5ld1BvcyA9IG5ld1BvcztcbiAgICByZXR1cm4gb2xkUG9zO1xuICB9LFxuXG4gIGVxdWFscyhsZWZ0LCByaWdodCkge1xuICAgIHJldHVybiBsZWZ0ID09PSByaWdodDtcbiAgfSxcbiAgcmVtb3ZlRW1wdHkoYXJyYXkpIHtcbiAgICBsZXQgcmV0ID0gW107XG4gICAgZm9yIChsZXQgaSA9IDA7IGkgPCBhcnJheS5sZW5ndGg7IGkrKykge1xuICAgICAgaWYgKGFycmF5W2ldKSB7XG4gICAgICAgIHJldC5wdXNoKGFycmF5W2ldKTtcbiAgICAgIH1cbiAgICB9XG4gICAgcmV0dXJuIHJldDtcbiAgfSxcbiAgY2FzdElucHV0KHZhbHVlKSB7XG4gICAgcmV0dXJuIHZhbHVlO1xuICB9LFxuICB0b2tlbml6ZSh2YWx1ZSkge1xuICAgIHJldHVybiB2YWx1ZS5zcGxpdCgnJyk7XG4gIH0sXG4gIGpvaW4oY2hhcnMpIHtcbiAgICByZXR1cm4gY2hhcnMuam9pbignJyk7XG4gIH1cbn07XG5cbmZ1bmN0aW9uIGJ1aWxkVmFsdWVzKGRpZmYsIGNvbXBvbmVudHMsIG5ld1N0cmluZywgb2xkU3RyaW5nLCB1c2VMb25nZXN0VG9rZW4pIHtcbiAgbGV0IGNvbXBvbmVudFBvcyA9IDAsXG4gICAgICBjb21wb25lbnRMZW4gPSBjb21wb25lbnRzLmxlbmd0aCxcbiAgICAgIG5ld1BvcyA9IDAsXG4gICAgICBvbGRQb3MgPSAwO1xuXG4gIGZvciAoOyBjb21wb25lbnRQb3MgPCBjb21wb25lbnRMZW47IGNvbXBvbmVudFBvcysrKSB7XG4gICAgbGV0IGNvbXBvbmVudCA9IGNvbXBvbmVudHNbY29tcG9uZW50UG9zXTtcbiAgICBpZiAoIWNvbXBvbmVudC5yZW1vdmVkKSB7XG4gICAgICBpZiAoIWNvbXBvbmVudC5hZGRlZCAmJiB1c2VMb25nZXN0VG9rZW4pIHtcbiAgICAgICAgbGV0IHZhbHVlID0gbmV3U3RyaW5nLnNsaWNlKG5ld1BvcywgbmV3UG9zICsgY29tcG9uZW50LmNvdW50KTtcbiAgICAgICAgdmFsdWUgPSB2YWx1ZS5tYXAoZnVuY3Rpb24odmFsdWUsIGkpIHtcbiAgICAgICAgICBsZXQgb2xkVmFsdWUgPSBvbGRTdHJpbmdbb2xkUG9zICsgaV07XG4gICAgICAgICAgcmV0dXJuIG9sZFZhbHVlLmxlbmd0aCA+IHZhbHVlLmxlbmd0aCA/IG9sZFZhbHVlIDogdmFsdWU7XG4gICAgICAgIH0pO1xuXG4gICAgICAgIGNvbXBvbmVudC52YWx1ZSA9IGRpZmYuam9pbih2YWx1ZSk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICBjb21wb25lbnQudmFsdWUgPSBkaWZmLmpvaW4obmV3U3RyaW5nLnNsaWNlKG5ld1BvcywgbmV3UG9zICsgY29tcG9uZW50LmNvdW50KSk7XG4gICAgICB9XG4gICAgICBuZXdQb3MgKz0gY29tcG9uZW50LmNvdW50O1xuXG4gICAgICAvLyBDb21tb24gY2FzZVxuICAgICAgaWYgKCFjb21wb25lbnQuYWRkZWQpIHtcbiAgICAgICAgb2xkUG9zICs9IGNvbXBvbmVudC5jb3VudDtcbiAgICAgIH1cbiAgICB9IGVsc2Uge1xuICAgICAgY29tcG9uZW50LnZhbHVlID0gZGlmZi5qb2luKG9sZFN0cmluZy5zbGljZShvbGRQb3MsIG9sZFBvcyArIGNvbXBvbmVudC5jb3VudCkpO1xuICAgICAgb2xkUG9zICs9IGNvbXBvbmVudC5jb3VudDtcblxuICAgICAgLy8gUmV2ZXJzZSBhZGQgYW5kIHJlbW92ZSBzbyByZW1vdmVzIGFyZSBvdXRwdXQgZmlyc3QgdG8gbWF0Y2ggY29tbW9uIGNvbnZlbnRpb25cbiAgICAgIC8vIFRoZSBkaWZmaW5nIGFsZ29yaXRobSBpcyB0aWVkIHRvIGFkZCB0aGVuIHJlbW92ZSBvdXRwdXQgYW5kIHRoaXMgaXMgdGhlIHNpbXBsZXN0XG4gICAgICAvLyByb3V0ZSB0byBnZXQgdGhlIGRlc2lyZWQgb3V0cHV0IHdpdGggbWluaW1hbCBvdmVyaGVhZC5cbiAgICAgIGlmIChjb21wb25lbnRQb3MgJiYgY29tcG9uZW50c1tjb21wb25lbnRQb3MgLSAxXS5hZGRlZCkge1xuICAgICAgICBsZXQgdG1wID0gY29tcG9uZW50c1tjb21wb25lbnRQb3MgLSAxXTtcbiAgICAgICAgY29tcG9uZW50c1tjb21wb25lbnRQb3MgLSAxXSA9IGNvbXBvbmVudHNbY29tcG9uZW50UG9zXTtcbiAgICAgICAgY29tcG9uZW50c1tjb21wb25lbnRQb3NdID0gdG1wO1xuICAgICAgfVxuICAgIH1cbiAgfVxuXG4gIC8vIFNwZWNpYWwgY2FzZSBoYW5kbGUgZm9yIHdoZW4gb25lIHRlcm1pbmFsIGlzIGlnbm9yZWQuIEZvciB0aGlzIGNhc2Ugd2UgbWVyZ2UgdGhlXG4gIC8vIHRlcm1pbmFsIGludG8gdGhlIHByaW9yIHN0cmluZyBhbmQgZHJvcCB0aGUgY2hhbmdlLlxuICBsZXQgbGFzdENvbXBvbmVudCA9IGNvbXBvbmVudHNbY29tcG9uZW50TGVuIC0gMV07XG4gIGlmIChjb21wb25lbnRMZW4gPiAxXG4gICAgICAmJiAobGFzdENvbXBvbmVudC5hZGRlZCB8fCBsYXN0Q29tcG9uZW50LnJlbW92ZWQpXG4gICAgICAmJiBkaWZmLmVxdWFscygnJywgbGFzdENvbXBvbmVudC52YWx1ZSkpIHtcbiAgICBjb21wb25lbnRzW2NvbXBvbmVudExlbiAtIDJdLnZhbHVlICs9IGxhc3RDb21wb25lbnQudmFsdWU7XG4gICAgY29tcG9uZW50cy5wb3AoKTtcbiAgfVxuXG4gIHJldHVybiBjb21wb25lbnRzO1xufVxuXG5mdW5jdGlvbiBjbG9uZVBhdGgocGF0aCkge1xuICByZXR1cm4geyBuZXdQb3M6IHBhdGgubmV3UG9zLCBjb21wb25lbnRzOiBwYXRoLmNvbXBvbmVudHMuc2xpY2UoMCkgfTtcbn1cbiJdfQ== /***/ }, -/* 58 */ +/* 57 */ /***/ function(module, exports) { "use strict"; @@ -2105,11 +1339,11 @@ var lastComponent=components[componentLen-1];if(componentLen>1&&(lastComponent.a */"use strict";var keyOf=function keyOf(oneKeyObj){var key;for(key in oneKeyObj){if(!oneKeyObj.hasOwnProperty(key)){continue;}return key;}return null;};module.exports=keyOf; /***/ }, -/* 59 */ +/* 58 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var _Symbol=__webpack_require__(87),getRawTag=__webpack_require__(779),objectToString=__webpack_require__(810);/** `Object#toString` result references. */var nullTag='[object Null]',undefinedTag='[object Undefined]';/** Built-in value references. */var symToStringTag=_Symbol?_Symbol.toStringTag:undefined;/** +'use strict';var _Symbol=__webpack_require__(88),getRawTag=__webpack_require__(779),objectToString=__webpack_require__(810);/** `Object#toString` result references. */var nullTag='[object Null]',undefinedTag='[object Undefined]';/** Built-in value references. */var symToStringTag=_Symbol?_Symbol.toStringTag:undefined;/** * The base implementation of `getTag` without fallbacks for buggy environments. * * @private @@ -2118,11 +1352,11 @@ var lastComponent=components[componentLen-1];if(componentLen>1&&(lastComponent.a */function baseGetTag(value){if(value==null){return value===undefined?undefinedTag:nullTag;}value=Object(value);return symToStringTag&&symToStringTag in value?getRawTag(value):objectToString(value);}module.exports=baseGetTag; /***/ }, -/* 60 */ +/* 59 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var isSymbol=__webpack_require__(73);/** Used as references for various `Number` constants. */var INFINITY=1/0;/** +'use strict';var isSymbol=__webpack_require__(76);/** Used as references for various `Number` constants. */var INFINITY=1/0;/** * Converts `value` to a string key if it's not a string or symbol. * * @private @@ -2131,7 +1365,7 @@ var lastComponent=components[componentLen-1];if(componentLen>1&&(lastComponent.a */function toKey(value){if(typeof value=='string'||isSymbol(value)){return value;}var result=value+'';return result=='0'&&1/value==-INFINITY?'-0':result;}module.exports=toKey; /***/ }, -/* 61 */ +/* 60 */ /***/ function(module, exports) { "use strict"; @@ -2153,11 +1387,11 @@ var lastComponent=components[componentLen-1];if(componentLen>1&&(lastComponent.a */function identity(value){return value;}module.exports=identity; /***/ }, -/* 62 */ +/* 61 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var baseToString=__webpack_require__(351);/** +'use strict';var baseToString=__webpack_require__(353);/** * Converts `value` to a string. An empty string is returned for `null` * and `undefined` values. The sign of `-0` is preserved. * @@ -2180,17 +1414,17 @@ var lastComponent=components[componentLen-1];if(componentLen>1&&(lastComponent.a */function toString(value){return value==null?'':baseToString(value);}module.exports=toString; /***/ }, -/* 63 */ +/* 62 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -/* WEBPACK VAR INJECTION */(function(process) {'use strict';exports.__esModule=true;var _extends=Object.assign||function(target){for(var i=1;i * @@ -2200,17 +1434,46 @@ var lastComponent=components[componentLen-1];if(componentLen>1&&(lastComponent.a * * Note: This method is automatically used when you provide children * to a component. - */function createRoutesFromReactChildren(children,parentRoute){var routes=[];_react2['default'].Children.forEach(children,function(element){if(_react2['default'].isValidElement(element)){// Component classes may have a static create* method. + */function createRoutesFromReactChildren(children,parentRoute){var routes=[];_react2.default.Children.forEach(children,function(element){if(_react2.default.isValidElement(element)){// Component classes may have a static create* method. if(element.type.createRouteFromReactElement){var route=element.type.createRouteFromReactElement(element,parentRoute);if(route)routes.push(route);}else{routes.push(createRouteFromReactElement(element));}}});return routes;}/** * Creates and returns an array of routes from the given object which * may be a JSX route, a plain object route, or an array of either. */function createRoutes(routes){if(isReactChildren(routes)){routes=createRoutesFromReactChildren(routes);}else if(routes&&!Array.isArray(routes)){routes=[routes];}return routes;} + +/***/ }, +/* 63 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* WEBPACK VAR INJECTION */(function(process) {'use strict';exports.__esModule=true;exports.createPath=exports.parsePath=exports.getQueryStringValueFromPath=exports.stripQueryStringValueFromPath=exports.addQueryStringValueToPath=undefined;var _warning=__webpack_require__(64);var _warning2=_interopRequireDefault(_warning);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var addQueryStringValueToPath=exports.addQueryStringValueToPath=function addQueryStringValueToPath(path,key,value){var _parsePath=parsePath(path);var pathname=_parsePath.pathname;var search=_parsePath.search;var hash=_parsePath.hash;return createPath({pathname:pathname,search:search+(search.indexOf('?')===-1?'?':'&')+key+'='+value,hash:hash});};var stripQueryStringValueFromPath=exports.stripQueryStringValueFromPath=function stripQueryStringValueFromPath(path,key){var _parsePath2=parsePath(path);var pathname=_parsePath2.pathname;var search=_parsePath2.search;var hash=_parsePath2.hash;return createPath({pathname:pathname,search:search.replace(new RegExp('([?&])'+key+'=[a-zA-Z0-9]+(&?)'),function(match,prefix,suffix){return prefix==='?'?prefix:suffix;}),hash:hash});};var getQueryStringValueFromPath=exports.getQueryStringValueFromPath=function getQueryStringValueFromPath(path,key){var _parsePath3=parsePath(path);var search=_parsePath3.search;var match=search.match(new RegExp('[?&]'+key+'=([a-zA-Z0-9]+)'));return match&&match[1];};var extractPath=function extractPath(string){var match=string.match(/^(https?:)?\/\/[^\/]*/);return match==null?string:string.substring(match[0].length);};var parsePath=exports.parsePath=function parsePath(path){var pathname=extractPath(path);var search='';var hash='';process.env.NODE_ENV!=='production'?(0,_warning2.default)(path===pathname,'A path must be pathname + search + hash only, not a full URL like "%s"',path):void 0;var hashIndex=pathname.indexOf('#');if(hashIndex!==-1){hash=pathname.substring(hashIndex);pathname=pathname.substring(0,hashIndex);}var searchIndex=pathname.indexOf('?');if(searchIndex!==-1){search=pathname.substring(searchIndex);pathname=pathname.substring(0,searchIndex);}if(pathname==='')pathname='/';return{pathname:pathname,search:search,hash:hash};};var createPath=exports.createPath=function createPath(location){if(location==null||typeof location==='string')return location;var basename=location.basename;var pathname=location.pathname;var search=location.search;var hash=location.hash;var path=(basename||'')+pathname;if(search&&search!=='?')path+=search;if(hash)path+=hash;return path;}; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, /* 64 */ /***/ function(module, exports, __webpack_require__) { +"use strict"; +/* WEBPACK VAR INJECTION */(function(process) {/** + * Copyright 2014-2015, Facebook, Inc. + * All rights reserved. + * + * This source code is licensed under the BSD-style license found in the + * LICENSE file in the root directory of this source tree. An additional grant + * of patent rights can be found in the PATENTS file in the same directory. + */'use strict';/** + * Similar to invariant but only logs a warning if the condition is not met. + * This can be used to log issues in development environments in critical + * paths. Removing the logging code for production environments will keep the + * same logic and follow the same code paths. + */var warning=function warning(){};if(process.env.NODE_ENV!=='production'){warning=function warning(condition,format,args){var len=arguments.length;args=new Array(len>2?len-2:0);for(var key=2;keytmp.length)limit=tmp.length;o+=buf.write(tmp.slice(i,limit),o);buf[o++]=10;i=limit;}o+=buf.write('-----END '+header+'-----\n',o);return buf.slice(0,o);} -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer)) - -/***/ }, -/* 66 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -'use strict';// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. -var Buffer=__webpack_require__(4).Buffer;var isBufferEncoding=Buffer.isEncoding||function(encoding){switch(encoding&&encoding.toLowerCase()){case'hex':case'utf8':case'utf-8':case'ascii':case'binary':case'base64':case'ucs2':case'ucs-2':case'utf16le':case'utf-16le':case'raw':return true;default:return false;}};function assertEncoding(encoding){if(encoding&&!isBufferEncoding(encoding)){throw new Error('Unknown encoding: '+encoding);}}// StringDecoder provides an interface for efficiently splitting a series of -// buffers into a series of JS strings without breaking apart multi-byte -// characters. CESU-8 is handled as part of the UTF-8 encoding. -// -// @TODO Handling all encodings inside a single object makes it very difficult -// to reason about this code, so it should be split up in the future. -// @TODO There should be a utf8-strict encoding that rejects invalid UTF-8 code -// points as used by CESU-8. -var StringDecoder=exports.StringDecoder=function(encoding){this.encoding=(encoding||'utf8').toLowerCase().replace(/[-_]/,'');assertEncoding(encoding);switch(this.encoding){case'utf8':// CESU-8 represents each of Surrogate Pair by 3-bytes -this.surrogateSize=3;break;case'ucs2':case'utf16le':// UTF-16 represents each of Surrogate Pair by 2-bytes -this.surrogateSize=2;this.detectIncompleteChar=utf16DetectIncompleteChar;break;case'base64':// Base-64 stores 3 bytes in 4 chars, and pads the remainder. -this.surrogateSize=3;this.detectIncompleteChar=base64DetectIncompleteChar;break;default:this.write=passThroughWrite;return;}// Enough space to store all bytes of a single character. UTF-8 needs 4 -// bytes, but CESU-8 may require up to 6 (3 bytes per surrogate). -this.charBuffer=new Buffer(6);// Number of bytes received for the current incomplete multi-byte character. -this.charReceived=0;// Number of bytes expected for the current incomplete multi-byte character. -this.charLength=0;};// write decodes the given buffer and returns it as JS string that is -// guaranteed to not contain any partial multi-byte characters. Any partial -// character found at the end of the buffer is buffered up, and will be -// returned when calling write again with the remaining bytes. -// -// Note: Converting a Buffer containing an orphan surrogate to a String -// currently works, but converting a String to a Buffer (via `new Buffer`, or -// Buffer#write) will replace incomplete surrogates with the unicode -// replacement character. See https://codereview.chromium.org/121173009/ . -StringDecoder.prototype.write=function(buffer){var charStr='';// if our last write ended with an incomplete multibyte character -while(this.charLength){// determine how many remaining bytes this buffer has to offer for this char -var available=buffer.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:buffer.length;// add the new bytes to the char buffer -buffer.copy(this.charBuffer,this.charReceived,0,available);this.charReceived+=available;if(this.charReceived=0xD800&&charCode<=0xDBFF){this.charLength+=this.surrogateSize;charStr='';continue;}this.charReceived=this.charLength=0;// if there are no more bytes in this buffer, just emit our char -if(buffer.length===0){return charStr;}break;}// determine and set charLength / charReceived -this.detectIncompleteChar(buffer);var end=buffer.length;if(this.charLength){// buffer the incomplete character bytes we got -buffer.copy(this.charBuffer,0,buffer.length-this.charReceived,end);end-=this.charReceived;}charStr+=buffer.toString(this.encoding,0,end);var end=charStr.length-1;var charCode=charStr.charCodeAt(end);// CESU-8: lead surrogate (D800-DBFF) is also the incomplete character -if(charCode>=0xD800&&charCode<=0xDBFF){var size=this.surrogateSize;this.charLength+=size;this.charReceived+=size;this.charBuffer.copy(this.charBuffer,size,0,size);buffer.copy(this.charBuffer,0,0,size);return charStr.substring(0,end);}// or just emit the charStr -return charStr;};// detectIncompleteChar determines if there is an incomplete UTF-8 character at -// the end of the given buffer. If so, it sets this.charLength to the byte -// length that character, and sets this.charReceived to the number of bytes -// that are available for this character. -StringDecoder.prototype.detectIncompleteChar=function(buffer){// determine how many bytes we have to check at the end of this buffer -var i=buffer.length>=3?3:buffer.length;// Figure out if one of the last i bytes of our buffer announces an -// incomplete char. -for(;i>0;i--){var c=buffer[buffer.length-i];// See http://en.wikipedia.org/wiki/UTF-8#Description -// 110XXXXX -if(i==1&&c>>5==0x06){this.charLength=2;break;}// 1110XXXX -if(i<=2&&c>>4==0x0E){this.charLength=3;break;}// 11110XXX -if(i<=3&&c>>3==0x1E){this.charLength=4;break;}}this.charReceived=i;};StringDecoder.prototype.end=function(buffer){var res='';if(buffer&&buffer.length)res=this.write(buffer);if(this.charReceived){var cr=this.charReceived;var buf=this.charBuffer;var enc=this.encoding;res+=buf.slice(0,cr).toString(enc);}return res;};function passThroughWrite(buffer){return buffer.toString(this.encoding);}function utf16DetectIncompleteChar(buffer){this.charReceived=buffer.length%2;this.charLength=this.charReceived?2:0;}function base64DetectIncompleteChar(buffer){this.charReceived=buffer.length%3;this.charLength=this.charReceived?3:0;} - -/***/ }, -/* 67 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -// Copyright Joyent, Inc. and other Node contributors. -// -// Permission is hereby granted, free of charge, to any person obtaining a -// copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to permit -// persons to whom the Software is furnished to do so, subject to the -// following conditions: -// -// The above copyright notice and this permission notice shall be included -// in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN -// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, -// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR -// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE -// USE OR OTHER DEALINGS IN THE SOFTWARE. -'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};var punycode=__webpack_require__(238);var util=__webpack_require__(1160);exports.parse=urlParse;exports.resolve=urlResolve;exports.resolveObject=urlResolveObject;exports.format=urlFormat;exports.Url=Url;function Url(){this.protocol=null;this.slashes=null;this.auth=null;this.host=null;this.port=null;this.hostname=null;this.hash=null;this.search=null;this.query=null;this.pathname=null;this.path=null;this.href=null;}// Reference: RFC 3986, RFC 1808, RFC 2396 -// define these here so at least they only have to be -// compiled once on the first module load. -var protocolPattern=/^([a-z0-9.+-]+:)/i,portPattern=/:[0-9]*$/,// Special case for a simple path URL -simplePathPattern=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,// RFC 2396: characters reserved for delimiting URLs. -// We actually just auto-escape these. -delims=['<','>','"','`',' ','\r','\n','\t'],// RFC 2396: characters not allowed for various reasons. -unwise=['{','}','|','\\','^','`'].concat(delims),// Allowed by RFCs, but cause of XSS attacks. Always escape these. -autoEscape=['\''].concat(unwise),// Characters that are never ever allowed in a hostname. -// Note that any invalid chars are also handled, but these -// are the ones that are *expected* to be seen, so we fast-path -// them. -nonHostChars=['%','/','?',';','#'].concat(autoEscape),hostEndingChars=['/','?','#'],hostnameMaxLen=255,hostnamePartPattern=/^[+a-z0-9A-Z_-]{0,63}$/,hostnamePartStart=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,// protocols that can allow "unsafe" and "unwise" chars. -unsafeProtocol={'javascript':true,'javascript:':true},// protocols that never have a hostname. -hostlessProtocol={'javascript':true,'javascript:':true},// protocols that always contain a // bit. -slashedProtocol={'http':true,'https':true,'ftp':true,'gopher':true,'file':true,'http:':true,'https:':true,'ftp:':true,'gopher:':true,'file:':true},querystring=__webpack_require__(115);function urlParse(url,parseQueryString,slashesDenoteHost){if(url&&util.isObject(url)&&url instanceof Url)return url;var u=new Url();u.parse(url,parseQueryString,slashesDenoteHost);return u;}Url.prototype.parse=function(url,parseQueryString,slashesDenoteHost){if(!util.isString(url)){throw new TypeError("Parameter 'url' must be a string, not "+(typeof url==='undefined'?'undefined':_typeof(url)));}// Copy chrome, IE, opera backslash-handling behavior. -// Back slashes before the query string get converted to forward slashes -// See: https://code.google.com/p/chromium/issues/detail?id=25916 -var queryIndex=url.indexOf('?'),splitter=queryIndex!==-1&&queryIndex user:a@b host:c -// http://a@b?@c => user:a host:c path:/?@c -// v0.12 TODO(isaacs): This is not quite how Chrome does things. -// Review our test case against browsers more comprehensively. -// find the first instance of any hostEndingChars -var hostEnd=-1;for(var i=0;i host:b auth:a path:/c@d -atSign=rest.lastIndexOf('@',hostEnd);}// Now we have a portion which is definitely the auth. -// Pull that off. -if(atSign!==-1){auth=rest.slice(0,atSign);rest=rest.slice(atSign+1);this.auth=decodeURIComponent(auth);}// the host is the remaining to the left of the first non-host char -hostEnd=-1;for(var i=0;i127){// we replace non-ASCII char with a temporary placeholder -// we need this to make sure size of hostname is not -// broken by replacing non-ASCII by nothing -newpart+='x';}else{newpart+=part[j];}}// we test again with ASCII char only -if(!newpart.match(hostnamePartPattern)){var validParts=hostparts.slice(0,i);var notHost=hostparts.slice(i+1);var bit=part.match(hostnamePartStart);if(bit){validParts.push(bit[1]);notHost.unshift(bit[2]);}if(notHost.length){rest='/'+notHost.join('.')+rest;}this.hostname=validParts.join('.');break;}}}}if(this.hostname.length>hostnameMaxLen){this.hostname='';}else{// hostnames are always lower case. -this.hostname=this.hostname.toLowerCase();}if(!ipv6Hostname){// IDNA Support: Returns a punycoded representation of "domain". -// It only converts parts of the domain name that -// have non-ASCII characters, i.e. it doesn't matter if -// you call it with a domain that already is ASCII-only. -this.hostname=punycode.toASCII(this.hostname);}var p=this.port?':'+this.port:'';var h=this.hostname||'';this.host=h+p;this.href+=this.host;// strip [ and ] from the hostname -// the host field still retains them, though -if(ipv6Hostname){this.hostname=this.hostname.substr(1,this.hostname.length-2);if(rest[0]!=='/'){rest='/'+rest;}}}// now rest is set to the post-host stuff. -// chop off any delim chars. -if(!unsafeProtocol[lowerProto]){// First, make 100% sure that any "autoEscape" chars get -// escaped, even if encodeURIComponent doesn't think they -// need to be. -for(var i=0,l=autoEscape.length;i0?result.host.split('@'):false;if(authInHost){result.auth=authInHost.shift();result.host=result.hostname=authInHost.shift();}}result.search=relative.search;result.query=relative.query;//to support http.request -if(!util.isNull(result.pathname)||!util.isNull(result.search)){result.path=(result.pathname?result.pathname:'')+(result.search?result.search:'');}result.href=result.format();return result;}if(!srcPath.length){// no path at all. easy. -// we've already handled the other stuff above. -result.pathname=null;//to support http.request -if(result.search){result.path='/'+result.search;}else{result.path=null;}result.href=result.format();return result;}// if a url ENDs in . or .., then it must get a trailing slash. -// however, if it ends in anything else non-slashy, -// then it must NOT get a trailing slash. -var last=srcPath.slice(-1)[0];var hasTrailingSlash=(result.host||relative.host||srcPath.length>1)&&(last==='.'||last==='..')||last==='';// strip single dots, resolve double dots to parent dir -// if the path tries to go above the root, `up` ends up > 0 -var up=0;for(var i=srcPath.length;i>=0;i--){last=srcPath[i];if(last==='.'){srcPath.splice(i,1);}else if(last==='..'){srcPath.splice(i,1);up++;}else if(up){srcPath.splice(i,1);up--;}}// if the path is allowed to go above the root, restore leading ..s -if(!mustEndAbs&&!removeAllDots){for(;up--;up){srcPath.unshift('..');}}if(mustEndAbs&&srcPath[0]!==''&&(!srcPath[0]||srcPath[0].charAt(0)!=='/')){srcPath.unshift('');}if(hasTrailingSlash&&srcPath.join('/').substr(-1)!=='/'){srcPath.push('');}var isAbsolute=srcPath[0]===''||srcPath[0]&&srcPath[0].charAt(0)==='/';// put the host back -if(psychotic){result.hostname=result.host=isAbsolute?'':srcPath.length?srcPath.shift():'';//occationaly the auth can get stuck only in host -//this especially happens in cases like -//url.resolveObject('mailto:local1@domain1', 'local2@domain2') -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 -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;}; - -/***/ }, -/* 68 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -'use strict';var hash=exports;hash.utils=__webpack_require__(665);hash.common=__webpack_require__(661);hash.sha=__webpack_require__(664);hash.ripemd=__webpack_require__(663);hash.hmac=__webpack_require__(662);// Proxy hash functions to the main object -hash.sha1=hash.sha.sha1;hash.sha256=hash.sha.sha256;hash.sha224=hash.sha.sha224;hash.sha384=hash.sha.sha384;hash.sha512=hash.sha.sha512;hash.ripemd160=hash.ripemd.ripemd160; - -/***/ }, +/* 66 */, +/* 67 */, +/* 68 */, /* 69 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -"use strict";(function(){// Copyright (c) 2005 Tom Wu -// All Rights Reserved. -// See "LICENSE" for details. -// Basic JavaScript BN library - subset useful for RSA encryption. -// Bits per digit -var dbits;// JavaScript engine analysis -var canary=0xdeadbeefcafe;var j_lm=(canary&0xffffff)==0xefcafe;// (public) Constructor -function BigInteger(a,b,c){if(a!=null)if("number"==typeof a)this.fromNumber(a,b,c);else if(b==null&&"string"!=typeof a)this.fromString(a,256);else this.fromString(a,b);}// return new, unset BigInteger -function nbi(){return new BigInteger(null);}// am: Compute w_j += (x*this_i), propagate carries, -// c is initial carry, returns final carry. -// c < 3*dvalue, x < 2*dvalue, this_i < dvalue -// We need to select the fastest one that works in this environment. -// am1: use a single mult and divide to get the high bits, -// max digit bits should be 26 because -// max internal value = 2*dvalue^2-2*dvalue (< 2^53) -function am1(i,x,w,j,c,n){while(--n>=0){var v=x*this[i++]+w[j]+c;c=Math.floor(v/0x4000000);w[j++]=v&0x3ffffff;}return c;}// am2 avoids a big mult-and-extract completely. -// Max digit bits should be <= 30 because we do bitwise ops -// on values up to 2*hdvalue^2-hdvalue-1 (< 2^31) -function am2(i,x,w,j,c,n){var xl=x&0x7fff,xh=x>>15;while(--n>=0){var l=this[i]&0x7fff;var h=this[i++]>>15;var m=xh*l+h*xl;l=xl*l+((m&0x7fff)<<15)+w[j]+(c&0x3fffffff);c=(l>>>30)+(m>>>15)+xh*h+(c>>>30);w[j++]=l&0x3fffffff;}return c;}// Alternately, set max digit bits to 28 since some -// browsers slow down when dealing with 32-bit numbers. -function am3(i,x,w,j,c,n){var xl=x&0x3fff,xh=x>>14;while(--n>=0){var l=this[i]&0x3fff;var h=this[i++]>>14;var m=xh*l+h*xl;l=xl*l+((m&0x3fff)<<14)+w[j]+c;c=(l>>28)+(m>>14)+xh*h;w[j++]=l&0xfffffff;}return c;}var inBrowser=typeof navigator!=="undefined";if(inBrowser&&j_lm&&navigator.appName=="Microsoft Internet Explorer"){BigInteger.prototype.am=am2;dbits=30;}else if(inBrowser&&j_lm&&navigator.appName!="Netscape"){BigInteger.prototype.am=am1;dbits=26;}else{// Mozilla/Netscape seems to prefer am3 -BigInteger.prototype.am=am3;dbits=28;}BigInteger.prototype.DB=dbits;BigInteger.prototype.DM=(1<=0;--i){r[i]=this[i];}r.t=this.t;r.s=this.s;}// (protected) set from integer value x, -DV <= x < DV -function bnpFromInt(x){this.t=1;this.s=x<0?-1:0;if(x>0)this[0]=x;else if(x<-1)this[0]=x+this.DV;else this.t=0;}// return bigint initialized to value -function nbv(i){var r=nbi();r.fromInt(i);return r;}// (protected) set from string and radix -function bnpFromString(s,b){var k;if(b==16)k=4;else if(b==8)k=3;else if(b==256)k=8;// byte array -else if(b==2)k=1;else if(b==32)k=5;else if(b==4)k=2;else{this.fromRadix(s,b);return;}this.t=0;this.s=0;var i=s.length,mi=false,sh=0;while(--i>=0){var x=k==8?s[i]&0xff:intAt(s,i);if(x<0){if(s.charAt(i)=="-")mi=true;continue;}mi=false;if(sh==0)this[this.t++]=x;else if(sh+k>this.DB){this[this.t-1]|=(x&(1<>this.DB-sh;}else this[this.t-1]|=x<=this.DB)sh-=this.DB;}if(k==8&&(s[0]&0x80)!=0){this.s=-1;if(sh>0)this[this.t-1]|=(1<0&&this[this.t-1]==c){--this.t;}}// (public) return string representation in given radix -function bnToString(b){if(this.s<0)return"-"+this.negate().toString(b);var k;if(b==16)k=4;else if(b==8)k=3;else if(b==2)k=1;else if(b==32)k=5;else if(b==4)k=2;else return this.toRadix(b);var km=(1<0){if(p>p)>0){m=true;r=int2char(d);}while(i>=0){if(p>(p+=this.DB-k);}else{d=this[i]>>(p-=k)&km;if(p<=0){p+=this.DB;--i;}}if(d>0)m=true;if(m)r+=int2char(d);}}return m?r:"0";}// (public) -this -function bnNegate(){var r=nbi();BigInteger.ZERO.subTo(this,r);return r;}// (public) |this| -function bnAbs(){return this.s<0?this.negate():this;}// (public) return + if this > a, - if this < a, 0 if equal -function bnCompareTo(a){var r=this.s-a.s;if(r!=0)return r;var i=this.t;r=i-a.t;if(r!=0)return this.s<0?-r:r;while(--i>=0){if((r=this[i]-a[i])!=0)return r;}return 0;}// returns bit length of the integer x -function nbits(x){var r=1,t;if((t=x>>>16)!=0){x=t;r+=16;}if((t=x>>8)!=0){x=t;r+=8;}if((t=x>>4)!=0){x=t;r+=4;}if((t=x>>2)!=0){x=t;r+=2;}if((t=x>>1)!=0){x=t;r+=1;}return r;}// (public) return the number of bits in "this" -function bnBitLength(){if(this.t<=0)return 0;return this.DB*(this.t-1)+nbits(this[this.t-1]^this.s&this.DM);}// (protected) r = this << n*DB -function bnpDLShiftTo(n,r){var i;for(i=this.t-1;i>=0;--i){r[i+n]=this[i];}for(i=n-1;i>=0;--i){r[i]=0;}r.t=this.t+n;r.s=this.s;}// (protected) r = this >> n*DB -function bnpDRShiftTo(n,r){for(var i=n;i=0;--i){r[i+ds+1]=this[i]>>cbs|c;c=(this[i]&bm)<=0;--i){r[i]=0;}r[ds]=c;r.t=this.t+ds+1;r.s=this.s;r.clamp();}// (protected) r = this >> n -function bnpRShiftTo(n,r){r.s=this.s;var ds=Math.floor(n/this.DB);if(ds>=this.t){r.t=0;return;}var bs=n%this.DB;var cbs=this.DB-bs;var bm=(1<>bs;for(var i=ds+1;i>bs;}if(bs>0)r[this.t-ds-1]|=(this.s&bm)<>=this.DB;}if(a.t>=this.DB;}c+=this.s;}else{c+=this.s;while(i>=this.DB;}c-=a.s;}r.s=c<0?-1:0;if(c<-1)r[i++]=this.DV+c;else if(c>0)r[i++]=c;r.t=i;r.clamp();}// (protected) r = this * a, r != this,a (HAC 14.12) -// "this" should be the larger one if appropriate. -function bnpMultiplyTo(a,r){var x=this.abs(),y=a.abs();var i=x.t;r.t=i+y.t;while(--i>=0){r[i]=0;}for(i=0;i=0){r[i]=0;}for(i=0;i=x.DV){r[i+x.t]-=x.DV;r[i+x.t+1]=1;}}if(r.t>0)r[r.t-1]+=x.am(i,x[i],r,2*i,0,1);r.s=0;r.clamp();}// (protected) divide this by m, quotient and remainder to q, r (HAC 14.20) -// r != q, this != m. q or r may be null. -function bnpDivRemTo(m,q,r){var pm=m.abs();if(pm.t<=0)return;var pt=this.abs();if(pt.t0){pm.lShiftTo(nsh,y);pt.lShiftTo(nsh,r);}else{pm.copyTo(y);pt.copyTo(r);}var ys=y.t;var y0=y[ys-1];if(y0==0)return;var yt=y0*(1<1?y[ys-2]>>this.F2:0);var d1=this.FV/yt,d2=(1<=0){r[r.t++]=1;r.subTo(t,r);}BigInteger.ONE.dlShiftTo(ys,t);t.subTo(y,y);// "negative" y so we can replace sub with am later -while(y.t=0){// Estimate quotient digit -var qd=r[--i]==y0?this.DM:Math.floor(r[i]*d1+(r[i-1]+e)*d2);if((r[i]+=y.am(0,qd,r,j,0,ys))0)r.rShiftTo(nsh,r);// Denormalize remainder -if(ts<0)BigInteger.ZERO.subTo(r,r);}// (public) this mod a -function bnMod(a){var r=nbi();this.abs().divRemTo(a,null,r);if(this.s<0&&r.compareTo(BigInteger.ZERO)>0)a.subTo(r,r);return r;}// Modular reduction using "classic" algorithm -function Classic(m){this.m=m;}function cConvert(x){if(x.s<0||x.compareTo(this.m)>=0)return x.mod(this.m);else return x;}function cRevert(x){return x;}function cReduce(x){x.divRemTo(this.m,null,x);}function cMulTo(x,y,r){x.multiplyTo(y,r);this.reduce(r);}function cSqrTo(x,r){x.squareTo(r);this.reduce(r);}Classic.prototype.convert=cConvert;Classic.prototype.revert=cRevert;Classic.prototype.reduce=cReduce;Classic.prototype.mulTo=cMulTo;Classic.prototype.sqrTo=cSqrTo;// (protected) return "-1/this % 2^DB"; useful for Mont. reduction -// justification: -// xy == 1 (mod m) -// xy = 1+km -// xy(2-xy) = (1+km)(1-km) -// x[y(2-xy)] = 1-k^2m^2 -// x[y(2-xy)] == 1 (mod m^2) -// if y is 1/x mod m, then y(2-xy) is 1/x mod m^2 -// should reduce x and y(2-xy) by m^2 at each step to keep size bounded. -// JS multiply "overflows" differently from C/C++, so care is needed here. -function bnpInvDigit(){if(this.t<1)return 0;var x=this[0];if((x&1)==0)return 0;var y=x&3;// y == 1/x mod 2^2 -y=y*(2-(x&0xf)*y)&0xf;// y == 1/x mod 2^4 -y=y*(2-(x&0xff)*y)&0xff;// y == 1/x mod 2^8 -y=y*(2-((x&0xffff)*y&0xffff))&0xffff;// y == 1/x mod 2^16 -// last step - calculate inverse mod DV directly; -// assumes 16 < DB <= 32 and assumes ability to handle 48-bit ints -y=y*(2-x*y%this.DV)%this.DV;// y == 1/x mod 2^dbits -// we really want the negative inverse, and -DV < y < DV -return y>0?this.DV-y:-y;}// Montgomery reduction -function Montgomery(m){this.m=m;this.mp=m.invDigit();this.mpl=this.mp&0x7fff;this.mph=this.mp>>15;this.um=(1<0)this.m.subTo(r,r);return r;}// x/R mod m -function montRevert(x){var r=nbi();x.copyTo(r);this.reduce(r);return r;}// x = x/R mod m (HAC 14.32) -function montReduce(x){while(x.t<=this.mt2){// pad x so am has enough room later -x[x.t++]=0;}for(var i=0;i>15)*this.mpl&this.um)<<15)&x.DM;// use am to combine the multiply-shift-add into one call -j=i+this.m.t;x[j]+=this.m.am(0,u0,x,i,0,this.m.t);// propagate carry -while(x[j]>=x.DV){x[j]-=x.DV;x[++j]++;}}x.clamp();x.drShiftTo(this.m.t,x);if(x.compareTo(this.m)>=0)x.subTo(this.m,x);}// r = "x^2/R mod m"; x != r -function montSqrTo(x,r){x.squareTo(r);this.reduce(r);}// r = "xy/R mod m"; x,y != r -function montMulTo(x,y,r){x.multiplyTo(y,r);this.reduce(r);}Montgomery.prototype.convert=montConvert;Montgomery.prototype.revert=montRevert;Montgomery.prototype.reduce=montReduce;Montgomery.prototype.mulTo=montMulTo;Montgomery.prototype.sqrTo=montSqrTo;// (protected) true iff this is even -function bnpIsEven(){return(this.t>0?this[0]&1:this.s)==0;}// (protected) this^e, e < 2^32, doing sqr and mul with "r" (HAC 14.79) -function bnpExp(e,z){if(e>0xffffffff||e<1)return BigInteger.ONE;var r=nbi(),r2=nbi(),g=z.convert(this),i=nbits(e)-1;g.copyTo(r);while(--i>=0){z.sqrTo(r,r2);if((e&1<0)z.mulTo(r2,g,r);else{var t=r;r=r2;r2=t;}}return z.revert(r);}// (public) this^e % m, 0 <= e < 2^32 -function bnModPowInt(e,m){var z;if(e<256||m.isEven())z=new Classic(m);else z=new Montgomery(m);return this.exp(e,z);}// protected -BigInteger.prototype.copyTo=bnpCopyTo;BigInteger.prototype.fromInt=bnpFromInt;BigInteger.prototype.fromString=bnpFromString;BigInteger.prototype.clamp=bnpClamp;BigInteger.prototype.dlShiftTo=bnpDLShiftTo;BigInteger.prototype.drShiftTo=bnpDRShiftTo;BigInteger.prototype.lShiftTo=bnpLShiftTo;BigInteger.prototype.rShiftTo=bnpRShiftTo;BigInteger.prototype.subTo=bnpSubTo;BigInteger.prototype.multiplyTo=bnpMultiplyTo;BigInteger.prototype.squareTo=bnpSquareTo;BigInteger.prototype.divRemTo=bnpDivRemTo;BigInteger.prototype.invDigit=bnpInvDigit;BigInteger.prototype.isEven=bnpIsEven;BigInteger.prototype.exp=bnpExp;// public -BigInteger.prototype.toString=bnToString;BigInteger.prototype.negate=bnNegate;BigInteger.prototype.abs=bnAbs;BigInteger.prototype.compareTo=bnCompareTo;BigInteger.prototype.bitLength=bnBitLength;BigInteger.prototype.mod=bnMod;BigInteger.prototype.modPowInt=bnModPowInt;// "constants" -BigInteger.ZERO=nbv(0);BigInteger.ONE=nbv(1);// Copyright (c) 2005-2009 Tom Wu -// All Rights Reserved. -// See "LICENSE" for details. -// Extended JavaScript BN functions, required for RSA private ops. -// Version 1.1: new BigInteger("0", 10) returns "proper" zero -// Version 1.2: square() API, isProbablePrime fix -// (public) -function bnClone(){var r=nbi();this.copyTo(r);return r;}// (public) return value as integer -function bnIntValue(){if(this.s<0){if(this.t==1)return this[0]-this.DV;else if(this.t==0)return-1;}else if(this.t==1)return this[0];else if(this.t==0)return 0;// assumes 16 < DB < 32 -return(this[1]&(1<<32-this.DB)-1)<>24;}// (public) return value as short (assumes DB>=16) -function bnShortValue(){return this.t==0?this.s:this[0]<<16>>16;}// (protected) return x s.t. r^x < DV -function bnpChunkSize(r){return Math.floor(Math.LN2*this.DB/Math.log(r));}// (public) 0 if this == 0, 1 if this > 0 -function bnSigNum(){if(this.s<0)return-1;else if(this.t<=0||this.t==1&&this[0]<=0)return 0;else return 1;}// (protected) convert to radix string -function bnpToRadix(b){if(b==null)b=10;if(this.signum()==0||b<2||b>36)return"0";var cs=this.chunkSize(b);var a=Math.pow(b,cs);var d=nbv(a),y=nbi(),z=nbi(),r="";this.divRemTo(d,y,z);while(y.signum()>0){r=(a+z.intValue()).toString(b).substr(1)+r;y.divRemTo(d,y,z);}return z.intValue().toString(b)+r;}// (protected) convert from radix string -function bnpFromRadix(s,b){this.fromInt(0);if(b==null)b=10;var cs=this.chunkSize(b);var d=Math.pow(b,cs),mi=false,j=0,w=0;for(var i=0;i=cs){this.dMultiply(d);this.dAddOffset(w,0);j=0;w=0;}}if(j>0){this.dMultiply(Math.pow(b,j));this.dAddOffset(w,0);}if(mi)BigInteger.ZERO.subTo(this,this);}// (protected) alternate constructor -function bnpFromNumber(a,b,c){if("number"==typeof b){// new BigInteger(int,int,RNG) -if(a<2)this.fromInt(1);else{this.fromNumber(a,c);if(!this.testBit(a-1))// force MSB set -this.bitwiseTo(BigInteger.ONE.shiftLeft(a-1),op_or,this);if(this.isEven())this.dAddOffset(1,0);// force odd -while(!this.isProbablePrime(b)){this.dAddOffset(2,0);if(this.bitLength()>a)this.subTo(BigInteger.ONE.shiftLeft(a-1),this);}}}else{// new BigInteger(int,RNG) -var x=new Array(),t=a&7;x.length=(a>>3)+1;b.nextBytes(x);if(t>0)x[0]&=(1<0){if(p>p)!=(this.s&this.DM)>>p)r[k++]=d|this.s<=0){if(p<8){d=(this[i]&(1<>(p+=this.DB-8);}else{d=this[i]>>(p-=8)&0xff;if(p<=0){p+=this.DB;--i;}}if((d&0x80)!=0)d|=-256;if(k==0&&(this.s&0x80)!=(d&0x80))++k;if(k>0||d!=this.s)r[k++]=d;}}return r;}function bnEquals(a){return this.compareTo(a)==0;}function bnMin(a){return this.compareTo(a)<0?this:a;}function bnMax(a){return this.compareTo(a)>0?this:a;}// (protected) r = this op a (bitwise) -function bnpBitwiseTo(a,op,r){var i,f,m=Math.min(a.t,this.t);for(i=0;i> n -function bnShiftRight(n){var r=nbi();if(n<0)this.lShiftTo(-n,r);else this.rShiftTo(n,r);return r;}// return index of lowest 1-bit in x, x < 2^31 -function lbit(x){if(x==0)return-1;var r=0;if((x&0xffff)==0){x>>=16;r+=16;}if((x&0xff)==0){x>>=8;r+=8;}if((x&0xf)==0){x>>=4;r+=4;}if((x&3)==0){x>>=2;r+=2;}if((x&1)==0)++r;return r;}// (public) returns index of lowest 1-bit (or -1 if none) -function bnGetLowestSetBit(){for(var i=0;i=this.t)return this.s!=0;return(this[j]&1<>=this.DB;}if(a.t>=this.DB;}c+=this.s;}else{c+=this.s;while(i>=this.DB;}c+=a.s;}r.s=c<0?-1:0;if(c>0)r[i++]=c;else if(c<-1)r[i++]=this.DV+c;r.t=i;r.clamp();}// (public) this + a -function bnAdd(a){var r=nbi();this.addTo(a,r);return r;}// (public) this - a -function bnSubtract(a){var r=nbi();this.subTo(a,r);return r;}// (public) this * a -function bnMultiply(a){var r=nbi();this.multiplyTo(a,r);return r;}// (public) this^2 -function bnSquare(){var r=nbi();this.squareTo(r);return r;}// (public) this / a -function bnDivide(a){var r=nbi();this.divRemTo(a,r,null);return r;}// (public) this % a -function bnRemainder(a){var r=nbi();this.divRemTo(a,null,r);return r;}// (public) [this/a,this%a] -function bnDivideAndRemainder(a){var q=nbi(),r=nbi();this.divRemTo(a,q,r);return new Array(q,r);}// (protected) this *= n, this >= 0, 1 < n < DV -function bnpDMultiply(n){this[this.t]=this.am(0,n-1,this,0,0,this.t);++this.t;this.clamp();}// (protected) this += n << w words, this >= 0 -function bnpDAddOffset(n,w){if(n==0)return;while(this.t<=w){this[this.t++]=0;}this[w]+=n;while(this[w]>=this.DV){this[w]-=this.DV;if(++w>=this.t)this[this.t++]=0;++this[w];}}// A "null" reducer -function NullExp(){}function nNop(x){return x;}function nMulTo(x,y,r){x.multiplyTo(y,r);}function nSqrTo(x,r){x.squareTo(r);}NullExp.prototype.convert=nNop;NullExp.prototype.revert=nNop;NullExp.prototype.mulTo=nMulTo;NullExp.prototype.sqrTo=nSqrTo;// (public) this^e -function bnPow(e){return this.exp(e,new NullExp());}// (protected) r = lower n words of "this * a", a.t <= n -// "this" should be the larger one if appropriate. -function bnpMultiplyLowerTo(a,n,r){var i=Math.min(this.t+a.t,n);r.s=0;// assumes a,this >= 0 -r.t=i;while(i>0){r[--i]=0;}var j;for(j=r.t-this.t;i 0 -// "this" should be the larger one if appropriate. -function bnpMultiplyUpperTo(a,n,r){--n;var i=r.t=this.t+a.t-n;r.s=0;// assumes a,this >= 0 -while(--i>=0){r[i]=0;}for(i=Math.max(n-this.t,0);i2*this.m.t)return x.mod(this.m);else if(x.compareTo(this.m)<0)return x;else{var r=nbi();x.copyTo(r);this.reduce(r);return r;}}function barrettRevert(x){return x;}// x = x mod m (HAC 14.42) -function barrettReduce(x){x.drShiftTo(this.m.t-1,this.r2);if(x.t>this.m.t+1){x.t=this.m.t+1;x.clamp();}this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3);this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);while(x.compareTo(this.r2)<0){x.dAddOffset(1,this.m.t+1);}x.subTo(this.r2,x);while(x.compareTo(this.m)>=0){x.subTo(this.m,x);}}// r = x^2 mod m; x != r -function barrettSqrTo(x,r){x.squareTo(r);this.reduce(r);}// r = x*y mod m; x,y != r -function barrettMulTo(x,y,r){x.multiplyTo(y,r);this.reduce(r);}Barrett.prototype.convert=barrettConvert;Barrett.prototype.revert=barrettRevert;Barrett.prototype.reduce=barrettReduce;Barrett.prototype.mulTo=barrettMulTo;Barrett.prototype.sqrTo=barrettSqrTo;// (public) this^e % m (HAC 14.85) -function bnModPow(e,m){var i=e.bitLength(),k,r=nbv(1),z;if(i<=0)return r;else if(i<18)k=1;else if(i<48)k=3;else if(i<144)k=4;else if(i<768)k=5;else k=6;if(i<8)z=new Classic(m);else if(m.isEven())z=new Barrett(m);else z=new Montgomery(m);// precomputation -var g=new Array(),n=3,k1=k-1,km=(1<1){var g2=nbi();z.sqrTo(g[1],g2);while(n<=km){g[n]=nbi();z.mulTo(g2,g[n-2],g[n]);n+=2;}}var j=e.t-1,w,is1=true,r2=nbi(),t;i=nbits(e[j])-1;while(j>=0){if(i>=k1)w=e[j]>>i-k1&km;else{w=(e[j]&(1<0)w|=e[j-1]>>this.DB+i-k1;}n=k;while((w&1)==0){w>>=1;--n;}if((i-=n)<0){i+=this.DB;--j;}if(is1){// ret == 1, don't bother squaring or multiplying it -g[w].copyTo(r);is1=false;}else{while(n>1){z.sqrTo(r,r2);z.sqrTo(r2,r);n-=2;}if(n>0)z.sqrTo(r,r2);else{t=r;r=r2;r2=t;}z.mulTo(r2,g[w],r);}while(j>=0&&(e[j]&1<0){x.rShiftTo(g,x);y.rShiftTo(g,y);}while(x.signum()>0){if((i=x.getLowestSetBit())>0)x.rShiftTo(i,x);if((i=y.getLowestSetBit())>0)y.rShiftTo(i,y);if(x.compareTo(y)>=0){x.subTo(y,x);x.rShiftTo(1,x);}else{y.subTo(x,y);y.rShiftTo(1,y);}}if(g>0)y.lShiftTo(g,y);return y;}// (protected) this % n, n < 2^26 -function bnpModInt(n){if(n<=0)return 0;var d=this.DV%n,r=this.s<0?n-1:0;if(this.t>0)if(d==0)r=this[0]%n;else for(var i=this.t-1;i>=0;--i){r=(d*r+this[i])%n;}return r;}// (public) 1/this % m (HAC 14.61) -function bnModInverse(m){var ac=m.isEven();if(this.isEven()&&ac||m.signum()==0)return BigInteger.ZERO;var u=m.clone(),v=this.clone();var a=nbv(1),b=nbv(0),c=nbv(0),d=nbv(1);while(u.signum()!=0){while(u.isEven()){u.rShiftTo(1,u);if(ac){if(!a.isEven()||!b.isEven()){a.addTo(this,a);b.subTo(m,b);}a.rShiftTo(1,a);}else if(!b.isEven())b.subTo(m,b);b.rShiftTo(1,b);}while(v.isEven()){v.rShiftTo(1,v);if(ac){if(!c.isEven()||!d.isEven()){c.addTo(this,c);d.subTo(m,d);}c.rShiftTo(1,c);}else if(!d.isEven())d.subTo(m,d);d.rShiftTo(1,d);}if(u.compareTo(v)>=0){u.subTo(v,u);if(ac)a.subTo(c,a);b.subTo(d,b);}else{v.subTo(u,v);if(ac)c.subTo(a,c);d.subTo(b,d);}}if(v.compareTo(BigInteger.ONE)!=0)return BigInteger.ZERO;if(d.compareTo(m)>=0)return d.subtract(m);if(d.signum()<0)d.addTo(m,d);else return d;if(d.signum()<0)return d.add(m);else return d;}var lowprimes=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997];var lplim=(1<<26)/lowprimes[lowprimes.length-1];// (public) test primality with certainty >= 1-.5^t -function bnIsProbablePrime(t){var i,x=this.abs();if(x.t==1&&x[0]<=lowprimes[lowprimes.length-1]){for(i=0;i>1;if(t>lowprimes.length)t=lowprimes.length;var a=nbi();for(var i=0;i -// in your main HTML document. -var rng_state;var rng_pool;var rng_pptr;// Mix in a 32-bit integer into the pool -function rng_seed_int(x){rng_pool[rng_pptr++]^=x&255;rng_pool[rng_pptr++]^=x>>8&255;rng_pool[rng_pptr++]^=x>>16&255;rng_pool[rng_pptr++]^=x>>24&255;if(rng_pptr>=rng_psize)rng_pptr-=rng_psize;}// Mix in the current time (w/milliseconds) into the pool -function rng_seed_time(){rng_seed_int(new Date().getTime());}// Initialize the pool with junk if needed. -if(rng_pool==null){rng_pool=new Array();rng_pptr=0;var t;if(typeof window!=="undefined"&&window.crypto){if(window.crypto.getRandomValues){// Use webcrypto if available -var ua=new Uint8Array(32);window.crypto.getRandomValues(ua);for(t=0;t<32;++t){rng_pool[rng_pptr++]=ua[t];}}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){// Extract entropy (256 bits) from NS4 RNG if available -var z=window.crypto.random(32);for(t=0;t>>8;rng_pool[rng_pptr++]=t&255;}rng_pptr=0;rng_seed_time();//rng_seed_int(window.screenX); -//rng_seed_int(window.screenY); -}function rng_get_byte(){if(rng_state==null){rng_seed_time();rng_state=prng_newstate();rng_state.init(rng_pool);for(rng_pptr=0;rng_pptr0)dispatch({type:'SAVE_STATUS_DIRTY'});else dispatch({type:'SAVE_STATUS_EMPTY'});};};var updateFinalInput=exports.updateFinalInput=function updateFinalInput(text){return function(dispatch,getState){dispatch({type:'UPDATE_FINAL_INPUT',data:text});if(getState().input.final.length>0)dispatch({type:'SAVE_STATUS_DIRTY'});else dispatch({type:'SAVE_STATUS_EMPTY'});};};var clearInput=exports.clearInput=function clearInput(){return function(dispatch){dispatch({type:'CLEAR_INPUT'});dispatch({type:'SAVE_STATUS_EMPTY'});};};var setPlaintextFormat=exports.setPlaintextFormat=function setPlaintextFormat(){return{type:'SET_PLAINTEXT_FORMAT'};};var setMarkdownFormat=exports.setMarkdownFormat=function setMarkdownFormat(){return{type:'SET_MARKDOWN_FORMAT'};};var showOriginal=exports.showOriginal=function showOriginal(){return{type:'SHOW_ORIGINAL'};};var showFinal=exports.showFinal=function showFinal(){return{type:'SHOW_FINAL'};};var showDifference=exports.showDifference=function showDifference(){return{type:'SHOW_DIFFERENCE'};};//saves the current input fields to the server +//creates and returns a new id for the +var save=exports.save=function save(){return function(dispatch,getState){//generate an id +var id=(0,_v2.default)();//set waiting state +dispatch({type:'SAVE_STATUS_WAITING'});var endpointUri='/api/compare/'+id;var fetchOptions={method:'POST',body:JSON.stringify({a:getState().input.original,b:getState().input.final}),headers:{"Content-Type":"application/json"}};//dispatch post request +(0,_isomorphicFetch2.default)(endpointUri,fetchOptions).then(function(response){dispatch({type:'SAVE_STATUS_SAVED'});}).catch(function(error){dispatch({type:'SAVE_STATUS_FAILED',error:error});});//return the id after the request has been sent +return id;};};/* +const load = (id) => + (dispatch, getState) => { + + //set waiting state + dispatch( {type: 'SAVE_STATUS_WAITING'}) + + const endpointUri = `/api/compare/${id}` + const fetchOptions = { + method: 'GET' + } + + + //dispatch post request + fetch(endpointUri, fetchOptions) + .then(response => response.json()) + .then(json => { + dispatch( {type: 'UPDATE_ORIGINAL_INPUT', data:json.a}) + dispatch( {type: 'UPDATE_FINAL_INPUT', data:json.b}) + dispatch( {type: 'LOAD_STATUS_LOADED'}) + }) + .catch(error => { + dispatch( {type: 'LOAD_STATUS_FAILED', error}) + }) + + //return the id after the request has been sent + return id; + + } + +export const loadIfNeeded = (id) => + (dispatch, getState) => { + if + } +*/ + +/***/ }, +/* 71 */, +/* 72 */, +/* 73 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +'use strict';var isArray=__webpack_require__(9),isKey=__webpack_require__(227),stringToPath=__webpack_require__(377),toString=__webpack_require__(61);/** * Casts `value` to a path array if it's not one. * * @private @@ -2696,7 +1575,7 @@ var rng_psize=256;if(true){exports=module.exports={BigInteger:BigInteger,SecureR */function castPath(value,object){if(isArray(value)){return value;}return isKey(value,object)?[value]:stringToPath(toString(value));}module.exports=castPath; /***/ }, -/* 71 */ +/* 74 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -2710,11 +1589,11 @@ var rng_psize=256;if(true){exports=module.exports={BigInteger:BigInteger,SecureR */function getNative(object,key){var value=getValue(object,key);return baseIsNative(value)?value:undefined;}module.exports=getNative; /***/ }, -/* 72 */ +/* 75 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var baseHas=__webpack_require__(717),hasPath=__webpack_require__(363);/** +'use strict';var baseHas=__webpack_require__(717),hasPath=__webpack_require__(365);/** * Checks if `path` is a direct property of `object`. * * @static @@ -2743,11 +1622,11 @@ var rng_psize=256;if(true){exports=module.exports={BigInteger:BigInteger,SecureR */function has(object,path){return object!=null&&hasPath(object,path,baseHas);}module.exports=has; /***/ }, -/* 73 */ +/* 76 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};var baseGetTag=__webpack_require__(59),isObjectLike=__webpack_require__(36);/** `Object#toString` result references. */var symbolTag='[object Symbol]';/** +'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};var baseGetTag=__webpack_require__(58),isObjectLike=__webpack_require__(36);/** `Object#toString` result references. */var symbolTag='[object Symbol]';/** * Checks if `value` is classified as a `Symbol` primitive or object. * * @static @@ -2766,14 +1645,7 @@ var rng_psize=256;if(true){exports=module.exports={BigInteger:BigInteger,SecureR */function isSymbol(value){return(typeof value==='undefined'?'undefined':_typeof(value))=='symbol'||isObjectLike(value)&&baseGetTag(value)==symbolTag;}module.exports=isSymbol; /***/ }, -/* 74 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -'use strict';exports.__esModule=true;exports.falsy=falsy;var _react=__webpack_require__(0);var func=_react.PropTypes.func;var object=_react.PropTypes.object;var arrayOf=_react.PropTypes.arrayOf;var oneOfType=_react.PropTypes.oneOfType;var element=_react.PropTypes.element;var shape=_react.PropTypes.shape;var string=_react.PropTypes.string;function falsy(props,propName,componentName){if(props[propName])return new Error('<'+componentName+'> should not have a "'+propName+'" prop');}var history=shape({listen:func.isRequired,pushState:func.isRequired,replaceState:func.isRequired,go:func.isRequired});exports.history=history;var location=shape({pathname:string.isRequired,search:string.isRequired,state:object,action:string.isRequired,key:string});exports.location=location;var component=oneOfType([func,string]);exports.component=component;var components=oneOfType([component,object]);exports.components=components;var route=oneOfType([object,element]);exports.route=route;var routes=oneOfType([route,arrayOf(route)]);exports.routes=routes;exports['default']={falsy:falsy,history:history,location:location,component:component,components:components,route:route}; - -/***/ }, -/* 75 */ +/* 77 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -2884,7 +1756,7 @@ var rng_psize=256;if(true){exports=module.exports={BigInteger:BigInteger,SecureR /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 76 */ +/* 78 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -2897,7 +1769,7 @@ var rng_psize=256;if(true){exports=module.exports={BigInteger:BigInteger,SecureR * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactReconciler - */'use strict';var ReactRef=__webpack_require__(965);/** + */'use strict';var ReactRef=__webpack_require__(971);/** * Helper to call ReactRef.attachRefs with this composite component, split out * to avoid allocations in the transaction mount-ready queue. */function attachRefs(){ReactRef.attachRefs(this,this._currentElement);}var ReactReconciler={/** @@ -2940,7 +1812,7 @@ return;}var refsChanged=ReactRef.shouldUpdateRefs(prevElement,nextElement);if(re */performUpdateIfNecessary:function performUpdateIfNecessary(internalInstance,transaction){internalInstance.performUpdateIfNecessary(transaction);}};module.exports=ReactReconciler; /***/ }, -/* 77 */ +/* 79 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -2954,7 +1826,7 @@ return;}var refsChanged=ReactRef.shouldUpdateRefs(prevElement,nextElement);if(re * * @providesModule SyntheticEvent * @typechecks static-only - */'use strict';var PooledClass=__webpack_require__(64);var assign=__webpack_require__(7);var emptyFunction=__webpack_require__(41);var warning=__webpack_require__(8);/** + */'use strict';var PooledClass=__webpack_require__(65);var assign=__webpack_require__(7);var emptyFunction=__webpack_require__(40);var warning=__webpack_require__(8);/** * @interface Event * @see http://www.w3.org/TR/DOM-Level-3-Events/ */var EventInterface={type:null,target:null,// currentTarget is set when dispatching; no use in copying it here @@ -2992,98 +1864,27 @@ currentTarget:emptyFunction.thatReturnsNull,eventPhase:null,bubbles:null,cancela */SyntheticEvent.augmentClass=function(Class,Interface){var Super=this;var prototype=Object.create(Super.prototype);assign(prototype,Class.prototype);Class.prototype=prototype;Class.prototype.constructor=Class;Class.Interface=assign({},Super.Interface,Interface);Class.augmentClass=Super.augmentClass;PooledClass.addPoolingTo(Class,PooledClass.fourArgumentPooler);};PooledClass.addPoolingTo(SyntheticEvent,PooledClass.fourArgumentPooler);module.exports=SyntheticEvent; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) -/***/ }, -/* 78 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};// Copyright 2015 Joyent, Inc. -module.exports={read:read.bind(undefined,false,undefined),readType:read.bind(undefined,false),write:write,/* semi-private api, used by sshpk-agent */readPartial:read.bind(undefined,true),/* shared with ssh format */readInternal:read,keyTypeToAlg:keyTypeToAlg,algToKeyType:algToKeyType};var assert=__webpack_require__(13);var algs=__webpack_require__(25);var utils=__webpack_require__(20);var Key=__webpack_require__(26);var PrivateKey=__webpack_require__(27);var SSHBuffer=__webpack_require__(192);function algToKeyType(alg){assert.string(alg);if(alg==='ssh-dss')return'dsa';else if(alg==='ssh-rsa')return'rsa';else if(alg==='ssh-ed25519')return'ed25519';else if(alg==='ssh-curve25519')return'curve25519';else if(alg.match(/^ecdsa-sha2-/))return'ecdsa';else throw new Error('Unknown algorithm '+alg);}function keyTypeToAlg(key){assert.object(key);if(key.type==='dsa')return'ssh-dss';else if(key.type==='rsa')return'ssh-rsa';else if(key.type==='ed25519')return'ssh-ed25519';else if(key.type==='curve25519')return'ssh-curve25519';else if(key.type==='ecdsa')return'ecdsa-sha2-'+key.part.curve.data.toString();else throw new Error('Unknown key type '+key.type);}function read(partial,type,buf,options){if(typeof buf==='string')buf=new Buffer(buf);assert.buffer(buf,'buf');var key={};var parts=key.parts=[];var sshbuf=new SSHBuffer({buffer:buf});var alg=sshbuf.readString();assert.ok(!sshbuf.atEnd(),'key must have at least one part');key.type=algToKeyType(alg);var partCount=algs.info[key.type].parts.length;if(type&&type==='private')partCount=algs.privInfo[key.type].parts.length;while(!sshbuf.atEnd()&&parts.length=1,'key must have at least one part');assert.ok(partial||sshbuf.atEnd(),'leftover bytes at end of key');var Constructor=Key;var algInfo=algs.info[key.type];if(type==='private'||algInfo.parts.length!==parts.length){algInfo=algs.privInfo[key.type];Constructor=PrivateKey;}assert.strictEqual(algInfo.parts.length,parts.length);if(key.type==='ecdsa'){var res=/^ecdsa-sha2-(.+)$/.exec(alg);assert.ok(res!==null);assert.strictEqual(res[1],parts[0].data.toString());}var normalized=true;for(var i=0;i*/var objectKeys=Object.keys||function(obj){var keys=[];for(var key in obj){keys.push(key);}return keys;};/**/module.exports=Duplex;/**/var processNextTick=__webpack_require__(50);/**//**/var util=__webpack_require__(28);util.inherits=__webpack_require__(5);/**/var Readable=__webpack_require__(545);var Writable=__webpack_require__(292);util.inherits(Duplex,Readable);var keys=objectKeys(Writable.prototype);for(var v=0;v=0){item._idleTimeoutId=setTimeout(function onTimeout(){if(item._onTimeout)item._onTimeout();},msecs);}};// That's not how node.js implements it but the exposed api is the same. -exports.setImmediate=typeof setImmediate==="function"?setImmediate:function(fn){var id=nextImmediateId++;var args=arguments.length<2?false:slice.call(arguments,1);immediateIds[id]=true;nextTick(function onNextTick(){if(immediateIds[id]){// fn.call() is faster so we optimize for the common use-case -// @see http://jsperf.com/call-apply-segu -if(args){fn.apply(null,args);}else{fn.call(null);}// Prevent ids from leaking -exports.clearImmediate(id);}});return id;};exports.clearImmediate=typeof clearImmediate==="function"?clearImmediate:function(id){delete immediateIds[id];}; -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(80).setImmediate, __webpack_require__(80).clearImmediate)) - -/***/ }, -/* 81 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -'use strict';exports.__esModule=true;exports.connect=exports.Provider=undefined;var _Provider=__webpack_require__(914);var _Provider2=_interopRequireDefault(_Provider);var _connect=__webpack_require__(915);var _connect2=_interopRequireDefault(_connect);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj};}exports.Provider=_Provider2["default"];exports.connect=_connect2["default"]; - -/***/ }, -/* 82 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.save=exports.showDifference=exports.showFinal=exports.showOriginal=exports.setMarkdownFormat=exports.setPlaintextFormat=exports.clearCompare=exports.updateFinalCompare=exports.updateOriginalCompare=exports.clearInput=exports.updateFinalInput=exports.updateOriginalInput=undefined;var _requestPromiseNative=__webpack_require__(1038);var _requestPromiseNative2=_interopRequireDefault(_requestPromiseNative);var _v=__webpack_require__(1164);var _v2=_interopRequireDefault(_v);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var updateOriginalInput=exports.updateOriginalInput=function updateOriginalInput(text){return function(dispatch,getState){dispatch({type:'UPDATE_ORIGINAL_INPUT',data:text});if(getState().input.original.length>0)dispatch({type:'SAVE_STATUS_DIRTY'});else dispatch({type:'SAVE_STATUS_EMPTY'});};};var updateFinalInput=exports.updateFinalInput=function updateFinalInput(text){return function(dispatch,getState){dispatch({type:'UPDATE_FINAL_INPUT',data:text});if(getState().input.final.length>0)dispatch({type:'SAVE_STATUS_DIRTY'});else dispatch({type:'SAVE_STATUS_EMPTY'});};};var clearInput=exports.clearInput=function clearInput(){return function(dispatch){dispatch({type:'CLEAR_INPUT'});dispatch({type:'SAVE_STATUS_EMPTY'});};};var updateOriginalCompare=exports.updateOriginalCompare=function updateOriginalCompare(text){return{type:'UPDATE_ORIGINAL_COMPARE',data:text};};var updateFinalCompare=exports.updateFinalCompare=function updateFinalCompare(text){return{type:'UPDATE_FINAL_COMPARE',data:text};};var clearCompare=exports.clearCompare=function clearCompare(){return{type:'CLEAR_COMPARE'};};var setPlaintextFormat=exports.setPlaintextFormat=function setPlaintextFormat(){return{type:'SET_PLAINTEXT_FORMAT'};};var setMarkdownFormat=exports.setMarkdownFormat=function setMarkdownFormat(){return{type:'SET_MARKDOWN_FORMAT'};};var showOriginal=exports.showOriginal=function showOriginal(){return{type:'SHOW_ORIGINAL'};};var showFinal=exports.showFinal=function showFinal(){return{type:'SHOW_FINAL'};};var showDifference=exports.showDifference=function showDifference(){return{type:'SHOW_DIFFERENCE'};};var save=exports.save=function save(){return function(dispatch,getState){console.log("!!! SAVING");//generate an id -var id=(0,_v2.default)();dispatch({type:'SAVE_STATUS_ASSIGN_ID',id:id});//set waiting state -dispatch({type:'SAVE_STATUS_WAITING'});var reqOptions={method:'POST',uri:location.origin+'/api/compare/'+id,body:{a:getState().input.original,b:getState().input.final},json:true};//dispatch post request -(0,_requestPromiseNative2.default)(reqOptions).then(function(returnBodyJson){dispatch({type:'SAVE_STATUS_SAVED'});}).catch(function(error){dispatch({type:'SAVE_STATUS_FAILED',error:error});});};}; - -/***/ }, -/* 83 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';var Transform=__webpack_require__(16).Transform;var inherits=__webpack_require__(5);var StringDecoder=__webpack_require__(66).StringDecoder;module.exports=CipherBase;inherits(CipherBase,Transform);function CipherBase(hashMode){Transform.call(this);this.hashMode=typeof hashMode==='string';if(this.hashMode){this[hashMode]=this._finalOrDigest;}else{this.final=this._finalOrDigest;}this._decoder=null;this._encoding=null;}CipherBase.prototype.update=function(data,inputEnc,outputEnc){if(typeof data==='string'){data=new Buffer(data,inputEnc);}var outData=this._update(data);if(this.hashMode){return this;}if(outputEnc){outData=this._toString(outData,outputEnc);}return outData;};CipherBase.prototype.setAutoPadding=function(){};CipherBase.prototype.getAuthTag=function(){throw new Error('trying to get auth tag in unsupported state');};CipherBase.prototype.setAuthTag=function(){throw new Error('trying to set auth tag in unsupported state');};CipherBase.prototype.setAAD=function(){throw new Error('trying to set aad in unsupported state');};CipherBase.prototype._transform=function(data,_,next){var err;try{if(this.hashMode){this._update(data);}else{this.push(this._update(data));}}catch(e){err=e;}finally{next(err);}};CipherBase.prototype._flush=function(done){var err;try{this.push(this._final());}catch(e){err=e;}finally{done(err);}};CipherBase.prototype._finalOrDigest=function(outputEnc){var outData=this._final()||new Buffer('');if(outputEnc){outData=this._toString(outData,outputEnc,true);}return outData;};CipherBase.prototype._toString=function(value,enc,fin){if(!this._decoder){this._decoder=new StringDecoder(enc);this._encoding=enc;}if(this._encoding!==enc){throw new Error('can\'t switch encodings');}var out=this._decoder.write(value);if(fin){out+=this._decoder.end();}return out;}; -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer)) +'use strict';Object.defineProperty(exports,"__esModule",{value:true});var _Confirm=__webpack_require__(1060);Object.defineProperty(exports,'Confirm',{enumerable:true,get:function get(){return _interopRequireDefault(_Confirm).default;}});var _Portal=__webpack_require__(186);Object.defineProperty(exports,'Portal',{enumerable:true,get:function get(){return _interopRequireDefault(_Portal).default;}});var _Radio=__webpack_require__(269);Object.defineProperty(exports,'Radio',{enumerable:true,get:function get(){return _interopRequireDefault(_Radio).default;}});var _Select=__webpack_require__(464);Object.defineProperty(exports,'Select',{enumerable:true,get:function get(){return _interopRequireDefault(_Select).default;}});var _TextArea=__webpack_require__(465);Object.defineProperty(exports,'TextArea',{enumerable:true,get:function get(){return _interopRequireDefault(_TextArea).default;}});var _Breadcrumb=__webpack_require__(1066);Object.defineProperty(exports,'Breadcrumb',{enumerable:true,get:function get(){return _interopRequireDefault(_Breadcrumb).default;}});var _BreadcrumbDivider=__webpack_require__(466);Object.defineProperty(exports,'BreadcrumbDivider',{enumerable:true,get:function get(){return _interopRequireDefault(_BreadcrumbDivider).default;}});var _BreadcrumbSection=__webpack_require__(467);Object.defineProperty(exports,'BreadcrumbSection',{enumerable:true,get:function get(){return _interopRequireDefault(_BreadcrumbSection).default;}});var _Form=__webpack_require__(1068);Object.defineProperty(exports,'Form',{enumerable:true,get:function get(){return _interopRequireDefault(_Form).default;}});var _FormButton=__webpack_require__(468);Object.defineProperty(exports,'FormButton',{enumerable:true,get:function get(){return _interopRequireDefault(_FormButton).default;}});var _FormCheckbox=__webpack_require__(469);Object.defineProperty(exports,'FormCheckbox',{enumerable:true,get:function get(){return _interopRequireDefault(_FormCheckbox).default;}});var _FormDropdown=__webpack_require__(470);Object.defineProperty(exports,'FormDropdown',{enumerable:true,get:function get(){return _interopRequireDefault(_FormDropdown).default;}});var _FormField=__webpack_require__(52);Object.defineProperty(exports,'FormField',{enumerable:true,get:function get(){return _interopRequireDefault(_FormField).default;}});var _FormGroup=__webpack_require__(471);Object.defineProperty(exports,'FormGroup',{enumerable:true,get:function get(){return _interopRequireDefault(_FormGroup).default;}});var _FormInput=__webpack_require__(472);Object.defineProperty(exports,'FormInput',{enumerable:true,get:function get(){return _interopRequireDefault(_FormInput).default;}});var _FormRadio=__webpack_require__(473);Object.defineProperty(exports,'FormRadio',{enumerable:true,get:function get(){return _interopRequireDefault(_FormRadio).default;}});var _FormSelect=__webpack_require__(474);Object.defineProperty(exports,'FormSelect',{enumerable:true,get:function get(){return _interopRequireDefault(_FormSelect).default;}});var _FormTextArea=__webpack_require__(475);Object.defineProperty(exports,'FormTextArea',{enumerable:true,get:function get(){return _interopRequireDefault(_FormTextArea).default;}});var _Grid=__webpack_require__(1070);Object.defineProperty(exports,'Grid',{enumerable:true,get:function get(){return _interopRequireDefault(_Grid).default;}});var _GridColumn=__webpack_require__(476);Object.defineProperty(exports,'GridColumn',{enumerable:true,get:function get(){return _interopRequireDefault(_GridColumn).default;}});var _GridRow=__webpack_require__(477);Object.defineProperty(exports,'GridRow',{enumerable:true,get:function get(){return _interopRequireDefault(_GridRow).default;}});var _Menu=__webpack_require__(1072);Object.defineProperty(exports,'Menu',{enumerable:true,get:function get(){return _interopRequireDefault(_Menu).default;}});var _MenuHeader=__webpack_require__(478);Object.defineProperty(exports,'MenuHeader',{enumerable:true,get:function get(){return _interopRequireDefault(_MenuHeader).default;}});var _MenuItem=__webpack_require__(479);Object.defineProperty(exports,'MenuItem',{enumerable:true,get:function get(){return _interopRequireDefault(_MenuItem).default;}});var _MenuMenu=__webpack_require__(480);Object.defineProperty(exports,'MenuMenu',{enumerable:true,get:function get(){return _interopRequireDefault(_MenuMenu).default;}});var _Message=__webpack_require__(1074);Object.defineProperty(exports,'Message',{enumerable:true,get:function get(){return _interopRequireDefault(_Message).default;}});var _MessageContent=__webpack_require__(481);Object.defineProperty(exports,'MessageContent',{enumerable:true,get:function get(){return _interopRequireDefault(_MessageContent).default;}});var _MessageHeader=__webpack_require__(482);Object.defineProperty(exports,'MessageHeader',{enumerable:true,get:function get(){return _interopRequireDefault(_MessageHeader).default;}});var _MessageItem=__webpack_require__(270);Object.defineProperty(exports,'MessageItem',{enumerable:true,get:function get(){return _interopRequireDefault(_MessageItem).default;}});var _MessageList=__webpack_require__(483);Object.defineProperty(exports,'MessageList',{enumerable:true,get:function get(){return _interopRequireDefault(_MessageList).default;}});var _Table=__webpack_require__(1076);Object.defineProperty(exports,'Table',{enumerable:true,get:function get(){return _interopRequireDefault(_Table).default;}});var _TableBody=__webpack_require__(484);Object.defineProperty(exports,'TableBody',{enumerable:true,get:function get(){return _interopRequireDefault(_TableBody).default;}});var _TableCell=__webpack_require__(187);Object.defineProperty(exports,'TableCell',{enumerable:true,get:function get(){return _interopRequireDefault(_TableCell).default;}});var _TableFooter=__webpack_require__(485);Object.defineProperty(exports,'TableFooter',{enumerable:true,get:function get(){return _interopRequireDefault(_TableFooter).default;}});var _TableHeader=__webpack_require__(271);Object.defineProperty(exports,'TableHeader',{enumerable:true,get:function get(){return _interopRequireDefault(_TableHeader).default;}});var _TableHeaderCell=__webpack_require__(486);Object.defineProperty(exports,'TableHeaderCell',{enumerable:true,get:function get(){return _interopRequireDefault(_TableHeaderCell).default;}});var _TableRow=__webpack_require__(487);Object.defineProperty(exports,'TableRow',{enumerable:true,get:function get(){return _interopRequireDefault(_TableRow).default;}});var _Button=__webpack_require__(488);Object.defineProperty(exports,'Button',{enumerable:true,get:function get(){return _interopRequireDefault(_Button).default;}});var _ButtonContent=__webpack_require__(489);Object.defineProperty(exports,'ButtonContent',{enumerable:true,get:function get(){return _interopRequireDefault(_ButtonContent).default;}});var _ButtonGroup=__webpack_require__(490);Object.defineProperty(exports,'ButtonGroup',{enumerable:true,get:function get(){return _interopRequireDefault(_ButtonGroup).default;}});var _ButtonOr=__webpack_require__(491);Object.defineProperty(exports,'ButtonOr',{enumerable:true,get:function get(){return _interopRequireDefault(_ButtonOr).default;}});var _Container=__webpack_require__(1078);Object.defineProperty(exports,'Container',{enumerable:true,get:function get(){return _interopRequireDefault(_Container).default;}});var _Divider=__webpack_require__(1080);Object.defineProperty(exports,'Divider',{enumerable:true,get:function get(){return _interopRequireDefault(_Divider).default;}});var _Flag=__webpack_require__(492);Object.defineProperty(exports,'Flag',{enumerable:true,get:function get(){return _interopRequireDefault(_Flag).default;}});var _Header=__webpack_require__(1083);Object.defineProperty(exports,'Header',{enumerable:true,get:function get(){return _interopRequireDefault(_Header).default;}});var _HeaderContent=__webpack_require__(493);Object.defineProperty(exports,'HeaderContent',{enumerable:true,get:function get(){return _interopRequireDefault(_HeaderContent).default;}});var _HeaderSubheader=__webpack_require__(494);Object.defineProperty(exports,'HeaderSubheader',{enumerable:true,get:function get(){return _interopRequireDefault(_HeaderSubheader).default;}});var _Icon=__webpack_require__(22);Object.defineProperty(exports,'Icon',{enumerable:true,get:function get(){return _interopRequireDefault(_Icon).default;}});var _IconGroup=__webpack_require__(495);Object.defineProperty(exports,'IconGroup',{enumerable:true,get:function get(){return _interopRequireDefault(_IconGroup).default;}});var _Image=__webpack_require__(97);Object.defineProperty(exports,'Image',{enumerable:true,get:function get(){return _interopRequireDefault(_Image).default;}});var _ImageGroup=__webpack_require__(497);Object.defineProperty(exports,'ImageGroup',{enumerable:true,get:function get(){return _interopRequireDefault(_ImageGroup).default;}});var _Input=__webpack_require__(273);Object.defineProperty(exports,'Input',{enumerable:true,get:function get(){return _interopRequireDefault(_Input).default;}});var _Label=__webpack_require__(189);Object.defineProperty(exports,'Label',{enumerable:true,get:function get(){return _interopRequireDefault(_Label).default;}});var _LabelDetail=__webpack_require__(498);Object.defineProperty(exports,'LabelDetail',{enumerable:true,get:function get(){return _interopRequireDefault(_LabelDetail).default;}});var _LabelGroup=__webpack_require__(499);Object.defineProperty(exports,'LabelGroup',{enumerable:true,get:function get(){return _interopRequireDefault(_LabelGroup).default;}});var _List=__webpack_require__(1086);Object.defineProperty(exports,'List',{enumerable:true,get:function get(){return _interopRequireDefault(_List).default;}});var _ListContent=__webpack_require__(275);Object.defineProperty(exports,'ListContent',{enumerable:true,get:function get(){return _interopRequireDefault(_ListContent).default;}});var _ListDescription=__webpack_require__(190);Object.defineProperty(exports,'ListDescription',{enumerable:true,get:function get(){return _interopRequireDefault(_ListDescription).default;}});var _ListHeader=__webpack_require__(191);Object.defineProperty(exports,'ListHeader',{enumerable:true,get:function get(){return _interopRequireDefault(_ListHeader).default;}});var _ListIcon=__webpack_require__(276);Object.defineProperty(exports,'ListIcon',{enumerable:true,get:function get(){return _interopRequireDefault(_ListIcon).default;}});var _ListItem=__webpack_require__(500);Object.defineProperty(exports,'ListItem',{enumerable:true,get:function get(){return _interopRequireDefault(_ListItem).default;}});var _ListList=__webpack_require__(501);Object.defineProperty(exports,'ListList',{enumerable:true,get:function get(){return _interopRequireDefault(_ListList).default;}});var _Loader=__webpack_require__(1088);Object.defineProperty(exports,'Loader',{enumerable:true,get:function get(){return _interopRequireDefault(_Loader).default;}});var _Rail=__webpack_require__(1090);Object.defineProperty(exports,'Rail',{enumerable:true,get:function get(){return _interopRequireDefault(_Rail).default;}});var _Reveal=__webpack_require__(1092);Object.defineProperty(exports,'Reveal',{enumerable:true,get:function get(){return _interopRequireDefault(_Reveal).default;}});var _RevealContent=__webpack_require__(502);Object.defineProperty(exports,'RevealContent',{enumerable:true,get:function get(){return _interopRequireDefault(_RevealContent).default;}});var _Segment=__webpack_require__(1094);Object.defineProperty(exports,'Segment',{enumerable:true,get:function get(){return _interopRequireDefault(_Segment).default;}});var _SegmentGroup=__webpack_require__(503);Object.defineProperty(exports,'SegmentGroup',{enumerable:true,get:function get(){return _interopRequireDefault(_SegmentGroup).default;}});var _Step=__webpack_require__(1095);Object.defineProperty(exports,'Step',{enumerable:true,get:function get(){return _interopRequireDefault(_Step).default;}});var _StepContent=__webpack_require__(505);Object.defineProperty(exports,'StepContent',{enumerable:true,get:function get(){return _interopRequireDefault(_StepContent).default;}});var _StepDescription=__webpack_require__(277);Object.defineProperty(exports,'StepDescription',{enumerable:true,get:function get(){return _interopRequireDefault(_StepDescription).default;}});var _StepGroup=__webpack_require__(506);Object.defineProperty(exports,'StepGroup',{enumerable:true,get:function get(){return _interopRequireDefault(_StepGroup).default;}});var _StepTitle=__webpack_require__(278);Object.defineProperty(exports,'StepTitle',{enumerable:true,get:function get(){return _interopRequireDefault(_StepTitle).default;}});var _Accordion=__webpack_require__(1108);Object.defineProperty(exports,'Accordion',{enumerable:true,get:function get(){return _interopRequireDefault(_Accordion).default;}});var _AccordionContent=__webpack_require__(509);Object.defineProperty(exports,'AccordionContent',{enumerable:true,get:function get(){return _interopRequireDefault(_AccordionContent).default;}});var _AccordionTitle=__webpack_require__(510);Object.defineProperty(exports,'AccordionTitle',{enumerable:true,get:function get(){return _interopRequireDefault(_AccordionTitle).default;}});var _Checkbox=__webpack_require__(192);Object.defineProperty(exports,'Checkbox',{enumerable:true,get:function get(){return _interopRequireDefault(_Checkbox).default;}});var _Dimmer=__webpack_require__(512);Object.defineProperty(exports,'Dimmer',{enumerable:true,get:function get(){return _interopRequireDefault(_Dimmer).default;}});var _DimmerDimmable=__webpack_require__(511);Object.defineProperty(exports,'DimmerDimmable',{enumerable:true,get:function get(){return _interopRequireDefault(_DimmerDimmable).default;}});var _Dropdown=__webpack_require__(280);Object.defineProperty(exports,'Dropdown',{enumerable:true,get:function get(){return _interopRequireDefault(_Dropdown).default;}});var _DropdownDivider=__webpack_require__(513);Object.defineProperty(exports,'DropdownDivider',{enumerable:true,get:function get(){return _interopRequireDefault(_DropdownDivider).default;}});var _DropdownHeader=__webpack_require__(514);Object.defineProperty(exports,'DropdownHeader',{enumerable:true,get:function get(){return _interopRequireDefault(_DropdownHeader).default;}});var _DropdownItem=__webpack_require__(515);Object.defineProperty(exports,'DropdownItem',{enumerable:true,get:function get(){return _interopRequireDefault(_DropdownItem).default;}});var _DropdownMenu=__webpack_require__(516);Object.defineProperty(exports,'DropdownMenu',{enumerable:true,get:function get(){return _interopRequireDefault(_DropdownMenu).default;}});var _Embed=__webpack_require__(1113);Object.defineProperty(exports,'Embed',{enumerable:true,get:function get(){return _interopRequireDefault(_Embed).default;}});var _Modal=__webpack_require__(521);Object.defineProperty(exports,'Modal',{enumerable:true,get:function get(){return _interopRequireDefault(_Modal).default;}});var _ModalActions=__webpack_require__(517);Object.defineProperty(exports,'ModalActions',{enumerable:true,get:function get(){return _interopRequireDefault(_ModalActions).default;}});var _ModalContent=__webpack_require__(518);Object.defineProperty(exports,'ModalContent',{enumerable:true,get:function get(){return _interopRequireDefault(_ModalContent).default;}});var _ModalDescription=__webpack_require__(519);Object.defineProperty(exports,'ModalDescription',{enumerable:true,get:function get(){return _interopRequireDefault(_ModalDescription).default;}});var _ModalHeader=__webpack_require__(520);Object.defineProperty(exports,'ModalHeader',{enumerable:true,get:function get(){return _interopRequireDefault(_ModalHeader).default;}});var _Popup=__webpack_require__(1116);Object.defineProperty(exports,'Popup',{enumerable:true,get:function get(){return _interopRequireDefault(_Popup).default;}});var _PopupContent=__webpack_require__(522);Object.defineProperty(exports,'PopupContent',{enumerable:true,get:function get(){return _interopRequireDefault(_PopupContent).default;}});var _PopupHeader=__webpack_require__(523);Object.defineProperty(exports,'PopupHeader',{enumerable:true,get:function get(){return _interopRequireDefault(_PopupHeader).default;}});var _Progress=__webpack_require__(1118);Object.defineProperty(exports,'Progress',{enumerable:true,get:function get(){return _interopRequireDefault(_Progress).default;}});var _Rating=__webpack_require__(1121);Object.defineProperty(exports,'Rating',{enumerable:true,get:function get(){return _interopRequireDefault(_Rating).default;}});var _Search=__webpack_require__(1123);Object.defineProperty(exports,'Search',{enumerable:true,get:function get(){return _interopRequireDefault(_Search).default;}});var _SearchCategory=__webpack_require__(524);Object.defineProperty(exports,'SearchCategory',{enumerable:true,get:function get(){return _interopRequireDefault(_SearchCategory).default;}});var _SearchResult=__webpack_require__(525);Object.defineProperty(exports,'SearchResult',{enumerable:true,get:function get(){return _interopRequireDefault(_SearchResult).default;}});var _SearchResults=__webpack_require__(526);Object.defineProperty(exports,'SearchResults',{enumerable:true,get:function get(){return _interopRequireDefault(_SearchResults).default;}});var _Card=__webpack_require__(527);Object.defineProperty(exports,'Card',{enumerable:true,get:function get(){return _interopRequireDefault(_Card).default;}});var _CardContent=__webpack_require__(528);Object.defineProperty(exports,'CardContent',{enumerable:true,get:function get(){return _interopRequireDefault(_CardContent).default;}});var _CardDescription=__webpack_require__(281);Object.defineProperty(exports,'CardDescription',{enumerable:true,get:function get(){return _interopRequireDefault(_CardDescription).default;}});var _CardGroup=__webpack_require__(529);Object.defineProperty(exports,'CardGroup',{enumerable:true,get:function get(){return _interopRequireDefault(_CardGroup).default;}});var _CardHeader=__webpack_require__(282);Object.defineProperty(exports,'CardHeader',{enumerable:true,get:function get(){return _interopRequireDefault(_CardHeader).default;}});var _CardMeta=__webpack_require__(283);Object.defineProperty(exports,'CardMeta',{enumerable:true,get:function get(){return _interopRequireDefault(_CardMeta).default;}});var _Comment=__webpack_require__(1125);Object.defineProperty(exports,'Comment',{enumerable:true,get:function get(){return _interopRequireDefault(_Comment).default;}});var _CommentAction=__webpack_require__(530);Object.defineProperty(exports,'CommentAction',{enumerable:true,get:function get(){return _interopRequireDefault(_CommentAction).default;}});var _CommentActions=__webpack_require__(531);Object.defineProperty(exports,'CommentActions',{enumerable:true,get:function get(){return _interopRequireDefault(_CommentActions).default;}});var _CommentAuthor=__webpack_require__(532);Object.defineProperty(exports,'CommentAuthor',{enumerable:true,get:function get(){return _interopRequireDefault(_CommentAuthor).default;}});var _CommentAvatar=__webpack_require__(533);Object.defineProperty(exports,'CommentAvatar',{enumerable:true,get:function get(){return _interopRequireDefault(_CommentAvatar).default;}});var _CommentContent=__webpack_require__(534);Object.defineProperty(exports,'CommentContent',{enumerable:true,get:function get(){return _interopRequireDefault(_CommentContent).default;}});var _CommentGroup=__webpack_require__(535);Object.defineProperty(exports,'CommentGroup',{enumerable:true,get:function get(){return _interopRequireDefault(_CommentGroup).default;}});var _CommentMetadata=__webpack_require__(536);Object.defineProperty(exports,'CommentMetadata',{enumerable:true,get:function get(){return _interopRequireDefault(_CommentMetadata).default;}});var _CommentText=__webpack_require__(537);Object.defineProperty(exports,'CommentText',{enumerable:true,get:function get(){return _interopRequireDefault(_CommentText).default;}});var _Feed=__webpack_require__(1127);Object.defineProperty(exports,'Feed',{enumerable:true,get:function get(){return _interopRequireDefault(_Feed).default;}});var _FeedContent=__webpack_require__(284);Object.defineProperty(exports,'FeedContent',{enumerable:true,get:function get(){return _interopRequireDefault(_FeedContent).default;}});var _FeedDate=__webpack_require__(193);Object.defineProperty(exports,'FeedDate',{enumerable:true,get:function get(){return _interopRequireDefault(_FeedDate).default;}});var _FeedEvent=__webpack_require__(538);Object.defineProperty(exports,'FeedEvent',{enumerable:true,get:function get(){return _interopRequireDefault(_FeedEvent).default;}});var _FeedExtra=__webpack_require__(285);Object.defineProperty(exports,'FeedExtra',{enumerable:true,get:function get(){return _interopRequireDefault(_FeedExtra).default;}});var _FeedLabel=__webpack_require__(286);Object.defineProperty(exports,'FeedLabel',{enumerable:true,get:function get(){return _interopRequireDefault(_FeedLabel).default;}});var _FeedLike=__webpack_require__(287);Object.defineProperty(exports,'FeedLike',{enumerable:true,get:function get(){return _interopRequireDefault(_FeedLike).default;}});var _FeedMeta=__webpack_require__(288);Object.defineProperty(exports,'FeedMeta',{enumerable:true,get:function get(){return _interopRequireDefault(_FeedMeta).default;}});var _FeedSummary=__webpack_require__(289);Object.defineProperty(exports,'FeedSummary',{enumerable:true,get:function get(){return _interopRequireDefault(_FeedSummary).default;}});var _FeedUser=__webpack_require__(290);Object.defineProperty(exports,'FeedUser',{enumerable:true,get:function get(){return _interopRequireDefault(_FeedUser).default;}});var _Item=__webpack_require__(1128);Object.defineProperty(exports,'Item',{enumerable:true,get:function get(){return _interopRequireDefault(_Item).default;}});var _ItemContent=__webpack_require__(540);Object.defineProperty(exports,'ItemContent',{enumerable:true,get:function get(){return _interopRequireDefault(_ItemContent).default;}});var _ItemDescription=__webpack_require__(291);Object.defineProperty(exports,'ItemDescription',{enumerable:true,get:function get(){return _interopRequireDefault(_ItemDescription).default;}});var _ItemExtra=__webpack_require__(292);Object.defineProperty(exports,'ItemExtra',{enumerable:true,get:function get(){return _interopRequireDefault(_ItemExtra).default;}});var _ItemGroup=__webpack_require__(541);Object.defineProperty(exports,'ItemGroup',{enumerable:true,get:function get(){return _interopRequireDefault(_ItemGroup).default;}});var _ItemHeader=__webpack_require__(293);Object.defineProperty(exports,'ItemHeader',{enumerable:true,get:function get(){return _interopRequireDefault(_ItemHeader).default;}});var _ItemImage=__webpack_require__(542);Object.defineProperty(exports,'ItemImage',{enumerable:true,get:function get(){return _interopRequireDefault(_ItemImage).default;}});var _ItemMeta=__webpack_require__(294);Object.defineProperty(exports,'ItemMeta',{enumerable:true,get:function get(){return _interopRequireDefault(_ItemMeta).default;}});var _Statistic=__webpack_require__(1129);Object.defineProperty(exports,'Statistic',{enumerable:true,get:function get(){return _interopRequireDefault(_Statistic).default;}});var _StatisticGroup=__webpack_require__(544);Object.defineProperty(exports,'StatisticGroup',{enumerable:true,get:function get(){return _interopRequireDefault(_StatisticGroup).default;}});var _StatisticLabel=__webpack_require__(545);Object.defineProperty(exports,'StatisticLabel',{enumerable:true,get:function get(){return _interopRequireDefault(_StatisticLabel).default;}});var _StatisticValue=__webpack_require__(546);Object.defineProperty(exports,'StatisticValue',{enumerable:true,get:function get(){return _interopRequireDefault(_StatisticValue).default;}});function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};} /***/ }, +/* 81 */, +/* 82 */, +/* 83 */, /* 84 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';var inherits=__webpack_require__(5);var md5=__webpack_require__(316);var rmd160=__webpack_require__(1052);var sha=__webpack_require__(1124);var Base=__webpack_require__(83);function HashNoConstructor(hash){Base.call(this,'digest');this._hash=hash;this.buffers=[];}inherits(HashNoConstructor,Base);HashNoConstructor.prototype._update=function(data){this.buffers.push(data);};HashNoConstructor.prototype._final=function(){var buf=Buffer.concat(this.buffers);var r=this._hash(buf);this.buffers=null;return r;};function Hash(hash){Base.call(this,'digest');this._hash=hash;}inherits(Hash,Base);Hash.prototype._update=function(data){this._hash.update(data);};Hash.prototype._final=function(){return this._hash.digest();};module.exports=function createHash(alg){alg=alg.toLowerCase();if('md5'===alg)return new HashNoConstructor(md5);if('rmd160'===alg||'ripemd160'===alg)return new HashNoConstructor(rmd160);return new Hash(sha(alg));}; -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer)) +'use strict';exports.__esModule=true;exports.createMemoryHistory=exports.hashHistory=exports.browserHistory=exports.applyRouterMiddleware=exports.formatPattern=exports.useRouterHistory=exports.match=exports.routerShape=exports.locationShape=exports.RouterContext=exports.createRoutes=exports.Route=exports.Redirect=exports.IndexRoute=exports.IndexRedirect=exports.withRouter=exports.IndexLink=exports.Link=exports.Router=undefined;var _RouteUtils=__webpack_require__(62);Object.defineProperty(exports,'createRoutes',{enumerable:true,get:function get(){return _RouteUtils.createRoutes;}});var _PropTypes=__webpack_require__(241);Object.defineProperty(exports,'locationShape',{enumerable:true,get:function get(){return _PropTypes.locationShape;}});Object.defineProperty(exports,'routerShape',{enumerable:true,get:function get(){return _PropTypes.routerShape;}});var _PatternUtils=__webpack_require__(93);Object.defineProperty(exports,'formatPattern',{enumerable:true,get:function get(){return _PatternUtils.formatPattern;}});var _Router2=__webpack_require__(921);var _Router3=_interopRequireDefault(_Router2);var _Link2=__webpack_require__(408);var _Link3=_interopRequireDefault(_Link2);var _IndexLink2=__webpack_require__(917);var _IndexLink3=_interopRequireDefault(_IndexLink2);var _withRouter2=__webpack_require__(932);var _withRouter3=_interopRequireDefault(_withRouter2);var _IndexRedirect2=__webpack_require__(918);var _IndexRedirect3=_interopRequireDefault(_IndexRedirect2);var _IndexRoute2=__webpack_require__(919);var _IndexRoute3=_interopRequireDefault(_IndexRoute2);var _Redirect2=__webpack_require__(410);var _Redirect3=_interopRequireDefault(_Redirect2);var _Route2=__webpack_require__(920);var _Route3=_interopRequireDefault(_Route2);var _RouterContext2=__webpack_require__(242);var _RouterContext3=_interopRequireDefault(_RouterContext2);var _match2=__webpack_require__(930);var _match3=_interopRequireDefault(_match2);var _useRouterHistory2=__webpack_require__(415);var _useRouterHistory3=_interopRequireDefault(_useRouterHistory2);var _applyRouterMiddleware2=__webpack_require__(923);var _applyRouterMiddleware3=_interopRequireDefault(_applyRouterMiddleware2);var _browserHistory2=__webpack_require__(924);var _browserHistory3=_interopRequireDefault(_browserHistory2);var _hashHistory2=__webpack_require__(928);var _hashHistory3=_interopRequireDefault(_hashHistory2);var _createMemoryHistory2=__webpack_require__(412);var _createMemoryHistory3=_interopRequireDefault(_createMemoryHistory2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.Router=_Router3.default;/* components */exports.Link=_Link3.default;exports.IndexLink=_IndexLink3.default;exports.withRouter=_withRouter3.default;/* components (configuration) */exports.IndexRedirect=_IndexRedirect3.default;exports.IndexRoute=_IndexRoute3.default;exports.Redirect=_Redirect3.default;exports.Route=_Route3.default;/* utils */exports.RouterContext=_RouterContext3.default;exports.match=_match3.default;exports.useRouterHistory=_useRouterHistory3.default;exports.applyRouterMiddleware=_applyRouterMiddleware3.default;/* histories */exports.browserHistory=_browserHistory3.default;exports.hashHistory=_hashHistory3.default;exports.createMemoryHistory=_createMemoryHistory3.default; /***/ }, -/* 85 */ -/***/ function(module, exports) { - -"use strict"; -/** - * Indicates that navigation was caused by a call to history.push. - */'use strict';exports.__esModule=true;var PUSH='PUSH';exports.PUSH=PUSH;/** - * Indicates that navigation was caused by a call to history.replace. - */var REPLACE='REPLACE';exports.REPLACE=REPLACE;/** - * Indicates that navigation was caused by some other action such - * as using a browser's back/forward buttons and/or manually manipulating - * the URL in a browser's location bar. This is the default. - * - * See https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onpopstate - * for more information. - */var POP='POP';exports.POP=POP;exports['default']={PUSH:PUSH,REPLACE:REPLACE,POP:POP}; - -/***/ }, -/* 86 */ +/* 85 */, +/* 86 */, +/* 87 */ /***/ function(module, exports) { "use strict"; @@ -3102,14 +1903,14 @@ dispatch({type:'SAVE_STATUS_WAITING'});var reqOptions={method:'POST',uri:locatio */function decimal(character){var code=typeof character==='string'?character.charCodeAt(0):character;return code>=48&&code<=57;/* 0-9 */} /***/ }, -/* 87 */ +/* 88 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var root=__webpack_require__(31);/** Built-in value references. */var _Symbol=root.Symbol;module.exports=_Symbol; +'use strict';var root=__webpack_require__(32);/** Built-in value references. */var _Symbol=root.Symbol;module.exports=_Symbol; /***/ }, -/* 88 */ +/* 89 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -3123,11 +1924,11 @@ dispatch({type:'SAVE_STATUS_WAITING'});var reqOptions={method:'POST',uri:locatio */var baseEach=createBaseEach(baseForOwn);module.exports=baseEach; /***/ }, -/* 89 */ +/* 90 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var assignValue=__webpack_require__(146),baseAssignValue=__webpack_require__(217);/** +'use strict';var assignValue=__webpack_require__(147),baseAssignValue=__webpack_require__(217);/** * Copies properties of `source` to `object`. * * @private @@ -3139,11 +1940,11 @@ dispatch({type:'SAVE_STATUS_WAITING'});var reqOptions={method:'POST',uri:locatio */function copyObject(source,props,object,customizer){var isNew=!object;object||(object={});var index=-1,length=props.length;while(++index0)?process.env.NODE_ENV!=='production'?(0,_invariant2.default)(false,'Missing splat #%s for path "%s"',splatIndex,pattern):(0,_invariant2.default)(false):void 0;if(paramValue!=null)pathname+=encodeURI(paramValue);}else if(token==='('){parenHistory[parenCount]='';parenCount+=1;}else if(token===')'){var parenText=parenHistory.pop();parenCount-=1;if(parenCount)parenHistory[parenCount-1]+=parenText;else pathname+=parenText;}else if(token.charAt(0)===':'){paramName=token.substring(1);paramValue=params[paramName];!(paramValue!=null||parenCount>0)?process.env.NODE_ENV!=='production'?(0,_invariant2.default)(false,'Missing "%s" parameter for path "%s"',paramName,pattern):(0,_invariant2.default)(false):void 0;if(paramValue==null){if(parenCount){parenHistory[parenCount-1]='';var curTokenIdx=tokens.indexOf(token);var tokensSubset=tokens.slice(curTokenIdx,tokens.length);var nextParenIdx=-1;for(var _i=0;_i0)?process.env.NODE_ENV!=='production'?(0,_invariant2.default)(false,'Path "%s" is missing end paren at segment "%s"',pattern,tokensSubset.join('')):(0,_invariant2.default)(false):void 0;// jump to ending paren +i=curTokenIdx+nextParenIdx-1;}}else if(parenCount)parenHistory[parenCount-1]+=encodeURIComponent(paramValue);else pathname+=encodeURIComponent(paramValue);}else{if(parenCount)parenHistory[parenCount-1]+=token;else pathname+=token;}}!(parenCount<=0)?process.env.NODE_ENV!=='production'?(0,_invariant2.default)(false,'Path "%s" is missing end paren',pattern):(0,_invariant2.default)(false):void 0;return pathname.replace(/\/+/g,'/');} +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 92 */ +/* 94 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +'use strict';exports.__esModule=true;exports.default=routerWarning;exports._resetWarned=_resetWarned;var _warning=__webpack_require__(64);var _warning2=_interopRequireDefault(_warning);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var warned={};function routerWarning(falseToWarn,message){// Only issue deprecation warnings once. +if(message.indexOf('deprecated')!==-1){if(warned[message]){return;}warned[message]=true;}message='[react-router] '+message;for(var _len=arguments.length,args=Array(_len>2?_len-2:0),_key=2;_key<_len;_key++){args[_key-2]=arguments[_key];}_warning2.default.apply(undefined,[falseToWarn,message].concat(args));}function _resetWarned(){warned={};} + +/***/ }, +/* 95 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* WEBPACK VAR INJECTION */(function(process) {'use strict';var _typeof2=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};exports.__esModule=true;exports.locationsAreEqual=exports.statesAreEqual=exports.createLocation=exports.createQuery=undefined;var _typeof=typeof Symbol==="function"&&_typeof2(Symbol.iterator)==="symbol"?function(obj){return typeof obj==="undefined"?"undefined":_typeof2(obj);}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol?"symbol":typeof obj==="undefined"?"undefined":_typeof2(obj);};var _extends=Object.assign||function(target){for(var i=1;i=this._finalSize*8){this._update(this._block);this._block.fill(0);}// to this append the block which is equal to the number l written in binary -// TODO: handle case where l is > Math.pow(2, 29) -this._block.writeInt32BE(l,this._blockSize-4);var hash=this._update(this._block)||this._hash();return enc?hash.toString(enc):hash;};Hash.prototype._update=function(){throw new Error('_update must be implemented by subclass');};module.exports=Hash; -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer)) - -/***/ }, -/* 96 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -// a duplex stream is just a stream that is both readable and writable. -// Since JS doesn't have multiple prototypal inheritance, this class -// prototypally inherits from Readable, and then parasitically from -// Writable. -'use strict';/**/var objectKeys=Object.keys||function(obj){var keys=[];for(var key in obj){keys.push(key);}return keys;};/**/module.exports=Duplex;/**/var processNextTick=__webpack_require__(50);/**//**/var util=__webpack_require__(28);util.inherits=__webpack_require__(5);/**/var Readable=__webpack_require__(547);var Writable=__webpack_require__(549);util.inherits(Duplex,Readable);var keys=objectKeys(Writable.prototype);for(var v=0;v-1&&value%1==0&&value false */var isBuffer=nativeIsBuffer||stubFalse;module.exports=isBuffer; -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(98)(module))) +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(101)(module))) /***/ }, -/* 113 */ -/***/ function(module, exports) { - -"use strict"; -'use strict';module.exports=assert;function assert(val,msg){if(!val)throw new Error(msg||'Assertion failed');}assert.equal=function assertEqual(l,r,msg){if(l!=r)throw new Error(msg||'Assertion failed: '+l+' != '+r);}; - -/***/ }, -/* 114 */ +/* 115 */, +/* 116 */, +/* 117 */, +/* 118 */, +/* 119 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -// a duplex stream is just a stream that is both readable and writable. -// Since JS doesn't have multiple prototypal inheritance, this class -// prototypally inherits from Readable, and then parasitically from -// Writable. -'use strict';/**/var objectKeys=Object.keys||function(obj){var keys=[];for(var key in obj){keys.push(key);}return keys;};/**/module.exports=Duplex;/**/var processNextTick=__webpack_require__(50);/**//**/var util=__webpack_require__(28);util.inherits=__webpack_require__(5);/**/var Readable=__webpack_require__(887);var Writable=__webpack_require__(889);util.inherits(Duplex,Readable);var keys=objectKeys(Writable.prototype);for(var v=0;v should not have a "'+propName+'" prop');}var history=exports.history=shape({listen:func.isRequired,push:func.isRequired,replace:func.isRequired,go:func.isRequired,goBack:func.isRequired,goForward:func.isRequired});var component=exports.component=oneOfType([func,string]);var components=exports.components=oneOfType([component,object]);var route=exports.route=oneOfType([object,element]);var routes=exports.routes=oneOfType([route,arrayOf(route)]); /***/ }, -/* 115 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -'use strict';exports.decode=exports.parse=__webpack_require__(912);exports.encode=exports.stringify=__webpack_require__(913); - -/***/ }, -/* 116 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(global, Buffer, process) {'use strict';function oldBrowser(){throw new Error('secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11');}var crypto=global.crypto||global.msCrypto;if(crypto&&crypto.getRandomValues){module.exports=randomBytes;}else{module.exports=oldBrowser;}function randomBytes(size,cb){// phantomjs needs to throw -if(size>65536)throw new Error('requested too many random bytes');// in case browserify isn't using the Uint8Array version -var rawBytes=new global.Uint8Array(size);// This will not work in older browsers. -// See https://developer.mozilla.org/en-US/docs/Web/API/window.crypto.getRandomValues -if(size>0){// getRandomValues fails on IE if size == 0 -crypto.getRandomValues(rawBytes);}// phantomjs doesn't like a buffer being passed here -var bytes=new Buffer(rawBytes.buffer);if(typeof cb==='function'){return process.nextTick(function(){cb(null,bytes);});}return bytes;} -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(17), __webpack_require__(4).Buffer, __webpack_require__(3))) - -/***/ }, -/* 117 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(process) {'use strict';exports.__esModule=true;exports.compilePattern=compilePattern;exports.matchPattern=matchPattern;exports.getParamNames=getParamNames;exports.getParams=getParams;exports.formatPattern=formatPattern;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{'default':obj};}var _invariant=__webpack_require__(33);var _invariant2=_interopRequireDefault(_invariant);function escapeRegExp(string){return string.replace(/[.*+?^${}()|[\]\\]/g,'\\$&');}function escapeSource(string){return escapeRegExp(string).replace(/\/+/g,'/+');}function _compilePattern(pattern){var regexpSource='';var paramNames=[];var tokens=[];var match=undefined,lastIndex=0,matcher=/:([a-zA-Z_$][a-zA-Z0-9_$]*)|\*\*|\*|\(|\)/g;while(match=matcher.exec(pattern)){if(match.index!==lastIndex){tokens.push(pattern.slice(lastIndex,match.index));regexpSource+=escapeSource(pattern.slice(lastIndex,match.index));}if(match[1]){regexpSource+='([^/?#]+)';paramNames.push(match[1]);}else if(match[0]==='**'){regexpSource+='([\\s\\S]*)';paramNames.push('splat');}else if(match[0]==='*'){regexpSource+='([\\s\\S]*?)';paramNames.push('splat');}else if(match[0]==='('){regexpSource+='(?:';}else if(match[0]===')'){regexpSource+=')?';}tokens.push(match[0]);lastIndex=matcher.lastIndex;}if(lastIndex!==pattern.length){tokens.push(pattern.slice(lastIndex,pattern.length));regexpSource+=escapeSource(pattern.slice(lastIndex,pattern.length));}return{pattern:pattern,regexpSource:regexpSource,paramNames:paramNames,tokens:tokens};}var CompiledPatternsCache={};function compilePattern(pattern){if(!(pattern in CompiledPatternsCache))CompiledPatternsCache[pattern]=_compilePattern(pattern);return CompiledPatternsCache[pattern];}/** - * Attempts to match a pattern on the given pathname. Patterns may use - * the following special characters: - * - * - :paramName Matches a URL segment up to the next /, ?, or #. The - * captured string is considered a "param" - * - () Wraps a segment of the URL that is optional - * - * Consumes (non-greedy) all characters up to the next - * character in the pattern, or to the end of the URL if - * there is none - * - ** Consumes (greedy) all characters up to the next character - * in the pattern, or to the end of the URL if there is none - * - * The return value is an object with the following properties: - * - * - remainingPathname - * - paramNames - * - paramValues - */function matchPattern(pattern,pathname){// Make leading slashes consistent between pattern and pathname. -if(pattern.charAt(0)!=='/'){pattern='/'+pattern;}if(pathname.charAt(0)!=='/'){pathname='/'+pathname;}var _compilePattern2=compilePattern(pattern);var regexpSource=_compilePattern2.regexpSource;var paramNames=_compilePattern2.paramNames;var tokens=_compilePattern2.tokens;regexpSource+='/*';// Capture path separators -// Special-case patterns like '*' for catch-all routes. -var captureRemaining=tokens[tokens.length-1]!=='*';if(captureRemaining){// This will match newlines in the remaining path. -regexpSource+='([\\s\\S]*?)';}var match=pathname.match(new RegExp('^'+regexpSource+'$','i'));var remainingPathname=undefined,paramValues=undefined;if(match!=null){if(captureRemaining){remainingPathname=match.pop();var matchedPath=match[0].substr(0,match[0].length-remainingPathname.length);// If we didn't match the entire pathname, then make sure that the match -// we did get ends at a path separator (potentially the one we added -// above at the beginning of the path, if the actual match was empty). -if(remainingPathname&&matchedPath.charAt(matchedPath.length-1)!=='/'){return{remainingPathname:null,paramNames:paramNames,paramValues:null};}}else{// If this matched at all, then the match was the entire pathname. -remainingPathname='';}paramValues=match.slice(1).map(function(v){return v!=null?decodeURIComponent(v):v;});}else{remainingPathname=paramValues=null;}return{remainingPathname:remainingPathname,paramNames:paramNames,paramValues:paramValues};}function getParamNames(pattern){return compilePattern(pattern).paramNames;}function getParams(pattern,pathname){var _matchPattern=matchPattern(pattern,pathname);var paramNames=_matchPattern.paramNames;var paramValues=_matchPattern.paramValues;if(paramValues!=null){return paramNames.reduce(function(memo,paramName,index){memo[paramName]=paramValues[index];return memo;},{});}return null;}/** - * Returns a version of the given pattern with params interpolated. Throws - * if there is a dynamic segment of the pattern for which there is no param. - */function formatPattern(pattern,params){params=params||{};var _compilePattern3=compilePattern(pattern);var tokens=_compilePattern3.tokens;var parenCount=0,pathname='',splatIndex=0;var token=undefined,paramName=undefined,paramValue=undefined;for(var i=0,len=tokens.length;i0)?process.env.NODE_ENV!=='production'?_invariant2['default'](false,'Missing splat #%s for path "%s"',splatIndex,pattern):_invariant2['default'](false):undefined;if(paramValue!=null)pathname+=encodeURI(paramValue);}else if(token==='('){parenCount+=1;}else if(token===')'){parenCount-=1;}else if(token.charAt(0)===':'){paramName=token.substring(1);paramValue=params[paramName];!(paramValue!=null||parenCount>0)?process.env.NODE_ENV!=='production'?_invariant2['default'](false,'Missing "%s" parameter for path "%s"',paramName,pattern):_invariant2['default'](false):undefined;if(paramValue!=null)pathname+=encodeURIComponent(paramValue);}else{pathname+=token;}}return pathname.replace(/\/+/g,'/');} -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) - -/***/ }, -/* 118 */ +/* 120 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -3695,7 +2423,7 @@ remainingPathname='';}paramValues=match.slice(1).map(function(v){return v!=null? * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule EventPluginHub - */'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};var EventPluginRegistry=__webpack_require__(412);var EventPluginUtils=__webpack_require__(941);var ReactErrorUtils=__webpack_require__(425);var accumulateInto=__webpack_require__(434);var forEachAccumulated=__webpack_require__(435);var invariant=__webpack_require__(6);var warning=__webpack_require__(8);/** + */'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};var EventPluginRegistry=__webpack_require__(421);var EventPluginUtils=__webpack_require__(947);var ReactErrorUtils=__webpack_require__(434);var accumulateInto=__webpack_require__(443);var forEachAccumulated=__webpack_require__(444);var invariant=__webpack_require__(6);var warning=__webpack_require__(8);/** * Internal store for event listeners */var listenerBank={};/** * Internal queue of events that have accumulated their dispatches and are @@ -3793,7 +2521,7 @@ ReactErrorUtils.rethrowCaughtError();},/** /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 119 */ +/* 121 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -3806,7 +2534,7 @@ ReactErrorUtils.rethrowCaughtError();},/** * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule EventPropagators - */'use strict';var EventConstants=__webpack_require__(51);var EventPluginHub=__webpack_require__(118);var warning=__webpack_require__(8);var accumulateInto=__webpack_require__(434);var forEachAccumulated=__webpack_require__(435);var PropagationPhases=EventConstants.PropagationPhases;var getListener=EventPluginHub.getListener;/** + */'use strict';var EventConstants=__webpack_require__(50);var EventPluginHub=__webpack_require__(120);var warning=__webpack_require__(8);var accumulateInto=__webpack_require__(443);var forEachAccumulated=__webpack_require__(444);var PropagationPhases=EventConstants.PropagationPhases;var getListener=EventPluginHub.getListener;/** * Some event types have a notion of different registration names for different * "phases" of propagation. This finds listeners by a given phase. */function listenerAtPhase(id,event,propagationPhase){var registrationName=event.dispatchConfig.phasedRegistrationNames[propagationPhase];return getListener(id,registrationName);}/** @@ -3844,7 +2572,7 @@ ReactErrorUtils.rethrowCaughtError();},/** /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 120 */ +/* 122 */ /***/ function(module, exports) { "use strict"; @@ -3870,7 +2598,7 @@ var ReactInstanceMap={/** */remove:function remove(key){key._reactInternalInstance=undefined;},get:function get(key){return key._reactInternalInstance;},has:function has(key){return key._reactInternalInstance!==undefined;},set:function set(key,value){key._reactInternalInstance=value;}};module.exports=ReactInstanceMap; /***/ }, -/* 121 */ +/* 123 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -3884,7 +2612,7 @@ var ReactInstanceMap={/** * * @providesModule SyntheticUIEvent * @typechecks static-only - */'use strict';var SyntheticEvent=__webpack_require__(77);var getEventTarget=__webpack_require__(252);/** + */'use strict';var SyntheticEvent=__webpack_require__(79);var getEventTarget=__webpack_require__(258);/** * @interface UIEvent * @see http://www.w3.org/TR/DOM-Level-3-Events/ */var UIEventInterface={view:function view(event){if(event.view){return event.view;}var target=getEventTarget(event);if(target!=null&&target.window===target){// target is a window object @@ -3897,148 +2625,19 @@ if(doc){return doc.defaultView||doc.parentWindow;}else{return window;}},detail:f */function SyntheticUIEvent(dispatchConfig,dispatchMarker,nativeEvent,nativeEventTarget){SyntheticEvent.call(this,dispatchConfig,dispatchMarker,nativeEvent,nativeEventTarget);}SyntheticEvent.augmentClass(SyntheticUIEvent,UIEventInterface);module.exports=SyntheticUIEvent; /***/ }, -/* 122 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';// Copyright 2016 Joyent, Inc. -module.exports=Certificate;var assert=__webpack_require__(13);var algs=__webpack_require__(25);var crypto=__webpack_require__(11);var Fingerprint=__webpack_require__(123);var Signature=__webpack_require__(55);var errs=__webpack_require__(54);var util=__webpack_require__(10);var utils=__webpack_require__(20);var Key=__webpack_require__(26);var PrivateKey=__webpack_require__(27);var Identity=__webpack_require__(125);var formats={};formats['openssh']=__webpack_require__(1130);formats['x509']=__webpack_require__(543);formats['pem']=__webpack_require__(1131);var CertificateParseError=errs.CertificateParseError;var InvalidAlgorithmError=errs.InvalidAlgorithmError;function Certificate(opts){assert.object(opts,'options');assert.arrayOfObject(opts.subjects,'options.subjects');utils.assertCompatible(opts.subjects[0],Identity,[1,0],'options.subjects');utils.assertCompatible(opts.subjectKey,Key,[1,0],'options.subjectKey');utils.assertCompatible(opts.issuer,Identity,[1,0],'options.issuer');if(opts.issuerKey!==undefined){utils.assertCompatible(opts.issuerKey,Key,[1,0],'options.issuerKey');}assert.object(opts.signatures,'options.signatures');assert.buffer(opts.serial,'options.serial');assert.date(opts.validFrom,'options.validFrom');assert.date(opts.validUntil,'optons.validUntil');this._hashCache={};this.subjects=opts.subjects;this.issuer=opts.issuer;this.subjectKey=opts.subjectKey;this.issuerKey=opts.issuerKey;this.signatures=opts.signatures;this.serial=opts.serial;this.validFrom=opts.validFrom;this.validUntil=opts.validUntil;}Certificate.formats=formats;Certificate.prototype.toBuffer=function(format,options){if(format===undefined)format='x509';assert.string(format,'format');assert.object(formats[format],'formats[format]');assert.optionalObject(options,'options');return formats[format].write(this,options);};Certificate.prototype.toString=function(format,options){if(format===undefined)format='pem';return this.toBuffer(format,options).toString();};Certificate.prototype.fingerprint=function(algo){if(algo===undefined)algo='sha256';assert.string(algo,'algorithm');var opts={type:'certificate',hash:this.hash(algo),algorithm:algo};return new Fingerprint(opts);};Certificate.prototype.hash=function(algo){assert.string(algo,'algorithm');algo=algo.toLowerCase();if(algs.hashAlgs[algo]===undefined)throw new InvalidAlgorithmError(algo);if(this._hashCache[algo])return this._hashCache[algo];var hash=crypto.createHash(algo).update(this.toBuffer('x509')).digest();this._hashCache[algo]=hash;return hash;};Certificate.prototype.isExpired=function(when){if(when===undefined)when=new Date();return!(when.getTime()>=this.validFrom.getTime()&&when.getTime()2){alg='md5';if(parts[0].toLowerCase()==='md5')parts=parts.slice(1);parts=parts.join('');/*JSSTYLED*/var md5RE=/^[a-fA-F0-9]+$/;if(!md5RE.test(parts))throw new FingerprintFormatError(fp);try{hash=new Buffer(parts,'hex');}catch(e){throw new FingerprintFormatError(fp);}}if(alg===undefined)throw new FingerprintFormatError(fp);if(algs.hashAlgs[alg]===undefined)throw new InvalidAlgorithmError(alg);if(enAlgs!==undefined){enAlgs=enAlgs.map(function(a){return a.toLowerCase();});if(enAlgs.indexOf(alg)===-1)throw new InvalidAlgorithmError(alg);}return new Fingerprint({algorithm:alg,hash:hash,type:options.type||'key'});};function addColons(s){/*JSSTYLED*/return s.replace(/(.{2})(?=.)/g,'$1:');}function base64Strip(s){/*JSSTYLED*/return s.replace(/=*$/,'');}function sshBase64Format(alg,h){return alg.toUpperCase()+':'+base64Strip(h);}Fingerprint.isFingerprint=function(obj,ver){return utils.isCompatible(obj,Fingerprint,ver);};/* - * API versions for Fingerprint: - * [1,0] -- initial ver - * [1,1] -- first tagged ver - */Fingerprint.prototype._sshpkApiVersion=[1,1];Fingerprint._oldVersionDetect=function(obj){assert.func(obj.toString);assert.func(obj.matches);return[1,0];}; -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer)) - -/***/ }, -/* 124 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};// Copyright 2015 Joyent, Inc. -module.exports={read:read,readPkcs8:readPkcs8,write:write,writePkcs8:writePkcs8,readECDSACurve:readECDSACurve,writeECDSACurve:writeECDSACurve};var assert=__webpack_require__(13);var asn1=__webpack_require__(56);var algs=__webpack_require__(25);var utils=__webpack_require__(20);var Key=__webpack_require__(26);var PrivateKey=__webpack_require__(27);var pem=__webpack_require__(65);function read(buf,options){return pem.read(buf,options,'pkcs8');}function write(key,options){return pem.write(key,options,'pkcs8');}/* Helper to read in a single mpint */function readMPInt(der,nm){assert.strictEqual(der.peek(),asn1.Ber.Integer,nm+' is not an Integer');return utils.mpNormalize(der.readString(asn1.Ber.Integer,true));}function readPkcs8(alg,type,der){/* Private keys in pkcs#8 format have a weird extra int */if(der.peek()===asn1.Ber.Integer){assert.strictEqual(type,'private','unexpected Integer at start of public key');der.readString(asn1.Ber.Integer,true);}der.readSequence();var next=der.offset+der.length;var oid=der.readOID();switch(oid){case'1.2.840.113549.1.1.1':der._offset=next;if(type==='public')return readPkcs8RSAPublic(der);else return readPkcs8RSAPrivate(der);case'1.2.840.10040.4.1':if(type==='public')return readPkcs8DSAPublic(der);else return readPkcs8DSAPrivate(der);case'1.2.840.10045.2.1':if(type==='public')return readPkcs8ECDSAPublic(der);else return readPkcs8ECDSAPrivate(der);default:throw new Error('Unknown key type OID '+oid);}}function readPkcs8RSAPublic(der){// bit string sequence -der.readSequence(asn1.Ber.BitString);der.readByte();der.readSequence();// modulus -var n=readMPInt(der,'modulus');var e=readMPInt(der,'exponent');// now, make the key -var key={type:'rsa',source:der.originalInput,parts:[{name:'e',data:e},{name:'n',data:n}]};return new Key(key);}function readPkcs8RSAPrivate(der){der.readSequence(asn1.Ber.OctetString);der.readSequence();var ver=readMPInt(der,'version');assert.equal(ver[0],0x0,'unknown RSA private key version');// modulus then public exponent -var n=readMPInt(der,'modulus');var e=readMPInt(der,'public exponent');var d=readMPInt(der,'private exponent');var p=readMPInt(der,'prime1');var q=readMPInt(der,'prime2');var dmodp=readMPInt(der,'exponent1');var dmodq=readMPInt(der,'exponent2');var iqmp=readMPInt(der,'iqmp');// now, make the key -var key={type:'rsa',parts:[{name:'n',data:n},{name:'e',data:e},{name:'d',data:d},{name:'iqmp',data:iqmp},{name:'p',data:p},{name:'q',data:q},{name:'dmodp',data:dmodp},{name:'dmodq',data:dmodq}]};return new PrivateKey(key);}function readPkcs8DSAPublic(der){der.readSequence();var p=readMPInt(der,'p');var q=readMPInt(der,'q');var g=readMPInt(der,'g');// bit string sequence -der.readSequence(asn1.Ber.BitString);der.readByte();var y=readMPInt(der,'y');// now, make the key -var key={type:'dsa',parts:[{name:'p',data:p},{name:'q',data:q},{name:'g',data:g},{name:'y',data:y}]};return new Key(key);}function readPkcs8DSAPrivate(der){der.readSequence();var p=readMPInt(der,'p');var q=readMPInt(der,'q');var g=readMPInt(der,'g');der.readSequence(asn1.Ber.OctetString);var x=readMPInt(der,'x');/* The pkcs#8 format does not include the public key */var y=utils.calculateDSAPublic(g,p,x);var key={type:'dsa',parts:[{name:'p',data:p},{name:'q',data:q},{name:'g',data:g},{name:'y',data:y},{name:'x',data:x}]};return new PrivateKey(key);}function readECDSACurve(der){var curveName,curveNames;var j,c,cd;if(der.peek()===asn1.Ber.OID){var oid=der.readOID();curveNames=Object.keys(algs.curves);for(j=0;j0){this.cn=this.componentLookup.cn[0].value;}assert.optionalString(opts.type,'options.type');if(opts.type===undefined){if(this.components.length===1&&this.componentLookup.cn&&this.componentLookup.cn.length===1&&this.componentLookup.cn[0].value.match(DNS_NAME_RE)){this.type='host';this.hostname=this.componentLookup.cn[0].value;}else if(this.componentLookup.dc&&this.components.length===this.componentLookup.dc.length){this.type='host';this.hostname=this.componentLookup.dc.map(function(c){return c.value;}).join('.');}else if(this.componentLookup.uid&&this.components.length===this.componentLookup.uid.length){this.type='user';this.uid=this.componentLookup.uid[0].value;}else if(this.componentLookup.cn&&this.componentLookup.cn.length===1&&this.componentLookup.cn[0].value.match(DNS_NAME_RE)){this.type='host';this.hostname=this.componentLookup.cn[0].value;}else if(this.componentLookup.uid&&this.componentLookup.uid.length===1){this.type='user';this.uid=this.componentLookup.uid[0].value;}else if(this.componentLookup.mail&&this.componentLookup.mail.length===1){this.type='email';this.email=this.componentLookup.mail[0].value;}else if(this.componentLookup.cn&&this.componentLookup.cn.length===1){this.type='user';this.uid=this.componentLookup.cn[0].value;}else{this.type='unknown';}}else{this.type=opts.type;if(this.type==='host')this.hostname=opts.hostname;else if(this.type==='user')this.uid=opts.uid;else if(this.type==='email')this.email=opts.email;else throw new Error('Unknown type '+this.type);}}Identity.prototype.toString=function(){return this.components.map(function(c){return c.name.toUpperCase()+'='+c.value;}).join(', ');};Identity.prototype.toAsn1=function(der,tag){der.startSequence(tag);this.components.forEach(function(c){der.startSequence(asn1.Ber.Constructor|asn1.Ber.Set);der.startSequence();der.writeOID(c.oid);der.writeString(c.value,asn1.Ber.PrintableString);der.endSequence();der.endSequence();});der.endSequence();};function globMatch(a,b){if(a==='**'||b==='**')return true;var aParts=a.split('.');var bParts=b.split('.');if(aParts.length!==bParts.length)return false;for(var i=0;iuint_max||x<0?(x_pos=Math.abs(x)%uint_max,x<0?uint_max-x_pos:x_pos):x;return ret;}function scrub_vec(v){for(var i=0;i>>8^sx&0xff^0x63;this.SBOX[x]=sx;this.INV_SBOX[sx]=x;x2=d[x];x4=d[x2];x8=d[x4];t=d[sx]*0x101^sx*0x1010100;this.SUB_MIX[0][x]=t<<24|t>>>8;this.SUB_MIX[1][x]=t<<16|t>>>16;this.SUB_MIX[2][x]=t<<8|t>>>24;this.SUB_MIX[3][x]=t;t=x8*0x1010101^x4*0x10001^x2*0x101^x*0x1010100;this.INV_SUB_MIX[0][sx]=t<<24|t>>>8;this.INV_SUB_MIX[1][sx]=t<<16|t>>>16;this.INV_SUB_MIX[2][sx]=t<<8|t>>>24;this.INV_SUB_MIX[3][sx]=t;if(x===0){x=xi=1;}else{x=x2^d[d[d[x8^x2]]];xi^=d[d[xi]];}}return true;};var G=new Global();AES.blockSize=4*4;AES.prototype.blockSize=AES.blockSize;AES.keySize=256/8;AES.prototype.keySize=AES.keySize;function bufferToArray(buf){var len=buf.length/4;var out=new Array(len);var i=-1;while(++i>>24,t=G.SBOX[t>>>24]<<24|G.SBOX[t>>>16&0xff]<<16|G.SBOX[t>>>8&0xff]<<8|G.SBOX[t&0xff],t^=G.RCON[ksRow/keySize|0]<<24):keySize>6&&ksRow%keySize===4?t=G.SBOX[t>>>24]<<24|G.SBOX[t>>>16&0xff]<<16|G.SBOX[t>>>8&0xff]<<8|G.SBOX[t&0xff]:void 0,this._keySchedule[ksRow-keySize]^t);}this._invKeySchedule=[];for(invKsRow=0;invKsRow>>24]]^G.INV_SUB_MIX[1][G.SBOX[t>>>16&0xff]]^G.INV_SUB_MIX[2][G.SBOX[t>>>8&0xff]]^G.INV_SUB_MIX[3][G.SBOX[t&0xff]];}return true;};AES.prototype.encryptBlock=function(M){M=bufferToArray(new Buffer(M));var out=this._doCryptBlock(M,this._keySchedule,G.SUB_MIX,G.SBOX);var buf=new Buffer(16);buf.writeUInt32BE(out[0],0);buf.writeUInt32BE(out[1],4);buf.writeUInt32BE(out[2],8);buf.writeUInt32BE(out[3],12);return buf;};AES.prototype.decryptBlock=function(M){M=bufferToArray(new Buffer(M));var temp=[M[3],M[1]];M[1]=temp[0];M[3]=temp[1];var out=this._doCryptBlock(M,this._invKeySchedule,G.INV_SUB_MIX,G.INV_SBOX);var buf=new Buffer(16);buf.writeUInt32BE(out[0],0);buf.writeUInt32BE(out[3],4);buf.writeUInt32BE(out[2],8);buf.writeUInt32BE(out[1],12);return buf;};AES.prototype.scrub=function(){scrub_vec(this._keySchedule);scrub_vec(this._invKeySchedule);scrub_vec(this._key);};AES.prototype._doCryptBlock=function(M,keySchedule,SUB_MIX,SBOX){var ksRow,s0,s1,s2,s3,t0,t1,t2,t3;s0=M[0]^keySchedule[0];s1=M[1]^keySchedule[1];s2=M[2]^keySchedule[2];s3=M[3]^keySchedule[3];ksRow=4;for(var round=1;round>>24]^SUB_MIX[1][s1>>>16&0xff]^SUB_MIX[2][s2>>>8&0xff]^SUB_MIX[3][s3&0xff]^keySchedule[ksRow++];t1=SUB_MIX[0][s1>>>24]^SUB_MIX[1][s2>>>16&0xff]^SUB_MIX[2][s3>>>8&0xff]^SUB_MIX[3][s0&0xff]^keySchedule[ksRow++];t2=SUB_MIX[0][s2>>>24]^SUB_MIX[1][s3>>>16&0xff]^SUB_MIX[2][s0>>>8&0xff]^SUB_MIX[3][s1&0xff]^keySchedule[ksRow++];t3=SUB_MIX[0][s3>>>24]^SUB_MIX[1][s0>>>16&0xff]^SUB_MIX[2][s1>>>8&0xff]^SUB_MIX[3][s2&0xff]^keySchedule[ksRow++];s0=t0;s1=t1;s2=t2;s3=t3;}t0=(SBOX[s0>>>24]<<24|SBOX[s1>>>16&0xff]<<16|SBOX[s2>>>8&0xff]<<8|SBOX[s3&0xff])^keySchedule[ksRow++];t1=(SBOX[s1>>>24]<<24|SBOX[s2>>>16&0xff]<<16|SBOX[s3>>>8&0xff]<<8|SBOX[s0&0xff])^keySchedule[ksRow++];t2=(SBOX[s2>>>24]<<24|SBOX[s3>>>16&0xff]<<16|SBOX[s0>>>8&0xff]<<8|SBOX[s1&0xff])^keySchedule[ksRow++];t3=(SBOX[s3>>>24]<<24|SBOX[s0>>>16&0xff]<<16|SBOX[s1>>>8&0xff]<<8|SBOX[s2&0xff])^keySchedule[ksRow++];return[fixup_uint32(t0),fixup_uint32(t1),fixup_uint32(t2),fixup_uint32(t3)];};exports.AES=AES; -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer)) - -/***/ }, -/* 130 */ -/***/ function(module, exports) { - -"use strict"; -'use strict';exports['aes-128-ecb']={cipher:'AES',key:128,iv:0,mode:'ECB',type:'block'};exports['aes-192-ecb']={cipher:'AES',key:192,iv:0,mode:'ECB',type:'block'};exports['aes-256-ecb']={cipher:'AES',key:256,iv:0,mode:'ECB',type:'block'};exports['aes-128-cbc']={cipher:'AES',key:128,iv:16,mode:'CBC',type:'block'};exports['aes-192-cbc']={cipher:'AES',key:192,iv:16,mode:'CBC',type:'block'};exports['aes-256-cbc']={cipher:'AES',key:256,iv:16,mode:'CBC',type:'block'};exports['aes128']=exports['aes-128-cbc'];exports['aes192']=exports['aes-192-cbc'];exports['aes256']=exports['aes-256-cbc'];exports['aes-128-cfb']={cipher:'AES',key:128,iv:16,mode:'CFB',type:'stream'};exports['aes-192-cfb']={cipher:'AES',key:192,iv:16,mode:'CFB',type:'stream'};exports['aes-256-cfb']={cipher:'AES',key:256,iv:16,mode:'CFB',type:'stream'};exports['aes-128-cfb8']={cipher:'AES',key:128,iv:16,mode:'CFB8',type:'stream'};exports['aes-192-cfb8']={cipher:'AES',key:192,iv:16,mode:'CFB8',type:'stream'};exports['aes-256-cfb8']={cipher:'AES',key:256,iv:16,mode:'CFB8',type:'stream'};exports['aes-128-cfb1']={cipher:'AES',key:128,iv:16,mode:'CFB1',type:'stream'};exports['aes-192-cfb1']={cipher:'AES',key:192,iv:16,mode:'CFB1',type:'stream'};exports['aes-256-cfb1']={cipher:'AES',key:256,iv:16,mode:'CFB1',type:'stream'};exports['aes-128-ofb']={cipher:'AES',key:128,iv:16,mode:'OFB',type:'stream'};exports['aes-192-ofb']={cipher:'AES',key:192,iv:16,mode:'OFB',type:'stream'};exports['aes-256-ofb']={cipher:'AES',key:256,iv:16,mode:'OFB',type:'stream'};exports['aes-128-ctr']={cipher:'AES',key:128,iv:16,mode:'CTR',type:'stream'};exports['aes-192-ctr']={cipher:'AES',key:192,iv:16,mode:'CTR',type:'stream'};exports['aes-256-ctr']={cipher:'AES',key:256,iv:16,mode:'CTR',type:'stream'};exports['aes-128-gcm']={cipher:'AES',key:128,iv:12,mode:'GCM',type:'auth'};exports['aes-192-gcm']={cipher:'AES',key:192,iv:12,mode:'GCM',type:'auth'};exports['aes-256-gcm']={cipher:'AES',key:256,iv:12,mode:'GCM',type:'auth'}; - -/***/ }, -/* 131 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';var xor=__webpack_require__(102);function incr32(iv){var len=iv.length;var item;while(len--){item=iv.readUInt8(len);if(item===255){iv.writeUInt8(0,len);}else{item++;iv.writeUInt8(item,len);break;}}}function getBlock(self){var out=self._cipher.encryptBlock(self._prev);incr32(self._prev);return out;}exports.encrypt=function(self,chunk){while(self._cache.length0){bufs.push(md_buf);}bufs.push(password);if(salt){bufs.push(salt);}md_buf=md5(Buffer.concat(bufs));bufs=[];i=0;if(keyLen>0){while(true){if(keyLen===0){break;}if(i===md_buf.length){break;}key[ki++]=md_buf[i];keyLen--;i++;}}if(ivLen>0&&i!==md_buf.length){while(true){if(ivLen===0){break;}if(i===md_buf.length){break;}iv[ii++]=md_buf[i];ivLen--;i++;}}if(keyLen===0&&ivLen===0){break;}}for(i=0;i=97&&code<=122||/* a-z */code>=65&&code<=90;/* A-Z */} /***/ }, -/* 139 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -"use strict";/** - * @fileOverview - * Core operations on curve 25519 required for the higher level modules. - *//* - * Copyright (c) 2007, 2013, 2014 Michele Bini - * Copyright (c) 2014 Mega Limited - * under the MIT License. - * - * Authors: Guy K. Kloss, Michele Bini - * - * You should have received a copy of the license along with this program. - */var crypto=__webpack_require__(11);/** - * @exports jodid25519/core - * Core operations on curve 25519 required for the higher level modules. - * - * @description - * Core operations on curve 25519 required for the higher level modules. - * - *

- * This core code is extracted from Michele Bini's curve255.js implementation, - * which is used as a base for Curve25519 ECDH and Ed25519 EdDSA operations. - *

- */var ns={};function _setbit(n,c,v){var i=c>>4;var a=n[i];a=a+(1<<(c&0xf))*v;n[i]=a;}function _getbit(n,c){return n[c>>4]>>(c&0xf)&1;}function _ZERO(){return[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];}function _ONE(){return[1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];}// Basepoint. -function _BASE(){return[9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];}// return -1, 0, +1 when a is less than, equal, or greater than b -function _bigintcmp(a,b){// The following code is a bit tricky to avoid code branching -var c,abs_r,mask;var r=0;for(c=15;c>=0;c--){var x=a[c];var y=b[c];r=r+(x-y)*(1-r*r);// http://graphics.stanford.edu/~seander/bithacks.html#IntegerAbs -// correct for [-294967295, 294967295] -mask=r>>31;abs_r=r+mask^mask;// http://stackoverflow.com/questions/596467/how-do-i-convert-a-number-to-an-integer-in-javascript -// this rounds towards zero -r=~~((r<<1)/(abs_r+1));}return r;}function _bigintadd(a,b){var r=[];var v;r[0]=(v=a[0]+b[0])&0xffff;r[1]=(v=(v>>>16)+a[1]+b[1])&0xffff;r[2]=(v=(v>>>16)+a[2]+b[2])&0xffff;r[3]=(v=(v>>>16)+a[3]+b[3])&0xffff;r[4]=(v=(v>>>16)+a[4]+b[4])&0xffff;r[5]=(v=(v>>>16)+a[5]+b[5])&0xffff;r[6]=(v=(v>>>16)+a[6]+b[6])&0xffff;r[7]=(v=(v>>>16)+a[7]+b[7])&0xffff;r[8]=(v=(v>>>16)+a[8]+b[8])&0xffff;r[9]=(v=(v>>>16)+a[9]+b[9])&0xffff;r[10]=(v=(v>>>16)+a[10]+b[10])&0xffff;r[11]=(v=(v>>>16)+a[11]+b[11])&0xffff;r[12]=(v=(v>>>16)+a[12]+b[12])&0xffff;r[13]=(v=(v>>>16)+a[13]+b[13])&0xffff;r[14]=(v=(v>>>16)+a[14]+b[14])&0xffff;r[15]=(v>>>16)+a[15]+b[15];return r;}function _bigintsub(a,b){var r=[];var v;r[0]=(v=0x80000+a[0]-b[0])&0xffff;r[1]=(v=(v>>>16)+0x7fff8+a[1]-b[1])&0xffff;r[2]=(v=(v>>>16)+0x7fff8+a[2]-b[2])&0xffff;r[3]=(v=(v>>>16)+0x7fff8+a[3]-b[3])&0xffff;r[4]=(v=(v>>>16)+0x7fff8+a[4]-b[4])&0xffff;r[5]=(v=(v>>>16)+0x7fff8+a[5]-b[5])&0xffff;r[6]=(v=(v>>>16)+0x7fff8+a[6]-b[6])&0xffff;r[7]=(v=(v>>>16)+0x7fff8+a[7]-b[7])&0xffff;r[8]=(v=(v>>>16)+0x7fff8+a[8]-b[8])&0xffff;r[9]=(v=(v>>>16)+0x7fff8+a[9]-b[9])&0xffff;r[10]=(v=(v>>>16)+0x7fff8+a[10]-b[10])&0xffff;r[11]=(v=(v>>>16)+0x7fff8+a[11]-b[11])&0xffff;r[12]=(v=(v>>>16)+0x7fff8+a[12]-b[12])&0xffff;r[13]=(v=(v>>>16)+0x7fff8+a[13]-b[13])&0xffff;r[14]=(v=(v>>>16)+0x7fff8+a[14]-b[14])&0xffff;r[15]=(v>>>16)-8+a[15]-b[15];return r;}function _sqr8h(a7,a6,a5,a4,a3,a2,a1,a0){// 'division by 0x10000' can not be replaced by '>> 16' because -// more than 32 bits of precision are needed similarly -// 'multiplication by 2' cannot be replaced by '<< 1' -var r=[];var v;r[0]=(v=a0*a0)&0xffff;r[1]=(v=(0|v/0x10000)+2*a0*a1)&0xffff;r[2]=(v=(0|v/0x10000)+2*a0*a2+a1*a1)&0xffff;r[3]=(v=(0|v/0x10000)+2*a0*a3+2*a1*a2)&0xffff;r[4]=(v=(0|v/0x10000)+2*a0*a4+2*a1*a3+a2*a2)&0xffff;r[5]=(v=(0|v/0x10000)+2*a0*a5+2*a1*a4+2*a2*a3)&0xffff;r[6]=(v=(0|v/0x10000)+2*a0*a6+2*a1*a5+2*a2*a4+a3*a3)&0xffff;r[7]=(v=(0|v/0x10000)+2*a0*a7+2*a1*a6+2*a2*a5+2*a3*a4)&0xffff;r[8]=(v=(0|v/0x10000)+2*a1*a7+2*a2*a6+2*a3*a5+a4*a4)&0xffff;r[9]=(v=(0|v/0x10000)+2*a2*a7+2*a3*a6+2*a4*a5)&0xffff;r[10]=(v=(0|v/0x10000)+2*a3*a7+2*a4*a6+a5*a5)&0xffff;r[11]=(v=(0|v/0x10000)+2*a4*a7+2*a5*a6)&0xffff;r[12]=(v=(0|v/0x10000)+2*a5*a7+a6*a6)&0xffff;r[13]=(v=(0|v/0x10000)+2*a6*a7)&0xffff;r[14]=(v=(0|v/0x10000)+a7*a7)&0xffff;r[15]=0|v/0x10000;return r;}function _sqrmodp(a){var x=_sqr8h(a[15],a[14],a[13],a[12],a[11],a[10],a[9],a[8]);var z=_sqr8h(a[7],a[6],a[5],a[4],a[3],a[2],a[1],a[0]);var y=_sqr8h(a[15]+a[7],a[14]+a[6],a[13]+a[5],a[12]+a[4],a[11]+a[3],a[10]+a[2],a[9]+a[1],a[8]+a[0]);var r=[];var v;r[0]=(v=0x800000+z[0]+(y[8]-x[8]-z[8]+x[0]-0x80)*38)&0xffff;r[1]=(v=0x7fff80+(v>>>16)+z[1]+(y[9]-x[9]-z[9]+x[1])*38)&0xffff;r[2]=(v=0x7fff80+(v>>>16)+z[2]+(y[10]-x[10]-z[10]+x[2])*38)&0xffff;r[3]=(v=0x7fff80+(v>>>16)+z[3]+(y[11]-x[11]-z[11]+x[3])*38)&0xffff;r[4]=(v=0x7fff80+(v>>>16)+z[4]+(y[12]-x[12]-z[12]+x[4])*38)&0xffff;r[5]=(v=0x7fff80+(v>>>16)+z[5]+(y[13]-x[13]-z[13]+x[5])*38)&0xffff;r[6]=(v=0x7fff80+(v>>>16)+z[6]+(y[14]-x[14]-z[14]+x[6])*38)&0xffff;r[7]=(v=0x7fff80+(v>>>16)+z[7]+(y[15]-x[15]-z[15]+x[7])*38)&0xffff;r[8]=(v=0x7fff80+(v>>>16)+z[8]+y[0]-x[0]-z[0]+x[8]*38)&0xffff;r[9]=(v=0x7fff80+(v>>>16)+z[9]+y[1]-x[1]-z[1]+x[9]*38)&0xffff;r[10]=(v=0x7fff80+(v>>>16)+z[10]+y[2]-x[2]-z[2]+x[10]*38)&0xffff;r[11]=(v=0x7fff80+(v>>>16)+z[11]+y[3]-x[3]-z[3]+x[11]*38)&0xffff;r[12]=(v=0x7fff80+(v>>>16)+z[12]+y[4]-x[4]-z[4]+x[12]*38)&0xffff;r[13]=(v=0x7fff80+(v>>>16)+z[13]+y[5]-x[5]-z[5]+x[13]*38)&0xffff;r[14]=(v=0x7fff80+(v>>>16)+z[14]+y[6]-x[6]-z[6]+x[14]*38)&0xffff;r[15]=0x7fff80+(v>>>16)+z[15]+y[7]-x[7]-z[7]+x[15]*38;_reduce(r);return r;}function _mul8h(a7,a6,a5,a4,a3,a2,a1,a0,b7,b6,b5,b4,b3,b2,b1,b0){// 'division by 0x10000' can not be replaced by '>> 16' because -// more than 32 bits of precision are needed -var r=[];var v;r[0]=(v=a0*b0)&0xffff;r[1]=(v=(0|v/0x10000)+a0*b1+a1*b0)&0xffff;r[2]=(v=(0|v/0x10000)+a0*b2+a1*b1+a2*b0)&0xffff;r[3]=(v=(0|v/0x10000)+a0*b3+a1*b2+a2*b1+a3*b0)&0xffff;r[4]=(v=(0|v/0x10000)+a0*b4+a1*b3+a2*b2+a3*b1+a4*b0)&0xffff;r[5]=(v=(0|v/0x10000)+a0*b5+a1*b4+a2*b3+a3*b2+a4*b1+a5*b0)&0xffff;r[6]=(v=(0|v/0x10000)+a0*b6+a1*b5+a2*b4+a3*b3+a4*b2+a5*b1+a6*b0)&0xffff;r[7]=(v=(0|v/0x10000)+a0*b7+a1*b6+a2*b5+a3*b4+a4*b3+a5*b2+a6*b1+a7*b0)&0xffff;r[8]=(v=(0|v/0x10000)+a1*b7+a2*b6+a3*b5+a4*b4+a5*b3+a6*b2+a7*b1)&0xffff;r[9]=(v=(0|v/0x10000)+a2*b7+a3*b6+a4*b5+a5*b4+a6*b3+a7*b2)&0xffff;r[10]=(v=(0|v/0x10000)+a3*b7+a4*b6+a5*b5+a6*b4+a7*b3)&0xffff;r[11]=(v=(0|v/0x10000)+a4*b7+a5*b6+a6*b5+a7*b4)&0xffff;r[12]=(v=(0|v/0x10000)+a5*b7+a6*b6+a7*b5)&0xffff;r[13]=(v=(0|v/0x10000)+a6*b7+a7*b6)&0xffff;r[14]=(v=(0|v/0x10000)+a7*b7)&0xffff;r[15]=0|v/0x10000;return r;}function _mulmodp(a,b){// Karatsuba multiplication scheme: x*y = (b^2+b)*x1*y1 - -// b*(x1-x0)*(y1-y0) + (b+1)*x0*y0 -var x=_mul8h(a[15],a[14],a[13],a[12],a[11],a[10],a[9],a[8],b[15],b[14],b[13],b[12],b[11],b[10],b[9],b[8]);var z=_mul8h(a[7],a[6],a[5],a[4],a[3],a[2],a[1],a[0],b[7],b[6],b[5],b[4],b[3],b[2],b[1],b[0]);var y=_mul8h(a[15]+a[7],a[14]+a[6],a[13]+a[5],a[12]+a[4],a[11]+a[3],a[10]+a[2],a[9]+a[1],a[8]+a[0],b[15]+b[7],b[14]+b[6],b[13]+b[5],b[12]+b[4],b[11]+b[3],b[10]+b[2],b[9]+b[1],b[8]+b[0]);var r=[];var v;r[0]=(v=0x800000+z[0]+(y[8]-x[8]-z[8]+x[0]-0x80)*38)&0xffff;r[1]=(v=0x7fff80+(v>>>16)+z[1]+(y[9]-x[9]-z[9]+x[1])*38)&0xffff;r[2]=(v=0x7fff80+(v>>>16)+z[2]+(y[10]-x[10]-z[10]+x[2])*38)&0xffff;r[3]=(v=0x7fff80+(v>>>16)+z[3]+(y[11]-x[11]-z[11]+x[3])*38)&0xffff;r[4]=(v=0x7fff80+(v>>>16)+z[4]+(y[12]-x[12]-z[12]+x[4])*38)&0xffff;r[5]=(v=0x7fff80+(v>>>16)+z[5]+(y[13]-x[13]-z[13]+x[5])*38)&0xffff;r[6]=(v=0x7fff80+(v>>>16)+z[6]+(y[14]-x[14]-z[14]+x[6])*38)&0xffff;r[7]=(v=0x7fff80+(v>>>16)+z[7]+(y[15]-x[15]-z[15]+x[7])*38)&0xffff;r[8]=(v=0x7fff80+(v>>>16)+z[8]+y[0]-x[0]-z[0]+x[8]*38)&0xffff;r[9]=(v=0x7fff80+(v>>>16)+z[9]+y[1]-x[1]-z[1]+x[9]*38)&0xffff;r[10]=(v=0x7fff80+(v>>>16)+z[10]+y[2]-x[2]-z[2]+x[10]*38)&0xffff;r[11]=(v=0x7fff80+(v>>>16)+z[11]+y[3]-x[3]-z[3]+x[11]*38)&0xffff;r[12]=(v=0x7fff80+(v>>>16)+z[12]+y[4]-x[4]-z[4]+x[12]*38)&0xffff;r[13]=(v=0x7fff80+(v>>>16)+z[13]+y[5]-x[5]-z[5]+x[13]*38)&0xffff;r[14]=(v=0x7fff80+(v>>>16)+z[14]+y[6]-x[6]-z[6]+x[14]*38)&0xffff;r[15]=0x7fff80+(v>>>16)+z[15]+y[7]-x[7]-z[7]+x[15]*38;_reduce(r);return r;}function _reduce(arr){var aCopy=arr.slice(0);var choice=[arr,aCopy];var v=arr[15];// Use the dummy copy instead of just returning to be more constant time. -var a=choice[v<0x8000&1];a[15]=v&0x7fff;// >32-bits of precision are required here so '/ 0x8000' can not be -// replaced by the arithmetic equivalent '>>> 15' -v=(0|v/0x8000)*19;a[0]=(v+=a[0])&0xffff;v=v>>>16;a[1]=(v+=a[1])&0xffff;v=v>>>16;a[2]=(v+=a[2])&0xffff;v=v>>>16;a[3]=(v+=a[3])&0xffff;v=v>>>16;a[4]=(v+=a[4])&0xffff;v=v>>>16;a[5]=(v+=a[5])&0xffff;v=v>>>16;a[6]=(v+=a[6])&0xffff;v=v>>>16;a[7]=(v+=a[7])&0xffff;v=v>>>16;a[8]=(v+=a[8])&0xffff;v=v>>>16;a[9]=(v+=a[9])&0xffff;v=v>>>16;a[10]=(v+=a[10])&0xffff;v=v>>>16;a[11]=(v+=a[11])&0xffff;v=v>>>16;a[12]=(v+=a[12])&0xffff;v=v>>>16;a[13]=(v+=a[13])&0xffff;v=v>>>16;a[14]=(v+=a[14])&0xffff;v=v>>>16;a[15]+=v;}function _addmodp(a,b){var r=[];var v;r[0]=(v=((0|a[15]>>>15)+(0|b[15]>>>15))*19+a[0]+b[0])&0xffff;r[1]=(v=(v>>>16)+a[1]+b[1])&0xffff;r[2]=(v=(v>>>16)+a[2]+b[2])&0xffff;r[3]=(v=(v>>>16)+a[3]+b[3])&0xffff;r[4]=(v=(v>>>16)+a[4]+b[4])&0xffff;r[5]=(v=(v>>>16)+a[5]+b[5])&0xffff;r[6]=(v=(v>>>16)+a[6]+b[6])&0xffff;r[7]=(v=(v>>>16)+a[7]+b[7])&0xffff;r[8]=(v=(v>>>16)+a[8]+b[8])&0xffff;r[9]=(v=(v>>>16)+a[9]+b[9])&0xffff;r[10]=(v=(v>>>16)+a[10]+b[10])&0xffff;r[11]=(v=(v>>>16)+a[11]+b[11])&0xffff;r[12]=(v=(v>>>16)+a[12]+b[12])&0xffff;r[13]=(v=(v>>>16)+a[13]+b[13])&0xffff;r[14]=(v=(v>>>16)+a[14]+b[14])&0xffff;r[15]=(v>>>16)+(a[15]&0x7fff)+(b[15]&0x7fff);return r;}function _submodp(a,b){var r=[];var v;r[0]=(v=0x80000+((0|a[15]>>>15)-(0|b[15]>>>15)-1)*19+a[0]-b[0])&0xffff;r[1]=(v=(v>>>16)+0x7fff8+a[1]-b[1])&0xffff;r[2]=(v=(v>>>16)+0x7fff8+a[2]-b[2])&0xffff;r[3]=(v=(v>>>16)+0x7fff8+a[3]-b[3])&0xffff;r[4]=(v=(v>>>16)+0x7fff8+a[4]-b[4])&0xffff;r[5]=(v=(v>>>16)+0x7fff8+a[5]-b[5])&0xffff;r[6]=(v=(v>>>16)+0x7fff8+a[6]-b[6])&0xffff;r[7]=(v=(v>>>16)+0x7fff8+a[7]-b[7])&0xffff;r[8]=(v=(v>>>16)+0x7fff8+a[8]-b[8])&0xffff;r[9]=(v=(v>>>16)+0x7fff8+a[9]-b[9])&0xffff;r[10]=(v=(v>>>16)+0x7fff8+a[10]-b[10])&0xffff;r[11]=(v=(v>>>16)+0x7fff8+a[11]-b[11])&0xffff;r[12]=(v=(v>>>16)+0x7fff8+a[12]-b[12])&0xffff;r[13]=(v=(v>>>16)+0x7fff8+a[13]-b[13])&0xffff;r[14]=(v=(v>>>16)+0x7fff8+a[14]-b[14])&0xffff;r[15]=(v>>>16)+0x7ff8+(a[15]&0x7fff)-(b[15]&0x7fff);return r;}function _invmodp(a){var c=a;var i=250;while(--i){a=_sqrmodp(a);a=_mulmodp(a,c);}a=_sqrmodp(a);a=_sqrmodp(a);a=_mulmodp(a,c);a=_sqrmodp(a);a=_sqrmodp(a);a=_mulmodp(a,c);a=_sqrmodp(a);a=_mulmodp(a,c);return a;}function _mulasmall(a){// 'division by 0x10000' can not be replaced by '>> 16' because -// more than 32 bits of precision are needed -var m=121665;var r=[];var v;r[0]=(v=a[0]*m)&0xffff;r[1]=(v=(0|v/0x10000)+a[1]*m)&0xffff;r[2]=(v=(0|v/0x10000)+a[2]*m)&0xffff;r[3]=(v=(0|v/0x10000)+a[3]*m)&0xffff;r[4]=(v=(0|v/0x10000)+a[4]*m)&0xffff;r[5]=(v=(0|v/0x10000)+a[5]*m)&0xffff;r[6]=(v=(0|v/0x10000)+a[6]*m)&0xffff;r[7]=(v=(0|v/0x10000)+a[7]*m)&0xffff;r[8]=(v=(0|v/0x10000)+a[8]*m)&0xffff;r[9]=(v=(0|v/0x10000)+a[9]*m)&0xffff;r[10]=(v=(0|v/0x10000)+a[10]*m)&0xffff;r[11]=(v=(0|v/0x10000)+a[11]*m)&0xffff;r[12]=(v=(0|v/0x10000)+a[12]*m)&0xffff;r[13]=(v=(0|v/0x10000)+a[13]*m)&0xffff;r[14]=(v=(0|v/0x10000)+a[14]*m)&0xffff;r[15]=(0|v/0x10000)+a[15]*m;_reduce(r);return r;}function _dbl(x,z){var x_2,z_2,m,n,o;m=_sqrmodp(_addmodp(x,z));n=_sqrmodp(_submodp(x,z));o=_submodp(m,n);x_2=_mulmodp(n,m);z_2=_mulmodp(_addmodp(_mulasmall(o),m),o);return[x_2,z_2];}function _sum(x,z,x_p,z_p,x_1){var x_3,z_3,p,q;p=_mulmodp(_submodp(x,z),_addmodp(x_p,z_p));q=_mulmodp(_addmodp(x,z),_submodp(x_p,z_p));x_3=_sqrmodp(_addmodp(p,q));z_3=_mulmodp(_sqrmodp(_submodp(p,q)),x_1);return[x_3,z_3];}function _generateKey(curve25519){var buffer=crypto.randomBytes(32);// For Curve25519 DH keys, we need to apply some bit mask on generated -// keys: -// * clear bit 0, 1, 2 of first byte -// * clear bit 7 of last byte -// * set bit 6 of last byte -if(curve25519===true){buffer[0]&=0xf8;buffer[31]=buffer[31]&0x7f|0x40;}var result=[];for(var i=0;i=0;i--){var value=vector[i];result.push(_HEXCHARS.substr(value>>>12&0x0f,1));result.push(_HEXCHARS.substr(value>>>8&0x0f,1));result.push(_HEXCHARS.substr(value>>>4&0x0f,1));result.push(_HEXCHARS.substr(value&0x0f,1));}return result.join('');}function _hexdecode(vector){var result=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(var i=vector.length-1,l=0;i>=0;i-=4){result[l]=_HEXCHARS.indexOf(vector.charAt(i))|_HEXCHARS.indexOf(vector.charAt(i-1))<<4|_HEXCHARS.indexOf(vector.charAt(i-2))<<8|_HEXCHARS.indexOf(vector.charAt(i-3))<<12;l++;}return result;}var _BASE32CHARS="abcdefghijklmnopqrstuvwxyz234567";var _BASE32VALUES=function(){var result={};for(var i=0;i<_BASE32CHARS.length;i++){result[_BASE32CHARS.charAt(i)]=i;}return result;}();function _base32encode(n){var c;var r="";for(c=0;c<255;c+=5){r=_BASE32CHARS.substr(core.getbit(n,c)+(core.getbit(n,c+1)<<1)+(core.getbit(n,c+2)<<2)+(core.getbit(n,c+3)<<3)+(core.getbit(n,c+4)<<4),1)+r;}return r;}function _base32decode(n){var c=0;var r=core.ZERO();var l=n.length;for(c=0;l>0&&c<255;c+=5){l--;var v=_BASE32VALUES[n.substr(l,1)];core.setbit(r,c,v&1);v>>=1;core.setbit(r,c+1,v&1);v>>=1;core.setbit(r,c+2,v&1);v>>=1;core.setbit(r,c+3,v&1);v>>=1;core.setbit(r,c+4,v&1);}return r;}function _map(f,l){var result=new Array(l.length);for(var i=0;i-1;}module.exports=arrayIncludes; /***/ }, -/* 145 */ +/* 146 */ /***/ function(module, exports) { "use strict"; @@ -4356,11 +2791,11 @@ SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.ha */function arrayReduce(array,iteratee,accumulator,initAccum){var index=-1,length=array==null?0:array.length;if(initAccum&&length){accumulator=array[++index];}while(++indexlength?0:length+start;}end=end>length?length:end;if(end<0){end+=length;}length=start>end?0:end-start>>>0;start>>>=0;var result=Array(length);while(++index-1:!!length&&baseIndexOf(collection,value,fromIndex)>-1;}module.exports=includes; /***/ }, -/* 164 */ +/* 165 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -4643,11 +3078,11 @@ return isObject(result)?result:thisBinding;};}module.exports=createCtor; */var isArguments=baseIsArguments(function(){return arguments;}())?baseIsArguments:function(value){return isObjectLike(value)&&hasOwnProperty.call(value,'callee')&&!propertyIsEnumerable.call(value,'callee');};module.exports=isArguments; /***/ }, -/* 165 */ +/* 166 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var isArrayLike=__webpack_require__(42),isObjectLike=__webpack_require__(36);/** +'use strict';var isArrayLike=__webpack_require__(41),isObjectLike=__webpack_require__(36);/** * This method is like `_.isArrayLike` except that it also checks if `value` * is an object. * @@ -4674,7 +3109,7 @@ return isObject(result)?result:thisBinding;};}module.exports=createCtor; */function isArrayLikeObject(value){return isObjectLike(value)&&isArrayLike(value);}module.exports=isArrayLikeObject; /***/ }, -/* 166 */ +/* 167 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -4708,11 +3143,11 @@ return isObject(result)?result:thisBinding;};}module.exports=createCtor; */function isEqual(value,other){return baseIsEqual(value,other);}module.exports=isEqual; /***/ }, -/* 167 */ +/* 168 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var baseGetTag=__webpack_require__(59),getPrototype=__webpack_require__(158),isObjectLike=__webpack_require__(36);/** `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);/** +'use strict';var baseGetTag=__webpack_require__(58),getPrototype=__webpack_require__(159),isObjectLike=__webpack_require__(36);/** `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);/** * Checks if `value` is a plain object, that is, an object created by the * `Object` constructor or one with a `[[Prototype]]` of `null`. * @@ -4742,11 +3177,11 @@ return isObject(result)?result:thisBinding;};}module.exports=createCtor; */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; /***/ }, -/* 168 */ +/* 169 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var baseIsTypedArray=__webpack_require__(727),baseUnary=__webpack_require__(151),nodeUtil=__webpack_require__(809);/* Node.js helper references. */var nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray;/** +'use strict';var baseIsTypedArray=__webpack_require__(727),baseUnary=__webpack_require__(152),nodeUtil=__webpack_require__(809);/* Node.js helper references. */var nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray;/** * Checks if `value` is classified as a typed array. * * @static @@ -4765,7 +3200,7 @@ return isObject(result)?result:thisBinding;};}module.exports=createCtor; */var isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray;module.exports=isTypedArray; /***/ }, -/* 169 */ +/* 170 */ /***/ function(module, exports) { "use strict"; @@ -4788,11 +3223,11 @@ return isObject(result)?result:thisBinding;};}module.exports=createCtor; */function isUndefined(value){return value===undefined;}module.exports=isUndefined; /***/ }, -/* 170 */ +/* 171 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var arrayMap=__webpack_require__(45),baseClone=__webpack_require__(218),baseUnset=__webpack_require__(745),castPath=__webpack_require__(70),copyObject=__webpack_require__(89),flatRest=__webpack_require__(155),getAllKeysIn=__webpack_require__(360);/** Used to compose bitmasks for cloning. */var CLONE_DEEP_FLAG=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG=4;/** +'use strict';var arrayMap=__webpack_require__(44),baseClone=__webpack_require__(218),baseUnset=__webpack_require__(745),castPath=__webpack_require__(73),copyObject=__webpack_require__(90),flatRest=__webpack_require__(156),getAllKeysIn=__webpack_require__(362);/** Used to compose bitmasks for cloning. */var CLONE_DEEP_FLAG=1,CLONE_FLAT_FLAG=2,CLONE_SYMBOLS_FLAG=4;/** * The opposite of `_.pick`; this method creates an object composed of the * own and inherited enumerable property paths of `object` that are not omitted. * @@ -4814,11 +3249,11 @@ return isObject(result)?result:thisBinding;};}module.exports=createCtor; */var omit=flatRest(function(object,paths){var result={};if(object==null){return result;}var isDeep=false;paths=arrayMap(paths,function(path){path=castPath(path,object);isDeep||(isDeep=path.length>1);return path;});copyObject(object,getAllKeysIn(object),result);if(isDeep){result=baseClone(result,CLONE_DEEP_FLAG|CLONE_FLAT_FLAG|CLONE_SYMBOLS_FLAG);}var length=paths.length;while(length--){baseUnset(result,paths[length]);}return result;});module.exports=omit; /***/ }, -/* 171 */ +/* 172 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var basePick=__webpack_require__(733),flatRest=__webpack_require__(155);/** +'use strict';var basePick=__webpack_require__(733),flatRest=__webpack_require__(156);/** * Creates an object composed of the picked `object` properties. * * @static @@ -4837,11 +3272,11 @@ return isObject(result)?result:thisBinding;};}module.exports=createCtor; */var pick=flatRest(function(object,paths){return object==null?{}:basePick(object,paths);});module.exports=pick; /***/ }, -/* 172 */ +/* 173 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var isObject=__webpack_require__(32),isSymbol=__webpack_require__(73);/** Used as references for various `Number` constants. */var NAN=0/0;/** Used to match leading and trailing whitespace. */var reTrim=/^\s+|\s+$/g;/** Used to detect bad signed hexadecimal string values. */var reIsBadHex=/^[-+]0x[0-9a-f]+$/i;/** Used to detect binary string values. */var reIsBinary=/^0b[01]+$/i;/** Used to detect octal string values. */var reIsOctal=/^0o[0-7]+$/i;/** Built-in method references without a dependency on `root`. */var freeParseInt=parseInt;/** +'use strict';var isObject=__webpack_require__(33),isSymbol=__webpack_require__(76);/** Used as references for various `Number` constants. */var NAN=0/0;/** Used to match leading and trailing whitespace. */var reTrim=/^\s+|\s+$/g;/** Used to detect bad signed hexadecimal string values. */var reIsBadHex=/^[-+]0x[0-9a-f]+$/i;/** Used to detect binary string values. */var reIsBinary=/^0b[01]+$/i;/** Used to detect octal string values. */var reIsOctal=/^0o[0-7]+$/i;/** Built-in method references without a dependency on `root`. */var freeParseInt=parseInt;/** * Converts `value` to a number. * * @static @@ -4866,31 +3301,45 @@ return isObject(result)?result:thisBinding;};}module.exports=createCtor; */function toNumber(value){if(typeof value=='number'){return value;}if(isSymbol(value)){return NAN;}if(isObject(value)){var other=typeof value.valueOf=='function'?value.valueOf():value;value=isObject(other)?other+'':other;}if(typeof value!='string'){return value===0?value:+value;}value=value.replace(reTrim,'');var isBinary=reIsBinary.test(value);return isBinary||reIsOctal.test(value)?freeParseInt(value.slice(2),isBinary?2:8):reIsBadHex.test(value)?NAN:+value;}module.exports=toNumber; /***/ }, -/* 173 */ +/* 174 */, +/* 175 */, +/* 176 */ /***/ function(module, exports) { "use strict"; -'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};var TYPED_OK=typeof Uint8Array!=='undefined'&&typeof Uint16Array!=='undefined'&&typeof Int32Array!=='undefined';exports.assign=function(obj/*from1, from2, from3, ...*/){var sources=Array.prototype.slice.call(arguments,1);while(sources.length){var source=sources.shift();if(!source){continue;}if((typeof source==='undefined'?'undefined':_typeof(source))!=='object'){throw new TypeError(source+'must be non-object');}for(var p in source){if(source.hasOwnProperty(p)){obj[p]=source[p];}}}return obj;};// reduce buffer size, avoiding mem copy -exports.shrinkBuf=function(buf,size){if(buf.length===size){return buf;}if(buf.subarray){return buf.subarray(0,size);}buf.length=size;return buf;};var fnTyped={arraySet:function arraySet(dest,src,src_offs,len,dest_offs){if(src.subarray&&dest.subarray){dest.set(src.subarray(src_offs,src_offs+len),dest_offs);return;}// Fallback to ordinary array -for(var i=0;i */icon:_lib.customPropTypes.itemShorthand,/** A cell may let a user know whether a value is bad. */negative:_react.PropTypes.bool,/** A cell may let a user know whether a value is good. */positive:_react.PropTypes.bool,/** A cell can be selectable. */selectable:_react.PropTypes.bool,/** A cell can specify that its contents should remain on a single line and not wrap. */singleLine:_react.PropTypes.bool,/** A table cell can adjust its text alignment. */textAlign:_react.PropTypes.oneOf(TableCell._meta.props.textAlign),/** A table cell can adjust its text alignment. */verticalAlign:_react.PropTypes.oneOf(TableCell._meta.props.verticalAlign),/** A cell may warn a user. */warning:_react.PropTypes.bool,/** A table can specify the width of individual columns independently. */width:_react.PropTypes.oneOf(TableCell._meta.props.width)};TableCell.create=(0,_lib.createShorthandFactory)(TableCell,function(content){return{content:content};});exports.default=TableCell; - -/***/ }, -/* 185 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -'use strict';Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i */icon:_lib.customPropTypes.itemShorthand,/** A cell may let a user know whether a value is bad. */negative:_react.PropTypes.bool,/** A cell may let a user know whether a value is good. */positive:_react.PropTypes.bool,/** A cell can be selectable. */selectable:_react.PropTypes.bool,/** A cell can specify that its contents should remain on a single line and not wrap. */singleLine:_react.PropTypes.bool,/** A table cell can adjust its text alignment. */textAlign:_react.PropTypes.oneOf(TableCell._meta.props.textAlign),/** A table cell can adjust its text alignment. */verticalAlign:_react.PropTypes.oneOf(TableCell._meta.props.verticalAlign),/** A cell may warn a user. */warning:_react.PropTypes.bool,/** A table can specify the width of individual columns independently. */width:_react.PropTypes.oneOf(TableCell._meta.props.width)};TableCell.create=(0,_lib.createShorthandFactory)(TableCell,function(content){return{content:content};});exports.default=TableCell; /***/ }, /* 188 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;itmp.length)limit=tmp.length;o+=buf.write(tmp.slice(i,limit),o);buf[o++]=10;i=limit;}o+=buf.write('-----END '+header+'-----\n',o);return buf.slice(0,o);} -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer)) - -/***/ }, -/* 192 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';// Copyright 2015 Joyent, Inc. -module.exports=SSHBuffer;var assert=__webpack_require__(13);function SSHBuffer(opts){assert.object(opts,'options');if(opts.buffer!==undefined)assert.buffer(opts.buffer,'options.buffer');this._size=opts.buffer?opts.buffer.length:1024;this._buffer=opts.buffer||new Buffer(this._size);this._offset=0;}SSHBuffer.prototype.toBuffer=function(){return this._buffer.slice(0,this._offset);};SSHBuffer.prototype.atEnd=function(){return this._offset>=this._buffer.length;};SSHBuffer.prototype.remainder=function(){return this._buffer.slice(this._offset);};SSHBuffer.prototype.skip=function(n){this._offset+=n;};SSHBuffer.prototype.expand=function(){this._size*=2;var buf=new Buffer(this._size);this._buffer.copy(buf,0);this._buffer=buf;};SSHBuffer.prototype.readPart=function(){return{data:this.readBuffer()};};SSHBuffer.prototype.readBuffer=function(){var len=this._buffer.readUInt32BE(this._offset);this._offset+=4;assert.ok(this._offset+len<=this._buffer.length,'length out of bounds at +0x'+this._offset.toString(16)+' (data truncated?)');var buf=this._buffer.slice(this._offset,this._offset+len);this._offset+=len;return buf;};SSHBuffer.prototype.readString=function(){return this.readBuffer().toString();};SSHBuffer.prototype.readCString=function(){var offset=this._offset;while(offsetthis._size){this.expand();}this._buffer.writeUInt32BE(buf.length,this._offset);this._offset+=4;buf.copy(this._buffer,this._offset);this._offset+=buf.length;};SSHBuffer.prototype.writeString=function(str){this.writeBuffer(new Buffer(str,'utf8'));};SSHBuffer.prototype.writeCString=function(str){while(this._offset+1+str.length>this._size){this.expand();}this._buffer.write(str,this._offset);this._offset+=str.length;this._buffer[this._offset++]=0;};SSHBuffer.prototype.writeInt=function(v){while(this._offset+4>this._size){this.expand();}this._buffer.writeUInt32BE(v,this._offset);this._offset+=4;};SSHBuffer.prototype.writeInt64=function(v){assert.buffer(v,'value');if(v.length>8){var lead=v.slice(0,v.length-8);for(var i=0;ithis._size){this.expand();}v.copy(this._buffer,this._offset);this._offset+=8;};SSHBuffer.prototype.writeChar=function(v){while(this._offset+1>this._size){this.expand();}this._buffer[this._offset++]=v;};SSHBuffer.prototype.writePart=function(p){this.writeBuffer(p.data);};SSHBuffer.prototype.write=function(buf){while(this._offset+buf.length>this._size){this.expand();}buf.copy(this._buffer,this._offset);this._offset+=buf.length;}; -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer)) - -/***/ }, -/* 193 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.diff=exports.isShowDifference=exports.isShowFinal=exports.isShowOriginal=exports.isMarkdownFormat=exports.safeInput=undefined;var _reselect=__webpack_require__(1051);var _react=__webpack_require__(0);var _react2=_interopRequireDefault(_react);var _constants=__webpack_require__(1207);var _dubdiff=__webpack_require__(560);var Dubdiff=_interopRequireWildcard(_dubdiff);function _interopRequireWildcard(obj){if(obj&&obj.__esModule){return obj;}else{var newObj={};if(obj!=null){for(var key in obj){if(Object.prototype.hasOwnProperty.call(obj,key))newObj[key]=obj[key];}}newObj.default=obj;return newObj;}}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}//per http://redux.js.org/docs/recipes/ComputingDerivedData.html -var input=function input(state){return state.input;};var format=function format(state){return state.format;};var show=function show(state){return state.show;};var compare=function compare(state){return state.compare;};var safeInput=exports.safeInput=(0,_reselect.createSelector)([input],function(input){//!!! sanitize the input here and return -return input;});var isMarkdownFormat=exports.isMarkdownFormat=(0,_reselect.createSelector)([format],function(format){return format==_constants.Format.MARKDOWN;});var isShow=function isShow(type){return(0,_reselect.createSelector)([show],function(show){return show==type;});};var isShowOriginal=exports.isShowOriginal=isShow(_constants.Show.ORIGINAL);var isShowFinal=exports.isShowFinal=isShow(_constants.Show.FINAL);var isShowDifference=exports.isShowDifference=isShow(_constants.Show.DIFFERENCE);var diff=exports.diff=(0,_reselect.createSelector)([format,compare],function(format,compare){return Dubdiff.plaintextDiff(compare.original,compare.final);/* +'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.diff=exports.isShowDifference=exports.isShowFinal=exports.isShowOriginal=exports.isMarkdownFormat=exports.safeInput=undefined;var _reselect=__webpack_require__(1057);var _react=__webpack_require__(0);var _react2=_interopRequireDefault(_react);var _constants=__webpack_require__(570);var _dubdiff=__webpack_require__(571);var Dubdiff=_interopRequireWildcard(_dubdiff);function _interopRequireWildcard(obj){if(obj&&obj.__esModule){return obj;}else{var newObj={};if(obj!=null){for(var key in obj){if(Object.prototype.hasOwnProperty.call(obj,key))newObj[key]=obj[key];}}newObj.default=obj;return newObj;}}function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}//per http://redux.js.org/docs/recipes/ComputingDerivedData.html +var input=function input(state){return state.input;};var format=function format(state){return state.format;};var show=function show(state){return state.show;};var safeInput=exports.safeInput=(0,_reselect.createSelector)([input],function(input){//!!! sanitize the input here and return +return input;});var isMarkdownFormat=exports.isMarkdownFormat=(0,_reselect.createSelector)([format],function(format){return format==_constants.Format.MARKDOWN;});var isShow=function isShow(type){return(0,_reselect.createSelector)([show],function(show){return show==type;});};var isShowOriginal=exports.isShowOriginal=isShow(_constants.Show.ORIGINAL);var isShowFinal=exports.isShowFinal=isShow(_constants.Show.FINAL);var isShowDifference=exports.isShowDifference=isShow(_constants.Show.DIFFERENCE);var diff=exports.diff=(0,_reselect.createSelector)([format,safeInput],function(format,safeInput){return Dubdiff.plaintextDiff(safeInput.original,safeInput.final);/* let diff = JsDiff.diffWords (input.original.replace(/ /g, ' '), input.final.replace(/ /g, ' ')) return diff.map(({added, removed, value})=>({added, removed, value:value.replace(/ /g, ' ')})).map(part => ( part.added ? {part.value} : @@ -5402,7 +3835,7 @@ return input;});var isMarkdownFormat=exports.isMarkdownFormat=(0,_reselect.creat */ /***/ }, -/* 194 */ +/* 197 */ /***/ function(module, exports) { /* WEBPACK VAR INJECTION */(function(__webpack_amd_options__) {module.exports = __webpack_amd_options__; @@ -5410,321 +3843,32 @@ return input;});var isMarkdownFormat=exports.isMarkdownFormat=(0,_reselect.creat /* WEBPACK VAR INJECTION */}.call(exports, {})) /***/ }, -/* 195 */ -/***/ function(module, exports) { - -"use strict"; -'use strict';// Copyright 2011 Mark Cavage All rights reserved. -module.exports={newInvalidAsn1Error:function newInvalidAsn1Error(msg){var e=new Error();e.name='InvalidAsn1Error';e.message=msg||'';return e;}}; - -/***/ }, -/* 196 */ -/***/ function(module, exports) { - -"use strict"; -"use strict";// Copyright 2011 Mark Cavage All rights reserved. -module.exports={EOC:0,Boolean:1,Integer:2,BitString:3,OctetString:4,Null:5,OID:6,ObjectDescriptor:7,External:8,Real:9,// float -Enumeration:10,PDV:11,Utf8String:12,RelativeOID:13,Sequence:16,Set:17,NumericString:18,PrintableString:19,T61String:20,VideotexString:21,IA5String:22,UTCTime:23,GeneralizedTime:24,GraphicString:25,VisibleString:26,GeneralString:28,UniversalString:29,CharacterString:30,BMPString:31,Constructor:32,Context:128}; - -/***/ }, -/* 197 */ +/* 198 */, +/* 199 */, +/* 200 */, +/* 201 */, +/* 202 */, +/* 203 */, +/* 204 */, +/* 205 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var ciphers=__webpack_require__(582);exports.createCipher=exports.Cipher=ciphers.createCipher;exports.createCipheriv=exports.Cipheriv=ciphers.createCipheriv;var deciphers=__webpack_require__(581);exports.createDecipher=exports.Decipher=deciphers.createDecipher;exports.createDecipheriv=exports.Decipheriv=deciphers.createDecipheriv;var modes=__webpack_require__(130);function getCiphers(){return Object.keys(modes);}exports.listCiphers=exports.getCiphers=getCiphers; - -/***/ }, -/* 198 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(Buffer) {'use strict';var bn=__webpack_require__(14);var randomBytes=__webpack_require__(116);module.exports=crt;function blind(priv){var r=getr(priv);var blinder=r.toRed(bn.mont(priv.modulus)).redPow(new bn(priv.publicExponent)).fromRed();return{blinder:blinder,unblinder:r.invm(priv.modulus)};}function crt(msg,priv){var blinds=blind(priv);var len=priv.modulus.byteLength();var mod=bn.mont(priv.modulus);var blinded=new bn(msg).mul(blinds.blinder).umod(priv.modulus);var c1=blinded.toRed(bn.mont(priv.prime1));var c2=blinded.toRed(bn.mont(priv.prime2));var qinv=priv.coefficient;var p=priv.prime1;var q=priv.prime2;var m1=c1.redPow(priv.exponent1);var m2=c2.redPow(priv.exponent2);m1=m1.fromRed();m2=m2.fromRed();var h=m1.isub(m2).imul(qinv).umod(p);h.imul(q);m2.iadd(h);return new Buffer(m2.imul(blinds.unblinder).umod(priv.modulus).toArray(false,len));}crt.getr=getr;function getr(priv){var len=priv.modulus.byteLength();var r=new bn(randomBytes(len));while(r.cmp(priv.modulus)>=0||!r.umod(priv.prime1)||!r.umod(priv.prime2)){r=new bn(randomBytes(len));}return r;} -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer)) - -/***/ }, -/* 199 */ -/***/ function(module, exports) { - -"use strict"; -'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};function Caseless(dict){this.dict=dict||{};}Caseless.prototype.set=function(name,value,clobber){if((typeof name==='undefined'?'undefined':_typeof(name))==='object'){for(var i in name){this.set(i,name[i],value);}}else{if(typeof clobber==='undefined')clobber=true;var has=this.has(name);if(!clobber&&has)this.dict[has]=this.dict[has]+','+value;else this.dict[has||name]=value;return has;}};Caseless.prototype.has=function(name){var keys=Object.keys(this.dict),name=name.toLowerCase();for(var i=0;iblocksize){key=createHash(alg).update(key).digest();}else if(key.length= 0) error -this.q=q;}function feFpEquals(other){if(other==this)return true;return this.q.equals(other.q)&&this.x.equals(other.x);}function feFpToBigInteger(){return this.x;}function feFpNegate(){return new ECFieldElementFp(this.q,this.x.negate().mod(this.q));}function feFpAdd(b){return new ECFieldElementFp(this.q,this.x.add(b.toBigInteger()).mod(this.q));}function feFpSubtract(b){return new ECFieldElementFp(this.q,this.x.subtract(b.toBigInteger()).mod(this.q));}function feFpMultiply(b){return new ECFieldElementFp(this.q,this.x.multiply(b.toBigInteger()).mod(this.q));}function feFpSquare(){return new ECFieldElementFp(this.q,this.x.square().mod(this.q));}function feFpDivide(b){return new ECFieldElementFp(this.q,this.x.multiply(b.toBigInteger().modInverse(this.q)).mod(this.q));}ECFieldElementFp.prototype.equals=feFpEquals;ECFieldElementFp.prototype.toBigInteger=feFpToBigInteger;ECFieldElementFp.prototype.negate=feFpNegate;ECFieldElementFp.prototype.add=feFpAdd;ECFieldElementFp.prototype.subtract=feFpSubtract;ECFieldElementFp.prototype.multiply=feFpMultiply;ECFieldElementFp.prototype.square=feFpSquare;ECFieldElementFp.prototype.divide=feFpDivide;// ---------------- -// ECPointFp -// constructor -function ECPointFp(curve,x,y,z){this.curve=curve;this.x=x;this.y=y;// Projective coordinates: either zinv == null or z * zinv == 1 -// z and zinv are just BigIntegers, not fieldElements -if(z==null){this.z=BigInteger.ONE;}else{this.z=z;}this.zinv=null;//TODO: compression flag -}function pointFpGetX(){if(this.zinv==null){this.zinv=this.z.modInverse(this.curve.q);}var r=this.x.toBigInteger().multiply(this.zinv);this.curve.reduce(r);return this.curve.fromBigInteger(r);}function pointFpGetY(){if(this.zinv==null){this.zinv=this.z.modInverse(this.curve.q);}var r=this.y.toBigInteger().multiply(this.zinv);this.curve.reduce(r);return this.curve.fromBigInteger(r);}function pointFpEquals(other){if(other==this)return true;if(this.isInfinity())return other.isInfinity();if(other.isInfinity())return this.isInfinity();var u,v;// u = Y2 * Z1 - Y1 * Z2 -u=other.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(other.z)).mod(this.curve.q);if(!u.equals(BigInteger.ZERO))return false;// v = X2 * Z1 - X1 * Z2 -v=other.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(other.z)).mod(this.curve.q);return v.equals(BigInteger.ZERO);}function pointFpIsInfinity(){if(this.x==null&&this.y==null)return true;return this.z.equals(BigInteger.ZERO)&&!this.y.toBigInteger().equals(BigInteger.ZERO);}function pointFpNegate(){return new ECPointFp(this.curve,this.x,this.y.negate(),this.z);}function pointFpAdd(b){if(this.isInfinity())return b;if(b.isInfinity())return this;// u = Y2 * Z1 - Y1 * Z2 -var u=b.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(b.z)).mod(this.curve.q);// v = X2 * Z1 - X1 * Z2 -var v=b.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(b.z)).mod(this.curve.q);if(BigInteger.ZERO.equals(v)){if(BigInteger.ZERO.equals(u)){return this.twice();// this == b, so double -}return this.curve.getInfinity();// this = -b, so infinity -}var THREE=new BigInteger("3");var x1=this.x.toBigInteger();var y1=this.y.toBigInteger();var x2=b.x.toBigInteger();var y2=b.y.toBigInteger();var v2=v.square();var v3=v2.multiply(v);var x1v2=x1.multiply(v2);var zu2=u.square().multiply(this.z);// x3 = v * (z2 * (z1 * u^2 - 2 * x1 * v^2) - v^3) -var x3=zu2.subtract(x1v2.shiftLeft(1)).multiply(b.z).subtract(v3).multiply(v).mod(this.curve.q);// y3 = z2 * (3 * x1 * u * v^2 - y1 * v^3 - z1 * u^3) + u * v^3 -var y3=x1v2.multiply(THREE).multiply(u).subtract(y1.multiply(v3)).subtract(zu2.multiply(u)).multiply(b.z).add(u.multiply(v3)).mod(this.curve.q);// z3 = v^3 * z1 * z2 -var z3=v3.multiply(this.z).multiply(b.z).mod(this.curve.q);return new ECPointFp(this.curve,this.curve.fromBigInteger(x3),this.curve.fromBigInteger(y3),z3);}function pointFpTwice(){if(this.isInfinity())return this;if(this.y.toBigInteger().signum()==0)return this.curve.getInfinity();// TODO: optimized handling of constants -var THREE=new BigInteger("3");var x1=this.x.toBigInteger();var y1=this.y.toBigInteger();var y1z1=y1.multiply(this.z);var y1sqz1=y1z1.multiply(y1).mod(this.curve.q);var a=this.curve.a.toBigInteger();// w = 3 * x1^2 + a * z1^2 -var w=x1.square().multiply(THREE);if(!BigInteger.ZERO.equals(a)){w=w.add(this.z.square().multiply(a));}w=w.mod(this.curve.q);//this.curve.reduce(w); -// x3 = 2 * y1 * z1 * (w^2 - 8 * x1 * y1^2 * z1) -var x3=w.square().subtract(x1.shiftLeft(3).multiply(y1sqz1)).shiftLeft(1).multiply(y1z1).mod(this.curve.q);// y3 = 4 * y1^2 * z1 * (3 * w * x1 - 2 * y1^2 * z1) - w^3 -var y3=w.multiply(THREE).multiply(x1).subtract(y1sqz1.shiftLeft(1)).shiftLeft(2).multiply(y1sqz1).subtract(w.square().multiply(w)).mod(this.curve.q);// z3 = 8 * (y1 * z1)^3 -var z3=y1z1.square().multiply(y1z1).shiftLeft(3).mod(this.curve.q);return new ECPointFp(this.curve,this.curve.fromBigInteger(x3),this.curve.fromBigInteger(y3),z3);}// Simple NAF (Non-Adjacent Form) multiplication algorithm -// TODO: modularize the multiplication algorithm -function pointFpMultiply(k){if(this.isInfinity())return this;if(k.signum()==0)return this.curve.getInfinity();var e=k;var h=e.multiply(new BigInteger("3"));var neg=this.negate();var R=this;var i;for(i=h.bitLength()-2;i>0;--i){R=R.twice();var hBit=h.testBit(i);var eBit=e.testBit(i);if(hBit!=eBit){R=R.add(hBit?this:neg);}}return R;}// Compute this*j + x*k (simultaneous multiplication) -function pointFpMultiplyTwo(j,x,k){var i;if(j.bitLength()>k.bitLength())i=j.bitLength()-1;else i=k.bitLength()-1;var R=this.curve.getInfinity();var both=this.add(x);while(i>=0){R=R.twice();if(j.testBit(i)){if(k.testBit(i)){R=R.add(both);}else{R=R.add(this);}}else{if(k.testBit(i)){R=R.add(x);}}--i;}return R;}ECPointFp.prototype.getX=pointFpGetX;ECPointFp.prototype.getY=pointFpGetY;ECPointFp.prototype.equals=pointFpEquals;ECPointFp.prototype.isInfinity=pointFpIsInfinity;ECPointFp.prototype.negate=pointFpNegate;ECPointFp.prototype.add=pointFpAdd;ECPointFp.prototype.twice=pointFpTwice;ECPointFp.prototype.multiply=pointFpMultiply;ECPointFp.prototype.multiplyTwo=pointFpMultiplyTwo;// ---------------- -// ECCurveFp -// constructor -function ECCurveFp(q,a,b){this.q=q;this.a=this.fromBigInteger(a);this.b=this.fromBigInteger(b);this.infinity=new ECPointFp(this,null,null);this.reducer=new Barrett(this.q);}function curveFpGetQ(){return this.q;}function curveFpGetA(){return this.a;}function curveFpGetB(){return this.b;}function curveFpEquals(other){if(other==this)return true;return this.q.equals(other.q)&&this.a.equals(other.a)&&this.b.equals(other.b);}function curveFpGetInfinity(){return this.infinity;}function curveFpFromBigInteger(x){return new ECFieldElementFp(this.q,x);}function curveReduce(x){this.reducer.reduce(x);}// for now, work with hex strings because they're easier in JS -function curveFpDecodePointHex(s){switch(parseInt(s.substr(0,2),16)){// first byte -case 0:return this.infinity;case 2:case 3:// point compression not supported yet -return null;case 4:case 6:case 7:var len=(s.length-2)/2;var xHex=s.substr(2,len);var yHex=s.substr(len+2,len);return new ECPointFp(this,this.fromBigInteger(new BigInteger(xHex,16)),this.fromBigInteger(new BigInteger(yHex,16)));default:// unsupported -return null;}}function curveFpEncodePointHex(p){if(p.isInfinity())return"00";var xHex=p.getX().toBigInteger().toString(16);var yHex=p.getY().toBigInteger().toString(16);var oLen=this.getQ().toString(16).length;if(oLen%2!=0)oLen++;while(xHex.length128){var firstWord=this.q.shiftRight(bitLength-64);if(firstWord.intValue()==-1){this.r=BigInteger.ONE.shiftLeft(bitLength).subtract(this.q);}}return this.r;};ECFieldElementFp.prototype.modMult=function(x1,x2){return this.modReduce(x1.multiply(x2));};ECFieldElementFp.prototype.modReduce=function(x){if(this.getR()!=null){var qLen=q.bitLength();while(x.bitLength()>qLen+1){var u=x.shiftRight(qLen);var v=x.subtract(u.shiftLeft(qLen));if(!this.getR().equals(BigInteger.ONE)){u=u.multiply(this.getR());}x=u.add(v);}while(x.compareTo(q)>=0){x=x.subtract(q);}}else{x=x.mod(q);}return x;};ECFieldElementFp.prototype.sqrt=function(){if(!this.q.testBit(0))throw"unsupported";// p mod 4 == 3 -if(this.q.testBit(1)){var z=new ECFieldElementFp(this.q,this.x.modPow(this.q.shiftRight(2).add(BigInteger.ONE),this.q));return z.square().equals(this)?z:null;}// p mod 4 == 1 -var qMinusOne=this.q.subtract(BigInteger.ONE);var legendreExponent=qMinusOne.shiftRight(1);if(!this.x.modPow(legendreExponent,this.q).equals(BigInteger.ONE)){return null;}var u=qMinusOne.shiftRight(2);var k=u.shiftLeft(1).add(BigInteger.ONE);var Q=this.x;var fourQ=modDouble(modDouble(Q));var U,V;do{var P;do{P=new BigInteger(this.q.bitLength(),new SecureRandom());}while(P.compareTo(this.q)>=0||!P.multiply(P).subtract(fourQ).modPow(legendreExponent,this.q).equals(qMinusOne));var result=this.lucasSequence(P,Q,k);U=result[0];V=result[1];if(this.modMult(V,V).equals(fourQ)){// Integer division by 2, mod q -if(V.testBit(0)){V=V.add(q);}V=V.shiftRight(1);return new ECFieldElementFp(q,V);}}while(U.equals(BigInteger.ONE)||U.equals(qMinusOne));return null;};ECFieldElementFp.prototype.lucasSequence=function(P,Q,k){var n=k.bitLength();var s=k.getLowestSetBit();var Uh=BigInteger.ONE;var Vl=BigInteger.TWO;var Vh=P;var Ql=BigInteger.ONE;var Qh=BigInteger.ONE;for(var j=n-1;j>=s+1;--j){Ql=this.modMult(Ql,Qh);if(k.testBit(j)){Qh=this.modMult(Ql,Q);Uh=this.modMult(Uh,Vh);Vl=this.modReduce(Vh.multiply(Vl).subtract(P.multiply(Ql)));Vh=this.modReduce(Vh.multiply(Vh).subtract(Qh.shiftLeft(1)));}else{Qh=Ql;Uh=this.modReduce(Uh.multiply(Vl).subtract(Ql));Vh=this.modReduce(Vh.multiply(Vl).subtract(P.multiply(Ql)));Vl=this.modReduce(Vl.multiply(Vl).subtract(Ql.shiftLeft(1)));}}Ql=this.modMult(Ql,Qh);Qh=this.modMult(Ql,Q);Uh=this.modReduce(Uh.multiply(Vl).subtract(Ql));Vl=this.modReduce(Vh.multiply(Vl).subtract(P.multiply(Ql)));Ql=this.modMult(Ql,Qh);for(var j=1;j<=s;++j){Uh=this.modMult(Uh,Vl);Vl=this.modReduce(Vl.multiply(Vl).subtract(Ql.shiftLeft(1)));Ql=this.modMult(Ql,Ql);}return[Uh,Vl];};var _exports={ECCurveFp:ECCurveFp,ECPointFp:ECPointFp,ECFieldElementFp:ECFieldElementFp};module.exports=_exports; - -/***/ }, -/* 204 */ -/***/ function(module, exports) { - -"use strict"; -'use strict';exports.__esModule=true;exports.addEventListener=addEventListener;exports.removeEventListener=removeEventListener;exports.getHashPath=getHashPath;exports.replaceHashPath=replaceHashPath;exports.getWindowPath=getWindowPath;exports.go=go;exports.getUserConfirmation=getUserConfirmation;exports.supportsHistory=supportsHistory;exports.supportsGoWithoutReloadUsingHash=supportsGoWithoutReloadUsingHash;function addEventListener(node,event,listener){if(node.addEventListener){node.addEventListener(event,listener,false);}else{node.attachEvent('on'+event,listener);}}function removeEventListener(node,event,listener){if(node.removeEventListener){node.removeEventListener(event,listener,false);}else{node.detachEvent('on'+event,listener);}}function getHashPath(){// We can't use window.location.hash here because it's not -// consistent across browsers - Firefox will pre-decode it! -return window.location.href.split('#')[1]||'';}function replaceHashPath(path){window.location.replace(window.location.pathname+window.location.search+'#'+path);}function getWindowPath(){return window.location.pathname+window.location.search+window.location.hash;}function go(n){if(n)window.history.go(n);}function getUserConfirmation(message,callback){callback(window.confirm(message));}/** - * Returns true if the HTML5 history API is supported. Taken from modernizr. - * - * https://github.com/Modernizr/Modernizr/blob/master/LICENSE - * https://github.com/Modernizr/Modernizr/blob/master/feature-detects/history.js - * changed to avoid false negatives for Windows Phones: https://github.com/rackt/react-router/issues/586 - */function supportsHistory(){var ua=navigator.userAgent;if((ua.indexOf('Android 2.')!==-1||ua.indexOf('Android 4.0')!==-1)&&ua.indexOf('Mobile Safari')!==-1&&ua.indexOf('Chrome')===-1&&ua.indexOf('Windows Phone')===-1){return false;}return window.history&&'pushState'in window.history;}/** - * Returns false if using go(n) with hash history causes a full page reload. - */function supportsGoWithoutReloadUsingHash(){var ua=navigator.userAgent;return ua.indexOf('Firefox')===-1;} - -/***/ }, -/* 205 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(process) {'use strict';exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{'default':obj};}var _warning=__webpack_require__(40);var _warning2=_interopRequireDefault(_warning);var _extractPath=__webpack_require__(332);var _extractPath2=_interopRequireDefault(_extractPath);function parsePath(path){var pathname=_extractPath2['default'](path);var search='';var hash='';process.env.NODE_ENV!=='production'?_warning2['default'](path===pathname,'A path must be pathname + search + hash only, not a fully qualified URL like "%s"',path):undefined;var hashIndex=pathname.indexOf('#');if(hashIndex!==-1){hash=pathname.substring(hashIndex);pathname=pathname.substring(0,hashIndex);}var searchIndex=pathname.indexOf('?');if(searchIndex!==-1){search=pathname.substring(searchIndex);pathname=pathname.substring(0,searchIndex);}if(pathname==='')pathname='/';return{pathname:pathname,search:search,hash:hash};}exports['default']=parsePath;module.exports=exports['default']; -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) - -/***/ }, -/* 206 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(process) {'use strict';exports.__esModule=true;function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{'default':obj};}var _warning=__webpack_require__(40);var _warning2=_interopRequireDefault(_warning);function runTransitionHook(hook,location,callback){var result=hook(location,callback);if(hook.length<2){// Assume the hook runs synchronously and automatically -// call the callback with the return value. -callback(result);}else{process.env.NODE_ENV!=='production'?_warning2['default'](result===undefined,'You should not "return" in a transition hook with a callback argument; call the callback instead'):undefined;}}exports['default']=runTransitionHook;module.exports=exports['default']; -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) - -/***/ }, -/* 207 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -'use strict';var http=__webpack_require__(126);var https=module.exports;for(var key in http){if(http.hasOwnProperty(key))https[key]=http[key];};https.request=function(params,cb){if(!params)params={};params.scheme='https';params.protocol='https:';return http.request.call(this,params,cb);}; - -/***/ }, -/* 208 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -"use strict";/* - * Copyright (c) 2014 Mega Limited - * under the MIT License. - * - * Authors: Guy K. Kloss - * - * You should have received a copy of the license along with this program. - */var dh=__webpack_require__(688);var eddsa=__webpack_require__(689);var curve255=__webpack_require__(209);var utils=__webpack_require__(140);/** - * @exports jodid25519 - * Curve 25519-based cryptography collection. - * - * @description - * EC Diffie-Hellman (ECDH) based on Curve25519 and digital signatures - * (EdDSA) based on Ed25519. - */var ns={};/** Module version indicator as string (format: [major.minor.patch]). */ns.VERSION='0.7.1';ns.dh=dh;ns.eddsa=eddsa;ns.curve255=curve255;ns.utils=utils;module.exports=ns; - -/***/ }, -/* 209 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -"use strict";/** - * @fileOverview - * Core operations on curve 25519 required for the higher level modules. - *//* - * Copyright (c) 2007, 2013, 2014 Michele Bini - * Copyright (c) 2014 Mega Limited - * under the MIT License. - * - * Authors: Guy K. Kloss, Michele Bini - * - * You should have received a copy of the license along with this program. - */var core=__webpack_require__(139);var utils=__webpack_require__(140);/** - * @exports jodid25519/curve255 - * Legacy compatibility module for Michele Bini's previous curve255.js. - * - * @description - * Legacy compatibility module for Michele Bini's previous curve255.js. - * - *

- * This code presents an API with all key formats as previously available - * from Michele Bini's curve255.js implementation. - *

- */var ns={};function curve25519_raw(f,c){var a,x_1,q;x_1=c;a=core.dbl(x_1,core.ONE());q=[x_1,core.ONE()];var n=255;while(core.getbit(f,n)==0){n--;// For correct constant-time operation, bit 255 should always be -// set to 1 so the following 'while' loop is never entered. -if(n<0){return core.ZERO();}}n--;var aq=[a,q];while(n>=0){var r,s;var b=core.getbit(f,n);r=core.sum(aq[0][0],aq[0][1],aq[1][0],aq[1][1],x_1);s=core.dbl(aq[1-b][0],aq[1-b][1]);aq[1-b]=s;aq[b]=r;n--;}q=aq[1];q[1]=core.invmodp(q[1]);q[0]=core.mulmodp(q[0],q[1]);core.reduce(q[0]);return q[0];}function curve25519b32(a,b){return _base32encode(curve25519(_base32decode(a),_base32decode(b)));}function curve25519(f,c){if(!c){c=core.BASE();}f[0]&=0xFFF8;f[15]=f[15]&0x7FFF|0x4000;return curve25519_raw(f,c);}function _hexEncodeVector(k){var hexKey=utils.hexEncode(k);// Pad with '0' at the front. -hexKey=new Array(64+1-hexKey.length).join('0')+hexKey;// Invert bytes. -return hexKey.split(/(..)/).reverse().join('');}function _hexDecodeVector(v){// assert(length(x) == 64); -// Invert bytes. -var hexKey=v.split(/(..)/).reverse().join('');return utils.hexDecode(hexKey);}// Expose some functions to the outside through this name space. -/** - * Computes the scalar product of a point on the curve 25519. - * - * This function is used for the DH key-exchange protocol. - * - * Before multiplication, some bit operations are applied to the - * private key to ensure it is a valid Curve25519 secret key. - * It is the user's responsibility to make sure that the private - * key is a uniformly random, secret value. - * - * @function - * @param f {array} - * Private key. - * @param c {array} - * Public point on the curve. If not given, the curve's base point is used. - * @returns {array} - * Key point resulting from scalar product. - */ns.curve25519=curve25519;/** - * Computes the scalar product of a point on the curve 25519. - * - * This variant does not make sure that the private key is valid. - * The user has the responsibility to ensure the private key is - * valid or that this results in a safe protocol. Unless you know - * exactly what you are doing, you should not use this variant, - * please use 'curve25519' instead. - * - * @function - * @param f {array} - * Private key. - * @param c {array} - * Public point on the curve. If not given, the curve's base point is used. - * @returns {array} - * Key point resulting from scalar product. - */ns.curve25519_raw=curve25519_raw;/** - * Encodes the internal representation of a key to a canonical hex - * representation. - * - * This is the format commonly used in other libraries and for - * test vectors, and is equivalent to the hex dump of the key in - * little-endian binary format. - * - * @function - * @param n {array} - * Array representation of key. - * @returns {string} - * Hexadecimal string representation of key. - */ns.hexEncodeVector=_hexEncodeVector;/** - * Decodes a canonical hex representation of a key - * to an internally compatible array representation. - * - * @function - * @param n {string} - * Hexadecimal string representation of key. - * @returns {array} - * Array representation of key. - */ns.hexDecodeVector=_hexDecodeVector;/** - * Encodes the internal representation of a key into a - * hexadecimal representation. - * - * This is a strict positional notation, most significant digit first. - * - * @function - * @param n {array} - * Array representation of key. - * @returns {string} - * Hexadecimal string representation of key. - */ns.hexencode=utils.hexEncode;/** - * Decodes a hex representation of a key to an internally - * compatible array representation. - * - * @function - * @param n {string} - * Hexadecimal string representation of key. - * @returns {array} - * Array representation of key. - */ns.hexdecode=utils.hexDecode;/** - * Encodes the internal representation of a key to a base32 - * representation. - * - * @function - * @param n {array} - * Array representation of key. - * @returns {string} - * Base32 string representation of key. - */ns.base32encode=utils.base32encode;/** - * Decodes a base32 representation of a key to an internally - * compatible array representation. - * - * @function - * @param n {string} - * Base32 string representation of key. - * @returns {array} - * Array representation of key. - */ns.base32decode=utils.base32decode;module.exports=ns; - -/***/ }, +/* 206 */, +/* 207 */, +/* 208 */, +/* 209 */, /* 210 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var baseCreate=__webpack_require__(106),baseLodash=__webpack_require__(222);/** Used as references for the maximum length and index of an array. */var MAX_ARRAY_LENGTH=4294967295;/** +'use strict';var baseCreate=__webpack_require__(108),baseLodash=__webpack_require__(222);/** Used as references for the maximum length and index of an array. */var MAX_ARRAY_LENGTH=4294967295;/** * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation. * * @private @@ -5738,7 +3882,7 @@ LazyWrapper.prototype=baseCreate(baseLodash.prototype);LazyWrapper.prototype.con /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var baseCreate=__webpack_require__(106),baseLodash=__webpack_require__(222);/** +'use strict';var baseCreate=__webpack_require__(108),baseLodash=__webpack_require__(222);/** * The base constructor for creating `lodash` wrapper objects. * * @private @@ -5751,7 +3895,7 @@ LazyWrapper.prototype=baseCreate(baseLodash.prototype);LazyWrapper.prototype.con /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var getNative=__webpack_require__(71),root=__webpack_require__(31);/* Built-in method references that are verified to be native. */var Map=getNative(root,'Map');module.exports=Map; +'use strict';var getNative=__webpack_require__(74),root=__webpack_require__(32);/* Built-in method references that are verified to be native. */var Map=getNative(root,'Map');module.exports=Map; /***/ }, /* 213 */ @@ -5772,7 +3916,7 @@ MapCache.prototype.clear=mapCacheClear;MapCache.prototype['delete']=mapCacheDele /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var ListCache=__webpack_require__(141),stackClear=__webpack_require__(815),stackDelete=__webpack_require__(816),stackGet=__webpack_require__(817),stackHas=__webpack_require__(818),stackSet=__webpack_require__(819);/** +'use strict';var ListCache=__webpack_require__(142),stackClear=__webpack_require__(815),stackDelete=__webpack_require__(816),stackGet=__webpack_require__(817),stackHas=__webpack_require__(818),stackSet=__webpack_require__(819);/** * Creates a stack cache object to store key-value pairs. * * @private @@ -5815,7 +3959,7 @@ Stack.prototype.clear=stackClear;Stack.prototype['delete']=stackDelete;Stack.pro /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var defineProperty=__webpack_require__(357);/** +'use strict';var defineProperty=__webpack_require__(359);/** * The base implementation of `assignValue` and `assignMergeValue` without * value checks. * @@ -5830,7 +3974,7 @@ Stack.prototype.clear=stackClear;Stack.prototype['delete']=stackDelete;Stack.pro /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var Stack=__webpack_require__(214),arrayEach=__webpack_require__(105),assignValue=__webpack_require__(146),baseAssign=__webpack_require__(342),baseAssignIn=__webpack_require__(712),cloneBuffer=__webpack_require__(749),copyArray=__webpack_require__(153),copySymbols=__webpack_require__(758),copySymbolsIn=__webpack_require__(759),getAllKeys=__webpack_require__(777),getAllKeysIn=__webpack_require__(360),getTag=__webpack_require__(226),initCloneArray=__webpack_require__(788),initCloneByTag=__webpack_require__(789),initCloneObject=__webpack_require__(790),isArray=__webpack_require__(9),isBuffer=__webpack_require__(112),isObject=__webpack_require__(32),keys=__webpack_require__(23);/** 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;/** +'use strict';var Stack=__webpack_require__(214),arrayEach=__webpack_require__(107),assignValue=__webpack_require__(147),baseAssign=__webpack_require__(344),baseAssignIn=__webpack_require__(712),cloneBuffer=__webpack_require__(749),copyArray=__webpack_require__(154),copySymbols=__webpack_require__(758),copySymbolsIn=__webpack_require__(759),getAllKeys=__webpack_require__(777),getAllKeysIn=__webpack_require__(362),getTag=__webpack_require__(226),initCloneArray=__webpack_require__(788),initCloneByTag=__webpack_require__(789),initCloneObject=__webpack_require__(790),isArray=__webpack_require__(9),isBuffer=__webpack_require__(114),isObject=__webpack_require__(33),keys=__webpack_require__(24);/** 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;/** * The base implementation of `_.clone` and `_.cloneDeep` which tracks * traversed objects. * @@ -5854,7 +3998,7 @@ assignValue(result,key,baseClone(subValue,bitmask,customizer,key,value,stack));} /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var baseFor=__webpack_require__(716),keys=__webpack_require__(23);/** +'use strict';var baseFor=__webpack_require__(716),keys=__webpack_require__(24);/** * The base implementation of `_.forOwn` without support for iteratee shorthands. * * @private @@ -5868,7 +4012,7 @@ assignValue(result,key,baseClone(subValue,bitmask,customizer,key,value,stack));} /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var baseIsEqualDeep=__webpack_require__(723),isObject=__webpack_require__(32),isObjectLike=__webpack_require__(36);/** +'use strict';var baseIsEqualDeep=__webpack_require__(723),isObject=__webpack_require__(33),isObjectLike=__webpack_require__(36);/** * The base implementation of `_.isEqual` which supports partial comparisons * and tracks traversed objects. * @@ -5888,7 +4032,7 @@ assignValue(result,key,baseClone(subValue,bitmask,customizer,key,value,stack));} /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var isPrototype=__webpack_require__(109),nativeKeys=__webpack_require__(807);/** Used for built-in method references. */var objectProto=Object.prototype;/** Used to check objects for own properties. */var hasOwnProperty=objectProto.hasOwnProperty;/** +'use strict';var isPrototype=__webpack_require__(111),nativeKeys=__webpack_require__(807);/** Used for built-in method references. */var objectProto=Object.prototype;/** Used to check objects for own properties. */var hasOwnProperty=objectProto.hasOwnProperty;/** * The base implementation of `_.keys` which doesn't treat sparse arrays as dense. * * @private @@ -5913,7 +4057,7 @@ assignValue(result,key,baseClone(subValue,bitmask,customizer,key,value,stack));} /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var Uint8Array=__webpack_require__(338);/** +'use strict';var Uint8Array=__webpack_require__(340);/** * Creates a clone of `arrayBuffer`. * * @private @@ -5926,7 +4070,7 @@ assignValue(result,key,baseClone(subValue,bitmask,customizer,key,value,stack));} /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var metaMap=__webpack_require__(369),noop=__webpack_require__(389);/** +'use strict';var metaMap=__webpack_require__(371),noop=__webpack_require__(391);/** * Gets metadata for `func`. * * @private @@ -5939,7 +4083,7 @@ assignValue(result,key,baseClone(subValue,bitmask,customizer,key,value,stack));} /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var overArg=__webpack_require__(228),stubArray=__webpack_require__(393);/* Built-in method references for those with the same name as other `lodash` methods. */var nativeGetSymbols=Object.getOwnPropertySymbols;/** +'use strict';var overArg=__webpack_require__(228),stubArray=__webpack_require__(395);/* Built-in method references for those with the same name as other `lodash` methods. */var nativeGetSymbols=Object.getOwnPropertySymbols;/** * Creates an array of the own enumerable symbols of `object`. * * @private @@ -5952,7 +4096,7 @@ assignValue(result,key,baseClone(subValue,bitmask,customizer,key,value,stack));} /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var DataView=__webpack_require__(703),Map=__webpack_require__(212),Promise=__webpack_require__(705),Set=__webpack_require__(337),WeakMap=__webpack_require__(339),baseGetTag=__webpack_require__(59),toSource=__webpack_require__(376);/** `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);/** +'use strict';var DataView=__webpack_require__(703),Map=__webpack_require__(212),Promise=__webpack_require__(705),Set=__webpack_require__(339),WeakMap=__webpack_require__(341),baseGetTag=__webpack_require__(58),toSource=__webpack_require__(378);/** `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);/** * Gets the `toStringTag` of `value`. * * @private @@ -5966,7 +4110,7 @@ if(DataView&&getTag(new DataView(new ArrayBuffer(1)))!=dataViewTag||Map&&getTag( /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};var isArray=__webpack_require__(9),isSymbol=__webpack_require__(73);/** Used to match property names within property paths. */var reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;/** +'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};var isArray=__webpack_require__(9),isSymbol=__webpack_require__(76);/** Used to match property names within property paths. */var reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;/** * Checks if `value` is a property name and not a property path. * * @private @@ -5994,7 +4138,7 @@ if(DataView&&getTag(new DataView(new ArrayBuffer(1)))!=dataViewTag||Map&&getTag( /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var baseSetToString=__webpack_require__(740),shortOut=__webpack_require__(374);/** +'use strict';var baseSetToString=__webpack_require__(740),shortOut=__webpack_require__(376);/** * Sets the `toString` method of `func` to return `string`. * * @private @@ -6051,7 +4195,7 @@ if(DataView&&getTag(new DataView(new ArrayBuffer(1)))!=dataViewTag||Map&&getTag( /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var createFind=__webpack_require__(769),findIndex=__webpack_require__(380);/** +'use strict';var createFind=__webpack_require__(769),findIndex=__webpack_require__(382);/** * Iterates over elements of `collection`, returning the first element * `predicate` returns truthy for. The predicate is invoked with three * arguments: (value, index|key, collection). @@ -6093,7 +4237,7 @@ if(DataView&&getTag(new DataView(new ArrayBuffer(1)))!=dataViewTag||Map&&getTag( /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var baseKeys=__webpack_require__(221),getTag=__webpack_require__(226),isArguments=__webpack_require__(164),isArray=__webpack_require__(9),isArrayLike=__webpack_require__(42),isBuffer=__webpack_require__(112),isPrototype=__webpack_require__(109),isTypedArray=__webpack_require__(168);/** `Object#toString` result references. */var mapTag='[object Map]',setTag='[object Set]';/** Used for built-in method references. */var objectProto=Object.prototype;/** Used to check objects for own properties. */var hasOwnProperty=objectProto.hasOwnProperty;/** +'use strict';var baseKeys=__webpack_require__(221),getTag=__webpack_require__(226),isArguments=__webpack_require__(165),isArray=__webpack_require__(9),isArrayLike=__webpack_require__(41),isBuffer=__webpack_require__(114),isPrototype=__webpack_require__(111),isTypedArray=__webpack_require__(169);/** `Object#toString` result references. */var mapTag='[object Map]',setTag='[object Set]';/** Used for built-in method references. */var objectProto=Object.prototype;/** Used to check objects for own properties. */var hasOwnProperty=objectProto.hasOwnProperty;/** * Checks if `value` is an empty object, collection, map, or set. * * Objects are considered empty if they have no own enumerable string keyed @@ -6164,7 +4308,7 @@ if(DataView&&getTag(new DataView(new ArrayBuffer(1)))!=dataViewTag||Map&&getTag( /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var baseGetTag=__webpack_require__(59),isArray=__webpack_require__(9),isObjectLike=__webpack_require__(36);/** `Object#toString` result references. */var stringTag='[object String]';/** +'use strict';var baseGetTag=__webpack_require__(58),isArray=__webpack_require__(9),isObjectLike=__webpack_require__(36);/** `Object#toString` result references. */var stringTag='[object String]';/** * Checks if `value` is classified as a `String` primitive or object. * * @static @@ -6187,7 +4331,7 @@ if(DataView&&getTag(new DataView(new ArrayBuffer(1)))!=dataViewTag||Map&&getTag( /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var baseValues=__webpack_require__(746),keys=__webpack_require__(23);/** +'use strict';var baseValues=__webpack_require__(746),keys=__webpack_require__(24);/** * Creates an array of the own enumerable string keyed property values of `object`. * * **Note:** Non-object values are coerced to objects. @@ -6226,7 +4370,7 @@ if(DataView&&getTag(new DataView(new ArrayBuffer(1)))!=dataViewTag||Map&&getTag( * @module parse-entities * @fileoverview Parse HTML character references: fast, spec-compliant, * positional information. - */'use strict';/* Dependencies. */var has=__webpack_require__(104);var characterEntities=__webpack_require__(1178);var legacy=__webpack_require__(1177);var invalid=__webpack_require__(1179);var decimal=__webpack_require__(86);var hexadecimal=__webpack_require__(682);var alphanumerical=__webpack_require__(681);/* Expose. */module.exports=wrapper;/* Methods. */var fromCharCode=String.fromCharCode;var noop=Function.prototype;/* Characters. */var REPLACEMENT='\uFFFD';var FORM_FEED='\f';var AMPERSAND='&';var OCTOTHORP='#';var SEMICOLON=';';var NEWLINE='\n';var X_LOWER='x';var X_UPPER='X';var SPACE=' ';var LESS_THAN='<';var EQUAL='=';var EMPTY='';var TAB='\t';/* Default settings. */var defaults={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:false,nonTerminated:true};/* Reference types. */var NAMED='named';var HEXADECIMAL='hexadecimal';var DECIMAL='decimal';/* Map of bases. */var BASE={};BASE[HEXADECIMAL]=16;BASE[DECIMAL]=10;/* Map of types to tests. Each type of character reference + */'use strict';/* Dependencies. */var has=__webpack_require__(106);var characterEntities=__webpack_require__(1185);var legacy=__webpack_require__(1184);var invalid=__webpack_require__(1186);var decimal=__webpack_require__(87);var hexadecimal=__webpack_require__(682);var alphanumerical=__webpack_require__(681);/* Expose. */module.exports=wrapper;/* Methods. */var fromCharCode=String.fromCharCode;var noop=Function.prototype;/* Characters. */var REPLACEMENT='\uFFFD';var FORM_FEED='\f';var AMPERSAND='&';var OCTOTHORP='#';var SEMICOLON=';';var NEWLINE='\n';var X_LOWER='x';var X_UPPER='X';var SPACE=' ';var LESS_THAN='<';var EQUAL='=';var EMPTY='';var TAB='\t';/* Default settings. */var defaults={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:false,nonTerminated:true};/* Reference types. */var NAMED='named';var HEXADECIMAL='hexadecimal';var DECIMAL='decimal';/* Map of bases. */var BASE={};BASE[HEXADECIMAL]=16;BASE[DECIMAL]=10;/* Map of types to tests. Each type of character reference * accepts different characters. This test is used to * detect whether a reference has ended (as the semicolon * is not strictly needed). */var TESTS={};TESTS[NAMED]=alphanumerical;TESTS[DECIMAL]=decimal;TESTS[HEXADECIMAL]=hexadecimal;/* Warning messages. */var NAMED_NOT_TERMINATED=1;var NUMERIC_NOT_TERMINATED=2;var NAMED_EMPTY=3;var NUMERIC_EMPTY=4;var NAMED_UNKNOWN=5;var NUMERIC_DISALLOWED=6;var NUMERIC_PROHIBITED=7;var NUMERIC_REFERENCE='Numeric character references';var NAMED_REFERENCE='Named character references';var TERMINATED=' must be terminated by a semicolon';var VOID=' cannot be empty';var MESSAGES={};MESSAGES[NAMED_NOT_TERMINATED]=NAMED_REFERENCE+TERMINATED;MESSAGES[NUMERIC_NOT_TERMINATED]=NUMERIC_REFERENCE+TERMINATED;MESSAGES[NAMED_EMPTY]=NAMED_REFERENCE+VOID;MESSAGES[NUMERIC_EMPTY]=NUMERIC_REFERENCE+VOID;MESSAGES[NAMED_UNKNOWN]=NAMED_REFERENCE+' must be known';MESSAGES[NUMERIC_DISALLOWED]=NUMERIC_REFERENCE+' cannot be disallowed';MESSAGES[NUMERIC_PROHIBITED]=NUMERIC_REFERENCE+' cannot be outside the '+'permissible Unicode range';/** @@ -6360,235 +4504,93 @@ var substr='ab'.substr(-1)==='b'?function(str,start,len){return str.substr(start /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 238 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(module, global) {var __WEBPACK_AMD_DEFINE_RESULT__;'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};/*! https://mths.be/punycode v1.4.1 by @mathias */;(function(root){/** Detect free variables */var freeExports=( false?'undefined':_typeof(exports))=='object'&&exports&&!exports.nodeType&&exports;var freeModule=( false?'undefined':_typeof(module))=='object'&&module&&!module.nodeType&&module;var freeGlobal=(typeof global==='undefined'?'undefined':_typeof(global))=='object'&&global;if(freeGlobal.global===freeGlobal||freeGlobal.window===freeGlobal||freeGlobal.self===freeGlobal){root=freeGlobal;}/** - * The `punycode` object. - * @name punycode - * @type Object - */var punycode,/** Highest positive signed 32-bit float value */maxInt=2147483647,// aka. 0x7FFFFFFF or 2^31-1 -/** Bootstring parameters */base=36,tMin=1,tMax=26,skew=38,damp=700,initialBias=72,initialN=128,// 0x80 -delimiter='-',// '\x2D' -/** Regular expressions */regexPunycode=/^xn--/,regexNonASCII=/[^\x20-\x7E]/,// unprintable ASCII chars + non-ASCII chars -regexSeparators=/[\x2E\u3002\uFF0E\uFF61]/g,// RFC 3490 separators -/** Error messages */errors={'overflow':'Overflow: input needs wider integers to process','not-basic':'Illegal input >= 0x80 (not a basic code point)','invalid-input':'Invalid input'},/** Convenience shortcuts */baseMinusTMin=base-tMin,floor=Math.floor,stringFromCharCode=String.fromCharCode,/** Temporary variable */key;/*--------------------------------------------------------------------------*//** - * A generic error utility function. - * @private - * @param {String} type The error type. - * @returns {Error} Throws a `RangeError` with the applicable error message. - */function error(type){throw new RangeError(errors[type]);}/** - * A generic `Array#map` utility function. - * @private - * @param {Array} array The array to iterate over. - * @param {Function} callback The function that gets called for every array - * item. - * @returns {Array} A new array of values returned by the callback function. - */function map(array,fn){var length=array.length;var result=[];while(length--){result[length]=fn(array[length]);}return result;}/** - * A simple `Array#map`-like wrapper to work with domain name strings or email - * addresses. - * @private - * @param {String} domain The domain name or email address. - * @param {Function} callback The function that gets called for every - * character. - * @returns {Array} A new string of characters returned by the callback - * function. - */function mapDomain(string,fn){var parts=string.split('@');var result='';if(parts.length>1){// In email addresses, only the domain name should be punycoded. Leave -// the local part (i.e. everything up to `@`) intact. -result=parts[0]+'@';string=parts[1];}// Avoid `split(regex)` for IE8 compatibility. See #17. -string=string.replace(regexSeparators,'\x2E');var labels=string.split('.');var encoded=map(labels,fn).join('.');return result+encoded;}/** - * Creates an array containing the numeric code points of each Unicode - * character in the string. While JavaScript uses UCS-2 internally, - * this function will convert a pair of surrogate halves (each of which - * UCS-2 exposes as separate characters) into a single code point, - * matching UTF-16. - * @see `punycode.ucs2.encode` - * @see - * @memberOf punycode.ucs2 - * @name decode - * @param {String} string The Unicode input string (UCS-2). - * @returns {Array} The new array of code points. - */function ucs2decode(string){var output=[],counter=0,length=string.length,value,extra;while(counter=0xD800&&value<=0xDBFF&&counter0xFFFF){value-=0x10000;output+=stringFromCharCode(value>>>10&0x3FF|0xD800);value=0xDC00|value&0x3FF;}output+=stringFromCharCode(value);return output;}).join('');}/** - * Converts a basic code point into a digit/integer. - * @see `digitToBasic()` - * @private - * @param {Number} codePoint The basic numeric code point value. - * @returns {Number} The numeric value of a basic code point (for use in - * representing integers) in the range `0` to `base - 1`, or `base` if - * the code point does not represent a value. - */function basicToDigit(codePoint){if(codePoint-48<10){return codePoint-22;}if(codePoint-65<26){return codePoint-65;}if(codePoint-97<26){return codePoint-97;}return base;}/** - * Converts a digit/integer into a basic code point. - * @see `basicToDigit()` - * @private - * @param {Number} digit The numeric value of a basic code point. - * @returns {Number} The basic code point whose value (when used for - * representing integers) is `digit`, which needs to be in the range - * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is - * used; else, the lowercase form is used. The behavior is undefined - * if `flag` is non-zero and `digit` has no uppercase form. - */function digitToBasic(digit,flag){// 0..25 map to ASCII a..z or A..Z -// 26..35 map to ASCII 0..9 -return digit+22+75*(digit<26)-((flag!=0)<<5);}/** - * Bias adaptation function as per section 3.4 of RFC 3492. - * https://tools.ietf.org/html/rfc3492#section-3.4 - * @private - */function adapt(delta,numPoints,firstTime){var k=0;delta=firstTime?floor(delta/damp):delta>>1;delta+=floor(delta/numPoints);for(;/* no initialization */delta>baseMinusTMin*tMax>>1;k+=base){delta=floor(delta/baseMinusTMin);}return floor(k+(baseMinusTMin+1)*delta/(delta+skew));}/** - * Converts a Punycode string of ASCII-only symbols to a string of Unicode - * symbols. - * @memberOf punycode - * @param {String} input The Punycode string of ASCII-only symbols. - * @returns {String} The resulting string of Unicode symbols. - */function decode(input){// Don't use UCS-2 -var output=[],inputLength=input.length,out,i=0,n=initialN,bias=initialBias,basic,j,index,oldi,w,k,digit,t,/** Cached calculation results */baseMinusT;// Handle the basic code points: let `basic` be the number of input code -// points before the last delimiter, or `0` if there is none, then copy -// the first basic code points to the output. -basic=input.lastIndexOf(delimiter);if(basic<0){basic=0;}for(j=0;j=0x80){error('not-basic');}output.push(input.charCodeAt(j));}// Main decoding loop: start just after the last delimiter if any basic code -// points were copied; start at the beginning otherwise. -for(index=basic>0?basic+1:0;index=inputLength){error('invalid-input');}digit=basicToDigit(input.charCodeAt(index++));if(digit>=base||digit>floor((maxInt-i)/w)){error('overflow');}i+=digit*w;t=k<=bias?tMin:k>=bias+tMax?tMax:k-bias;if(digitfloor(maxInt/baseMinusT)){error('overflow');}w*=baseMinusT;}out=output.length+1;bias=adapt(i-oldi,out,oldi==0);// `i` was supposed to wrap around from `out` to `0`, -// incrementing `n` each time, so we'll fix that now: -if(floor(i/out)>maxInt-n){error('overflow');}n+=floor(i/out);i%=out;// Insert `n` at position `i` of the output -output.splice(i++,0,n);}return ucs2encode(output);}/** - * Converts a string of Unicode symbols (e.g. a domain name label) to a - * Punycode string of ASCII-only symbols. - * @memberOf punycode - * @param {String} input The string of Unicode symbols. - * @returns {String} The resulting Punycode string of ASCII-only symbols. - */function encode(input){var n,delta,handledCPCount,basicLength,bias,j,m,q,k,t,currentValue,output=[],/** `inputLength` will hold the number of code points in `input`. */inputLength,/** Cached calculation results */handledCPCountPlusOne,baseMinusT,qMinusT;// Convert the input in UCS-2 to Unicode -input=ucs2decode(input);// Cache the length -inputLength=input.length;// Initialize the state -n=initialN;delta=0;bias=initialBias;// Handle the basic code points -for(j=0;j=n&¤tValue state to , -// but guard against overflow -handledCPCountPlusOne=handledCPCount+1;if(m-n>floor((maxInt-delta)/handledCPCountPlusOne)){error('overflow');}delta+=(m-n)*handledCPCountPlusOne;n=m;for(j=0;jmaxInt){error('overflow');}if(currentValue==n){// Represent delta as a generalized variable-length integer -for(q=delta,k=base;;/* no condition */k+=base){t=k<=bias?tMin:k>=bias+tMax?tMax:k-bias;if(q - * @memberOf punycode - * @type Object - */'ucs2':{'decode':ucs2decode,'encode':ucs2encode},'decode':decode,'encode':encode,'toASCII':toASCII,'toUnicode':toUnicode};/** Expose `punycode` */// Some AMD build optimizers, like r.js, check for specific condition patterns -// like the following: -if("function"=='function'&&_typeof(__webpack_require__(194))=='object'&&__webpack_require__(194)){!(__WEBPACK_AMD_DEFINE_RESULT__ = function(){return punycode;}.call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));}else if(freeExports&&freeModule){if(module.exports==freeExports){// in Node.js, io.js, or RingoJS v0.8.0+ -freeModule.exports=punycode;}else{// in Narwhal or RingoJS v0.7.0- -for(key in punycode){punycode.hasOwnProperty(key)&&(freeExports[key]=punycode[key]);}}}else{// in Rhino or a web browser -root.punycode=punycode;}})(undefined); -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(98)(module), __webpack_require__(17))) - -/***/ }, +/* 238 */, /* 239 */ /***/ function(module, exports) { "use strict"; -"use strict";exports.__esModule=true;exports.loopAsync=loopAsync;exports.mapAsync=mapAsync;function loopAsync(turns,work,callback){var currentTurn=0,isDone=false;function done(){isDone=true;callback.apply(this,arguments);}function next(){if(isDone)return;if(currentTurn=turns&&hasNext){isDone=true;callback();}}next();}function mapAsync(array,work,callback){var length=array.length;var values=[];if(length===0)return callback(null,values);var isDone=false,doneCount=0;function done(index,error,value){if(isDone)return;if(error){isDone=true;callback(error);}else{values[index]=value;isDone=++doneCount===length;if(isDone)callback(null,values);}}array.forEach(function(item,index){work(item,index,function(error,value){done(index,error,value);});});} /***/ }, /* 240 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -/* WEBPACK VAR INJECTION */(function(process) {'use strict';exports.__esModule=true;var _extends=Object.assign||function(target){for(var i=1;i=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i];}return target;}var _warning=__webpack_require__(40);var _warning2=_interopRequireDefault(_warning);var _historyLibActions=__webpack_require__(85);var _historyLibUseQueries=__webpack_require__(673);var _historyLibUseQueries2=_interopRequireDefault(_historyLibUseQueries);var _computeChangedRoutes2=__webpack_require__(927);var _computeChangedRoutes3=_interopRequireDefault(_computeChangedRoutes2);var _TransitionUtils=__webpack_require__(926);var _isActive2=__webpack_require__(930);var _isActive3=_interopRequireDefault(_isActive2);var _getComponents=__webpack_require__(928);var _getComponents2=_interopRequireDefault(_getComponents);var _matchRoutes=__webpack_require__(932);var _matchRoutes2=_interopRequireDefault(_matchRoutes);function hasAnyProperties(object){for(var p in object){if(object.hasOwnProperty(p))return true;}return false;}/** - * Returns a new createHistory function that may be used to create - * history objects that know about routing. - * - * Enhances history objects with the following methods: - * - * - listen((error, nextState) => {}) - * - listenBeforeLeavingRoute(route, (nextLocation) => {}) - * - match(location, (error, redirectLocation, nextState) => {}) - * - isActive(pathname, query, indexOnly=false) - */function useRoutes(createHistory){return function(){var options=arguments.length<=0||arguments[0]===undefined?{}:arguments[0];var routes=options.routes;var historyOptions=_objectWithoutProperties(options,['routes']);var history=_historyLibUseQueries2['default'](createHistory)(historyOptions);var state={};function isActive(pathname,query){var indexOnly=arguments.length<=2||arguments[2]===undefined?false:arguments[2];return _isActive3['default'](pathname,query,indexOnly,state.location,state.routes,state.params);}function createLocationFromRedirectInfo(_ref){var pathname=_ref.pathname;var query=_ref.query;var state=_ref.state;return history.createLocation(history.createPath(pathname,query),state,_historyLibActions.REPLACE);}var partialNextState=undefined;function match(location,callback){if(partialNextState&&partialNextState.location===location){// Continue from where we left off. -finishMatch(partialNextState,callback);}else{_matchRoutes2['default'](routes,location,function(error,nextState){if(error){callback(error);}else if(nextState){finishMatch(_extends({},nextState,{location:location}),callback);}else{callback();}});}}function finishMatch(nextState,callback){var _computeChangedRoutes=_computeChangedRoutes3['default'](state,nextState);var leaveRoutes=_computeChangedRoutes.leaveRoutes;var enterRoutes=_computeChangedRoutes.enterRoutes;_TransitionUtils.runLeaveHooks(leaveRoutes);_TransitionUtils.runEnterHooks(enterRoutes,nextState,function(error,redirectInfo){if(error){callback(error);}else if(redirectInfo){callback(null,createLocationFromRedirectInfo(redirectInfo));}else{// TODO: Fetch components after state is updated. -_getComponents2['default'](nextState,function(error,components){if(error){callback(error);}else{// TODO: Make match a pure function and have some other API -// for "match and update state". -callback(null,null,state=_extends({},nextState,{components:components}));}});}});}var RouteGuid=1;function getRouteID(route){return route.__id__||(route.__id__=RouteGuid++);}var RouteHooks={};function getRouteHooksForRoutes(routes){return routes.reduce(function(hooks,route){hooks.push.apply(hooks,RouteHooks[getRouteID(route)]);return hooks;},[]);}function transitionHook(location,callback){_matchRoutes2['default'](routes,location,function(error,nextState){if(nextState==null){// TODO: We didn't actually match anything, but hang -// onto error/nextState so we don't have to matchRoutes -// again in the listen callback. -callback();return;}// Cache some state here so we don't have to -// matchRoutes() again in the listen callback. -partialNextState=_extends({},nextState,{location:location});var hooks=getRouteHooksForRoutes(_computeChangedRoutes3['default'](state,partialNextState).leaveRoutes);var result=undefined;for(var i=0,len=hooks.length;result==null&&i renders the component tree for a given router state + * and sets the history object and the current location in context. + */var RouterContext=_react2.default.createClass({displayName:'RouterContext',mixins:[(0,_ContextUtils.ContextProvider)('router')],propTypes:{router:object.isRequired,location:object.isRequired,routes:array.isRequired,params:object.isRequired,components:array.isRequired,createElement:func.isRequired},getDefaultProps:function getDefaultProps(){return{createElement:_react2.default.createElement};},childContextTypes:{router:object.isRequired},getChildContext:function getChildContext(){return{router:this.props.router};},createElement:function createElement(component,props){return component==null?null:this.props.createElement(component,props);},render:function render(){var _this=this;var _props=this.props,location=_props.location,routes=_props.routes,params=_props.params,components=_props.components,router=_props.router;var element=null;if(components){element=components.reduceRight(function(element,components,index){if(components==null)return element;// Don't create new children; use the grandchildren. +var route=routes[index];var routeParams=(0,_getRouteParams2.default)(route,params);var props={location:location,params:params,route:route,router:router,routeParams:routeParams,routes:routes};if((0,_RouteUtils.isReactChildren)(element)){props.children=element;}else if(element){for(var prop in element){if(Object.prototype.hasOwnProperty.call(element,prop))props[prop]=element[prop];}}if((typeof components==='undefined'?'undefined':_typeof(components))==='object'){var elements={};for(var key in components){if(Object.prototype.hasOwnProperty.call(components,key)){// Pass through the key as a prop to createElement to allow +// custom createElement functions to know which named component +// they're rendering, for e.g. matching up to fetched data. +elements[key]=_this.createElement(components[key],_extends({key:key},props));}}return elements;}return _this.createElement(components,props);},element);}!(element===null||element===false||_react2.default.isValidElement(element))?process.env.NODE_ENV!=='production'?(0,_invariant2.default)(false,'The root route must render a single element'):(0,_invariant2.default)(false):void 0;return element;}});exports.default=RouterContext;module.exports=exports['default']; +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) + +/***/ }, +/* 243 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +'use strict';exports.__esModule=true;exports.go=exports.replaceLocation=exports.pushLocation=exports.startListener=exports.getUserConfirmation=exports.getCurrentLocation=undefined;var _LocationUtils=__webpack_require__(95);var _DOMUtils=__webpack_require__(177);var _DOMStateStorage=__webpack_require__(416);var _PathUtils=__webpack_require__(63);var _ExecutionEnvironment=__webpack_require__(244);var PopStateEvent='popstate';var HashChangeEvent='hashchange';var needsHashchangeListener=_ExecutionEnvironment.canUseDOM&&!(0,_DOMUtils.supportsPopstateOnHashchange)();var _createLocation=function _createLocation(historyState){var key=historyState&&historyState.key;return(0,_LocationUtils.createLocation)({pathname:window.location.pathname,search:window.location.search,hash:window.location.hash,state:key?(0,_DOMStateStorage.readState)(key):undefined},undefined,key);};var getCurrentLocation=exports.getCurrentLocation=function getCurrentLocation(){var historyState=void 0;try{historyState=window.history.state||{};}catch(error){// IE 11 sometimes throws when accessing window.history.state +// See https://github.com/ReactTraining/history/pull/289 +historyState={};}return _createLocation(historyState);};var getUserConfirmation=exports.getUserConfirmation=function getUserConfirmation(message,callback){return callback(window.confirm(message));};// eslint-disable-line no-alert +var startListener=exports.startListener=function startListener(listener){var handlePopState=function handlePopState(event){if(event.state!==undefined)// Ignore extraneous popstate events in WebKit +listener(_createLocation(event.state));};(0,_DOMUtils.addEventListener)(window,PopStateEvent,handlePopState);var handleUnpoppedHashChange=function handleUnpoppedHashChange(){return listener(getCurrentLocation());};if(needsHashchangeListener){(0,_DOMUtils.addEventListener)(window,HashChangeEvent,handleUnpoppedHashChange);}return function(){(0,_DOMUtils.removeEventListener)(window,PopStateEvent,handlePopState);if(needsHashchangeListener){(0,_DOMUtils.removeEventListener)(window,HashChangeEvent,handleUnpoppedHashChange);}};};var updateLocation=function updateLocation(location,updateState){var state=location.state;var key=location.key;if(state!==undefined)(0,_DOMStateStorage.saveState)(key,state);updateState({key:key},(0,_PathUtils.createPath)(location));};var pushLocation=exports.pushLocation=function pushLocation(location){return updateLocation(location,function(state,path){return window.history.pushState(state,null,path);});};var replaceLocation=exports.replaceLocation=function replaceLocation(location){return updateLocation(location,function(state,path){return window.history.replaceState(state,null,path);});};var go=exports.go=function go(n){if(n)window.history.go(n);}; + +/***/ }, +/* 244 */ +/***/ function(module, exports) { + +"use strict"; +'use strict';exports.__esModule=true;var canUseDOM=exports.canUseDOM=!!(typeof window!=='undefined'&&window.document&&window.document.createElement); + +/***/ }, +/* 245 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +'use strict';exports.__esModule=true;var _AsyncUtils=__webpack_require__(933);var _PathUtils=__webpack_require__(63);var _runTransitionHook=__webpack_require__(246);var _runTransitionHook2=_interopRequireDefault(_runTransitionHook);var _Actions=__webpack_require__(176);var _LocationUtils=__webpack_require__(95);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var createHistory=function createHistory(){var options=arguments.length<=0||arguments[0]===undefined?{}:arguments[0];var getCurrentLocation=options.getCurrentLocation;var getUserConfirmation=options.getUserConfirmation;var pushLocation=options.pushLocation;var replaceLocation=options.replaceLocation;var go=options.go;var keyLength=options.keyLength;var currentLocation=void 0;var pendingLocation=void 0;var beforeListeners=[];var listeners=[];var allKeys=[];var getCurrentIndex=function getCurrentIndex(){if(pendingLocation&&pendingLocation.action===_Actions.POP)return allKeys.indexOf(pendingLocation.key);if(currentLocation)return allKeys.indexOf(currentLocation.key);return-1;};var updateLocation=function updateLocation(nextLocation){var currentIndex=getCurrentIndex();currentLocation=nextLocation;if(currentLocation.action===_Actions.PUSH){allKeys=[].concat(allKeys.slice(0,currentIndex+1),[currentLocation.key]);}else if(currentLocation.action===_Actions.REPLACE){allKeys[currentIndex]=currentLocation.key;}listeners.forEach(function(listener){return listener(currentLocation);});};var listenBefore=function listenBefore(listener){beforeListeners.push(listener);return function(){return beforeListeners=beforeListeners.filter(function(item){return item!==listener;});};};var listen=function listen(listener){listeners.push(listener);return function(){return listeners=listeners.filter(function(item){return item!==listener;});};};var confirmTransitionTo=function confirmTransitionTo(location,callback){(0,_AsyncUtils.loopAsync)(beforeListeners.length,function(index,next,done){(0,_runTransitionHook2.default)(beforeListeners[index],location,function(result){return result!=null?done(result):next();});},function(message){if(getUserConfirmation&&typeof message==='string'){getUserConfirmation(message,function(ok){return callback(ok!==false);});}else{callback(message!==false);}});};var transitionTo=function transitionTo(nextLocation){if(currentLocation&&(0,_LocationUtils.locationsAreEqual)(currentLocation,nextLocation)||pendingLocation&&(0,_LocationUtils.locationsAreEqual)(pendingLocation,nextLocation))return;// Nothing to do +pendingLocation=nextLocation;confirmTransitionTo(nextLocation,function(ok){if(pendingLocation!==nextLocation)return;// Transition was interrupted during confirmation +pendingLocation=null;if(ok){// Treat PUSH to same path like REPLACE to be consistent with browsers +if(nextLocation.action===_Actions.PUSH){var prevPath=(0,_PathUtils.createPath)(currentLocation);var nextPath=(0,_PathUtils.createPath)(nextLocation);if(nextPath===prevPath&&(0,_LocationUtils.statesAreEqual)(currentLocation.state,nextLocation.state))nextLocation.action=_Actions.REPLACE;}if(nextLocation.action===_Actions.POP){updateLocation(nextLocation);}else if(nextLocation.action===_Actions.PUSH){if(pushLocation(nextLocation)!==false)updateLocation(nextLocation);}else if(nextLocation.action===_Actions.REPLACE){if(replaceLocation(nextLocation)!==false)updateLocation(nextLocation);}}else if(currentLocation&&nextLocation.action===_Actions.POP){var prevIndex=allKeys.indexOf(currentLocation.key);var nextIndex=allKeys.indexOf(nextLocation.key);if(prevIndex!==-1&&nextIndex!==-1)go(prevIndex-nextIndex);// Restore the URL +}});};var push=function push(input){return transitionTo(createLocation(input,_Actions.PUSH));};var replace=function replace(input){return transitionTo(createLocation(input,_Actions.REPLACE));};var goBack=function goBack(){return go(-1);};var goForward=function goForward(){return go(1);};var createKey=function createKey(){return Math.random().toString(36).substr(2,keyLength||6);};var createHref=function createHref(location){return(0,_PathUtils.createPath)(location);};var createLocation=function createLocation(location,action){var key=arguments.length<=2||arguments[2]===undefined?createKey():arguments[2];return(0,_LocationUtils.createLocation)(location,action,key);};return{getCurrentLocation:getCurrentLocation,listenBefore:listenBefore,listen:listen,transitionTo:transitionTo,push:push,replace:replace,go:go,goBack:goBack,goForward:goForward,createKey:createKey,createPath:_PathUtils.createPath,createHref:createHref,createLocation:createLocation};};exports.default=createHistory; + +/***/ }, +/* 246 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* WEBPACK VAR INJECTION */(function(process) {'use strict';exports.__esModule=true;var _warning=__webpack_require__(64);var _warning2=_interopRequireDefault(_warning);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var runTransitionHook=function runTransitionHook(hook,location,callback){var result=hook(location,callback);if(hook.length<2){// Assume the hook runs synchronously and automatically +// call the callback with the return value. +callback(result);}else{process.env.NODE_ENV!=='production'?(0,_warning2.default)(result===undefined,'You should not "return" in a transition hook with a callback argument; '+'call the callback instead'):void 0;}};exports.default=runTransitionHook; +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) + +/***/ }, +/* 247 */ +/***/ function(module, exports, __webpack_require__) { + "use strict"; /* WEBPACK VAR INJECTION */(function(process) {/** * Copyright 2013-2015, Facebook, Inc. @@ -6599,7 +4601,7 @@ return history.listen(function(location){if(state.location===location){listener( * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule CallbackQueue - */'use strict';var PooledClass=__webpack_require__(64);var assign=__webpack_require__(7);var invariant=__webpack_require__(6);/** + */'use strict';var PooledClass=__webpack_require__(65);var assign=__webpack_require__(7);var invariant=__webpack_require__(6);/** * A specialized pseudo-event module to help keep track of components waiting to * be notified when their DOM representations are available for use. * @@ -6630,7 +4632,7 @@ return history.listen(function(location){if(state.location===location){listener( /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 242 */ +/* 248 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -6644,7 +4646,7 @@ return history.listen(function(location){if(state.location===location){listener( * * @providesModule DOMPropertyOperations * @typechecks static-only - */'use strict';var DOMProperty=__webpack_require__(75);var ReactPerf=__webpack_require__(37);var quoteAttributeValueForBrowser=__webpack_require__(988);var warning=__webpack_require__(8);// Simplified subset + */'use strict';var DOMProperty=__webpack_require__(77);var ReactPerf=__webpack_require__(37);var quoteAttributeValueForBrowser=__webpack_require__(994);var warning=__webpack_require__(8);// Simplified subset var VALID_ATTRIBUTE_NAME_REGEX=/^[a-zA-Z_][\w\.\-]*$/;var illegalAttributeNameCache={};var validatedAttributeNameCache={};function isAttributeNameSafe(attributeName){if(validatedAttributeNameCache.hasOwnProperty(attributeName)){return true;}if(illegalAttributeNameCache.hasOwnProperty(attributeName)){return false;}if(VALID_ATTRIBUTE_NAME_REGEX.test(attributeName)){validatedAttributeNameCache[attributeName]=true;return true;}illegalAttributeNameCache[attributeName]=true;process.env.NODE_ENV!=='production'?warning(false,'Invalid attribute name: `%s`',attributeName):undefined;return false;}function shouldIgnoreValue(propertyInfo,value){return value==null||propertyInfo.hasBooleanValue&&!value||propertyInfo.hasNumericValue&&isNaN(value)||propertyInfo.hasPositiveNumericValue&&value<1||propertyInfo.hasOverloadedBooleanValue&&value===false;}if(process.env.NODE_ENV!=='production'){var reactProps={children:true,dangerouslySetInnerHTML:true,key:true,ref:true};var warnedProperties={};var warnUnknownProperty=function warnUnknownProperty(name){if(reactProps.hasOwnProperty(name)&&reactProps[name]||warnedProperties.hasOwnProperty(name)&&warnedProperties[name]){return;}warnedProperties[name]=true;var lowerCasedName=name.toLowerCase();// data-* attributes should be lowercase; suggest the lowercase version var standardName=DOMProperty.isCustomAttribute(lowerCasedName)?lowerCasedName:DOMProperty.getPossibleStandardName.hasOwnProperty(lowerCasedName)?DOMProperty.getPossibleStandardName[lowerCasedName]:null;// For now, only warn when we have a suggested correction. This prevents // logging too much when using transferPropsTo. @@ -6688,7 +4690,7 @@ node[propName]=value;}}}else if(DOMProperty.isCustomAttribute(name)){DOMProperty /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 243 */ +/* 249 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -6702,7 +4704,7 @@ node[propName]=value;}}}else if(DOMProperty.isCustomAttribute(name)){DOMProperty * * @providesModule LinkedValueUtils * @typechecks static-only - */'use strict';var ReactPropTypes=__webpack_require__(431);var ReactPropTypeLocations=__webpack_require__(177);var invariant=__webpack_require__(6);var warning=__webpack_require__(8);var hasReadOnlyValue={'button':true,'checkbox':true,'image':true,'hidden':true,'radio':true,'reset':true,'submit':true};function _assertSingleLink(inputProps){!(inputProps.checkedLink==null||inputProps.valueLink==null)?process.env.NODE_ENV!=='production'?invariant(false,'Cannot provide a checkedLink and a valueLink. If you want to use '+'checkedLink, you probably don\'t want to use valueLink and vice versa.'):invariant(false):undefined;}function _assertValueLink(inputProps){_assertSingleLink(inputProps);!(inputProps.value==null&&inputProps.onChange==null)?process.env.NODE_ENV!=='production'?invariant(false,'Cannot provide a valueLink and a value or onChange event. If you want '+'to use value or onChange, you probably don\'t want to use valueLink.'):invariant(false):undefined;}function _assertCheckedLink(inputProps){_assertSingleLink(inputProps);!(inputProps.checked==null&&inputProps.onChange==null)?process.env.NODE_ENV!=='production'?invariant(false,'Cannot provide a checkedLink and a checked property or onChange event. '+'If you want to use checked or onChange, you probably don\'t want to '+'use checkedLink'):invariant(false):undefined;}var propTypes={value:function value(props,propName,componentName){if(!props[propName]||hasReadOnlyValue[props.type]||props.onChange||props.readOnly||props.disabled){return null;}return new Error('You provided a `value` prop to a form field without an '+'`onChange` handler. This will render a read-only field. If '+'the field should be mutable use `defaultValue`. Otherwise, '+'set either `onChange` or `readOnly`.');},checked:function checked(props,propName,componentName){if(!props[propName]||props.onChange||props.readOnly||props.disabled){return null;}return new Error('You provided a `checked` prop to a form field without an '+'`onChange` handler. This will render a read-only field. If '+'the field should be mutable use `defaultChecked`. Otherwise, '+'set either `onChange` or `readOnly`.');},onChange:ReactPropTypes.func};var loggedTypeFailures={};function getDeclarationErrorAddendum(owner){if(owner){var name=owner.getName();if(name){return' Check the render method of `'+name+'`.';}}return'';}/** + */'use strict';var ReactPropTypes=__webpack_require__(440);var ReactPropTypeLocations=__webpack_require__(180);var invariant=__webpack_require__(6);var warning=__webpack_require__(8);var hasReadOnlyValue={'button':true,'checkbox':true,'image':true,'hidden':true,'radio':true,'reset':true,'submit':true};function _assertSingleLink(inputProps){!(inputProps.checkedLink==null||inputProps.valueLink==null)?process.env.NODE_ENV!=='production'?invariant(false,'Cannot provide a checkedLink and a valueLink. If you want to use '+'checkedLink, you probably don\'t want to use valueLink and vice versa.'):invariant(false):undefined;}function _assertValueLink(inputProps){_assertSingleLink(inputProps);!(inputProps.value==null&&inputProps.onChange==null)?process.env.NODE_ENV!=='production'?invariant(false,'Cannot provide a valueLink and a value or onChange event. If you want '+'to use value or onChange, you probably don\'t want to use valueLink.'):invariant(false):undefined;}function _assertCheckedLink(inputProps){_assertSingleLink(inputProps);!(inputProps.checked==null&&inputProps.onChange==null)?process.env.NODE_ENV!=='production'?invariant(false,'Cannot provide a checkedLink and a checked property or onChange event. '+'If you want to use checked or onChange, you probably don\'t want to '+'use checkedLink'):invariant(false):undefined;}var propTypes={value:function value(props,propName,componentName){if(!props[propName]||hasReadOnlyValue[props.type]||props.onChange||props.readOnly||props.disabled){return null;}return new Error('You provided a `value` prop to a form field without an '+'`onChange` handler. This will render a read-only field. If '+'the field should be mutable use `defaultValue`. Otherwise, '+'set either `onChange` or `readOnly`.');},checked:function checked(props,propName,componentName){if(!props[propName]||props.onChange||props.readOnly||props.disabled){return null;}return new Error('You provided a `checked` prop to a form field without an '+'`onChange` handler. This will render a read-only field. If '+'the field should be mutable use `defaultChecked`. Otherwise, '+'set either `onChange` or `readOnly`.');},onChange:ReactPropTypes.func};var loggedTypeFailures={};function getDeclarationErrorAddendum(owner){if(owner){var name=owner.getName();if(name){return' Check the render method of `'+name+'`.';}}return'';}/** * Provide a linked `value` attribute for controlled forms. You should not use * this outside of the ReactDOM controlled form components. */var LinkedValueUtils={checkPropTypes:function checkPropTypes(tagName,props,owner){for(var propName in propTypes){if(propTypes.hasOwnProperty(propName)){var error=propTypes[propName](props,propName,tagName,ReactPropTypeLocations.prop);}if(error instanceof Error&&!(error.message in loggedTypeFailures)){// Only monitor this failure once because there tends to be a lot of the @@ -6721,7 +4723,7 @@ loggedTypeFailures[error.message]=true;var addendum=getDeclarationErrorAddendum( /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 244 */ +/* 250 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -6734,7 +4736,7 @@ loggedTypeFailures[error.message]=true;var addendum=getDeclarationErrorAddendum( * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactComponentBrowserEnvironment - */'use strict';var ReactDOMIDOperations=__webpack_require__(246);var ReactMount=__webpack_require__(24);/** + */'use strict';var ReactDOMIDOperations=__webpack_require__(252);var ReactMount=__webpack_require__(25);/** * Abstracts away all functionality of the reconciler that requires knowledge of * the browser context. TODO: These callers should be refactored to avoid the * need for this injection. @@ -6747,7 +4749,7 @@ loggedTypeFailures[error.message]=true;var addendum=getDeclarationErrorAddendum( */unmountIDFromEnvironment:function unmountIDFromEnvironment(rootNodeID){ReactMount.purgeID(rootNodeID);}};module.exports=ReactComponentBrowserEnvironment; /***/ }, -/* 245 */ +/* 251 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -6774,7 +4776,7 @@ loggedTypeFailures[error.message]=true;var addendum=getDeclarationErrorAddendum( /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 246 */ +/* 252 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -6788,7 +4790,7 @@ loggedTypeFailures[error.message]=true;var addendum=getDeclarationErrorAddendum( * * @providesModule ReactDOMIDOperations * @typechecks static-only - */'use strict';var DOMChildrenOperations=__webpack_require__(411);var DOMPropertyOperations=__webpack_require__(242);var ReactMount=__webpack_require__(24);var ReactPerf=__webpack_require__(37);var invariant=__webpack_require__(6);/** + */'use strict';var DOMChildrenOperations=__webpack_require__(420);var DOMPropertyOperations=__webpack_require__(248);var ReactMount=__webpack_require__(25);var ReactPerf=__webpack_require__(37);var invariant=__webpack_require__(6);/** * Errors for properties that should not be updated with `updatePropertyByID()`. * * @type {object} @@ -6823,7 +4825,7 @@ if(value!=null){DOMPropertyOperations.setValueForProperty(node,name,value);}else /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 247 */ +/* 253 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -6836,7 +4838,7 @@ if(value!=null){DOMPropertyOperations.setValueForProperty(node,name,value);}else * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactUpdateQueue - */'use strict';var ReactCurrentOwner=__webpack_require__(52);var ReactElement=__webpack_require__(34);var ReactInstanceMap=__webpack_require__(120);var ReactUpdates=__webpack_require__(39);var assign=__webpack_require__(7);var invariant=__webpack_require__(6);var warning=__webpack_require__(8);function enqueueUpdate(internalInstance){ReactUpdates.enqueueUpdate(internalInstance);}function getInternalInstanceReadyForUpdate(publicInstance,callerName){var internalInstance=ReactInstanceMap.get(publicInstance);if(!internalInstance){if(process.env.NODE_ENV!=='production'){// Only warn when we have a callerName. Otherwise we should be silent. + */'use strict';var ReactCurrentOwner=__webpack_require__(51);var ReactElement=__webpack_require__(34);var ReactInstanceMap=__webpack_require__(122);var ReactUpdates=__webpack_require__(39);var assign=__webpack_require__(7);var invariant=__webpack_require__(6);var warning=__webpack_require__(8);function enqueueUpdate(internalInstance){ReactUpdates.enqueueUpdate(internalInstance);}function getInternalInstanceReadyForUpdate(publicInstance,callerName){var internalInstance=ReactInstanceMap.get(publicInstance);if(!internalInstance){if(process.env.NODE_ENV!=='production'){// Only warn when we have a callerName. Otherwise we should be silent. // We're probably calling from enqueueCallback. We don't want to warn // there because we already warned for the corresponding lifecycle method. process.env.NODE_ENV!=='production'?warning(!callerName,'%s(...): Can only update a mounted or mounting component. '+'This usually means you called %s() on an unmounted component. '+'This is a no-op. Please check the code for the %s component.',callerName,callerName,publicInstance.constructor.displayName):undefined;}return null;}if(process.env.NODE_ENV!=='production'){process.env.NODE_ENV!=='production'?warning(ReactCurrentOwner.current==null,'%s(...): Cannot update during an existing state transition '+'(such as within `render`). Render methods should be a pure function '+'of props and state.',callerName):undefined;}return internalInstance;}/** @@ -6918,7 +4920,7 @@ var wrapElement=topLevelWrapper._pendingElement||topLevelWrapper._currentElement /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 248 */ +/* 254 */ /***/ function(module, exports) { "use strict"; @@ -6934,7 +4936,7 @@ var wrapElement=topLevelWrapper._pendingElement||topLevelWrapper._currentElement */'use strict';module.exports='0.14.8'; /***/ }, -/* 249 */ +/* 255 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -6948,7 +4950,7 @@ var wrapElement=topLevelWrapper._pendingElement||topLevelWrapper._currentElement * * @providesModule findDOMNode * @typechecks static-only - */'use strict';var ReactCurrentOwner=__webpack_require__(52);var ReactInstanceMap=__webpack_require__(120);var ReactMount=__webpack_require__(24);var invariant=__webpack_require__(6);var warning=__webpack_require__(8);/** + */'use strict';var ReactCurrentOwner=__webpack_require__(51);var ReactInstanceMap=__webpack_require__(122);var ReactMount=__webpack_require__(25);var invariant=__webpack_require__(6);var warning=__webpack_require__(8);/** * Returns the DOM node rendered by this element. * * @param {ReactComponent|DOMElement} componentOrElement @@ -6957,7 +4959,7 @@ var wrapElement=topLevelWrapper._pendingElement||topLevelWrapper._currentElement /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 250 */ +/* 256 */ /***/ function(module, exports) { "use strict"; @@ -6987,7 +4989,7 @@ charCode=keyCode;}// Some non-printable keys are reported in `charCode`/`keyCode if(charCode>=32||charCode===13){return charCode;}return 0;}module.exports=getEventCharCode; /***/ }, -/* 251 */ +/* 257 */ /***/ function(module, exports) { "use strict"; @@ -7010,7 +5012,7 @@ if(charCode>=32||charCode===13){return charCode;}return 0;}module.exports=getEve function modifierStateGetter(keyArg){var syntheticEvent=this;var nativeEvent=syntheticEvent.nativeEvent;if(nativeEvent.getModifierState){return nativeEvent.getModifierState(keyArg);}var keyProp=modifierKeyToProp[keyArg];return keyProp?!!nativeEvent[keyProp]:false;}function getEventModifierState(nativeEvent){return modifierStateGetter;}module.exports=getEventModifierState; /***/ }, -/* 252 */ +/* 258 */ /***/ function(module, exports) { "use strict"; @@ -7035,7 +5037,7 @@ function modifierStateGetter(keyArg){var syntheticEvent=this;var nativeEvent=syn return target.nodeType===3?target.parentNode:target;}module.exports=getEventTarget; /***/ }, -/* 253 */ +/* 259 */ /***/ function(module, exports) { "use strict"; @@ -7066,7 +5068,7 @@ return target.nodeType===3?target.parentNode:target;}module.exports=getEventTarg */function getIteratorFn(maybeIterable){var iteratorFn=maybeIterable&&(ITERATOR_SYMBOL&&maybeIterable[ITERATOR_SYMBOL]||maybeIterable[FAUX_ITERATOR_SYMBOL]);if(typeof iteratorFn==='function'){return iteratorFn;}}module.exports=getIteratorFn; /***/ }, -/* 254 */ +/* 260 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -7080,7 +5082,7 @@ return target.nodeType===3?target.parentNode:target;}module.exports=getEventTarg * * @providesModule instantiateReactComponent * @typechecks static-only - */'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};var ReactCompositeComponent=__webpack_require__(947);var ReactEmptyComponent=__webpack_require__(423);var ReactNativeComponent=__webpack_require__(429);var assign=__webpack_require__(7);var invariant=__webpack_require__(6);var warning=__webpack_require__(8);// To avoid a cyclic dependency, we create the final class in this module + */'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};var ReactCompositeComponent=__webpack_require__(953);var ReactEmptyComponent=__webpack_require__(432);var ReactNativeComponent=__webpack_require__(438);var assign=__webpack_require__(7);var invariant=__webpack_require__(6);var warning=__webpack_require__(8);// To avoid a cyclic dependency, we create the final class in this module var ReactCompositeComponentWrapper=function ReactCompositeComponentWrapper(){};assign(ReactCompositeComponentWrapper.prototype,ReactCompositeComponent.Mixin,{_instantiateReactComponent:instantiateReactComponent});function getDeclarationErrorAddendum(owner){if(owner){var name=owner.getName();if(name){return' Check the render method of `'+name+'`.';}}return'';}/** * Check if the type reference is a known internal type. I.e. not a user * provided composite type. @@ -7107,7 +5109,7 @@ if(process.env.NODE_ENV!=='production'){if(Object.preventExtensions){Object.prev /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 255 */ +/* 261 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -7139,7 +5141,7 @@ document.implementation.hasFeature('','')!==true;}/** isSupported=document.implementation.hasFeature('Events.wheel','3.0');}return isSupported;}module.exports=isEventSupported; /***/ }, -/* 256 */ +/* 262 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -7152,7 +5154,7 @@ isSupported=document.implementation.hasFeature('Events.wheel','3.0');}return isS * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule setTextContent - */'use strict';var ExecutionEnvironment=__webpack_require__(18);var escapeTextContentForBrowser=__webpack_require__(181);var setInnerHTML=__webpack_require__(182);/** + */'use strict';var ExecutionEnvironment=__webpack_require__(18);var escapeTextContentForBrowser=__webpack_require__(184);var setInnerHTML=__webpack_require__(185);/** * Set the textContent property of a node, ensuring that whitespace is preserved * even in IE8. innerText is a poor substitute for textContent and, among many * issues, inserts
instead of the literal newline chars. innerHTML behaves @@ -7164,7 +5166,7 @@ isSupported=document.implementation.hasFeature('Events.wheel','3.0');}return isS */var setTextContent=function setTextContent(node,text){node.textContent=text;};if(ExecutionEnvironment.canUseDOM){if(!('textContent'in document.documentElement)){setTextContent=function setTextContent(node,text){setInnerHTML(node,escapeTextContentForBrowser(text));};}}module.exports=setTextContent; /***/ }, -/* 257 */ +/* 263 */ /***/ function(module, exports) { "use strict"; @@ -7191,7 +5193,7 @@ isSupported=document.implementation.hasFeature('Events.wheel','3.0');}return isS */var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};function shouldUpdateReactComponent(prevElement,nextElement){var prevEmpty=prevElement===null||prevElement===false;var nextEmpty=nextElement===null||nextElement===false;if(prevEmpty||nextEmpty){return prevEmpty===nextEmpty;}var prevType=typeof prevElement==='undefined'?'undefined':_typeof(prevElement);var nextType=typeof nextElement==='undefined'?'undefined':_typeof(nextElement);if(prevType==='string'||prevType==='number'){return nextType==='string'||nextType==='number';}else{return nextType==='object'&&prevElement.type===nextElement.type&&prevElement.key===nextElement.key;}return false;}module.exports=shouldUpdateReactComponent; /***/ }, -/* 258 */ +/* 264 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -7204,7 +5206,7 @@ isSupported=document.implementation.hasFeature('Events.wheel','3.0');}return isS * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule traverseAllChildren - */'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};var ReactCurrentOwner=__webpack_require__(52);var ReactElement=__webpack_require__(34);var ReactInstanceHandles=__webpack_require__(92);var getIteratorFn=__webpack_require__(253);var invariant=__webpack_require__(6);var warning=__webpack_require__(8);var SEPARATOR=ReactInstanceHandles.SEPARATOR;var SUBSEPARATOR=':';/** + */'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};var ReactCurrentOwner=__webpack_require__(51);var ReactElement=__webpack_require__(34);var ReactInstanceHandles=__webpack_require__(96);var getIteratorFn=__webpack_require__(259);var invariant=__webpack_require__(6);var warning=__webpack_require__(8);var SEPARATOR=ReactInstanceHandles.SEPARATOR;var SUBSEPARATOR=':';/** * TODO: Test that a single child and an array with one item have the same key * pattern. */var userProvidedKeyEscaperLookup={'=':'=0','.':'=1',':':'=2'};var userProvidedKeyEscapeRegex=/[=.:]/g;var didWarnAboutMaps=false;function userProvidedKeyEscaper(match){return userProvidedKeyEscaperLookup[match];}/** @@ -7257,7 +5259,7 @@ while(!(step=iterator.next()).done){var entry=step.value;if(entry){child=entry[1 /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 259 */ +/* 265 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -7270,7 +5272,7 @@ while(!(step=iterator.next()).done){var entry=step.value;if(entry){child=entry[1 * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule validateDOMNesting - */'use strict';var assign=__webpack_require__(7);var emptyFunction=__webpack_require__(41);var warning=__webpack_require__(8);var validateDOMNesting=emptyFunction;if(process.env.NODE_ENV!=='production'){// This validation code was written based on the HTML5 parsing spec: + */'use strict';var assign=__webpack_require__(7);var emptyFunction=__webpack_require__(40);var warning=__webpack_require__(8);var validateDOMNesting=emptyFunction;if(process.env.NODE_ENV!=='production'){// This validation code was written based on the HTML5 parsing spec: // https://html.spec.whatwg.org/multipage/syntax.html#has-an-element-in-scope // // Note: this does not catch all invalid nesting, nor does it try to (as it's @@ -7327,7 +5329,7 @@ validateDOMNesting.isTagValidInContext=function(tag,ancestorInfo){ancestorInfo=a /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 260 */ +/* 266 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -7337,7 +5339,7 @@ validateDOMNesting.isTagValidInContext=function(tag,ancestorInfo){ancestorInfo=a * @license MIT * @module remark:parse:util:normalize * @fileoverview Normalize an identifier. - */'use strict';/* Dependencies. */var collapseWhiteSpace=__webpack_require__(594);/* Expose. */module.exports=normalize;/** + */'use strict';/* Dependencies. */var collapseWhiteSpace=__webpack_require__(605);/* Expose. */module.exports=normalize;/** * Normalize an identifier. Collapses multiple white space * characters into a single space, and removes casing. * @@ -7349,7 +5351,7 @@ validateDOMNesting.isTagValidInContext=function(tag,ancestorInfo){ancestorInfo=a */function normalize(value){return collapseWhiteSpace(value).toLowerCase();} /***/ }, -/* 261 */ +/* 267 */ /***/ function(module, exports) { "use strict"; @@ -7382,89 +5384,82 @@ validateDOMNesting.isTagValidInContext=function(tag,ancestorInfo){ancestorInfo=a if(num===1)return str;if(num===2)return str+str;var max=str.length*num;if(cache!==str||typeof cache==='undefined'){cache=str;res='';}else if(res.length>=max){return res.substr(0,max);}while(max>res.length&&num>1){if(num&1){res+=str;}num>>=1;str+=str;}res+=str;res=res.substr(0,max);return res;} /***/ }, -/* 262 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(setImmediate, process, Buffer) {'use strict';var jsonSafeStringify=__webpack_require__(691),crypto=__webpack_require__(11);var defer=typeof setImmediate==='undefined'?process.nextTick:setImmediate;function paramsHaveRequestBody(params){return params.body||params.requestBodyStream||params.json&&typeof params.json!=='boolean'||params.multipart;}function safeStringify(obj,replacer){var ret;try{ret=JSON.stringify(obj,replacer);}catch(e){ret=jsonSafeStringify(obj,replacer);}return ret;}function md5(str){return crypto.createHash('md5').update(str).digest('hex');}function isReadStream(rs){return rs.readable&&rs.path&&rs.mode;}function toBase64(str){return new Buffer(str||'','utf8').toString('base64');}function copy(obj){var o={};Object.keys(obj).forEach(function(i){o[i]=obj[i];});return o;}function version(){var numbers=process.version.replace('v','').split('.');return{major:parseInt(numbers[0],10),minor:parseInt(numbers[1],10),patch:parseInt(numbers[2],10)};}exports.paramsHaveRequestBody=paramsHaveRequestBody;exports.safeStringify=safeStringify;exports.md5=md5;exports.isReadStream=isReadStream;exports.toBase64=toBase64;exports.copy=copy;exports.version=version;exports.defer=defer; -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(80).setImmediate, __webpack_require__(3), __webpack_require__(4).Buffer)) - -/***/ }, -/* 263 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.default=undefined;var _Radio=__webpack_require__(1056);var _Radio2=_interopRequireDefault(_Radio);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}exports.default=_Radio2.default; - -/***/ }, -/* 264 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -'use strict';Object.defineProperty(exports,"__esModule",{value:true});var _extends=Object.assign||function(target){for(var i=1;i*/var util=__webpack_require__(28);util.inherits=__webpack_require__(5);/**/util.inherits(Transform,Duplex);function TransformState(stream){this.afterTransform=function(er,data){return afterTransform(stream,er,data);};this.needTransform=false;this.transforming=false;this.writecb=null;this.writechunk=null;this.writeencoding=null;}function afterTransform(stream,er,data){var ts=stream._transformState;ts.transforming=false;var cb=ts.writecb;if(!cb)return stream.emit('error',new Error('no writecb in Transform class'));ts.writechunk=null;ts.writecb=null;if(data!==null&&data!==undefined)stream.push(data);cb(er);var rs=stream._readableState;rs.reading=false;if(rs.needReadable||rs.length*/var processNextTick=__webpack_require__(50);/**//**/var asyncWrite=!process.browser&&['v0.10','v0.9.'].indexOf(process.version.slice(0,5))>-1?setImmediate:processNextTick;/**//**/var Duplex;/**/Writable.WritableState=WritableState;/**/var util=__webpack_require__(28);util.inherits=__webpack_require__(5);/**//**/var internalUtil={deprecate:__webpack_require__(295)};/**//**/var Stream;(function(){try{Stream=__webpack_require__(16);}catch(_){}finally{if(!Stream)Stream=__webpack_require__(35).EventEmitter;}})();/**/var Buffer=__webpack_require__(4).Buffer;/**/var bufferShim=__webpack_require__(44);/**/util.inherits(Writable,Stream);function nop(){}function WriteReq(chunk,encoding,cb){this.chunk=chunk;this.encoding=encoding;this.callback=cb;this.next=null;}function WritableState(options,stream){Duplex=Duplex||__webpack_require__(79);options=options||{};// object stream flag to indicate whether or not this stream -// contains buffers or objects. -this.objectMode=!!options.objectMode;if(stream instanceof Duplex)this.objectMode=this.objectMode||!!options.writableObjectMode;// the point at which write() starts returning false -// Note: 0 is a valid value, means that we always return false if -// the entire buffer is not flushed immediately on write() -var hwm=options.highWaterMark;var defaultHwm=this.objectMode?16:16*1024;this.highWaterMark=hwm||hwm===0?hwm:defaultHwm;// cast to ints. -this.highWaterMark=~~this.highWaterMark;// drain event flag. -this.needDrain=false;// at the start of calling end() -this.ending=false;// when end() has been called, and returned -this.ended=false;// when 'finish' is emitted -this.finished=false;// should we decode strings into buffers before passing to _write? -// this is here so that some node-core streams can optimize string -// handling at a lower level. -var noDecode=options.decodeStrings===false;this.decodeStrings=!noDecode;// Crypto is kind of old and crusty. Historically, its default string -// encoding is 'binary' so we have to make this configurable. -// Everything else in the universe uses 'utf8', though. -this.defaultEncoding=options.defaultEncoding||'utf8';// not an actual buffer we keep track of, but a measurement -// of how much we're waiting to get pushed to some underlying -// socket or file. -this.length=0;// a flag to see when we're in the middle of a write. -this.writing=false;// when true all writes will be buffered until .uncork() call -this.corked=0;// a flag to be able to tell if the onwrite cb is called immediately, -// or on a later tick. We set this to true at first, because any -// actions that shouldn't happen until "later" should generally also -// not happen before the first write call. -this.sync=true;// a flag to know if we're processing previously buffered items, which -// may call the _write() callback in the same tick, so that we don't -// end up in an overlapped onwrite situation. -this.bufferProcessing=false;// the callback that's passed to _write(chunk,cb) -this.onwrite=function(er){onwrite(stream,er);};// the callback that the user supplies to write(chunk,encoding,cb) -this.writecb=null;// the amount that is being written when _write is called. -this.writelen=0;this.bufferedRequest=null;this.lastBufferedRequest=null;// number of pending user-supplied write callbacks -// this must be 0 before 'finish' can be emitted -this.pendingcb=0;// emit prefinish if the only thing we're waiting for is _write cbs -// This is relevant for synchronous Transform streams -this.prefinished=false;// True if the error was already emitted and should not be thrown again -this.errorEmitted=false;// count buffered requests -this.bufferedRequestCount=0;// allocate the first CorkedRequest, there is always -// one allocated and free to use, and we maintain at most two -this.corkedRequestsFree=new CorkedRequest(this);}WritableState.prototype.getBuffer=function getBuffer(){var current=this.bufferedRequest;var out=[];while(current){out.push(current);current=current.next;}return out;};(function(){try{Object.defineProperty(WritableState.prototype,'buffer',{get:internalUtil.deprecate(function(){return this.getBuffer();},'_writableState.buffer is deprecated. Use _writableState.getBuffer '+'instead.')});}catch(_){}})();// Test _writableState for inheritance to account for Duplex streams, -// whose prototype chain only points to Readable. -var realHasInstance;if(typeof Symbol==='function'&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==='function'){realHasInstance=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function value(object){if(realHasInstance.call(this,object))return true;return object&&object._writableState instanceof WritableState;}});}else{realHasInstance=function realHasInstance(object){return object instanceof this;};}function Writable(options){Duplex=Duplex||__webpack_require__(79);// Writable ctor is applied to Duplexes, too. -// `realHasInstance` is necessary because using plain `instanceof` -// would return false, as no `_writableState` property is attached. -// Trying to use the custom `instanceof` for Writable here will also break the -// Node.js LazyTransform implementation, which has a non-trivial getter for -// `_writableState` that would lead to infinite recursion. -if(!realHasInstance.call(Writable,this)&&!(this instanceof Duplex)){return new Writable(options);}this._writableState=new WritableState(options,this);// legacy. -this.writable=true;if(options){if(typeof options.write==='function')this._write=options.write;if(typeof options.writev==='function')this._writev=options.writev;}Stream.call(this);}// Otherwise people can pipe Writable streams, which is just wrong. -Writable.prototype.pipe=function(){this.emit('error',new Error('Cannot pipe, not readable'));};function writeAfterEnd(stream,cb){var er=new Error('write after end');// TODO: defer error events consistently everywhere, not just the cb -stream.emit('error',er);processNextTick(cb,er);}// If we get something that is not a buffer, string, null, or undefined, -// and we're not in objectMode, then that's an error. -// Otherwise stream chunks are all considered to be of length=1, and the -// watermarks determine how many objects to keep in the buffer, rather than -// how many bytes or characters. -function validChunk(stream,state,chunk,cb){var valid=true;var er=false;// Always throw error if a null is written -// if we are not in object mode then throw -// if it is not a buffer, string, or undefined. -if(chunk===null){er=new TypeError('May not write null values to stream');}else if(!Buffer.isBuffer(chunk)&&typeof chunk!=='string'&&chunk!==undefined&&!state.objectMode){er=new TypeError('Invalid non-string/buffer chunk');}if(er){stream.emit('error',er);processNextTick(cb,er);valid=false;}return valid;}Writable.prototype.write=function(chunk,encoding,cb){var state=this._writableState;var ret=false;if(typeof encoding==='function'){cb=encoding;encoding=null;}if(Buffer.isBuffer(chunk))encoding='buffer';else if(!encoding)encoding=state.defaultEncoding;if(typeof cb!=='function')cb=nop;if(state.ended)writeAfterEnd(this,cb);else if(validChunk(this,state,chunk,cb)){state.pendingcb++;ret=writeOrBuffer(this,state,chunk,encoding,cb);}return ret;};Writable.prototype.cork=function(){var state=this._writableState;state.corked++;};Writable.prototype.uncork=function(){var state=this._writableState;if(state.corked){state.corked--;if(!state.writing&&!state.corked&&!state.finished&&!state.bufferProcessing&&state.bufferedRequest)clearBuffer(this,state);}};Writable.prototype.setDefaultEncoding=function setDefaultEncoding(encoding){// node::ParseEncoding() requires lower case. -if(typeof encoding==='string')encoding=encoding.toLowerCase();if(!(['hex','utf8','utf-8','ascii','binary','base64','ucs2','ucs-2','utf16le','utf-16le','raw'].indexOf((encoding+'').toLowerCase())>-1))throw new TypeError('Unknown encoding: '+encoding);this._writableState.defaultEncoding=encoding;return this;};function decodeChunk(state,chunk,encoding){if(!state.objectMode&&state.decodeStrings!==false&&typeof chunk==='string'){chunk=bufferShim.from(chunk,encoding);}return chunk;}// if we're already writing something, then just put this -// in the queue, and wait our turn. Otherwise, call _write -// If we return false, then we need a drain event, so set that flag. -function writeOrBuffer(stream,state,chunk,encoding,cb){chunk=decodeChunk(state,chunk,encoding);if(Buffer.isBuffer(chunk))encoding='buffer';var len=state.objectMode?1:chunk.length;state.length+=len;var ret=state.length*/asyncWrite(afterWrite,stream,state,finished,cb);/**/}else{afterWrite(stream,state,finished,cb);}}}function afterWrite(stream,state,finished,cb){if(!finished)onwriteDrain(stream,state);state.pendingcb--;cb();finishMaybe(stream,state);}// Must force callback to be called on nextTick, so that we don't -// emit 'drain' before the write() consumer gets the 'false' return -// value, and has a chance to attach a 'drain' listener. -function onwriteDrain(stream,state){if(state.length===0&&state.needDrain){state.needDrain=false;stream.emit('drain');}}// if there's something in the buffer waiting, then process it -function clearBuffer(stream,state){state.bufferProcessing=true;var entry=state.bufferedRequest;if(stream._writev&&entry&&entry.next){// Fast case, write everything using _writev() -var l=state.bufferedRequestCount;var buffer=new Array(l);var holder=state.corkedRequestsFree;holder.entry=entry;var count=0;while(entry){buffer[count]=entry;entry=entry.next;count+=1;}doWrite(stream,state,true,state.length,buffer,'',holder.finish);// doWrite is almost always async, defer these to save a bit of time -// as the hot path ends with doWrite -state.pendingcb++;state.lastBufferedRequest=null;if(holder.next){state.corkedRequestsFree=holder.next;holder.next=null;}else{state.corkedRequestsFree=new CorkedRequest(state);}}else{// Slow case, write chunks one-by-one -while(entry){var chunk=entry.chunk;var encoding=entry.encoding;var cb=entry.callback;var len=state.objectMode?1:chunk.length;doWrite(stream,state,false,len,chunk,encoding,cb);entry=entry.next;// if we didn't call the onwrite immediately, then -// it means that we need to wait until it does. -// also, that means that the chunk and cb are currently -// being processed, so move the buffer counter past them. -if(state.writing){break;}}if(entry===null)state.lastBufferedRequest=null;}state.bufferedRequestCount=0;state.bufferedRequest=entry;state.bufferProcessing=false;}Writable.prototype._write=function(chunk,encoding,cb){cb(new Error('_write() is not implemented'));};Writable.prototype._writev=null;Writable.prototype.end=function(chunk,encoding,cb){var state=this._writableState;if(typeof chunk==='function'){cb=chunk;chunk=null;encoding=null;}else if(typeof encoding==='function'){cb=encoding;encoding=null;}if(chunk!==null&&chunk!==undefined)this.write(chunk,encoding);// .end() fully uncorks -if(state.corked){state.corked=1;this.uncork();}// ignore unnecessary end() calls. -if(!state.ending&&!state.finished)endWritable(this,state,cb);};function needFinish(state){return state.ending&&state.length===0&&state.bufferedRequest===null&&!state.finished&&!state.writing;}function prefinish(stream,state){if(!state.prefinished){state.prefinished=true;stream.emit('prefinish');}}function finishMaybe(stream,state){var need=needFinish(state);if(need){if(state.pendingcb===0){prefinish(stream,state);state.finished=true;stream.emit('finish');}else{prefinish(stream,state);}}return need;}function endWritable(stream,state,cb){state.ending=true;finishMaybe(stream,state);if(cb){if(state.finished)processNextTick(cb);else stream.once('finish',cb);}state.ended=true;stream.writable=false;}// It seems a linked list but it is not -// there will be only 2 of these for each stream -function CorkedRequest(state){var _this=this;this.next=null;this.entry=null;this.finish=function(err){var entry=_this.entry;_this.entry=null;while(entry){var cb=entry.callback;state.pendingcb--;cb(err);entry=entry.next;}if(state.corkedRequestsFree){state.corkedRequestsFree.next=_this;}else{state.corkedRequestsFree=_this;}};} -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3), __webpack_require__(80).setImmediate)) - -/***/ }, -/* 293 */ +/* 295 */, +/* 296 */, +/* 297 */, +/* 298 */, +/* 299 */ /***/ function(module, exports) { "use strict"; 'use strict';module.exports=trimTrailingLines;var line='\n';/* Remove final newline characters from `value`. */function trimTrailingLines(value){var val=String(value);var index=val.length;while(val.charAt(--index)===line){/* empty */}return val.slice(0,index+1);} /***/ }, -/* 294 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -'use strict';(function(nacl){'use strict';// Ported in 2014 by Dmitry Chestnykh and Devi Mandiri. -// Public domain. -// -// Implementation derived from TweetNaCl version 20140427. -// See for details: http://tweetnacl.cr.yp.to/ -var gf=function gf(init){var i,r=new Float64Array(16);if(init)for(i=0;i>24&0xff;x[i+1]=h>>16&0xff;x[i+2]=h>>8&0xff;x[i+3]=h&0xff;x[i+4]=l>>24&0xff;x[i+5]=l>>16&0xff;x[i+6]=l>>8&0xff;x[i+7]=l&0xff;}function vn(x,xi,y,yi,n){var i,d=0;for(i=0;i>>8)-1;}function crypto_verify_16(x,xi,y,yi){return vn(x,xi,y,yi,16);}function crypto_verify_32(x,xi,y,yi){return vn(x,xi,y,yi,32);}function core_salsa20(o,p,k,c){var j0=c[0]&0xff|(c[1]&0xff)<<8|(c[2]&0xff)<<16|(c[3]&0xff)<<24,j1=k[0]&0xff|(k[1]&0xff)<<8|(k[2]&0xff)<<16|(k[3]&0xff)<<24,j2=k[4]&0xff|(k[5]&0xff)<<8|(k[6]&0xff)<<16|(k[7]&0xff)<<24,j3=k[8]&0xff|(k[9]&0xff)<<8|(k[10]&0xff)<<16|(k[11]&0xff)<<24,j4=k[12]&0xff|(k[13]&0xff)<<8|(k[14]&0xff)<<16|(k[15]&0xff)<<24,j5=c[4]&0xff|(c[5]&0xff)<<8|(c[6]&0xff)<<16|(c[7]&0xff)<<24,j6=p[0]&0xff|(p[1]&0xff)<<8|(p[2]&0xff)<<16|(p[3]&0xff)<<24,j7=p[4]&0xff|(p[5]&0xff)<<8|(p[6]&0xff)<<16|(p[7]&0xff)<<24,j8=p[8]&0xff|(p[9]&0xff)<<8|(p[10]&0xff)<<16|(p[11]&0xff)<<24,j9=p[12]&0xff|(p[13]&0xff)<<8|(p[14]&0xff)<<16|(p[15]&0xff)<<24,j10=c[8]&0xff|(c[9]&0xff)<<8|(c[10]&0xff)<<16|(c[11]&0xff)<<24,j11=k[16]&0xff|(k[17]&0xff)<<8|(k[18]&0xff)<<16|(k[19]&0xff)<<24,j12=k[20]&0xff|(k[21]&0xff)<<8|(k[22]&0xff)<<16|(k[23]&0xff)<<24,j13=k[24]&0xff|(k[25]&0xff)<<8|(k[26]&0xff)<<16|(k[27]&0xff)<<24,j14=k[28]&0xff|(k[29]&0xff)<<8|(k[30]&0xff)<<16|(k[31]&0xff)<<24,j15=c[12]&0xff|(c[13]&0xff)<<8|(c[14]&0xff)<<16|(c[15]&0xff)<<24;var x0=j0,x1=j1,x2=j2,x3=j3,x4=j4,x5=j5,x6=j6,x7=j7,x8=j8,x9=j9,x10=j10,x11=j11,x12=j12,x13=j13,x14=j14,x15=j15,u;for(var i=0;i<20;i+=2){u=x0+x12|0;x4^=u<<7|u>>>32-7;u=x4+x0|0;x8^=u<<9|u>>>32-9;u=x8+x4|0;x12^=u<<13|u>>>32-13;u=x12+x8|0;x0^=u<<18|u>>>32-18;u=x5+x1|0;x9^=u<<7|u>>>32-7;u=x9+x5|0;x13^=u<<9|u>>>32-9;u=x13+x9|0;x1^=u<<13|u>>>32-13;u=x1+x13|0;x5^=u<<18|u>>>32-18;u=x10+x6|0;x14^=u<<7|u>>>32-7;u=x14+x10|0;x2^=u<<9|u>>>32-9;u=x2+x14|0;x6^=u<<13|u>>>32-13;u=x6+x2|0;x10^=u<<18|u>>>32-18;u=x15+x11|0;x3^=u<<7|u>>>32-7;u=x3+x15|0;x7^=u<<9|u>>>32-9;u=x7+x3|0;x11^=u<<13|u>>>32-13;u=x11+x7|0;x15^=u<<18|u>>>32-18;u=x0+x3|0;x1^=u<<7|u>>>32-7;u=x1+x0|0;x2^=u<<9|u>>>32-9;u=x2+x1|0;x3^=u<<13|u>>>32-13;u=x3+x2|0;x0^=u<<18|u>>>32-18;u=x5+x4|0;x6^=u<<7|u>>>32-7;u=x6+x5|0;x7^=u<<9|u>>>32-9;u=x7+x6|0;x4^=u<<13|u>>>32-13;u=x4+x7|0;x5^=u<<18|u>>>32-18;u=x10+x9|0;x11^=u<<7|u>>>32-7;u=x11+x10|0;x8^=u<<9|u>>>32-9;u=x8+x11|0;x9^=u<<13|u>>>32-13;u=x9+x8|0;x10^=u<<18|u>>>32-18;u=x15+x14|0;x12^=u<<7|u>>>32-7;u=x12+x15|0;x13^=u<<9|u>>>32-9;u=x13+x12|0;x14^=u<<13|u>>>32-13;u=x14+x13|0;x15^=u<<18|u>>>32-18;}x0=x0+j0|0;x1=x1+j1|0;x2=x2+j2|0;x3=x3+j3|0;x4=x4+j4|0;x5=x5+j5|0;x6=x6+j6|0;x7=x7+j7|0;x8=x8+j8|0;x9=x9+j9|0;x10=x10+j10|0;x11=x11+j11|0;x12=x12+j12|0;x13=x13+j13|0;x14=x14+j14|0;x15=x15+j15|0;o[0]=x0>>>0&0xff;o[1]=x0>>>8&0xff;o[2]=x0>>>16&0xff;o[3]=x0>>>24&0xff;o[4]=x1>>>0&0xff;o[5]=x1>>>8&0xff;o[6]=x1>>>16&0xff;o[7]=x1>>>24&0xff;o[8]=x2>>>0&0xff;o[9]=x2>>>8&0xff;o[10]=x2>>>16&0xff;o[11]=x2>>>24&0xff;o[12]=x3>>>0&0xff;o[13]=x3>>>8&0xff;o[14]=x3>>>16&0xff;o[15]=x3>>>24&0xff;o[16]=x4>>>0&0xff;o[17]=x4>>>8&0xff;o[18]=x4>>>16&0xff;o[19]=x4>>>24&0xff;o[20]=x5>>>0&0xff;o[21]=x5>>>8&0xff;o[22]=x5>>>16&0xff;o[23]=x5>>>24&0xff;o[24]=x6>>>0&0xff;o[25]=x6>>>8&0xff;o[26]=x6>>>16&0xff;o[27]=x6>>>24&0xff;o[28]=x7>>>0&0xff;o[29]=x7>>>8&0xff;o[30]=x7>>>16&0xff;o[31]=x7>>>24&0xff;o[32]=x8>>>0&0xff;o[33]=x8>>>8&0xff;o[34]=x8>>>16&0xff;o[35]=x8>>>24&0xff;o[36]=x9>>>0&0xff;o[37]=x9>>>8&0xff;o[38]=x9>>>16&0xff;o[39]=x9>>>24&0xff;o[40]=x10>>>0&0xff;o[41]=x10>>>8&0xff;o[42]=x10>>>16&0xff;o[43]=x10>>>24&0xff;o[44]=x11>>>0&0xff;o[45]=x11>>>8&0xff;o[46]=x11>>>16&0xff;o[47]=x11>>>24&0xff;o[48]=x12>>>0&0xff;o[49]=x12>>>8&0xff;o[50]=x12>>>16&0xff;o[51]=x12>>>24&0xff;o[52]=x13>>>0&0xff;o[53]=x13>>>8&0xff;o[54]=x13>>>16&0xff;o[55]=x13>>>24&0xff;o[56]=x14>>>0&0xff;o[57]=x14>>>8&0xff;o[58]=x14>>>16&0xff;o[59]=x14>>>24&0xff;o[60]=x15>>>0&0xff;o[61]=x15>>>8&0xff;o[62]=x15>>>16&0xff;o[63]=x15>>>24&0xff;}function core_hsalsa20(o,p,k,c){var j0=c[0]&0xff|(c[1]&0xff)<<8|(c[2]&0xff)<<16|(c[3]&0xff)<<24,j1=k[0]&0xff|(k[1]&0xff)<<8|(k[2]&0xff)<<16|(k[3]&0xff)<<24,j2=k[4]&0xff|(k[5]&0xff)<<8|(k[6]&0xff)<<16|(k[7]&0xff)<<24,j3=k[8]&0xff|(k[9]&0xff)<<8|(k[10]&0xff)<<16|(k[11]&0xff)<<24,j4=k[12]&0xff|(k[13]&0xff)<<8|(k[14]&0xff)<<16|(k[15]&0xff)<<24,j5=c[4]&0xff|(c[5]&0xff)<<8|(c[6]&0xff)<<16|(c[7]&0xff)<<24,j6=p[0]&0xff|(p[1]&0xff)<<8|(p[2]&0xff)<<16|(p[3]&0xff)<<24,j7=p[4]&0xff|(p[5]&0xff)<<8|(p[6]&0xff)<<16|(p[7]&0xff)<<24,j8=p[8]&0xff|(p[9]&0xff)<<8|(p[10]&0xff)<<16|(p[11]&0xff)<<24,j9=p[12]&0xff|(p[13]&0xff)<<8|(p[14]&0xff)<<16|(p[15]&0xff)<<24,j10=c[8]&0xff|(c[9]&0xff)<<8|(c[10]&0xff)<<16|(c[11]&0xff)<<24,j11=k[16]&0xff|(k[17]&0xff)<<8|(k[18]&0xff)<<16|(k[19]&0xff)<<24,j12=k[20]&0xff|(k[21]&0xff)<<8|(k[22]&0xff)<<16|(k[23]&0xff)<<24,j13=k[24]&0xff|(k[25]&0xff)<<8|(k[26]&0xff)<<16|(k[27]&0xff)<<24,j14=k[28]&0xff|(k[29]&0xff)<<8|(k[30]&0xff)<<16|(k[31]&0xff)<<24,j15=c[12]&0xff|(c[13]&0xff)<<8|(c[14]&0xff)<<16|(c[15]&0xff)<<24;var x0=j0,x1=j1,x2=j2,x3=j3,x4=j4,x5=j5,x6=j6,x7=j7,x8=j8,x9=j9,x10=j10,x11=j11,x12=j12,x13=j13,x14=j14,x15=j15,u;for(var i=0;i<20;i+=2){u=x0+x12|0;x4^=u<<7|u>>>32-7;u=x4+x0|0;x8^=u<<9|u>>>32-9;u=x8+x4|0;x12^=u<<13|u>>>32-13;u=x12+x8|0;x0^=u<<18|u>>>32-18;u=x5+x1|0;x9^=u<<7|u>>>32-7;u=x9+x5|0;x13^=u<<9|u>>>32-9;u=x13+x9|0;x1^=u<<13|u>>>32-13;u=x1+x13|0;x5^=u<<18|u>>>32-18;u=x10+x6|0;x14^=u<<7|u>>>32-7;u=x14+x10|0;x2^=u<<9|u>>>32-9;u=x2+x14|0;x6^=u<<13|u>>>32-13;u=x6+x2|0;x10^=u<<18|u>>>32-18;u=x15+x11|0;x3^=u<<7|u>>>32-7;u=x3+x15|0;x7^=u<<9|u>>>32-9;u=x7+x3|0;x11^=u<<13|u>>>32-13;u=x11+x7|0;x15^=u<<18|u>>>32-18;u=x0+x3|0;x1^=u<<7|u>>>32-7;u=x1+x0|0;x2^=u<<9|u>>>32-9;u=x2+x1|0;x3^=u<<13|u>>>32-13;u=x3+x2|0;x0^=u<<18|u>>>32-18;u=x5+x4|0;x6^=u<<7|u>>>32-7;u=x6+x5|0;x7^=u<<9|u>>>32-9;u=x7+x6|0;x4^=u<<13|u>>>32-13;u=x4+x7|0;x5^=u<<18|u>>>32-18;u=x10+x9|0;x11^=u<<7|u>>>32-7;u=x11+x10|0;x8^=u<<9|u>>>32-9;u=x8+x11|0;x9^=u<<13|u>>>32-13;u=x9+x8|0;x10^=u<<18|u>>>32-18;u=x15+x14|0;x12^=u<<7|u>>>32-7;u=x12+x15|0;x13^=u<<9|u>>>32-9;u=x13+x12|0;x14^=u<<13|u>>>32-13;u=x14+x13|0;x15^=u<<18|u>>>32-18;}o[0]=x0>>>0&0xff;o[1]=x0>>>8&0xff;o[2]=x0>>>16&0xff;o[3]=x0>>>24&0xff;o[4]=x5>>>0&0xff;o[5]=x5>>>8&0xff;o[6]=x5>>>16&0xff;o[7]=x5>>>24&0xff;o[8]=x10>>>0&0xff;o[9]=x10>>>8&0xff;o[10]=x10>>>16&0xff;o[11]=x10>>>24&0xff;o[12]=x15>>>0&0xff;o[13]=x15>>>8&0xff;o[14]=x15>>>16&0xff;o[15]=x15>>>24&0xff;o[16]=x6>>>0&0xff;o[17]=x6>>>8&0xff;o[18]=x6>>>16&0xff;o[19]=x6>>>24&0xff;o[20]=x7>>>0&0xff;o[21]=x7>>>8&0xff;o[22]=x7>>>16&0xff;o[23]=x7>>>24&0xff;o[24]=x8>>>0&0xff;o[25]=x8>>>8&0xff;o[26]=x8>>>16&0xff;o[27]=x8>>>24&0xff;o[28]=x9>>>0&0xff;o[29]=x9>>>8&0xff;o[30]=x9>>>16&0xff;o[31]=x9>>>24&0xff;}function crypto_core_salsa20(out,inp,k,c){core_salsa20(out,inp,k,c);}function crypto_core_hsalsa20(out,inp,k,c){core_hsalsa20(out,inp,k,c);}var sigma=new Uint8Array([101,120,112,97,110,100,32,51,50,45,98,121,116,101,32,107]);// "expand 32-byte k" -function crypto_stream_salsa20_xor(c,cpos,m,mpos,b,n,k){var z=new Uint8Array(16),x=new Uint8Array(64);var u,i;for(i=0;i<16;i++){z[i]=0;}for(i=0;i<8;i++){z[i]=n[i];}while(b>=64){crypto_core_salsa20(x,z,k,sigma);for(i=0;i<64;i++){c[cpos+i]=m[mpos+i]^x[i];}u=1;for(i=8;i<16;i++){u=u+(z[i]&0xff)|0;z[i]=u&0xff;u>>>=8;}b-=64;cpos+=64;mpos+=64;}if(b>0){crypto_core_salsa20(x,z,k,sigma);for(i=0;i=64){crypto_core_salsa20(x,z,k,sigma);for(i=0;i<64;i++){c[cpos+i]=x[i];}u=1;for(i=8;i<16;i++){u=u+(z[i]&0xff)|0;z[i]=u&0xff;u>>>=8;}b-=64;cpos+=64;}if(b>0){crypto_core_salsa20(x,z,k,sigma);for(i=0;i>>13|t1<<3)&0x1fff;t2=key[4]&0xff|(key[5]&0xff)<<8;this.r[2]=(t1>>>10|t2<<6)&0x1f03;t3=key[6]&0xff|(key[7]&0xff)<<8;this.r[3]=(t2>>>7|t3<<9)&0x1fff;t4=key[8]&0xff|(key[9]&0xff)<<8;this.r[4]=(t3>>>4|t4<<12)&0x00ff;this.r[5]=t4>>>1&0x1ffe;t5=key[10]&0xff|(key[11]&0xff)<<8;this.r[6]=(t4>>>14|t5<<2)&0x1fff;t6=key[12]&0xff|(key[13]&0xff)<<8;this.r[7]=(t5>>>11|t6<<5)&0x1f81;t7=key[14]&0xff|(key[15]&0xff)<<8;this.r[8]=(t6>>>8|t7<<8)&0x1fff;this.r[9]=t7>>>5&0x007f;this.pad[0]=key[16]&0xff|(key[17]&0xff)<<8;this.pad[1]=key[18]&0xff|(key[19]&0xff)<<8;this.pad[2]=key[20]&0xff|(key[21]&0xff)<<8;this.pad[3]=key[22]&0xff|(key[23]&0xff)<<8;this.pad[4]=key[24]&0xff|(key[25]&0xff)<<8;this.pad[5]=key[26]&0xff|(key[27]&0xff)<<8;this.pad[6]=key[28]&0xff|(key[29]&0xff)<<8;this.pad[7]=key[30]&0xff|(key[31]&0xff)<<8;};poly1305.prototype.blocks=function(m,mpos,bytes){var hibit=this.fin?0:1<<11;var t0,t1,t2,t3,t4,t5,t6,t7,c;var d0,d1,d2,d3,d4,d5,d6,d7,d8,d9;var h0=this.h[0],h1=this.h[1],h2=this.h[2],h3=this.h[3],h4=this.h[4],h5=this.h[5],h6=this.h[6],h7=this.h[7],h8=this.h[8],h9=this.h[9];var r0=this.r[0],r1=this.r[1],r2=this.r[2],r3=this.r[3],r4=this.r[4],r5=this.r[5],r6=this.r[6],r7=this.r[7],r8=this.r[8],r9=this.r[9];while(bytes>=16){t0=m[mpos+0]&0xff|(m[mpos+1]&0xff)<<8;h0+=t0&0x1fff;t1=m[mpos+2]&0xff|(m[mpos+3]&0xff)<<8;h1+=(t0>>>13|t1<<3)&0x1fff;t2=m[mpos+4]&0xff|(m[mpos+5]&0xff)<<8;h2+=(t1>>>10|t2<<6)&0x1fff;t3=m[mpos+6]&0xff|(m[mpos+7]&0xff)<<8;h3+=(t2>>>7|t3<<9)&0x1fff;t4=m[mpos+8]&0xff|(m[mpos+9]&0xff)<<8;h4+=(t3>>>4|t4<<12)&0x1fff;h5+=t4>>>1&0x1fff;t5=m[mpos+10]&0xff|(m[mpos+11]&0xff)<<8;h6+=(t4>>>14|t5<<2)&0x1fff;t6=m[mpos+12]&0xff|(m[mpos+13]&0xff)<<8;h7+=(t5>>>11|t6<<5)&0x1fff;t7=m[mpos+14]&0xff|(m[mpos+15]&0xff)<<8;h8+=(t6>>>8|t7<<8)&0x1fff;h9+=t7>>>5|hibit;c=0;d0=c;d0+=h0*r0;d0+=h1*(5*r9);d0+=h2*(5*r8);d0+=h3*(5*r7);d0+=h4*(5*r6);c=d0>>>13;d0&=0x1fff;d0+=h5*(5*r5);d0+=h6*(5*r4);d0+=h7*(5*r3);d0+=h8*(5*r2);d0+=h9*(5*r1);c+=d0>>>13;d0&=0x1fff;d1=c;d1+=h0*r1;d1+=h1*r0;d1+=h2*(5*r9);d1+=h3*(5*r8);d1+=h4*(5*r7);c=d1>>>13;d1&=0x1fff;d1+=h5*(5*r6);d1+=h6*(5*r5);d1+=h7*(5*r4);d1+=h8*(5*r3);d1+=h9*(5*r2);c+=d1>>>13;d1&=0x1fff;d2=c;d2+=h0*r2;d2+=h1*r1;d2+=h2*r0;d2+=h3*(5*r9);d2+=h4*(5*r8);c=d2>>>13;d2&=0x1fff;d2+=h5*(5*r7);d2+=h6*(5*r6);d2+=h7*(5*r5);d2+=h8*(5*r4);d2+=h9*(5*r3);c+=d2>>>13;d2&=0x1fff;d3=c;d3+=h0*r3;d3+=h1*r2;d3+=h2*r1;d3+=h3*r0;d3+=h4*(5*r9);c=d3>>>13;d3&=0x1fff;d3+=h5*(5*r8);d3+=h6*(5*r7);d3+=h7*(5*r6);d3+=h8*(5*r5);d3+=h9*(5*r4);c+=d3>>>13;d3&=0x1fff;d4=c;d4+=h0*r4;d4+=h1*r3;d4+=h2*r2;d4+=h3*r1;d4+=h4*r0;c=d4>>>13;d4&=0x1fff;d4+=h5*(5*r9);d4+=h6*(5*r8);d4+=h7*(5*r7);d4+=h8*(5*r6);d4+=h9*(5*r5);c+=d4>>>13;d4&=0x1fff;d5=c;d5+=h0*r5;d5+=h1*r4;d5+=h2*r3;d5+=h3*r2;d5+=h4*r1;c=d5>>>13;d5&=0x1fff;d5+=h5*r0;d5+=h6*(5*r9);d5+=h7*(5*r8);d5+=h8*(5*r7);d5+=h9*(5*r6);c+=d5>>>13;d5&=0x1fff;d6=c;d6+=h0*r6;d6+=h1*r5;d6+=h2*r4;d6+=h3*r3;d6+=h4*r2;c=d6>>>13;d6&=0x1fff;d6+=h5*r1;d6+=h6*r0;d6+=h7*(5*r9);d6+=h8*(5*r8);d6+=h9*(5*r7);c+=d6>>>13;d6&=0x1fff;d7=c;d7+=h0*r7;d7+=h1*r6;d7+=h2*r5;d7+=h3*r4;d7+=h4*r3;c=d7>>>13;d7&=0x1fff;d7+=h5*r2;d7+=h6*r1;d7+=h7*r0;d7+=h8*(5*r9);d7+=h9*(5*r8);c+=d7>>>13;d7&=0x1fff;d8=c;d8+=h0*r8;d8+=h1*r7;d8+=h2*r6;d8+=h3*r5;d8+=h4*r4;c=d8>>>13;d8&=0x1fff;d8+=h5*r3;d8+=h6*r2;d8+=h7*r1;d8+=h8*r0;d8+=h9*(5*r9);c+=d8>>>13;d8&=0x1fff;d9=c;d9+=h0*r9;d9+=h1*r8;d9+=h2*r7;d9+=h3*r6;d9+=h4*r5;c=d9>>>13;d9&=0x1fff;d9+=h5*r4;d9+=h6*r3;d9+=h7*r2;d9+=h8*r1;d9+=h9*r0;c+=d9>>>13;d9&=0x1fff;c=(c<<2)+c|0;c=c+d0|0;d0=c&0x1fff;c=c>>>13;d1+=c;h0=d0;h1=d1;h2=d2;h3=d3;h4=d4;h5=d5;h6=d6;h7=d7;h8=d8;h9=d9;mpos+=16;bytes-=16;}this.h[0]=h0;this.h[1]=h1;this.h[2]=h2;this.h[3]=h3;this.h[4]=h4;this.h[5]=h5;this.h[6]=h6;this.h[7]=h7;this.h[8]=h8;this.h[9]=h9;};poly1305.prototype.finish=function(mac,macpos){var g=new Uint16Array(10);var c,mask,f,i;if(this.leftover){i=this.leftover;this.buffer[i++]=1;for(;i<16;i++){this.buffer[i]=0;}this.fin=1;this.blocks(this.buffer,0,16);}c=this.h[1]>>>13;this.h[1]&=0x1fff;for(i=2;i<10;i++){this.h[i]+=c;c=this.h[i]>>>13;this.h[i]&=0x1fff;}this.h[0]+=c*5;c=this.h[0]>>>13;this.h[0]&=0x1fff;this.h[1]+=c;c=this.h[1]>>>13;this.h[1]&=0x1fff;this.h[2]+=c;g[0]=this.h[0]+5;c=g[0]>>>13;g[0]&=0x1fff;for(i=1;i<10;i++){g[i]=this.h[i]+c;c=g[i]>>>13;g[i]&=0x1fff;}g[9]-=1<<13;mask=(c^1)-1;for(i=0;i<10;i++){g[i]&=mask;}mask=~mask;for(i=0;i<10;i++){this.h[i]=this.h[i]&mask|g[i];}this.h[0]=(this.h[0]|this.h[1]<<13)&0xffff;this.h[1]=(this.h[1]>>>3|this.h[2]<<10)&0xffff;this.h[2]=(this.h[2]>>>6|this.h[3]<<7)&0xffff;this.h[3]=(this.h[3]>>>9|this.h[4]<<4)&0xffff;this.h[4]=(this.h[4]>>>12|this.h[5]<<1|this.h[6]<<14)&0xffff;this.h[5]=(this.h[6]>>>2|this.h[7]<<11)&0xffff;this.h[6]=(this.h[7]>>>5|this.h[8]<<8)&0xffff;this.h[7]=(this.h[8]>>>8|this.h[9]<<5)&0xffff;f=this.h[0]+this.pad[0];this.h[0]=f&0xffff;for(i=1;i<8;i++){f=(this.h[i]+this.pad[i]|0)+(f>>>16)|0;this.h[i]=f&0xffff;}mac[macpos+0]=this.h[0]>>>0&0xff;mac[macpos+1]=this.h[0]>>>8&0xff;mac[macpos+2]=this.h[1]>>>0&0xff;mac[macpos+3]=this.h[1]>>>8&0xff;mac[macpos+4]=this.h[2]>>>0&0xff;mac[macpos+5]=this.h[2]>>>8&0xff;mac[macpos+6]=this.h[3]>>>0&0xff;mac[macpos+7]=this.h[3]>>>8&0xff;mac[macpos+8]=this.h[4]>>>0&0xff;mac[macpos+9]=this.h[4]>>>8&0xff;mac[macpos+10]=this.h[5]>>>0&0xff;mac[macpos+11]=this.h[5]>>>8&0xff;mac[macpos+12]=this.h[6]>>>0&0xff;mac[macpos+13]=this.h[6]>>>8&0xff;mac[macpos+14]=this.h[7]>>>0&0xff;mac[macpos+15]=this.h[7]>>>8&0xff;};poly1305.prototype.update=function(m,mpos,bytes){var i,want;if(this.leftover){want=16-this.leftover;if(want>bytes)want=bytes;for(i=0;i=16){want=bytes-bytes%16;this.blocks(m,mpos,want);mpos+=want;bytes-=want;}if(bytes){for(i=0;i>16&1);m[i-1]&=0xffff;}m[15]=t[15]-0x7fff-(m[14]>>16&1);b=m[15]>>16&1;m[14]&=0xffff;sel25519(t,m,1-b);}for(i=0;i<16;i++){o[2*i]=t[i]&0xff;o[2*i+1]=t[i]>>8;}}function neq25519(a,b){var c=new Uint8Array(32),d=new Uint8Array(32);pack25519(c,a);pack25519(d,b);return crypto_verify_32(c,0,d,0);}function par25519(a){var d=new Uint8Array(32);pack25519(d,a);return d[0]&1;}function unpack25519(o,n){var i;for(i=0;i<16;i++){o[i]=n[2*i]+(n[2*i+1]<<8);}o[15]&=0x7fff;}function A(o,a,b){for(var i=0;i<16;i++){o[i]=a[i]+b[i];}}function Z(o,a,b){for(var i=0;i<16;i++){o[i]=a[i]-b[i];}}function M(o,a,b){var v,c,t0=0,t1=0,t2=0,t3=0,t4=0,t5=0,t6=0,t7=0,t8=0,t9=0,t10=0,t11=0,t12=0,t13=0,t14=0,t15=0,t16=0,t17=0,t18=0,t19=0,t20=0,t21=0,t22=0,t23=0,t24=0,t25=0,t26=0,t27=0,t28=0,t29=0,t30=0,b0=b[0],b1=b[1],b2=b[2],b3=b[3],b4=b[4],b5=b[5],b6=b[6],b7=b[7],b8=b[8],b9=b[9],b10=b[10],b11=b[11],b12=b[12],b13=b[13],b14=b[14],b15=b[15];v=a[0];t0+=v*b0;t1+=v*b1;t2+=v*b2;t3+=v*b3;t4+=v*b4;t5+=v*b5;t6+=v*b6;t7+=v*b7;t8+=v*b8;t9+=v*b9;t10+=v*b10;t11+=v*b11;t12+=v*b12;t13+=v*b13;t14+=v*b14;t15+=v*b15;v=a[1];t1+=v*b0;t2+=v*b1;t3+=v*b2;t4+=v*b3;t5+=v*b4;t6+=v*b5;t7+=v*b6;t8+=v*b7;t9+=v*b8;t10+=v*b9;t11+=v*b10;t12+=v*b11;t13+=v*b12;t14+=v*b13;t15+=v*b14;t16+=v*b15;v=a[2];t2+=v*b0;t3+=v*b1;t4+=v*b2;t5+=v*b3;t6+=v*b4;t7+=v*b5;t8+=v*b6;t9+=v*b7;t10+=v*b8;t11+=v*b9;t12+=v*b10;t13+=v*b11;t14+=v*b12;t15+=v*b13;t16+=v*b14;t17+=v*b15;v=a[3];t3+=v*b0;t4+=v*b1;t5+=v*b2;t6+=v*b3;t7+=v*b4;t8+=v*b5;t9+=v*b6;t10+=v*b7;t11+=v*b8;t12+=v*b9;t13+=v*b10;t14+=v*b11;t15+=v*b12;t16+=v*b13;t17+=v*b14;t18+=v*b15;v=a[4];t4+=v*b0;t5+=v*b1;t6+=v*b2;t7+=v*b3;t8+=v*b4;t9+=v*b5;t10+=v*b6;t11+=v*b7;t12+=v*b8;t13+=v*b9;t14+=v*b10;t15+=v*b11;t16+=v*b12;t17+=v*b13;t18+=v*b14;t19+=v*b15;v=a[5];t5+=v*b0;t6+=v*b1;t7+=v*b2;t8+=v*b3;t9+=v*b4;t10+=v*b5;t11+=v*b6;t12+=v*b7;t13+=v*b8;t14+=v*b9;t15+=v*b10;t16+=v*b11;t17+=v*b12;t18+=v*b13;t19+=v*b14;t20+=v*b15;v=a[6];t6+=v*b0;t7+=v*b1;t8+=v*b2;t9+=v*b3;t10+=v*b4;t11+=v*b5;t12+=v*b6;t13+=v*b7;t14+=v*b8;t15+=v*b9;t16+=v*b10;t17+=v*b11;t18+=v*b12;t19+=v*b13;t20+=v*b14;t21+=v*b15;v=a[7];t7+=v*b0;t8+=v*b1;t9+=v*b2;t10+=v*b3;t11+=v*b4;t12+=v*b5;t13+=v*b6;t14+=v*b7;t15+=v*b8;t16+=v*b9;t17+=v*b10;t18+=v*b11;t19+=v*b12;t20+=v*b13;t21+=v*b14;t22+=v*b15;v=a[8];t8+=v*b0;t9+=v*b1;t10+=v*b2;t11+=v*b3;t12+=v*b4;t13+=v*b5;t14+=v*b6;t15+=v*b7;t16+=v*b8;t17+=v*b9;t18+=v*b10;t19+=v*b11;t20+=v*b12;t21+=v*b13;t22+=v*b14;t23+=v*b15;v=a[9];t9+=v*b0;t10+=v*b1;t11+=v*b2;t12+=v*b3;t13+=v*b4;t14+=v*b5;t15+=v*b6;t16+=v*b7;t17+=v*b8;t18+=v*b9;t19+=v*b10;t20+=v*b11;t21+=v*b12;t22+=v*b13;t23+=v*b14;t24+=v*b15;v=a[10];t10+=v*b0;t11+=v*b1;t12+=v*b2;t13+=v*b3;t14+=v*b4;t15+=v*b5;t16+=v*b6;t17+=v*b7;t18+=v*b8;t19+=v*b9;t20+=v*b10;t21+=v*b11;t22+=v*b12;t23+=v*b13;t24+=v*b14;t25+=v*b15;v=a[11];t11+=v*b0;t12+=v*b1;t13+=v*b2;t14+=v*b3;t15+=v*b4;t16+=v*b5;t17+=v*b6;t18+=v*b7;t19+=v*b8;t20+=v*b9;t21+=v*b10;t22+=v*b11;t23+=v*b12;t24+=v*b13;t25+=v*b14;t26+=v*b15;v=a[12];t12+=v*b0;t13+=v*b1;t14+=v*b2;t15+=v*b3;t16+=v*b4;t17+=v*b5;t18+=v*b6;t19+=v*b7;t20+=v*b8;t21+=v*b9;t22+=v*b10;t23+=v*b11;t24+=v*b12;t25+=v*b13;t26+=v*b14;t27+=v*b15;v=a[13];t13+=v*b0;t14+=v*b1;t15+=v*b2;t16+=v*b3;t17+=v*b4;t18+=v*b5;t19+=v*b6;t20+=v*b7;t21+=v*b8;t22+=v*b9;t23+=v*b10;t24+=v*b11;t25+=v*b12;t26+=v*b13;t27+=v*b14;t28+=v*b15;v=a[14];t14+=v*b0;t15+=v*b1;t16+=v*b2;t17+=v*b3;t18+=v*b4;t19+=v*b5;t20+=v*b6;t21+=v*b7;t22+=v*b8;t23+=v*b9;t24+=v*b10;t25+=v*b11;t26+=v*b12;t27+=v*b13;t28+=v*b14;t29+=v*b15;v=a[15];t15+=v*b0;t16+=v*b1;t17+=v*b2;t18+=v*b3;t19+=v*b4;t20+=v*b5;t21+=v*b6;t22+=v*b7;t23+=v*b8;t24+=v*b9;t25+=v*b10;t26+=v*b11;t27+=v*b12;t28+=v*b13;t29+=v*b14;t30+=v*b15;t0+=38*t16;t1+=38*t17;t2+=38*t18;t3+=38*t19;t4+=38*t20;t5+=38*t21;t6+=38*t22;t7+=38*t23;t8+=38*t24;t9+=38*t25;t10+=38*t26;t11+=38*t27;t12+=38*t28;t13+=38*t29;t14+=38*t30;// t15 left as is -// first car -c=1;v=t0+c+65535;c=Math.floor(v/65536);t0=v-c*65536;v=t1+c+65535;c=Math.floor(v/65536);t1=v-c*65536;v=t2+c+65535;c=Math.floor(v/65536);t2=v-c*65536;v=t3+c+65535;c=Math.floor(v/65536);t3=v-c*65536;v=t4+c+65535;c=Math.floor(v/65536);t4=v-c*65536;v=t5+c+65535;c=Math.floor(v/65536);t5=v-c*65536;v=t6+c+65535;c=Math.floor(v/65536);t6=v-c*65536;v=t7+c+65535;c=Math.floor(v/65536);t7=v-c*65536;v=t8+c+65535;c=Math.floor(v/65536);t8=v-c*65536;v=t9+c+65535;c=Math.floor(v/65536);t9=v-c*65536;v=t10+c+65535;c=Math.floor(v/65536);t10=v-c*65536;v=t11+c+65535;c=Math.floor(v/65536);t11=v-c*65536;v=t12+c+65535;c=Math.floor(v/65536);t12=v-c*65536;v=t13+c+65535;c=Math.floor(v/65536);t13=v-c*65536;v=t14+c+65535;c=Math.floor(v/65536);t14=v-c*65536;v=t15+c+65535;c=Math.floor(v/65536);t15=v-c*65536;t0+=c-1+37*(c-1);// second car -c=1;v=t0+c+65535;c=Math.floor(v/65536);t0=v-c*65536;v=t1+c+65535;c=Math.floor(v/65536);t1=v-c*65536;v=t2+c+65535;c=Math.floor(v/65536);t2=v-c*65536;v=t3+c+65535;c=Math.floor(v/65536);t3=v-c*65536;v=t4+c+65535;c=Math.floor(v/65536);t4=v-c*65536;v=t5+c+65535;c=Math.floor(v/65536);t5=v-c*65536;v=t6+c+65535;c=Math.floor(v/65536);t6=v-c*65536;v=t7+c+65535;c=Math.floor(v/65536);t7=v-c*65536;v=t8+c+65535;c=Math.floor(v/65536);t8=v-c*65536;v=t9+c+65535;c=Math.floor(v/65536);t9=v-c*65536;v=t10+c+65535;c=Math.floor(v/65536);t10=v-c*65536;v=t11+c+65535;c=Math.floor(v/65536);t11=v-c*65536;v=t12+c+65535;c=Math.floor(v/65536);t12=v-c*65536;v=t13+c+65535;c=Math.floor(v/65536);t13=v-c*65536;v=t14+c+65535;c=Math.floor(v/65536);t14=v-c*65536;v=t15+c+65535;c=Math.floor(v/65536);t15=v-c*65536;t0+=c-1+37*(c-1);o[0]=t0;o[1]=t1;o[2]=t2;o[3]=t3;o[4]=t4;o[5]=t5;o[6]=t6;o[7]=t7;o[8]=t8;o[9]=t9;o[10]=t10;o[11]=t11;o[12]=t12;o[13]=t13;o[14]=t14;o[15]=t15;}function S(o,a){M(o,a,a);}function inv25519(o,i){var c=gf();var a;for(a=0;a<16;a++){c[a]=i[a];}for(a=253;a>=0;a--){S(c,c);if(a!==2&&a!==4)M(c,c,i);}for(a=0;a<16;a++){o[a]=c[a];}}function pow2523(o,i){var c=gf();var a;for(a=0;a<16;a++){c[a]=i[a];}for(a=250;a>=0;a--){S(c,c);if(a!==1)M(c,c,i);}for(a=0;a<16;a++){o[a]=c[a];}}function crypto_scalarmult(q,n,p){var z=new Uint8Array(32);var x=new Float64Array(80),r,i;var a=gf(),b=gf(),c=gf(),d=gf(),e=gf(),f=gf();for(i=0;i<31;i++){z[i]=n[i];}z[31]=n[31]&127|64;z[0]&=248;unpack25519(x,p);for(i=0;i<16;i++){b[i]=x[i];d[i]=a[i]=c[i]=0;}a[0]=d[0]=1;for(i=254;i>=0;--i){r=z[i>>>3]>>>(i&7)&1;sel25519(a,b,r);sel25519(c,d,r);A(e,a,c);Z(a,a,c);A(c,b,d);Z(b,b,d);S(d,e);S(f,a);M(a,c,a);M(c,b,e);A(e,a,c);Z(a,a,c);S(b,a);Z(c,d,f);M(a,c,_121665);A(a,a,d);M(c,c,a);M(a,d,f);M(d,b,x);S(b,e);sel25519(a,b,r);sel25519(c,d,r);}for(i=0;i<16;i++){x[i+16]=a[i];x[i+32]=c[i];x[i+48]=b[i];x[i+64]=d[i];}var x32=x.subarray(32);var x16=x.subarray(16);inv25519(x32,x32);M(x16,x16,x32);pack25519(q,x16);return 0;}function crypto_scalarmult_base(q,n){return crypto_scalarmult(q,n,_9);}function crypto_box_keypair(y,x){randombytes(x,32);return crypto_scalarmult_base(y,x);}function crypto_box_beforenm(k,y,x){var s=new Uint8Array(32);crypto_scalarmult(s,x,y);return crypto_core_hsalsa20(k,_0,s,sigma);}var crypto_box_afternm=crypto_secretbox;var crypto_box_open_afternm=crypto_secretbox_open;function crypto_box(c,m,d,n,y,x){var k=new Uint8Array(32);crypto_box_beforenm(k,y,x);return crypto_box_afternm(c,m,d,n,k);}function crypto_box_open(m,c,d,n,y,x){var k=new Uint8Array(32);crypto_box_beforenm(k,y,x);return crypto_box_open_afternm(m,c,d,n,k);}var K=[0x428a2f98,0xd728ae22,0x71374491,0x23ef65cd,0xb5c0fbcf,0xec4d3b2f,0xe9b5dba5,0x8189dbbc,0x3956c25b,0xf348b538,0x59f111f1,0xb605d019,0x923f82a4,0xaf194f9b,0xab1c5ed5,0xda6d8118,0xd807aa98,0xa3030242,0x12835b01,0x45706fbe,0x243185be,0x4ee4b28c,0x550c7dc3,0xd5ffb4e2,0x72be5d74,0xf27b896f,0x80deb1fe,0x3b1696b1,0x9bdc06a7,0x25c71235,0xc19bf174,0xcf692694,0xe49b69c1,0x9ef14ad2,0xefbe4786,0x384f25e3,0x0fc19dc6,0x8b8cd5b5,0x240ca1cc,0x77ac9c65,0x2de92c6f,0x592b0275,0x4a7484aa,0x6ea6e483,0x5cb0a9dc,0xbd41fbd4,0x76f988da,0x831153b5,0x983e5152,0xee66dfab,0xa831c66d,0x2db43210,0xb00327c8,0x98fb213f,0xbf597fc7,0xbeef0ee4,0xc6e00bf3,0x3da88fc2,0xd5a79147,0x930aa725,0x06ca6351,0xe003826f,0x14292967,0x0a0e6e70,0x27b70a85,0x46d22ffc,0x2e1b2138,0x5c26c926,0x4d2c6dfc,0x5ac42aed,0x53380d13,0x9d95b3df,0x650a7354,0x8baf63de,0x766a0abb,0x3c77b2a8,0x81c2c92e,0x47edaee6,0x92722c85,0x1482353b,0xa2bfe8a1,0x4cf10364,0xa81a664b,0xbc423001,0xc24b8b70,0xd0f89791,0xc76c51a3,0x0654be30,0xd192e819,0xd6ef5218,0xd6990624,0x5565a910,0xf40e3585,0x5771202a,0x106aa070,0x32bbd1b8,0x19a4c116,0xb8d2d0c8,0x1e376c08,0x5141ab53,0x2748774c,0xdf8eeb99,0x34b0bcb5,0xe19b48a8,0x391c0cb3,0xc5c95a63,0x4ed8aa4a,0xe3418acb,0x5b9cca4f,0x7763e373,0x682e6ff3,0xd6b2b8a3,0x748f82ee,0x5defb2fc,0x78a5636f,0x43172f60,0x84c87814,0xa1f0ab72,0x8cc70208,0x1a6439ec,0x90befffa,0x23631e28,0xa4506ceb,0xde82bde9,0xbef9a3f7,0xb2c67915,0xc67178f2,0xe372532b,0xca273ece,0xea26619c,0xd186b8c7,0x21c0c207,0xeada7dd6,0xcde0eb1e,0xf57d4f7f,0xee6ed178,0x06f067aa,0x72176fba,0x0a637dc5,0xa2c898a6,0x113f9804,0xbef90dae,0x1b710b35,0x131c471b,0x28db77f5,0x23047d84,0x32caab7b,0x40c72493,0x3c9ebe0a,0x15c9bebc,0x431d67c4,0x9c100d4c,0x4cc5d4be,0xcb3e42b6,0x597f299c,0xfc657e2a,0x5fcb6fab,0x3ad6faec,0x6c44198c,0x4a475817];function crypto_hashblocks_hl(hh,hl,m,n){var wh=new Int32Array(16),wl=new Int32Array(16),bh0,bh1,bh2,bh3,bh4,bh5,bh6,bh7,bl0,bl1,bl2,bl3,bl4,bl5,bl6,bl7,th,tl,i,j,h,l,a,b,c,d;var ah0=hh[0],ah1=hh[1],ah2=hh[2],ah3=hh[3],ah4=hh[4],ah5=hh[5],ah6=hh[6],ah7=hh[7],al0=hl[0],al1=hl[1],al2=hl[2],al3=hl[3],al4=hl[4],al5=hl[5],al6=hl[6],al7=hl[7];var pos=0;while(n>=128){for(i=0;i<16;i++){j=8*i+pos;wh[i]=m[j+0]<<24|m[j+1]<<16|m[j+2]<<8|m[j+3];wl[i]=m[j+4]<<24|m[j+5]<<16|m[j+6]<<8|m[j+7];}for(i=0;i<80;i++){bh0=ah0;bh1=ah1;bh2=ah2;bh3=ah3;bh4=ah4;bh5=ah5;bh6=ah6;bh7=ah7;bl0=al0;bl1=al1;bl2=al2;bl3=al3;bl4=al4;bl5=al5;bl6=al6;bl7=al7;// add -h=ah7;l=al7;a=l&0xffff;b=l>>>16;c=h&0xffff;d=h>>>16;// Sigma1 -h=(ah4>>>14|al4<<32-14)^(ah4>>>18|al4<<32-18)^(al4>>>41-32|ah4<<32-(41-32));l=(al4>>>14|ah4<<32-14)^(al4>>>18|ah4<<32-18)^(ah4>>>41-32|al4<<32-(41-32));a+=l&0xffff;b+=l>>>16;c+=h&0xffff;d+=h>>>16;// Ch -h=ah4&ah5^~ah4&ah6;l=al4&al5^~al4&al6;a+=l&0xffff;b+=l>>>16;c+=h&0xffff;d+=h>>>16;// K -h=K[i*2];l=K[i*2+1];a+=l&0xffff;b+=l>>>16;c+=h&0xffff;d+=h>>>16;// w -h=wh[i%16];l=wl[i%16];a+=l&0xffff;b+=l>>>16;c+=h&0xffff;d+=h>>>16;b+=a>>>16;c+=b>>>16;d+=c>>>16;th=c&0xffff|d<<16;tl=a&0xffff|b<<16;// add -h=th;l=tl;a=l&0xffff;b=l>>>16;c=h&0xffff;d=h>>>16;// Sigma0 -h=(ah0>>>28|al0<<32-28)^(al0>>>34-32|ah0<<32-(34-32))^(al0>>>39-32|ah0<<32-(39-32));l=(al0>>>28|ah0<<32-28)^(ah0>>>34-32|al0<<32-(34-32))^(ah0>>>39-32|al0<<32-(39-32));a+=l&0xffff;b+=l>>>16;c+=h&0xffff;d+=h>>>16;// Maj -h=ah0&ah1^ah0&ah2^ah1&ah2;l=al0&al1^al0&al2^al1&al2;a+=l&0xffff;b+=l>>>16;c+=h&0xffff;d+=h>>>16;b+=a>>>16;c+=b>>>16;d+=c>>>16;bh7=c&0xffff|d<<16;bl7=a&0xffff|b<<16;// add -h=bh3;l=bl3;a=l&0xffff;b=l>>>16;c=h&0xffff;d=h>>>16;h=th;l=tl;a+=l&0xffff;b+=l>>>16;c+=h&0xffff;d+=h>>>16;b+=a>>>16;c+=b>>>16;d+=c>>>16;bh3=c&0xffff|d<<16;bl3=a&0xffff|b<<16;ah1=bh0;ah2=bh1;ah3=bh2;ah4=bh3;ah5=bh4;ah6=bh5;ah7=bh6;ah0=bh7;al1=bl0;al2=bl1;al3=bl2;al4=bl3;al5=bl4;al6=bl5;al7=bl6;al0=bl7;if(i%16===15){for(j=0;j<16;j++){// add -h=wh[j];l=wl[j];a=l&0xffff;b=l>>>16;c=h&0xffff;d=h>>>16;h=wh[(j+9)%16];l=wl[(j+9)%16];a+=l&0xffff;b+=l>>>16;c+=h&0xffff;d+=h>>>16;// sigma0 -th=wh[(j+1)%16];tl=wl[(j+1)%16];h=(th>>>1|tl<<32-1)^(th>>>8|tl<<32-8)^th>>>7;l=(tl>>>1|th<<32-1)^(tl>>>8|th<<32-8)^(tl>>>7|th<<32-7);a+=l&0xffff;b+=l>>>16;c+=h&0xffff;d+=h>>>16;// sigma1 -th=wh[(j+14)%16];tl=wl[(j+14)%16];h=(th>>>19|tl<<32-19)^(tl>>>61-32|th<<32-(61-32))^th>>>6;l=(tl>>>19|th<<32-19)^(th>>>61-32|tl<<32-(61-32))^(tl>>>6|th<<32-6);a+=l&0xffff;b+=l>>>16;c+=h&0xffff;d+=h>>>16;b+=a>>>16;c+=b>>>16;d+=c>>>16;wh[j]=c&0xffff|d<<16;wl[j]=a&0xffff|b<<16;}}}// add -h=ah0;l=al0;a=l&0xffff;b=l>>>16;c=h&0xffff;d=h>>>16;h=hh[0];l=hl[0];a+=l&0xffff;b+=l>>>16;c+=h&0xffff;d+=h>>>16;b+=a>>>16;c+=b>>>16;d+=c>>>16;hh[0]=ah0=c&0xffff|d<<16;hl[0]=al0=a&0xffff|b<<16;h=ah1;l=al1;a=l&0xffff;b=l>>>16;c=h&0xffff;d=h>>>16;h=hh[1];l=hl[1];a+=l&0xffff;b+=l>>>16;c+=h&0xffff;d+=h>>>16;b+=a>>>16;c+=b>>>16;d+=c>>>16;hh[1]=ah1=c&0xffff|d<<16;hl[1]=al1=a&0xffff|b<<16;h=ah2;l=al2;a=l&0xffff;b=l>>>16;c=h&0xffff;d=h>>>16;h=hh[2];l=hl[2];a+=l&0xffff;b+=l>>>16;c+=h&0xffff;d+=h>>>16;b+=a>>>16;c+=b>>>16;d+=c>>>16;hh[2]=ah2=c&0xffff|d<<16;hl[2]=al2=a&0xffff|b<<16;h=ah3;l=al3;a=l&0xffff;b=l>>>16;c=h&0xffff;d=h>>>16;h=hh[3];l=hl[3];a+=l&0xffff;b+=l>>>16;c+=h&0xffff;d+=h>>>16;b+=a>>>16;c+=b>>>16;d+=c>>>16;hh[3]=ah3=c&0xffff|d<<16;hl[3]=al3=a&0xffff|b<<16;h=ah4;l=al4;a=l&0xffff;b=l>>>16;c=h&0xffff;d=h>>>16;h=hh[4];l=hl[4];a+=l&0xffff;b+=l>>>16;c+=h&0xffff;d+=h>>>16;b+=a>>>16;c+=b>>>16;d+=c>>>16;hh[4]=ah4=c&0xffff|d<<16;hl[4]=al4=a&0xffff|b<<16;h=ah5;l=al5;a=l&0xffff;b=l>>>16;c=h&0xffff;d=h>>>16;h=hh[5];l=hl[5];a+=l&0xffff;b+=l>>>16;c+=h&0xffff;d+=h>>>16;b+=a>>>16;c+=b>>>16;d+=c>>>16;hh[5]=ah5=c&0xffff|d<<16;hl[5]=al5=a&0xffff|b<<16;h=ah6;l=al6;a=l&0xffff;b=l>>>16;c=h&0xffff;d=h>>>16;h=hh[6];l=hl[6];a+=l&0xffff;b+=l>>>16;c+=h&0xffff;d+=h>>>16;b+=a>>>16;c+=b>>>16;d+=c>>>16;hh[6]=ah6=c&0xffff|d<<16;hl[6]=al6=a&0xffff|b<<16;h=ah7;l=al7;a=l&0xffff;b=l>>>16;c=h&0xffff;d=h>>>16;h=hh[7];l=hl[7];a+=l&0xffff;b+=l>>>16;c+=h&0xffff;d+=h>>>16;b+=a>>>16;c+=b>>>16;d+=c>>>16;hh[7]=ah7=c&0xffff|d<<16;hl[7]=al7=a&0xffff|b<<16;pos+=128;n-=128;}return n;}function crypto_hash(out,m,n){var hh=new Int32Array(8),hl=new Int32Array(8),x=new Uint8Array(256),i,b=n;hh[0]=0x6a09e667;hh[1]=0xbb67ae85;hh[2]=0x3c6ef372;hh[3]=0xa54ff53a;hh[4]=0x510e527f;hh[5]=0x9b05688c;hh[6]=0x1f83d9ab;hh[7]=0x5be0cd19;hl[0]=0xf3bcc908;hl[1]=0x84caa73b;hl[2]=0xfe94f82b;hl[3]=0x5f1d36f1;hl[4]=0xade682d1;hl[5]=0x2b3e6c1f;hl[6]=0xfb41bd6b;hl[7]=0x137e2179;crypto_hashblocks_hl(hh,hl,m,n);n%=128;for(i=0;i=0;--i){b=s[i/8|0]>>(i&7)&1;cswap(p,q,b);add(q,p);add(p,p);cswap(p,q,b);}}function scalarbase(p,s){var q=[gf(),gf(),gf(),gf()];set25519(q[0],X);set25519(q[1],Y);set25519(q[2],gf1);M(q[3],X,Y);scalarmult(p,q,s);}function crypto_sign_keypair(pk,sk,seeded){var d=new Uint8Array(64);var p=[gf(),gf(),gf(),gf()];var i;if(!seeded)randombytes(sk,32);crypto_hash(d,sk,32);d[0]&=248;d[31]&=127;d[31]|=64;scalarbase(p,d);pack(pk,p);for(i=0;i<32;i++){sk[i+32]=pk[i];}return 0;}var L=new Float64Array([0xed,0xd3,0xf5,0x5c,0x1a,0x63,0x12,0x58,0xd6,0x9c,0xf7,0xa2,0xde,0xf9,0xde,0x14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0x10]);function modL(r,x){var carry,i,j,k;for(i=63;i>=32;--i){carry=0;for(j=i-32,k=i-12;j>8;x[j]-=carry*256;}x[j]+=carry;x[i]=0;}carry=0;for(j=0;j<32;j++){x[j]+=carry-(x[31]>>4)*L[j];carry=x[j]>>8;x[j]&=255;}for(j=0;j<32;j++){x[j]-=carry*L[j];}for(i=0;i<32;i++){x[i+1]+=x[i]>>8;r[i]=x[i]&255;}}function reduce(r){var x=new Float64Array(64),i;for(i=0;i<64;i++){x[i]=r[i];}for(i=0;i<64;i++){r[i]=0;}modL(r,x);}// Note: difference from C - smlen returned, not passed as argument. -function crypto_sign(sm,m,n,sk){var d=new Uint8Array(64),h=new Uint8Array(64),r=new Uint8Array(64);var i,j,x=new Float64Array(64);var p=[gf(),gf(),gf(),gf()];crypto_hash(d,sk,32);d[0]&=248;d[31]&=127;d[31]|=64;var smlen=n+64;for(i=0;i>7)Z(r[0],gf0,r[0]);M(r[3],r[0],r[1]);return 0;}function crypto_sign_open(m,sm,n,pk){var i,mlen;var t=new Uint8Array(32),h=new Uint8Array(64);var p=[gf(),gf(),gf(),gf()],q=[gf(),gf(),gf(),gf()];mlen=-1;if(n<64)return-1;if(unpackneg(q,pk))return-1;for(i=0;i=0;};nacl.sign.keyPair=function(){var pk=new Uint8Array(crypto_sign_PUBLICKEYBYTES);var sk=new Uint8Array(crypto_sign_SECRETKEYBYTES);crypto_sign_keypair(pk,sk);return{publicKey:pk,secretKey:sk};};nacl.sign.keyPair.fromSecretKey=function(secretKey){checkArrayTypes(secretKey);if(secretKey.length!==crypto_sign_SECRETKEYBYTES)throw new Error('bad secret key size');var pk=new Uint8Array(crypto_sign_PUBLICKEYBYTES);for(var i=0;i>6];var primitive=(tag&0x20)===0;// Multi-octet tag - load -if((tag&0x1f)===0x1f){var oct=tag;tag=0;while((oct&0x80)===0x80){oct=buf.readUInt8(fail);if(buf.isError(oct))return oct;tag<<=7;tag|=oct&0x7f;}}else{tag&=0x1f;}var tagStr=der.tag[tag];return{cls:cls,primitive:primitive,tag:tag,tagStr:tagStr};}function derDecodeLen(buf,primitive,fail){var len=buf.readUInt8(fail);if(buf.isError(len))return len;// Indefinite form -if(!primitive&&len===0x80)return null;// Definite form -if((len&0x80)===0){// Short form -return len;}// Long form -var num=len&0x7f;if(num>=4)return buf.error('length octect is too long');len=0;for(var i=0;i=0x100;i>>=8){lenOctets++;}var header=new Buffer(1+1+lenOctets);header[0]=encodedTag;header[1]=0x80|lenOctets;for(var i=1+lenOctets,j=content.length;j>0;i--,j>>=8){header[i]=j&0xff;}return this._createEncoderBuffer([header,content]);};DERNode.prototype._encodeStr=function encodeStr(str,tag){if(tag==='bitstr'){return this._createEncoderBuffer([str.unused|0,str.data]);}else if(tag==='bmpstr'){var buf=new Buffer(str.length*2);for(var i=0;i=40)return this.reporter.error('Second objid identifier OOB');id.splice(0,2,id[0]*40+id[1]);}// Count number of octets -var size=0;for(var i=0;i=0x80;ident>>=7){size++;}}var objid=new Buffer(size);var offset=objid.length-1;for(var i=id.length-1;i>=0;i--){var ident=id[i];objid[offset--]=ident&0x7f;while((ident>>=7)>0){objid[offset--]=0x80|ident&0x7f;}}return this._createEncoderBuffer(objid);};function two(num){if(num<10)return'0'+num;else return num;}DERNode.prototype._encodeTime=function encodeTime(time,tag){var str;var date=new Date(time);if(tag==='gentime'){str=[two(date.getFullYear()),two(date.getUTCMonth()+1),two(date.getUTCDate()),two(date.getUTCHours()),two(date.getUTCMinutes()),two(date.getUTCSeconds()),'Z'].join('');}else if(tag==='utctime'){str=[two(date.getFullYear()%100),two(date.getUTCMonth()+1),two(date.getUTCDate()),two(date.getUTCHours()),two(date.getUTCMinutes()),two(date.getUTCSeconds()),'Z'].join('');}else{this.reporter.error('Encoding '+tag+' time is not supported yet');}return this._encodeStr(str,'octstr');};DERNode.prototype._encodeNull=function encodeNull(){return this._createEncoderBuffer('');};DERNode.prototype._encodeInt=function encodeInt(num,values){if(typeof num==='string'){if(!values)return this.reporter.error('String int or enum given, but no values map');if(!values.hasOwnProperty(num)){return this.reporter.error('Values map doesn\'t contain: '+JSON.stringify(num));}num=values[num];}// Bignum, assume big endian -if(typeof num!=='number'&&!Buffer.isBuffer(num)){var numArray=num.toArray();if(!num.sign&&numArray[0]&0x80){numArray.unshift(0);}num=new Buffer(numArray);}if(Buffer.isBuffer(num)){var size=num.length;if(num.length===0)size++;var out=new Buffer(size);num.copy(out);if(num.length===0)out[0]=0;return this._createEncoderBuffer(out);}if(num<0x80)return this._createEncoderBuffer(num);if(num<0x100)return this._createEncoderBuffer([0,num]);var size=1;for(var i=num;i>=0x100;i>>=8){size++;}var out=new Array(size);for(var i=out.length-1;i>=0;i--){out[i]=num&0xff;num>>=8;}if(out[0]&0x80){out.unshift(0);}return this._createEncoderBuffer(new Buffer(out));};DERNode.prototype._encodeBool=function encodeBool(value){return this._createEncoderBuffer(value?0xff:0);};DERNode.prototype._use=function use(entity,obj){if(typeof entity==='function')entity=entity(obj);return entity._getEncoder('der').tree;};DERNode.prototype._skipDefault=function skipDefault(dataBuffer,reporter,parent){var state=this._baseState;var i;if(state['default']===null)return false;var data=dataBuffer.join();if(state.defaultBuffer===undefined)state.defaultBuffer=this._encodeValue(state['default'],reporter,parent).join();if(data.length!==state.defaultBuffer.length)return false;for(i=0;i=0x1f)return reporter.error('Multi-octet tag encoding unsupported');if(!primitive)res|=0x20;res|=der.tagClassByName[cls||'universal']<<6;return res;} +'use strict';module.exports=__webpack_require__(425); /***/ }, /* 304 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var crypto_hash_sha512=__webpack_require__(294).lowlevel.crypto_hash;/* - * This file is a 1:1 port from the OpenBSD blowfish.c and bcrypt_pbkdf.c. As a - * result, it retains the original copyright and license. The two files are - * under slightly different (but compatible) licenses, and are here combined in - * one file. - * - * Credit for the actual porting work goes to: - * Devi Mandiri - *//* - * The Blowfish portions are under the following license: - * - * Blowfish block cipher for OpenBSD - * Copyright 1997 Niels Provos - * All rights reserved. - * - * Implementation advice by David Mazieres . - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * 3. All advertising materials mentioning features or use of this software - * must display the following acknowledgement: - * This product includes software developed by Niels Provos. - * 4. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR - * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. - * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, - * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT - * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, - * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF - * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - *//* - * The bcrypt_pbkdf portions are under the following license: - * - * Copyright (c) 2013 Ted Unangst - * - * Permission to use, copy, modify, and distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - *//* - * Performance improvements (Javascript-specific): - * - * Copyright 2016, Joyent Inc - * Author: Alex Wilson - * - * Permission to use, copy, modify, and distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */// Ported from OpenBSD bcrypt_pbkdf.c v1.9 -var BLF_J=0;var Blowfish=function Blowfish(){this.S=[new Uint32Array([0xd1310ba6,0x98dfb5ac,0x2ffd72db,0xd01adfb7,0xb8e1afed,0x6a267e96,0xba7c9045,0xf12c7f99,0x24a19947,0xb3916cf7,0x0801f2e2,0x858efc16,0x636920d8,0x71574e69,0xa458fea3,0xf4933d7e,0x0d95748f,0x728eb658,0x718bcd58,0x82154aee,0x7b54a41d,0xc25a59b5,0x9c30d539,0x2af26013,0xc5d1b023,0x286085f0,0xca417918,0xb8db38ef,0x8e79dcb0,0x603a180e,0x6c9e0e8b,0xb01e8a3e,0xd71577c1,0xbd314b27,0x78af2fda,0x55605c60,0xe65525f3,0xaa55ab94,0x57489862,0x63e81440,0x55ca396a,0x2aab10b6,0xb4cc5c34,0x1141e8ce,0xa15486af,0x7c72e993,0xb3ee1411,0x636fbc2a,0x2ba9c55d,0x741831f6,0xce5c3e16,0x9b87931e,0xafd6ba33,0x6c24cf5c,0x7a325381,0x28958677,0x3b8f4898,0x6b4bb9af,0xc4bfe81b,0x66282193,0x61d809cc,0xfb21a991,0x487cac60,0x5dec8032,0xef845d5d,0xe98575b1,0xdc262302,0xeb651b88,0x23893e81,0xd396acc5,0x0f6d6ff3,0x83f44239,0x2e0b4482,0xa4842004,0x69c8f04a,0x9e1f9b5e,0x21c66842,0xf6e96c9a,0x670c9c61,0xabd388f0,0x6a51a0d2,0xd8542f68,0x960fa728,0xab5133a3,0x6eef0b6c,0x137a3be4,0xba3bf050,0x7efb2a98,0xa1f1651d,0x39af0176,0x66ca593e,0x82430e88,0x8cee8619,0x456f9fb4,0x7d84a5c3,0x3b8b5ebe,0xe06f75d8,0x85c12073,0x401a449f,0x56c16aa6,0x4ed3aa62,0x363f7706,0x1bfedf72,0x429b023d,0x37d0d724,0xd00a1248,0xdb0fead3,0x49f1c09b,0x075372c9,0x80991b7b,0x25d479d8,0xf6e8def7,0xe3fe501a,0xb6794c3b,0x976ce0bd,0x04c006ba,0xc1a94fb6,0x409f60c4,0x5e5c9ec2,0x196a2463,0x68fb6faf,0x3e6c53b5,0x1339b2eb,0x3b52ec6f,0x6dfc511f,0x9b30952c,0xcc814544,0xaf5ebd09,0xbee3d004,0xde334afd,0x660f2807,0x192e4bb3,0xc0cba857,0x45c8740f,0xd20b5f39,0xb9d3fbdb,0x5579c0bd,0x1a60320a,0xd6a100c6,0x402c7279,0x679f25fe,0xfb1fa3cc,0x8ea5e9f8,0xdb3222f8,0x3c7516df,0xfd616b15,0x2f501ec8,0xad0552ab,0x323db5fa,0xfd238760,0x53317b48,0x3e00df82,0x9e5c57bb,0xca6f8ca0,0x1a87562e,0xdf1769db,0xd542a8f6,0x287effc3,0xac6732c6,0x8c4f5573,0x695b27b0,0xbbca58c8,0xe1ffa35d,0xb8f011a0,0x10fa3d98,0xfd2183b8,0x4afcb56c,0x2dd1d35b,0x9a53e479,0xb6f84565,0xd28e49bc,0x4bfb9790,0xe1ddf2da,0xa4cb7e33,0x62fb1341,0xcee4c6e8,0xef20cada,0x36774c01,0xd07e9efe,0x2bf11fb4,0x95dbda4d,0xae909198,0xeaad8e71,0x6b93d5a0,0xd08ed1d0,0xafc725e0,0x8e3c5b2f,0x8e7594b7,0x8ff6e2fb,0xf2122b64,0x8888b812,0x900df01c,0x4fad5ea0,0x688fc31c,0xd1cff191,0xb3a8c1ad,0x2f2f2218,0xbe0e1777,0xea752dfe,0x8b021fa1,0xe5a0cc0f,0xb56f74e8,0x18acf3d6,0xce89e299,0xb4a84fe0,0xfd13e0b7,0x7cc43b81,0xd2ada8d9,0x165fa266,0x80957705,0x93cc7314,0x211a1477,0xe6ad2065,0x77b5fa86,0xc75442f5,0xfb9d35cf,0xebcdaf0c,0x7b3e89a0,0xd6411bd3,0xae1e7e49,0x00250e2d,0x2071b35e,0x226800bb,0x57b8e0af,0x2464369b,0xf009b91e,0x5563911d,0x59dfa6aa,0x78c14389,0xd95a537f,0x207d5ba2,0x02e5b9c5,0x83260376,0x6295cfa9,0x11c81968,0x4e734a41,0xb3472dca,0x7b14a94a,0x1b510052,0x9a532915,0xd60f573f,0xbc9bc6e4,0x2b60a476,0x81e67400,0x08ba6fb5,0x571be91f,0xf296ec6b,0x2a0dd915,0xb6636521,0xe7b9f9b6,0xff34052e,0xc5855664,0x53b02d5d,0xa99f8fa1,0x08ba4799,0x6e85076a]),new Uint32Array([0x4b7a70e9,0xb5b32944,0xdb75092e,0xc4192623,0xad6ea6b0,0x49a7df7d,0x9cee60b8,0x8fedb266,0xecaa8c71,0x699a17ff,0x5664526c,0xc2b19ee1,0x193602a5,0x75094c29,0xa0591340,0xe4183a3e,0x3f54989a,0x5b429d65,0x6b8fe4d6,0x99f73fd6,0xa1d29c07,0xefe830f5,0x4d2d38e6,0xf0255dc1,0x4cdd2086,0x8470eb26,0x6382e9c6,0x021ecc5e,0x09686b3f,0x3ebaefc9,0x3c971814,0x6b6a70a1,0x687f3584,0x52a0e286,0xb79c5305,0xaa500737,0x3e07841c,0x7fdeae5c,0x8e7d44ec,0x5716f2b8,0xb03ada37,0xf0500c0d,0xf01c1f04,0x0200b3ff,0xae0cf51a,0x3cb574b2,0x25837a58,0xdc0921bd,0xd19113f9,0x7ca92ff6,0x94324773,0x22f54701,0x3ae5e581,0x37c2dadc,0xc8b57634,0x9af3dda7,0xa9446146,0x0fd0030e,0xecc8c73e,0xa4751e41,0xe238cd99,0x3bea0e2f,0x3280bba1,0x183eb331,0x4e548b38,0x4f6db908,0x6f420d03,0xf60a04bf,0x2cb81290,0x24977c79,0x5679b072,0xbcaf89af,0xde9a771f,0xd9930810,0xb38bae12,0xdccf3f2e,0x5512721f,0x2e6b7124,0x501adde6,0x9f84cd87,0x7a584718,0x7408da17,0xbc9f9abc,0xe94b7d8c,0xec7aec3a,0xdb851dfa,0x63094366,0xc464c3d2,0xef1c1847,0x3215d908,0xdd433b37,0x24c2ba16,0x12a14d43,0x2a65c451,0x50940002,0x133ae4dd,0x71dff89e,0x10314e55,0x81ac77d6,0x5f11199b,0x043556f1,0xd7a3c76b,0x3c11183b,0x5924a509,0xf28fe6ed,0x97f1fbfa,0x9ebabf2c,0x1e153c6e,0x86e34570,0xeae96fb1,0x860e5e0a,0x5a3e2ab3,0x771fe71c,0x4e3d06fa,0x2965dcb9,0x99e71d0f,0x803e89d6,0x5266c825,0x2e4cc978,0x9c10b36a,0xc6150eba,0x94e2ea78,0xa5fc3c53,0x1e0a2df4,0xf2f74ea7,0x361d2b3d,0x1939260f,0x19c27960,0x5223a708,0xf71312b6,0xebadfe6e,0xeac31f66,0xe3bc4595,0xa67bc883,0xb17f37d1,0x018cff28,0xc332ddef,0xbe6c5aa5,0x65582185,0x68ab9802,0xeecea50f,0xdb2f953b,0x2aef7dad,0x5b6e2f84,0x1521b628,0x29076170,0xecdd4775,0x619f1510,0x13cca830,0xeb61bd96,0x0334fe1e,0xaa0363cf,0xb5735c90,0x4c70a239,0xd59e9e0b,0xcbaade14,0xeecc86bc,0x60622ca7,0x9cab5cab,0xb2f3846e,0x648b1eaf,0x19bdf0ca,0xa02369b9,0x655abb50,0x40685a32,0x3c2ab4b3,0x319ee9d5,0xc021b8f7,0x9b540b19,0x875fa099,0x95f7997e,0x623d7da8,0xf837889a,0x97e32d77,0x11ed935f,0x16681281,0x0e358829,0xc7e61fd6,0x96dedfa1,0x7858ba99,0x57f584a5,0x1b227263,0x9b83c3ff,0x1ac24696,0xcdb30aeb,0x532e3054,0x8fd948e4,0x6dbc3128,0x58ebf2ef,0x34c6ffea,0xfe28ed61,0xee7c3c73,0x5d4a14d9,0xe864b7e3,0x42105d14,0x203e13e0,0x45eee2b6,0xa3aaabea,0xdb6c4f15,0xfacb4fd0,0xc742f442,0xef6abbb5,0x654f3b1d,0x41cd2105,0xd81e799e,0x86854dc7,0xe44b476a,0x3d816250,0xcf62a1f2,0x5b8d2646,0xfc8883a0,0xc1c7b6a3,0x7f1524c3,0x69cb7492,0x47848a0b,0x5692b285,0x095bbf00,0xad19489d,0x1462b174,0x23820e00,0x58428d2a,0x0c55f5ea,0x1dadf43e,0x233f7061,0x3372f092,0x8d937e41,0xd65fecf1,0x6c223bdb,0x7cde3759,0xcbee7460,0x4085f2a7,0xce77326e,0xa6078084,0x19f8509e,0xe8efd855,0x61d99735,0xa969a7aa,0xc50c06c2,0x5a04abfc,0x800bcadc,0x9e447a2e,0xc3453484,0xfdd56705,0x0e1e9ec9,0xdb73dbd3,0x105588cd,0x675fda79,0xe3674340,0xc5c43465,0x713e38d8,0x3d28f89e,0xf16dff20,0x153e21e7,0x8fb03d4a,0xe6e39f2b,0xdb83adf7]),new Uint32Array([0xe93d5a68,0x948140f7,0xf64c261c,0x94692934,0x411520f7,0x7602d4f7,0xbcf46b2e,0xd4a20068,0xd4082471,0x3320f46a,0x43b7d4b7,0x500061af,0x1e39f62e,0x97244546,0x14214f74,0xbf8b8840,0x4d95fc1d,0x96b591af,0x70f4ddd3,0x66a02f45,0xbfbc09ec,0x03bd9785,0x7fac6dd0,0x31cb8504,0x96eb27b3,0x55fd3941,0xda2547e6,0xabca0a9a,0x28507825,0x530429f4,0x0a2c86da,0xe9b66dfb,0x68dc1462,0xd7486900,0x680ec0a4,0x27a18dee,0x4f3ffea2,0xe887ad8c,0xb58ce006,0x7af4d6b6,0xaace1e7c,0xd3375fec,0xce78a399,0x406b2a42,0x20fe9e35,0xd9f385b9,0xee39d7ab,0x3b124e8b,0x1dc9faf7,0x4b6d1856,0x26a36631,0xeae397b2,0x3a6efa74,0xdd5b4332,0x6841e7f7,0xca7820fb,0xfb0af54e,0xd8feb397,0x454056ac,0xba489527,0x55533a3a,0x20838d87,0xfe6ba9b7,0xd096954b,0x55a867bc,0xa1159a58,0xcca92963,0x99e1db33,0xa62a4a56,0x3f3125f9,0x5ef47e1c,0x9029317c,0xfdf8e802,0x04272f70,0x80bb155c,0x05282ce3,0x95c11548,0xe4c66d22,0x48c1133f,0xc70f86dc,0x07f9c9ee,0x41041f0f,0x404779a4,0x5d886e17,0x325f51eb,0xd59bc0d1,0xf2bcc18f,0x41113564,0x257b7834,0x602a9c60,0xdff8e8a3,0x1f636c1b,0x0e12b4c2,0x02e1329e,0xaf664fd1,0xcad18115,0x6b2395e0,0x333e92e1,0x3b240b62,0xeebeb922,0x85b2a20e,0xe6ba0d99,0xde720c8c,0x2da2f728,0xd0127845,0x95b794fd,0x647d0862,0xe7ccf5f0,0x5449a36f,0x877d48fa,0xc39dfd27,0xf33e8d1e,0x0a476341,0x992eff74,0x3a6f6eab,0xf4f8fd37,0xa812dc60,0xa1ebddf8,0x991be14c,0xdb6e6b0d,0xc67b5510,0x6d672c37,0x2765d43b,0xdcd0e804,0xf1290dc7,0xcc00ffa3,0xb5390f92,0x690fed0b,0x667b9ffb,0xcedb7d9c,0xa091cf0b,0xd9155ea3,0xbb132f88,0x515bad24,0x7b9479bf,0x763bd6eb,0x37392eb3,0xcc115979,0x8026e297,0xf42e312d,0x6842ada7,0xc66a2b3b,0x12754ccc,0x782ef11c,0x6a124237,0xb79251e7,0x06a1bbe6,0x4bfb6350,0x1a6b1018,0x11caedfa,0x3d25bdd8,0xe2e1c3c9,0x44421659,0x0a121386,0xd90cec6e,0xd5abea2a,0x64af674e,0xda86a85f,0xbebfe988,0x64e4c3fe,0x9dbc8057,0xf0f7c086,0x60787bf8,0x6003604d,0xd1fd8346,0xf6381fb0,0x7745ae04,0xd736fccc,0x83426b33,0xf01eab71,0xb0804187,0x3c005e5f,0x77a057be,0xbde8ae24,0x55464299,0xbf582e61,0x4e58f48f,0xf2ddfda2,0xf474ef38,0x8789bdc2,0x5366f9c3,0xc8b38e74,0xb475f255,0x46fcd9b9,0x7aeb2661,0x8b1ddf84,0x846a0e79,0x915f95e2,0x466e598e,0x20b45770,0x8cd55591,0xc902de4c,0xb90bace1,0xbb8205d0,0x11a86248,0x7574a99e,0xb77f19b6,0xe0a9dc09,0x662d09a1,0xc4324633,0xe85a1f02,0x09f0be8c,0x4a99a025,0x1d6efe10,0x1ab93d1d,0x0ba5a4df,0xa186f20f,0x2868f169,0xdcb7da83,0x573906fe,0xa1e2ce9b,0x4fcd7f52,0x50115e01,0xa70683fa,0xa002b5c4,0x0de6d027,0x9af88c27,0x773f8641,0xc3604c06,0x61a806b5,0xf0177a28,0xc0f586e0,0x006058aa,0x30dc7d62,0x11e69ed7,0x2338ea63,0x53c2dd94,0xc2c21634,0xbbcbee56,0x90bcb6de,0xebfc7da1,0xce591d76,0x6f05e409,0x4b7c0188,0x39720a3d,0x7c927c24,0x86e3725f,0x724d9db9,0x1ac15bb4,0xd39eb8fc,0xed545578,0x08fca5b5,0xd83d7cd3,0x4dad0fc4,0x1e50ef5e,0xb161e6f8,0xa28514d9,0x6c51133c,0x6fd5c7e7,0x56e14ec4,0x362abfce,0xddc6c837,0xd79a3234,0x92638212,0x670efa8e,0x406000e0]),new Uint32Array([0x3a39ce37,0xd3faf5cf,0xabc27737,0x5ac52d1b,0x5cb0679e,0x4fa33742,0xd3822740,0x99bc9bbe,0xd5118e9d,0xbf0f7315,0xd62d1c7e,0xc700c47b,0xb78c1b6b,0x21a19045,0xb26eb1be,0x6a366eb4,0x5748ab2f,0xbc946e79,0xc6a376d2,0x6549c2c8,0x530ff8ee,0x468dde7d,0xd5730a1d,0x4cd04dc6,0x2939bbdb,0xa9ba4650,0xac9526e8,0xbe5ee304,0xa1fad5f0,0x6a2d519a,0x63ef8ce2,0x9a86ee22,0xc089c2b8,0x43242ef6,0xa51e03aa,0x9cf2d0a4,0x83c061ba,0x9be96a4d,0x8fe51550,0xba645bd6,0x2826a2f9,0xa73a3ae1,0x4ba99586,0xef5562e9,0xc72fefd3,0xf752f7da,0x3f046f69,0x77fa0a59,0x80e4a915,0x87b08601,0x9b09e6ad,0x3b3ee593,0xe990fd5a,0x9e34d797,0x2cf0b7d9,0x022b8b51,0x96d5ac3a,0x017da67d,0xd1cf3ed6,0x7c7d2d28,0x1f9f25cf,0xadf2b89b,0x5ad6b472,0x5a88f54c,0xe029ac71,0xe019a5e6,0x47b0acfd,0xed93fa9b,0xe8d3c48d,0x283b57cc,0xf8d56629,0x79132e28,0x785f0191,0xed756055,0xf7960e44,0xe3d35e8c,0x15056dd4,0x88f46dba,0x03a16125,0x0564f0bd,0xc3eb9e15,0x3c9057a2,0x97271aec,0xa93a072a,0x1b3f6d9b,0x1e6321f5,0xf59c66fb,0x26dcf319,0x7533d928,0xb155fdf5,0x03563482,0x8aba3cbb,0x28517711,0xc20ad9f8,0xabcc5167,0xccad925f,0x4de81751,0x3830dc8e,0x379d5862,0x9320f991,0xea7a90c2,0xfb3e7bce,0x5121ce64,0x774fbe32,0xa8b6e37e,0xc3293d46,0x48de5369,0x6413e680,0xa2ae0810,0xdd6db224,0x69852dfd,0x09072166,0xb39a460a,0x6445c0dd,0x586cdecf,0x1c20c8ae,0x5bbef7dd,0x1b588d40,0xccd2017f,0x6bb4e3bb,0xdda26a7e,0x3a59ff45,0x3e350a44,0xbcb4cdd5,0x72eacea8,0xfa6484bb,0x8d6612ae,0xbf3c6f47,0xd29be463,0x542f5d9e,0xaec2771b,0xf64e6370,0x740e0d8d,0xe75b1357,0xf8721671,0xaf537d5d,0x4040cb08,0x4eb4e2cc,0x34d2466a,0x0115af84,0xe1b00428,0x95983a1d,0x06b89fb4,0xce6ea048,0x6f3f3b82,0x3520ab82,0x011a1d4b,0x277227f8,0x611560b1,0xe7933fdc,0xbb3a792b,0x344525bd,0xa08839e1,0x51ce794b,0x2f32c9b7,0xa01fbac9,0xe01cc87e,0xbcc7d1f6,0xcf0111c3,0xa1e8aac7,0x1a908749,0xd44fbd9a,0xd0dadecb,0xd50ada38,0x0339c32a,0xc6913667,0x8df9317c,0xe0b12b4f,0xf79e59b7,0x43f5bb3a,0xf2d519ff,0x27d9459c,0xbf97222c,0x15e6fc2a,0x0f91fc71,0x9b941525,0xfae59361,0xceb69ceb,0xc2a86459,0x12baa8d1,0xb6c1075e,0xe3056a0c,0x10d25065,0xcb03a442,0xe0ec6e0e,0x1698db3b,0x4c98a0be,0x3278e964,0x9f1f9532,0xe0d392df,0xd3a0342b,0x8971f21e,0x1b0a7441,0x4ba3348c,0xc5be7120,0xc37632d8,0xdf359f8d,0x9b992f2e,0xe60b6f47,0x0fe3f11d,0xe54cda54,0x1edad891,0xce6279cf,0xcd3e7e6f,0x1618b166,0xfd2c1d05,0x848fd2c5,0xf6fb2299,0xf523f357,0xa6327623,0x93a83531,0x56cccd02,0xacf08162,0x5a75ebb5,0x6e163697,0x88d273cc,0xde966292,0x81b949d0,0x4c50901b,0x71c65614,0xe6c6c7bd,0x327a140a,0x45e1d006,0xc3f27b9a,0xc9aa53fd,0x62a80f00,0xbb25bfe2,0x35bdd2f6,0x71126905,0xb2040222,0xb6cbcf7c,0xcd769c2b,0x53113ec0,0x1640e3d3,0x38abbd60,0x2547adf0,0xba38209c,0xf746ce76,0x77afa1c5,0x20756060,0x85cbfe4e,0x8ae88dd8,0x7aaaf9b0,0x4cf9aa7e,0x1948c25c,0x02fb8a8c,0x01c36ae4,0xd6ebe1f9,0x90d4f869,0xa65cdea0,0x3f09252d,0xc208e69f,0xb74e6132,0xce77e25b,0x578fdfe3,0x3ac372e6])];this.P=new Uint32Array([0x243f6a88,0x85a308d3,0x13198a2e,0x03707344,0xa4093822,0x299f31d0,0x082efa98,0xec4e6c89,0x452821e6,0x38d01377,0xbe5466cf,0x34e90c6c,0xc0ac29b7,0xc97c50dd,0x3f84d5b5,0xb5470917,0x9216d5d9,0x8979fb1b]);};function F(S,x8,i){return(S[0][x8[i+3]]+S[1][x8[i+2]]^S[2][x8[i+1]])+S[3][x8[i]];};Blowfish.prototype.encipher=function(x,x8){if(x8===undefined){x8=new Uint8Array(x.buffer);if(x.byteOffset!==0)x8=x8.subarray(x.byteOffset);}x[0]^=this.P[0];for(var i=1;i<16;i+=2){x[1]^=F(this.S,x8,0)^this.P[i];x[0]^=F(this.S,x8,4)^this.P[i+1];}var t=x[0];x[0]=x[1]^this.P[17];x[1]=t;};Blowfish.prototype.decipher=function(x){var x8=new Uint8Array(x.buffer);if(x.byteOffset!==0)x8=x8.subarray(x.byteOffset);x[0]^=this.P[17];for(var i=16;i>0;i-=2){x[1]^=F(this.S,x8,0)^this.P[i];x[0]^=F(this.S,x8,4)^this.P[i-1];}var t=x[0];x[0]=x[1]^this.P[0];x[1]=t;};function stream2word(data,databytes){var i,temp=0;for(i=0;i<4;i++,BLF_J++){if(BLF_J>=databytes)BLF_J=0;temp=temp<<8|data[BLF_J];}return temp;};Blowfish.prototype.expand0state=function(key,keybytes){var d=new Uint32Array(2),i,k;var d8=new Uint8Array(d.buffer);for(i=0,BLF_J=0;i<18;i++){this.P[i]^=stream2word(key,keybytes);}BLF_J=0;for(i=0;i<18;i+=2){this.encipher(d,d8);this.P[i]=d[0];this.P[i+1]=d[1];}for(i=0;i<4;i++){for(k=0;k<256;k+=2){this.encipher(d,d8);this.S[i][k]=d[0];this.S[i][k+1]=d[1];}}};Blowfish.prototype.expandstate=function(data,databytes,key,keybytes){var d=new Uint32Array(2),i,k;for(i=0,BLF_J=0;i<18;i++){this.P[i]^=stream2word(key,keybytes);}for(i=0,BLF_J=0;i<18;i+=2){d[0]^=stream2word(data,databytes);d[1]^=stream2word(data,databytes);this.encipher(d);this.P[i]=d[0];this.P[i+1]=d[1];}for(i=0;i<4;i++){for(k=0;k<256;k+=2){d[0]^=stream2word(data,databytes);d[1]^=stream2word(data,databytes);this.encipher(d);this.S[i][k]=d[0];this.S[i][k+1]=d[1];}}BLF_J=0;};Blowfish.prototype.enc=function(data,blocks){for(var i=0;i>>24;out[4*i+2]=cdata[i]>>>16;out[4*i+1]=cdata[i]>>>8;out[4*i+0]=cdata[i];}};function bcrypt_pbkdf(pass,passlen,salt,saltlen,key,keylen,rounds){var sha2pass=new Uint8Array(64),sha2salt=new Uint8Array(64),out=new Uint8Array(BCRYPT_HASHSIZE),tmpout=new Uint8Array(BCRYPT_HASHSIZE),countsalt=new Uint8Array(saltlen+4),i,j,amt,stride,dest,count,origkeylen=keylen;if(rounds<1)return-1;if(passlen===0||saltlen===0||keylen===0||keylen>out.byteLength*out.byteLength||saltlen>1<<20)return-1;stride=Math.floor((keylen+out.byteLength-1)/out.byteLength);amt=Math.floor((keylen+stride-1)/stride);for(i=0;i0;count++){countsalt[saltlen+0]=count>>>24;countsalt[saltlen+1]=count>>>16;countsalt[saltlen+2]=count>>>8;countsalt[saltlen+3]=count;crypto_hash_sha512(sha2salt,countsalt,saltlen+4);bcrypt_hash(sha2pass,sha2salt,tmpout);for(i=out.byteLength;i--;){out[i]=tmpout[i];}for(i=1;i=origkeylen)break;key[dest]=out[i];}keylen-=i;}return 0;};module.exports={BLOCKS:BCRYPT_BLOCKS,HASHSIZE:BCRYPT_HASHSIZE,hash:bcrypt_hash,pbkdf:bcrypt_pbkdf}; +/* WEBPACK VAR INJECTION */(function(process) {'use strict';Object.defineProperty(exports,"__esModule",{value:true});exports.compose=exports.applyMiddleware=exports.bindActionCreators=exports.combineReducers=exports.createStore=undefined;var _createStore=__webpack_require__(448);var _createStore2=_interopRequireDefault(_createStore);var _combineReducers=__webpack_require__(998);var _combineReducers2=_interopRequireDefault(_combineReducers);var _bindActionCreators=__webpack_require__(997);var _bindActionCreators2=_interopRequireDefault(_bindActionCreators);var _applyMiddleware=__webpack_require__(996);var _applyMiddleware2=_interopRequireDefault(_applyMiddleware);var _compose=__webpack_require__(447);var _compose2=_interopRequireDefault(_compose);var _warning=__webpack_require__(449);var _warning2=_interopRequireDefault(_warning);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}/* +* This is a dummy function to check if the function name has been altered by minification. +* If the function has been minified and NODE_ENV !== 'production', warn the user. +*/function isCrushed(){}if(process.env.NODE_ENV!=='production'&&typeof isCrushed.name==='string'&&isCrushed.name!=='isCrushed'){(0,_warning2.default)('You are currently using minified code outside of NODE_ENV === \'production\'. '+'This means that you are running a slower development build of Redux. '+'You can use loose-envify (https://github.com/zertosh/loose-envify) for browserify '+'or DefinePlugin for webpack (http://stackoverflow.com/questions/30030031) '+'to ensure you have the correct code for your production build.');}exports.createStore=_createStore2.default;exports.combineReducers=_combineReducers2.default;exports.bindActionCreators=_bindActionCreators2.default;exports.applyMiddleware=_applyMiddleware2.default;exports.compose=_compose2.default; +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 305 */ +/* 305 */, +/* 306 */, +/* 307 */, +/* 308 */, +/* 309 */, +/* 310 */, +/* 311 */, +/* 312 */, +/* 313 */, +/* 314 */, +/* 315 */, +/* 316 */, +/* 317 */, +/* 318 */, +/* 319 */, +/* 320 */, +/* 321 */, +/* 322 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};var r;module.exports=function rand(len){if(!r)r=new Rand(null);return r.generate(len);};function Rand(rand){this.rand=rand;}module.exports.Rand=Rand;Rand.prototype.generate=function generate(len){return this._rand(len);};if((typeof window==='undefined'?'undefined':_typeof(window))==='object'){if(window.crypto&&window.crypto.getRandomValues){// Modern browsers -Rand.prototype._rand=function _rand(n){var arr=new Uint8Array(n);window.crypto.getRandomValues(arr);return arr;};}else if(window.msCrypto&&window.msCrypto.getRandomValues){// IE -Rand.prototype._rand=function _rand(n){var arr=new Uint8Array(n);window.msCrypto.getRandomValues(arr);return arr;};}else{// Old junk -Rand.prototype._rand=function(){throw new Error('Not implemented yet');};}}else{// Node.js or Web worker -try{var crypto=__webpack_require__(1201);Rand.prototype._rand=function _rand(n){return crypto.randomBytes(n);};}catch(e){// Emulate crypto API using randy -Rand.prototype._rand=function _rand(n){var res=new Uint8Array(n);for(var i=0;i>i%8;self._prev=shiftIn(self._prev,decrypt?bit:value);}return out;}exports.encrypt=function(self,chunk,decrypt){var len=chunk.length;var out=new Buffer(len);var i=-1;while(++i>7;}return out;} -/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(4).Buffer)) - -/***/ }, -/* 310 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(Buffer) {"use strict";function encryptByte(self,byteParam,decrypt){var pad=self._cipher.encryptBlock(self._prev);var out=pad[0]^byteParam;self._prev=Buffer.concat([self._prev.slice(1),new Buffer([decrypt?byteParam:out])]);return out;}exports.encrypt=function(self,chunk,decrypt){var len=chunk.length;var out=new Buffer(len);var i=-1;while(++i>5]|=0x80<>>9<<4)+14]=len;var a=1732584193;var b=-271733879;var c=-1732584194;var d=271733878;for(var i=0;i>16)+(y>>16)+(lsw>>16);return msw<<16|lsw&0xFFFF;}/* - * Bitwise rotate a 32-bit number to the left. - */function bit_rol(num,cnt){return num<>>32-cnt;}module.exports=function md5(buf){return helpers.hash(buf,core_md5,16);}; - -/***/ }, -/* 317 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -/*istanbul ignore start*/'use strict';exports.__esModule=true;exports.canonicalize=exports.convertChangesToXML=exports.convertChangesToDMP=exports.parsePatch=exports.applyPatches=exports.applyPatch=exports.createPatch=exports.createTwoFilesPatch=exports.structuredPatch=exports.diffArrays=exports.diffJson=exports.diffCss=exports.diffSentences=exports.diffTrimmedLines=exports.diffLines=exports.diffWordsWithSpace=exports.diffWords=exports.diffChars=exports.Diff=undefined;/*istanbul ignore end*/var/*istanbul ignore start*/_base=__webpack_require__(57)/*istanbul ignore end*/;/*istanbul ignore start*/var _base2=_interopRequireDefault(_base);/*istanbul ignore end*/var/*istanbul ignore start*/_character=__webpack_require__(612)/*istanbul ignore end*/;var/*istanbul ignore start*/_word=__webpack_require__(616)/*istanbul ignore end*/;var/*istanbul ignore start*/_line=__webpack_require__(202)/*istanbul ignore end*/;var/*istanbul ignore start*/_sentence=__webpack_require__(615)/*istanbul ignore end*/;var/*istanbul ignore start*/_css=__webpack_require__(613)/*istanbul ignore end*/;var/*istanbul ignore start*/_json=__webpack_require__(614)/*istanbul ignore end*/;var/*istanbul ignore start*/_array=__webpack_require__(611)/*istanbul ignore end*/;var/*istanbul ignore start*/_apply=__webpack_require__(617)/*istanbul ignore end*/;var/*istanbul ignore start*/_parse=__webpack_require__(318)/*istanbul ignore end*/;var/*istanbul ignore start*/_create=__webpack_require__(618)/*istanbul ignore end*/;var/*istanbul ignore start*/_dmp=__webpack_require__(609)/*istanbul ignore end*/;var/*istanbul ignore start*/_xml=__webpack_require__(610)/*istanbul ignore end*/;/*istanbul ignore start*/function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{'default':obj};}exports./*istanbul ignore end*/Diff=_base2['default'];/*istanbul ignore start*/exports./*istanbul ignore end*/diffChars=_character.diffChars;/*istanbul ignore start*/exports./*istanbul ignore end*/diffWords=_word.diffWords;/*istanbul ignore start*/exports./*istanbul ignore end*/diffWordsWithSpace=_word.diffWordsWithSpace;/*istanbul ignore start*/exports./*istanbul ignore end*/diffLines=_line.diffLines;/*istanbul ignore start*/exports./*istanbul ignore end*/diffTrimmedLines=_line.diffTrimmedLines;/*istanbul ignore start*/exports./*istanbul ignore end*/diffSentences=_sentence.diffSentences;/*istanbul ignore start*/exports./*istanbul ignore end*/diffCss=_css.diffCss;/*istanbul ignore start*/exports./*istanbul ignore end*/diffJson=_json.diffJson;/*istanbul ignore start*/exports./*istanbul ignore end*/diffArrays=_array.diffArrays;/*istanbul ignore start*/exports./*istanbul ignore end*/structuredPatch=_create.structuredPatch;/*istanbul ignore start*/exports./*istanbul ignore end*/createTwoFilesPatch=_create.createTwoFilesPatch;/*istanbul ignore start*/exports./*istanbul ignore end*/createPatch=_create.createPatch;/*istanbul ignore start*/exports./*istanbul ignore end*/applyPatch=_apply.applyPatch;/*istanbul ignore start*/exports./*istanbul ignore end*/applyPatches=_apply.applyPatches;/*istanbul ignore start*/exports./*istanbul ignore end*/parsePatch=_parse.parsePatch;/*istanbul ignore start*/exports./*istanbul ignore end*/convertChangesToDMP=_dmp.convertChangesToDMP;/*istanbul ignore start*/exports./*istanbul ignore end*/convertChangesToXML=_xml.convertChangesToXML;/*istanbul ignore start*/exports./*istanbul ignore end*/canonicalize=_json.canonicalize;/* See LICENSE file for terms of use *//* +/*istanbul ignore start*/'use strict';exports.__esModule=true;exports.canonicalize=exports.convertChangesToXML=exports.convertChangesToDMP=exports.parsePatch=exports.applyPatches=exports.applyPatch=exports.createPatch=exports.createTwoFilesPatch=exports.structuredPatch=exports.diffArrays=exports.diffJson=exports.diffCss=exports.diffSentences=exports.diffTrimmedLines=exports.diffLines=exports.diffWordsWithSpace=exports.diffWords=exports.diffChars=exports.Diff=undefined;/*istanbul ignore end*/var/*istanbul ignore start*/_base=__webpack_require__(56)/*istanbul ignore end*/;/*istanbul ignore start*/var _base2=_interopRequireDefault(_base);/*istanbul ignore end*/var/*istanbul ignore start*/_character=__webpack_require__(620)/*istanbul ignore end*/;var/*istanbul ignore start*/_word=__webpack_require__(624)/*istanbul ignore end*/;var/*istanbul ignore start*/_line=__webpack_require__(205)/*istanbul ignore end*/;var/*istanbul ignore start*/_sentence=__webpack_require__(623)/*istanbul ignore end*/;var/*istanbul ignore start*/_css=__webpack_require__(621)/*istanbul ignore end*/;var/*istanbul ignore start*/_json=__webpack_require__(622)/*istanbul ignore end*/;var/*istanbul ignore start*/_array=__webpack_require__(619)/*istanbul ignore end*/;var/*istanbul ignore start*/_apply=__webpack_require__(625)/*istanbul ignore end*/;var/*istanbul ignore start*/_parse=__webpack_require__(323)/*istanbul ignore end*/;var/*istanbul ignore start*/_create=__webpack_require__(626)/*istanbul ignore end*/;var/*istanbul ignore start*/_dmp=__webpack_require__(617)/*istanbul ignore end*/;var/*istanbul ignore start*/_xml=__webpack_require__(618)/*istanbul ignore end*/;/*istanbul ignore start*/function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{'default':obj};}exports./*istanbul ignore end*/Diff=_base2['default'];/*istanbul ignore start*/exports./*istanbul ignore end*/diffChars=_character.diffChars;/*istanbul ignore start*/exports./*istanbul ignore end*/diffWords=_word.diffWords;/*istanbul ignore start*/exports./*istanbul ignore end*/diffWordsWithSpace=_word.diffWordsWithSpace;/*istanbul ignore start*/exports./*istanbul ignore end*/diffLines=_line.diffLines;/*istanbul ignore start*/exports./*istanbul ignore end*/diffTrimmedLines=_line.diffTrimmedLines;/*istanbul ignore start*/exports./*istanbul ignore end*/diffSentences=_sentence.diffSentences;/*istanbul ignore start*/exports./*istanbul ignore end*/diffCss=_css.diffCss;/*istanbul ignore start*/exports./*istanbul ignore end*/diffJson=_json.diffJson;/*istanbul ignore start*/exports./*istanbul ignore end*/diffArrays=_array.diffArrays;/*istanbul ignore start*/exports./*istanbul ignore end*/structuredPatch=_create.structuredPatch;/*istanbul ignore start*/exports./*istanbul ignore end*/createTwoFilesPatch=_create.createTwoFilesPatch;/*istanbul ignore start*/exports./*istanbul ignore end*/createPatch=_create.createPatch;/*istanbul ignore start*/exports./*istanbul ignore end*/applyPatch=_apply.applyPatch;/*istanbul ignore start*/exports./*istanbul ignore end*/applyPatches=_apply.applyPatches;/*istanbul ignore start*/exports./*istanbul ignore end*/parsePatch=_parse.parsePatch;/*istanbul ignore start*/exports./*istanbul ignore end*/convertChangesToDMP=_dmp.convertChangesToDMP;/*istanbul ignore start*/exports./*istanbul ignore end*/convertChangesToXML=_xml.convertChangesToXML;/*istanbul ignore start*/exports./*istanbul ignore end*/canonicalize=_json.canonicalize;/* See LICENSE file for terms of use *//* * Text diff implementation. * * This library supports the following APIS: @@ -8163,7 +5662,7 @@ Rand.prototype._rand=function _rand(n){var res=new Uint8Array(n);for(var i=0;ibits){num.ishrn(1);}if(num.isEven()){num.iadd(ONE);}if(!num.testn(1)){num.iadd(TWO);}if(!gen.cmp(TWO)){while(num.mod(TWENTYFOUR).cmp(ELEVEN)){num.iadd(FOUR);}}else if(!gen.cmp(FIVE)){while(num.mod(TEN).cmp(THREE)){num.iadd(FOUR);}}n2=num.shrn(1);if(simpleSieve(n2)&&simpleSieve(num)&&fermatTest(n2)&&fermatTest(num)&&millerRabin.test(n2)&&millerRabin.test(num)){return num;}}} - -/***/ }, -/* 321 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};/* - * extsprintf.js: extended POSIX-style sprintf - */var mod_assert=__webpack_require__(43);var mod_util=__webpack_require__(10);/* - * Public interface - */exports.sprintf=jsSprintf;/* - * Stripped down version of s[n]printf(3c). We make a best effort to throw an - * exception when given a format string we don't understand, rather than - * ignoring it, so that we won't break existing programs if/when we go implement - * the rest of this. - * - * This implementation currently supports specifying - * - field alignment ('-' flag), - * - zero-pad ('0' flag) - * - always show numeric sign ('+' flag), - * - field width - * - conversions for strings, decimal integers, and floats (numbers). - * - argument size specifiers. These are all accepted but ignored, since - * Javascript has no notion of the physical size of an argument. - * - * Everything else is currently unsupported, most notably precision, unsigned - * numbers, non-decimal numbers, and characters. - */function jsSprintf(fmt){var regex=['([^%]*)',/* normal text */'%',/* start of format */'([\'\\-+ #0]*?)',/* flags (optional) */'([1-9]\\d*)?',/* width (optional) */'(\\.([1-9]\\d*))?',/* precision (optional) */'[lhjztL]*?',/* length mods (ignored) */'([diouxXfFeEgGaAcCsSp%jr])'/* conversion */].join('');var re=new RegExp(regex);var args=Array.prototype.slice.call(arguments,1);var flags,width,precision,conversion;var left,pad,sign,arg,match;var ret='';var argn=1;mod_assert.equal('string',typeof fmt==='undefined'?'undefined':_typeof(fmt));while((match=re.exec(fmt))!==null){ret+=match[1];fmt=fmt.substring(match[0].length);flags=match[2]||'';width=match[3]||0;precision=match[4]||'';conversion=match[6];left=false;sign=false;pad=' ';if(conversion=='%'){ret+='%';continue;}if(args.length===0)throw new Error('too few args to sprintf');arg=args.shift();argn++;if(flags.match(/[\' #]/))throw new Error('unsupported flags: '+flags);if(precision.length>0)throw new Error('non-zero precision not supported');if(flags.match(/-/))left=true;if(flags.match(/0/))pad='0';if(flags.match(/\+/))sign=true;switch(conversion){case's':if(arg===undefined||arg===null)throw new Error('argument '+argn+': attempted to print undefined or null '+'as a string');ret+=doPad(pad,width,left,arg.toString());break;case'd':arg=Math.floor(arg);/*jsl:fallthru*/case'f':sign=sign&&arg>0?'+':'';ret+=sign+doPad(pad,width,left,arg.toString());break;case'j':/* non-standard */if(width===0)width=10;ret+=mod_util.inspect(arg,false,width);break;case'r':/* non-standard */ret+=dumpException(arg);break;default:throw new Error('unsupported conversion: '+conversion);}}ret+=fmt;return ret;}function doPad(chr,width,left,str){var ret=str;while(ret.length true */function isPlainObject(value){if(!(0,_isObjectLike2.default)(value)||(0,_baseGetTag2.default)(value)!=objectTag){return false;}var proto=(0,_getPrototype2.default)(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;}exports.default=isPlainObject; -/***/ }, -/* 337 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -'use strict';var getNative=__webpack_require__(71),root=__webpack_require__(31);/* Built-in method references that are verified to be native. */var Set=getNative(root,'Set');module.exports=Set; - -/***/ }, -/* 338 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -'use strict';var root=__webpack_require__(31);/** Built-in value references. */var Uint8Array=root.Uint8Array;module.exports=Uint8Array; - /***/ }, /* 339 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var getNative=__webpack_require__(71),root=__webpack_require__(31);/* Built-in method references that are verified to be native. */var WeakMap=getNative(root,'WeakMap');module.exports=WeakMap; +'use strict';var getNative=__webpack_require__(74),root=__webpack_require__(32);/* Built-in method references that are verified to be native. */var Set=getNative(root,'Set');module.exports=Set; /***/ }, /* 340 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var baseTimes=__webpack_require__(350),isArguments=__webpack_require__(164),isArray=__webpack_require__(9),isBuffer=__webpack_require__(112),isIndex=__webpack_require__(108),isTypedArray=__webpack_require__(168);/** Used for built-in method references. */var objectProto=Object.prototype;/** Used to check objects for own properties. */var hasOwnProperty=objectProto.hasOwnProperty;/** +'use strict';var root=__webpack_require__(32);/** Built-in value references. */var Uint8Array=root.Uint8Array;module.exports=Uint8Array; + +/***/ }, +/* 341 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +'use strict';var getNative=__webpack_require__(74),root=__webpack_require__(32);/* Built-in method references that are verified to be native. */var WeakMap=getNative(root,'WeakMap');module.exports=WeakMap; + +/***/ }, +/* 342 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +'use strict';var baseTimes=__webpack_require__(352),isArguments=__webpack_require__(165),isArray=__webpack_require__(9),isBuffer=__webpack_require__(114),isIndex=__webpack_require__(110),isTypedArray=__webpack_require__(169);/** Used for built-in method references. */var objectProto=Object.prototype;/** Used to check objects for own properties. */var hasOwnProperty=objectProto.hasOwnProperty;/** * Creates an array of the enumerable property names of the array-like `value`. * * @private @@ -8554,7 +5969,7 @@ isType&&(key=='buffer'||key=='byteLength'||key=='byteOffset')||// Skip index pro isIndex(key,length)))){result.push(key);}}return result;}module.exports=arrayLikeKeys; /***/ }, -/* 341 */ +/* 343 */ /***/ function(module, exports) { "use strict"; @@ -8570,11 +5985,11 @@ isIndex(key,length)))){result.push(key);}}return result;}module.exports=arrayLik */function arraySome(array,predicate){var index=-1,length=array==null?0:array.length;while(++index=lower?number:lower;}}return number;}module.exports=baseClamp; /***/ }, -/* 344 */ +/* 346 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -'use strict';var SetCache=__webpack_require__(142),arrayIncludes=__webpack_require__(144),arrayIncludesWith=__webpack_require__(215),arrayMap=__webpack_require__(45),baseUnary=__webpack_require__(151),cacheHas=__webpack_require__(152);/** Used as the size to enable large array optimizations. */var LARGE_ARRAY_SIZE=200;/** +'use strict';var SetCache=__webpack_require__(143),arrayIncludes=__webpack_require__(145),arrayIncludesWith=__webpack_require__(215),arrayMap=__webpack_require__(44),baseUnary=__webpack_require__(152),cacheHas=__webpack_require__(153);/** Used as the size to enable large array optimizations. */var LARGE_ARRAY_SIZE=200;/** * The base implementation of methods like `_.difference` without support * for excluding multiple arrays or iteratee shorthands. * @@ -8617,7 +6032,7 @@ isIndex(key,length)))){result.push(key);}}return result;}module.exports=arrayLik */function baseDifference(array,values,iteratee,comparator){var index=-1,includes=arrayIncludes,isCommon=true,length=array.length,result=[],valuesLength=values.length;if(!length){return result;}if(iteratee){values=arrayMap(values,baseUnary(iteratee));}if(comparator){includes=arrayIncludesWith;isCommon=false;}else if(values.length>=LARGE_ARRAY_SIZE){includes=cacheHas;isCommon=false;values=new SetCache(values);}outer:while(++index1){args.reverse();}if(isAry&&ary0){if(++count>=HOT_COUNT){return arguments[0];}}else{count=0;}return func.apply(undefined,arguments);};}module.exports=shortOut; /***/ }, -/* 375 */ +/* 377 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -9081,7 +6496,7 @@ if(seen){if(!arraySome(other,function(othValue,othIndex){if(!cacheHas(seen,othIn */var stringToPath=memoizeCapped(function(string){var result=[];if(reLeadingDot.test(string)){result.push('');}string.replace(rePropName,function(match,number,quote,string){result.push(quote?string.replace(reEscapeChar,'$1'):number||match);});return result;});module.exports=stringToPath; /***/ }, -/* 376 */ +/* 378 */ /***/ function(module, exports) { "use strict"; @@ -9094,7 +6509,7 @@ if(seen){if(!arraySome(other,function(othValue,othIndex){if(!cacheHas(seen,othIn */function toSource(func){if(func!=null){try{return funcToString.call(func);}catch(e){}try{return func+'';}catch(e){}}return'';}module.exports=toSource; /***/ }, -/* 377 */ +/* 379 */ /***/ function(module, exports) { "use strict"; @@ -9115,11 +6530,11 @@ if(seen){if(!arraySome(other,function(othValue,othIndex){if(!cacheHas(seen,othIn */function compact(array){var index=-1,length=array==null?0:array.length,resIndex=0,result=[];while(++indexMAX_SAFE_INTEGER){return[];}var index=MAX_ARRAY_LENGTH,length=nativeMin(n,MAX_ARRAY_LENGTH);iteratee=castFunction(iteratee);n-=MAX_ARRAY_LENGTH;var result=baseTimes(length,iteratee);while(++index>=7-mask;return new bn(buf);};MillerRabin.prototype.test=function test(n,k,cb){var len=n.bitLength();var red=bn.mont(n);var rone=new bn(1).toRed(red);if(!k)k=Math.max(1,len/48|0);// Find d and s, (n - 1) = (2 ^ s) * d; -var n1=n.subn(1);var n2=n1.subn(1);for(var s=0;!n1.testn(s);s++){}var d=n.shrn(s);var rn1=n1.toRed(red);var prime=true;for(;k>0;k--){var a=this._rand(n2);if(cb)cb(a);var x=a.toRed(red).redPow(d);if(x.cmp(rone)===0||x.cmp(rn1)===0)continue;for(var i=1;i0;k--){var a=this._rand(n2);var g=n.gcd(a);if(g.cmpn(1)!==0)return g;var x=a.toRed(red).redPow(d);if(x.cmp(rone)===0||x.cmp(rn1)===0)continue;for(var i=1;i>>16&0xffff|0,n=0;while(len!==0){// Set limit ~ twice less than 5552, to keep -// s2 in 31-bits, because we force signed ints. -// in other case %= will fail. -n=len>2000?2000:len;len-=n;do{s1=s1+buf[pos++]|0;s2=s2+s1|0;}while(--n);s1%=65521;s2%=65521;}return s1|s2<<16|0;}module.exports=adler32; - -/***/ }, -/* 398 */ -/***/ function(module, exports) { - -"use strict"; -'use strict';// Note: we can't get significant speed boost here. -// So write code to minimize size - no pregenerated tables -// and array tools dependencies. -// Use ordinary array, since untyped makes no boost here -function makeTable(){var c,table=[];for(var n=0;n<256;n++){c=n;for(var k=0;k<8;k++){c=c&1?0xEDB88320^c>>>1:c>>>1;}table[n]=c;}return table;}// Create table on load. Just 255 signed longs. Not a problem. -var crcTable=makeTable();function crc32(crc,buf,len,pos){var t=crcTable,end=pos+len;crc^=-1;for(var i=pos;i>>8^t[(crc^buf[i])&0xFF];}return crc^-1;// >>> 0; -}module.exports=crc32; - -/***/ }, -/* 399 */ -/***/ function(module, exports) { - -"use strict"; -'use strict';module.exports={2:'need dictionary',/* Z_NEED_DICT 2 */1:'stream end',/* Z_STREAM_END 1 */0:'',/* Z_OK 0 */'-1':'file error',/* Z_ERRNO (-1) */'-2':'stream error',/* Z_STREAM_ERROR (-2) */'-3':'data error',/* Z_DATA_ERROR (-3) */'-4':'insufficient memory',/* Z_MEM_ERROR (-4) */'-5':'buffer error',/* Z_BUF_ERROR (-5) */'-6':'incompatible version'/* Z_VERSION_ERROR (-6) */}; - -/***/ }, -/* 400 */ -/***/ function(module, exports, __webpack_require__) { - -"use strict"; -/* WEBPACK VAR INJECTION */(function(process, Buffer) {'use strict';var createHmac=__webpack_require__(200);var checkParameters=__webpack_require__(903);exports.pbkdf2=function(password,salt,iterations,keylen,digest,callback){if(typeof digest==='function'){callback=digest;digest=undefined;}checkParameters(iterations,keylen);if(typeof callback!=='function')throw new Error('No callback provided to pbkdf2');setTimeout(function(){callback(null,exports.pbkdf2Sync(password,salt,iterations,keylen,digest));});};var defaultEncoding;if(process.browser){defaultEncoding='utf-8';}else{var pVersionMajor=parseInt(process.version.split('.')[0].slice(1),10);defaultEncoding=pVersionMajor>=6?'utf-8':'binary';}exports.pbkdf2Sync=function(password,salt,iterations,keylen,digest){if(!Buffer.isBuffer(password))password=new Buffer(password,defaultEncoding);if(!Buffer.isBuffer(salt))salt=new Buffer(salt,defaultEncoding);checkParameters(iterations,keylen);digest=digest||'sha1';var hLen;var l=1;var DK=new Buffer(keylen);var block1=new Buffer(salt.length+4);salt.copy(block1,0,0,salt.length);var r;var T;for(var i=1;i<=l;i++){block1.writeUInt32BE(i,salt.length);var U=createHmac(digest,password).update(block1).digest();if(!hLen){hLen=U.length;T=new Buffer(hLen);l=Math.ceil(keylen/hLen);r=keylen-(l-1)*hLen;}U.copy(T,0,0,hLen);for(var j=1;j=0x30&&c<=0x39||// 0-9 -c>=0x41&&c<=0x5A||// a-z -c>=0x61&&c<=0x7A){// A-Z -out+=str[i];continue;}if(c<0x80){out+=internals.hexTable[c];continue;}if(c<0x800){out+=internals.hexTable[0xC0|c>>6]+internals.hexTable[0x80|c&0x3F];continue;}if(c<0xD800||c>=0xE000){out+=internals.hexTable[0xE0|c>>12]+internals.hexTable[0x80|c>>6&0x3F]+internals.hexTable[0x80|c&0x3F];continue;}++i;c=0x10000+((c&0x3FF)<<10|str.charCodeAt(i)&0x3FF);out+=internals.hexTable[0xF0|c>>18]+internals.hexTable[0x80|c>>12&0x3F]+internals.hexTable[0x80|c>>6&0x3F]+internals.hexTable[0x80|c&0x3F];}return out;};exports.compact=function(obj,refs){if((typeof obj==='undefined'?'undefined':_typeof(obj))!=='object'||obj===null){return obj;}refs=refs||[];var lookup=refs.indexOf(obj);if(lookup!==-1){return refs[lookup];}refs.push(obj);if(Array.isArray(obj)){var compacted=[];for(var i=0,il=obj.length;i=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i];}return target;}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError('Cannot call a class as a function');}}function _inherits(subClass,superClass){if(typeof superClass!=='function'&&superClass!==null){throw new TypeError('Super expression must either be null or a function, not '+(typeof superClass==='undefined'?'undefined':_typeof(superClass)));}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var _react=__webpack_require__(0);var _react2=_interopRequireDefault(_react);var _React$PropTypes=_react2['default'].PropTypes;var bool=_React$PropTypes.bool;var object=_React$PropTypes.object;var string=_React$PropTypes.string;var func=_React$PropTypes.func;function isLeftClickEvent(event){return event.button===0;}function isModifiedEvent(event){return!!(event.metaKey||event.altKey||event.ctrlKey||event.shiftKey);}function isEmptyObject(object){for(var p in object){if(object.hasOwnProperty(p))return false;}return true;}/** +/* WEBPACK VAR INJECTION */(function(process) {'use strict';exports.__esModule=true;var _extends=Object.assign||function(target){for(var i=1;i=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i];}return target;}var _React$PropTypes=_react2.default.PropTypes,bool=_React$PropTypes.bool,object=_React$PropTypes.object,string=_React$PropTypes.string,func=_React$PropTypes.func,oneOfType=_React$PropTypes.oneOfType;function isLeftClickEvent(event){return event.button===0;}function isModifiedEvent(event){return!!(event.metaKey||event.altKey||event.ctrlKey||event.shiftKey);}// TODO: De-duplicate against hasAnyProperties in createTransitionManager. +function isEmptyObject(object){for(var p in object){if(Object.prototype.hasOwnProperty.call(object,p))return false;}return true;}function resolveToLocation(to,router){return typeof to==='function'?to(router.location):to;}/** * A is used to create an element that links to a route. * When that route is active, the link gets the value of its - * `activeClassName` prop + * activeClassName prop. * * For example, assuming you have the following route: * @@ -9775,40 +7106,153 @@ throw new Error(message);/* eslint-disable no-empty */}catch(e){}/* eslint-enabl * in the state/query props, respectively. * * - */var Link=function(_Component){_inherits(Link,_Component);function Link(){_classCallCheck(this,Link);_Component.apply(this,arguments);}Link.prototype.handleClick=function handleClick(event){var allowTransition=true;if(this.props.onClick)this.props.onClick(event);if(isModifiedEvent(event)||!isLeftClickEvent(event))return;if(event.defaultPrevented===true)allowTransition=false;// If target prop is set (e.g. to "_blank") let browser handle link. -/* istanbul ignore if: untestable with Karma */if(this.props.target){if(!allowTransition)event.preventDefault();return;}event.preventDefault();if(allowTransition){var _props=this.props;var state=_props.state;var to=_props.to;var query=_props.query;var hash=_props.hash;if(hash)to+=hash;this.context.history.pushState(state,to,query);}};Link.prototype.render=function render(){var _this=this;var _props2=this.props;var to=_props2.to;var query=_props2.query;var hash=_props2.hash;var state=_props2.state;var activeClassName=_props2.activeClassName;var activeStyle=_props2.activeStyle;var onlyActiveOnIndex=_props2.onlyActiveOnIndex;var props=_objectWithoutProperties(_props2,['to','query','hash','state','activeClassName','activeStyle','onlyActiveOnIndex']);// Manually override onClick. -props.onClick=function(e){return _this.handleClick(e);};// Ignore if rendered outside the context of history, simplifies unit testing. -var history=this.context.history;if(history){props.href=history.createHref(to,query);if(hash)props.href+=hash;if(activeClassName||activeStyle!=null&&!isEmptyObject(activeStyle)){if(history.isActive(to,query,onlyActiveOnIndex)){if(activeClassName)props.className+=props.className===''?activeClassName:' '+activeClassName;if(activeStyle)props.style=_extends({},props.style,activeStyle);}}}return _react2['default'].createElement('a',props);};_createClass(Link,null,[{key:'contextTypes',value:{history:object},enumerable:true},{key:'propTypes',value:{to:string.isRequired,query:object,hash:string,state:object,activeStyle:object,activeClassName:string,onlyActiveOnIndex:bool.isRequired,onClick:func},enumerable:true},{key:'defaultProps',value:{onlyActiveOnIndex:false,className:'',style:{}},enumerable:true}]);return Link;}(_react.Component);exports['default']=Link;module.exports=exports['default']; + */var Link=_react2.default.createClass({displayName:'Link',mixins:[(0,_ContextUtils.ContextSubscriber)('router')],contextTypes:{router:_PropTypes.routerShape},propTypes:{to:oneOfType([string,object,func]),query:object,hash:string,state:object,activeStyle:object,activeClassName:string,onlyActiveOnIndex:bool.isRequired,onClick:func,target:string},getDefaultProps:function getDefaultProps(){return{onlyActiveOnIndex:false,style:{}};},handleClick:function handleClick(event){if(this.props.onClick)this.props.onClick(event);if(event.defaultPrevented)return;var router=this.context.router;!router?process.env.NODE_ENV!=='production'?(0,_invariant2.default)(false,'s rendered outside of a router context cannot navigate.'):(0,_invariant2.default)(false):void 0;if(isModifiedEvent(event)||!isLeftClickEvent(event))return;// If target prop is set (e.g. to "_blank"), let browser handle link. +/* istanbul ignore if: untestable with Karma */if(this.props.target)return;event.preventDefault();router.push(resolveToLocation(this.props.to,router));},render:function render(){var _props=this.props,to=_props.to,activeClassName=_props.activeClassName,activeStyle=_props.activeStyle,onlyActiveOnIndex=_props.onlyActiveOnIndex,props=_objectWithoutProperties(_props,['to','activeClassName','activeStyle','onlyActiveOnIndex']);// Ignore if rendered outside the context of router to simplify unit testing. +var router=this.context.router;if(router){// If user does not specify a `to` prop, return an empty anchor tag. +if(to==null){return _react2.default.createElement('a',props);}var toLocation=resolveToLocation(to,router);props.href=router.createHref(toLocation);if(activeClassName||activeStyle!=null&&!isEmptyObject(activeStyle)){if(router.isActive(toLocation,onlyActiveOnIndex)){if(activeClassName){if(props.className){props.className+=' '+activeClassName;}else{props.className=activeClassName;}}if(activeStyle)props.style=_extends({},props.style,activeStyle);}}}return _react2.default.createElement('a',_extends({},props,{onClick:this.handleClick}));}});exports.default=Link;module.exports=exports['default']; +/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 408 */ +/* 409 */ +/***/ function(module, exports) { + +"use strict"; +'use strict';exports.__esModule=true;exports.isPromise=isPromise;function isPromise(obj){return obj&&typeof obj.then==='function';} + +/***/ }, +/* 410 */ /***/ function(module, exports, __webpack_require__) { "use strict"; -/* WEBPACK VAR INJECTION */(function(process) {'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};exports.__esModule=true;var _createClass=function(){function defineProperties(target,props){for(var i=0;i is used to declare another URL path a client should * be sent to when they request a given URL. * * Redirects are placed alongside routes in the route configuration * and are traversed in the same manner. - */var Redirect=function(_Component){_inherits(Redirect,_Component);function Redirect(){_classCallCheck(this,Redirect);_Component.apply(this,arguments);}Redirect.createRouteFromReactElement=function createRouteFromReactElement(element){var route=_RouteUtils.createRouteFromReactElement(element);if(route.from)route.path=route.from;route.onEnter=function(nextState,replaceState){var location=nextState.location;var params=nextState.params;var pathname=undefined;if(route.to.charAt(0)==='/'){pathname=_PatternUtils.formatPattern(route.to,params);}else if(!route.to){pathname=location.pathname;}else{var routeIndex=nextState.routes.indexOf(route);var parentPattern=Redirect.getRoutePattern(nextState.routes,routeIndex-1);var pattern=parentPattern.replace(/\/*$/,'/')+route.to;pathname=_PatternUtils.formatPattern(pattern,params);}replaceState(route.state||location.state,pathname,route.query||location.query);};return route;};Redirect.getRoutePattern=function getRoutePattern(routes,routeIndex){var parentPattern='';for(var i=routeIndex;i>=0;i--){var route=routes[i];var pattern=route.path||'';parentPattern=pattern.replace(/\/*$/,'/')+parentPattern;if(pattern.indexOf('/')===0)break;}return'/'+parentPattern;};/* istanbul ignore next: sanity check */Redirect.prototype.render=function render(){ true?process.env.NODE_ENV!=='production'?_invariant2['default'](false,' elements are for router configuration only and should not be rendered'):_invariant2['default'](false):undefined;};_createClass(Redirect,null,[{key:'propTypes',value:{path:string,from:string,// Alias for path -to:string.isRequired,query:object,state:object,onEnter:_PropTypes.falsy,children:_PropTypes.falsy},enumerable:true}]);return Redirect;}(_react.Component);exports['default']=Redirect;module.exports=exports['default']; + *//* eslint-disable react/require-render-return */var Redirect=_react2.default.createClass({displayName:'Redirect',statics:{createRouteFromReactElement:function createRouteFromReactElement(element){var route=(0,_RouteUtils.createRouteFromReactElement)(element);if(route.from)route.path=route.from;route.onEnter=function(nextState,replace){var location=nextState.location,params=nextState.params;var pathname=void 0;if(route.to.charAt(0)==='/'){pathname=(0,_PatternUtils.formatPattern)(route.to,params);}else if(!route.to){pathname=location.pathname;}else{var routeIndex=nextState.routes.indexOf(route);var parentPattern=Redirect.getRoutePattern(nextState.routes,routeIndex-1);var pattern=parentPattern.replace(/\/*$/,'/')+route.to;pathname=(0,_PatternUtils.formatPattern)(pattern,params);}replace({pathname:pathname,query:route.query||location.query,state:route.state||location.state});};return route;},getRoutePattern:function getRoutePattern(routes,routeIndex){var parentPattern='';for(var i=routeIndex;i>=0;i--){var route=routes[i];var pattern=route.path||'';parentPattern=pattern.replace(/\/*$/,'/')+parentPattern;if(pattern.indexOf('/')===0)break;}return'/'+parentPattern;}},propTypes:{path:string,from:string,// Alias for path +to:string.isRequired,query:object,state:object,onEnter:_InternalPropTypes.falsy,children:_InternalPropTypes.falsy},/* istanbul ignore next: sanity check */render:function render(){ true?process.env.NODE_ENV!=='production'?(0,_invariant2.default)(false,' elements are for router configuration only and should not be rendered'):(0,_invariant2.default)(false):void 0;}});exports.default=Redirect;module.exports=exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 409 */ +/* 411 */ +/***/ function(module, exports) { + +"use strict"; +"use strict";exports.__esModule=true;var _extends=Object.assign||function(target){for(var i=1;i renders the component tree for a given router state - * and sets the history object and the current location in context. - */var RoutingContext=function(_Component){_inherits(RoutingContext,_Component);function RoutingContext(){_classCallCheck(this,RoutingContext);_Component.apply(this,arguments);}RoutingContext.prototype.getChildContext=function getChildContext(){var _props=this.props;var history=_props.history;var location=_props.location;return{history:history,location:location};};RoutingContext.prototype.createElement=function createElement(component,props){return component==null?null:this.props.createElement(component,props);};RoutingContext.prototype.render=function render(){var _this=this;var _props2=this.props;var history=_props2.history;var location=_props2.location;var routes=_props2.routes;var params=_props2.params;var components=_props2.components;var element=null;if(components){element=components.reduceRight(function(element,components,index){if(components==null)return element;// Don't create new children; use the grandchildren. -var route=routes[index];var routeParams=_getRouteParams2['default'](route,params);var props={history:history,location:location,params:params,route:route,routeParams:routeParams,routes:routes};if(_RouteUtils.isReactChildren(element)){props.children=element;}else if(element){for(var prop in element){if(element.hasOwnProperty(prop))props[prop]=element[prop];}}if((typeof components==='undefined'?'undefined':_typeof(components))==='object'){var elements={};for(var key in components){if(components.hasOwnProperty(key))elements[key]=_this.createElement(components[key],props);}return elements;}return _this.createElement(components,props);},element);}!(element===null||element===false||_react2['default'].isValidElement(element))?process.env.NODE_ENV!=='production'?_invariant2['default'](false,'The root route must render a single element'):_invariant2['default'](false):undefined;return element;};_createClass(RoutingContext,null,[{key:'propTypes',value:{history:object.isRequired,createElement:func.isRequired,location:object.isRequired,routes:array.isRequired,params:object.isRequired,components:array.isRequired},enumerable:true},{key:'defaultProps',value:{createElement:_react2['default'].createElement},enumerable:true},{key:'childContextTypes',value:{history:object.isRequired,location:object.isRequired},enumerable:true}]);return RoutingContext;}(_react.Component);exports['default']=RoutingContext;module.exports=exports['default']; +'use strict';exports.__esModule=true;exports.default=createMemoryHistory;var _useQueries=__webpack_require__(418);var _useQueries2=_interopRequireDefault(_useQueries);var _useBasename=__webpack_require__(417);var _useBasename2=_interopRequireDefault(_useBasename);var _createMemoryHistory=__webpack_require__(938);var _createMemoryHistory2=_interopRequireDefault(_createMemoryHistory);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function createMemoryHistory(options){// signatures and type checking differ between `useQueries` and +// `createMemoryHistory`, have to create `memoryHistory` first because +// `useQueries` doesn't understand the signature +var memoryHistory=(0,_createMemoryHistory2.default)(options);var createHistory=function createHistory(){return memoryHistory;};var history=(0,_useQueries2.default)((0,_useBasename2.default)(createHistory))(options);return history;}module.exports=exports['default']; + +/***/ }, +/* 413 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +'use strict';exports.__esModule=true;exports.default=function(createHistory){var history=void 0;if(canUseDOM)history=(0,_useRouterHistory2.default)(createHistory)();return history;};var _useRouterHistory=__webpack_require__(415);var _useRouterHistory2=_interopRequireDefault(_useRouterHistory);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}var canUseDOM=!!(typeof window!=='undefined'&&window.document&&window.document.createElement);module.exports=exports['default']; + +/***/ }, +/* 414 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +/* WEBPACK VAR INJECTION */(function(process) {'use strict';exports.__esModule=true;var _extends=Object.assign||function(target){for(var i=1;i1&&arguments[1]!==undefined?arguments[1]:false;return route.__id__||create&&(route.__id__=RouteGuid++);}var RouteHooks=Object.create(null);function getRouteHooksForRoutes(routes){return routes.map(function(route){return RouteHooks[getRouteID(route)];}).filter(function(hook){return hook;});}function transitionHook(location,callback){(0,_matchRoutes2.default)(routes,location,function(error,nextState){if(nextState==null){// TODO: We didn't actually match anything, but hang +// onto error/nextState so we don't have to matchRoutes +// again in the listen callback. +callback();return;}// Cache some state here so we don't have to +// matchRoutes() again in the listen callback. +partialNextState=_extends({},nextState,{location:location});var hooks=getRouteHooksForRoutes((0,_computeChangedRoutes3.default)(state,partialNextState).leaveRoutes);var result=void 0;for(var i=0,len=hooks.length;result==null&&i1?_len-1:0),_key=1;_key<_len;_key++){args[_key-1]=arguments[_key];}return addBasename(history.createLocation.apply(history,[prependBasename(location)].concat(args)));};return _extends({},history,{getCurrentLocation:getCurrentLocation,listenBefore:listenBefore,listen:listen,push:push,replace:replace,createPath:createPath,createHref:createHref,createLocation:createLocation});};};exports.default=useBasename; + +/***/ }, +/* 418 */ +/***/ function(module, exports, __webpack_require__) { + +"use strict"; +'use strict';exports.__esModule=true;var _extends=Object.assign||function(target){for(var i=1;i1?_len-1:0),_key=1;_key<_len;_key++){args[_key-1]=arguments[_key];}var newLocation=history.createLocation.apply(history,[encodeQuery(location,location.query)].concat(args));if(location.query)newLocation.query=(0,_LocationUtils.createQuery)(location.query);return decodeQuery(newLocation);};return _extends({},history,{getCurrentLocation:getCurrentLocation,listenBefore:listenBefore,listen:listen,push:push,replace:replace,createPath:createPath,createHref:createHref,createLocation:createLocation});};};exports.default=useQueries; + +/***/ }, +/* 419 */ /***/ function(module, exports) { "use strict"; @@ -9845,7 +7289,7 @@ Object.keys(isUnitlessNumber).forEach(function(prop){prefixes.forEach(function(p */var shorthandPropertyExpansions={background:{backgroundAttachment:true,backgroundColor:true,backgroundImage:true,backgroundPositionX:true,backgroundPositionY:true,backgroundRepeat:true},backgroundPosition:{backgroundPositionX:true,backgroundPositionY:true},border:{borderWidth:true,borderStyle:true,borderColor:true},borderBottom:{borderBottomWidth:true,borderBottomStyle:true,borderBottomColor:true},borderLeft:{borderLeftWidth:true,borderLeftStyle:true,borderLeftColor:true},borderRight:{borderRightWidth:true,borderRightStyle:true,borderRightColor:true},borderTop:{borderTopWidth:true,borderTopStyle:true,borderTopColor:true},font:{fontStyle:true,fontVariant:true,fontWeight:true,fontSize:true,lineHeight:true,fontFamily:true},outline:{outlineWidth:true,outlineStyle:true,outlineColor:true}};var CSSProperty={isUnitlessNumber:isUnitlessNumber,shorthandPropertyExpansions:shorthandPropertyExpansions};module.exports=CSSProperty; /***/ }, -/* 411 */ +/* 420 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -9859,7 +7303,7 @@ Object.keys(isUnitlessNumber).forEach(function(prop){prefixes.forEach(function(p * * @providesModule DOMChildrenOperations * @typechecks static-only - */'use strict';var Danger=__webpack_require__(938);var ReactMultiChildUpdateTypes=__webpack_require__(428);var ReactPerf=__webpack_require__(37);var setInnerHTML=__webpack_require__(182);var setTextContent=__webpack_require__(256);var invariant=__webpack_require__(6);/** + */'use strict';var Danger=__webpack_require__(944);var ReactMultiChildUpdateTypes=__webpack_require__(437);var ReactPerf=__webpack_require__(37);var setInnerHTML=__webpack_require__(185);var setTextContent=__webpack_require__(262);var invariant=__webpack_require__(6);/** * Inserts `childNode` as a child of `parentNode` at the `index`. * * @param {DOMElement} parentNode Parent node in which to insert. @@ -9890,7 +7334,7 @@ break;}}}};ReactPerf.measureMethods(DOMChildrenOperations,'DOMChildrenOperations /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 412 */ +/* 421 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -9970,7 +7414,7 @@ EventPluginOrder=Array.prototype.slice.call(InjectedEventPluginOrder);recomputeP /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 413 */ +/* 422 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -9983,7 +7427,7 @@ EventPluginOrder=Array.prototype.slice.call(InjectedEventPluginOrder);recomputeP * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactChildren - */'use strict';var PooledClass=__webpack_require__(64);var ReactElement=__webpack_require__(34);var emptyFunction=__webpack_require__(41);var traverseAllChildren=__webpack_require__(258);var twoArgumentPooler=PooledClass.twoArgumentPooler;var fourArgumentPooler=PooledClass.fourArgumentPooler;var userProvidedKeyEscapeRegex=/\/(?!\/)/g;function escapeUserProvidedKey(text){return(''+text).replace(userProvidedKeyEscapeRegex,'//');}/** + */'use strict';var PooledClass=__webpack_require__(65);var ReactElement=__webpack_require__(34);var emptyFunction=__webpack_require__(40);var traverseAllChildren=__webpack_require__(264);var twoArgumentPooler=PooledClass.twoArgumentPooler;var fourArgumentPooler=PooledClass.fourArgumentPooler;var userProvidedKeyEscapeRegex=/\/(?!\/)/g;function escapeUserProvidedKey(text){return(''+text).replace(userProvidedKeyEscapeRegex,'//');}/** * PooledClass representing the bookkeeping associated with performing a child * traversal. Allows avoiding binding callbacks. * @@ -10031,7 +7475,7 @@ keyPrefix+(mappedChild!==child?escapeUserProvidedKey(mappedChild.key||'')+'/':'' */function toArray(children){var result=[];mapIntoWithKeyPrefixInternal(children,result,null,emptyFunction.thatReturnsArgument);return result;}var ReactChildren={forEach:forEachChildren,map:mapChildren,mapIntoWithKeyPrefixInternal:mapIntoWithKeyPrefixInternal,count:countChildren,toArray:toArray};module.exports=ReactChildren; /***/ }, -/* 414 */ +/* 423 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -10044,7 +7488,7 @@ keyPrefix+(mappedChild!==child?escapeUserProvidedKey(mappedChild.key||'')+'/':'' * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactClass - */'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};var ReactComponent=__webpack_require__(415);var ReactElement=__webpack_require__(34);var ReactPropTypeLocations=__webpack_require__(177);var ReactPropTypeLocationNames=__webpack_require__(176);var ReactNoopUpdateQueue=__webpack_require__(430);var assign=__webpack_require__(7);var emptyObject=__webpack_require__(103);var invariant=__webpack_require__(6);var keyMirror=__webpack_require__(135);var keyOf=__webpack_require__(58);var warning=__webpack_require__(8);var MIXINS_KEY=keyOf({mixins:null});/** + */'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};var ReactComponent=__webpack_require__(424);var ReactElement=__webpack_require__(34);var ReactPropTypeLocations=__webpack_require__(180);var ReactPropTypeLocationNames=__webpack_require__(179);var ReactNoopUpdateQueue=__webpack_require__(439);var assign=__webpack_require__(7);var emptyObject=__webpack_require__(105);var invariant=__webpack_require__(6);var keyMirror=__webpack_require__(137);var keyOf=__webpack_require__(57);var warning=__webpack_require__(8);var MIXINS_KEY=keyOf({mixins:null});/** * Policies that describe methods in `ReactClassInterface`. */var SpecPolicy=keyMirror({/** * These methods may be defined only once by the class specification or mixin. @@ -10363,7 +7807,7 @@ for(var methodName in ReactClassInterface){if(!Constructor.prototype[methodName] /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 415 */ +/* 424 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -10376,7 +7820,7 @@ for(var methodName in ReactClassInterface){if(!Constructor.prototype[methodName] * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactComponent - */'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};var ReactNoopUpdateQueue=__webpack_require__(430);var canDefineProperty=__webpack_require__(180);var emptyObject=__webpack_require__(103);var invariant=__webpack_require__(6);var warning=__webpack_require__(8);/** + */'use strict';var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj;}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj;};var ReactNoopUpdateQueue=__webpack_require__(439);var canDefineProperty=__webpack_require__(183);var emptyObject=__webpack_require__(105);var invariant=__webpack_require__(6);var warning=__webpack_require__(8);/** * Base class helpers for the updating state of a component. */function ReactComponent(props,context,updater){this.props=props;this.context=context;this.refs=emptyObject;// We initialize the default updater but the real one gets injected by the // renderer. @@ -10425,7 +7869,7 @@ this.updater=updater||ReactNoopUpdateQueue;}ReactComponent.prototype.isReactComp /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 416 */ +/* 425 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -10438,7 +7882,7 @@ this.updater=updater||ReactNoopUpdateQueue;}ReactComponent.prototype.isReactComp * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactDOM - *//* globals __REACT_DEVTOOLS_GLOBAL_HOOK__*/'use strict';var ReactCurrentOwner=__webpack_require__(52);var ReactDOMTextComponent=__webpack_require__(419);var ReactDefaultInjection=__webpack_require__(421);var ReactInstanceHandles=__webpack_require__(92);var ReactMount=__webpack_require__(24);var ReactPerf=__webpack_require__(37);var ReactReconciler=__webpack_require__(76);var ReactUpdates=__webpack_require__(39);var ReactVersion=__webpack_require__(248);var findDOMNode=__webpack_require__(249);var renderSubtreeIntoContainer=__webpack_require__(989);var warning=__webpack_require__(8);ReactDefaultInjection.inject();var render=ReactPerf.measure('React','render',ReactMount.render);var React={findDOMNode:findDOMNode,render:render,unmountComponentAtNode:ReactMount.unmountComponentAtNode,version:ReactVersion,/* eslint-disable camelcase */unstable_batchedUpdates:ReactUpdates.batchedUpdates,unstable_renderSubtreeIntoContainer:renderSubtreeIntoContainer};// Inject the runtime into a devtools global hook regardless of browser. + *//* globals __REACT_DEVTOOLS_GLOBAL_HOOK__*/'use strict';var ReactCurrentOwner=__webpack_require__(51);var ReactDOMTextComponent=__webpack_require__(428);var ReactDefaultInjection=__webpack_require__(430);var ReactInstanceHandles=__webpack_require__(96);var ReactMount=__webpack_require__(25);var ReactPerf=__webpack_require__(37);var ReactReconciler=__webpack_require__(78);var ReactUpdates=__webpack_require__(39);var ReactVersion=__webpack_require__(254);var findDOMNode=__webpack_require__(255);var renderSubtreeIntoContainer=__webpack_require__(995);var warning=__webpack_require__(8);ReactDefaultInjection.inject();var render=ReactPerf.measure('React','render',ReactMount.render);var React={findDOMNode:findDOMNode,render:render,unmountComponentAtNode:ReactMount.unmountComponentAtNode,version:ReactVersion,/* eslint-disable camelcase */unstable_batchedUpdates:ReactUpdates.batchedUpdates,unstable_renderSubtreeIntoContainer:renderSubtreeIntoContainer};// Inject the runtime into a devtools global hook regardless of browser. // Allows for debugging when the hook is injected on the page. /* eslint-enable camelcase */if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!=='undefined'&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject==='function'){__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({CurrentOwner:ReactCurrentOwner,InstanceHandles:ReactInstanceHandles,Mount:ReactMount,Reconciler:ReactReconciler,TextComponent:ReactDOMTextComponent});}if(process.env.NODE_ENV!=='production'){var ExecutionEnvironment=__webpack_require__(18);if(ExecutionEnvironment.canUseDOM&&window.top===window.self){// First check if devtools is not installed if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__==='undefined'){// If we're in Chrome or Firefox, provide a download link if not installed. @@ -10450,7 +7894,7 @@ Object.create,Object.freeze];for(var i=0;i must be an array if '+'`multiple` is true.%s',propName,getDeclarationErrorAddendum(owner)):undefined;}else{process.env.NODE_ENV!=='production'?warning(!Array.isArray(props[propName]),'The `%s` prop supplied to native component that allows setting these optional * props: `checked`, `value`, `defaultChecked`, and `defaultValue`. @@ -23190,7 +16280,7 @@ ReactUpdates.asap(forceUpdateIfMounted,otherInstance);}}return returnValue;}modu /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) /***/ }, -/* 952 */ +/* 958 */ /***/ function(module, exports, __webpack_require__) { "use strict"; @@ -23203,7 +16293,7 @@ ReactUpdates.asap(forceUpdateIfMounted,otherInstance);}}return returnValue;}modu * of patent rights can be found in the PATENTS file in the same directory. * * @providesModule ReactDOMOption - */'use strict';var ReactChildren=__webpack_require__(413);var ReactDOMSelect=__webpack_require__(418);var assign=__webpack_require__(7);var warning=__webpack_require__(8);var valueContextKey=ReactDOMSelect.valueContextKey;/** + */'use strict';var ReactChildren=__webpack_require__(422);var ReactDOMSelect=__webpack_require__(427);var assign=__webpack_require__(7);var warning=__webpack_require__(8);var valueContextKey=ReactDOMSelect.valueContextKey;/** * Implements an