Skip to content

Instantly share code, notes, and snippets.

@honsa
Last active August 1, 2017 13:52
Show Gist options
  • Save honsa/223230b024d1f9f5ceefc263e4ff48f1 to your computer and use it in GitHub Desktop.
Save honsa/223230b024d1f9f5ceefc263e4ff48f1 to your computer and use it in GitHub Desktop.
requirebin sketch
// Welcome! require() some modules from npm (like you were using browserify)
// and then hit Run Code to run your code on the right side.
// Modules get downloaded from browserify-cdn and bundled in your browser.
require('vue-tables-2')
setTimeout(function(){require=function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s}({1:[function(require,module,exports){(function(global){"use strict";var base64=require("base64-js");var ieee754=require("ieee754");var isArray=require("isarray");exports.Buffer=Buffer;exports.SlowBuffer=SlowBuffer;exports.INSPECT_MAX_BYTES=50;Buffer.TYPED_ARRAY_SUPPORT=global.TYPED_ARRAY_SUPPORT!==undefined?global.TYPED_ARRAY_SUPPORT:typedArraySupport();exports.kMaxLength=kMaxLength();function typedArraySupport(){try{var arr=new Uint8Array(1);arr.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}};return arr.foo()===42&&typeof arr.subarray==="function"&&arr.subarray(1,1).byteLength===0}catch(e){return false}}function kMaxLength(){return Buffer.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function createBuffer(that,length){if(kMaxLength()<length){throw new RangeError("Invalid typed array length")}if(Buffer.TYPED_ARRAY_SUPPORT){that=new Uint8Array(length);that.__proto__=Buffer.prototype}else{if(that===null){that=new Buffer(length)}that.length=length}return that}function Buffer(arg,encodingOrOffset,length){if(!Buffer.TYPED_ARRAY_SUPPORT&&!(this instanceof Buffer)){return new Buffer(arg,encodingOrOffset,length)}if(typeof arg==="number"){if(typeof encodingOrOffset==="string"){throw new Error("If encoding is specified then the first argument must be a string")}return allocUnsafe(this,arg)}return from(this,arg,encodingOrOffset,length)}Buffer.poolSize=8192;Buffer._augment=function(arr){arr.__proto__=Buffer.prototype;return arr};function from(that,value,encodingOrOffset,length){if(typeof value==="number"){throw new TypeError('"value" argument must not be a number')}if(typeof ArrayBuffer!=="undefined"&&value instanceof ArrayBuffer){return fromArrayBuffer(that,value,encodingOrOffset,length)}if(typeof value==="string"){return fromString(that,value,encodingOrOffset)}return fromObject(that,value)}Buffer.from=function(value,encodingOrOffset,length){return from(null,value,encodingOrOffset,length)};if(Buffer.TYPED_ARRAY_SUPPORT){Buffer.prototype.__proto__=Uint8Array.prototype;Buffer.__proto__=Uint8Array;if(typeof Symbol!=="undefined"&&Symbol.species&&Buffer[Symbol.species]===Buffer){Object.defineProperty(Buffer,Symbol.species,{value:null,configurable:true})}}function assertSize(size){if(typeof size!=="number"){throw new TypeError('"size" argument must be a number')}else if(size<0){throw new RangeError('"size" argument must not be negative')}}function alloc(that,size,fill,encoding){assertSize(size);if(size<=0){return createBuffer(that,size)}if(fill!==undefined){return typeof encoding==="string"?createBuffer(that,size).fill(fill,encoding):createBuffer(that,size).fill(fill)}return createBuffer(that,size)}Buffer.alloc=function(size,fill,encoding){return alloc(null,size,fill,encoding)};function allocUnsafe(that,size){assertSize(size);that=createBuffer(that,size<0?0:checked(size)|0);if(!Buffer.TYPED_ARRAY_SUPPORT){for(var i=0;i<size;++i){that[i]=0}}return that}Buffer.allocUnsafe=function(size){return allocUnsafe(null,size)};Buffer.allocUnsafeSlow=function(size){return allocUnsafe(null,size)};function fromString(that,string,encoding){if(typeof encoding!=="string"||encoding===""){encoding="utf8"}if(!Buffer.isEncoding(encoding)){throw new TypeError('"encoding" must be a valid string encoding')}var length=byteLength(string,encoding)|0;that=createBuffer(that,length);var actual=that.write(string,encoding);if(actual!==length){that=that.slice(0,actual)}return that}function fromArrayLike(that,array){var length=array.length<0?0:checked(array.length)|0;that=createBuffer(that,length);for(var i=0;i<length;i+=1){that[i]=array[i]&255}return that}function fromArrayBuffer(that,array,byteOffset,length){array.byteLength;if(byteOffset<0||array.byteLength<byteOffset){throw new RangeError("'offset' is out of bounds")}if(array.byteLength<byteOffset+(length||0)){throw new RangeError("'length' is out of bounds")}if(byteOffset===undefined&&length===undefined){array=new Uint8Array(array)}else if(length===undefined){array=new Uint8Array(array,byteOffset)}else{array=new Uint8Array(array,byteOffset,length)}if(Buffer.TYPED_ARRAY_SUPPORT){that=array;that.__proto__=Buffer.prototype}else{that=fromArrayLike(that,array)}return that}function fromObject(that,obj){if(Buffer.isBuffer(obj)){var len=checked(obj.length)|0;that=createBuffer(that,len);if(that.length===0){return that}obj.copy(that,0,0,len);return that}if(obj){if(typeof ArrayBuffer!=="undefined"&&obj.buffer instanceof ArrayBuffer||"length"in obj){if(typeof obj.length!=="number"||isnan(obj.length)){return createBuffer(that,0)}return fromArrayLike(that,obj)}if(obj.type==="Buffer"&&isArray(obj.data)){return fromArrayLike(that,obj.data)}}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function checked(length){if(length>=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){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<len;++i){if(a[i]!==b[i]){x=a[i];y=b[i];break}}if(x<y)return-1;if(y<x)return 1;return 0};Buffer.isEncoding=function isEncoding(encoding){switch(String(encoding).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return true;default:return false}};Buffer.concat=function concat(list,length){if(!isArray(list)){throw new TypeError('"list" argument must be an Array of Buffers')}if(list.length===0){return Buffer.alloc(0)}var i;if(length===undefined){length=0;for(i=0;i<list.length;++i){length+=list[i].length}}var buffer=Buffer.allocUnsafe(length);var pos=0;for(i=0;i<list.length;++i){var buf=list[i];if(!Buffer.isBuffer(buf)){throw new TypeError('"list" argument must be an Array of Buffers')}buf.copy(buffer,pos);pos+=buf.length}return buffer};function byteLength(string,encoding){if(Buffer.isBuffer(string)){return string.length}if(typeof ArrayBuffer!=="undefined"&&typeof ArrayBuffer.isView==="function"&&(ArrayBuffer.isView(string)||string instanceof ArrayBuffer)){return string.byteLength}if(typeof string!=="string"){string=""+string}var len=string.length;if(len===0)return 0;var loweredCase=false;for(;;){switch(encoding){case"ascii":case"latin1":case"binary":return len;case"utf8":case"utf-8":case undefined:return utf8ToBytes(string).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return len*2;case"hex":return len>>>1;case"base64":return base64ToBytes(string).length;default:if(loweredCase)return utf8ToBytes(string).length;encoding=(""+encoding).toLowerCase();loweredCase=true}}}Buffer.byteLength=byteLength;function slowToString(encoding,start,end){var loweredCase=false;if(start===undefined||start<0){start=0}if(start>this.length){return""}if(end===undefined||end>this.length){end=this.length}if(end<=0){return""}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}}}Buffer.prototype._isBuffer=true;function swap(b,n,m){var i=b[n];b[n]=b[m];b[m]=i}Buffer.prototype.swap16=function swap16(){var len=this.length;if(len%2!==0){throw new RangeError("Buffer size must be a multiple of 16-bits")}for(var i=0;i<len;i+=2){swap(this,i,i+1)}return this};Buffer.prototype.swap32=function swap32(){var len=this.length;if(len%4!==0){throw new RangeError("Buffer size must be a multiple of 32-bits")}for(var i=0;i<len;i+=4){swap(this,i,i+3);swap(this,i+1,i+2)}return this};Buffer.prototype.swap64=function swap64(){var len=this.length;if(len%8!==0){throw new RangeError("Buffer size must be a multiple of 64-bits")}for(var i=0;i<len;i+=8){swap(this,i,i+7);swap(this,i+1,i+6);swap(this,i+2,i+5);swap(this,i+3,i+4)}return this};Buffer.prototype.toString=function toString(){var length=this.length|0;if(length===0)return"";if(arguments.length===0)return utf8Slice(this,0,length);return slowToString.apply(this,arguments)};Buffer.prototype.equals=function equals(b){if(!Buffer.isBuffer(b))throw new TypeError("Argument must be a Buffer");if(this===b)return true;return Buffer.compare(this,b)===0};Buffer.prototype.inspect=function inspect(){var str="";var max=exports.INSPECT_MAX_BYTES;if(this.length>0){str=this.toString("hex",0,max).match(/.{2}/g).join(" ");if(this.length>max)str+=" ... "}return"<Buffer "+str+">"};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<len;++i){if(thisCopy[i]!==targetCopy[i]){x=thisCopy[i];y=targetCopy[i];break}}if(x<y)return-1;if(y<x)return 1;return 0};function bidirectionalIndexOf(buffer,val,byteOffset,encoding,dir){if(buffer.length===0)return-1;if(typeof byteOffset==="string"){encoding=byteOffset;byteOffset=0}else if(byteOffset>2147483647){byteOffset=2147483647}else if(byteOffset<-2147483648){byteOffset=-2147483648}byteOffset=+byteOffset;if(isNaN(byteOffset)){byteOffset=dir?0:buffer.length-1}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}if(typeof val==="string"){val=Buffer.from(val,encoding)}if(Buffer.isBuffer(val)){if(val.length===0){return-1}return arrayIndexOf(buffer,val,byteOffset,encoding,dir)}else if(typeof val==="number"){val=val&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;i<arrLength;i++){if(read(arr,i)===read(val,foundIndex===-1?0:i-foundIndex)){if(foundIndex===-1)foundIndex=i;if(i-foundIndex+1===valLength)return foundIndex*indexSize}else{if(foundIndex!==-1)i-=i-foundIndex;foundIndex=-1}}}else{if(byteOffset+valLength>arrLength)byteOffset=arrLength-valLength;for(i=byteOffset;i>=0;i--){var found=true;for(var j=0;j<valLength;j++){if(read(arr,i+j)!==read(val,j)){found=false;break}}if(found)return i}}return-1}Buffer.prototype.includes=function includes(val,byteOffset,encoding){return this.indexOf(val,byteOffset,encoding)!==-1};Buffer.prototype.indexOf=function indexOf(val,byteOffset,encoding){return bidirectionalIndexOf(this,val,byteOffset,encoding,true)};Buffer.prototype.lastIndexOf=function lastIndexOf(val,byteOffset,encoding){return bidirectionalIndexOf(this,val,byteOffset,encoding,false)};function hexWrite(buf,string,offset,length){offset=Number(offset)||0;var remaining=buf.length-offset;if(!length){length=remaining}else{length=Number(length);if(length>remaining){length=remaining}}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;i<length;++i){var parsed=parseInt(string.substr(i*2,2),16);if(isNaN(parsed))return i;buf[offset+i]=parsed}return i}function utf8Write(buf,string,offset,length){return blitBuffer(utf8ToBytes(string,buf.length-offset),buf,offset,length)}function asciiWrite(buf,string,offset,length){return blitBuffer(asciiToBytes(string),buf,offset,length)}function latin1Write(buf,string,offset,length){return asciiWrite(buf,string,offset,length)}function base64Write(buf,string,offset,length){return blitBuffer(base64ToBytes(string),buf,offset,length)}function ucs2Write(buf,string,offset,length){return blitBuffer(utf16leToBytes(string,buf.length-offset),buf,offset,length)}Buffer.prototype.write=function write(string,offset,length,encoding){if(offset===undefined){encoding="utf8";length=this.length;offset=0}else if(length===undefined&&typeof offset==="string"){encoding=offset;length=this.length;offset=0}else if(isFinite(offset)){offset=offset|0;if(isFinite(length)){length=length|0;if(encoding===undefined)encoding="utf8"}else{encoding=length;length=undefined}}else{throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported")}var remaining=this.length-offset;if(length===undefined||length>remaining)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":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(i<end){var firstByte=buf[i];var codePoint=null;var bytesPerSequence=firstByte>239?4:firstByte>223?3:firstByte>191?2:1;if(i+bytesPerSequence<=end){var secondByte,thirdByte,fourthByte,tempCodePoint;switch(bytesPerSequence){case 1:if(firstByte<128){codePoint=firstByte}break;case 2:secondByte=buf[i+1];if((secondByte&192)===128){tempCodePoint=(firstByte&31)<<6|secondByte&63;if(tempCodePoint>127){codePoint=tempCodePoint}}break;case 3:secondByte=buf[i+1];thirdByte=buf[i+2];if((secondByte&192)===128&&(thirdByte&192)===128){tempCodePoint=(firstByte&15)<<12|(secondByte&63)<<6|thirdByte&63;if(tempCodePoint>2047&&(tempCodePoint<55296||tempCodePoint>57343)){codePoint=tempCodePoint}}break;case 4:secondByte=buf[i+1];thirdByte=buf[i+2];fourthByte=buf[i+3];if((secondByte&192)===128&&(thirdByte&192)===128&&(fourthByte&192)===128){tempCodePoint=(firstByte&15)<<18|(secondByte&63)<<12|(thirdByte&63)<<6|fourthByte&63;if(tempCodePoint>65535&&tempCodePoint<1114112){codePoint=tempCodePoint}}}}if(codePoint===null){codePoint=65533;bytesPerSequence=1}else if(codePoint>65535){codePoint-=65536;res.push(codePoint>>>10&1023|55296);codePoint=56320|codePoint&1023}res.push(codePoint);i+=bytesPerSequence}return decodeCodePointsArray(res)}var MAX_ARGUMENTS_LENGTH=4096;function decodeCodePointsArray(codePoints){var len=codePoints.length;if(len<=MAX_ARGUMENTS_LENGTH){return String.fromCharCode.apply(String,codePoints)}var res="";var i=0;while(i<len){res+=String.fromCharCode.apply(String,codePoints.slice(i,i+=MAX_ARGUMENTS_LENGTH))}return res}function asciiSlice(buf,start,end){var ret="";end=Math.min(buf.length,end);for(var i=start;i<end;++i){ret+=String.fromCharCode(buf[i]&127)}return ret}function latin1Slice(buf,start,end){var ret="";end=Math.min(buf.length,end);for(var i=start;i<end;++i){ret+=String.fromCharCode(buf[i])}return ret}function hexSlice(buf,start,end){var len=buf.length;if(!start||start<0)start=0;if(!end||end<0||end>len)end=len;var out="";for(var i=start;i<end;++i){out+=toHex(buf[i])}return out}function utf16leSlice(buf,start,end){var bytes=buf.slice(start,end);var res="";for(var i=0;i<bytes.length;i+=2){res+=String.fromCharCode(bytes[i]+bytes[i+1]*256)}return res}Buffer.prototype.slice=function slice(start,end){var len=this.length;start=~~start;end=end===undefined?len:~~end;if(start<0){start+=len;if(start<0)start=0}else if(start>len){start=len}if(end<0){end+=len;if(end<0)end=0}else if(end>len){end=len}if(end<start)end=start;var newBuf;if(Buffer.TYPED_ARRAY_SUPPORT){newBuf=this.subarray(start,end);newBuf.__proto__=Buffer.prototype}else{var sliceLen=end-start;newBuf=new Buffer(sliceLen,undefined);for(var i=0;i<sliceLen;++i){newBuf[i]=this[i+start]}}return newBuf};function checkOffset(offset,ext,length){if(offset%1!==0||offset<0)throw new RangeError("offset is not uint");if(offset+ext>length)throw new RangeError("Trying to access beyond buffer length")}Buffer.prototype.readUIntLE=function readUIntLE(offset,byteLength,noAssert){offset=offset|0;byteLength=byteLength|0;if(!noAssert)checkOffset(offset,byteLength,this.length);var val=this[offset];var mul=1;var i=0;while(++i<byteLength&&(mul*=256)){val+=this[offset+i]*mul}return val};Buffer.prototype.readUIntBE=function readUIntBE(offset,byteLength,noAssert){offset=offset|0;byteLength=byteLength|0;if(!noAssert){checkOffset(offset,byteLength,this.length)}var val=this[offset+--byteLength];var mul=1;while(byteLength>0&&(mul*=256)){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]*16777216};Buffer.prototype.readUInt32BE=function readUInt32BE(offset,noAssert){if(!noAssert)checkOffset(offset,4,this.length);return this[offset]*16777216+(this[offset+1]<<16|this[offset+2]<<8|this[offset+3])};Buffer.prototype.readIntLE=function readIntLE(offset,byteLength,noAssert){offset=offset|0;byteLength=byteLength|0;if(!noAssert)checkOffset(offset,byteLength,this.length);var val=this[offset];var mul=1;var i=0;while(++i<byteLength&&(mul*=256)){val+=this[offset+i]*mul}mul*=128;if(val>=mul)val-=Math.pow(2,8*byteLength);return val};Buffer.prototype.readIntBE=function readIntBE(offset,byteLength,noAssert){offset=offset|0;byteLength=byteLength|0;if(!noAssert)checkOffset(offset,byteLength,this.length);var i=byteLength;var mul=1;var val=this[offset+--i];while(i>0&&(mul*=256)){val+=this[offset+--i]*mul}mul*=128;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]&128))return this[offset];return(255-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&32768?val|4294901760: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&32768?val|4294901760: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||value<min)throw new RangeError('"value" argument is out of bounds');if(offset+ext>buf.length)throw new RangeError("Index out of range")}Buffer.prototype.writeUIntLE=function writeUIntLE(value,offset,byteLength,noAssert){value=+value;offset=offset|0;byteLength=byteLength|0;if(!noAssert){var maxBytes=Math.pow(2,8*byteLength)-1;checkInt(this,value,offset,byteLength,maxBytes,0)}var mul=1;var i=0;this[offset]=value&255;while(++i<byteLength&&(mul*=256)){this[offset+i]=value/mul&255}return offset+byteLength};Buffer.prototype.writeUIntBE=function writeUIntBE(value,offset,byteLength,noAssert){value=+value;offset=offset|0;byteLength=byteLength|0;if(!noAssert){var maxBytes=Math.pow(2,8*byteLength)-1;checkInt(this,value,offset,byteLength,maxBytes,0)}var i=byteLength-1;var mul=1;this[offset+i]=value&255;while(--i>=0&&(mul*=256)){this[offset+i]=value/mul&255}return offset+byteLength};Buffer.prototype.writeUInt8=function writeUInt8(value,offset,noAssert){value=+value;offset=offset|0;if(!noAssert)checkInt(this,value,offset,1,255,0);if(!Buffer.TYPED_ARRAY_SUPPORT)value=Math.floor(value);this[offset]=value&255;return offset+1};function objectWriteUInt16(buf,value,offset,littleEndian){if(value<0)value=65535+value+1;for(var i=0,j=Math.min(buf.length-offset,2);i<j;++i){buf[offset+i]=(value&255<<8*(littleEndian?i:1-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,65535,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value&255;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,65535,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value>>>8;this[offset+1]=value&255}else{objectWriteUInt16(this,value,offset,false)}return offset+2};function objectWriteUInt32(buf,value,offset,littleEndian){if(value<0)value=4294967295+value+1;for(var i=0,j=Math.min(buf.length-offset,4);i<j;++i){buf[offset+i]=value>>>(littleEndian?i:3-i)*8&255}}Buffer.prototype.writeUInt32LE=function writeUInt32LE(value,offset,noAssert){value=+value;offset=offset|0;if(!noAssert)checkInt(this,value,offset,4,4294967295,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset+3]=value>>>24;this[offset+2]=value>>>16;this[offset+1]=value>>>8;this[offset]=value&255}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,4294967295,0);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value>>>24;this[offset+1]=value>>>16;this[offset+2]=value>>>8;this[offset+3]=value&255}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&255;while(++i<byteLength&&(mul*=256)){if(value<0&&sub===0&&this[offset+i-1]!==0){sub=1}this[offset+i]=(value/mul>>0)-sub&255}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&255;while(--i>=0&&(mul*=256)){if(value<0&&sub===0&&this[offset+i+1]!==0){sub=1}this[offset+i]=(value/mul>>0)-sub&255}return offset+byteLength};Buffer.prototype.writeInt8=function writeInt8(value,offset,noAssert){value=+value;offset=offset|0;if(!noAssert)checkInt(this,value,offset,1,127,-128);if(!Buffer.TYPED_ARRAY_SUPPORT)value=Math.floor(value);if(value<0)value=255+value+1;this[offset]=value&255;return offset+1};Buffer.prototype.writeInt16LE=function writeInt16LE(value,offset,noAssert){value=+value;offset=offset|0;if(!noAssert)checkInt(this,value,offset,2,32767,-32768);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value&255;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,32767,-32768);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value>>>8;this[offset+1]=value&255}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,2147483647,-2147483648);if(Buffer.TYPED_ARRAY_SUPPORT){this[offset]=value&255;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,2147483647,-2147483648);if(value<0)value=4294967295+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&255}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.4028234663852886e38,-3.4028234663852886e38)}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.7976931348623157e308,-1.7976931348623157e308)}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)};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<start)end=start;if(end===start)return 0;if(target.length===0||this.length===0)return 0;if(targetStart<0){throw new RangeError("targetStart out of bounds")}if(start<0||start>=this.length)throw new RangeError("sourceStart out of bounds");if(end<0)throw new RangeError("sourceEnd out of bounds");if(end>this.length)end=this.length;if(target.length-targetStart<end-start){end=target.length-targetStart+start}var len=end-start;var i;if(this===target&&start<targetStart&&targetStart<end){for(i=len-1;i>=0;--i){target[i+targetStart]=this[i+start]}}else if(len<1e3||!Buffer.TYPED_ARRAY_SUPPORT){for(i=0;i<len;++i){target[i+targetStart]=this[i+start]}}else{Uint8Array.prototype.set.call(target,this.subarray(start,start+len),targetStart)}return len};Buffer.prototype.fill=function fill(val,start,end,encoding){if(typeof val==="string"){if(typeof start==="string"){encoding=start;start=0;end=this.length}else if(typeof end==="string"){encoding=end;end=this.length}if(val.length===1){var code=val.charCodeAt(0);if(code<256){val=code}}if(encoding!==undefined&&typeof encoding!=="string"){throw new TypeError("encoding must be a string")}if(typeof encoding==="string"&&!Buffer.isEncoding(encoding)){throw new TypeError("Unknown encoding: "+encoding)}}else if(typeof val==="number"){val=val&255}if(start<0||this.length<start||this.length<end){throw new RangeError("Out of range index")}if(end<=start){return this}start=start>>>0;end=end===undefined?this.length:end>>>0;if(!val)val=0;var i;if(typeof val==="number"){for(i=start;i<end;++i){this[i]=val}}else{var bytes=Buffer.isBuffer(val)?val:utf8ToBytes(new Buffer(val,encoding).toString());var len=bytes.length;for(i=0;i<end-start;++i){this[i+start]=bytes[i%len]}}return this};var INVALID_BASE64_RE=/[^+\/0-9A-Za-z-_]/g;function base64clean(str){str=stringtrim(str).replace(INVALID_BASE64_RE,"");if(str.length<2)return"";while(str.length%4!==0){str=str+"="}return str}function stringtrim(str){if(str.trim)return str.trim();return str.replace(/^\s+|\s+$/g,"")}function toHex(n){if(n<16)return"0"+n.toString(16);return n.toString(16)}function utf8ToBytes(string,units){units=units||Infinity;var codePoint;var length=string.length;var leadSurrogate=null;var bytes=[];for(var i=0;i<length;++i){codePoint=string.charCodeAt(i);if(codePoint>55295&&codePoint<57344){if(!leadSurrogate){if(codePoint>56319){if((units-=3)>-1)bytes.push(239,191,189);continue}else if(i+1===length){if((units-=3)>-1)bytes.push(239,191,189);continue}leadSurrogate=codePoint;continue}if(codePoint<56320){if((units-=3)>-1)bytes.push(239,191,189);leadSurrogate=codePoint;continue}codePoint=(leadSurrogate-55296<<10|codePoint-56320)+65536}else if(leadSurrogate){if((units-=3)>-1)bytes.push(239,191,189)}leadSurrogate=null;if(codePoint<128){if((units-=1)<0)break;bytes.push(codePoint)}else if(codePoint<2048){if((units-=2)<0)break;bytes.push(codePoint>>6|192,codePoint&63|128)}else if(codePoint<65536){if((units-=3)<0)break;bytes.push(codePoint>>12|224,codePoint>>6&63|128,codePoint&63|128)}else if(codePoint<1114112){if((units-=4)<0)break;bytes.push(codePoint>>18|240,codePoint>>12&63|128,codePoint>>6&63|128,codePoint&63|128)}else{throw new Error("Invalid code point");
}}return bytes}function asciiToBytes(str){var byteArray=[];for(var i=0;i<str.length;++i){byteArray.push(str.charCodeAt(i)&255)}return byteArray}function utf16leToBytes(str,units){var c,hi,lo;var byteArray=[];for(var i=0;i<str.length;++i){if((units-=2)<0)break;c=str.charCodeAt(i);hi=c>>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<length;++i){if(i+offset>=dst.length||i>=src.length)break;dst[i+offset]=src[i]}return i}function isnan(val){return val!==val}}).call(this,typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{"base64-js":2,ieee754:3,isarray:4}],2:[function(require,module,exports){"use strict";exports.byteLength=byteLength;exports.toByteArray=toByteArray;exports.fromByteArray=fromByteArray;var lookup=[];var revLookup=[];var Arr=typeof Uint8Array!=="undefined"?Uint8Array:Array;var code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var i=0,len=code.length;i<len;++i){lookup[i]=code[i];revLookup[code.charCodeAt(i)]=i}revLookup["-".charCodeAt(0)]=62;revLookup["_".charCodeAt(0)]=63;function placeHoldersCount(b64){var len=b64.length;if(len%4>0){throw new Error("Invalid string. Length must be a multiple of 4")}return b64[len-2]==="="?2:b64[len-1]==="="?1:0}function byteLength(b64){return b64.length*3/4-placeHoldersCount(b64)}function toByteArray(b64){var i,j,l,tmp,placeHolders,arr;var len=b64.length;placeHolders=placeHoldersCount(b64);arr=new Arr(len*3/4-placeHolders);l=placeHolders>0?len-4:len;var L=0;for(i=0,j=0;i<l;i+=4,j+=3){tmp=revLookup[b64.charCodeAt(i)]<<18|revLookup[b64.charCodeAt(i+1)]<<12|revLookup[b64.charCodeAt(i+2)]<<6|revLookup[b64.charCodeAt(i+3)];arr[L++]=tmp>>16&255;arr[L++]=tmp>>8&255;arr[L++]=tmp&255}if(placeHolders===2){tmp=revLookup[b64.charCodeAt(i)]<<2|revLookup[b64.charCodeAt(i+1)]>>4;arr[L++]=tmp&255}else if(placeHolders===1){tmp=revLookup[b64.charCodeAt(i)]<<10|revLookup[b64.charCodeAt(i+1)]<<4|revLookup[b64.charCodeAt(i+2)]>>2;arr[L++]=tmp>>8&255;arr[L++]=tmp&255}return arr}function tripletToBase64(num){return lookup[num>>18&63]+lookup[num>>12&63]+lookup[num>>6&63]+lookup[num&63]}function encodeChunk(uint8,start,end){var tmp;var output=[];for(var i=start;i<end;i+=3){tmp=(uint8[i]<<16)+(uint8[i+1]<<8)+uint8[i+2];output.push(tripletToBase64(tmp))}return output.join("")}function fromByteArray(uint8){var tmp;var len=uint8.length;var extraBytes=len%3;var output="";var parts=[];var maxChunkLength=16383;for(var i=0,len2=len-extraBytes;i<len2;i+=maxChunkLength){parts.push(encodeChunk(uint8,i,i+maxChunkLength>len2?len2:i+maxChunkLength))}if(extraBytes===1){tmp=uint8[len-1];output+=lookup[tmp>>2];output+=lookup[tmp<<4&63];output+="=="}else if(extraBytes===2){tmp=(uint8[len-2]<<8)+uint8[len-1];output+=lookup[tmp>>10];output+=lookup[tmp>>4&63];output+=lookup[tmp<<2&63];output+="="}parts.push(output);return parts.join("")}},{}],3:[function(require,module,exports){exports.read=function(buffer,offset,isLE,mLen,nBytes){var e,m;var eLen=nBytes*8-mLen-1;var eMax=(1<<eLen)-1;var eBias=eMax>>1;var nBits=-7;var i=isLE?nBytes-1:0;var d=isLE?-1:1;var s=buffer[offset+i];i+=d;e=s&(1<<-nBits)-1;s>>=-nBits;nBits+=eLen;for(;nBits>0;e=e*256+buffer[offset+i],i+=d,nBits-=8){}m=e&(1<<-nBits)-1;e>>=-nBits;nBits+=mLen;for(;nBits>0;m=m*256+buffer[offset+i],i+=d,nBits-=8){}if(e===0){e=1-eBias}else if(e===eMax){return m?NaN:(s?-1:1)*Infinity}else{m=m+Math.pow(2,mLen);e=e-eBias}return(s?-1:1)*m*Math.pow(2,e-mLen)};exports.write=function(buffer,value,offset,isLE,mLen,nBytes){var e,m,c;var eLen=nBytes*8-mLen-1;var eMax=(1<<eLen)-1;var eBias=eMax>>1;var rt=mLen===23?Math.pow(2,-24)-Math.pow(2,-77):0;var i=isLE?0:nBytes-1;var d=isLE?1:-1;var s=value<0||value===0&&1/value<0?1:0;value=Math.abs(value);if(isNaN(value)||value===Infinity){m=isNaN(value)?1:0;e=eMax}else{e=Math.floor(Math.log(value)/Math.LN2);if(value*(c=Math.pow(2,-e))<1){e--;c*=2}if(e+eBias>=1){value+=rt/c}else{value+=rt*Math.pow(2,1-eBias)}if(value*c>=2){e++;c/=2}if(e+eBias>=eMax){m=0;e=eMax}else if(e+eBias>=1){m=(value*c-1)*Math.pow(2,mLen);e=e+eBias}else{m=value*Math.pow(2,eBias-1)*Math.pow(2,mLen);e=0}}for(;mLen>=8;buffer[offset+i]=m&255,i+=d,m/=256,mLen-=8){}e=e<<mLen|m;eLen+=mLen;for(;eLen>0;buffer[offset+i]=e&255,i+=d,e/=256,eLen-=8){}buffer[offset+i-d]|=s*128}},{}],4:[function(require,module,exports){var toString={}.toString;module.exports=Array.isArray||function(arr){return toString.call(arr)=="[object Array]"}},{}],5:[function(require,module,exports){(function(process){function normalizeArray(parts,allowAboveRoot){var up=0;for(var i=parts.length-1;i>=0;i--){var last=parts[i];if(last==="."){parts.splice(i,1)}else if(last===".."){parts.splice(i,1);up++}else if(up){parts.splice(i,1);up--}}if(allowAboveRoot){for(;up--;up){parts.unshift("..")}}return parts}var splitPathRe=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/;var splitPath=function(filename){return splitPathRe.exec(filename).slice(1)};exports.resolve=function(){var resolvedPath="",resolvedAbsolute=false;for(var i=arguments.length-1;i>=-1&&!resolvedAbsolute;i--){var path=i>=0?arguments[i]:process.cwd();if(typeof path!=="string"){throw new TypeError("Arguments to path.resolve must be strings")}else if(!path){continue}resolvedPath=path+"/"+resolvedPath;resolvedAbsolute=path.charAt(0)==="/"}resolvedPath=normalizeArray(filter(resolvedPath.split("/"),function(p){return!!p}),!resolvedAbsolute).join("/");return(resolvedAbsolute?"/":"")+resolvedPath||"."};exports.normalize=function(path){var isAbsolute=exports.isAbsolute(path),trailingSlash=substr(path,-1)==="/";path=normalizeArray(filter(path.split("/"),function(p){return!!p}),!isAbsolute).join("/");if(!path&&!isAbsolute){path="."}if(path&&trailingSlash){path+="/"}return(isAbsolute?"/":"")+path};exports.isAbsolute=function(path){return path.charAt(0)==="/"};exports.join=function(){var paths=Array.prototype.slice.call(arguments,0);return exports.normalize(filter(paths,function(p,index){if(typeof p!=="string"){throw new TypeError("Arguments to path.join must be strings")}return p}).join("/"))};exports.relative=function(from,to){from=exports.resolve(from).substr(1);to=exports.resolve(to).substr(1);function trim(arr){var start=0;for(;start<arr.length;start++){if(arr[start]!=="")break}var end=arr.length-1;for(;end>=0;end--){if(arr[end]!=="")break}if(start>end)return[];return arr.slice(start,end-start+1)}var fromParts=trim(from.split("/"));var toParts=trim(to.split("/"));var length=Math.min(fromParts.length,toParts.length);var samePartsLength=length;for(var i=0;i<length;i++){if(fromParts[i]!==toParts[i]){samePartsLength=i;break}}var outputParts=[];for(var i=samePartsLength;i<fromParts.length;i++){outputParts.push("..")}outputParts=outputParts.concat(toParts.slice(samePartsLength));return outputParts.join("/")};exports.sep="/";exports.delimiter=":";exports.dirname=function(path){var result=splitPath(path),root=result[0],dir=result[1];if(!root&&!dir){return"."}if(dir){dir=dir.substr(0,dir.length-1)}return root+dir};exports.basename=function(path,ext){var f=splitPath(path)[2];if(ext&&f.substr(-1*ext.length)===ext){f=f.substr(0,f.length-ext.length)}return f};exports.extname=function(path){return splitPath(path)[3]};function filter(xs,f){if(xs.filter)return xs.filter(f);var res=[];for(var i=0;i<xs.length;i++){if(f(xs[i],i,xs))res.push(xs[i])}return res}var substr="ab".substr(-1)==="b"?function(str,start,len){return str.substr(start,len)}:function(str,start,len){if(start<0)start=str.length+start;return str.substr(start,len)}}).call(this,require("_process"))},{_process:6}],6:[function(require,module,exports){var process=module.exports={};var cachedSetTimeout;var cachedClearTimeout;function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}(function(){try{if(typeof setTimeout==="function"){cachedSetTimeout=setTimeout}else{cachedSetTimeout=defaultSetTimout}}catch(e){cachedSetTimeout=defaultSetTimout}try{if(typeof clearTimeout==="function"){cachedClearTimeout=clearTimeout}else{cachedClearTimeout=defaultClearTimeout}}catch(e){cachedClearTimeout=defaultClearTimeout}})();function runTimeout(fun){if(cachedSetTimeout===setTimeout){return setTimeout(fun,0)}if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout){cachedSetTimeout=setTimeout;return setTimeout(fun,0)}try{return cachedSetTimeout(fun,0)}catch(e){try{return cachedSetTimeout.call(null,fun,0)}catch(e){return cachedSetTimeout.call(this,fun,0)}}}function runClearTimeout(marker){if(cachedClearTimeout===clearTimeout){return clearTimeout(marker)}if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout){cachedClearTimeout=clearTimeout;return clearTimeout(marker)}try{return cachedClearTimeout(marker)}catch(e){try{return cachedClearTimeout.call(null,marker)}catch(e){return cachedClearTimeout.call(this,marker)}}}var queue=[];var draining=false;var currentQueue;var queueIndex=-1;function cleanUpNextTick(){if(!draining||!currentQueue){return}draining=false;if(currentQueue.length){queue=currentQueue.concat(queue)}else{queueIndex=-1}if(queue.length){drainQueue()}}function drainQueue(){if(draining){return}var timeout=runTimeout(cleanUpNextTick);draining=true;var len=queue.length;while(len){currentQueue=queue;queue=[];while(++queueIndex<len){if(currentQueue){currentQueue[queueIndex].run()}}queueIndex=-1;len=queue.length}currentQueue=null;draining=false;runClearTimeout(timeout)}process.nextTick=function(fun){var args=new Array(arguments.length-1);if(arguments.length>1){for(var i=1;i<arguments.length;i++){args[i-1]=arguments[i]}}queue.push(new Item(fun,args));if(queue.length===1&&!draining){runTimeout(drainQueue)}};function Item(fun,array){this.fun=fun;this.array=array}Item.prototype.run=function(){this.fun.apply(null,this.array)};process.title="browser";process.browser=true;process.env={};process.argv=[];process.version="";process.versions={};function noop(){}process.on=noop;process.addListener=noop;process.once=noop;process.off=noop;process.removeListener=noop;process.removeAllListeners=noop;process.emit=noop;process.binding=function(name){throw new Error("process.binding is not supported")};process.cwd=function(){return"/"};process.chdir=function(dir){throw new Error("process.chdir is not supported")};process.umask=function(){return 0}},{}],7:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var _vue=require("vue");var _vue2=_interopRequireDefault(_vue);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}var bus=new _vue2.default;exports.default=bus},{vue:158}],8:[function(require,module,exports){"use strict";module.exports=function(){return displayableColumns(this.Columns,this.windowWidth,this.columnsDisplay)};function displayableColumns(columns,windowWidth,display){if(!display)return columns;return columns.filter(function(column){if(!display[column])return true;var range=display[column];var operator=range[2];var inRange=(!range[0]||windowWidth>=range[0])&&(!range[1]||windowWidth<range[1]);return operator=="not"?!inRange:inRange})}},{}],9:[function(require,module,exports){"use strict";module.exports=function(){return JSON.stringify(this.customQueries)}},{}],10:[function(require,module,exports){"use strict";var search=require("../methods/client-search");var clone=require("clone");module.exports=function(){var data=clone(this.tableData);var column=this.orderBy.column;data.sort(this.getSortFn(column));data=this.search(data);if(this.vuex){if(this.count!=data.length)this.commit("SET_COUNT",data.length,true)}else{this.count=data.length}var offset=(this.page-1)*this.limit;data=data.splice(offset,this.limit);return this.applyFilters(data)}},{"../methods/client-search":32,clone:149}],11:[function(require,module,exports){"use strict";module.exports=function(){var columns=Object.keys(this.opts.listColumns);var res={};columns.forEach(function(column){res[column]={};this.opts.listColumns[column].forEach(function(item){res[column][item.id]=item.text})}.bind(this));return res}},{}],12:[function(require,module,exports){"use strict";module.exports=function(){var defaults=require("../config/defaults")();return this.initOptions(defaults,this.globalOptions,this.options)}},{"../config/defaults":17}],13:[function(require,module,exports){"use strict";module.exports=function(){return this.opts.filterByColumn?JSON.stringify(this.query):this.query}},{}],14:[function(require,module,exports){"use strict";module.exports=function(){return this.data}},{}],15:[function(require,module,exports){"use strict";module.exports=function(){return Object.keys(this.opts.templates)}},{}],16:[function(require,module,exports){"use strict";module.exports=function(){this.page=1;return Math.ceil(this.count/this.limit)}},{}],17:[function(require,module,exports){"use strict";module.exports=function(){return{dateColumns:[],listColumns:{},datepickerOptions:{locale:{cancelLabel:"Clear"}},perPage:10,perPageValues:[10,25,50,100],params:{},sortable:true,filterable:true,initFilters:{},customFilters:[],templates:{},debounce:500,dateFormat:"DD/MM/YYYY",toMomentFormat:false,skin:"table-striped table-bordered table-hover",columnsDisplay:{},texts:{count:"Showing {from} to {to} of {count} records|{count} records|One record",filter:"Filter Results:",filterPlaceholder:"Search query",limit:"Records:",page:"Page:",noResults:"No matching records",filterBy:"Filter by {column}",loading:"Loading...",defaultOption:"Select {column}"},sortIcon:{base:"glyphicon",up:"glyphicon-chevron-up",down:"glyphicon-chevron-down"},customSorting:{},filterByColumn:false,highlightMatches:false,orderBy:false,footerHeadings:false,headings:{},pagination:{dropdown:false,chunk:10},childRow:false,childRowKey:"id",uniqueKey:"id",responseAdapter:function responseAdapter(resp){return{data:resp.data,count:resp.count}},requestKeys:{query:"query",limit:"limit",orderBy:"orderBy",ascending:"ascending",page:"page",byColumn:"byColumn"},rowClassCallback:false,config:false}}},{}],18:[function(require,module,exports){"use strict";module.exports={twoWay:true,bind:function bind(el,binding,vnode){el.addEventListener("keydown",function(e){vnode.context[binding.value]=e.target.value})},update:function update(el,binding,vnode,oldVnode){}}},{}],19:[function(require,module,exports){"use strict";module.exports={twoWay:true,bind:function bind(el,binding,vnode){el.addEventListener("change",function(e){console.log("SELECT CHANGE");vnode.context[binding.value.name]=e.target.value;binding.value.cb.call(this,binding.value.params)})},update:function update(el,binding,vnode,oldVnode){}}},{}],20:[function(require,module,exports){"use strict";module.exports=function(data,customFilters,customQueries){var passing;return data.filter(function(row){passing=true;customFilters.forEach(function(filter){var value=customQueries[filter.name];if(value&&!filter.callback(row,value))passing=false});return passing})}},{}],21:[function(require,module,exports){"use strict";var is_valid_moment_object=require("../helpers/is-valid-moment-object");module.exports=function(property){if(is_valid_moment_object(property))return property.format(this.opts.dateFormat);return property}},{"../helpers/is-valid-moment-object":27}],22:[function(require,module,exports){"use strict";var validMoment=require("../helpers/is-valid-moment-object");module.exports=function(value,dateFormat){if(!validMoment(value))return value;return value.format(dateFormat)}},{"../helpers/is-valid-moment-object":27}],23:[function(require,module,exports){"use strict";module.exports=function(value,column,h){if(!this.opts.highlightMatches)return value;var query=this.opts.filterByColumn?this.query[column]:this.query;if(!query)return value;query=new RegExp("("+query+")","i");return h("span",{"class":"VueTables__highlight"},matches(value,query,h))};function matches(value,query,h){var pieces=String(value).split(query);return pieces.map(function(piece){if(query.test(piece)){return h("b",{},piece)}return piece})}},{}],24:[function(require,module,exports){"use strict";module.exports=function(value,column){var list=this.listColumnsObject[column];if(typeof list[value]=="undefined")return value;return list[value]}},{}],25:[function(require,module,exports){"use strict";module.exports=function(data){this.count=data.length;return data}},{}],26:[function(require,module,exports){"use strict";module.exports=function(obj){if(obj==null)return true;if(obj.length>0)return false;if(obj.length===0)return true;for(var key in obj){if(Object.prototype.hasOwnProperty.call(obj,key))return false}return true}},{}],27:[function(require,module,exports){"use strict";module.exports=function(val){return val&&typeof val.isValid=="function"&&val.isValid()}},{}],28:[function(require,module,exports){"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};module.exports=function(obj){var count=0;for(var prop in obj){var isDateRange=_typeof(obj[prop])=="object";if(isDateRange||obj[prop]&&(!isNaN(obj[prop])||obj[prop].trim()))count++}return count}},{}],29:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.default=function(str){return str.charAt(0).toUpperCase()+str.slice(1)}},{}],30:[function(require,module,exports){"use strict";module.exports=function(data){return data.map(function(row){for(var column in row){row[column]=this.formatDate(row[column],this.opts.dateFormat);if(this.isListFilter(column)){row[column]=this.optionText(row[column],column)}}return row}.bind(this))}},{}],31:[function(require,module,exports){"use strict";module.exports=function(rowId){return this.rowsToggleState["row_"+rowId]?"VueTables__child-row-toggler--open":"VueTables__child-row-toggler--closed"}},{}],32:[function(require,module,exports){"use strict";var object_filled_keys_count=require("../helpers/object-filled-keys-count");var is_valid_moment_object=require("../helpers/is-valid-moment-object");var filterByCustomFilters=require("../filters/custom-filters");module.exports=function(data,e){if(e){var _query=this.query;this.setPage(1,true);var name=e.target.name;if(name){_query[name]=""+e.target.value}else{_query=e.target.value}this.vuex?this.commit("SET_FILTER",_query):this.query=_query}var query=this.query;var totalQueries=!query?0:1;if(!this.opts)return data;if(this.opts.filterByColumn){totalQueries=object_filled_keys_count(query)}var value;var found;var currentQuery;var dateFormat=this.opts.dateFormat;var filterByDate;var isListFilter;var data=filterByCustomFilters(data,this.opts.customFilters,this.customQueries);if(!totalQueries)return data;return data.filter(function(row,index){found=0;this.Columns.forEach(function(column){filterByDate=this.opts.dateColumns.indexOf(column)>-1&&this.opts.filterByColumn;isListFilter=this.isListFilter(column)&&this.opts.filterByColumn;value=getValue(row[column],filterByDate,dateFormat);currentQuery=this.opts.filterByColumn?query[column]:query;currentQuery=setCurrentQuery(currentQuery);if(currentQuery&&foundMatch(currentQuery,value,isListFilter))found++}.bind(this));return found>=totalQueries}.bind(this))};function setCurrentQuery(query){if(!query)return"";if(typeof query=="string")return query.toLowerCase();return query}function foundMatch(query,value,isListFilter){if(isListFilter)return value==query;if(typeof value=="string")return value.indexOf(query)>-1;var start=moment(query.start,"YYYY-MM-DD");var end=moment(query.end,"YYYY-MM-DD");return value>=start&&value<=end}function getValue(val,filterByDate,dateFormat){if(is_valid_moment_object(val)){if(filterByDate)return val;return val.format(dateFormat)}return String(val).toLowerCase()}},{"../filters/custom-filters":20,"../helpers/is-valid-moment-object":27,"../helpers/object-filled-keys-count":28}],33:[function(require,module,exports){"use strict";var _bus=require("../bus");var _bus2=_interopRequireDefault(_bus);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}module.exports=function(event,payload){if(this.vuex){this.commit(event.toUpperCase().replace("-","_"),payload)}else{_bus2.default.$emit("vue-tables."+event,payload);this.$emit(event,payload)}}},{"../bus":7}],34:[function(require,module,exports){"use strict";module.exports=function(text,replacements){if(!this.opts.texts)return"";var text=this.opts.texts[text];if(replacements)for(var key in replacements){text=text.replace("{"+key+"}",replacements[key])}return text}},{}],35:[function(require,module,exports){"use strict";module.exports=function(column){if(!this.opts.filterable)return false;return typeof this.opts.filterable=="boolean"&&this.opts.filterable||this.opts.filterable.indexOf(column)>-1}},{}],36:[function(require,module,exports){"use strict";function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true})}else{obj[key]=value}return obj}var merge=require("merge");module.exports=function(promiseOnly){var _data;var keys=this.opts.requestKeys;var data=(_data={},_defineProperty(_data,keys.query,this.query),_defineProperty(_data,keys.limit,this.limit),_defineProperty(_data,keys.orderBy,this.orderBy.column),_defineProperty(_data,keys.ascending,this.orderBy.ascending?1:0),_defineProperty(_data,keys.page,this.page),_defineProperty(_data,keys.byColumn,this.opts.filterByColumn?1:0),_data);data=merge(data,this.opts.params,this.customQueries);this.dispatch("loading",data);var promise=this.sendRequest(data);if(promiseOnly)return promise;return promise.then(function(response){var data=this.getResponseData(response);return this.setData(this.opts.responseAdapter(data))}.bind(this))}},{merge:150}],37:[function(require,module,exports){"use strict";var _ucfirst=require("../helpers/ucfirst");var _ucfirst2=_interopRequireDefault(_ucfirst);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}module.exports=function(value,h){if(typeof value!=="string")return"";var derivedHeading=(0,_ucfirst2.default)(value.split("_").join(" "));if(!this.opts.headings.hasOwnProperty(value))return derivedHeading;if(typeof this.opts.headings[value]==="function"){if(h)return this.opts.headings[value](h);return derivedHeading}return this.opts.headings[value]}},{"../helpers/ucfirst":29}],38:[function(require,module,exports){"use strict";module.exports=function(response){if(typeof axios!=="undefined")return response.data;return response}},{}],39:[function(require,module,exports){"use strict";module.exports=function(column){var ascending=this.orderBy.ascending;if(typeof this.opts.customSorting[column]=="undefined")return function(a,b){var aVal=a[column];var bVal=b[column];if(typeof aVal==="string")aVal=aVal.toLowerCase();if(typeof bVal==="string")bVal=bVal.toLowerCase();if(ascending)return aVal>=bVal?1:-1;return bVal>=aVal?1:-1};return this.opts.customSorting[column](ascending)}},{}],40:[function(require,module,exports){"use strict";var intersection=require("array-intersection");module.exports=function(){var opts=this.opts;return opts.dateColumns.length&&opts.filterByColumn&&(typeof opts.filterable=="boolean"&&opts.filterable||intersection(opts.filterable,opts.dateColumns).length)}},{"array-intersection":98}],41:[function(require,module,exports){"use strict";module.exports=function(){var customQueries={};var init=this.opts.initFilters;var key=void 0;this.opts.customFilters.forEach(function(filter){key=this.source=="client"?filter.name:filter;customQueries[key]=init.hasOwnProperty(key)?init[key]:""}.bind(this));return customQueries}},{}],42:[function(require,module,exports){"use strict";var merge=require("merge");module.exports=function(){var el;var search=function search(){return that.source=="client"?that.search(that.data):that.serverSearch()};var datepickerOptions=merge.recursive(this.opts.datepickerOptions,{autoUpdateInput:false,singleDatePicker:false,locale:{format:this.opts.dateFormat}});var that=this;that.opts.dateColumns.forEach(function(column){el=$(that.$el).find("#VueTables__"+column+"-filter");el.daterangepicker(datepickerOptions);el.on("apply.daterangepicker",function(ev,picker){that.query[column]={start:picker.startDate.format("YYYY-MM-DD"),end:picker.endDate.format("YYYY-MM-DD")};$(this).text(picker.startDate.format(that.opts.dateFormat)+" - "+picker.endDate.format(that.opts.dateFormat));search()});el.on("cancel.daterangepicker",function(ev,picker){that.query[column]="";$(this).html("<span class='VueTables__filter-placeholder'>"+that.display("filterBy",{column:that.getHeading(column)})+"</span>");search()})})}},{merge:150}],43:[function(require,module,exports){"use strict";var merge=require("merge");module.exports=function(defaults,globalOptions,localOptions){if(globalOptions)defaults=merge.recursive(defaults,globalOptions);localOptions=merge.recursive(defaults,localOptions);return localOptions}},{merge:150}],44:[function(require,module,exports){"use strict";module.exports=function(column){if(!this.opts.orderBy){this.orderBy.column=column;return}this.orderBy.column=this.opts.orderBy.column;this.orderBy.ascending=this.opts.orderBy.ascending}},{}],45:[function(require,module,exports){"use strict";module.exports=function(){this.page=1;if(!this.opts.pagination.dropdown){this.$refs.pagination.setPage(1)}}},{}],46:[function(require,module,exports){"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};module.exports=function(){var init=this.opts.initFilters;if(!this.opts.filterByColumn)return init.hasOwnProperty("GENERIC")?init.GENERIC:"";var query={};var filterable=this.opts.filterable&&_typeof(this.opts.filterable)=="object"?this.opts.filterable:this.columns;filterable.forEach(function(column){query[column]=getInitialValue(init,column)}.bind(this));return query};function getInitialValue(init,column){if(!init.hasOwnProperty(column))return"";if(typeof init[column].start=="undefined")return init[column];return{start:init[column].start.format("YYYY-MM-DD"),end:init[column].end.format("YYYY-MM-DD")}}},{}],47:[function(require,module,exports){"use strict";module.exports=function(column){return this.query.hasOwnProperty(column)&&this.opts.dateColumns.indexOf(column)>-1}},{}],48:[function(require,module,exports){"use strict";module.exports=function(column){return this.query.hasOwnProperty(column)&&this.opts.listColumns.hasOwnProperty(column)}},{}],49:[function(require,module,exports){"use strict";module.exports=function(column){return this.query.hasOwnProperty(column)&&this.opts.dateColumns.indexOf(column)==-1&&!this.opts.listColumns.hasOwnProperty(column)}},{}],50:[function(require,module,exports){"use strict";module.exports=function(colName){if(!this.sortable(colName))return;if(colName==this.orderBy.column){this.orderBy.ascending=!this.orderBy.ascending}this.orderBy.column=colName;if(this.source=="server"){this.getData()}}},{}],51:[function(require,module,exports){"use strict";module.exports=function(){this.serverSearch()}},{}],52:[function(require,module,exports){"use strict";var _bus=require("../bus");var _bus2=_interopRequireDefault(_bus);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}module.exports=function(){this.opts.customFilters.forEach(function(filter){_bus2.default.$off("vue-tables.filter::"+filter.name);_bus2.default.$on("vue-tables.filter::"+filter.name,function(value){this.customQueries[filter.name]=value;this.setPage(1);this.search(this.data)}.bind(this))}.bind(this))}},{"../bus":7}],53:[function(require,module,exports){"use strict";var _bus=require("../bus");var _bus2=_interopRequireDefault(_bus);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}module.exports=function(){this.opts.customFilters.forEach(function(filter){_bus2.default.$off("vue-tables.filter::"+filter);_bus2.default.$on("vue-tables.filter::"+filter,function(value){this.customQueries[filter]=value;this.refresh()}.bind(this))}.bind(this))}},{"../bus":7}],54:[function(require,module,exports){"use strict";module.exports=function(row,column,h){if(this.templatesKeys.indexOf(column)==-1)return this.highlightMatch(row[column],column,h);var template=this.opts.templates[column];template=typeof template=="function"?template.apply(this.$root,[h,row]):h(template,{attrs:{data:row}});return h("span",{"class":"VueTables__template"},[template])}},{}],55:[function(require,module,exports){"use strict";module.exports=function(row){var data;var id=this.opts.uniqueKey;if(this.source=="client"&&typeof row[id]!=="undefined"){data=this.tableData.filter(function(r){return row[id]===r[id]})[0]}else{data=row}this.dispatch("row-click",data)}},{}],56:[function(require,module,exports){"use strict";module.exports=function(data){if(typeof axios!=="undefined")return axios.get(this.url,{params:data}).catch(function(e){this.dispatch("error",e)}.bind(this));if(typeof this.$http!=="undefined")return this.$http.get(this.url,{params:data}).then(function(data){return data.json()}.bind(this),function(e){this.dispatch("error",e)}.bind(this));if(typeof $!="undefined")return $.getJSON(this.url,data).fail(function(e){this.dispatch("error",e)}.bind(this));throw"vue-tables: No supported ajax library was found. (jQuery, axios or vue-resource)"}},{}],57:[function(require,module,exports){"use strict";module.exports=function(e){var query=this.query;if(e){var name=e.target.name;var value=e.target.value;if(name){query[name]=value}else{query=value}if(!this.vuex)this.query=query}if(noDebounce(e,name,this.opts)){return search(this)}this.lastKeyStrokeAt=Date.now();var elapsed;var debounce=this.opts.debounce;setTimeout(function(){elapsed=Date.now()-this.lastKeyStrokeAt;if(elapsed>=debounce)search(this,query)}.bind(this),debounce)};function search(that,query){if(that.vuex){that.commit("SET_FILTER",query)}else{that.initPagination();if(that.opts.pagination.dropdown)that.getData()}}function noDebounce(e,name,opts){return!e||name&&(opts.dateColumns.indexOf(name)>-1||Object.keys(opts.listColumns).indexOf(name)>-1)}},{}],58:[function(require,module,exports){"use strict";module.exports=function(data){this.data=data.data;this.count=parseInt(data.count);setTimeout(function(){this.dispatch("loaded",data)}.bind(this),0)}},{}],59:[function(require,module,exports){"use strict";var merge=require("merge");module.exports=function(filter){if(this.opts.filterByColumn)filter=merge(this.query,filter);if(this.vuex){this.commit("SET_FILTER",filter)}else{this.query=filter}if(this.source=="server"){this.getData()}}},{merge:150}],60:[function(require,module,exports){"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};module.exports=function(e){this.limit=(typeof e==="undefined"?"undefined":_typeof(e))==="object"?e.target.value:e;this.setPage(1)}},{}],61:[function(require,module,exports){"use strict";module.exports=function(column,ascending){this.orderBy.column=column;this.orderBy.ascending=ascending;if(this.source=="server"){this.getData()}}},{}],62:[function(require,module,exports){"use strict";module.exports=function(page){page=page?page:this.$refs.page.value;if(!this.opts.pagination.dropdown)this.$refs.pagination.page=page;this.page=page;if(this.source=="server")this.getData()}},{}],63:[function(require,module,exports){"use strict";module.exports=function(column){var cls=this.opts.sortIcon.base+" ";if(!this.sortable(column))return;if(column!=this.orderBy.column)return cls;
cls+=this.orderBy.ascending==1?this.opts.sortIcon.up:this.opts.sortIcon.down;return cls}},{}],64:[function(require,module,exports){"use strict";module.exports=function(column){return this.sortable(column)?"VueTables__sortable":""}},{}],65:[function(require,module,exports){"use strict";module.exports=function(column){var sortAll=typeof this.opts.sortable=="boolean"&&this.opts.sortable;if(sortAll)return true;return this.opts.sortable.indexOf(column)>-1}},{}],66:[function(require,module,exports){"use strict";module.exports=function(rowId,e){if(e)e.stopPropagation();var key="row_"+rowId;if(typeof this.rowsToggleState[key]=="undefined"){this.$set(this.rowsToggleState,key,true)}else{this.rowsToggleState[key]=!this.rowsToggleState[key]}}},{}],67:[function(require,module,exports){"use strict";module.exports=function(){this.data.forEach(function(row,index){this.opts.dateColumns.forEach(function(column){row[column]=moment(row[column],this.opts.toMomentFormat)}.bind(this))}.bind(this))}},{}],68:[function(require,module,exports){"use strict";module.exports={listColumnsObject:require("../computed/list-columns-object"),allColumns:require("../computed/all-columns"),templatesKeys:require("../computed/templates-keys"),opts:require("../computed/opts"),tableData:require("../computed/table-data"),vuex:function vuex(){return!!this.name},Page:function Page(){return this.page}}},{"../computed/all-columns":8,"../computed/list-columns-object":11,"../computed/opts":12,"../computed/table-data":14,"../computed/templates-keys":15}],69:[function(require,module,exports){"use strict";var is_empty=require("../helpers/is-empty");var registerVuexModule=require("../state/register-module");module.exports=function(self){if(self.name){registerVuexModule(self)}else{self.limit=self.opts.perPage}if(is_empty(self.opts.columnsDisplay))return;self.columnsDisplay=getColumnsDisplay(self.opts.columnsDisplay);window.addEventListener("resize",function(){self.windowWidth=window.innerWidth}.bind(self))};function getColumnsDisplay(columnsDisplay){var res={};var range;var device;var operator;for(var column in columnsDisplay){operator=getOperator(columnsDisplay[column]);try{device=getDevice(columnsDisplay[column]);range=getRange(device,operator);res[column]=range.concat([operator])}catch(err){console.warn("Unknown device "+device)}}return res}function getRange(device,operator){var devices={desktop:[1024,null],tablet:[480,1024],mobile:[0,480],tabletL:[768,1024],tabletP:[480,768],mobileL:[320,480],mobileP:[0,320]};switch(operator){case"min":return[devices[device][0],null];case"max":return[0,devices[device][1]];default:return devices[device]}}function getOperator(val){var pieces=val.split("_");if(["not","min","max"].indexOf(pieces[0])>-1)return pieces[0];return false}function getDevice(val){var pieces=val.split("_");return pieces.length>1?pieces[1]:pieces[0]}},{"../helpers/is-empty":26,"../state/register-module":76}],70:[function(require,module,exports){"use strict";module.exports=function(){return{id:makeId(),rowsToggleState:{},windowWidth:window.innerWidth}};function makeId(){var text="";var possible="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(var i=0;i<5;i++){text+=possible.charAt(Math.floor(Math.random()*possible.length))}return text}},{}],71:[function(require,module,exports){"use strict";module.exports={input:require("../directives/input"),select:require("../directives/select")}},{"../directives/input":18,"../directives/select":19}],72:[function(require,module,exports){"use strict";var _module$exports;function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true})}else{obj[key]=value}return obj}module.exports=(_module$exports={initQuery:require("../methods/init-query"),initCustomFilters:require("../methods/init-custom-filters"),initOptions:require("../methods/init-options"),sortableClass:require("../methods/sortable-class"),sortableChevronClass:require("../methods/sortable-chevron-class"),display:require("../methods/display"),orderByColumn:require("../methods/order-by-column"),getHeading:require("../methods/get-heading"),sortable:require("../methods/sortable")},_defineProperty(_module$exports,"display",require("../methods/display")),_defineProperty(_module$exports,"serverSearch",require("../methods/server-search")),_defineProperty(_module$exports,"initOrderBy",require("../methods/init-order-by")),_defineProperty(_module$exports,"initDateFilters",require("../methods/init-date-filters")),_defineProperty(_module$exports,"setFilter",require("../methods/set-filter")),_defineProperty(_module$exports,"setPage",require("../methods/set-page")),_defineProperty(_module$exports,"setOrder",require("../methods/set-order")),_defineProperty(_module$exports,"initPagination",require("../methods/init-pagination")),_defineProperty(_module$exports,"filterable",require("../methods/filterable")),_defineProperty(_module$exports,"isTextFilter",require("../methods/is-text-filter")),_defineProperty(_module$exports,"isDateFilter",require("../methods/is-date-filter")),_defineProperty(_module$exports,"isListFilter",require("../methods/is-list-filter")),_defineProperty(_module$exports,"highlightMatch",require("../filters/highlight-matches")),_defineProperty(_module$exports,"formatDate",require("../filters/format-date")),_defineProperty(_module$exports,"hasDateFilters",require("../methods/has-date-filters")),_defineProperty(_module$exports,"applyFilters",require("../methods/apply-filters")),_defineProperty(_module$exports,"optionText",require("../filters/option-text")),_defineProperty(_module$exports,"render",require("../methods/render")),_defineProperty(_module$exports,"rowWasClicked",require("../methods/row-was-clicked")),_defineProperty(_module$exports,"setLimit",require("../methods/set-limit")),_defineProperty(_module$exports,"dispatch",require("../methods/dispatch")),_defineProperty(_module$exports,"toggleChildRow",require("../methods/toggle-child-row")),_defineProperty(_module$exports,"childRowTogglerClass",require("../methods/child-row-toggler-class")),_defineProperty(_module$exports,"sendRequest",require("../methods/send-request")),_defineProperty(_module$exports,"getResponseData",require("../methods/get-response-data")),_defineProperty(_module$exports,"getSortFn",require("../methods/get-sort-fn")),_module$exports)},{"../filters/format-date":22,"../filters/highlight-matches":23,"../filters/option-text":24,"../methods/apply-filters":30,"../methods/child-row-toggler-class":31,"../methods/dispatch":33,"../methods/display":34,"../methods/filterable":35,"../methods/get-heading":37,"../methods/get-response-data":38,"../methods/get-sort-fn":39,"../methods/has-date-filters":40,"../methods/init-custom-filters":41,"../methods/init-date-filters":42,"../methods/init-options":43,"../methods/init-order-by":44,"../methods/init-pagination":45,"../methods/init-query":46,"../methods/is-date-filter":47,"../methods/is-list-filter":48,"../methods/is-text-filter":49,"../methods/order-by-column":50,"../methods/render":54,"../methods/row-was-clicked":55,"../methods/send-request":56,"../methods/server-search":57,"../methods/set-filter":59,"../methods/set-limit":60,"../methods/set-order":61,"../methods/set-page":62,"../methods/sortable":65,"../methods/sortable-chevron-class":63,"../methods/sortable-class":64,"../methods/toggle-child-row":66}],73:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.default=function(useVuex,source){if(useVuex)return{};var data={count:0,customQueries:{},query:null,page:1,limit:10,windowWidth:window.innerWidth,orderBy:{column:"id",ascending:true}};if(source=="server")data.data=[];return data}},{}],74:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.default=function(self){var _ref2,_merge$recursive;var extra=self.source=="server"?(_ref2={},_defineProperty(_ref2,self.name+"/SET_DATA",function undefined(state,_ref){var data=_ref.data;var count=_ref.count;state.data=data;state.count=parseInt(count)}),_defineProperty(_ref2,self.name+"/LOADING",function undefined(state,payload){}),_defineProperty(_ref2,self.name+"/LOADED",function undefined(state,payload){}),_defineProperty(_ref2,self.name+"/ERROR",function undefined(state,payload){}),_ref2):_defineProperty({},self.name+"/SET_COUNT",function undefined(state,count){state.count=count});return _merge2.default.recursive(true,(_merge$recursive={},_defineProperty(_merge$recursive,self.name+"/PAGINATE",function undefined(state,page){state.page=page;if(self.source=="server")self.getData()}),_defineProperty(_merge$recursive,self.name+"/SET_FILTER",function undefined(state,filter){state.page=1;state.query=filter;if(self.source=="server"){self.getData()}}),_defineProperty(_merge$recursive,self.name+"/SET_CUSTOM_FILTER",function undefined(state,_ref4){var filter=_ref4.filter;var value=_ref4.value;state.page=1;state.customQueries[filter]=value;if(self.source=="server"){self.getData()}}),_defineProperty(_merge$recursive,self.name+"/SET_LIMIT",function undefined(state,limit){state.page=1;state.limit=limit;if(self.source=="server")self.getData()}),_defineProperty(_merge$recursive,self.name+"/SORT",function undefined(state,_ref5){var column=_ref5.column;var ascending=_ref5.ascending;if(typeof ascending!=="undefined"){state.ascending=ascending}else{state.ascending=state.sortBy==column?!state.ascending:true}state.sortBy=column;if(self.source=="server")self.getData()}),_defineProperty(_merge$recursive,self.name+"/ROW_CLICK",function undefined(state,row){}),_merge$recursive),extra)};var _merge=require("merge");var _merge2=_interopRequireDefault(_merge);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true})}else{obj[key]=value}return obj}},{merge:150}],75:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.default=function(){return{computed:{Columns:function Columns(){return this.columns}}}}},{}],76:[function(require,module,exports){"use strict";var _state=require("./state");var _state2=_interopRequireDefault(_state);var _mutations=require("./mutations");var _mutations2=_interopRequireDefault(_mutations);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}module.exports=function(self){if(self.options.cache===false||self.$store._runtimeModules===undefined||self.$store._runtimeModules[self.name]===undefined){self.$store.registerModule(self.name,{state:(0,_state2.default)(self),mutations:(0,_mutations2.default)(self)})}}},{"./mutations":74,"./state":77}],77:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.default=function(self){var state={page:1,limit:self.opts.perPage,count:self.source=="server"?0:self.data.length,columns:self.columns,data:self.source=="client"?self.data:[],query:self.initQuery(),customQueries:self.initCustomFilters(),sortBy:self.opts.orderBy&&self.opts.orderBy.column?self.opts.orderBy.column:self.columns[0],ascending:self.opts.orderBy&&self.opts.orderBy.ascending?self.opts.orderBy.ascending:true};return state}},{}],78:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});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.default=function(source){var extra=source=="server"?serverExtra():clientExtra();return _merge2.default.recursive(true,{props:{name:{type:String,required:true}},computed:{state:function state(){return this.$store.state[this.name]},Page:function Page(){return this.state.page},count:function count(){return this.state.count},Columns:function Columns(){return this.state.columns},tableData:function tableData(){return this.state.data},page:function page(){return this.state.page},limit:function limit(){return this.state.limit},customQueries:function customQueries(){return this.state.customQueries},query:function query(){return this.state.query},orderBy:function orderBy(){return{column:this.state.sortBy,ascending:this.state.ascending}}},methods:{commit:function commit(action,payload,silent){silent={silent:silent};return this.$store.commit(this.name+"/"+action,payload,silent)},orderByColumn:function orderByColumn(column){if(!this.sortable(column))return;this.commit("SORT",{column:column,ascending:undefined})},setLimit:function setLimit(e){var limit=(typeof e==="undefined"?"undefined":_typeof(e))==="object"?parseInt(e.target.value):e;this.commit("SET_LIMIT",limit)},setOrder:function setOrder(column,ascending){this.commit("SORT",{column:column,ascending:ascending})},setPage:function setPage(page,silent){if(!page){page=this.$refs.page.value}this.commit("PAGINATE",page,silent)}}},extra)};var _merge=require("merge");var _merge2=_interopRequireDefault(_merge);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}function serverExtra(){return{methods:{setData:function setData(_ref){var data=_ref.data;var count=_ref.count;this.commit("SET_DATA",{data:data,count:count});this.commit("LOADED",{data:data,count:count})}}}}function clientExtra(){return{}}},{merge:150}],79:[function(require,module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.default=function(){return{methods:methods,computed:computed,directives:directives}};var methods=require("./mixins/methods");var computed=require("./mixins/computed");var directives=require("./mixins/directives")},{"./mixins/computed":68,"./mixins/directives":71,"./mixins/methods":72}],80:[function(require,module,exports){"use strict";module.exports=function(source){return function(h){var rows=require("./template/rows")(h,this);var normalFilter=require("./template/normal-filter")(h,this);var dropdownPagination=require("./template/dropdown-pagination")(h,this);var columnFilters=require("./template/column-filters")(h,this);var footerHeadings=require("./template/footer-headings")(h,this);var noResults=require("./template/no-results")(h,this);var pagination=require("./template/pagination")(h,this);var dropdownPaginationCount=require("./template/dropdown-pagination-count")(h,this);var headings=require("./template/headings")(h,this);var perPage=require("./template/per-page")(h,this);return h("div",{"class":"VueTables VueTables--"+this.source},[h("div",{"class":"row"},[h("div",{"class":"col-md-6"},[normalFilter]),h("div",{"class":"col-md-6"},[dropdownPagination,perPage])]),h("table",{"class":"VueTables__table table "+this.opts.skin},[h("thead",null,[h("tr",null,[headings]),columnFilters]),footerHeadings,h("tbody",null,[noResults,rows])]),pagination,dropdownPaginationCount])}}},{"./template/column-filters":81,"./template/dropdown-pagination":84,"./template/dropdown-pagination-count":83,"./template/footer-headings":85,"./template/headings":86,"./template/no-results":88,"./template/normal-filter":89,"./template/pagination":90,"./template/per-page":92,"./template/rows":93}],81:[function(require,module,exports){"use strict";function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true})}else{obj[key]=value}return obj}module.exports=function(h,that){if(!that.opts.filterByColumn||!that.opts.filterable)return"";var textFilter=require("./text-filter")(h,that);var dateFilter=require("./date-filter")(h,that);var listFilter=require("./list-filter")(h,that);var filters=[];var filter;if(that.opts.childRow)filters.push(h("th",null,[]));that.allColumns.map(function(column){if(that.filterable(column)){switch(true){case that.isTextFilter(column):filter=textFilter(column);break;case that.isDateFilter(column):filter=dateFilter(column);break;case that.isListFilter(column):filter=listFilter(column);break}}else{filter=""}filters.push(h("th",null,[h("div",_defineProperty({"class":"VueTables__column-filter"},"class","VueTables__"+column+"-filter-wrapper"),[filter])]))});return h("tr",{"class":"VueTables__filters-row"},[filters])}},{"./date-filter":82,"./list-filter":87,"./text-filter":95}],82:[function(require,module,exports){"use strict";module.exports=function(h,that){return function(column){return h("div",{"class":"VueTables__date-filter",attrs:{id:"VueTables__"+column+"-filter"}},[h("span",{"class":"VueTables__filter-placeholder"},[that.display("filterBy",{column:that.getHeading(column)})])])}}},{}],83:[function(require,module,exports){"use strict";module.exports=function(h,that){if(that.count>0&&that.opts.pagination.dropdown){var perPage=parseInt(that.limit);var from=(that.Page-1)*perPage+1;var to=that.Page==that.totalPages?that.count:from+perPage-1;var parts=that.opts.texts.count.split("|");var i=Math.min(that.count==1?2:that.totalPages==1?1:0,parts.length-1);var count=parts[i].replace("{count}",that.count).replace("{from}",from).replace("{to}",to);return h("div",{"class":"VuePagination"},[h("p",{"class":"VuePagination__count"},[count])])}return""}},{}],84:[function(require,module,exports){"use strict";module.exports=function(h,that){if(that.opts.pagination&&that.opts.pagination.dropdown){var pages=[];var selected;for(var pag=1;pag<=that.totalPages;pag++){var selected=that.page==pag;pages.push(h("option",{attrs:{value:pag,selected:selected}},[pag]))}var id="VueTables__dropdown-pagination_"+that.id;return h("div",{"class":"form-group form-inline pull-right VueTables__dropdown-pagination",directives:[{name:"show",value:that.totalPages>1}]},[h("label",{attrs:{"for":id}},[that.display("page")]),h("select",{"class":"form-control",attrs:{name:"page",value:that.page,id:id},ref:"page",on:{change:that.setPage.bind(that,null)}},[pages])])}return""}},{}],85:[function(require,module,exports){"use strict";function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true})}else{obj[key]=value}return obj}module.exports=function(h,that){if(!that.opts.footerHeadings)return"";var footerHeadings=[];if(that.opts.footerHeadings){var columns=that.allColumns;columns.map(function(column){footerHeadings.push(h("th",{on:{click:that.orderByColumn.bind(that,column)},"class":that.sortableClass(column)},[h("span",{"class":"VueTables__heading"},[that.getHeading(column)]),h("span",_defineProperty({directives:[{name:"show",value:that.sortable(column)}],"class":"VueTables__sort-icon pull-right"},"class",that.sortableChevronClass(column)),[])]))})}return h("tfoot",null,[h("tr",null,[footerHeadings])])}},{}],86:[function(require,module,exports){"use strict";module.exports=function(h,that){var sortControl=require("./sort-control")(h,that);var headings=[];if(that.opts.childRow)headings.push(h("th",null,[]));that.allColumns.map(function(column){headings.push(h("th",{on:{click:that.orderByColumn.bind(that,column)},"class":that.sortableClass(column)},[h("span",{"class":"VueTables__heading"},[that.getHeading(column,h)]),sortControl(column)]))}.bind(that));return headings}},{"./sort-control":94}],87:[function(require,module,exports){"use strict";module.exports=function(h,that){return function(column){var options=[];var selected=void 0;var search=that.source=="client"?that.search.bind(that,that.data):that.serverSearch.bind(that);that.opts.listColumns[column].map(function(option){selected=option.id==that.query[column]&&that.query[column]!=="";options.push(h("option",{attrs:{value:option.id,selected:selected}},[option.text]))});return h("div",{"class":"VueTables__list-filter",attrs:{id:"VueTables__"+column+"-filter"}},[h("select",{"class":"form-control",on:{change:search},attrs:{name:column,value:that.query[column]}},[h("option",{attrs:{value:""}},[that.display("defaultOption",{column:that.getHeading(column)})]),options])])}}},{}],88:[function(require,module,exports){"use strict";module.exports=function(h,that){if(that.count==0){var colspan=that.allColumns.length;if(that.opts.childRow)colspan++;return h("tr",{"class":"VueTables__no-results"},[h("td",{"class":"text-center",attrs:{colspan:colspan}},[that.display(that.loading?"loading":"noResults")])])}}},{}],89:[function(require,module,exports){"use strict";module.exports=function(h,that){if(!that.opts.filterable)return"";var search=that.source=="client"?that.search.bind(that,that.data):that.serverSearch.bind(that);if(that.opts.filterable&&!that.opts.filterByColumn){var id="VueTables__search_"+that.id;return h("div",{"class":"form-group form-inline pull-left VueTables__search"},[h("label",{attrs:{"for":id}},[that.display("filter")]),h("input",{"class":"form-control",attrs:{type:"text",value:that.query,placeholder:that.display("filterPlaceholder"),id:id},on:{keyup:search}},[])])}return""}},{}],90:[function(require,module,exports){"use strict";module.exports=function(h,that){if(that.opts.pagination&&!that.opts.pagination.dropdown){var name=that.vuex?that.name:that.id;return h("pagination",{ref:"pagination",attrs:{"for":name,records:that.count,"per-page":parseInt(that.limit),chunk:that.opts.pagination.chunk,"count-text":that.opts.texts.count}},[])}return""}},{}],91:[function(require,module,exports){"use strict";module.exports=function(h,that){var perpageValues=[];that.opts.perPageValues.every(function(value){var isLastEntry=value>=that.count;var selected=that.limit==value||isLastEntry&&that.limit>value;perpageValues.push(h("option",{attrs:{value:value,selected:selected}},[value]));return!isLastEntry});return perpageValues}},{}],92:[function(require,module,exports){"use strict";module.exports=function(h,that){var perpageValues=require("./per-page-values")(h,that);if(perpageValues.length>1){var id="VueTables__limit_"+that.id;return h("div",{"class":"form-group form-inline pull-right VueTables__limit"},[h("label",{attrs:{"for":id}},[that.display("limit")]),h("select",{"class":"form-control",attrs:{name:"limit",value:that.limit,id:id},on:{change:that.setLimit.bind(that)}},[perpageValues])])}return""}},{"./per-page-values":91}],93:[function(require,module,exports){"use strict";module.exports=function(h,that){var rows=[];var columns;var rowKey=that.opts.uniqueKey;var rowClass;var data=that.source=="client"?that.filteredData:that.tableData;data.map(function(row,index){columns=[];if(that.opts.childRow)columns.push(h("td",null,[h("span",{on:{click:that.toggleChildRow.bind(that,row[rowKey])},"class":"VueTables__child-row-toggler "+that.childRowTogglerClass(row[rowKey])},[])]));that.allColumns.map(function(column){var rowTemplate=that.$scopedSlots&&that.$scopedSlots[column];columns.push(h("td",null,[rowTemplate?rowTemplate({row:row,column:column,index:index}):that.render(row,column,h)]))}.bind(that));rowClass=that.opts.rowClassCallback?that.opts.rowClassCallback(row):"";rows.push(h("tr",{"class":rowClass,on:{click:that.rowWasClicked.bind(that,row)}},[columns," "]));if(that.opts.childRow&&this.rowsToggleState["row_"+row[rowKey]]){var childRow=that.opts.childRow;var template=typeof childRow==="function"?childRow.apply(that,[h,row]):h(childRow,{attrs:{data:row}});rows.push(h("tr",{"class":"VueTables__child-row"},[h("td",{attrs:{colspan:that.allColumns.length+1}},[template])]))}}.bind(that));return rows}},{}],94:[function(require,module,exports){"use strict";module.exports=function(h,that){return function(column){if(!that.sortable(column))return"";return h("span",{"class":"VueTables__sort-icon pull-right "+that.sortableChevronClass(column)},[])}.bind(that)}},{}],95:[function(require,module,exports){"use strict";module.exports=function(h,that){var search=that.source=="client"?that.search.bind(that,that.data):that.serverSearch.bind(that);return function(column){return h("input",{on:{keyup:search},"class":"form-control",attrs:{name:column,type:"text",placeholder:that.display("filterBy",{column:that.getHeading(column)}),value:that.query[column]}},[])}}},{}],96:[function(require,module,exports){"use strict";var _vuePagination=require("vue-pagination-2");var _vuex=require("./state/vuex");var _vuex2=_interopRequireDefault(_vuex);var _normal=require("./state/normal");var _normal2=_interopRequireDefault(_normal);var _merge=require("merge");var _merge2=_interopRequireDefault(_merge);var _table=require("./table");var _table2=_interopRequireDefault(_table);var _data2=require("./state/data");var _data3=_interopRequireDefault(_data2);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}var _data=require("./mixins/data");var _created=require("./mixins/created");var template=require("./template");exports.install=function(Vue,globalOptions,useVuex,customTemplate){Vue.use(_vuePagination.VuePagination,useVuex);var client=_merge2.default.recursive(true,(0,_table2.default)(),{name:"client-table",render:customTemplate?customTemplate:template("client"),props:{columns:{type:Array,required:true},data:{type:Array,required:true},options:{type:Object,required:false,"default":function _default(){return{}}}},created:function created(){_created(this);if(!this.vuex){this.initOrderBy(this.Columns[0]);this.query=this.initQuery();this.customQueries=this.initCustomFilters()}},mounted:function mounted(){if(this.hasDateFilters()){this.initDateFilters()}if(this.opts.toMomentFormat)this.transformDateStringsToMoment();if(!this.vuex){this.registerClientFilters();_vuePagination.VueEvent.$on("vue-pagination::"+this.id,function(page){this.setPage(page)}.bind(this))}},data:function data(){return _merge2.default.recursive(_data(),{source:"client",globalOptions:globalOptions},(0,_data3.default)(useVuex))},computed:{q:require("./computed/q"),customQ:require("./computed/custom-q"),totalPages:require("./computed/total-pages"),filteredData:require("./computed/filtered-data")},filters:{setCount:require("./filters/set-count"),date:require("./filters/date")},methods:{transformDateStringsToMoment:require("./methods/transform-date-strings-to-moment"),registerClientFilters:require("./methods/register-client-filters"),search:require("./methods/client-search")}});var state=useVuex?(0,_vuex2.default)():(0,_normal2.default)();client=_merge2.default.recursive(client,state);Vue.component("v-client-table",client)}},{"./computed/custom-q":9,"./computed/filtered-data":10,"./computed/q":13,"./computed/total-pages":16,"./filters/date":21,"./filters/set-count":25,"./methods/client-search":32,"./methods/register-client-filters":52,"./methods/transform-date-strings-to-moment":67,"./mixins/created":69,"./mixins/data":70,"./state/data":73,"./state/normal":75,"./state/vuex":78,"./table":79,"./template":80,merge:150,"vue-pagination-2":157}],97:[function(require,module,exports){"use strict";var _merge=require("merge");var _merge2=_interopRequireDefault(_merge);var _data2=require("./state/data");var _data3=_interopRequireDefault(_data2);var _vuex=require("./state/vuex");var _vuex2=_interopRequireDefault(_vuex);var _normal=require("./state/normal");var _normal2=_interopRequireDefault(_normal);var _table=require("./table");var _table2=_interopRequireDefault(_table);var _vuePagination=require("vue-pagination-2");function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}var _data=require("./mixins/data");var _created=require("./mixins/created");var template=require("./template");exports.install=function(Vue,globalOptions,useVuex,customTemplate){var state=useVuex?(0,_vuex2.default)("server"):(0,_normal2.default)();Vue.use(_vuePagination.VuePagination,useVuex);var server=_merge2.default.recursive(true,(0,_table2.default)(),{name:"server-table",render:customTemplate?customTemplate:template("server"),props:{columns:{type:Array,required:true},url:{type:String,required:true},options:{type:Object,required:false,"default":function _default(){return{}}}},created:function created(){_created(this);if(!this.vuex){this.query=this.initQuery();this.initOrderBy(this.Columns[0])}if(!this.vuex){this.customQueries=this.initCustomFilters()}this.getData(true).then(function(response){var data=this.getResponseData(response);this.setData(this.opts.responseAdapter(data));this.loading=false;if(this.hasDateFilters()){setTimeout(function(){this.initDateFilters()}.bind(this),0)}}.bind(this))},mounted:function mounted(){if(this.vuex)return;this.registerServerFilters();_vuePagination.VueEvent.$on("vue-pagination::"+this.id,function(page){this.setPage(page)}.bind(this))},data:function data(){return _merge2.default.recursive(_data(),{source:"server",loading:true,lastKeyStrokeAt:false,globalOptions:globalOptions},(0,_data3.default)(useVuex,"server"))},methods:{refresh:require("./methods/refresh"),getData:require("./methods/get-data"),setData:require("./methods/set-data"),serverSearch:require("./methods/server-search"),registerServerFilters:require("./methods/register-server-filters")},computed:{totalPages:require("./computed/total-pages")}},state);Vue.component("v-server-table",server)}},{"./computed/total-pages":16,"./methods/get-data":36,"./methods/refresh":51,"./methods/register-server-filters":53,"./methods/server-search":57,"./methods/set-data":58,"./mixins/created":69,"./mixins/data":70,"./state/data":73,"./state/normal":75,"./state/vuex":78,"./table":79,"./template":80,merge:150,"vue-pagination-2":157}],98:[function(require,module,exports){"use strict";var filter=require("filter-array");var every=require("array-every");var unique=require("array-unique");var slice=require("array-slice");var indexOf=require("index-of");module.exports=function intersection(arr){if(arr==null){return[]}if(arguments.length===1){return unique(arr)}var arrays=slice(arguments,1);return filter(unique(arr),function(ele){return every(arrays,function(cur){return indexOf(cur,ele)!==-1})})}},{"array-every":99,"array-slice":103,"array-unique":104,"filter-array":105,"index-of":148}],99:[function(require,module,exports){"use strict";var iterator=require("make-iterator");module.exports=function every(arr,cb,thisArg){cb=iterator(cb,thisArg);var res=true;if(arr==null)return res;var len=arr.length;var i=0;while(len--){if(!cb(arr[i++],i,arr)){res=false;break}}return res}},{"make-iterator":100}],100:[function(require,module,exports){"use strict";var forOwn=require("for-own");module.exports=function makeIterator(src,thisArg){if(src==null){return noop}switch(typeof src){case"function":return typeof thisArg!=="undefined"?function(val,i,arr){return src.call(thisArg,val,i,arr)}:src;case"object":return function(val){return deepMatches(val,src)};case"string":case"number":return prop(src)}};function containsMatch(array,value){var len=array.length;var i=-1;while(++i<len){if(deepMatches(array[i],value)){return true}}return false}function matchArray(o,value){var len=value.length;var i=-1;while(++i<len){if(!containsMatch(o,value[i])){return false}}return true}function matchObject(o,value){var res=true;forOwn(value,function(val,key){if(!deepMatches(o[key],val)){return res=false}});return res}function deepMatches(o,value){if(o&&typeof o==="object"){if(Array.isArray(o)&&Array.isArray(value)){return matchArray(o,value)}else{return matchObject(o,value)}}else{return o===value}}function prop(name){return function(obj){return obj[name]}}function noop(val){return val}},{"for-own":101}],101:[function(require,module,exports){"use strict";var forIn=require("for-in");var hasOwn=Object.prototype.hasOwnProperty;module.exports=function forOwn(obj,fn,thisArg){forIn(obj,function(val,key){if(hasOwn.call(obj,key)){return fn.call(thisArg,obj[key],key,obj)}})}},{"for-in":102}],102:[function(require,module,exports){"use strict";module.exports=function forIn(obj,fn,thisArg){for(var key in obj){if(fn.call(thisArg,obj[key],key,obj)===false){break}}}},{}],103:[function(require,module,exports){"use strict";module.exports=function slice(arr,start,end){var len=arr.length>>>0;var range=[];start=idx(arr,start);end=idx(arr,end,len);while(start<end){
range.push(arr[start++])}return range};function idx(arr,pos,end){var len=arr.length>>>0;if(pos==null){pos=end||0}else if(pos<0){pos=Math.max(len+pos,0)}else{pos=Math.min(pos,len)}return pos}},{}],104:[function(require,module,exports){"use strict";module.exports=function unique(arr){if(!Array.isArray(arr)){throw new TypeError("array-unique expects an array.")}var len=arr.length;var i=-1;while(i++<len){var j=i+1;for(;j<arr.length;++j){if(arr[i]===arr[j]){arr.splice(j--,1)}}}return arr}},{}],105:[function(require,module,exports){"use strict";var typeOf=require("kind-of");var filter=require("arr-filter");var mm=require("micromatch");module.exports=function filterArray(arr,filters,opts){if(arr.length===0){return[]}if(typeOf(filters)==="function"||typeOf(filters)==="regexp"){var isMatch=mm.matcher(filters,opts);return filter(arr,function _filter(val){return isMatch(val)})}if(typeOf(filters)==="string"||typeOf(filters)==="array"){return filter(arr,mm.filter(filters,opts))}return[]}},{"arr-filter":106,"kind-of":110,micromatch:111}],106:[function(require,module,exports){"use strict";var makeIterator=require("make-iterator");module.exports=function filter(arr,fn,thisArg){if(arr==null){return[]}if(typeof fn!=="function"){throw new TypeError("expected callback to be a function")}var iterator=makeIterator(fn,thisArg);var len=arr.length;var res=arr.slice();var i=-1;while(len--){if(!iterator(arr[len],i++)){res.splice(len,1)}}return res}},{"make-iterator":107}],107:[function(require,module,exports){"use strict";var typeOf=require("kind-of");module.exports=function makeIterator(target,thisArg){switch(typeOf(target)){case"undefined":case"null":return noop;case"function":return typeof thisArg!=="undefined"?function(val,i,arr){return target.call(thisArg,val,i,arr)}:target;case"object":return function(val){return deepMatches(val,target)};case"regexp":return function(str){return target.test(str)};case"string":case"number":default:{return prop(target)}}};function containsMatch(array,value){var len=array.length;var i=-1;while(++i<len){if(deepMatches(array[i],value)){return true}}return false}function matchArray(arr,value){var len=value.length;var i=-1;while(++i<len){if(!containsMatch(arr,value[i])){return false}}return true}function matchObject(obj,value){for(var key in value){if(value.hasOwnProperty(key)){if(deepMatches(obj[key],value[key])===false){return false}}}return true}function deepMatches(val,value){if(typeOf(val)==="object"){if(Array.isArray(val)&&Array.isArray(value)){return matchArray(val,value)}else{return matchObject(val,value)}}else{return val===value}}function prop(name){return function(obj){return obj[name]}}function noop(val){return val}},{"kind-of":108}],108:[function(require,module,exports){(function(Buffer){var isBuffer=require("is-buffer");var toString=Object.prototype.toString;module.exports=function kindOf(val){if(typeof val==="undefined"){return"undefined"}if(val===null){return"null"}if(val===true||val===false||val instanceof Boolean){return"boolean"}if(typeof val==="string"||val instanceof String){return"string"}if(typeof val==="number"||val instanceof Number){return"number"}if(typeof val==="function"||val instanceof Function){return"function"}if(typeof Array.isArray!=="undefined"&&Array.isArray(val)){return"array"}if(val instanceof RegExp){return"regexp"}if(val instanceof Date){return"date"}var type=toString.call(val);if(type==="[object RegExp]"){return"regexp"}if(type==="[object Date]"){return"date"}if(type==="[object Arguments]"){return"arguments"}if(type==="[object Error]"){return"error"}if(typeof Buffer!=="undefined"&&isBuffer(val)){return"buffer"}if(type==="[object Set]"){return"set"}if(type==="[object WeakSet]"){return"weakset"}if(type==="[object Map]"){return"map"}if(type==="[object WeakMap]"){return"weakmap"}if(type==="[object Symbol]"){return"symbol"}if(type==="[object Int8Array]"){return"int8array"}if(type==="[object Uint8Array]"){return"uint8array"}if(type==="[object Uint8ClampedArray]"){return"uint8clampedarray"}if(type==="[object Int16Array]"){return"int16array"}if(type==="[object Uint16Array]"){return"uint16array"}if(type==="[object Int32Array]"){return"int32array"}if(type==="[object Uint32Array]"){return"uint32array"}if(type==="[object Float32Array]"){return"float32array"}if(type==="[object Float64Array]"){return"float64array"}return"object"}}).call(this,require("buffer").Buffer)},{buffer:1,"is-buffer":109}],109:[function(require,module,exports){module.exports=function(obj){return obj!=null&&(isBuffer(obj)||isSlowBuffer(obj)||!!obj._isBuffer)};function isBuffer(obj){return!!obj.constructor&&typeof obj.constructor.isBuffer==="function"&&obj.constructor.isBuffer(obj)}function isSlowBuffer(obj){return typeof obj.readFloatLE==="function"&&typeof obj.slice==="function"&&isBuffer(obj.slice(0,0))}},{}],110:[function(require,module,exports){(function(Buffer){var toString=Object.prototype.toString;module.exports=function kindOf(val){if(val===undefined){return"undefined"}if(val===null){return"null"}if(val===true||val===false||val instanceof Boolean){return"boolean"}if(typeof val!=="object"){return typeof val}if(Array.isArray(val)){return"array"}var type=toString.call(val);if(val instanceof RegExp||type==="[object RegExp]"){return"regexp"}if(val instanceof Date||type==="[object Date]"){return"date"}if(type==="[object Function]"){return"function"}if(type==="[object Arguments]"){return"arguments"}if(typeof Buffer!=="undefined"&&Buffer.isBuffer(val)){return"buffer"}return type.slice(8,-1).toLowerCase()}}).call(this,require("buffer").Buffer)},{buffer:1}],111:[function(require,module,exports){"use strict";var expand=require("./lib/expand");var utils=require("./lib/utils");function micromatch(files,patterns,opts){if(!files||!patterns)return[];opts=opts||{};if(typeof opts.cache==="undefined"){opts.cache=true}if(!Array.isArray(patterns)){return match(files,patterns,opts)}var len=patterns.length,i=0;var omit=[],keep=[];while(len--){var glob=patterns[i++];if(typeof glob==="string"&&glob.charCodeAt(0)===33){omit.push.apply(omit,match(files,glob.slice(1),opts))}else{keep.push.apply(keep,match(files,glob,opts))}}return utils.diff(keep,omit)}function match(files,pattern,opts){if(utils.typeOf(files)!=="string"&&!Array.isArray(files)){throw new Error(msg("match","files","a string or array"))}files=utils.arrayify(files);opts=opts||{};var negate=opts.negate||false;var orig=pattern;if(typeof pattern==="string"){negate=pattern.charAt(0)==="!";if(negate){pattern=pattern.slice(1)}if(opts.nonegate===true){negate=false}}var _isMatch=matcher(pattern,opts);var len=files.length,i=0;var res=[];while(i<len){var file=files[i++];var fp=utils.unixify(file,opts);if(!_isMatch(fp)){continue}res.push(fp)}if(res.length===0){if(opts.failglob===true){throw new Error('micromatch.match() found no matches for: "'+orig+'".')}if(opts.nonull||opts.nullglob){res.push(utils.unescapeGlob(orig))}}if(negate){res=utils.diff(files,res)}if(opts.ignore&&opts.ignore.length){pattern=opts.ignore;opts=utils.omit(opts,["ignore"]);res=utils.diff(res,micromatch(res,pattern,opts))}if(opts.nodupes){return utils.unique(res)}return res}function filter(patterns,opts){if(!Array.isArray(patterns)&&typeof patterns!=="string"){throw new TypeError(msg("filter","patterns","a string or array"))}patterns=utils.arrayify(patterns);var len=patterns.length,i=0;var patternMatchers=Array(len);while(i<len){patternMatchers[i]=matcher(patterns[i++],opts)}return function(fp){if(fp==null)return[];var len=patternMatchers.length,i=0;var res=true;fp=utils.unixify(fp,opts);while(i<len){var fn=patternMatchers[i++];if(!fn(fp)){res=false;break}}return res}}function isMatch(fp,pattern,opts){if(typeof fp!=="string"){throw new TypeError(msg("isMatch","filepath","a string"))}fp=utils.unixify(fp,opts);if(utils.typeOf(pattern)==="object"){return matcher(fp,pattern)}return matcher(pattern,opts)(fp)}function contains(fp,pattern,opts){if(typeof fp!=="string"){throw new TypeError(msg("contains","pattern","a string"))}opts=opts||{};opts.contains=pattern!=="";fp=utils.unixify(fp,opts);if(opts.contains&&!utils.isGlob(pattern)){return fp.indexOf(pattern)!==-1}return matcher(pattern,opts)(fp)}function any(fp,patterns,opts){if(!Array.isArray(patterns)&&typeof patterns!=="string"){throw new TypeError(msg("any","patterns","a string or array"))}patterns=utils.arrayify(patterns);var len=patterns.length;fp=utils.unixify(fp,opts);while(len--){var isMatch=matcher(patterns[len],opts);if(isMatch(fp)){return true}}return false}function matchKeys(obj,glob,options){if(utils.typeOf(obj)!=="object"){throw new TypeError(msg("matchKeys","first argument","an object"))}var fn=matcher(glob,options);var res={};for(var key in obj){if(obj.hasOwnProperty(key)&&fn(key)){res[key]=obj[key]}}return res}function matcher(pattern,opts){if(typeof pattern==="function"){return pattern}if(pattern instanceof RegExp){return function(fp){return pattern.test(fp)}}if(typeof pattern!=="string"){throw new TypeError(msg("matcher","pattern","a string, regex, or function"))}pattern=utils.unixify(pattern,opts);if(!utils.isGlob(pattern)){return utils.matchPath(pattern,opts)}var re=makeRe(pattern,opts);if(opts&&opts.matchBase){return utils.hasFilename(re,opts)}return function(fp){fp=utils.unixify(fp,opts);return re.test(fp)}}function toRegex(glob,options){var opts=Object.create(options||{});var flags=opts.flags||"";if(opts.nocase&&flags.indexOf("i")===-1){flags+="i"}var parsed=expand(glob,opts);opts.negated=opts.negated||parsed.negated;opts.negate=opts.negated;glob=wrapGlob(parsed.pattern,opts);var re;try{re=new RegExp(glob,flags);return re}catch(err){err.reason="micromatch invalid regex: ("+re+")";if(opts.strict)throw new SyntaxError(err)}return/$^/}function wrapGlob(glob,opts){var prefix=opts&&!opts.contains?"^":"";var after=opts&&!opts.contains?"$":"";glob="(?:"+glob+")"+after;if(opts&&opts.negate){return prefix+("(?!^"+glob+").*$")}return prefix+glob}function makeRe(glob,opts){if(utils.typeOf(glob)!=="string"){throw new Error(msg("makeRe","glob","a string"))}return utils.cache(toRegex,glob,opts)}function msg(method,what,type){return"micromatch."+method+"(): "+what+" should be "+type+"."}micromatch.any=any;micromatch.braces=micromatch.braceExpand=utils.braces;micromatch.contains=contains;micromatch.expand=expand;micromatch.filter=filter;micromatch.isMatch=isMatch;micromatch.makeRe=makeRe;micromatch.match=match;micromatch.matcher=matcher;micromatch.matchKeys=matchKeys;module.exports=micromatch},{"./lib/expand":113,"./lib/utils":115}],112:[function(require,module,exports){"use strict";var chars={},unesc,temp;function reverse(object,prepender){return Object.keys(object).reduce(function(reversed,key){var newKey=prepender?prepender+key:key;reversed[object[key]]=newKey;return reversed},{})}chars.escapeRegex={"?":/\?/g,"@":/\@/g,"!":/\!/g,"+":/\+/g,"*":/\*/g,"(":/\(/g,")":/\)/g,"[":/\[/g,"]":/\]/g};chars.ESC={"?":"__UNESC_QMRK__","@":"__UNESC_AMPE__","!":"__UNESC_EXCL__","+":"__UNESC_PLUS__","*":"__UNESC_STAR__",",":"__UNESC_COMMA__","(":"__UNESC_LTPAREN__",")":"__UNESC_RTPAREN__","[":"__UNESC_LTBRACK__","]":"__UNESC_RTBRACK__"};chars.UNESC=unesc||(unesc=reverse(chars.ESC,"\\"));chars.ESC_TEMP={"?":"__TEMP_QMRK__","@":"__TEMP_AMPE__","!":"__TEMP_EXCL__","*":"__TEMP_STAR__","+":"__TEMP_PLUS__",",":"__TEMP_COMMA__","(":"__TEMP_LTPAREN__",")":"__TEMP_RTPAREN__","[":"__TEMP_LTBRACK__","]":"__TEMP_RTBRACK__"};chars.TEMP=temp||(temp=reverse(chars.ESC_TEMP));module.exports=chars},{}],113:[function(require,module,exports){"use strict";var utils=require("./utils");var Glob=require("./glob");module.exports=expand;function expand(pattern,options){if(typeof pattern!=="string"){throw new TypeError("micromatch.expand(): argument should be a string.")}var glob=new Glob(pattern,options||{});var opts=glob.options;if(!utils.isGlob(pattern)){glob.pattern=glob.pattern.replace(/([\/.])/g,"\\$1");return glob}glob.pattern=glob.pattern.replace(/(\+)(?!\()/g,"\\$1");glob.pattern=glob.pattern.split("$").join("\\$");if(typeof opts.braces!=="boolean"&&typeof opts.nobraces!=="boolean"){opts.braces=true}if(glob.pattern===".*"){return{pattern:"\\."+star,tokens:tok,options:opts}}if(glob.pattern==="*"){return{pattern:oneStar(opts.dot),tokens:tok,options:opts}}glob.parse();var tok=glob.tokens;tok.is.negated=opts.negated;if((opts.dotfiles===true||tok.is.dotfile)&&opts.dot!==false){opts.dotfiles=true;opts.dot=true}if((opts.dotdirs===true||tok.is.dotdir)&&opts.dot!==false){opts.dotdirs=true;opts.dot=true}if(/[{,]\./.test(glob.pattern)){opts.makeRe=false;opts.dot=true}if(opts.nonegate!==true){opts.negated=glob.negated}if(glob.pattern.charAt(0)==="."&&glob.pattern.charAt(1)!=="/"){glob.pattern="\\"+glob.pattern}glob.track("before braces");if(tok.is.braces){glob.braces()}glob.track("after braces");glob.track("before extglob");if(tok.is.extglob){glob.extglob()}glob.track("after extglob");glob.track("before brackets");if(tok.is.brackets){glob.brackets()}glob.track("after brackets");glob._replace("[!","[^");glob._replace("(?","(%~");glob._replace(/\[\]/,"\\[\\]");glob._replace("/[","/"+(opts.dot?dotfiles:nodot)+"[",true);glob._replace("/?","/"+(opts.dot?dotfiles:nodot)+"[^/]",true);glob._replace("/.","/(?=.)\\.",true);glob._replace(/^(\w):([\\\/]+?)/gi,"(?=.)$1:$2",true);if(glob.pattern.indexOf("[^")!==-1){glob.pattern=negateSlash(glob.pattern)}if(opts.globstar!==false&&glob.pattern==="**"){glob.pattern=globstar(opts.dot)}else{glob.pattern=balance(glob.pattern,"[","]");glob.escape(glob.pattern);if(tok.is.globstar){glob.pattern=collapse(glob.pattern,"/**");glob.pattern=collapse(glob.pattern,"**/");glob._replace("/**/","(?:/"+globstar(opts.dot)+"/|/)",true);glob._replace(/\*{2,}/g,"**");glob._replace(/(\w+)\*(?!\/)/g,"$1[^/]*?",true);glob._replace(/\*\*\/\*(\w)/g,globstar(opts.dot)+"\\/"+(opts.dot?dotfiles:nodot)+"[^/]*?$1",true);if(opts.dot!==true){glob._replace(/\*\*\/(.)/g,"(?:**\\/|)$1")}if(tok.path.dirname!==""||/,\*\*|\*\*,/.test(glob.orig)){glob._replace("**",globstar(opts.dot),true)}}glob._replace(/\/\*$/,"\\/"+oneStar(opts.dot),true);glob._replace(/(?!\/)\*$/,star,true);glob._replace(/([^\/]+)\*/,"$1"+oneStar(true),true);glob._replace("*",oneStar(opts.dot),true);glob._replace("?.","?\\.",true);glob._replace("?:","?:",true);glob._replace(/\?+/g,function(match){var len=match.length;if(len===1){return qmark}return qmark+"{"+len+"}"});glob._replace(/\.([*\w]+)/g,"\\.$1");glob._replace(/\[\^[\\\/]+\]/g,qmark);glob._replace(/\/+/g,"\\/");glob._replace(/\\{2,}/g,"\\")}glob.unescape(glob.pattern);glob._replace("__UNESC_STAR__","*");glob._replace("?.","?\\.");glob._replace("[^\\/]",qmark);if(glob.pattern.length>1){if(/^[\[?*]/.test(glob.pattern)){glob.pattern=(opts.dot?dotfiles:nodot)+glob.pattern}}return glob}function collapse(str,ch){var res=str.split(ch);var isFirst=res[0]==="";var isLast=res[res.length-1]==="";res=res.filter(Boolean);if(isFirst)res.unshift("");if(isLast)res.push("");return res.join(ch)}function negateSlash(str){return str.replace(/\[\^([^\]]*?)\]/g,function(match,inner){if(inner.indexOf("/")===-1){inner="\\/"+inner}return"[^"+inner+"]"})}function balance(str,a,b){var aarr=str.split(a);var alen=aarr.join("").length;var blen=str.split(b).join("").length;if(alen!==blen){str=aarr.join("\\"+a);return str.split(b).join("\\"+b)}return str}var qmark="[^/]";var star=qmark+"*?";var nodot="(?!\\.)(?=.)";var dotfileGlob="(?:\\/|^)\\.{1,2}($|\\/)";var dotfiles="(?!"+dotfileGlob+")(?=.)";var twoStarDot="(?:(?!"+dotfileGlob+").)*?";function oneStar(dotfile){return dotfile?"(?!"+dotfileGlob+")(?=.)"+star:nodot+star}function globstar(dotfile){if(dotfile){return twoStarDot}return"(?:(?!(?:\\/|^)\\.).)*?"}},{"./glob":114,"./utils":115}],114:[function(require,module,exports){"use strict";var chars=require("./chars");var utils=require("./utils");var Glob=module.exports=function Glob(pattern,options){if(!(this instanceof Glob)){return new Glob(pattern,options)}this.options=options||{};this.pattern=pattern;this.history=[];this.tokens={};this.init(pattern)};Glob.prototype.init=function(pattern){this.orig=pattern;this.negated=this.isNegated();this.options.track=this.options.track||false;this.options.makeRe=true};Glob.prototype.track=function(msg){if(this.options.track){this.history.push({msg:msg,pattern:this.pattern})}};Glob.prototype.isNegated=function(){if(this.pattern.charCodeAt(0)===33){this.pattern=this.pattern.slice(1);return true}return false};Glob.prototype.braces=function(){if(this.options.nobraces!==true&&this.options.nobrace!==true){var a=this.pattern.match(/[\{\(\[]/g);var b=this.pattern.match(/[\}\)\]]/g);if(a&&b&&a.length!==b.length){this.options.makeRe=false}var expanded=utils.braces(this.pattern,this.options);this.pattern=expanded.join("|")}};Glob.prototype.brackets=function(){if(this.options.nobrackets!==true){this.pattern=utils.brackets(this.pattern)}};Glob.prototype.extglob=function(){if(this.options.noextglob===true)return;if(utils.isExtglob(this.pattern)){this.pattern=utils.extglob(this.pattern,{escape:true})}};Glob.prototype.parse=function(pattern){this.tokens=utils.parseGlob(pattern||this.pattern,true);return this.tokens};Glob.prototype._replace=function(a,b,escape){this.track('before (find): "'+a+'" (replace with): "'+b+'"');if(escape)b=esc(b);if(a&&b&&typeof a==="string"){this.pattern=this.pattern.split(a).join(b)}else{this.pattern=this.pattern.replace(a,b)}this.track("after")};Glob.prototype.escape=function(str){this.track("before escape: ");var re=/["\\](['"]?[^"'\\]['"]?)/g;this.pattern=str.replace(re,function($0,$1){var o=chars.ESC;var ch=o&&o[$1];if(ch){return ch}if(/[a-z]/i.test($0)){return $0.split("\\").join("")}return $0});this.track("after escape: ")};Glob.prototype.unescape=function(str){var re=/__([A-Z]+)_([A-Z]+)__/g;this.pattern=str.replace(re,function($0,$1){return chars[$1][$0]});this.pattern=unesc(this.pattern)};function esc(str){str=str.split("?").join("%~");str=str.split("*").join("%%");return str}function unesc(str){str=str.split("%~").join("?");str=str.split("%%").join("*");return str}},{"./chars":112,"./utils":115}],115:[function(require,module,exports){(function(process){"use strict";var win32=process&&process.platform==="win32";var path=require("path");var fileRe=require("filename-regex");var utils=module.exports;utils.diff=require("arr-diff");utils.unique=require("array-unique");utils.braces=require("braces");utils.brackets=require("expand-brackets");utils.extglob=require("extglob");utils.isExtglob=require("is-extglob");utils.isGlob=require("is-glob");utils.typeOf=require("kind-of");utils.normalize=require("normalize-path");utils.omit=require("object.omit");utils.parseGlob=require("parse-glob");utils.cache=require("regex-cache");utils.filename=function filename(fp){var seg=fp.match(fileRe());return seg&&seg[0]};utils.isPath=function isPath(pattern,opts){opts=opts||{};return function(fp){var unixified=utils.unixify(fp,opts);if(opts.nocase){return pattern.toLowerCase()===unixified.toLowerCase()}return pattern===unixified}};utils.hasPath=function hasPath(pattern,opts){return function(fp){return utils.unixify(pattern,opts).indexOf(fp)!==-1}};utils.matchPath=function matchPath(pattern,opts){var fn=opts&&opts.contains?utils.hasPath(pattern,opts):utils.isPath(pattern,opts);return fn};utils.hasFilename=function hasFilename(re){return function(fp){var name=utils.filename(fp);return name&&re.test(name)}};utils.arrayify=function arrayify(val){return!Array.isArray(val)?[val]:val};utils.unixify=function unixify(fp,opts){if(opts&&opts.unixify===false)return fp;if(opts&&opts.unixify===true||win32||path.sep==="\\"){return utils.normalize(fp,false)}if(opts&&opts.unescape===true){return fp?fp.toString().replace(/\\(\w)/g,"$1"):""}return fp};utils.escapePath=function escapePath(fp){return fp.replace(/[\\.]/g,"\\$&")};utils.unescapeGlob=function unescapeGlob(fp){return fp.replace(/[\\"']/g,"")};utils.escapeRe=function escapeRe(str){return str.replace(/[-[\\$*+?.#^\s{}(|)\]]/g,"\\$&")};module.exports=utils}).call(this,require("_process"))},{_process:6,"arr-diff":116,"array-unique":104,braces:118,"expand-brackets":128,extglob:130,"filename-regex":131,"is-extglob":132,"is-glob":133,"kind-of":134,"normalize-path":136,"object.omit":137,"parse-glob":141,path:5,"regex-cache":145}],116:[function(require,module,exports){"use strict";var flatten=require("arr-flatten");var slice=[].slice;function diff(arr,arrays){var argsLen=arguments.length;var len=arr.length,i=-1;var res=[],arrays;if(argsLen===1){return arr}if(argsLen>2){arrays=flatten(slice.call(arguments,1))}while(++i<len){if(!~arrays.indexOf(arr[i])){res.push(arr[i])}}return res}module.exports=diff},{"arr-flatten":117}],117:[function(require,module,exports){"use strict";module.exports=function flatten(arr){return flat(arr,[])};function flat(arr,res){var len=arr.length;var i=-1;while(len--){var cur=arr[++i];if(Array.isArray(cur)){flat(cur,res)}else{res.push(cur)}}return res}},{}],118:[function(require,module,exports){"use strict";var expand=require("expand-range");var repeat=require("repeat-element");var tokens=require("preserve");module.exports=function(str,options){if(typeof str!=="string"){throw new Error("braces expects a string")}return braces(str,options)};function braces(str,arr,options){if(str===""){return[]}if(!Array.isArray(arr)){options=arr;arr=[]}var opts=options||{};arr=arr||[];if(typeof opts.nodupes==="undefined"){opts.nodupes=true}var fn=opts.fn;var es6;if(typeof opts==="function"){fn=opts;opts={}}if(!(patternRe instanceof RegExp)){patternRe=patternRegex()}var matches=str.match(patternRe)||[];var m=matches[0];switch(m){case"\\,":return escapeCommas(str,arr,opts);case"\\.":return escapeDots(str,arr,opts);case"/.":return escapePaths(str,arr,opts);case" ":return splitWhitespace(str);case"{,}":return exponential(str,opts,braces);case"{}":return emptyBraces(str,arr,opts);case"\\{":case"\\}":return escapeBraces(str,arr,opts);case"${":if(!/\{[^{]+\{/.test(str)){return arr.concat(str)}else{es6=true;str=tokens.before(str,es6Regex())}}if(!(braceRe instanceof RegExp)){braceRe=braceRegex()}var match=braceRe.exec(str);if(match==null){return[str]}var outter=match[1];var inner=match[2];if(inner===""){return[str]}var segs,segsLength;if(inner.indexOf("..")!==-1){segs=expand(inner,opts,fn)||inner.split(",");segsLength=segs.length}else if(inner[0]==='"'||inner[0]==="'"){return arr.concat(str.split(/['"]/).join(""))}else{segs=inner.split(",");if(opts.makeRe){return braces(str.replace(outter,wrap(segs,"|")),opts)}segsLength=segs.length;if(segsLength===1&&opts.bash){segs[0]=wrap(segs[0],"\\")}}var len=segs.length;var i=0,val;while(len--){var path=segs[i++];if(/(\.[^.\/])/.test(path)){if(segsLength>1){return segs}else{return[str]}}val=splice(str,outter,path);if(/\{[^{}]+?\}/.test(val)){arr=braces(val,arr,opts)}else if(val!==""){if(opts.nodupes&&arr.indexOf(val)!==-1){continue}arr.push(es6?tokens.after(val):val)}}if(opts.strict){return filter(arr,filterEmpty)}return arr}function exponential(str,options,fn){if(typeof options==="function"){fn=options;options=null}var opts=options||{};var esc="__ESC_EXP__";var exp=0;var res;var parts=str.split("{,}");if(opts.nodupes){return fn(parts.join(""),opts)}exp=parts.length-1;res=fn(parts.join(esc),opts);var len=res.length;var arr=[];var i=0;while(len--){var ele=res[i++];var idx=ele.indexOf(esc);if(idx===-1){arr.push(ele)}else{ele=ele.split("__ESC_EXP__").join("");if(!!ele&&opts.nodupes!==false){arr.push(ele)}else{var num=Math.pow(2,exp);arr.push.apply(arr,repeat(ele,num))}}}return arr}function wrap(val,ch){if(ch==="|"){return"("+val.join(ch)+")"}if(ch===","){return"{"+val.join(ch)+"}"}if(ch==="-"){return"["+val.join(ch)+"]"}if(ch==="\\"){return"\\{"+val+"\\}"}}function emptyBraces(str,arr,opts){return braces(str.split("{}").join("\\{\\}"),arr,opts)}function filterEmpty(ele){return!!ele&&ele!=="\\"}function splitWhitespace(str){var segs=str.split(" ");var len=segs.length;var res=[];var i=0;while(len--){res.push.apply(res,braces(segs[i++]))}return res}function escapeBraces(str,arr,opts){if(!/\{[^{]+\{/.test(str)){return arr.concat(str.split("\\").join(""))}else{str=str.split("\\{").join("__LT_BRACE__");str=str.split("\\}").join("__RT_BRACE__");return map(braces(str,arr,opts),function(ele){ele=ele.split("__LT_BRACE__").join("{");return ele.split("__RT_BRACE__").join("}")})}}function escapeDots(str,arr,opts){if(!/[^\\]\..+\\\./.test(str)){return arr.concat(str.split("\\").join(""))}else{str=str.split("\\.").join("__ESC_DOT__");return map(braces(str,arr,opts),function(ele){return ele.split("__ESC_DOT__").join(".")})}}function escapePaths(str,arr,opts){str=str.split("/.").join("__ESC_PATH__");return map(braces(str,arr,opts),function(ele){return ele.split("__ESC_PATH__").join("/.")})}function escapeCommas(str,arr,opts){if(!/\w,/.test(str)){return arr.concat(str.split("\\").join(""))}else{str=str.split("\\,").join("__ESC_COMMA__");return map(braces(str,arr,opts),function(ele){return ele.split("__ESC_COMMA__").join(",")})}}function patternRegex(){return/\${|( (?=[{,}])|(?=[{,}]) )|{}|{,}|\\,(?=.*[{}])|\/\.(?=.*[{}])|\\\.(?={)|\\{|\\}/}function braceRegex(){return/.*(\\?\{([^}]+)\})/}function es6Regex(){return/\$\{([^}]+)\}/}var braceRe;var patternRe;function splice(str,token,replacement){var i=str.indexOf(token);return str.substr(0,i)+replacement+str.substr(i+token.length)}function map(arr,fn){if(arr==null){return[]}var len=arr.length;var res=new Array(len);var i=-1;while(++i<len){res[i]=fn(arr[i],i,arr)}return res}function filter(arr,cb){if(arr==null)return[];if(typeof cb!=="function"){throw new TypeError("braces: filter expects a callback function.")}var len=arr.length;var res=arr.slice();var i=0;while(len--){if(!cb(arr[len],i++)){res.splice(len,1)}}return res}},{"expand-range":119,preserve:126,"repeat-element":127}],119:[function(require,module,exports){"use strict";var fill=require("fill-range");module.exports=function expandRange(str,options,fn){if(typeof str!=="string"){throw new TypeError("expand-range expects a string.")}if(typeof options==="function"){fn=options;options={}}if(typeof options==="boolean"){options={};options.makeRe=true}var opts=options||{};var args=str.split("..");var len=args.length;if(len>3){return str}if(len===1){return args}if(typeof fn==="boolean"&&fn===true){opts.makeRe=true}args.push(opts);return fill.apply(null,args.concat(fn))}},{"fill-range":120}],120:[function(require,module,exports){"use strict";var isObject=require("isobject");var isNumber=require("is-number");var randomize=require("randomatic");var repeatStr=require("repeat-string");var repeat=require("repeat-element");module.exports=fillRange;function fillRange(a,b,step,options,fn){if(a==null||b==null){throw new Error("fill-range expects the first and second args to be strings.")}if(typeof step==="function"){fn=step;options={};step=null}if(typeof options==="function"){fn=options;options={}}if(isObject(step)){options=step;step=""}var expand,regex=false,sep="";var opts=options||{};if(typeof opts.silent==="undefined"){opts.silent=true}step=step||opts.step;var origA=a,origB=b;b=b.toString()==="-0"?0:b;if(opts.optimize||opts.makeRe){step=step?step+="~":step;expand=true;regex=true;sep="~"}if(typeof step==="string"){var match=stepRe().exec(step);if(match){var i=match.index;var m=match[0];if(m==="+"){return repeat(a,b)}else if(m==="?"){return[randomize(a,b)]}else if(m===">"){step=step.substr(0,i)+step.substr(i+1);expand=true}else if(m==="|"){step=step.substr(0,i)+step.substr(i+1);expand=true;regex=true;sep=m}else if(m==="~"){step=step.substr(0,i)+step.substr(i+1);expand=true;regex=true;sep=m}}else if(!isNumber(step)){if(!opts.silent){throw new TypeError("fill-range: invalid step.")}return null}}if(/[.&*()[\]^%$#@!]/.test(a)||/[.&*()[\]^%$#@!]/.test(b)){if(!opts.silent){throw new RangeError("fill-range: invalid range arguments.")}return null}if(!noAlphaNum(a)||!noAlphaNum(b)||hasBoth(a)||hasBoth(b)){if(!opts.silent){throw new RangeError("fill-range: invalid range arguments.")}return null}var isNumA=isNumber(zeros(a));var isNumB=isNumber(zeros(b));if(!isNumA&&isNumB||isNumA&&!isNumB){if(!opts.silent){throw new TypeError("fill-range: first range argument is incompatible with second.")}return null}var isNum=isNumA;var num=formatStep(step);if(isNum){a=+a;b=+b}else{a=a.charCodeAt(0);b=b.charCodeAt(0)}var isDescending=a>b;if(a<0||b<0){expand=false;regex=false}var padding=isPadded(origA,origB);var res,pad,arr=[];var ii=0;if(regex){if(shouldExpand(a,b,num,isNum,padding,opts)){if(sep==="|"||sep==="~"){sep=detectSeparator(a,b,num,isNum,isDescending)}return wrap([origA,origB],sep,opts)}}while(isDescending?a>=b:a<=b){if(padding&&isNum){pad=padding(a)}if(typeof fn==="function"){res=fn(a,isNum,pad,ii++)}else if(!isNum){if(regex&&isInvalidChar(a)){res=null}else{res=String.fromCharCode(a)}}else{res=formatPadding(a,pad)}if(res!==null)arr.push(res);if(isDescending){a-=num}else{a+=num}}if((regex||expand)&&!opts.noexpand){if(sep==="|"||sep==="~"){sep=detectSeparator(a,b,num,isNum,isDescending)}if(arr.length===1||a<0||b<0){return arr}return wrap(arr,sep,opts)}return arr}function wrap(arr,sep,opts){if(sep==="~"){sep="-"}var str=arr.join(sep);var pre=opts&&opts.regexPrefix;if(sep==="|"){str=pre?pre+str:str;str="("+str+")"}if(sep==="-"){str=pre&&pre==="^"?pre+str:str;str="["+str+"]"}return[str]}function isCharClass(a,b,step,isNum,isDescending){if(isDescending){return false}if(isNum){return a<=9&&b<=9}if(a<b){return step===1}return false}function shouldExpand(a,b,num,isNum,padding,opts){if(isNum&&(a>9||b>9)){return false}return!padding&&num===1&&a<b}function detectSeparator(a,b,step,isNum,isDescending){var isChar=isCharClass(a,b,step,isNum,isDescending);if(!isChar){return"|"}return"~"}function formatStep(step){return Math.abs(step>>0)||1}function formatPadding(ch,pad){var res=pad?pad+ch:ch;if(pad&&ch.toString().charAt(0)==="-"){res="-"+pad+ch.toString().substr(1)}return res.toString()}function isInvalidChar(str){var ch=toStr(str);return ch==="\\"||ch==="["||ch==="]"||ch==="^"||ch==="("||ch===")"||ch==="`"}function toStr(ch){return String.fromCharCode(ch)}function stepRe(){return/\?|>|\||\+|\~/g}function noAlphaNum(val){return/[a-z0-9]/i.test(val)}function hasBoth(val){return/[a-z][0-9]|[0-9][a-z]/i.test(val)}function zeros(val){if(/^-*0+$/.test(val.toString())){return"0"}return val}function hasZeros(val){return/[^.]\.|^-*0+[0-9]/.test(val)}function isPadded(origA,origB){if(hasZeros(origA)||hasZeros(origB)){var alen=length(origA);var blen=length(origB);var len=alen>=blen?alen:blen;return function(a){return repeatStr("0",len-length(a))}}return false}function length(val){return val.toString().length}},{"is-number":121,isobject:122,randomatic:124,"repeat-element":127,"repeat-string":125}],121:[function(require,module,exports){"use strict";var typeOf=require("kind-of");module.exports=function isNumber(num){var type=typeOf(num);if(type!=="number"&&type!=="string"){return false}var n=+num;return n-n+1>=0&&num!==""}},{"kind-of":134}],122:[function(require,module,exports){"use strict";var isArray=require("isarray");module.exports=function isObject(val){return val!=null&&typeof val==="object"&&isArray(val)===false}},{isarray:123}],123:[function(require,module,exports){arguments[4][4][0].apply(exports,arguments)},{dup:4}],124:[function(require,module,exports){"use strict";var isNumber=require("is-number");var typeOf=require("kind-of");module.exports=randomatic;var type={lower:"abcdefghijklmnopqrstuvwxyz",upper:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",number:"0123456789",special:"~!@#$%^&()_+-={}[];',."};type.all=type.lower+type.upper+type.number;function randomatic(pattern,length,options){if(typeof pattern==="undefined"){throw new Error("randomatic expects a string or number.")}var custom=false;if(arguments.length===1){if(typeof pattern==="string"){length=pattern.length}else if(isNumber(pattern)){options={};length=pattern;pattern="*"}}if(typeOf(length)==="object"&&length.hasOwnProperty("chars")){options=length;pattern=options.chars;length=pattern.length;custom=true}var opts=options||{};var mask="";var res="";if(pattern.indexOf("?")!==-1)mask+=opts.chars;
if(pattern.indexOf("a")!==-1)mask+=type.lower;if(pattern.indexOf("A")!==-1)mask+=type.upper;if(pattern.indexOf("0")!==-1)mask+=type.number;if(pattern.indexOf("!")!==-1)mask+=type.special;if(pattern.indexOf("*")!==-1)mask+=type.all;if(custom)mask+=pattern;while(length--){res+=mask.charAt(parseInt(Math.random()*mask.length,10))}return res}},{"is-number":121,"kind-of":134}],125:[function(require,module,exports){"use strict";var res="";var cache;module.exports=repeat;function repeat(str,num){if(typeof str!=="string"){throw new TypeError("expected a string")}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}},{}],126:[function(require,module,exports){"use strict";exports.before=function before(str,re){return str.replace(re,function(match){var id=randomize();cache[id]=match;return"__ID"+id+"__"})};exports.after=function after(str){return str.replace(/__ID(.{5})__/g,function(_,id){return cache[id]})};function randomize(){return Math.random().toString().slice(2,7)}var cache={}},{}],127:[function(require,module,exports){"use strict";module.exports=function repeat(ele,num){var arr=new Array(num);for(var i=0;i<num;i++){arr[i]=ele}return arr}},{}],128:[function(require,module,exports){"use strict";var isPosixBracket=require("is-posix-bracket");var POSIX={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E",punct:"-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};module.exports=brackets;function brackets(str){if(!isPosixBracket(str)){return str}var negated=false;if(str.indexOf("[^")!==-1){negated=true;str=str.split("[^").join("[")}if(str.indexOf("[!")!==-1){negated=true;str=str.split("[!").join("[")}var a=str.split("[");var b=str.split("]");var imbalanced=a.length!==b.length;var parts=str.split(/(?::\]\[:|\[?\[:|:\]\]?)/);var len=parts.length,i=0;var end="",beg="";var res=[];while(len--){var inner=parts[i++];if(inner==="^[!"||inner==="[!"){inner="";negated=true}var prefix=negated?"^":"";var ch=POSIX[inner];if(ch){res.push("["+prefix+ch+"]")}else if(inner){if(/^\[?\w-\w\]?$/.test(inner)){if(i===parts.length){res.push("["+prefix+inner)}else if(i===1){res.push(prefix+inner+"]")}else{res.push(prefix+inner)}}else{if(i===1){beg+=inner}else if(i===parts.length){end+=inner}else{res.push("["+prefix+inner+"]")}}}}var result=res.join("|");var rlen=res.length||1;if(rlen>1){result="(?:"+result+")";rlen=1}if(beg){rlen++;if(beg.charAt(0)==="["){if(imbalanced){beg="\\["+beg.slice(1)}else{beg+="]"}}result=beg+result}if(end){rlen++;if(end.slice(-1)==="]"){if(imbalanced){end=end.slice(0,end.length-1)+"\\]"}else{end="["+end}}result+=end}if(rlen>1){result=result.split("][").join("]|[");if(result.indexOf("|")!==-1&&!/\(\?/.test(result)){result="(?:"+result+")"}}result=result.replace(/\[+=|=\]+/g,"\\b");return result}brackets.makeRe=function(pattern){try{return new RegExp(brackets(pattern))}catch(err){}};brackets.isMatch=function(str,pattern){try{return brackets.makeRe(pattern).test(str)}catch(err){return false}};brackets.match=function(arr,pattern){var len=arr.length,i=0;var res=arr.slice();var re=brackets.makeRe(pattern);while(i<len){var ele=arr[i++];if(!re.test(ele)){continue}res.splice(i,1)}return res}},{"is-posix-bracket":129}],129:[function(require,module,exports){module.exports=function isPosixBracket(str){return typeof str==="string"&&/\[([:.=+])(?:[^\[\]]|)+\1\]/.test(str)}},{}],130:[function(require,module,exports){"use strict";var isExtglob=require("is-extglob");var re,cache={};module.exports=extglob;function extglob(str,opts){opts=opts||{};var o={},i=0;str=str.replace(/!\(([^\w*()])/g,"$1!(");str=str.replace(/([*\/])\.!\([*]\)/g,function(m,ch){if(ch==="/"){return escape("\\/[^.]+")}return escape("[^.]+")});var key=str+String(!!opts.regex)+String(!!opts.contains)+String(!!opts.escape);if(cache.hasOwnProperty(key)){return cache[key]}if(!(re instanceof RegExp)){re=regex()}opts.negate=false;var m;while(m=re.exec(str)){var prefix=m[1];var inner=m[3];if(prefix==="!"){opts.negate=true}var id="__EXTGLOB_"+i++ +"__";o[id]=wrap(inner,prefix,opts.escape);str=str.split(m[0]).join(id)}var keys=Object.keys(o);var len=keys.length;while(len--){var prop=keys[len];str=str.split(prop).join(o[prop])}var result=opts.regex?toRegex(str,opts.contains,opts.negate):str;result=result.split(".").join("\\.");return cache[key]=result}function wrap(inner,prefix,esc){if(esc)inner=escape(inner);switch(prefix){case"!":return"(?!"+inner+")[^/]"+(esc?"%%%~":"*?");case"@":return"(?:"+inner+")";case"+":return"(?:"+inner+")+";case"*":return"(?:"+inner+")"+(esc?"%%":"*");case"?":return"(?:"+inner+"|)";default:return inner}}function escape(str){str=str.split("*").join("[^/]%%%~");str=str.split(".").join("\\.");return str}function regex(){return/(\\?[@?!+*$]\\?)(\(([^()]*?)\))/}function negate(str){return"(?!^"+str+").*$"}function toRegex(pattern,contains,isNegated){var prefix=contains?"^":"";var after=contains?"$":"";pattern="(?:"+pattern+")"+after;if(isNegated){pattern=prefix+negate(pattern)}return new RegExp(prefix+pattern)}},{"is-extglob":132}],131:[function(require,module,exports){module.exports=function filenameRegex(){return/([^\\\/]+)$/}},{}],132:[function(require,module,exports){module.exports=function isExtglob(str){return typeof str==="string"&&/[@?!+*]\(/.test(str)}},{}],133:[function(require,module,exports){var isExtglob=require("is-extglob");module.exports=function isGlob(str){return typeof str==="string"&&(/[*!?{}(|)[\]]/.test(str)||isExtglob(str))}},{"is-extglob":132}],134:[function(require,module,exports){(function(Buffer){var isBuffer=require("is-buffer");var toString=Object.prototype.toString;module.exports=function kindOf(val){if(typeof val==="undefined"){return"undefined"}if(val===null){return"null"}if(val===true||val===false||val instanceof Boolean){return"boolean"}if(typeof val==="string"||val instanceof String){return"string"}if(typeof val==="number"||val instanceof Number){return"number"}if(typeof val==="function"||val instanceof Function){return"function"}if(typeof Array.isArray!=="undefined"&&Array.isArray(val)){return"array"}if(val instanceof RegExp){return"regexp"}if(val instanceof Date){return"date"}var type=toString.call(val);if(type==="[object RegExp]"){return"regexp"}if(type==="[object Date]"){return"date"}if(type==="[object Arguments]"){return"arguments"}if(type==="[object Error]"){return"error"}if(typeof Buffer!=="undefined"&&isBuffer(val)){return"buffer"}if(type==="[object Set]"){return"set"}if(type==="[object WeakSet]"){return"weakset"}if(type==="[object Map]"){return"map"}if(type==="[object WeakMap]"){return"weakmap"}if(type==="[object Symbol]"){return"symbol"}if(type==="[object Int8Array]"){return"int8array"}if(type==="[object Uint8Array]"){return"uint8array"}if(type==="[object Uint8ClampedArray]"){return"uint8clampedarray"}if(type==="[object Int16Array]"){return"int16array"}if(type==="[object Uint16Array]"){return"uint16array"}if(type==="[object Int32Array]"){return"int32array"}if(type==="[object Uint32Array]"){return"uint32array"}if(type==="[object Float32Array]"){return"float32array"}if(type==="[object Float64Array]"){return"float64array"}return"object"}}).call(this,require("buffer").Buffer)},{buffer:1,"is-buffer":135}],135:[function(require,module,exports){arguments[4][109][0].apply(exports,arguments)},{dup:109}],136:[function(require,module,exports){module.exports=function normalizePath(str,stripTrailing){if(typeof str!=="string"){throw new TypeError("expected a string")}str=str.replace(/[\\\/]+/g,"/");if(stripTrailing!==false){str=str.replace(/\/$/,"")}return str}},{}],137:[function(require,module,exports){"use strict";var isObject=require("is-extendable");var forOwn=require("for-own");module.exports=function omit(obj,keys){if(!isObject(obj))return{};keys=[].concat.apply([],[].slice.call(arguments,1));var last=keys[keys.length-1];var res={},fn;if(typeof last==="function"){fn=keys.pop()}var isFunction=typeof fn==="function";if(!keys.length&&!isFunction){return obj}forOwn(obj,function(value,key){if(keys.indexOf(key)===-1){if(!isFunction){res[key]=value}else if(fn(value,key,obj)){res[key]=value}}});return res}},{"for-own":138,"is-extendable":140}],138:[function(require,module,exports){arguments[4][101][0].apply(exports,arguments)},{dup:101,"for-in":139}],139:[function(require,module,exports){arguments[4][102][0].apply(exports,arguments)},{dup:102}],140:[function(require,module,exports){"use strict";module.exports=function isExtendable(val){return typeof val!=="undefined"&&val!==null&&(typeof val==="object"||typeof val==="function")}},{}],141:[function(require,module,exports){"use strict";var isGlob=require("is-glob");var findBase=require("glob-base");var extglob=require("is-extglob");var dotfile=require("is-dotfile");var cache=module.exports.cache={};module.exports=function parseGlob(glob){if(cache.hasOwnProperty(glob)){return cache[glob]}var tok={};tok.orig=glob;tok.is={};glob=escape(glob);var parsed=findBase(glob);tok.is.glob=parsed.isGlob;tok.glob=parsed.glob;tok.base=parsed.base;var segs=/([^\/]*)$/.exec(glob);tok.path={};tok.path.dirname="";tok.path.basename=segs[1]||"";tok.path.dirname=glob.split(tok.path.basename).join("")||"";var basename=(tok.path.basename||"").split(".")||"";tok.path.filename=basename[0]||"";tok.path.extname=basename.slice(1).join(".")||"";tok.path.ext="";if(isGlob(tok.path.dirname)&&!tok.path.basename){if(!/\/$/.test(tok.glob)){tok.path.basename=tok.glob}tok.path.dirname=tok.base}if(glob.indexOf("/")===-1&&!tok.is.globstar){tok.path.dirname="";tok.path.basename=tok.orig}var dot=tok.path.basename.indexOf(".");if(dot!==-1){tok.path.filename=tok.path.basename.slice(0,dot);tok.path.extname=tok.path.basename.slice(dot)}if(tok.path.extname.charAt(0)==="."){var exts=tok.path.extname.split(".");tok.path.ext=exts[exts.length-1]}tok.glob=unescape(tok.glob);tok.path.dirname=unescape(tok.path.dirname);tok.path.basename=unescape(tok.path.basename);tok.path.filename=unescape(tok.path.filename);tok.path.extname=unescape(tok.path.extname);var is=glob&&tok.is.glob;tok.is.negated=glob&&glob.charAt(0)==="!";tok.is.extglob=glob&&extglob(glob);tok.is.braces=has(is,glob,"{");tok.is.brackets=has(is,glob,"[:");tok.is.globstar=has(is,glob,"**");tok.is.dotfile=dotfile(tok.path.basename)||dotfile(tok.path.filename);tok.is.dotdir=dotdir(tok.path.dirname);return cache[glob]=tok};function dotdir(base){if(base.indexOf("/.")!==-1){return true}if(base.charAt(0)==="."&&base.charAt(1)!=="/"){return true}return false}function has(is,glob,ch){return is&&glob.indexOf(ch)!==-1}function escape(str){var re=/\{([^{}]*?)}|\(([^()]*?)\)|\[([^\[\]]*?)\]/g;return str.replace(re,function(outter,braces,parens,brackets){var inner=braces||parens||brackets;if(!inner){return outter}return outter.split(inner).join(esc(inner))})}function esc(str){str=str.split("/").join("__SLASH__");str=str.split(".").join("__DOT__");return str}function unescape(str){str=str.split("__SLASH__").join("/");str=str.split("__DOT__").join(".");return str}},{"glob-base":142,"is-dotfile":144,"is-extglob":132,"is-glob":133}],142:[function(require,module,exports){"use strict";var path=require("path");var parent=require("glob-parent");var isGlob=require("is-glob");module.exports=function globBase(pattern){if(typeof pattern!=="string"){throw new TypeError("glob-base expects a string.")}var res={};res.base=parent(pattern);res.isGlob=isGlob(pattern);if(res.base!=="."){res.glob=pattern.substr(res.base.length);if(res.glob.charAt(0)==="/"){res.glob=res.glob.substr(1)}}else{res.glob=pattern}if(!res.isGlob){res.base=dirname(pattern);res.glob=res.base!=="."?pattern.substr(res.base.length):pattern}if(res.glob.substr(0,2)==="./"){res.glob=res.glob.substr(2)}if(res.glob.charAt(0)==="/"){res.glob=res.glob.substr(1)}return res};function dirname(glob){if(glob.slice(-1)==="/")return glob;return path.dirname(glob)}},{"glob-parent":143,"is-glob":133,path:5}],143:[function(require,module,exports){"use strict";var path=require("path");var isglob=require("is-glob");module.exports=function globParent(str){str+="a";do{str=path.dirname(str)}while(isglob(str));return str}},{"is-glob":133,path:5}],144:[function(require,module,exports){module.exports=function(str){if(str.charCodeAt(0)===46&&str.indexOf("/",1)===-1){return true}var last=str.lastIndexOf("/");return last!==-1?str.charCodeAt(last+1)===46:false}},{}],145:[function(require,module,exports){"use strict";var isPrimitive=require("is-primitive");var equal=require("is-equal-shallow");var basic={};var cache={};module.exports=regexCache;function regexCache(fn,str,opts){var key="_default_",regex,cached;if(!str&&!opts){if(typeof fn!=="function"){return fn}return basic[key]||(basic[key]=fn(str))}var isString=typeof str==="string";if(isString){if(!opts){return basic[str]||(basic[str]=fn(str))}key=str}else{opts=str}cached=cache[key];if(cached&&equal(cached.opts,opts)){return cached.regex}memo(key,opts,regex=fn(str,opts));return regex}function memo(key,opts,regex){cache[key]={regex:regex,opts:opts}}module.exports.cache=cache;module.exports.basic=basic},{"is-equal-shallow":146,"is-primitive":147}],146:[function(require,module,exports){"use strict";var isPrimitive=require("is-primitive");module.exports=function isEqual(a,b){if(!a&&!b){return true}if(!a&&b||a&&!b){return false}var numKeysA=0,numKeysB=0,key;for(key in b){numKeysB++;if(!isPrimitive(b[key])||!a.hasOwnProperty(key)||a[key]!==b[key]){return false}}for(key in a){numKeysA++}return numKeysA===numKeysB}},{"is-primitive":147}],147:[function(require,module,exports){"use strict";module.exports=function isPrimitive(value){return value==null||typeof value!=="function"&&typeof value!=="object"}},{}],148:[function(require,module,exports){"use strict";module.exports=function indexOf(arr,ele,start){start=start||0;var idx=-1;if(arr==null)return idx;var len=arr.length;var i=start<0?len+start:start;while(len--){if(arr[i++]===ele){idx=i-1;break}}return idx}},{}],149:[function(require,module,exports){(function(Buffer){var clone=function(){"use strict";function _instanceof(obj,type){return type!=null&&obj instanceof type}var nativeMap;try{nativeMap=Map}catch(_){nativeMap=function(){}}var nativeSet;try{nativeSet=Set}catch(_){nativeSet=function(){}}var nativePromise;try{nativePromise=Promise}catch(_){nativePromise=function(){}}function clone(parent,circular,depth,prototype,includeNonEnumerable){if(typeof circular==="object"){depth=circular.depth;prototype=circular.prototype;includeNonEnumerable=circular.includeNonEnumerable;circular=circular.circular}var allParents=[];var allChildren=[];var useBuffer=typeof Buffer!="undefined";if(typeof circular=="undefined")circular=true;if(typeof depth=="undefined")depth=Infinity;function _clone(parent,depth){if(parent===null)return null;if(depth===0)return parent;var child;var proto;if(typeof parent!="object"){return parent}if(_instanceof(parent,nativeMap)){child=new nativeMap}else if(_instanceof(parent,nativeSet)){child=new nativeSet}else if(_instanceof(parent,nativePromise)){child=new nativePromise(function(resolve,reject){parent.then(function(value){resolve(_clone(value,depth-1))},function(err){reject(_clone(err,depth-1))})})}else if(clone.__isArray(parent)){child=[]}else if(clone.__isRegExp(parent)){child=new RegExp(parent.source,__getRegExpFlags(parent));if(parent.lastIndex)child.lastIndex=parent.lastIndex}else if(clone.__isDate(parent)){child=new Date(parent.getTime())}else if(useBuffer&&Buffer.isBuffer(parent)){child=new Buffer(parent.length);parent.copy(child);return child}else if(_instanceof(parent,Error)){child=Object.create(parent)}else{if(typeof prototype=="undefined"){proto=Object.getPrototypeOf(parent);child=Object.create(proto)}else{child=Object.create(prototype);proto=prototype}}if(circular){var index=allParents.indexOf(parent);if(index!=-1){return allChildren[index]}allParents.push(parent);allChildren.push(child)}if(_instanceof(parent,nativeMap)){parent.forEach(function(value,key){var keyChild=_clone(key,depth-1);var valueChild=_clone(value,depth-1);child.set(keyChild,valueChild)})}if(_instanceof(parent,nativeSet)){parent.forEach(function(value){var entryChild=_clone(value,depth-1);child.add(entryChild)})}for(var i in parent){var attrs;if(proto){attrs=Object.getOwnPropertyDescriptor(proto,i)}if(attrs&&attrs.set==null){continue}child[i]=_clone(parent[i],depth-1)}if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(parent);for(var i=0;i<symbols.length;i++){var symbol=symbols[i];var descriptor=Object.getOwnPropertyDescriptor(parent,symbol);if(descriptor&&!descriptor.enumerable&&!includeNonEnumerable){continue}child[symbol]=_clone(parent[symbol],depth-1);if(!descriptor.enumerable){Object.defineProperty(child,symbol,{enumerable:false})}}}if(includeNonEnumerable){var allPropertyNames=Object.getOwnPropertyNames(parent);for(var i=0;i<allPropertyNames.length;i++){var propertyName=allPropertyNames[i];var descriptor=Object.getOwnPropertyDescriptor(parent,propertyName);if(descriptor&&descriptor.enumerable){continue}child[propertyName]=_clone(parent[propertyName],depth-1);Object.defineProperty(child,propertyName,{enumerable:false})}}return child}return _clone(parent,depth)}clone.clonePrototype=function clonePrototype(parent){if(parent===null)return null;var c=function(){};c.prototype=parent;return new c};function __objToStr(o){return Object.prototype.toString.call(o)}clone.__objToStr=__objToStr;function __isDate(o){return typeof o==="object"&&__objToStr(o)==="[object Date]"}clone.__isDate=__isDate;function __isArray(o){return typeof o==="object"&&__objToStr(o)==="[object Array]"}clone.__isArray=__isArray;function __isRegExp(o){return typeof o==="object"&&__objToStr(o)==="[object RegExp]"}clone.__isRegExp=__isRegExp;function __getRegExpFlags(re){var flags="";if(re.global)flags+="g";if(re.ignoreCase)flags+="i";if(re.multiline)flags+="m";return flags}clone.__getRegExpFlags=__getRegExpFlags;return clone}();if(typeof module==="object"&&module.exports){module.exports=clone}}).call(this,require("buffer").Buffer)},{buffer:1}],150:[function(require,module,exports){(function(isNode){var Public=function(clone){return merge(clone===true,false,arguments)},publicName="merge";Public.recursive=function(clone){return merge(clone===true,true,arguments)};Public.clone=function(input){var output=input,type=typeOf(input),index,size;if(type==="array"){output=[];size=input.length;for(index=0;index<size;++index)output[index]=Public.clone(input[index])}else if(type==="object"){output={};for(index in input)output[index]=Public.clone(input[index])}return output};function merge_recursive(base,extend){if(typeOf(base)!=="object")return extend;for(var key in extend){if(typeOf(base[key])==="object"&&typeOf(extend[key])==="object"){base[key]=merge_recursive(base[key],extend[key])}else{base[key]=extend[key]}}return base}function merge(clone,recursive,argv){var result=argv[0],size=argv.length;if(clone||typeOf(result)!=="object")result={};for(var index=0;index<size;++index){var item=argv[index],type=typeOf(item);if(type!=="object")continue;for(var key in item){var sitem=clone?Public.clone(item[key]):item[key];if(recursive){result[key]=merge_recursive(result[key],sitem)}else{result[key]=sitem}}}return result}function typeOf(input){return{}.toString.call(input).slice(8,-1).toLowerCase()}if(isNode){module.exports=Public}else{window[publicName]=Public}})(typeof module==="object"&&module&&typeof module.exports==="object"&&module.exports)},{}],151:[function(require,module,exports){"use strict";var template=require("./template.js");module.exports={render:template(),props:{"for":{type:String,required:true},records:{type:Number,required:true},perPage:{type:Number,required:false,"default":25},chunk:{type:Number,required:false,"default":10},countText:{type:String,required:false,"default":"Showing {from} to {to} of {count} records|{count} records|One record"}},computed:{pages:function pages(){if(!this.records)return[];return range(this.paginationStart,this.pagesInCurrentChunk)},totalPages:function totalPages(){return this.records?Math.ceil(this.records/this.perPage):1},totalChunks:function totalChunks(){return Math.ceil(this.totalPages/this.chunk)},currentChunk:function currentChunk(){return Math.ceil(this.page/this.chunk)},paginationStart:function paginationStart(){return(this.currentChunk-1)*this.chunk+1},pagesInCurrentChunk:function pagesInCurrentChunk(){return this.paginationStart+this.chunk<=this.totalPages?this.chunk:this.totalPages-this.paginationStart+1},count:function count(){var from=(this.page-1)*this.perPage+1;var to=this.page==this.totalPages?this.records:from+this.perPage-1;var parts=this.countText.split("|");var i=Math.min(this.records==1?2:this.totalPages==1?1:0,parts.length-1);return parts[i].replace("{count}",this.records).replace("{from}",from).replace("{to}",to)}},methods:{setPage:function setPage(page){if(this.allowedPage(page)){this.paginate(page)}},next:function next(){return this.setPage(this.page+1)},prev:function prev(){return this.setPage(this.page-1)},nextChunk:function nextChunk(){return this.setChunk(1)},prevChunk:function prevChunk(){return this.setChunk(-1)},setChunk:function setChunk(direction){this.setPage((this.currentChunk-1+direction)*this.chunk+1)},allowedPage:function allowedPage(page){return page>=1&&page<=this.totalPages},allowedChunk:function allowedChunk(direction){return direction==1&&this.currentChunk<this.totalChunks||direction==-1&&this.currentChunk>1},allowedPageClass:function allowedPageClass(direction){return this.allowedPage(direction)?"":"disabled"},allowedChunkClass:function allowedChunkClass(direction){return this.allowedChunk(direction)?"":"disabled"},activeClass:function activeClass(page){return this.page==page?"active":""}}};function range(start,count){return Array.apply(0,Array(count)).map(function(element,index){return index+start})}},{"./template.js":156}],152:[function(require,module,exports){"use strict";var _vue=require("vue");var _vue2=_interopRequireDefault(_vue);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}var bus=new _vue2.default;module.exports=bus},{vue:158}],153:[function(require,module,exports){"use strict";var Pagination=require("../compiled/Pagination");var merge=require("merge");var busState=require("../compiled/state/bus");var vuexState=require("../compiled/state/vuex");exports.install=function(Vue,useVuex){var state=useVuex?vuexState():busState();Vue.component("pagination",merge.recursive(Pagination,state))}},{"../compiled/Pagination":151,"../compiled/state/bus":154,"../compiled/state/vuex":155,merge:150}],154:[function(require,module,exports){"use strict";var bus=require("../bus");module.exports=function(){return{data:function data(){return{page:1}},methods:{paginate:function paginate(page){this.page=page;bus.$emit("vue-pagination::"+this.for,page)}}}}},{"../bus":152}],155:[function(require,module,exports){"use strict";function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true})}else{obj[key]=value}return obj}module.exports=function(){return{created:function created(){var name=this.for;if(this.$store.state[name])return;this.$store.registerModule(this.for,{state:{page:1},mutations:_defineProperty({},name+"/PAGINATE",function undefined(state,page){state.page=page})})},methods:{paginate:function paginate(page){this.$store.commit(this.for+"/PAGINATE",page)}},computed:{page:function page(){return this.$store.state[this.for].page}}}}},{}],156:[function(require,module,exports){"use strict";module.exports=function(){return function(h){var items=[];this.pages.map(function(page){items.push(h("li",{"class":"VuePagination__pagination-item page-item "+this.activeClass(page)},[h("a",{"class":"page-link",attrs:{href:"javascript:void(0);"},on:{click:this.setPage.bind(this,page)}},[page])]))}.bind(this));return h("div",{"class":"VuePagination"},[h("ul",{directives:[{name:"show",value:this.totalPages>1}],"class":"pagination VuePagination__pagination"},[h("li",{"class":"VuePagination__pagination-item page-item VuePagination__pagination-item-prev-chunk "+this.allowedChunkClass(-1)},[h("a",{"class":"page-link",attrs:{href:"javascript:void(0);"},on:{click:this.setChunk.bind(this,-1)}},["<<"])]),h("li",{"class":"VuePagination__pagination-item page-item VuePagination__pagination-item-prev-page "+this.allowedPageClass(this.page-1)},[h("a",{"class":"page-link",attrs:{href:"javascript:void(0);"},on:{click:this.prev.bind(this)}},["<"])]),items,h("li",{"class":"VuePagination__pagination-item page-item VuePagination__pagination-item-next-page "+this.allowedPageClass(this.page+1)},[h("a",{"class":"page-link",attrs:{href:"javascript:void(0);"},on:{click:this.next.bind(this)}},[">"])]),h("li",{"class":"VuePagination__pagination-item page-item VuePagination__pagination-item-next-chunk "+this.allowedChunkClass(1)},[h("a",{"class":"page-link",attrs:{href:"javascript:void(0);"},on:{click:this.setChunk.bind(this,1)}},[">>"])])]),h("p",{directives:[{name:"show",value:parseInt(this.records)}],"class":"VuePagination__count"},[this.count])])}}},{}],157:[function(require,module,exports){var VuePagination=require("./compiled/main");var VueEvent=require("./compiled/bus");module.exports={VuePagination:VuePagination,VueEvent:VueEvent}},{"./compiled/bus":152,"./compiled/main":153}],158:[function(require,module,exports){(function(process,global){"use strict";function _toString(val){return val==null?"":typeof val==="object"?JSON.stringify(val,null,2):String(val)}function toNumber(val){var n=parseFloat(val);return isNaN(n)?val:n}function makeMap(str,expectsLowerCase){var map=Object.create(null);var list=str.split(",");for(var i=0;i<list.length;i++){map[list[i]]=true}return expectsLowerCase?function(val){return map[val.toLowerCase()]}:function(val){return map[val]}}var isBuiltInTag=makeMap("slot,component",true);function remove(arr,item){if(arr.length){var index=arr.indexOf(item);if(index>-1){return arr.splice(index,1)}}}var hasOwnProperty=Object.prototype.hasOwnProperty;function hasOwn(obj,key){return hasOwnProperty.call(obj,key)}function isPrimitive(value){return typeof value==="string"||typeof value==="number"}function cached(fn){var cache=Object.create(null);return function cachedFn(str){var hit=cache[str];return hit||(cache[str]=fn(str))}}var camelizeRE=/-(\w)/g;var camelize=cached(function(str){return str.replace(camelizeRE,function(_,c){return c?c.toUpperCase():""})});var capitalize=cached(function(str){return str.charAt(0).toUpperCase()+str.slice(1)});var hyphenateRE=/([^-])([A-Z])/g;var hyphenate=cached(function(str){return str.replace(hyphenateRE,"$1-$2").replace(hyphenateRE,"$1-$2").toLowerCase()});function bind(fn,ctx){function boundFn(a){var l=arguments.length;return l?l>1?fn.apply(ctx,arguments):fn.call(ctx,a):fn.call(ctx)}boundFn._length=fn.length;return boundFn}function toArray(list,start){start=start||0;var i=list.length-start;var ret=new Array(i);while(i--){ret[i]=list[i+start]}return ret}function extend(to,_from){for(var key in _from){to[key]=_from[key]}return to}function isObject(obj){return obj!==null&&typeof obj==="object"}var toString=Object.prototype.toString;var OBJECT_STRING="[object Object]";function isPlainObject(obj){return toString.call(obj)===OBJECT_STRING}function toObject(arr){var res={};for(var i=0;i<arr.length;i++){if(arr[i]){extend(res,arr[i])}}return res}function noop(){}var no=function(){return false};var identity=function(_){return _};function looseEqual(a,b){var isObjectA=isObject(a);var isObjectB=isObject(b);if(isObjectA&&isObjectB){try{return JSON.stringify(a)===JSON.stringify(b)}catch(e){return a===b}}else if(!isObjectA&&!isObjectB){return String(a)===String(b)}else{return false}}function looseIndexOf(arr,val){for(var i=0;i<arr.length;i++){if(looseEqual(arr[i],val)){return i}}return-1}function once(fn){var called=false;return function(){if(!called){called=true;fn()}}}var config={optionMergeStrategies:Object.create(null),silent:false,productionTip:process.env.NODE_ENV!=="production",devtools:process.env.NODE_ENV!=="production",performance:false,errorHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:no,isUnknownElement:no,getTagNamespace:noop,parsePlatformTagName:identity,mustUseProp:no,_assetTypes:["component","directive","filter"],_lifecycleHooks:["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated"],_maxUpdateCount:100};var emptyObject=Object.freeze({});function isReserved(str){var c=(str+"").charCodeAt(0);return c===36||c===95}function def(obj,key,val,enumerable){Object.defineProperty(obj,key,{value:val,enumerable:!!enumerable,writable:true,configurable:true})}var bailRE=/[^\w.$]/;function parsePath(path){if(bailRE.test(path)){return}var segments=path.split(".");return function(obj){for(var i=0;i<segments.length;i++){if(!obj){return}obj=obj[segments[i]]}return obj}}var hasProto="__proto__"in{};var inBrowser=typeof window!=="undefined";var UA=inBrowser&&window.navigator.userAgent.toLowerCase();var isIE=UA&&/msie|trident/.test(UA);var isIE9=UA&&UA.indexOf("msie 9.0")>0;var isEdge=UA&&UA.indexOf("edge/")>0;var isAndroid=UA&&UA.indexOf("android")>0;var isIOS=UA&&/iphone|ipad|ipod|ios/.test(UA);var isChrome=UA&&/chrome\/\d+/.test(UA)&&!isEdge;var _isServer;var isServerRendering=function(){if(_isServer===undefined){if(!inBrowser&&typeof global!=="undefined"){_isServer=global["process"].env.VUE_ENV==="server"}else{_isServer=false}}return _isServer};var devtools=inBrowser&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function isNative(Ctor){return/native code/.test(Ctor.toString())}var hasSymbol=typeof Symbol!=="undefined"&&isNative(Symbol)&&typeof Reflect!=="undefined"&&isNative(Reflect.ownKeys);var nextTick=function(){var callbacks=[];var pending=false;var timerFunc;function nextTickHandler(){pending=false;var copies=callbacks.slice(0);callbacks.length=0;for(var i=0;i<copies.length;i++){copies[i]()}}if(typeof Promise!=="undefined"&&isNative(Promise)){var p=Promise.resolve();var logError=function(err){console.error(err)};timerFunc=function(){p.then(nextTickHandler).catch(logError);if(isIOS){setTimeout(noop)}}}else if(typeof MutationObserver!=="undefined"&&(isNative(MutationObserver)||MutationObserver.toString()==="[object MutationObserverConstructor]")){var counter=1;var observer=new MutationObserver(nextTickHandler);var textNode=document.createTextNode(String(counter));observer.observe(textNode,{characterData:true});timerFunc=function(){counter=(counter+1)%2;textNode.data=String(counter)}}else{timerFunc=function(){setTimeout(nextTickHandler,0)}}return function queueNextTick(cb,ctx){var _resolve;callbacks.push(function(){if(cb){cb.call(ctx)}if(_resolve){_resolve(ctx)}});if(!pending){pending=true;timerFunc()}if(!cb&&typeof Promise!=="undefined"){return new Promise(function(resolve){_resolve=resolve})}}}();var _Set;if(typeof Set!=="undefined"&&isNative(Set)){_Set=Set}else{_Set=function(){function Set(){this.set=Object.create(null)}Set.prototype.has=function has(key){return this.set[key]===true};Set.prototype.add=function add(key){this.set[key]=true};Set.prototype.clear=function clear(){this.set=Object.create(null)};return Set}()}var warn=noop;var tip=noop;var formatComponentName;if(process.env.NODE_ENV!=="production"){var hasConsole=typeof console!=="undefined";var classifyRE=/(?:^|[-_])(\w)/g;var classify=function(str){return str.replace(classifyRE,function(c){return c.toUpperCase()}).replace(/[-_]/g,"")};warn=function(msg,vm){if(hasConsole&&!config.silent){console.error("[Vue warn]: "+msg+" "+(vm?formatLocation(formatComponentName(vm)):""))}};tip=function(msg,vm){if(hasConsole&&!config.silent){console.warn("[Vue tip]: "+msg+" "+(vm?formatLocation(formatComponentName(vm)):""));
}};formatComponentName=function(vm,includeFile){if(vm.$root===vm){return"<Root>"}var name=typeof vm==="function"&&vm.options?vm.options.name:vm._isVue?vm.$options.name||vm.$options._componentTag:vm.name;var file=vm._isVue&&vm.$options.__file;if(!name&&file){var match=file.match(/([^\/\\]+)\.vue$/);name=match&&match[1]}return(name?"<"+classify(name)+">":"<Anonymous>")+(file&&includeFile!==false?" at "+file:"")};var formatLocation=function(str){if(str==="<Anonymous>"){str+=' - use the "name" option for better debugging messages.'}return"\n(found in "+str+")"}}var uid$1=0;var Dep=function Dep(){this.id=uid$1++;this.subs=[]};Dep.prototype.addSub=function addSub(sub){this.subs.push(sub)};Dep.prototype.removeSub=function removeSub(sub){remove(this.subs,sub)};Dep.prototype.depend=function depend(){if(Dep.target){Dep.target.addDep(this)}};Dep.prototype.notify=function notify(){var subs=this.subs.slice();for(var i=0,l=subs.length;i<l;i++){subs[i].update()}};Dep.target=null;var targetStack=[];function pushTarget(_target){if(Dep.target){targetStack.push(Dep.target)}Dep.target=_target}function popTarget(){Dep.target=targetStack.pop()}var arrayProto=Array.prototype;var arrayMethods=Object.create(arrayProto);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(method){var original=arrayProto[method];def(arrayMethods,method,function mutator(){var arguments$1=arguments;var i=arguments.length;var args=new Array(i);while(i--){args[i]=arguments$1[i]}var result=original.apply(this,args);var ob=this.__ob__;var inserted;switch(method){case"push":inserted=args;break;case"unshift":inserted=args;break;case"splice":inserted=args.slice(2);break}if(inserted){ob.observeArray(inserted)}ob.dep.notify();return result})});var arrayKeys=Object.getOwnPropertyNames(arrayMethods);var observerState={shouldConvert:true,isSettingProps:false};var Observer=function Observer(value){this.value=value;this.dep=new Dep;this.vmCount=0;def(value,"__ob__",this);if(Array.isArray(value)){var augment=hasProto?protoAugment:copyAugment;augment(value,arrayMethods,arrayKeys);this.observeArray(value)}else{this.walk(value)}};Observer.prototype.walk=function walk(obj){var keys=Object.keys(obj);for(var i=0;i<keys.length;i++){defineReactive$$1(obj,keys[i],obj[keys[i]])}};Observer.prototype.observeArray=function observeArray(items){for(var i=0,l=items.length;i<l;i++){observe(items[i])}};function protoAugment(target,src){target.__proto__=src}function copyAugment(target,src,keys){for(var i=0,l=keys.length;i<l;i++){var key=keys[i];def(target,key,src[key])}}function observe(value,asRootData){if(!isObject(value)){return}var ob;if(hasOwn(value,"__ob__")&&value.__ob__ instanceof Observer){ob=value.__ob__}else if(observerState.shouldConvert&&!isServerRendering()&&(Array.isArray(value)||isPlainObject(value))&&Object.isExtensible(value)&&!value._isVue){ob=new Observer(value)}if(asRootData&&ob){ob.vmCount++}return ob}function defineReactive$$1(obj,key,val,customSetter){var dep=new Dep;var property=Object.getOwnPropertyDescriptor(obj,key);if(property&&property.configurable===false){return}var getter=property&&property.get;var setter=property&&property.set;var childOb=observe(val);Object.defineProperty(obj,key,{enumerable:true,configurable:true,get:function reactiveGetter(){var value=getter?getter.call(obj):val;if(Dep.target){dep.depend();if(childOb){childOb.dep.depend()}if(Array.isArray(value)){dependArray(value)}}return value},set:function reactiveSetter(newVal){var value=getter?getter.call(obj):val;if(newVal===value||newVal!==newVal&&value!==value){return}if(process.env.NODE_ENV!=="production"&&customSetter){customSetter()}if(setter){setter.call(obj,newVal)}else{val=newVal}childOb=observe(newVal);dep.notify()}})}function set(target,key,val){if(Array.isArray(target)){target.length=Math.max(target.length,key);target.splice(key,1,val);return val}if(hasOwn(target,key)){target[key]=val;return val}var ob=target.__ob__;if(target._isVue||ob&&ob.vmCount){process.env.NODE_ENV!=="production"&&warn("Avoid adding reactive properties to a Vue instance or its root $data "+"at runtime - declare it upfront in the data option.");return val}if(!ob){target[key]=val;return val}defineReactive$$1(ob.value,key,val);ob.dep.notify();return val}function del(target,key){if(Array.isArray(target)){target.splice(key,1);return}var ob=target.__ob__;if(target._isVue||ob&&ob.vmCount){process.env.NODE_ENV!=="production"&&warn("Avoid deleting properties on a Vue instance or its root $data "+"- just set it to null.");return}if(!hasOwn(target,key)){return}delete target[key];if(!ob){return}ob.dep.notify()}function dependArray(value){for(var e=void 0,i=0,l=value.length;i<l;i++){e=value[i];e&&e.__ob__&&e.__ob__.dep.depend();if(Array.isArray(e)){dependArray(e)}}}var strats=config.optionMergeStrategies;if(process.env.NODE_ENV!=="production"){strats.el=strats.propsData=function(parent,child,vm,key){if(!vm){warn('option "'+key+'" can only be used during instance '+"creation with the `new` keyword.")}return defaultStrat(parent,child)}}function mergeData(to,from){if(!from){return to}var key,toVal,fromVal;var keys=Object.keys(from);for(var i=0;i<keys.length;i++){key=keys[i];toVal=to[key];fromVal=from[key];if(!hasOwn(to,key)){set(to,key,fromVal)}else if(isPlainObject(toVal)&&isPlainObject(fromVal)){mergeData(toVal,fromVal)}}return to}strats.data=function(parentVal,childVal,vm){if(!vm){if(!childVal){return parentVal}if(typeof childVal!=="function"){process.env.NODE_ENV!=="production"&&warn('The "data" option should be a function '+"that returns a per-instance value in component "+"definitions.",vm);return parentVal}if(!parentVal){return childVal}return function mergedDataFn(){return mergeData(childVal.call(this),parentVal.call(this))}}else if(parentVal||childVal){return function mergedInstanceDataFn(){var instanceData=typeof childVal==="function"?childVal.call(vm):childVal;var defaultData=typeof parentVal==="function"?parentVal.call(vm):undefined;if(instanceData){return mergeData(instanceData,defaultData)}else{return defaultData}}}};function mergeHook(parentVal,childVal){return childVal?parentVal?parentVal.concat(childVal):Array.isArray(childVal)?childVal:[childVal]:parentVal}config._lifecycleHooks.forEach(function(hook){strats[hook]=mergeHook});function mergeAssets(parentVal,childVal){var res=Object.create(parentVal||null);return childVal?extend(res,childVal):res}config._assetTypes.forEach(function(type){strats[type+"s"]=mergeAssets});strats.watch=function(parentVal,childVal){if(!childVal){return Object.create(parentVal||null)}if(!parentVal){return childVal}var ret={};extend(ret,parentVal);for(var key in childVal){var parent=ret[key];var child=childVal[key];if(parent&&!Array.isArray(parent)){parent=[parent]}ret[key]=parent?parent.concat(child):[child]}return ret};strats.props=strats.methods=strats.computed=function(parentVal,childVal){if(!childVal){return Object.create(parentVal||null)}if(!parentVal){return childVal}var ret=Object.create(null);extend(ret,parentVal);extend(ret,childVal);return ret};var defaultStrat=function(parentVal,childVal){return childVal===undefined?parentVal:childVal};function checkComponents(options){for(var key in options.components){var lower=key.toLowerCase();if(isBuiltInTag(lower)||config.isReservedTag(lower)){warn("Do not use built-in or reserved HTML elements as component "+"id: "+key)}}}function normalizeProps(options){var props=options.props;if(!props){return}var res={};var i,val,name;if(Array.isArray(props)){i=props.length;while(i--){val=props[i];if(typeof val==="string"){name=camelize(val);res[name]={type:null}}else if(process.env.NODE_ENV!=="production"){warn("props must be strings when using array syntax.")}}}else if(isPlainObject(props)){for(var key in props){val=props[key];name=camelize(key);res[name]=isPlainObject(val)?val:{type:val}}}options.props=res}function normalizeDirectives(options){var dirs=options.directives;if(dirs){for(var key in dirs){var def=dirs[key];if(typeof def==="function"){dirs[key]={bind:def,update:def}}}}}function mergeOptions(parent,child,vm){if(process.env.NODE_ENV!=="production"){checkComponents(child)}normalizeProps(child);normalizeDirectives(child);var extendsFrom=child.extends;if(extendsFrom){parent=typeof extendsFrom==="function"?mergeOptions(parent,extendsFrom.options,vm):mergeOptions(parent,extendsFrom,vm)}if(child.mixins){for(var i=0,l=child.mixins.length;i<l;i++){var mixin=child.mixins[i];if(mixin.prototype instanceof Vue$2){mixin=mixin.options}parent=mergeOptions(parent,mixin,vm)}}var options={};var key;for(key in parent){mergeField(key)}for(key in child){if(!hasOwn(parent,key)){mergeField(key)}}function mergeField(key){var strat=strats[key]||defaultStrat;options[key]=strat(parent[key],child[key],vm,key)}return options}function resolveAsset(options,type,id,warnMissing){if(typeof id!=="string"){return}var assets=options[type];if(hasOwn(assets,id)){return assets[id]}var camelizedId=camelize(id);if(hasOwn(assets,camelizedId)){return assets[camelizedId]}var PascalCaseId=capitalize(camelizedId);if(hasOwn(assets,PascalCaseId)){return assets[PascalCaseId]}var res=assets[id]||assets[camelizedId]||assets[PascalCaseId];if(process.env.NODE_ENV!=="production"&&warnMissing&&!res){warn("Failed to resolve "+type.slice(0,-1)+": "+id,options)}return res}function validateProp(key,propOptions,propsData,vm){var prop=propOptions[key];var absent=!hasOwn(propsData,key);var value=propsData[key];if(isType(Boolean,prop.type)){if(absent&&!hasOwn(prop,"default")){value=false}else if(!isType(String,prop.type)&&(value===""||value===hyphenate(key))){value=true}}if(value===undefined){value=getPropDefaultValue(vm,prop,key);var prevShouldConvert=observerState.shouldConvert;observerState.shouldConvert=true;observe(value);observerState.shouldConvert=prevShouldConvert}if(process.env.NODE_ENV!=="production"){assertProp(prop,key,value,vm,absent)}return value}function getPropDefaultValue(vm,prop,key){if(!hasOwn(prop,"default")){return undefined}var def=prop.default;if(process.env.NODE_ENV!=="production"&&isObject(def)){warn('Invalid default value for prop "'+key+'": '+"Props with type Object/Array must use a factory function "+"to return the default value.",vm)}if(vm&&vm.$options.propsData&&vm.$options.propsData[key]===undefined&&vm._props[key]!==undefined){return vm._props[key]}return typeof def==="function"&&getType(prop.type)!=="Function"?def.call(vm):def}function assertProp(prop,name,value,vm,absent){if(prop.required&&absent){warn('Missing required prop: "'+name+'"',vm);return}if(value==null&&!prop.required){return}var type=prop.type;var valid=!type||type===true;var expectedTypes=[];if(type){if(!Array.isArray(type)){type=[type]}for(var i=0;i<type.length&&!valid;i++){var assertedType=assertType(value,type[i]);expectedTypes.push(assertedType.expectedType||"");valid=assertedType.valid}}if(!valid){warn('Invalid prop: type check failed for prop "'+name+'".'+" Expected "+expectedTypes.map(capitalize).join(", ")+", got "+Object.prototype.toString.call(value).slice(8,-1)+".",vm);return}var validator=prop.validator;if(validator){if(!validator(value)){warn('Invalid prop: custom validator check failed for prop "'+name+'".',vm)}}}function assertType(value,type){var valid;var expectedType=getType(type);if(expectedType==="String"){valid=typeof value===(expectedType="string")}else if(expectedType==="Number"){valid=typeof value===(expectedType="number")}else if(expectedType==="Boolean"){valid=typeof value===(expectedType="boolean")}else if(expectedType==="Function"){valid=typeof value===(expectedType="function")}else if(expectedType==="Object"){valid=isPlainObject(value)}else if(expectedType==="Array"){valid=Array.isArray(value)}else{valid=value instanceof type}return{valid:valid,expectedType:expectedType}}function getType(fn){var match=fn&&fn.toString().match(/^\s*function (\w+)/);return match&&match[1]}function isType(type,fn){if(!Array.isArray(fn)){return getType(fn)===getType(type)}for(var i=0,len=fn.length;i<len;i++){if(getType(fn[i])===getType(type)){return true}}return false}function handleError(err,vm,info){if(config.errorHandler){config.errorHandler.call(null,err,vm,info)}else{if(process.env.NODE_ENV!=="production"){warn("Error in "+info+":",vm)}if(inBrowser&&typeof console!=="undefined"){console.error(err)}else{throw err}}}var initProxy;if(process.env.NODE_ENV!=="production"){var allowedGlobals=makeMap("Infinity,undefined,NaN,isFinite,isNaN,"+"parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,"+"Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,"+"require");var warnNonPresent=function(target,key){warn('Property or method "'+key+'" is not defined on the instance but '+"referenced during render. Make sure to declare reactive data "+"properties in the data option.",target)};var hasProxy=typeof Proxy!=="undefined"&&Proxy.toString().match(/native code/);if(hasProxy){var isBuiltInModifier=makeMap("stop,prevent,self,ctrl,shift,alt,meta");config.keyCodes=new Proxy(config.keyCodes,{set:function set(target,key,value){if(isBuiltInModifier(key)){warn("Avoid overwriting built-in modifier in config.keyCodes: ."+key);return false}else{target[key]=value;return true}}})}var hasHandler={has:function has(target,key){var has=key in target;var isAllowed=allowedGlobals(key)||key.charAt(0)==="_";if(!has&&!isAllowed){warnNonPresent(target,key)}return has||!isAllowed}};var getHandler={get:function get(target,key){if(typeof key==="string"&&!(key in target)){warnNonPresent(target,key)}return target[key]}};initProxy=function initProxy(vm){if(hasProxy){var options=vm.$options;var handlers=options.render&&options.render._withStripped?getHandler:hasHandler;vm._renderProxy=new Proxy(vm,handlers)}else{vm._renderProxy=vm}}}var mark;var measure;if(process.env.NODE_ENV!=="production"){var perf=inBrowser&&window.performance;if(perf&&perf.mark&&perf.measure&&perf.clearMarks&&perf.clearMeasures){mark=function(tag){return perf.mark(tag)};measure=function(name,startTag,endTag){perf.measure(name,startTag,endTag);perf.clearMarks(startTag);perf.clearMarks(endTag);perf.clearMeasures(name)}}}var VNode=function VNode(tag,data,children,text,elm,context,componentOptions){this.tag=tag;this.data=data;this.children=children;this.text=text;this.elm=elm;this.ns=undefined;this.context=context;this.functionalContext=undefined;this.key=data&&data.key;this.componentOptions=componentOptions;this.componentInstance=undefined;this.parent=undefined;this.raw=false;this.isStatic=false;this.isRootInsert=true;this.isComment=false;this.isCloned=false;this.isOnce=false};var prototypeAccessors={child:{}};prototypeAccessors.child.get=function(){return this.componentInstance};Object.defineProperties(VNode.prototype,prototypeAccessors);var createEmptyVNode=function(){var node=new VNode;node.text="";node.isComment=true;return node};function createTextVNode(val){return new VNode(undefined,undefined,undefined,String(val))}function cloneVNode(vnode){var cloned=new VNode(vnode.tag,vnode.data,vnode.children,vnode.text,vnode.elm,vnode.context,vnode.componentOptions);cloned.ns=vnode.ns;cloned.isStatic=vnode.isStatic;cloned.key=vnode.key;cloned.isCloned=true;return cloned}function cloneVNodes(vnodes){var len=vnodes.length;var res=new Array(len);for(var i=0;i<len;i++){res[i]=cloneVNode(vnodes[i])}return res}var normalizeEvent=cached(function(name){var once$$1=name.charAt(0)==="~";name=once$$1?name.slice(1):name;var capture=name.charAt(0)==="!";name=capture?name.slice(1):name;return{name:name,once:once$$1,capture:capture}});function createFnInvoker(fns){function invoker(){var arguments$1=arguments;var fns=invoker.fns;if(Array.isArray(fns)){for(var i=0;i<fns.length;i++){fns[i].apply(null,arguments$1)}}else{return fns.apply(null,arguments)}}invoker.fns=fns;return invoker}function updateListeners(on,oldOn,add,remove$$1,vm){var name,cur,old,event;for(name in on){cur=on[name];old=oldOn[name];event=normalizeEvent(name);if(!cur){process.env.NODE_ENV!=="production"&&warn('Invalid handler for event "'+event.name+'": got '+String(cur),vm)}else if(!old){if(!cur.fns){cur=on[name]=createFnInvoker(cur)}add(event.name,cur,event.once,event.capture)}else if(cur!==old){old.fns=cur;on[name]=old}}for(name in oldOn){if(!on[name]){event=normalizeEvent(name);remove$$1(event.name,oldOn[name],event.capture)}}}function mergeVNodeHook(def,hookKey,hook){var invoker;var oldHook=def[hookKey];function wrappedHook(){hook.apply(this,arguments);remove(invoker.fns,wrappedHook)}if(!oldHook){invoker=createFnInvoker([wrappedHook])}else{if(oldHook.fns&&oldHook.merged){invoker=oldHook;invoker.fns.push(wrappedHook)}else{invoker=createFnInvoker([oldHook,wrappedHook])}}invoker.merged=true;def[hookKey]=invoker}function simpleNormalizeChildren(children){for(var i=0;i<children.length;i++){if(Array.isArray(children[i])){return Array.prototype.concat.apply([],children)}}return children}function normalizeChildren(children){return isPrimitive(children)?[createTextVNode(children)]:Array.isArray(children)?normalizeArrayChildren(children):undefined}function normalizeArrayChildren(children,nestedIndex){var res=[];var i,c,last;for(i=0;i<children.length;i++){c=children[i];if(c==null||typeof c==="boolean"){continue}last=res[res.length-1];if(Array.isArray(c)){res.push.apply(res,normalizeArrayChildren(c,(nestedIndex||"")+"_"+i))}else if(isPrimitive(c)){if(last&&last.text){last.text+=String(c)}else if(c!==""){res.push(createTextVNode(c))}}else{if(c.text&&last&&last.text){res[res.length-1]=createTextVNode(last.text+c.text)}else{if(c.tag&&c.key==null&&nestedIndex!=null){c.key="__vlist"+nestedIndex+"_"+i+"__"}res.push(c)}}}return res}function getFirstComponentChild(children){return children&&children.filter(function(c){return c&&c.componentOptions})[0]}function initEvents(vm){vm._events=Object.create(null);vm._hasHookEvent=false;var listeners=vm.$options._parentListeners;if(listeners){updateComponentListeners(vm,listeners)}}var target;function add(event,fn,once$$1){if(once$$1){target.$once(event,fn)}else{target.$on(event,fn)}}function remove$1(event,fn){target.$off(event,fn)}function updateComponentListeners(vm,listeners,oldListeners){target=vm;updateListeners(listeners,oldListeners||{},add,remove$1,vm)}function eventsMixin(Vue){var hookRE=/^hook:/;Vue.prototype.$on=function(event,fn){var this$1=this;var vm=this;if(Array.isArray(event)){for(var i=0,l=event.length;i<l;i++){this$1.$on(event[i],fn)}}else{(vm._events[event]||(vm._events[event]=[])).push(fn);if(hookRE.test(event)){vm._hasHookEvent=true}}return vm};Vue.prototype.$once=function(event,fn){var vm=this;function on(){vm.$off(event,on);fn.apply(vm,arguments)}on.fn=fn;vm.$on(event,on);return vm};Vue.prototype.$off=function(event,fn){var this$1=this;var vm=this;if(!arguments.length){vm._events=Object.create(null);return vm}if(Array.isArray(event)){for(var i$1=0,l=event.length;i$1<l;i$1++){this$1.$off(event[i$1],fn)}return vm}var cbs=vm._events[event];if(!cbs){return vm}if(arguments.length===1){vm._events[event]=null;return vm}var cb;var i=cbs.length;while(i--){cb=cbs[i];if(cb===fn||cb.fn===fn){cbs.splice(i,1);break}}return vm};Vue.prototype.$emit=function(event){var vm=this;var cbs=vm._events[event];if(cbs){cbs=cbs.length>1?toArray(cbs):cbs;var args=toArray(arguments,1);for(var i=0,l=cbs.length;i<l;i++){cbs[i].apply(vm,args)}}return vm}}function resolveSlots(children,context){var slots={};if(!children){return slots}var defaultSlot=[];var name,child;for(var i=0,l=children.length;i<l;i++){child=children[i];if((child.context===context||child.functionalContext===context)&&child.data&&(name=child.data.slot)){var slot=slots[name]||(slots[name]=[]);if(child.tag==="template"){slot.push.apply(slot,child.children)}else{slot.push(child)}}else{defaultSlot.push(child)}}if(!defaultSlot.every(isWhitespace)){slots.default=defaultSlot}return slots}function isWhitespace(node){return node.isComment||node.text===" "}function resolveScopedSlots(fns){var res={};for(var i=0;i<fns.length;i++){res[fns[i][0]]=fns[i][1]}return res}var activeInstance=null;function initLifecycle(vm){var options=vm.$options;var parent=options.parent;if(parent&&!options.abstract){while(parent.$options.abstract&&parent.$parent){parent=parent.$parent}parent.$children.push(vm)}vm.$parent=parent;vm.$root=parent?parent.$root:vm;vm.$children=[];vm.$refs={};vm._watcher=null;vm._inactive=null;vm._directInactive=false;vm._isMounted=false;vm._isDestroyed=false;vm._isBeingDestroyed=false}function lifecycleMixin(Vue){Vue.prototype._update=function(vnode,hydrating){var vm=this;if(vm._isMounted){callHook(vm,"beforeUpdate")}var prevEl=vm.$el;var prevVnode=vm._vnode;var prevActiveInstance=activeInstance;activeInstance=vm;vm._vnode=vnode;if(!prevVnode){vm.$el=vm.__patch__(vm.$el,vnode,hydrating,false,vm.$options._parentElm,vm.$options._refElm)}else{vm.$el=vm.__patch__(prevVnode,vnode)}activeInstance=prevActiveInstance;if(prevEl){prevEl.__vue__=null}if(vm.$el){vm.$el.__vue__=vm}if(vm.$vnode&&vm.$parent&&vm.$vnode===vm.$parent._vnode){vm.$parent.$el=vm.$el}};Vue.prototype.$forceUpdate=function(){var vm=this;if(vm._watcher){vm._watcher.update()}};Vue.prototype.$destroy=function(){var vm=this;if(vm._isBeingDestroyed){return}callHook(vm,"beforeDestroy");vm._isBeingDestroyed=true;var parent=vm.$parent;if(parent&&!parent._isBeingDestroyed&&!vm.$options.abstract){remove(parent.$children,vm)}if(vm._watcher){vm._watcher.teardown()}var i=vm._watchers.length;while(i--){vm._watchers[i].teardown()}if(vm._data.__ob__){vm._data.__ob__.vmCount--}vm._isDestroyed=true;callHook(vm,"destroyed");vm.$off();if(vm.$el){vm.$el.__vue__=null}vm.__patch__(vm._vnode,null)}}function mountComponent(vm,el,hydrating){vm.$el=el;if(!vm.$options.render){vm.$options.render=createEmptyVNode;if(process.env.NODE_ENV!=="production"){if(vm.$options.template&&vm.$options.template.charAt(0)!=="#"||vm.$options.el||el){warn("You are using the runtime-only build of Vue where the template "+"compiler is not available. Either pre-compile the templates into "+"render functions, or use the compiler-included build.",vm)}else{warn("Failed to mount component: template or render function not defined.",vm)}}}callHook(vm,"beforeMount");var updateComponent;if(process.env.NODE_ENV!=="production"&&config.performance&&mark){updateComponent=function(){var name=vm._name;var id=vm._uid;var startTag="vue-perf-start:"+id;var endTag="vue-perf-end:"+id;mark(startTag);var vnode=vm._render();mark(endTag);measure(name+" render",startTag,endTag);mark(startTag);vm._update(vnode,hydrating);mark(endTag);measure(name+" patch",startTag,endTag)}}else{updateComponent=function(){vm._update(vm._render(),hydrating)}}vm._watcher=new Watcher(vm,updateComponent,noop);hydrating=false;if(vm.$vnode==null){vm._isMounted=true;callHook(vm,"mounted")}return vm}function updateChildComponent(vm,propsData,listeners,parentVnode,renderChildren){var hasChildren=!!(renderChildren||vm.$options._renderChildren||parentVnode.data.scopedSlots||vm.$scopedSlots!==emptyObject);vm.$options._parentVnode=parentVnode;vm.$vnode=parentVnode;if(vm._vnode){vm._vnode.parent=parentVnode}vm.$options._renderChildren=renderChildren;if(propsData&&vm.$options.props){observerState.shouldConvert=false;if(process.env.NODE_ENV!=="production"){observerState.isSettingProps=true}var props=vm._props;var propKeys=vm.$options._propKeys||[];for(var i=0;i<propKeys.length;i++){var key=propKeys[i];props[key]=validateProp(key,vm.$options.props,propsData,vm)}observerState.shouldConvert=true;if(process.env.NODE_ENV!=="production"){observerState.isSettingProps=false}vm.$options.propsData=propsData}if(listeners){var oldListeners=vm.$options._parentListeners;vm.$options._parentListeners=listeners;updateComponentListeners(vm,listeners,oldListeners)}if(hasChildren){vm.$slots=resolveSlots(renderChildren,parentVnode.context);vm.$forceUpdate()}}function isInInactiveTree(vm){while(vm&&(vm=vm.$parent)){if(vm._inactive){return true}}return false}function activateChildComponent(vm,direct){if(direct){vm._directInactive=false;if(isInInactiveTree(vm)){return}}else if(vm._directInactive){return}if(vm._inactive||vm._inactive==null){vm._inactive=false;for(var i=0;i<vm.$children.length;i++){activateChildComponent(vm.$children[i])}callHook(vm,"activated")}}function deactivateChildComponent(vm,direct){if(direct){vm._directInactive=true;if(isInInactiveTree(vm)){return}}if(!vm._inactive){vm._inactive=true;for(var i=0;i<vm.$children.length;i++){deactivateChildComponent(vm.$children[i])}callHook(vm,"deactivated")}}function callHook(vm,hook){var handlers=vm.$options[hook];if(handlers){for(var i=0,j=handlers.length;i<j;i++){try{handlers[i].call(vm)}catch(e){handleError(e,vm,hook+" hook")}}}if(vm._hasHookEvent){vm.$emit("hook:"+hook)}}var queue=[];var has={};var circular={};var waiting=false;var flushing=false;var index=0;function resetSchedulerState(){queue.length=0;has={};if(process.env.NODE_ENV!=="production"){circular={}}waiting=flushing=false}function flushSchedulerQueue(){flushing=true;var watcher,id,vm;queue.sort(function(a,b){return a.id-b.id});for(index=0;index<queue.length;index++){watcher=queue[index];id=watcher.id;has[id]=null;watcher.run();if(process.env.NODE_ENV!=="production"&&has[id]!=null){circular[id]=(circular[id]||0)+1;if(circular[id]>config._maxUpdateCount){warn("You may have an infinite update loop "+(watcher.user?'in watcher with expression "'+watcher.expression+'"':"in a component render function."),watcher.vm);break}}}index=queue.length;while(index--){watcher=queue[index];vm=watcher.vm;if(vm._watcher===watcher&&vm._isMounted){callHook(vm,"updated")}}if(devtools&&config.devtools){devtools.emit("flush")}resetSchedulerState()}function queueWatcher(watcher){var id=watcher.id;if(has[id]==null){has[id]=true;if(!flushing){queue.push(watcher)}else{var i=queue.length-1;while(i>=0&&queue[i].id>watcher.id){i--}queue.splice(Math.max(i,index)+1,0,watcher)}if(!waiting){waiting=true;nextTick(flushSchedulerQueue)}}}var uid$2=0;var Watcher=function Watcher(vm,expOrFn,cb,options){this.vm=vm;vm._watchers.push(this);if(options){this.deep=!!options.deep;this.user=!!options.user;this.lazy=!!options.lazy;this.sync=!!options.sync}else{this.deep=this.user=this.lazy=this.sync=false}this.cb=cb;this.id=++uid$2;this.active=true;this.dirty=this.lazy;this.deps=[];this.newDeps=[];this.depIds=new _Set;this.newDepIds=new _Set;this.expression=process.env.NODE_ENV!=="production"?expOrFn.toString():"";if(typeof expOrFn==="function"){this.getter=expOrFn}else{this.getter=parsePath(expOrFn);if(!this.getter){this.getter=function(){};process.env.NODE_ENV!=="production"&&warn('Failed watching path: "'+expOrFn+'" '+"Watcher only accepts simple dot-delimited paths. "+"For full control, use a function instead.",vm)}}this.value=this.lazy?undefined:this.get()};Watcher.prototype.get=function get(){pushTarget(this);var value;var vm=this.vm;if(this.user){try{value=this.getter.call(vm,vm)}catch(e){handleError(e,vm,'getter for watcher "'+this.expression+'"')}}else{value=this.getter.call(vm,vm)}if(this.deep){traverse(value)}popTarget();this.cleanupDeps();return value};Watcher.prototype.addDep=function addDep(dep){var id=dep.id;if(!this.newDepIds.has(id)){this.newDepIds.add(id);this.newDeps.push(dep);if(!this.depIds.has(id)){dep.addSub(this)}}};Watcher.prototype.cleanupDeps=function cleanupDeps(){var this$1=this;var i=this.deps.length;while(i--){var dep=this$1.deps[i];if(!this$1.newDepIds.has(dep.id)){dep.removeSub(this$1)}}var tmp=this.depIds;this.depIds=this.newDepIds;this.newDepIds=tmp;this.newDepIds.clear();tmp=this.deps;this.deps=this.newDeps;this.newDeps=tmp;this.newDeps.length=0};Watcher.prototype.update=function update(){if(this.lazy){this.dirty=true}else if(this.sync){this.run()}else{queueWatcher(this)}};Watcher.prototype.run=function run(){if(this.active){var value=this.get();if(value!==this.value||isObject(value)||this.deep){var oldValue=this.value;this.value=value;if(this.user){try{this.cb.call(this.vm,value,oldValue)}catch(e){handleError(e,this.vm,'callback for watcher "'+this.expression+'"')}}else{this.cb.call(this.vm,value,oldValue)}}}};Watcher.prototype.evaluate=function evaluate(){this.value=this.get();this.dirty=false};Watcher.prototype.depend=function depend(){var this$1=this;var i=this.deps.length;while(i--){this$1.deps[i].depend()}};Watcher.prototype.teardown=function teardown(){var this$1=this;if(this.active){if(!this.vm._isBeingDestroyed){remove(this.vm._watchers,this)}var i=this.deps.length;while(i--){this$1.deps[i].removeSub(this$1)}this.active=false}};var seenObjects=new _Set;function traverse(val){seenObjects.clear();_traverse(val,seenObjects)}function _traverse(val,seen){var i,keys;var isA=Array.isArray(val);if(!isA&&!isObject(val)||!Object.isExtensible(val)){return}if(val.__ob__){var depId=val.__ob__.dep.id;if(seen.has(depId)){return}seen.add(depId)}if(isA){i=val.length;while(i--){_traverse(val[i],seen)}}else{keys=Object.keys(val);i=keys.length;while(i--){_traverse(val[keys[i]],seen)}}}var sharedPropertyDefinition={enumerable:true,configurable:true,get:noop,set:noop};function proxy(target,sourceKey,key){sharedPropertyDefinition.get=function proxyGetter(){return this[sourceKey][key]};sharedPropertyDefinition.set=function proxySetter(val){this[sourceKey][key]=val};Object.defineProperty(target,key,sharedPropertyDefinition)}function initState(vm){vm._watchers=[];var opts=vm.$options;if(opts.props){initProps(vm,opts.props)}if(opts.methods){initMethods(vm,opts.methods)}if(opts.data){initData(vm)}else{observe(vm._data={},true)}if(opts.computed){initComputed(vm,opts.computed)}if(opts.watch){initWatch(vm,opts.watch)}}var isReservedProp={key:1,ref:1,slot:1};function initProps(vm,propsOptions){var propsData=vm.$options.propsData||{};var props=vm._props={};var keys=vm.$options._propKeys=[];var isRoot=!vm.$parent;observerState.shouldConvert=isRoot;var loop=function(key){keys.push(key);var value=validateProp(key,propsOptions,propsData,vm);if(process.env.NODE_ENV!=="production"){if(isReservedProp[key]){warn('"'+key+'" is a reserved attribute and cannot be used as component prop.',vm)}defineReactive$$1(props,key,value,function(){if(vm.$parent&&!observerState.isSettingProps){warn("Avoid mutating a prop directly since the value will be "+"overwritten whenever the parent component re-renders. "+"Instead, use a data or computed property based on the prop's "+'value. Prop being mutated: "'+key+'"',vm)}})}else{defineReactive$$1(props,key,value)}if(!(key in vm)){proxy(vm,"_props",key)}};for(var key in propsOptions)loop(key);observerState.shouldConvert=true}function initData(vm){var data=vm.$options.data;data=vm._data=typeof data==="function"?data.call(vm):data||{};if(!isPlainObject(data)){data={};process.env.NODE_ENV!=="production"&&warn("data functions should return an object:\n"+"https://vuejs.org/v2/guide/components.html#data-Must-Be-a-Function",vm)}var keys=Object.keys(data);var props=vm.$options.props;var i=keys.length;while(i--){if(props&&hasOwn(props,keys[i])){process.env.NODE_ENV!=="production"&&warn('The data property "'+keys[i]+'" is already declared as a prop. '+"Use prop default value instead.",vm)}else if(!isReserved(keys[i])){proxy(vm,"_data",keys[i])}}observe(data,true)}var computedWatcherOptions={lazy:true};function initComputed(vm,computed){var watchers=vm._computedWatchers=Object.create(null);for(var key in computed){var userDef=computed[key];var getter=typeof userDef==="function"?userDef:userDef.get;watchers[key]=new Watcher(vm,getter,noop,computedWatcherOptions);if(!(key in vm)){defineComputed(vm,key,userDef)}}}function defineComputed(target,key,userDef){if(typeof userDef==="function"){sharedPropertyDefinition.get=createComputedGetter(key);sharedPropertyDefinition.set=noop}else{sharedPropertyDefinition.get=userDef.get?userDef.cache!==false?createComputedGetter(key):userDef.get:noop;sharedPropertyDefinition.set=userDef.set?userDef.set:noop}Object.defineProperty(target,key,sharedPropertyDefinition)}function createComputedGetter(key){return function computedGetter(){var watcher=this._computedWatchers&&this._computedWatchers[key];
if(watcher){if(watcher.dirty){watcher.evaluate()}if(Dep.target){watcher.depend()}return watcher.value}}}function initMethods(vm,methods){var props=vm.$options.props;for(var key in methods){vm[key]=methods[key]==null?noop:bind(methods[key],vm);if(process.env.NODE_ENV!=="production"){if(methods[key]==null){warn('method "'+key+'" has an undefined value in the component definition. '+"Did you reference the function correctly?",vm)}if(props&&hasOwn(props,key)){warn('method "'+key+'" has already been defined as a prop.',vm)}}}}function initWatch(vm,watch){for(var key in watch){var handler=watch[key];if(Array.isArray(handler)){for(var i=0;i<handler.length;i++){createWatcher(vm,key,handler[i])}}else{createWatcher(vm,key,handler)}}}function createWatcher(vm,key,handler){var options;if(isPlainObject(handler)){options=handler;handler=handler.handler}if(typeof handler==="string"){handler=vm[handler]}vm.$watch(key,handler,options)}function stateMixin(Vue){var dataDef={};dataDef.get=function(){return this._data};var propsDef={};propsDef.get=function(){return this._props};if(process.env.NODE_ENV!=="production"){dataDef.set=function(newData){warn("Avoid replacing instance root $data. "+"Use nested data properties instead.",this)};propsDef.set=function(){warn("$props is readonly.",this)}}Object.defineProperty(Vue.prototype,"$data",dataDef);Object.defineProperty(Vue.prototype,"$props",propsDef);Vue.prototype.$set=set;Vue.prototype.$delete=del;Vue.prototype.$watch=function(expOrFn,cb,options){var vm=this;options=options||{};options.user=true;var watcher=new Watcher(vm,expOrFn,cb,options);if(options.immediate){cb.call(vm,watcher.value)}return function unwatchFn(){watcher.teardown()}}}var componentVNodeHooks={init:function init(vnode,hydrating,parentElm,refElm){if(!vnode.componentInstance||vnode.componentInstance._isDestroyed){var child=vnode.componentInstance=createComponentInstanceForVnode(vnode,activeInstance,parentElm,refElm);child.$mount(hydrating?vnode.elm:undefined,hydrating)}else if(vnode.data.keepAlive){var mountedNode=vnode;componentVNodeHooks.prepatch(mountedNode,mountedNode)}},prepatch:function prepatch(oldVnode,vnode){var options=vnode.componentOptions;var child=vnode.componentInstance=oldVnode.componentInstance;updateChildComponent(child,options.propsData,options.listeners,vnode,options.children)},insert:function insert(vnode){if(!vnode.componentInstance._isMounted){vnode.componentInstance._isMounted=true;callHook(vnode.componentInstance,"mounted")}if(vnode.data.keepAlive){activateChildComponent(vnode.componentInstance,true)}},destroy:function destroy(vnode){if(!vnode.componentInstance._isDestroyed){if(!vnode.data.keepAlive){vnode.componentInstance.$destroy()}else{deactivateChildComponent(vnode.componentInstance,true)}}}};var hooksToMerge=Object.keys(componentVNodeHooks);function createComponent(Ctor,data,context,children,tag){if(!Ctor){return}var baseCtor=context.$options._base;if(isObject(Ctor)){Ctor=baseCtor.extend(Ctor)}if(typeof Ctor!=="function"){if(process.env.NODE_ENV!=="production"){warn("Invalid Component definition: "+String(Ctor),context)}return}if(!Ctor.cid){if(Ctor.resolved){Ctor=Ctor.resolved}else{Ctor=resolveAsyncComponent(Ctor,baseCtor,function(){context.$forceUpdate()});if(!Ctor){return}}}resolveConstructorOptions(Ctor);data=data||{};if(data.model){transformModel(Ctor.options,data)}var propsData=extractProps(data,Ctor);if(Ctor.options.functional){return createFunctionalComponent(Ctor,propsData,data,context,children)}var listeners=data.on;data.on=data.nativeOn;if(Ctor.options.abstract){data={}}mergeHooks(data);var name=Ctor.options.name||tag;var vnode=new VNode("vue-component-"+Ctor.cid+(name?"-"+name:""),data,undefined,undefined,undefined,context,{Ctor:Ctor,propsData:propsData,listeners:listeners,tag:tag,children:children});return vnode}function createFunctionalComponent(Ctor,propsData,data,context,children){var props={};var propOptions=Ctor.options.props;if(propOptions){for(var key in propOptions){props[key]=validateProp(key,propOptions,propsData)}}var _context=Object.create(context);var h=function(a,b,c,d){return createElement(_context,a,b,c,d,true)};var vnode=Ctor.options.render.call(null,h,{props:props,data:data,parent:context,children:children,slots:function(){return resolveSlots(children,context)}});if(vnode instanceof VNode){vnode.functionalContext=context;if(data.slot){(vnode.data||(vnode.data={})).slot=data.slot}}return vnode}function createComponentInstanceForVnode(vnode,parent,parentElm,refElm){var vnodeComponentOptions=vnode.componentOptions;var options={_isComponent:true,parent:parent,propsData:vnodeComponentOptions.propsData,_componentTag:vnodeComponentOptions.tag,_parentVnode:vnode,_parentListeners:vnodeComponentOptions.listeners,_renderChildren:vnodeComponentOptions.children,_parentElm:parentElm||null,_refElm:refElm||null};var inlineTemplate=vnode.data.inlineTemplate;if(inlineTemplate){options.render=inlineTemplate.render;options.staticRenderFns=inlineTemplate.staticRenderFns}return new vnodeComponentOptions.Ctor(options)}function resolveAsyncComponent(factory,baseCtor,cb){if(factory.requested){factory.pendingCallbacks.push(cb)}else{factory.requested=true;var cbs=factory.pendingCallbacks=[cb];var sync=true;var resolve=function(res){if(isObject(res)){res=baseCtor.extend(res)}factory.resolved=res;if(!sync){for(var i=0,l=cbs.length;i<l;i++){cbs[i](res)}}};var reject=function(reason){process.env.NODE_ENV!=="production"&&warn("Failed to resolve async component: "+String(factory)+(reason?"\nReason: "+reason:""))};var res=factory(resolve,reject);if(res&&typeof res.then==="function"&&!factory.resolved){res.then(resolve,reject)}sync=false;return factory.resolved}}function extractProps(data,Ctor){var propOptions=Ctor.options.props;if(!propOptions){return}var res={};var attrs=data.attrs;var props=data.props;var domProps=data.domProps;if(attrs||props||domProps){for(var key in propOptions){var altKey=hyphenate(key);if(process.env.NODE_ENV!=="production"){var keyInLowerCase=key.toLowerCase();if(key!==keyInLowerCase&&attrs&&attrs.hasOwnProperty(keyInLowerCase)){warn('Prop "'+keyInLowerCase+'" is not declared in component '+formatComponentName(Ctor)+". Note that HTML attributes are "+"case-insensitive and camelCased props need to use their kebab-case "+"equivalents when using in-DOM templates. You should probably use "+'"'+altKey+'" instead of "'+key+'".')}}checkProp(res,props,key,altKey,true)||checkProp(res,attrs,key,altKey)||checkProp(res,domProps,key,altKey)}}return res}function checkProp(res,hash,key,altKey,preserve){if(hash){if(hasOwn(hash,key)){res[key]=hash[key];if(!preserve){delete hash[key]}return true}else if(hasOwn(hash,altKey)){res[key]=hash[altKey];if(!preserve){delete hash[altKey]}return true}}return false}function mergeHooks(data){if(!data.hook){data.hook={}}for(var i=0;i<hooksToMerge.length;i++){var key=hooksToMerge[i];var fromParent=data.hook[key];var ours=componentVNodeHooks[key];data.hook[key]=fromParent?mergeHook$1(ours,fromParent):ours}}function mergeHook$1(one,two){return function(a,b,c,d){one(a,b,c,d);two(a,b,c,d)}}function transformModel(options,data){var prop=options.model&&options.model.prop||"value";var event=options.model&&options.model.event||"input";(data.props||(data.props={}))[prop]=data.model.value;var on=data.on||(data.on={});if(on[event]){on[event]=[data.model.callback].concat(on[event])}else{on[event]=data.model.callback}}var SIMPLE_NORMALIZE=1;var ALWAYS_NORMALIZE=2;function createElement(context,tag,data,children,normalizationType,alwaysNormalize){if(Array.isArray(data)||isPrimitive(data)){normalizationType=children;children=data;data=undefined}if(alwaysNormalize){normalizationType=ALWAYS_NORMALIZE}return _createElement(context,tag,data,children,normalizationType)}function _createElement(context,tag,data,children,normalizationType){if(data&&data.__ob__){process.env.NODE_ENV!=="production"&&warn("Avoid using observed data object as vnode data: "+JSON.stringify(data)+"\n"+"Always create fresh vnode data objects in each render!",context);return createEmptyVNode()}if(!tag){return createEmptyVNode()}if(Array.isArray(children)&&typeof children[0]==="function"){data=data||{};data.scopedSlots={"default":children[0]};children.length=0}if(normalizationType===ALWAYS_NORMALIZE){children=normalizeChildren(children)}else if(normalizationType===SIMPLE_NORMALIZE){children=simpleNormalizeChildren(children)}var vnode,ns;if(typeof tag==="string"){var Ctor;ns=config.getTagNamespace(tag);if(config.isReservedTag(tag)){vnode=new VNode(config.parsePlatformTagName(tag),data,children,undefined,undefined,context)}else if(Ctor=resolveAsset(context.$options,"components",tag)){vnode=createComponent(Ctor,data,context,children,tag)}else{vnode=new VNode(tag,data,children,undefined,undefined,context)}}else{vnode=createComponent(tag,data,context,children)}if(vnode){if(ns){applyNS(vnode,ns)}return vnode}else{return createEmptyVNode()}}function applyNS(vnode,ns){vnode.ns=ns;if(vnode.tag==="foreignObject"){return}if(vnode.children){for(var i=0,l=vnode.children.length;i<l;i++){var child=vnode.children[i];if(child.tag&&!child.ns){applyNS(child,ns)}}}}function renderList(val,render){var ret,i,l,keys,key;if(Array.isArray(val)||typeof val==="string"){ret=new Array(val.length);for(i=0,l=val.length;i<l;i++){ret[i]=render(val[i],i)}}else if(typeof val==="number"){ret=new Array(val);for(i=0;i<val;i++){ret[i]=render(i+1,i)}}else if(isObject(val)){keys=Object.keys(val);ret=new Array(keys.length);for(i=0,l=keys.length;i<l;i++){key=keys[i];ret[i]=render(val[key],key,i)}}return ret}function renderSlot(name,fallback,props,bindObject){var scopedSlotFn=this.$scopedSlots[name];if(scopedSlotFn){props=props||{};if(bindObject){extend(props,bindObject)}return scopedSlotFn(props)||fallback}else{var slotNodes=this.$slots[name];if(slotNodes&&process.env.NODE_ENV!=="production"){slotNodes._rendered&&warn('Duplicate presence of slot "'+name+'" found in the same render tree '+"- this will likely cause render errors.",this);slotNodes._rendered=true}return slotNodes||fallback}}function resolveFilter(id){return resolveAsset(this.$options,"filters",id,true)||identity}function checkKeyCodes(eventKeyCode,key,builtInAlias){var keyCodes=config.keyCodes[key]||builtInAlias;if(Array.isArray(keyCodes)){return keyCodes.indexOf(eventKeyCode)===-1}else{return keyCodes!==eventKeyCode}}function bindObjectProps(data,tag,value,asProp){if(value){if(!isObject(value)){process.env.NODE_ENV!=="production"&&warn("v-bind without argument expects an Object or Array value",this)}else{if(Array.isArray(value)){value=toObject(value)}var hash;for(var key in value){if(key==="class"||key==="style"){hash=data}else{var type=data.attrs&&data.attrs.type;hash=asProp||config.mustUseProp(tag,type,key)?data.domProps||(data.domProps={}):data.attrs||(data.attrs={})}if(!(key in hash)){hash[key]=value[key]}}}}return data}function renderStatic(index,isInFor){var tree=this._staticTrees[index];if(tree&&!isInFor){return Array.isArray(tree)?cloneVNodes(tree):cloneVNode(tree)}tree=this._staticTrees[index]=this.$options.staticRenderFns[index].call(this._renderProxy);markStatic(tree,"__static__"+index,false);return tree}function markOnce(tree,index,key){markStatic(tree,"__once__"+index+(key?"_"+key:""),true);return tree}function markStatic(tree,key,isOnce){if(Array.isArray(tree)){for(var i=0;i<tree.length;i++){if(tree[i]&&typeof tree[i]!=="string"){markStaticNode(tree[i],key+"_"+i,isOnce)}}}else{markStaticNode(tree,key,isOnce)}}function markStaticNode(node,key,isOnce){node.isStatic=true;node.key=key;node.isOnce=isOnce}function initRender(vm){vm.$vnode=null;vm._vnode=null;vm._staticTrees=null;var parentVnode=vm.$options._parentVnode;var renderContext=parentVnode&&parentVnode.context;vm.$slots=resolveSlots(vm.$options._renderChildren,renderContext);vm.$scopedSlots=emptyObject;vm._c=function(a,b,c,d){return createElement(vm,a,b,c,d,false)};vm.$createElement=function(a,b,c,d){return createElement(vm,a,b,c,d,true)}}function renderMixin(Vue){Vue.prototype.$nextTick=function(fn){return nextTick(fn,this)};Vue.prototype._render=function(){var vm=this;var ref=vm.$options;var render=ref.render;var staticRenderFns=ref.staticRenderFns;var _parentVnode=ref._parentVnode;if(vm._isMounted){for(var key in vm.$slots){vm.$slots[key]=cloneVNodes(vm.$slots[key])}}vm.$scopedSlots=_parentVnode&&_parentVnode.data.scopedSlots||emptyObject;if(staticRenderFns&&!vm._staticTrees){vm._staticTrees=[]}vm.$vnode=_parentVnode;var vnode;try{vnode=render.call(vm._renderProxy,vm.$createElement)}catch(e){handleError(e,vm,"render function");if(process.env.NODE_ENV!=="production"){vnode=vm.$options.renderError?vm.$options.renderError.call(vm._renderProxy,vm.$createElement,e):vm._vnode}else{vnode=vm._vnode}}if(!(vnode instanceof VNode)){if(process.env.NODE_ENV!=="production"&&Array.isArray(vnode)){warn("Multiple root nodes returned from render function. Render function "+"should return a single root node.",vm)}vnode=createEmptyVNode()}vnode.parent=_parentVnode;return vnode};Vue.prototype._o=markOnce;Vue.prototype._n=toNumber;Vue.prototype._s=_toString;Vue.prototype._l=renderList;Vue.prototype._t=renderSlot;Vue.prototype._q=looseEqual;Vue.prototype._i=looseIndexOf;Vue.prototype._m=renderStatic;Vue.prototype._f=resolveFilter;Vue.prototype._k=checkKeyCodes;Vue.prototype._b=bindObjectProps;Vue.prototype._v=createTextVNode;Vue.prototype._e=createEmptyVNode;Vue.prototype._u=resolveScopedSlots}function initProvide(vm){var provide=vm.$options.provide;if(provide){vm._provided=typeof provide==="function"?provide.call(vm):provide}}function initInjections(vm){var inject=vm.$options.inject;if(inject){var isArray=Array.isArray(inject);var keys=isArray?inject:hasSymbol?Reflect.ownKeys(inject):Object.keys(inject);for(var i=0;i<keys.length;i++){var key=keys[i];var provideKey=isArray?key:inject[key];var source=vm;while(source){if(source._provided&&provideKey in source._provided){vm[key]=source._provided[provideKey];break}source=source.$parent}}}}var uid=0;function initMixin(Vue){Vue.prototype._init=function(options){if(process.env.NODE_ENV!=="production"&&config.performance&&mark){mark("vue-perf-init")}var vm=this;vm._uid=uid++;vm._isVue=true;if(options&&options._isComponent){initInternalComponent(vm,options)}else{vm.$options=mergeOptions(resolveConstructorOptions(vm.constructor),options||{},vm)}if(process.env.NODE_ENV!=="production"){initProxy(vm)}else{vm._renderProxy=vm}vm._self=vm;initLifecycle(vm);initEvents(vm);initRender(vm);callHook(vm,"beforeCreate");initInjections(vm);initState(vm);initProvide(vm);callHook(vm,"created");if(process.env.NODE_ENV!=="production"&&config.performance&&mark){vm._name=formatComponentName(vm,false);mark("vue-perf-init-end");measure(vm._name+" init","vue-perf-init","vue-perf-init-end")}if(vm.$options.el){vm.$mount(vm.$options.el)}}}function initInternalComponent(vm,options){var opts=vm.$options=Object.create(vm.constructor.options);opts.parent=options.parent;opts.propsData=options.propsData;opts._parentVnode=options._parentVnode;opts._parentListeners=options._parentListeners;opts._renderChildren=options._renderChildren;opts._componentTag=options._componentTag;opts._parentElm=options._parentElm;opts._refElm=options._refElm;if(options.render){opts.render=options.render;opts.staticRenderFns=options.staticRenderFns}}function resolveConstructorOptions(Ctor){var options=Ctor.options;if(Ctor.super){var superOptions=resolveConstructorOptions(Ctor.super);var cachedSuperOptions=Ctor.superOptions;if(superOptions!==cachedSuperOptions){Ctor.superOptions=superOptions;var modifiedOptions=resolveModifiedOptions(Ctor);if(modifiedOptions){extend(Ctor.extendOptions,modifiedOptions)}options=Ctor.options=mergeOptions(superOptions,Ctor.extendOptions);if(options.name){options.components[options.name]=Ctor}}}return options}function resolveModifiedOptions(Ctor){var modified;var latest=Ctor.options;var sealed=Ctor.sealedOptions;for(var key in latest){if(latest[key]!==sealed[key]){if(!modified){modified={}}modified[key]=dedupe(latest[key],sealed[key])}}return modified}function dedupe(latest,sealed){if(Array.isArray(latest)){var res=[];sealed=Array.isArray(sealed)?sealed:[sealed];for(var i=0;i<latest.length;i++){if(sealed.indexOf(latest[i])<0){res.push(latest[i])}}return res}else{return latest}}function Vue$2(options){if(process.env.NODE_ENV!=="production"&&!(this instanceof Vue$2)){warn("Vue is a constructor and should be called with the `new` keyword")}this._init(options)}initMixin(Vue$2);stateMixin(Vue$2);eventsMixin(Vue$2);lifecycleMixin(Vue$2);renderMixin(Vue$2);function initUse(Vue){Vue.use=function(plugin){if(plugin.installed){return}var args=toArray(arguments,1);args.unshift(this);if(typeof plugin.install==="function"){plugin.install.apply(plugin,args)}else if(typeof plugin==="function"){plugin.apply(null,args)}plugin.installed=true;return this}}function initMixin$1(Vue){Vue.mixin=function(mixin){this.options=mergeOptions(this.options,mixin)}}function initExtend(Vue){Vue.cid=0;var cid=1;Vue.extend=function(extendOptions){extendOptions=extendOptions||{};var Super=this;var SuperId=Super.cid;var cachedCtors=extendOptions._Ctor||(extendOptions._Ctor={});if(cachedCtors[SuperId]){return cachedCtors[SuperId]}var name=extendOptions.name||Super.options.name;if(process.env.NODE_ENV!=="production"){if(!/^[a-zA-Z][\w-]*$/.test(name)){warn('Invalid component name: "'+name+'". Component names '+"can only contain alphanumeric characters and the hyphen, "+"and must start with a letter.")}}var Sub=function VueComponent(options){this._init(options)};Sub.prototype=Object.create(Super.prototype);Sub.prototype.constructor=Sub;Sub.cid=cid++;Sub.options=mergeOptions(Super.options,extendOptions);Sub["super"]=Super;if(Sub.options.props){initProps$1(Sub)}if(Sub.options.computed){initComputed$1(Sub)}Sub.extend=Super.extend;Sub.mixin=Super.mixin;Sub.use=Super.use;config._assetTypes.forEach(function(type){Sub[type]=Super[type]});if(name){Sub.options.components[name]=Sub}Sub.superOptions=Super.options;Sub.extendOptions=extendOptions;Sub.sealedOptions=extend({},Sub.options);cachedCtors[SuperId]=Sub;return Sub}}function initProps$1(Comp){var props=Comp.options.props;for(var key in props){proxy(Comp.prototype,"_props",key)}}function initComputed$1(Comp){var computed=Comp.options.computed;for(var key in computed){defineComputed(Comp.prototype,key,computed[key])}}function initAssetRegisters(Vue){config._assetTypes.forEach(function(type){Vue[type]=function(id,definition){if(!definition){return this.options[type+"s"][id]}else{if(process.env.NODE_ENV!=="production"){if(type==="component"&&config.isReservedTag(id)){warn("Do not use built-in or reserved HTML elements as component "+"id: "+id)}}if(type==="component"&&isPlainObject(definition)){definition.name=definition.name||id;definition=this.options._base.extend(definition)}if(type==="directive"&&typeof definition==="function"){definition={bind:definition,update:definition}}this.options[type+"s"][id]=definition;return definition}}})}var patternTypes=[String,RegExp];function getComponentName(opts){return opts&&(opts.Ctor.options.name||opts.tag)}function matches(pattern,name){if(typeof pattern==="string"){return pattern.split(",").indexOf(name)>-1}else if(pattern instanceof RegExp){return pattern.test(name)}return false}function pruneCache(cache,filter){for(var key in cache){var cachedNode=cache[key];if(cachedNode){var name=getComponentName(cachedNode.componentOptions);if(name&&!filter(name)){pruneCacheEntry(cachedNode);cache[key]=null}}}}function pruneCacheEntry(vnode){if(vnode){if(!vnode.componentInstance._inactive){callHook(vnode.componentInstance,"deactivated")}vnode.componentInstance.$destroy()}}var KeepAlive={name:"keep-alive","abstract":true,props:{include:patternTypes,exclude:patternTypes},created:function created(){this.cache=Object.create(null)},destroyed:function destroyed(){var this$1=this;for(var key in this$1.cache){pruneCacheEntry(this$1.cache[key])}},watch:{include:function include(val){pruneCache(this.cache,function(name){return matches(val,name)})},exclude:function exclude(val){pruneCache(this.cache,function(name){return!matches(val,name)})}},render:function render(){var vnode=getFirstComponentChild(this.$slots.default);var componentOptions=vnode&&vnode.componentOptions;if(componentOptions){var name=getComponentName(componentOptions);if(name&&(this.include&&!matches(this.include,name)||this.exclude&&matches(this.exclude,name))){return vnode}var key=vnode.key==null?componentOptions.Ctor.cid+(componentOptions.tag?"::"+componentOptions.tag:""):vnode.key;if(this.cache[key]){vnode.componentInstance=this.cache[key].componentInstance}else{this.cache[key]=vnode}vnode.data.keepAlive=true}return vnode}};var builtInComponents={KeepAlive:KeepAlive};function initGlobalAPI(Vue){var configDef={};configDef.get=function(){return config};if(process.env.NODE_ENV!=="production"){configDef.set=function(){warn("Do not replace the Vue.config object, set individual fields instead.")}}Object.defineProperty(Vue,"config",configDef);Vue.util={warn:warn,extend:extend,mergeOptions:mergeOptions,defineReactive:defineReactive$$1};Vue.set=set;Vue.delete=del;Vue.nextTick=nextTick;Vue.options=Object.create(null);config._assetTypes.forEach(function(type){Vue.options[type+"s"]=Object.create(null)});Vue.options._base=Vue;extend(Vue.options.components,builtInComponents);initUse(Vue);initMixin$1(Vue);initExtend(Vue);initAssetRegisters(Vue)}initGlobalAPI(Vue$2);Object.defineProperty(Vue$2.prototype,"$isServer",{get:isServerRendering});Vue$2.version="2.2.4";var acceptValue=makeMap("input,textarea,option,select");var mustUseProp=function(tag,type,attr){return attr==="value"&&acceptValue(tag)&&type!=="button"||attr==="selected"&&tag==="option"||attr==="checked"&&tag==="input"||attr==="muted"&&tag==="video"};var isEnumeratedAttr=makeMap("contenteditable,draggable,spellcheck");var isBooleanAttr=makeMap("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,"+"default,defaultchecked,defaultmuted,defaultselected,defer,disabled,"+"enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,"+"muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,"+"required,reversed,scoped,seamless,selected,sortable,translate,"+"truespeed,typemustmatch,visible");var xlinkNS="http://www.w3.org/1999/xlink";var isXlink=function(name){return name.charAt(5)===":"&&name.slice(0,5)==="xlink"};var getXlinkProp=function(name){return isXlink(name)?name.slice(6,name.length):""};var isFalsyAttrValue=function(val){return val==null||val===false};function genClassForVnode(vnode){var data=vnode.data;var parentNode=vnode;var childNode=vnode;while(childNode.componentInstance){childNode=childNode.componentInstance._vnode;if(childNode.data){data=mergeClassData(childNode.data,data)}}while(parentNode=parentNode.parent){if(parentNode.data){data=mergeClassData(data,parentNode.data)}}return genClassFromData(data)}function mergeClassData(child,parent){return{staticClass:concat(child.staticClass,parent.staticClass),"class":child.class?[child.class,parent.class]:parent.class}}function genClassFromData(data){var dynamicClass=data.class;var staticClass=data.staticClass;if(staticClass||dynamicClass){return concat(staticClass,stringifyClass(dynamicClass))}return""}function concat(a,b){return a?b?a+" "+b:a:b||""}function stringifyClass(value){var res="";if(!value){return res}if(typeof value==="string"){return value}if(Array.isArray(value)){var stringified;for(var i=0,l=value.length;i<l;i++){if(value[i]){if(stringified=stringifyClass(value[i])){res+=stringified+" "}}}return res.slice(0,-1)}if(isObject(value)){for(var key in value){if(value[key]){res+=key+" "}}return res.slice(0,-1)}return res}var namespaceMap={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"};var isHTMLTag=makeMap("html,body,base,head,link,meta,style,title,"+"address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,"+"div,dd,dl,dt,figcaption,figure,hr,img,li,main,ol,p,pre,ul,"+"a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,"+"s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,"+"embed,object,param,source,canvas,script,noscript,del,ins,"+"caption,col,colgroup,table,thead,tbody,td,th,tr,"+"button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,"+"output,progress,select,textarea,"+"details,dialog,menu,menuitem,summary,"+"content,element,shadow,template");var isSVG=makeMap("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,"+"foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,"+"polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",true);var isReservedTag=function(tag){return isHTMLTag(tag)||isSVG(tag)};function getTagNamespace(tag){if(isSVG(tag)){return"svg"}if(tag==="math"){return"math"}}var unknownElementCache=Object.create(null);function isUnknownElement(tag){if(!inBrowser){return true}if(isReservedTag(tag)){return false}tag=tag.toLowerCase();if(unknownElementCache[tag]!=null){return unknownElementCache[tag]}var el=document.createElement(tag);if(tag.indexOf("-")>-1){return unknownElementCache[tag]=el.constructor===window.HTMLUnknownElement||el.constructor===window.HTMLElement}else{return unknownElementCache[tag]=/HTMLUnknownElement/.test(el.toString())}}function query(el){if(typeof el==="string"){var selected=document.querySelector(el);if(!selected){process.env.NODE_ENV!=="production"&&warn("Cannot find element: "+el);return document.createElement("div")}return selected}else{return el}}function createElement$1(tagName,vnode){var elm=document.createElement(tagName);if(tagName!=="select"){return elm}if(vnode.data&&vnode.data.attrs&&vnode.data.attrs.multiple!==undefined){elm.setAttribute("multiple","multiple")}return elm}function createElementNS(namespace,tagName){return document.createElementNS(namespaceMap[namespace],tagName)}function createTextNode(text){return document.createTextNode(text)}function createComment(text){return document.createComment(text)}function insertBefore(parentNode,newNode,referenceNode){parentNode.insertBefore(newNode,referenceNode)}function removeChild(node,child){node.removeChild(child)}function appendChild(node,child){node.appendChild(child)}function parentNode(node){return node.parentNode}function nextSibling(node){return node.nextSibling}function tagName(node){return node.tagName}function setTextContent(node,text){node.textContent=text}function setAttribute(node,key,val){node.setAttribute(key,val)}var nodeOps=Object.freeze({createElement:createElement$1,createElementNS:createElementNS,createTextNode:createTextNode,createComment:createComment,insertBefore:insertBefore,removeChild:removeChild,appendChild:appendChild,parentNode:parentNode,nextSibling:nextSibling,tagName:tagName,setTextContent:setTextContent,setAttribute:setAttribute});var ref={create:function create(_,vnode){registerRef(vnode)},update:function update(oldVnode,vnode){if(oldVnode.data.ref!==vnode.data.ref){registerRef(oldVnode,true);registerRef(vnode)}},destroy:function destroy(vnode){registerRef(vnode,true)}};function registerRef(vnode,isRemoval){var key=vnode.data.ref;if(!key){return}var vm=vnode.context;var ref=vnode.componentInstance||vnode.elm;var refs=vm.$refs;if(isRemoval){if(Array.isArray(refs[key])){remove(refs[key],ref)}else if(refs[key]===ref){refs[key]=undefined}}else{if(vnode.data.refInFor){if(Array.isArray(refs[key])&&refs[key].indexOf(ref)<0){refs[key].push(ref)}else{refs[key]=[ref]}}else{refs[key]=ref}}}var emptyNode=new VNode("",{},[]);var hooks=["create","activate","update","remove","destroy"];function isUndef(s){return s==null}function isDef(s){return s!=null}function sameVnode(vnode1,vnode2){return vnode1.key===vnode2.key&&vnode1.tag===vnode2.tag&&vnode1.isComment===vnode2.isComment&&!vnode1.data===!vnode2.data}function createKeyToOldIdx(children,beginIdx,endIdx){var i,key;var map={};for(i=beginIdx;i<=endIdx;++i){key=children[i].key;if(isDef(key)){map[key]=i}}return map}function createPatchFunction(backend){var i,j;var cbs={};var modules=backend.modules;var nodeOps=backend.nodeOps;for(i=0;i<hooks.length;++i){cbs[hooks[i]]=[];for(j=0;j<modules.length;++j){if(modules[j][hooks[i]]!==undefined){cbs[hooks[i]].push(modules[j][hooks[i]])}}}function emptyNodeAt(elm){return new VNode(nodeOps.tagName(elm).toLowerCase(),{},[],undefined,elm)}function createRmCb(childElm,listeners){function remove$$1(){if(--remove$$1.listeners===0){removeNode(childElm)}}remove$$1.listeners=listeners;return remove$$1}function removeNode(el){var parent=nodeOps.parentNode(el);if(parent){nodeOps.removeChild(parent,el)}}var inPre=0;function createElm(vnode,insertedVnodeQueue,parentElm,refElm,nested){vnode.isRootInsert=!nested;if(createComponent(vnode,insertedVnodeQueue,parentElm,refElm)){return}var data=vnode.data;var children=vnode.children;var tag=vnode.tag;if(isDef(tag)){if(process.env.NODE_ENV!=="production"){if(data&&data.pre){inPre++}if(!inPre&&!vnode.ns&&!(config.ignoredElements.length&&config.ignoredElements.indexOf(tag)>-1)&&config.isUnknownElement(tag)){warn("Unknown custom element: <"+tag+"> - did you "+"register the component correctly? For recursive components, "+'make sure to provide the "name" option.',vnode.context)}}vnode.elm=vnode.ns?nodeOps.createElementNS(vnode.ns,tag):nodeOps.createElement(tag,vnode);setScope(vnode);{createChildren(vnode,children,insertedVnodeQueue);if(isDef(data)){invokeCreateHooks(vnode,insertedVnodeQueue)}insert(parentElm,vnode.elm,refElm)}if(process.env.NODE_ENV!=="production"&&data&&data.pre){inPre--}}else if(vnode.isComment){vnode.elm=nodeOps.createComment(vnode.text);insert(parentElm,vnode.elm,refElm)}else{vnode.elm=nodeOps.createTextNode(vnode.text);insert(parentElm,vnode.elm,refElm)}}function createComponent(vnode,insertedVnodeQueue,parentElm,refElm){var i=vnode.data;if(isDef(i)){var isReactivated=isDef(vnode.componentInstance)&&i.keepAlive;if(isDef(i=i.hook)&&isDef(i=i.init)){i(vnode,false,parentElm,refElm)}if(isDef(vnode.componentInstance)){initComponent(vnode,insertedVnodeQueue);if(isReactivated){reactivateComponent(vnode,insertedVnodeQueue,parentElm,refElm)}return true}}}function initComponent(vnode,insertedVnodeQueue){if(vnode.data.pendingInsert){insertedVnodeQueue.push.apply(insertedVnodeQueue,vnode.data.pendingInsert)}vnode.elm=vnode.componentInstance.$el;if(isPatchable(vnode)){invokeCreateHooks(vnode,insertedVnodeQueue);setScope(vnode)}else{registerRef(vnode);insertedVnodeQueue.push(vnode)}}function reactivateComponent(vnode,insertedVnodeQueue,parentElm,refElm){var i;var innerNode=vnode;while(innerNode.componentInstance){innerNode=innerNode.componentInstance._vnode;if(isDef(i=innerNode.data)&&isDef(i=i.transition)){for(i=0;i<cbs.activate.length;++i){cbs.activate[i](emptyNode,innerNode)}insertedVnodeQueue.push(innerNode);break}}insert(parentElm,vnode.elm,refElm)}function insert(parent,elm,ref){if(parent){if(ref){nodeOps.insertBefore(parent,elm,ref)}else{nodeOps.appendChild(parent,elm)}}}function createChildren(vnode,children,insertedVnodeQueue){if(Array.isArray(children)){for(var i=0;i<children.length;++i){createElm(children[i],insertedVnodeQueue,vnode.elm,null,true)}}else if(isPrimitive(vnode.text)){nodeOps.appendChild(vnode.elm,nodeOps.createTextNode(vnode.text))}}function isPatchable(vnode){while(vnode.componentInstance){vnode=vnode.componentInstance._vnode}return isDef(vnode.tag)}function invokeCreateHooks(vnode,insertedVnodeQueue){for(var i$1=0;i$1<cbs.create.length;++i$1){cbs.create[i$1](emptyNode,vnode)}i=vnode.data.hook;if(isDef(i)){if(i.create){i.create(emptyNode,vnode)}if(i.insert){insertedVnodeQueue.push(vnode)}}}function setScope(vnode){var i;var ancestor=vnode;while(ancestor){if(isDef(i=ancestor.context)&&isDef(i=i.$options._scopeId)){nodeOps.setAttribute(vnode.elm,i,"")}ancestor=ancestor.parent}if(isDef(i=activeInstance)&&i!==vnode.context&&isDef(i=i.$options._scopeId)){nodeOps.setAttribute(vnode.elm,i,"")}}function addVnodes(parentElm,refElm,vnodes,startIdx,endIdx,insertedVnodeQueue){
for(;startIdx<=endIdx;++startIdx){createElm(vnodes[startIdx],insertedVnodeQueue,parentElm,refElm)}}function invokeDestroyHook(vnode){var i,j;var data=vnode.data;if(isDef(data)){if(isDef(i=data.hook)&&isDef(i=i.destroy)){i(vnode)}for(i=0;i<cbs.destroy.length;++i){cbs.destroy[i](vnode)}}if(isDef(i=vnode.children)){for(j=0;j<vnode.children.length;++j){invokeDestroyHook(vnode.children[j])}}}function removeVnodes(parentElm,vnodes,startIdx,endIdx){for(;startIdx<=endIdx;++startIdx){var ch=vnodes[startIdx];if(isDef(ch)){if(isDef(ch.tag)){removeAndInvokeRemoveHook(ch);invokeDestroyHook(ch)}else{removeNode(ch.elm)}}}}function removeAndInvokeRemoveHook(vnode,rm){if(rm||isDef(vnode.data)){var listeners=cbs.remove.length+1;if(!rm){rm=createRmCb(vnode.elm,listeners)}else{rm.listeners+=listeners}if(isDef(i=vnode.componentInstance)&&isDef(i=i._vnode)&&isDef(i.data)){removeAndInvokeRemoveHook(i,rm)}for(i=0;i<cbs.remove.length;++i){cbs.remove[i](vnode,rm)}if(isDef(i=vnode.data.hook)&&isDef(i=i.remove)){i(vnode,rm)}else{rm()}}else{removeNode(vnode.elm)}}function updateChildren(parentElm,oldCh,newCh,insertedVnodeQueue,removeOnly){var oldStartIdx=0;var newStartIdx=0;var oldEndIdx=oldCh.length-1;var oldStartVnode=oldCh[0];var oldEndVnode=oldCh[oldEndIdx];var newEndIdx=newCh.length-1;var newStartVnode=newCh[0];var newEndVnode=newCh[newEndIdx];var oldKeyToIdx,idxInOld,elmToMove,refElm;var canMove=!removeOnly;while(oldStartIdx<=oldEndIdx&&newStartIdx<=newEndIdx){if(isUndef(oldStartVnode)){oldStartVnode=oldCh[++oldStartIdx]}else if(isUndef(oldEndVnode)){oldEndVnode=oldCh[--oldEndIdx]}else if(sameVnode(oldStartVnode,newStartVnode)){patchVnode(oldStartVnode,newStartVnode,insertedVnodeQueue);oldStartVnode=oldCh[++oldStartIdx];newStartVnode=newCh[++newStartIdx]}else if(sameVnode(oldEndVnode,newEndVnode)){patchVnode(oldEndVnode,newEndVnode,insertedVnodeQueue);oldEndVnode=oldCh[--oldEndIdx];newEndVnode=newCh[--newEndIdx]}else if(sameVnode(oldStartVnode,newEndVnode)){patchVnode(oldStartVnode,newEndVnode,insertedVnodeQueue);canMove&&nodeOps.insertBefore(parentElm,oldStartVnode.elm,nodeOps.nextSibling(oldEndVnode.elm));oldStartVnode=oldCh[++oldStartIdx];newEndVnode=newCh[--newEndIdx]}else if(sameVnode(oldEndVnode,newStartVnode)){patchVnode(oldEndVnode,newStartVnode,insertedVnodeQueue);canMove&&nodeOps.insertBefore(parentElm,oldEndVnode.elm,oldStartVnode.elm);oldEndVnode=oldCh[--oldEndIdx];newStartVnode=newCh[++newStartIdx]}else{if(isUndef(oldKeyToIdx)){oldKeyToIdx=createKeyToOldIdx(oldCh,oldStartIdx,oldEndIdx)}idxInOld=isDef(newStartVnode.key)?oldKeyToIdx[newStartVnode.key]:null;if(isUndef(idxInOld)){createElm(newStartVnode,insertedVnodeQueue,parentElm,oldStartVnode.elm);newStartVnode=newCh[++newStartIdx]}else{elmToMove=oldCh[idxInOld];if(process.env.NODE_ENV!=="production"&&!elmToMove){warn("It seems there are duplicate keys that is causing an update error. "+"Make sure each v-for item has a unique key.")}if(sameVnode(elmToMove,newStartVnode)){patchVnode(elmToMove,newStartVnode,insertedVnodeQueue);oldCh[idxInOld]=undefined;canMove&&nodeOps.insertBefore(parentElm,newStartVnode.elm,oldStartVnode.elm);newStartVnode=newCh[++newStartIdx]}else{createElm(newStartVnode,insertedVnodeQueue,parentElm,oldStartVnode.elm);newStartVnode=newCh[++newStartIdx]}}}}if(oldStartIdx>oldEndIdx){refElm=isUndef(newCh[newEndIdx+1])?null:newCh[newEndIdx+1].elm;addVnodes(parentElm,refElm,newCh,newStartIdx,newEndIdx,insertedVnodeQueue)}else if(newStartIdx>newEndIdx){removeVnodes(parentElm,oldCh,oldStartIdx,oldEndIdx)}}function patchVnode(oldVnode,vnode,insertedVnodeQueue,removeOnly){if(oldVnode===vnode){return}if(vnode.isStatic&&oldVnode.isStatic&&vnode.key===oldVnode.key&&(vnode.isCloned||vnode.isOnce)){vnode.elm=oldVnode.elm;vnode.componentInstance=oldVnode.componentInstance;return}var i;var data=vnode.data;var hasData=isDef(data);if(hasData&&isDef(i=data.hook)&&isDef(i=i.prepatch)){i(oldVnode,vnode)}var elm=vnode.elm=oldVnode.elm;var oldCh=oldVnode.children;var ch=vnode.children;if(hasData&&isPatchable(vnode)){for(i=0;i<cbs.update.length;++i){cbs.update[i](oldVnode,vnode)}if(isDef(i=data.hook)&&isDef(i=i.update)){i(oldVnode,vnode)}}if(isUndef(vnode.text)){if(isDef(oldCh)&&isDef(ch)){if(oldCh!==ch){updateChildren(elm,oldCh,ch,insertedVnodeQueue,removeOnly)}}else if(isDef(ch)){if(isDef(oldVnode.text)){nodeOps.setTextContent(elm,"")}addVnodes(elm,null,ch,0,ch.length-1,insertedVnodeQueue)}else if(isDef(oldCh)){removeVnodes(elm,oldCh,0,oldCh.length-1)}else if(isDef(oldVnode.text)){nodeOps.setTextContent(elm,"")}}else if(oldVnode.text!==vnode.text){nodeOps.setTextContent(elm,vnode.text)}if(hasData){if(isDef(i=data.hook)&&isDef(i=i.postpatch)){i(oldVnode,vnode)}}}function invokeInsertHook(vnode,queue,initial){if(initial&&vnode.parent){vnode.parent.data.pendingInsert=queue}else{for(var i=0;i<queue.length;++i){queue[i].data.hook.insert(queue[i])}}}var bailed=false;var isRenderedModule=makeMap("attrs,style,class,staticClass,staticStyle,key");function hydrate(elm,vnode,insertedVnodeQueue){if(process.env.NODE_ENV!=="production"){if(!assertNodeMatch(elm,vnode)){return false}}vnode.elm=elm;var tag=vnode.tag;var data=vnode.data;var children=vnode.children;if(isDef(data)){if(isDef(i=data.hook)&&isDef(i=i.init)){i(vnode,true)}if(isDef(i=vnode.componentInstance)){initComponent(vnode,insertedVnodeQueue);return true}}if(isDef(tag)){if(isDef(children)){if(!elm.hasChildNodes()){createChildren(vnode,children,insertedVnodeQueue)}else{var childrenMatch=true;var childNode=elm.firstChild;for(var i$1=0;i$1<children.length;i$1++){if(!childNode||!hydrate(childNode,children[i$1],insertedVnodeQueue)){childrenMatch=false;break}childNode=childNode.nextSibling}if(!childrenMatch||childNode){if(process.env.NODE_ENV!=="production"&&typeof console!=="undefined"&&!bailed){bailed=true;console.warn("Parent: ",elm);console.warn("Mismatching childNodes vs. VNodes: ",elm.childNodes,children)}return false}}}if(isDef(data)){for(var key in data){if(!isRenderedModule(key)){invokeCreateHooks(vnode,insertedVnodeQueue);break}}}}else if(elm.data!==vnode.text){elm.data=vnode.text}return true}function assertNodeMatch(node,vnode){if(vnode.tag){return vnode.tag.indexOf("vue-component")===0||vnode.tag.toLowerCase()===(node.tagName&&node.tagName.toLowerCase())}else{return node.nodeType===(vnode.isComment?8:3)}}return function patch(oldVnode,vnode,hydrating,removeOnly,parentElm,refElm){if(!vnode){if(oldVnode){invokeDestroyHook(oldVnode)}return}var isInitialPatch=false;var insertedVnodeQueue=[];if(!oldVnode){isInitialPatch=true;createElm(vnode,insertedVnodeQueue,parentElm,refElm)}else{var isRealElement=isDef(oldVnode.nodeType);if(!isRealElement&&sameVnode(oldVnode,vnode)){patchVnode(oldVnode,vnode,insertedVnodeQueue,removeOnly)}else{if(isRealElement){if(oldVnode.nodeType===1&&oldVnode.hasAttribute("server-rendered")){oldVnode.removeAttribute("server-rendered");hydrating=true}if(hydrating){if(hydrate(oldVnode,vnode,insertedVnodeQueue)){invokeInsertHook(vnode,insertedVnodeQueue,true);return oldVnode}else if(process.env.NODE_ENV!=="production"){warn("The client-side rendered virtual DOM tree is not matching "+"server-rendered content. This is likely caused by incorrect "+"HTML markup, for example nesting block-level elements inside "+"<p>, or missing <tbody>. Bailing hydration and performing "+"full client-side render.")}}oldVnode=emptyNodeAt(oldVnode)}var oldElm=oldVnode.elm;var parentElm$1=nodeOps.parentNode(oldElm);createElm(vnode,insertedVnodeQueue,oldElm._leaveCb?null:parentElm$1,nodeOps.nextSibling(oldElm));if(vnode.parent){var ancestor=vnode.parent;while(ancestor){ancestor.elm=vnode.elm;ancestor=ancestor.parent}if(isPatchable(vnode)){for(var i=0;i<cbs.create.length;++i){cbs.create[i](emptyNode,vnode.parent)}}}if(parentElm$1!==null){removeVnodes(parentElm$1,[oldVnode],0,0)}else if(isDef(oldVnode.tag)){invokeDestroyHook(oldVnode)}}}invokeInsertHook(vnode,insertedVnodeQueue,isInitialPatch);return vnode.elm}}var directives={create:updateDirectives,update:updateDirectives,destroy:function unbindDirectives(vnode){updateDirectives(vnode,emptyNode)}};function updateDirectives(oldVnode,vnode){if(oldVnode.data.directives||vnode.data.directives){_update(oldVnode,vnode)}}function _update(oldVnode,vnode){var isCreate=oldVnode===emptyNode;var isDestroy=vnode===emptyNode;var oldDirs=normalizeDirectives$1(oldVnode.data.directives,oldVnode.context);var newDirs=normalizeDirectives$1(vnode.data.directives,vnode.context);var dirsWithInsert=[];var dirsWithPostpatch=[];var key,oldDir,dir;for(key in newDirs){oldDir=oldDirs[key];dir=newDirs[key];if(!oldDir){callHook$1(dir,"bind",vnode,oldVnode);if(dir.def&&dir.def.inserted){dirsWithInsert.push(dir)}}else{dir.oldValue=oldDir.value;callHook$1(dir,"update",vnode,oldVnode);if(dir.def&&dir.def.componentUpdated){dirsWithPostpatch.push(dir)}}}if(dirsWithInsert.length){var callInsert=function(){for(var i=0;i<dirsWithInsert.length;i++){callHook$1(dirsWithInsert[i],"inserted",vnode,oldVnode)}};if(isCreate){mergeVNodeHook(vnode.data.hook||(vnode.data.hook={}),"insert",callInsert)}else{callInsert()}}if(dirsWithPostpatch.length){mergeVNodeHook(vnode.data.hook||(vnode.data.hook={}),"postpatch",function(){for(var i=0;i<dirsWithPostpatch.length;i++){callHook$1(dirsWithPostpatch[i],"componentUpdated",vnode,oldVnode)}})}if(!isCreate){for(key in oldDirs){if(!newDirs[key]){callHook$1(oldDirs[key],"unbind",oldVnode,oldVnode,isDestroy)}}}}var emptyModifiers=Object.create(null);function normalizeDirectives$1(dirs,vm){var res=Object.create(null);if(!dirs){return res}var i,dir;for(i=0;i<dirs.length;i++){dir=dirs[i];if(!dir.modifiers){dir.modifiers=emptyModifiers}res[getRawDirName(dir)]=dir;dir.def=resolveAsset(vm.$options,"directives",dir.name,true)}return res}function getRawDirName(dir){return dir.rawName||dir.name+"."+Object.keys(dir.modifiers||{}).join(".")}function callHook$1(dir,hook,vnode,oldVnode,isDestroy){var fn=dir.def&&dir.def[hook];if(fn){fn(vnode.elm,dir,vnode,oldVnode,isDestroy)}}var baseModules=[ref,directives];function updateAttrs(oldVnode,vnode){if(!oldVnode.data.attrs&&!vnode.data.attrs){return}var key,cur,old;var elm=vnode.elm;var oldAttrs=oldVnode.data.attrs||{};var attrs=vnode.data.attrs||{};if(attrs.__ob__){attrs=vnode.data.attrs=extend({},attrs)}for(key in attrs){cur=attrs[key];old=oldAttrs[key];if(old!==cur){setAttr(elm,key,cur)}}if(isIE9&&attrs.value!==oldAttrs.value){setAttr(elm,"value",attrs.value)}for(key in oldAttrs){if(attrs[key]==null){if(isXlink(key)){elm.removeAttributeNS(xlinkNS,getXlinkProp(key))}else if(!isEnumeratedAttr(key)){elm.removeAttribute(key)}}}}function setAttr(el,key,value){if(isBooleanAttr(key)){if(isFalsyAttrValue(value)){el.removeAttribute(key)}else{el.setAttribute(key,key)}}else if(isEnumeratedAttr(key)){el.setAttribute(key,isFalsyAttrValue(value)||value==="false"?"false":"true")}else if(isXlink(key)){if(isFalsyAttrValue(value)){el.removeAttributeNS(xlinkNS,getXlinkProp(key))}else{el.setAttributeNS(xlinkNS,key,value)}}else{if(isFalsyAttrValue(value)){el.removeAttribute(key)}else{el.setAttribute(key,value)}}}var attrs={create:updateAttrs,update:updateAttrs};function updateClass(oldVnode,vnode){var el=vnode.elm;var data=vnode.data;var oldData=oldVnode.data;if(!data.staticClass&&!data.class&&(!oldData||!oldData.staticClass&&!oldData.class)){return}var cls=genClassForVnode(vnode);var transitionClass=el._transitionClasses;if(transitionClass){cls=concat(cls,stringifyClass(transitionClass))}if(cls!==el._prevClass){el.setAttribute("class",cls);el._prevClass=cls}}var klass={create:updateClass,update:updateClass};var validDivisionCharRE=/[\w).+\-_$\]]/;function wrapFilter(exp,filter){var i=filter.indexOf("(");if(i<0){return'_f("'+filter+'")('+exp+")"}else{var name=filter.slice(0,i);var args=filter.slice(i+1);return'_f("'+name+'")('+exp+","+args}}var str;var index$1;var RANGE_TOKEN="__r";var CHECKBOX_RADIO_TOKEN="__c";function normalizeEvents(on){var event;if(on[RANGE_TOKEN]){event=isIE?"change":"input";on[event]=[].concat(on[RANGE_TOKEN],on[event]||[]);delete on[RANGE_TOKEN]}if(on[CHECKBOX_RADIO_TOKEN]){event=isChrome?"click":"change";on[event]=[].concat(on[CHECKBOX_RADIO_TOKEN],on[event]||[]);delete on[CHECKBOX_RADIO_TOKEN]}}var target$1;function add$1(event,handler,once,capture){if(once){var oldHandler=handler;var _target=target$1;handler=function(ev){var res=arguments.length===1?oldHandler(ev):oldHandler.apply(null,arguments);if(res!==null){remove$2(event,handler,capture,_target)}}}target$1.addEventListener(event,handler,capture)}function remove$2(event,handler,capture,_target){(_target||target$1).removeEventListener(event,handler,capture)}function updateDOMListeners(oldVnode,vnode){if(!oldVnode.data.on&&!vnode.data.on){return}var on=vnode.data.on||{};var oldOn=oldVnode.data.on||{};target$1=vnode.elm;normalizeEvents(on);updateListeners(on,oldOn,add$1,remove$2,vnode.context)}var events={create:updateDOMListeners,update:updateDOMListeners};function updateDOMProps(oldVnode,vnode){if(!oldVnode.data.domProps&&!vnode.data.domProps){return}var key,cur;var elm=vnode.elm;var oldProps=oldVnode.data.domProps||{};var props=vnode.data.domProps||{};if(props.__ob__){props=vnode.data.domProps=extend({},props)}for(key in oldProps){if(props[key]==null){elm[key]=""}}for(key in props){cur=props[key];if(key==="textContent"||key==="innerHTML"){if(vnode.children){vnode.children.length=0}if(cur===oldProps[key]){continue}}if(key==="value"){elm._value=cur;var strCur=cur==null?"":String(cur);if(shouldUpdateValue(elm,vnode,strCur)){elm.value=strCur}}else{elm[key]=cur}}}function shouldUpdateValue(elm,vnode,checkVal){return!elm.composing&&(vnode.tag==="option"||isDirty(elm,checkVal)||isInputChanged(elm,checkVal))}function isDirty(elm,checkVal){return document.activeElement!==elm&&elm.value!==checkVal}function isInputChanged(elm,newVal){var value=elm.value;var modifiers=elm._vModifiers;if(modifiers&&modifiers.number||elm.type==="number"){return toNumber(value)!==toNumber(newVal)}if(modifiers&&modifiers.trim){return value.trim()!==newVal.trim()}return value!==newVal}var domProps={create:updateDOMProps,update:updateDOMProps};var parseStyleText=cached(function(cssText){var res={};var listDelimiter=/;(?![^(]*\))/g;var propertyDelimiter=/:(.+)/;cssText.split(listDelimiter).forEach(function(item){if(item){var tmp=item.split(propertyDelimiter);tmp.length>1&&(res[tmp[0].trim()]=tmp[1].trim())}});return res});function normalizeStyleData(data){var style=normalizeStyleBinding(data.style);return data.staticStyle?extend(data.staticStyle,style):style}function normalizeStyleBinding(bindingStyle){if(Array.isArray(bindingStyle)){return toObject(bindingStyle)}if(typeof bindingStyle==="string"){return parseStyleText(bindingStyle)}return bindingStyle}function getStyle(vnode,checkChild){var res={};var styleData;if(checkChild){var childNode=vnode;while(childNode.componentInstance){childNode=childNode.componentInstance._vnode;if(childNode.data&&(styleData=normalizeStyleData(childNode.data))){extend(res,styleData)}}}if(styleData=normalizeStyleData(vnode.data)){extend(res,styleData)}var parentNode=vnode;while(parentNode=parentNode.parent){if(parentNode.data&&(styleData=normalizeStyleData(parentNode.data))){extend(res,styleData)}}return res}var cssVarRE=/^--/;var importantRE=/\s*!important$/;var setProp=function(el,name,val){if(cssVarRE.test(name)){el.style.setProperty(name,val)}else if(importantRE.test(val)){el.style.setProperty(name,val.replace(importantRE,""),"important")}else{el.style[normalize(name)]=val}};var prefixes=["Webkit","Moz","ms"];var testEl;var normalize=cached(function(prop){testEl=testEl||document.createElement("div");prop=camelize(prop);if(prop!=="filter"&&prop in testEl.style){return prop}var upper=prop.charAt(0).toUpperCase()+prop.slice(1);for(var i=0;i<prefixes.length;i++){var prefixed=prefixes[i]+upper;if(prefixed in testEl.style){return prefixed}}});function updateStyle(oldVnode,vnode){var data=vnode.data;var oldData=oldVnode.data;if(!data.staticStyle&&!data.style&&!oldData.staticStyle&&!oldData.style){return}var cur,name;var el=vnode.elm;var oldStaticStyle=oldVnode.data.staticStyle;var oldStyleBinding=oldVnode.data.style||{};var oldStyle=oldStaticStyle||oldStyleBinding;var style=normalizeStyleBinding(vnode.data.style)||{};vnode.data.style=style.__ob__?extend({},style):style;var newStyle=getStyle(vnode,true);for(name in oldStyle){if(newStyle[name]==null){setProp(el,name,"")}}for(name in newStyle){cur=newStyle[name];if(cur!==oldStyle[name]){setProp(el,name,cur==null?"":cur)}}}var style={create:updateStyle,update:updateStyle};function addClass(el,cls){if(!cls||!(cls=cls.trim())){return}if(el.classList){if(cls.indexOf(" ")>-1){cls.split(/\s+/).forEach(function(c){return el.classList.add(c)})}else{el.classList.add(cls)}}else{var cur=" "+(el.getAttribute("class")||"")+" ";if(cur.indexOf(" "+cls+" ")<0){el.setAttribute("class",(cur+cls).trim())}}}function removeClass(el,cls){if(!cls||!(cls=cls.trim())){return}if(el.classList){if(cls.indexOf(" ")>-1){cls.split(/\s+/).forEach(function(c){return el.classList.remove(c)})}else{el.classList.remove(cls)}}else{var cur=" "+(el.getAttribute("class")||"")+" ";var tar=" "+cls+" ";while(cur.indexOf(tar)>=0){cur=cur.replace(tar," ")}el.setAttribute("class",cur.trim())}}function resolveTransition(def$$1){if(!def$$1){return}if(typeof def$$1==="object"){var res={};if(def$$1.css!==false){extend(res,autoCssTransition(def$$1.name||"v"))}extend(res,def$$1);return res}else if(typeof def$$1==="string"){return autoCssTransition(def$$1)}}var autoCssTransition=cached(function(name){return{enterClass:name+"-enter",enterToClass:name+"-enter-to",enterActiveClass:name+"-enter-active",leaveClass:name+"-leave",leaveToClass:name+"-leave-to",leaveActiveClass:name+"-leave-active"}});var hasTransition=inBrowser&&!isIE9;var TRANSITION="transition";var ANIMATION="animation";var transitionProp="transition";var transitionEndEvent="transitionend";var animationProp="animation";var animationEndEvent="animationend";if(hasTransition){if(window.ontransitionend===undefined&&window.onwebkittransitionend!==undefined){transitionProp="WebkitTransition";transitionEndEvent="webkitTransitionEnd"}if(window.onanimationend===undefined&&window.onwebkitanimationend!==undefined){animationProp="WebkitAnimation";animationEndEvent="webkitAnimationEnd"}}var raf=inBrowser&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout;function nextFrame(fn){raf(function(){raf(fn)})}function addTransitionClass(el,cls){(el._transitionClasses||(el._transitionClasses=[])).push(cls);addClass(el,cls)}function removeTransitionClass(el,cls){if(el._transitionClasses){remove(el._transitionClasses,cls)}removeClass(el,cls)}function whenTransitionEnds(el,expectedType,cb){var ref=getTransitionInfo(el,expectedType);var type=ref.type;var timeout=ref.timeout;var propCount=ref.propCount;if(!type){return cb()}var event=type===TRANSITION?transitionEndEvent:animationEndEvent;var ended=0;var end=function(){el.removeEventListener(event,onEnd);cb()};var onEnd=function(e){if(e.target===el){if(++ended>=propCount){end()}}};setTimeout(function(){if(ended<propCount){end()}},timeout+1);el.addEventListener(event,onEnd)}var transformRE=/\b(transform|all)(,|$)/;function getTransitionInfo(el,expectedType){var styles=window.getComputedStyle(el);var transitionDelays=styles[transitionProp+"Delay"].split(", ");var transitionDurations=styles[transitionProp+"Duration"].split(", ");var transitionTimeout=getTimeout(transitionDelays,transitionDurations);var animationDelays=styles[animationProp+"Delay"].split(", ");var animationDurations=styles[animationProp+"Duration"].split(", ");var animationTimeout=getTimeout(animationDelays,animationDurations);var type;var timeout=0;var propCount=0;if(expectedType===TRANSITION){if(transitionTimeout>0){type=TRANSITION;timeout=transitionTimeout;propCount=transitionDurations.length}}else if(expectedType===ANIMATION){if(animationTimeout>0){type=ANIMATION;timeout=animationTimeout;propCount=animationDurations.length}}else{timeout=Math.max(transitionTimeout,animationTimeout);type=timeout>0?transitionTimeout>animationTimeout?TRANSITION:ANIMATION:null;propCount=type?type===TRANSITION?transitionDurations.length:animationDurations.length:0}var hasTransform=type===TRANSITION&&transformRE.test(styles[transitionProp+"Property"]);return{type:type,timeout:timeout,propCount:propCount,hasTransform:hasTransform}}function getTimeout(delays,durations){while(delays.length<durations.length){delays=delays.concat(delays)}return Math.max.apply(null,durations.map(function(d,i){return toMs(d)+toMs(delays[i])}))}function toMs(s){return Number(s.slice(0,-1))*1e3}function enter(vnode,toggleDisplay){var el=vnode.elm;if(el._leaveCb){el._leaveCb.cancelled=true;el._leaveCb()}var data=resolveTransition(vnode.data.transition);if(!data){return}if(el._enterCb||el.nodeType!==1){return}var css=data.css;var type=data.type;var enterClass=data.enterClass;var enterToClass=data.enterToClass;var enterActiveClass=data.enterActiveClass;var appearClass=data.appearClass;var appearToClass=data.appearToClass;var appearActiveClass=data.appearActiveClass;var beforeEnter=data.beforeEnter;var enter=data.enter;var afterEnter=data.afterEnter;var enterCancelled=data.enterCancelled;var beforeAppear=data.beforeAppear;var appear=data.appear;var afterAppear=data.afterAppear;var appearCancelled=data.appearCancelled;var duration=data.duration;var context=activeInstance;var transitionNode=activeInstance.$vnode;while(transitionNode&&transitionNode.parent){transitionNode=transitionNode.parent;context=transitionNode.context}var isAppear=!context._isMounted||!vnode.isRootInsert;if(isAppear&&!appear&&appear!==""){return}var startClass=isAppear&&appearClass?appearClass:enterClass;var activeClass=isAppear&&appearActiveClass?appearActiveClass:enterActiveClass;var toClass=isAppear&&appearToClass?appearToClass:enterToClass;var beforeEnterHook=isAppear?beforeAppear||beforeEnter:beforeEnter;var enterHook=isAppear?typeof appear==="function"?appear:enter:enter;var afterEnterHook=isAppear?afterAppear||afterEnter:afterEnter;var enterCancelledHook=isAppear?appearCancelled||enterCancelled:enterCancelled;var explicitEnterDuration=toNumber(isObject(duration)?duration.enter:duration);if(process.env.NODE_ENV!=="production"&&explicitEnterDuration!=null){checkDuration(explicitEnterDuration,"enter",vnode)}var expectsCSS=css!==false&&!isIE9;var userWantsControl=getHookArgumentsLength(enterHook);var cb=el._enterCb=once(function(){if(expectsCSS){removeTransitionClass(el,toClass);removeTransitionClass(el,activeClass)}if(cb.cancelled){if(expectsCSS){removeTransitionClass(el,startClass)}enterCancelledHook&&enterCancelledHook(el)}else{afterEnterHook&&afterEnterHook(el)}el._enterCb=null});if(!vnode.data.show){mergeVNodeHook(vnode.data.hook||(vnode.data.hook={}),"insert",function(){var parent=el.parentNode;var pendingNode=parent&&parent._pending&&parent._pending[vnode.key];if(pendingNode&&pendingNode.tag===vnode.tag&&pendingNode.elm._leaveCb){pendingNode.elm._leaveCb()}enterHook&&enterHook(el,cb)})}beforeEnterHook&&beforeEnterHook(el);if(expectsCSS){addTransitionClass(el,startClass);addTransitionClass(el,activeClass);nextFrame(function(){addTransitionClass(el,toClass);removeTransitionClass(el,startClass);if(!cb.cancelled&&!userWantsControl){if(isValidDuration(explicitEnterDuration)){setTimeout(cb,explicitEnterDuration)}else{whenTransitionEnds(el,type,cb)}}})}if(vnode.data.show){toggleDisplay&&toggleDisplay();enterHook&&enterHook(el,cb)}if(!expectsCSS&&!userWantsControl){cb()}}function leave(vnode,rm){var el=vnode.elm;if(el._enterCb){el._enterCb.cancelled=true;el._enterCb()}var data=resolveTransition(vnode.data.transition);if(!data){return rm()}if(el._leaveCb||el.nodeType!==1){return}var css=data.css;var type=data.type;var leaveClass=data.leaveClass;var leaveToClass=data.leaveToClass;var leaveActiveClass=data.leaveActiveClass;var beforeLeave=data.beforeLeave;var leave=data.leave;var afterLeave=data.afterLeave;var leaveCancelled=data.leaveCancelled;var delayLeave=data.delayLeave;var duration=data.duration;var expectsCSS=css!==false&&!isIE9;var userWantsControl=getHookArgumentsLength(leave);var explicitLeaveDuration=toNumber(isObject(duration)?duration.leave:duration);if(process.env.NODE_ENV!=="production"&&explicitLeaveDuration!=null){checkDuration(explicitLeaveDuration,"leave",vnode)}var cb=el._leaveCb=once(function(){if(el.parentNode&&el.parentNode._pending){el.parentNode._pending[vnode.key]=null}if(expectsCSS){removeTransitionClass(el,leaveToClass);removeTransitionClass(el,leaveActiveClass)}if(cb.cancelled){if(expectsCSS){removeTransitionClass(el,leaveClass)}leaveCancelled&&leaveCancelled(el)}else{rm();afterLeave&&afterLeave(el)}el._leaveCb=null});if(delayLeave){delayLeave(performLeave)}else{performLeave()}function performLeave(){if(cb.cancelled){return}if(!vnode.data.show){(el.parentNode._pending||(el.parentNode._pending={}))[vnode.key]=vnode}beforeLeave&&beforeLeave(el);if(expectsCSS){addTransitionClass(el,leaveClass);addTransitionClass(el,leaveActiveClass);nextFrame(function(){addTransitionClass(el,leaveToClass);removeTransitionClass(el,leaveClass);if(!cb.cancelled&&!userWantsControl){if(isValidDuration(explicitLeaveDuration)){setTimeout(cb,explicitLeaveDuration)}else{whenTransitionEnds(el,type,cb)}}})}leave&&leave(el,cb);if(!expectsCSS&&!userWantsControl){cb()}}}function checkDuration(val,name,vnode){if(typeof val!=="number"){warn("<transition> explicit "+name+" duration is not a valid number - "+"got "+JSON.stringify(val)+".",vnode.context)}else if(isNaN(val)){warn("<transition> explicit "+name+" duration is NaN - "+"the duration expression might be incorrect.",vnode.context)}}function isValidDuration(val){return typeof val==="number"&&!isNaN(val)}function getHookArgumentsLength(fn){if(!fn){return false}var invokerFns=fn.fns;if(invokerFns){return getHookArgumentsLength(Array.isArray(invokerFns)?invokerFns[0]:invokerFns)}else{return(fn._length||fn.length)>1}}function _enter(_,vnode){if(!vnode.data.show){enter(vnode)}}var transition=inBrowser?{create:_enter,activate:_enter,remove:function remove$$1(vnode,rm){if(!vnode.data.show){leave(vnode,rm)}else{rm()}}}:{};var platformModules=[attrs,klass,events,domProps,style,transition];var modules=platformModules.concat(baseModules);var patch=createPatchFunction({nodeOps:nodeOps,modules:modules});if(isIE9){document.addEventListener("selectionchange",function(){var el=document.activeElement;if(el&&el.vmodel){trigger(el,"input")}})}var model$1={inserted:function inserted(el,binding,vnode){if(vnode.tag==="select"){var cb=function(){setSelected(el,binding,vnode.context)};cb();if(isIE||isEdge){setTimeout(cb,0)}}else if(vnode.tag==="textarea"||el.type==="text"){el._vModifiers=binding.modifiers;if(!binding.modifiers.lazy){if(!isAndroid){el.addEventListener("compositionstart",onCompositionStart);el.addEventListener("compositionend",onCompositionEnd)}if(isIE9){el.vmodel=true}}}},componentUpdated:function componentUpdated(el,binding,vnode){if(vnode.tag==="select"){setSelected(el,binding,vnode.context);var needReset=el.multiple?binding.value.some(function(v){return hasNoMatchingOption(v,el.options)}):binding.value!==binding.oldValue&&hasNoMatchingOption(binding.value,el.options);if(needReset){trigger(el,"change")}}}};function setSelected(el,binding,vm){var value=binding.value;var isMultiple=el.multiple;if(isMultiple&&!Array.isArray(value)){process.env.NODE_ENV!=="production"&&warn('<select multiple v-model="'+binding.expression+'"> '+"expects an Array value for its binding, but got "+Object.prototype.toString.call(value).slice(8,-1),vm);return}var selected,option;for(var i=0,l=el.options.length;i<l;i++){option=el.options[i];if(isMultiple){selected=looseIndexOf(value,getValue(option))>-1;if(option.selected!==selected){option.selected=selected}}else{if(looseEqual(getValue(option),value)){if(el.selectedIndex!==i){el.selectedIndex=i}return}}}if(!isMultiple){el.selectedIndex=-1}}function hasNoMatchingOption(value,options){for(var i=0,l=options.length;i<l;i++){if(looseEqual(getValue(options[i]),value)){return false}}return true}function getValue(option){return"_value"in option?option._value:option.value}function onCompositionStart(e){e.target.composing=true}function onCompositionEnd(e){e.target.composing=false;trigger(e.target,"input")}function trigger(el,type){var e=document.createEvent("HTMLEvents");e.initEvent(type,true,true);el.dispatchEvent(e)}function locateNode(vnode){return vnode.componentInstance&&(!vnode.data||!vnode.data.transition)?locateNode(vnode.componentInstance._vnode):vnode}var show={bind:function bind(el,ref,vnode){var value=ref.value;vnode=locateNode(vnode);var transition=vnode.data&&vnode.data.transition;var originalDisplay=el.__vOriginalDisplay=el.style.display==="none"?"":el.style.display;if(value&&transition&&!isIE9){vnode.data.show=true;enter(vnode,function(){el.style.display=originalDisplay})}else{el.style.display=value?originalDisplay:"none"}},update:function update(el,ref,vnode){var value=ref.value;var oldValue=ref.oldValue;if(value===oldValue){return}vnode=locateNode(vnode);var transition=vnode.data&&vnode.data.transition;if(transition&&!isIE9){vnode.data.show=true;if(value){enter(vnode,function(){el.style.display=el.__vOriginalDisplay})}else{leave(vnode,function(){el.style.display="none"})}}else{el.style.display=value?el.__vOriginalDisplay:"none"}},unbind:function unbind(el,binding,vnode,oldVnode,isDestroy){if(!isDestroy){el.style.display=el.__vOriginalDisplay}}};var platformDirectives={model:model$1,show:show};var transitionProps={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function getRealChild(vnode){var compOptions=vnode&&vnode.componentOptions;if(compOptions&&compOptions.Ctor.options.abstract){return getRealChild(getFirstComponentChild(compOptions.children))}else{return vnode}}function extractTransitionData(comp){var data={};var options=comp.$options;for(var key in options.propsData){data[key]=comp[key]}var listeners=options._parentListeners;for(var key$1 in listeners){data[camelize(key$1)]=listeners[key$1]}return data}function placeholder(h,rawChild){return/\d-keep-alive$/.test(rawChild.tag)?h("keep-alive"):null}function hasParentTransition(vnode){while(vnode=vnode.parent){if(vnode.data.transition){return true}}}function isSameChild(child,oldChild){return oldChild.key===child.key&&oldChild.tag===child.tag}var Transition={name:"transition",props:transitionProps,"abstract":true,render:function render(h){var this$1=this;var children=this.$slots.default;if(!children){return}children=children.filter(function(c){return c.tag});if(!children.length){return}if(process.env.NODE_ENV!=="production"&&children.length>1){warn("<transition> can only be used on a single element. Use "+"<transition-group> for lists.",this.$parent)}var mode=this.mode;if(process.env.NODE_ENV!=="production"&&mode&&mode!=="in-out"&&mode!=="out-in"){warn("invalid <transition> mode: "+mode,this.$parent)}var rawChild=children[0];if(hasParentTransition(this.$vnode)){return rawChild}var child=getRealChild(rawChild);if(!child){return rawChild}if(this._leaving){return placeholder(h,rawChild)}var id="__transition-"+this._uid+"-";child.key=child.key==null?id+child.tag:isPrimitive(child.key)?String(child.key).indexOf(id)===0?child.key:id+child.key:child.key;var data=(child.data||(child.data={})).transition=extractTransitionData(this);var oldRawChild=this._vnode;var oldChild=getRealChild(oldRawChild);if(child.data.directives&&child.data.directives.some(function(d){return d.name==="show"})){child.data.show=true}if(oldChild&&oldChild.data&&!isSameChild(child,oldChild)){var oldData=oldChild&&(oldChild.data.transition=extend({},data));if(mode==="out-in"){this._leaving=true;mergeVNodeHook(oldData,"afterLeave",function(){this$1._leaving=false;
this$1.$forceUpdate()});return placeholder(h,rawChild)}else if(mode==="in-out"){var delayedLeave;var performLeave=function(){delayedLeave()};mergeVNodeHook(data,"afterEnter",performLeave);mergeVNodeHook(data,"enterCancelled",performLeave);mergeVNodeHook(oldData,"delayLeave",function(leave){delayedLeave=leave})}}return rawChild}};var props=extend({tag:String,moveClass:String},transitionProps);delete props.mode;var TransitionGroup={props:props,render:function render(h){var tag=this.tag||this.$vnode.data.tag||"span";var map=Object.create(null);var prevChildren=this.prevChildren=this.children;var rawChildren=this.$slots.default||[];var children=this.children=[];var transitionData=extractTransitionData(this);for(var i=0;i<rawChildren.length;i++){var c=rawChildren[i];if(c.tag){if(c.key!=null&&String(c.key).indexOf("__vlist")!==0){children.push(c);map[c.key]=c;(c.data||(c.data={})).transition=transitionData}else if(process.env.NODE_ENV!=="production"){var opts=c.componentOptions;var name=opts?opts.Ctor.options.name||opts.tag||"":c.tag;warn("<transition-group> children must be keyed: <"+name+">")}}}if(prevChildren){var kept=[];var removed=[];for(var i$1=0;i$1<prevChildren.length;i$1++){var c$1=prevChildren[i$1];c$1.data.transition=transitionData;c$1.data.pos=c$1.elm.getBoundingClientRect();if(map[c$1.key]){kept.push(c$1)}else{removed.push(c$1)}}this.kept=h(tag,null,kept);this.removed=removed}return h(tag,null,children)},beforeUpdate:function beforeUpdate(){this.__patch__(this._vnode,this.kept,false,true);this._vnode=this.kept},updated:function updated(){var children=this.prevChildren;var moveClass=this.moveClass||(this.name||"v")+"-move";if(!children.length||!this.hasMove(children[0].elm,moveClass)){return}children.forEach(callPendingCbs);children.forEach(recordPosition);children.forEach(applyTranslation);var body=document.body;var f=body.offsetHeight;children.forEach(function(c){if(c.data.moved){var el=c.elm;var s=el.style;addTransitionClass(el,moveClass);s.transform=s.WebkitTransform=s.transitionDuration="";el.addEventListener(transitionEndEvent,el._moveCb=function cb(e){if(!e||/transform$/.test(e.propertyName)){el.removeEventListener(transitionEndEvent,cb);el._moveCb=null;removeTransitionClass(el,moveClass)}})}})},methods:{hasMove:function hasMove(el,moveClass){if(!hasTransition){return false}if(this._hasMove!=null){return this._hasMove}var clone=el.cloneNode();if(el._transitionClasses){el._transitionClasses.forEach(function(cls){removeClass(clone,cls)})}addClass(clone,moveClass);clone.style.display="none";this.$el.appendChild(clone);var info=getTransitionInfo(clone);this.$el.removeChild(clone);return this._hasMove=info.hasTransform}}};function callPendingCbs(c){if(c.elm._moveCb){c.elm._moveCb()}if(c.elm._enterCb){c.elm._enterCb()}}function recordPosition(c){c.data.newPos=c.elm.getBoundingClientRect()}function applyTranslation(c){var oldPos=c.data.pos;var newPos=c.data.newPos;var dx=oldPos.left-newPos.left;var dy=oldPos.top-newPos.top;if(dx||dy){c.data.moved=true;var s=c.elm.style;s.transform=s.WebkitTransform="translate("+dx+"px,"+dy+"px)";s.transitionDuration="0s"}}var platformComponents={Transition:Transition,TransitionGroup:TransitionGroup};Vue$2.config.mustUseProp=mustUseProp;Vue$2.config.isReservedTag=isReservedTag;Vue$2.config.getTagNamespace=getTagNamespace;Vue$2.config.isUnknownElement=isUnknownElement;extend(Vue$2.options.directives,platformDirectives);extend(Vue$2.options.components,platformComponents);Vue$2.prototype.__patch__=inBrowser?patch:noop;Vue$2.prototype.$mount=function(el,hydrating){el=el&&inBrowser?query(el):undefined;return mountComponent(this,el,hydrating)};setTimeout(function(){if(config.devtools){if(devtools){devtools.emit("init",Vue$2)}else if(process.env.NODE_ENV!=="production"&&isChrome){console[console.info?"info":"log"]("Download the Vue Devtools extension for a better development experience:\n"+"https://github.com/vuejs/vue-devtools")}}if(process.env.NODE_ENV!=="production"&&config.productionTip!==false&&inBrowser&&typeof console!=="undefined"){console[console.info?"info":"log"]("You are running Vue in development mode.\n"+"Make sure to turn on production mode when deploying for production.\n"+"See more tips at https://vuejs.org/guide/deployment.html")}},0);module.exports=Vue$2}).call(this,require("_process"),typeof global!=="undefined"?global:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{_process:6}],"vue-tables-2":[function(require,module,exports){"use strict";var _bus=require("./bus");var _bus2=_interopRequireDefault(_bus);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{"default":obj}}var ClientTable=require("./v-client-table");var ServerTable=require("./v-server-table");module.exports={ClientTable:ClientTable,ServerTable:ServerTable,Event:_bus2.default}},{"./bus":7,"./v-client-table":96,"./v-server-table":97}]},{},[]);require("vue-tables-2")},0);
{
"name": "requirebin-sketch",
"version": "1.0.0",
"dependencies": {
"vue-tables-2": "0.4.60"
}
}
<!-- contents of this file will be placed inside the <body> -->
<!-- contents of this file will be placed inside the <head> -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment