dotfiles/vscode/.vscode/extensions/randomfractalsinc.vscode-data-preview-2.3.0/web/scripts/perspective.wasm.worker.js
Errol Sancaktar ff17c17e23 vscode
2024-06-14 09:31:58 -06:00

8 lines
225 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

!function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={i:moduleId,l:!1,exports:{}};return modules[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.l=!0,module.exports}__webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.d=function(exports,name,getter){__webpack_require__.o(exports,name)||Object.defineProperty(exports,name,{enumerable:!0,get:getter})},__webpack_require__.r=function(exports){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(exports,"__esModule",{value:!0})},__webpack_require__.t=function(value,mode){if(1&mode&&(value=__webpack_require__(value)),8&mode)return value;if(4&mode&&"object"==typeof value&&value&&value.__esModule)return value;var ns=Object.create(null);if(__webpack_require__.r(ns),Object.defineProperty(ns,"default",{enumerable:!0,value:value}),2&mode&&"string"!=typeof value)for(var key in value)__webpack_require__.d(ns,key,function(key){return value[key]}.bind(null,key));return ns},__webpack_require__.n=function(module){var getter=module&&module.__esModule?function(){return module.default}:function(){return module};return __webpack_require__.d(getter,"a",getter),getter},__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=50)}([function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,"CONFIG_ALIASES",(function(){return CONFIG_ALIASES})),__webpack_require__.d(__webpack_exports__,"CONFIG_VALID_KEYS",(function(){return CONFIG_VALID_KEYS})),__webpack_require__.d(__webpack_exports__,"SORT_ORDERS",(function(){return SORT_ORDERS})),__webpack_require__.d(__webpack_exports__,"SORT_ORDER_IDS",(function(){return SORT_ORDER_IDS})),__webpack_require__.d(__webpack_exports__,"TYPE_AGGREGATES",(function(){return TYPE_AGGREGATES})),__webpack_require__.d(__webpack_exports__,"FILTER_OPERATORS",(function(){return FILTER_OPERATORS})),__webpack_require__.d(__webpack_exports__,"COLUMN_SEPARATOR_STRING",(function(){return COLUMN_SEPARATOR_STRING})),__webpack_require__.d(__webpack_exports__,"TYPE_FILTERS",(function(){return TYPE_FILTERS}));const CONFIG_ALIASES={row_pivot:"row_pivots","row-pivot":"row_pivots","row-pivots":"row_pivots",col_pivot:"column_pivots",col_pivots:"column_pivots",column_pivot:"column_pivots","column-pivot":"column_pivots","column-pivots":"column_pivots",filters:"filter",sorts:"sort"},CONFIG_VALID_KEYS=["viewport","row_pivots","column_pivots","aggregates","columns","filter","sort","row_pivot_depth","filter_op"],NUMBER_AGGREGATES=["any","avg","count","distinct count","dominant","first by index","last by index","last","high","low","mean","mean by count","median","pct sum parent","pct sum grand total","sum","sum abs","sum not null","unique"],STRING_AGGREGATES=["any","count","distinct count","distinct leaf","dominant","first by index","last by index","last","mean by count","unique"],SORT_ORDERS=["none","asc","desc","col asc","col desc","asc abs","desc abs","col asc abs","col desc abs"],SORT_ORDER_IDS=[2,0,1,0,1,3,4,3,4],TYPE_AGGREGATES={string:STRING_AGGREGATES,float:NUMBER_AGGREGATES,integer:NUMBER_AGGREGATES,boolean:["any","count","distinct count","distinct leaf","dominant","first by index","last by index","last","mean by count","unique","and","or"],datetime:STRING_AGGREGATES,date:STRING_AGGREGATES},FILTER_OPERATORS={lessThan:"<",greaterThan:">",equals:"==",lessThanOrEquals:"<=",greaterThanOrEquals:">=",doesNotEqual:"!=",isNull:"is null",isNotNull:"is not null",isIn:"in",isNotIn:"not in",contains:"contains",bitwiseAnd:"&",bitwiseOr:"|",and:"and",or:"or",beginsWith:"begins with",endsWith:"ends with"},BOOLEAN_FILTERS=[FILTER_OPERATORS.bitwiseAnd,FILTER_OPERATORS.bitwiseOr,FILTER_OPERATORS.equals,FILTER_OPERATORS.doesNotEqual,FILTER_OPERATORS.or,FILTER_OPERATORS.and,FILTER_OPERATORS.isNull,FILTER_OPERATORS.isNotNull],NUMBER_FILTERS=[FILTER_OPERATORS.lessThan,FILTER_OPERATORS.greaterThan,FILTER_OPERATORS.equals,FILTER_OPERATORS.lessThanOrEquals,FILTER_OPERATORS.greaterThanOrEquals,FILTER_OPERATORS.doesNotEqual,FILTER_OPERATORS.isNull,FILTER_OPERATORS.isNotNull],STRING_FILTERS=[FILTER_OPERATORS.equals,FILTER_OPERATORS.contains,FILTER_OPERATORS.doesNotEqual,FILTER_OPERATORS.isIn,FILTER_OPERATORS.isNotIn,FILTER_OPERATORS.beginsWith,FILTER_OPERATORS.endsWith,FILTER_OPERATORS.isNull,FILTER_OPERATORS.isNotNull],DATETIME_FILTERS=[FILTER_OPERATORS.lessThan,FILTER_OPERATORS.greaterThan,FILTER_OPERATORS.equals,FILTER_OPERATORS.lessThanOrEquals,FILTER_OPERATORS.greaterThanOrEquals,FILTER_OPERATORS.doesNotEqual,FILTER_OPERATORS.isNull,FILTER_OPERATORS.isNotNull],COLUMN_SEPARATOR_STRING="|",TYPE_FILTERS={string:STRING_FILTERS,float:NUMBER_FILTERS,integer:NUMBER_FILTERS,boolean:BOOLEAN_FILTERS,datetime:DATETIME_FILTERS,date:DATETIME_FILTERS}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return extract_vector})),__webpack_require__.d(__webpack_exports__,"a",(function(){return extract_map})),__webpack_require__.d(__webpack_exports__,"c",(function(){return fill_vector}));__webpack_require__(11);const extract_vector=function(vector){let extracted=[];for(let i=0;i<vector.size();i++){let item=vector.get(i);extracted.push(item)}return vector.delete(),extracted},extract_map=function(map){let extracted={},keys=map.keys();for(let i=0;i<keys.size();i++){let key=keys.get(i);extracted[key]=map.get(key)}return map.delete(),keys.delete(),extracted},fill_vector=function(vector,arr){for(const elem of arr)vector.push_back(elem);return vector}},function(module,exports,__webpack_require__){var store=__webpack_require__(27)("wks"),uid=__webpack_require__(29),Symbol=__webpack_require__(5).Symbol,USE_SYMBOL="function"==typeof Symbol;(module.exports=function(name){return store[name]||(store[name]=USE_SYMBOL&&Symbol[name]||(USE_SYMBOL?Symbol:uid)("Symbol."+name))}).store=store},function(module,exports,__webpack_require__){var isObject=__webpack_require__(13);module.exports=function(it){if(!isObject(it))throw TypeError(it+" is not an object!");return it}},function(module,exports,__webpack_require__){(function(module){module.exports=function(){"use strict";var hookCallback,some;function hooks(){return hookCallback.apply(null,arguments)}function isArray(input){return input instanceof Array||"[object Array]"===Object.prototype.toString.call(input)}function isObject(input){return null!=input&&"[object Object]"===Object.prototype.toString.call(input)}function isUndefined(input){return void 0===input}function isNumber(input){return"number"==typeof input||"[object Number]"===Object.prototype.toString.call(input)}function isDate(input){return input instanceof Date||"[object Date]"===Object.prototype.toString.call(input)}function map(arr,fn){var i,res=[];for(i=0;i<arr.length;++i)res.push(fn(arr[i],i));return res}function hasOwnProp(a,b){return Object.prototype.hasOwnProperty.call(a,b)}function extend(a,b){for(var i in b)hasOwnProp(b,i)&&(a[i]=b[i]);return hasOwnProp(b,"toString")&&(a.toString=b.toString),hasOwnProp(b,"valueOf")&&(a.valueOf=b.valueOf),a}function createUTC(input,format,locale,strict){return createLocalOrUTC(input,format,locale,strict,!0).utc()}function getParsingFlags(m){return null==m._pf&&(m._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),m._pf}function isValid(m){if(null==m._isValid){var flags=getParsingFlags(m),parsedParts=some.call(flags.parsedDateParts,(function(i){return null!=i})),isNowValid=!isNaN(m._d.getTime())&&flags.overflow<0&&!flags.empty&&!flags.invalidMonth&&!flags.invalidWeekday&&!flags.weekdayMismatch&&!flags.nullInput&&!flags.invalidFormat&&!flags.userInvalidated&&(!flags.meridiem||flags.meridiem&&parsedParts);if(m._strict&&(isNowValid=isNowValid&&0===flags.charsLeftOver&&0===flags.unusedTokens.length&&void 0===flags.bigHour),null!=Object.isFrozen&&Object.isFrozen(m))return isNowValid;m._isValid=isNowValid}return m._isValid}function createInvalid(flags){var m=createUTC(NaN);return null!=flags?extend(getParsingFlags(m),flags):getParsingFlags(m).userInvalidated=!0,m}some=Array.prototype.some?Array.prototype.some:function(fun){for(var t=Object(this),len=t.length>>>0,i=0;i<len;i++)if(i in t&&fun.call(this,t[i],i,t))return!0;return!1};var momentProperties=hooks.momentProperties=[];function copyConfig(to,from){var i,prop,val;if(isUndefined(from._isAMomentObject)||(to._isAMomentObject=from._isAMomentObject),isUndefined(from._i)||(to._i=from._i),isUndefined(from._f)||(to._f=from._f),isUndefined(from._l)||(to._l=from._l),isUndefined(from._strict)||(to._strict=from._strict),isUndefined(from._tzm)||(to._tzm=from._tzm),isUndefined(from._isUTC)||(to._isUTC=from._isUTC),isUndefined(from._offset)||(to._offset=from._offset),isUndefined(from._pf)||(to._pf=getParsingFlags(from)),isUndefined(from._locale)||(to._locale=from._locale),momentProperties.length>0)for(i=0;i<momentProperties.length;i++)isUndefined(val=from[prop=momentProperties[i]])||(to[prop]=val);return to}var updateInProgress=!1;function Moment(config){copyConfig(this,config),this._d=new Date(null!=config._d?config._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===updateInProgress&&(updateInProgress=!0,hooks.updateOffset(this),updateInProgress=!1)}function isMoment(obj){return obj instanceof Moment||null!=obj&&null!=obj._isAMomentObject}function absFloor(number){return number<0?Math.ceil(number)||0:Math.floor(number)}function toInt(argumentForCoercion){var coercedNumber=+argumentForCoercion,value=0;return 0!==coercedNumber&&isFinite(coercedNumber)&&(value=absFloor(coercedNumber)),value}function compareArrays(array1,array2,dontConvert){var i,len=Math.min(array1.length,array2.length),lengthDiff=Math.abs(array1.length-array2.length),diffs=0;for(i=0;i<len;i++)(dontConvert&&array1[i]!==array2[i]||!dontConvert&&toInt(array1[i])!==toInt(array2[i]))&&diffs++;return diffs+lengthDiff}function warn(msg){!1===hooks.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+msg)}function deprecate(msg,fn){var firstTime=!0;return extend((function(){if(null!=hooks.deprecationHandler&&hooks.deprecationHandler(null,msg),firstTime){for(var arg,args=[],i=0;i<arguments.length;i++){if(arg="","object"==typeof arguments[i]){for(var key in arg+="\n["+i+"] ",arguments[0])arg+=key+": "+arguments[0][key]+", ";arg=arg.slice(0,-2)}else arg=arguments[i];args.push(arg)}warn(msg+"\nArguments: "+Array.prototype.slice.call(args).join("")+"\n"+(new Error).stack),firstTime=!1}return fn.apply(this,arguments)}),fn)}var keys,deprecations={};function deprecateSimple(name,msg){null!=hooks.deprecationHandler&&hooks.deprecationHandler(name,msg),deprecations[name]||(warn(msg),deprecations[name]=!0)}function isFunction(input){return input instanceof Function||"[object Function]"===Object.prototype.toString.call(input)}function mergeConfigs(parentConfig,childConfig){var prop,res=extend({},parentConfig);for(prop in childConfig)hasOwnProp(childConfig,prop)&&(isObject(parentConfig[prop])&&isObject(childConfig[prop])?(res[prop]={},extend(res[prop],parentConfig[prop]),extend(res[prop],childConfig[prop])):null!=childConfig[prop]?res[prop]=childConfig[prop]:delete res[prop]);for(prop in parentConfig)hasOwnProp(parentConfig,prop)&&!hasOwnProp(childConfig,prop)&&isObject(parentConfig[prop])&&(res[prop]=extend({},res[prop]));return res}function Locale(config){null!=config&&this.set(config)}hooks.suppressDeprecationWarnings=!1,hooks.deprecationHandler=null,keys=Object.keys?Object.keys:function(obj){var i,res=[];for(i in obj)hasOwnProp(obj,i)&&res.push(i);return res};var aliases={};function addUnitAlias(unit,shorthand){var lowerCase=unit.toLowerCase();aliases[lowerCase]=aliases[lowerCase+"s"]=aliases[shorthand]=unit}function normalizeUnits(units){return"string"==typeof units?aliases[units]||aliases[units.toLowerCase()]:void 0}function normalizeObjectUnits(inputObject){var normalizedProp,prop,normalizedInput={};for(prop in inputObject)hasOwnProp(inputObject,prop)&&(normalizedProp=normalizeUnits(prop))&&(normalizedInput[normalizedProp]=inputObject[prop]);return normalizedInput}var priorities={};function addUnitPriority(unit,priority){priorities[unit]=priority}function zeroFill(number,targetLength,forceSign){var absNumber=""+Math.abs(number),zerosToFill=targetLength-absNumber.length;return(number>=0?forceSign?"+":"":"-")+Math.pow(10,Math.max(0,zerosToFill)).toString().substr(1)+absNumber}var formattingTokens=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,localFormattingTokens=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,formatFunctions={},formatTokenFunctions={};function addFormatToken(token,padded,ordinal,callback){var func=callback;"string"==typeof callback&&(func=function(){return this[callback]()}),token&&(formatTokenFunctions[token]=func),padded&&(formatTokenFunctions[padded[0]]=function(){return zeroFill(func.apply(this,arguments),padded[1],padded[2])}),ordinal&&(formatTokenFunctions[ordinal]=function(){return this.localeData().ordinal(func.apply(this,arguments),token)})}function formatMoment(m,format){return m.isValid()?(format=expandFormat(format,m.localeData()),formatFunctions[format]=formatFunctions[format]||function(format){var i,length,input,array=format.match(formattingTokens);for(i=0,length=array.length;i<length;i++)formatTokenFunctions[array[i]]?array[i]=formatTokenFunctions[array[i]]:array[i]=(input=array[i]).match(/\[[\s\S]/)?input.replace(/^\[|\]$/g,""):input.replace(/\\/g,"");return function(mom){var i,output="";for(i=0;i<length;i++)output+=isFunction(array[i])?array[i].call(mom,format):array[i];return output}}(format),formatFunctions[format](m)):m.localeData().invalidDate()}function expandFormat(format,locale){var i=5;function replaceLongDateFormatTokens(input){return locale.longDateFormat(input)||input}for(localFormattingTokens.lastIndex=0;i>=0&&localFormattingTokens.test(format);)format=format.replace(localFormattingTokens,replaceLongDateFormatTokens),localFormattingTokens.lastIndex=0,i-=1;return format}var match1=/\d/,match2=/\d\d/,match3=/\d{3}/,match4=/\d{4}/,match6=/[+-]?\d{6}/,match1to2=/\d\d?/,match3to4=/\d\d\d\d?/,match5to6=/\d\d\d\d\d\d?/,match1to3=/\d{1,3}/,match1to4=/\d{1,4}/,match1to6=/[+-]?\d{1,6}/,matchUnsigned=/\d+/,matchSigned=/[+-]?\d+/,matchOffset=/Z|[+-]\d\d:?\d\d/gi,matchShortOffset=/Z|[+-]\d\d(?::?\d\d)?/gi,matchWord=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,regexes={};function addRegexToken(token,regex,strictRegex){regexes[token]=isFunction(regex)?regex:function(isStrict,localeData){return isStrict&&strictRegex?strictRegex:regex}}function getParseRegexForToken(token,config){return hasOwnProp(regexes,token)?regexes[token](config._strict,config._locale):new RegExp(regexEscape(token.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(matched,p1,p2,p3,p4){return p1||p2||p3||p4}))))}function regexEscape(s){return s.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var tokens={};function addParseToken(token,callback){var i,func=callback;for("string"==typeof token&&(token=[token]),isNumber(callback)&&(func=function(input,array){array[callback]=toInt(input)}),i=0;i<token.length;i++)tokens[token[i]]=func}function addWeekParseToken(token,callback){addParseToken(token,(function(input,array,config,token){config._w=config._w||{},callback(input,config._w,config,token)}))}function addTimeToArrayFromToken(token,input,config){null!=input&&hasOwnProp(tokens,token)&&tokens[token](input,config._a,config,token)}var YEAR=0,MONTH=1,DATE=2,HOUR=3,MINUTE=4,SECOND=5,MILLISECOND=6,WEEK=7,WEEKDAY=8;function daysInYear(year){return isLeapYear(year)?366:365}function isLeapYear(year){return year%4==0&&year%100!=0||year%400==0}addFormatToken("Y",0,0,(function(){var y=this.year();return y<=9999?""+y:"+"+y})),addFormatToken(0,["YY",2],0,(function(){return this.year()%100})),addFormatToken(0,["YYYY",4],0,"year"),addFormatToken(0,["YYYYY",5],0,"year"),addFormatToken(0,["YYYYYY",6,!0],0,"year"),addUnitAlias("year","y"),addUnitPriority("year",1),addRegexToken("Y",matchSigned),addRegexToken("YY",match1to2,match2),addRegexToken("YYYY",match1to4,match4),addRegexToken("YYYYY",match1to6,match6),addRegexToken("YYYYYY",match1to6,match6),addParseToken(["YYYYY","YYYYYY"],YEAR),addParseToken("YYYY",(function(input,array){array[YEAR]=2===input.length?hooks.parseTwoDigitYear(input):toInt(input)})),addParseToken("YY",(function(input,array){array[YEAR]=hooks.parseTwoDigitYear(input)})),addParseToken("Y",(function(input,array){array[YEAR]=parseInt(input,10)})),hooks.parseTwoDigitYear=function(input){return toInt(input)+(toInt(input)>68?1900:2e3)};var indexOf,getSetYear=makeGetSet("FullYear",!0);function makeGetSet(unit,keepTime){return function(value){return null!=value?(set$1(this,unit,value),hooks.updateOffset(this,keepTime),this):get(this,unit)}}function get(mom,unit){return mom.isValid()?mom._d["get"+(mom._isUTC?"UTC":"")+unit]():NaN}function set$1(mom,unit,value){mom.isValid()&&!isNaN(value)&&("FullYear"===unit&&isLeapYear(mom.year())&&1===mom.month()&&29===mom.date()?mom._d["set"+(mom._isUTC?"UTC":"")+unit](value,mom.month(),daysInMonth(value,mom.month())):mom._d["set"+(mom._isUTC?"UTC":"")+unit](value))}function daysInMonth(year,month){if(isNaN(year)||isNaN(month))return NaN;var x,modMonth=(month%(x=12)+x)%x;return year+=(month-modMonth)/12,1===modMonth?isLeapYear(year)?29:28:31-modMonth%7%2}indexOf=Array.prototype.indexOf?Array.prototype.indexOf:function(o){var i;for(i=0;i<this.length;++i)if(this[i]===o)return i;return-1},addFormatToken("M",["MM",2],"Mo",(function(){return this.month()+1})),addFormatToken("MMM",0,0,(function(format){return this.localeData().monthsShort(this,format)})),addFormatToken("MMMM",0,0,(function(format){return this.localeData().months(this,format)})),addUnitAlias("month","M"),addUnitPriority("month",8),addRegexToken("M",match1to2),addRegexToken("MM",match1to2,match2),addRegexToken("MMM",(function(isStrict,locale){return locale.monthsShortRegex(isStrict)})),addRegexToken("MMMM",(function(isStrict,locale){return locale.monthsRegex(isStrict)})),addParseToken(["M","MM"],(function(input,array){array[MONTH]=toInt(input)-1})),addParseToken(["MMM","MMMM"],(function(input,array,config,token){var month=config._locale.monthsParse(input,token,config._strict);null!=month?array[MONTH]=month:getParsingFlags(config).invalidMonth=input}));var MONTHS_IN_FORMAT=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,defaultLocaleMonths="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),defaultLocaleMonthsShort="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function handleStrictParse(monthName,format,strict){var i,ii,mom,llc=monthName.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)mom=createUTC([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(mom,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(mom,"").toLocaleLowerCase();return strict?"MMM"===format?-1!==(ii=indexOf.call(this._shortMonthsParse,llc))?ii:null:-1!==(ii=indexOf.call(this._longMonthsParse,llc))?ii:null:"MMM"===format?-1!==(ii=indexOf.call(this._shortMonthsParse,llc))?ii:-1!==(ii=indexOf.call(this._longMonthsParse,llc))?ii:null:-1!==(ii=indexOf.call(this._longMonthsParse,llc))?ii:-1!==(ii=indexOf.call(this._shortMonthsParse,llc))?ii:null}function setMonth(mom,value){var dayOfMonth;if(!mom.isValid())return mom;if("string"==typeof value)if(/^\d+$/.test(value))value=toInt(value);else if(!isNumber(value=mom.localeData().monthsParse(value)))return mom;return dayOfMonth=Math.min(mom.date(),daysInMonth(mom.year(),value)),mom._d["set"+(mom._isUTC?"UTC":"")+"Month"](value,dayOfMonth),mom}function getSetMonth(value){return null!=value?(setMonth(this,value),hooks.updateOffset(this,!0),this):get(this,"Month")}var defaultMonthsShortRegex=matchWord,defaultMonthsRegex=matchWord;function computeMonthsParse(){function cmpLenRev(a,b){return b.length-a.length}var i,mom,shortPieces=[],longPieces=[],mixedPieces=[];for(i=0;i<12;i++)mom=createUTC([2e3,i]),shortPieces.push(this.monthsShort(mom,"")),longPieces.push(this.months(mom,"")),mixedPieces.push(this.months(mom,"")),mixedPieces.push(this.monthsShort(mom,""));for(shortPieces.sort(cmpLenRev),longPieces.sort(cmpLenRev),mixedPieces.sort(cmpLenRev),i=0;i<12;i++)shortPieces[i]=regexEscape(shortPieces[i]),longPieces[i]=regexEscape(longPieces[i]);for(i=0;i<24;i++)mixedPieces[i]=regexEscape(mixedPieces[i]);this._monthsRegex=new RegExp("^("+mixedPieces.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+longPieces.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+shortPieces.join("|")+")","i")}function createDate(y,m,d,h,M,s,ms){var date;return y<100&&y>=0?(date=new Date(y+400,m,d,h,M,s,ms),isFinite(date.getFullYear())&&date.setFullYear(y)):date=new Date(y,m,d,h,M,s,ms),date}function createUTCDate(y){var date;if(y<100&&y>=0){var args=Array.prototype.slice.call(arguments);args[0]=y+400,date=new Date(Date.UTC.apply(null,args)),isFinite(date.getUTCFullYear())&&date.setUTCFullYear(y)}else date=new Date(Date.UTC.apply(null,arguments));return date}function firstWeekOffset(year,dow,doy){var fwd=7+dow-doy;return-(7+createUTCDate(year,0,fwd).getUTCDay()-dow)%7+fwd-1}function dayOfYearFromWeeks(year,week,weekday,dow,doy){var resYear,resDayOfYear,dayOfYear=1+7*(week-1)+(7+weekday-dow)%7+firstWeekOffset(year,dow,doy);return dayOfYear<=0?resDayOfYear=daysInYear(resYear=year-1)+dayOfYear:dayOfYear>daysInYear(year)?(resYear=year+1,resDayOfYear=dayOfYear-daysInYear(year)):(resYear=year,resDayOfYear=dayOfYear),{year:resYear,dayOfYear:resDayOfYear}}function weekOfYear(mom,dow,doy){var resWeek,resYear,weekOffset=firstWeekOffset(mom.year(),dow,doy),week=Math.floor((mom.dayOfYear()-weekOffset-1)/7)+1;return week<1?resWeek=week+weeksInYear(resYear=mom.year()-1,dow,doy):week>weeksInYear(mom.year(),dow,doy)?(resWeek=week-weeksInYear(mom.year(),dow,doy),resYear=mom.year()+1):(resYear=mom.year(),resWeek=week),{week:resWeek,year:resYear}}function weeksInYear(year,dow,doy){var weekOffset=firstWeekOffset(year,dow,doy),weekOffsetNext=firstWeekOffset(year+1,dow,doy);return(daysInYear(year)-weekOffset+weekOffsetNext)/7}function shiftWeekdays(ws,n){return ws.slice(n,7).concat(ws.slice(0,n))}addFormatToken("w",["ww",2],"wo","week"),addFormatToken("W",["WW",2],"Wo","isoWeek"),addUnitAlias("week","w"),addUnitAlias("isoWeek","W"),addUnitPriority("week",5),addUnitPriority("isoWeek",5),addRegexToken("w",match1to2),addRegexToken("ww",match1to2,match2),addRegexToken("W",match1to2),addRegexToken("WW",match1to2,match2),addWeekParseToken(["w","ww","W","WW"],(function(input,week,config,token){week[token.substr(0,1)]=toInt(input)})),addFormatToken("d",0,"do","day"),addFormatToken("dd",0,0,(function(format){return this.localeData().weekdaysMin(this,format)})),addFormatToken("ddd",0,0,(function(format){return this.localeData().weekdaysShort(this,format)})),addFormatToken("dddd",0,0,(function(format){return this.localeData().weekdays(this,format)})),addFormatToken("e",0,0,"weekday"),addFormatToken("E",0,0,"isoWeekday"),addUnitAlias("day","d"),addUnitAlias("weekday","e"),addUnitAlias("isoWeekday","E"),addUnitPriority("day",11),addUnitPriority("weekday",11),addUnitPriority("isoWeekday",11),addRegexToken("d",match1to2),addRegexToken("e",match1to2),addRegexToken("E",match1to2),addRegexToken("dd",(function(isStrict,locale){return locale.weekdaysMinRegex(isStrict)})),addRegexToken("ddd",(function(isStrict,locale){return locale.weekdaysShortRegex(isStrict)})),addRegexToken("dddd",(function(isStrict,locale){return locale.weekdaysRegex(isStrict)})),addWeekParseToken(["dd","ddd","dddd"],(function(input,week,config,token){var weekday=config._locale.weekdaysParse(input,token,config._strict);null!=weekday?week.d=weekday:getParsingFlags(config).invalidWeekday=input})),addWeekParseToken(["d","e","E"],(function(input,week,config,token){week[token]=toInt(input)}));var defaultLocaleWeekdays="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),defaultLocaleWeekdaysShort="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),defaultLocaleWeekdaysMin="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function handleStrictParse$1(weekdayName,format,strict){var i,ii,mom,llc=weekdayName.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)mom=createUTC([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(mom,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(mom,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(mom,"").toLocaleLowerCase();return strict?"dddd"===format?-1!==(ii=indexOf.call(this._weekdaysParse,llc))?ii:null:"ddd"===format?-1!==(ii=indexOf.call(this._shortWeekdaysParse,llc))?ii:null:-1!==(ii=indexOf.call(this._minWeekdaysParse,llc))?ii:null:"dddd"===format?-1!==(ii=indexOf.call(this._weekdaysParse,llc))?ii:-1!==(ii=indexOf.call(this._shortWeekdaysParse,llc))?ii:-1!==(ii=indexOf.call(this._minWeekdaysParse,llc))?ii:null:"ddd"===format?-1!==(ii=indexOf.call(this._shortWeekdaysParse,llc))?ii:-1!==(ii=indexOf.call(this._weekdaysParse,llc))?ii:-1!==(ii=indexOf.call(this._minWeekdaysParse,llc))?ii:null:-1!==(ii=indexOf.call(this._minWeekdaysParse,llc))?ii:-1!==(ii=indexOf.call(this._weekdaysParse,llc))?ii:-1!==(ii=indexOf.call(this._shortWeekdaysParse,llc))?ii:null}var defaultWeekdaysRegex=matchWord,defaultWeekdaysShortRegex=matchWord,defaultWeekdaysMinRegex=matchWord;function computeWeekdaysParse(){function cmpLenRev(a,b){return b.length-a.length}var i,mom,minp,shortp,longp,minPieces=[],shortPieces=[],longPieces=[],mixedPieces=[];for(i=0;i<7;i++)mom=createUTC([2e3,1]).day(i),minp=this.weekdaysMin(mom,""),shortp=this.weekdaysShort(mom,""),longp=this.weekdays(mom,""),minPieces.push(minp),shortPieces.push(shortp),longPieces.push(longp),mixedPieces.push(minp),mixedPieces.push(shortp),mixedPieces.push(longp);for(minPieces.sort(cmpLenRev),shortPieces.sort(cmpLenRev),longPieces.sort(cmpLenRev),mixedPieces.sort(cmpLenRev),i=0;i<7;i++)shortPieces[i]=regexEscape(shortPieces[i]),longPieces[i]=regexEscape(longPieces[i]),mixedPieces[i]=regexEscape(mixedPieces[i]);this._weekdaysRegex=new RegExp("^("+mixedPieces.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+longPieces.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+shortPieces.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+minPieces.join("|")+")","i")}function hFormat(){return this.hours()%12||12}function meridiem(token,lowercase){addFormatToken(token,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),lowercase)}))}function matchMeridiem(isStrict,locale){return locale._meridiemParse}addFormatToken("H",["HH",2],0,"hour"),addFormatToken("h",["hh",2],0,hFormat),addFormatToken("k",["kk",2],0,(function(){return this.hours()||24})),addFormatToken("hmm",0,0,(function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)})),addFormatToken("hmmss",0,0,(function(){return""+hFormat.apply(this)+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)})),addFormatToken("Hmm",0,0,(function(){return""+this.hours()+zeroFill(this.minutes(),2)})),addFormatToken("Hmmss",0,0,(function(){return""+this.hours()+zeroFill(this.minutes(),2)+zeroFill(this.seconds(),2)})),meridiem("a",!0),meridiem("A",!1),addUnitAlias("hour","h"),addUnitPriority("hour",13),addRegexToken("a",matchMeridiem),addRegexToken("A",matchMeridiem),addRegexToken("H",match1to2),addRegexToken("h",match1to2),addRegexToken("k",match1to2),addRegexToken("HH",match1to2,match2),addRegexToken("hh",match1to2,match2),addRegexToken("kk",match1to2,match2),addRegexToken("hmm",match3to4),addRegexToken("hmmss",match5to6),addRegexToken("Hmm",match3to4),addRegexToken("Hmmss",match5to6),addParseToken(["H","HH"],HOUR),addParseToken(["k","kk"],(function(input,array,config){var kInput=toInt(input);array[HOUR]=24===kInput?0:kInput})),addParseToken(["a","A"],(function(input,array,config){config._isPm=config._locale.isPM(input),config._meridiem=input})),addParseToken(["h","hh"],(function(input,array,config){array[HOUR]=toInt(input),getParsingFlags(config).bigHour=!0})),addParseToken("hmm",(function(input,array,config){var pos=input.length-2;array[HOUR]=toInt(input.substr(0,pos)),array[MINUTE]=toInt(input.substr(pos)),getParsingFlags(config).bigHour=!0})),addParseToken("hmmss",(function(input,array,config){var pos1=input.length-4,pos2=input.length-2;array[HOUR]=toInt(input.substr(0,pos1)),array[MINUTE]=toInt(input.substr(pos1,2)),array[SECOND]=toInt(input.substr(pos2)),getParsingFlags(config).bigHour=!0})),addParseToken("Hmm",(function(input,array,config){var pos=input.length-2;array[HOUR]=toInt(input.substr(0,pos)),array[MINUTE]=toInt(input.substr(pos))})),addParseToken("Hmmss",(function(input,array,config){var pos1=input.length-4,pos2=input.length-2;array[HOUR]=toInt(input.substr(0,pos1)),array[MINUTE]=toInt(input.substr(pos1,2)),array[SECOND]=toInt(input.substr(pos2))}));var globalLocale,getSetHour=makeGetSet("Hours",!0),baseConfig={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:defaultLocaleMonths,monthsShort:defaultLocaleMonthsShort,week:{dow:0,doy:6},weekdays:defaultLocaleWeekdays,weekdaysMin:defaultLocaleWeekdaysMin,weekdaysShort:defaultLocaleWeekdaysShort,meridiemParse:/[ap]\.?m?\.?/i},locales={},localeFamilies={};function normalizeLocale(key){return key?key.toLowerCase().replace("_","-"):key}function loadLocale(name){var oldLocale=null;if(!locales[name]&&void 0!==module&&module&&module.exports)try{oldLocale=globalLocale._abbr,__webpack_require__(80)("./"+name),getSetGlobalLocale(oldLocale)}catch(e){}return locales[name]}function getSetGlobalLocale(key,values){var data;return key&&((data=isUndefined(values)?getLocale(key):defineLocale(key,values))?globalLocale=data:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+key+" not found. Did you forget to load it?")),globalLocale._abbr}function defineLocale(name,config){if(null!==config){var locale,parentConfig=baseConfig;if(config.abbr=name,null!=locales[name])deprecateSimple("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),parentConfig=locales[name]._config;else if(null!=config.parentLocale)if(null!=locales[config.parentLocale])parentConfig=locales[config.parentLocale]._config;else{if(null==(locale=loadLocale(config.parentLocale)))return localeFamilies[config.parentLocale]||(localeFamilies[config.parentLocale]=[]),localeFamilies[config.parentLocale].push({name:name,config:config}),null;parentConfig=locale._config}return locales[name]=new Locale(mergeConfigs(parentConfig,config)),localeFamilies[name]&&localeFamilies[name].forEach((function(x){defineLocale(x.name,x.config)})),getSetGlobalLocale(name),locales[name]}return delete locales[name],null}function getLocale(key){var locale;if(key&&key._locale&&key._locale._abbr&&(key=key._locale._abbr),!key)return globalLocale;if(!isArray(key)){if(locale=loadLocale(key))return locale;key=[key]}return function(names){for(var j,next,locale,split,i=0;i<names.length;){for(j=(split=normalizeLocale(names[i]).split("-")).length,next=(next=normalizeLocale(names[i+1]))?next.split("-"):null;j>0;){if(locale=loadLocale(split.slice(0,j).join("-")))return locale;if(next&&next.length>=j&&compareArrays(split,next,!0)>=j-1)break;j--}i++}return globalLocale}(key)}function checkOverflow(m){var overflow,a=m._a;return a&&-2===getParsingFlags(m).overflow&&(overflow=a[MONTH]<0||a[MONTH]>11?MONTH:a[DATE]<1||a[DATE]>daysInMonth(a[YEAR],a[MONTH])?DATE:a[HOUR]<0||a[HOUR]>24||24===a[HOUR]&&(0!==a[MINUTE]||0!==a[SECOND]||0!==a[MILLISECOND])?HOUR:a[MINUTE]<0||a[MINUTE]>59?MINUTE:a[SECOND]<0||a[SECOND]>59?SECOND:a[MILLISECOND]<0||a[MILLISECOND]>999?MILLISECOND:-1,getParsingFlags(m)._overflowDayOfYear&&(overflow<YEAR||overflow>DATE)&&(overflow=DATE),getParsingFlags(m)._overflowWeeks&&-1===overflow&&(overflow=WEEK),getParsingFlags(m)._overflowWeekday&&-1===overflow&&(overflow=WEEKDAY),getParsingFlags(m).overflow=overflow),m}function defaults(a,b,c){return null!=a?a:null!=b?b:c}function configFromArray(config){var i,date,currentDate,expectedWeekday,yearToUse,input=[];if(!config._d){for(currentDate=function(config){var nowValue=new Date(hooks.now());return config._useUTC?[nowValue.getUTCFullYear(),nowValue.getUTCMonth(),nowValue.getUTCDate()]:[nowValue.getFullYear(),nowValue.getMonth(),nowValue.getDate()]}(config),config._w&&null==config._a[DATE]&&null==config._a[MONTH]&&function(config){var w,weekYear,week,weekday,dow,doy,temp,weekdayOverflow;if(null!=(w=config._w).GG||null!=w.W||null!=w.E)dow=1,doy=4,weekYear=defaults(w.GG,config._a[YEAR],weekOfYear(createLocal(),1,4).year),week=defaults(w.W,1),((weekday=defaults(w.E,1))<1||weekday>7)&&(weekdayOverflow=!0);else{dow=config._locale._week.dow,doy=config._locale._week.doy;var curWeek=weekOfYear(createLocal(),dow,doy);weekYear=defaults(w.gg,config._a[YEAR],curWeek.year),week=defaults(w.w,curWeek.week),null!=w.d?((weekday=w.d)<0||weekday>6)&&(weekdayOverflow=!0):null!=w.e?(weekday=w.e+dow,(w.e<0||w.e>6)&&(weekdayOverflow=!0)):weekday=dow}week<1||week>weeksInYear(weekYear,dow,doy)?getParsingFlags(config)._overflowWeeks=!0:null!=weekdayOverflow?getParsingFlags(config)._overflowWeekday=!0:(temp=dayOfYearFromWeeks(weekYear,week,weekday,dow,doy),config._a[YEAR]=temp.year,config._dayOfYear=temp.dayOfYear)}(config),null!=config._dayOfYear&&(yearToUse=defaults(config._a[YEAR],currentDate[YEAR]),(config._dayOfYear>daysInYear(yearToUse)||0===config._dayOfYear)&&(getParsingFlags(config)._overflowDayOfYear=!0),date=createUTCDate(yearToUse,0,config._dayOfYear),config._a[MONTH]=date.getUTCMonth(),config._a[DATE]=date.getUTCDate()),i=0;i<3&&null==config._a[i];++i)config._a[i]=input[i]=currentDate[i];for(;i<7;i++)config._a[i]=input[i]=null==config._a[i]?2===i?1:0:config._a[i];24===config._a[HOUR]&&0===config._a[MINUTE]&&0===config._a[SECOND]&&0===config._a[MILLISECOND]&&(config._nextDay=!0,config._a[HOUR]=0),config._d=(config._useUTC?createUTCDate:createDate).apply(null,input),expectedWeekday=config._useUTC?config._d.getUTCDay():config._d.getDay(),null!=config._tzm&&config._d.setUTCMinutes(config._d.getUTCMinutes()-config._tzm),config._nextDay&&(config._a[HOUR]=24),config._w&&void 0!==config._w.d&&config._w.d!==expectedWeekday&&(getParsingFlags(config).weekdayMismatch=!0)}}var extendedIsoRegex=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,basicIsoRegex=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,tzRegex=/Z|[+-]\d\d(?::?\d\d)?/,isoDates=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],isoTimes=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],aspNetJsonRegex=/^\/?Date\((\-?\d+)/i;function configFromISO(config){var i,l,allowTime,dateFormat,timeFormat,tzFormat,string=config._i,match=extendedIsoRegex.exec(string)||basicIsoRegex.exec(string);if(match){for(getParsingFlags(config).iso=!0,i=0,l=isoDates.length;i<l;i++)if(isoDates[i][1].exec(match[1])){dateFormat=isoDates[i][0],allowTime=!1!==isoDates[i][2];break}if(null==dateFormat)return void(config._isValid=!1);if(match[3]){for(i=0,l=isoTimes.length;i<l;i++)if(isoTimes[i][1].exec(match[3])){timeFormat=(match[2]||" ")+isoTimes[i][0];break}if(null==timeFormat)return void(config._isValid=!1)}if(!allowTime&&null!=timeFormat)return void(config._isValid=!1);if(match[4]){if(!tzRegex.exec(match[4]))return void(config._isValid=!1);tzFormat="Z"}config._f=dateFormat+(timeFormat||"")+(tzFormat||""),configFromStringAndFormat(config)}else config._isValid=!1}var rfc2822=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function untruncateYear(yearStr){var year=parseInt(yearStr,10);return year<=49?2e3+year:year<=999?1900+year:year}var obsOffsets={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function configFromRFC2822(config){var yearStr,monthStr,dayStr,hourStr,minuteStr,secondStr,result,match=rfc2822.exec(config._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(match){var parsedArray=(yearStr=match[4],monthStr=match[3],dayStr=match[2],hourStr=match[5],minuteStr=match[6],secondStr=match[7],result=[untruncateYear(yearStr),defaultLocaleMonthsShort.indexOf(monthStr),parseInt(dayStr,10),parseInt(hourStr,10),parseInt(minuteStr,10)],secondStr&&result.push(parseInt(secondStr,10)),result);if(!function(weekdayStr,parsedInput,config){return!weekdayStr||defaultLocaleWeekdaysShort.indexOf(weekdayStr)===new Date(parsedInput[0],parsedInput[1],parsedInput[2]).getDay()||(getParsingFlags(config).weekdayMismatch=!0,config._isValid=!1,!1)}(match[1],parsedArray,config))return;config._a=parsedArray,config._tzm=function(obsOffset,militaryOffset,numOffset){if(obsOffset)return obsOffsets[obsOffset];if(militaryOffset)return 0;var hm=parseInt(numOffset,10),m=hm%100;return(hm-m)/100*60+m}(match[8],match[9],match[10]),config._d=createUTCDate.apply(null,config._a),config._d.setUTCMinutes(config._d.getUTCMinutes()-config._tzm),getParsingFlags(config).rfc2822=!0}else config._isValid=!1}function configFromStringAndFormat(config){if(config._f!==hooks.ISO_8601)if(config._f!==hooks.RFC_2822){config._a=[],getParsingFlags(config).empty=!0;var i,parsedInput,tokens,token,skipped,string=""+config._i,stringLength=string.length,totalParsedInputLength=0;for(tokens=expandFormat(config._f,config._locale).match(formattingTokens)||[],i=0;i<tokens.length;i++)token=tokens[i],(parsedInput=(string.match(getParseRegexForToken(token,config))||[])[0])&&((skipped=string.substr(0,string.indexOf(parsedInput))).length>0&&getParsingFlags(config).unusedInput.push(skipped),string=string.slice(string.indexOf(parsedInput)+parsedInput.length),totalParsedInputLength+=parsedInput.length),formatTokenFunctions[token]?(parsedInput?getParsingFlags(config).empty=!1:getParsingFlags(config).unusedTokens.push(token),addTimeToArrayFromToken(token,parsedInput,config)):config._strict&&!parsedInput&&getParsingFlags(config).unusedTokens.push(token);getParsingFlags(config).charsLeftOver=stringLength-totalParsedInputLength,string.length>0&&getParsingFlags(config).unusedInput.push(string),config._a[HOUR]<=12&&!0===getParsingFlags(config).bigHour&&config._a[HOUR]>0&&(getParsingFlags(config).bigHour=void 0),getParsingFlags(config).parsedDateParts=config._a.slice(0),getParsingFlags(config).meridiem=config._meridiem,config._a[HOUR]=function(locale,hour,meridiem){var isPm;return null==meridiem?hour:null!=locale.meridiemHour?locale.meridiemHour(hour,meridiem):null!=locale.isPM?((isPm=locale.isPM(meridiem))&&hour<12&&(hour+=12),isPm||12!==hour||(hour=0),hour):hour}(config._locale,config._a[HOUR],config._meridiem),configFromArray(config),checkOverflow(config)}else configFromRFC2822(config);else configFromISO(config)}function prepareConfig(config){var input=config._i,format=config._f;return config._locale=config._locale||getLocale(config._l),null===input||void 0===format&&""===input?createInvalid({nullInput:!0}):("string"==typeof input&&(config._i=input=config._locale.preparse(input)),isMoment(input)?new Moment(checkOverflow(input)):(isDate(input)?config._d=input:isArray(format)?function(config){var tempConfig,bestMoment,scoreToBeat,i,currentScore;if(0===config._f.length)return getParsingFlags(config).invalidFormat=!0,void(config._d=new Date(NaN));for(i=0;i<config._f.length;i++)currentScore=0,tempConfig=copyConfig({},config),null!=config._useUTC&&(tempConfig._useUTC=config._useUTC),tempConfig._f=config._f[i],configFromStringAndFormat(tempConfig),isValid(tempConfig)&&(currentScore+=getParsingFlags(tempConfig).charsLeftOver,currentScore+=10*getParsingFlags(tempConfig).unusedTokens.length,getParsingFlags(tempConfig).score=currentScore,(null==scoreToBeat||currentScore<scoreToBeat)&&(scoreToBeat=currentScore,bestMoment=tempConfig));extend(config,bestMoment||tempConfig)}(config):format?configFromStringAndFormat(config):function(config){var input=config._i;isUndefined(input)?config._d=new Date(hooks.now()):isDate(input)?config._d=new Date(input.valueOf()):"string"==typeof input?function(config){var matched=aspNetJsonRegex.exec(config._i);null===matched?(configFromISO(config),!1===config._isValid&&(delete config._isValid,configFromRFC2822(config),!1===config._isValid&&(delete config._isValid,hooks.createFromInputFallback(config)))):config._d=new Date(+matched[1])}(config):isArray(input)?(config._a=map(input.slice(0),(function(obj){return parseInt(obj,10)})),configFromArray(config)):isObject(input)?function(config){if(!config._d){var i=normalizeObjectUnits(config._i);config._a=map([i.year,i.month,i.day||i.date,i.hour,i.minute,i.second,i.millisecond],(function(obj){return obj&&parseInt(obj,10)})),configFromArray(config)}}(config):isNumber(input)?config._d=new Date(input):hooks.createFromInputFallback(config)}(config),isValid(config)||(config._d=null),config))}function createLocalOrUTC(input,format,locale,strict,isUTC){var res,c={};return!0!==locale&&!1!==locale||(strict=locale,locale=void 0),(isObject(input)&&function(obj){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(obj).length;var k;for(k in obj)if(obj.hasOwnProperty(k))return!1;return!0}(input)||isArray(input)&&0===input.length)&&(input=void 0),c._isAMomentObject=!0,c._useUTC=c._isUTC=isUTC,c._l=locale,c._i=input,c._f=format,c._strict=strict,(res=new Moment(checkOverflow(prepareConfig(c))))._nextDay&&(res.add(1,"d"),res._nextDay=void 0),res}function createLocal(input,format,locale,strict){return createLocalOrUTC(input,format,locale,strict,!1)}hooks.createFromInputFallback=deprecate("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(config){config._d=new Date(config._i+(config._useUTC?" UTC":""))})),hooks.ISO_8601=function(){},hooks.RFC_2822=function(){};var prototypeMin=deprecate("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var other=createLocal.apply(null,arguments);return this.isValid()&&other.isValid()?other<this?this:other:createInvalid()})),prototypeMax=deprecate("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var other=createLocal.apply(null,arguments);return this.isValid()&&other.isValid()?other>this?this:other:createInvalid()}));function pickBy(fn,moments){var res,i;if(1===moments.length&&isArray(moments[0])&&(moments=moments[0]),!moments.length)return createLocal();for(res=moments[0],i=1;i<moments.length;++i)moments[i].isValid()&&!moments[i][fn](res)||(res=moments[i]);return res}var ordering=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Duration(duration){var normalizedInput=normalizeObjectUnits(duration),years=normalizedInput.year||0,quarters=normalizedInput.quarter||0,months=normalizedInput.month||0,weeks=normalizedInput.week||normalizedInput.isoWeek||0,days=normalizedInput.day||0,hours=normalizedInput.hour||0,minutes=normalizedInput.minute||0,seconds=normalizedInput.second||0,milliseconds=normalizedInput.millisecond||0;this._isValid=function(m){for(var key in m)if(-1===indexOf.call(ordering,key)||null!=m[key]&&isNaN(m[key]))return!1;for(var unitHasDecimal=!1,i=0;i<ordering.length;++i)if(m[ordering[i]]){if(unitHasDecimal)return!1;parseFloat(m[ordering[i]])!==toInt(m[ordering[i]])&&(unitHasDecimal=!0)}return!0}(normalizedInput),this._milliseconds=+milliseconds+1e3*seconds+6e4*minutes+1e3*hours*60*60,this._days=+days+7*weeks,this._months=+months+3*quarters+12*years,this._data={},this._locale=getLocale(),this._bubble()}function isDuration(obj){return obj instanceof Duration}function absRound(number){return number<0?-1*Math.round(-1*number):Math.round(number)}function offset(token,separator){addFormatToken(token,0,0,(function(){var offset=this.utcOffset(),sign="+";return offset<0&&(offset=-offset,sign="-"),sign+zeroFill(~~(offset/60),2)+separator+zeroFill(~~offset%60,2)}))}offset("Z",":"),offset("ZZ",""),addRegexToken("Z",matchShortOffset),addRegexToken("ZZ",matchShortOffset),addParseToken(["Z","ZZ"],(function(input,array,config){config._useUTC=!0,config._tzm=offsetFromString(matchShortOffset,input)}));var chunkOffset=/([\+\-]|\d\d)/gi;function offsetFromString(matcher,string){var matches=(string||"").match(matcher);if(null===matches)return null;var parts=((matches[matches.length-1]||[])+"").match(chunkOffset)||["-",0,0],minutes=60*parts[1]+toInt(parts[2]);return 0===minutes?0:"+"===parts[0]?minutes:-minutes}function cloneWithOffset(input,model){var res,diff;return model._isUTC?(res=model.clone(),diff=(isMoment(input)||isDate(input)?input.valueOf():createLocal(input).valueOf())-res.valueOf(),res._d.setTime(res._d.valueOf()+diff),hooks.updateOffset(res,!1),res):createLocal(input).local()}function getDateOffset(m){return 15*-Math.round(m._d.getTimezoneOffset()/15)}function isUtc(){return!!this.isValid()&&this._isUTC&&0===this._offset}hooks.updateOffset=function(){};var aspNetRegex=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,isoRegex=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function createDuration(input,key){var sign,ret,diffRes,base,other,res,duration=input,match=null;return isDuration(input)?duration={ms:input._milliseconds,d:input._days,M:input._months}:isNumber(input)?(duration={},key?duration[key]=input:duration.milliseconds=input):(match=aspNetRegex.exec(input))?(sign="-"===match[1]?-1:1,duration={y:0,d:toInt(match[DATE])*sign,h:toInt(match[HOUR])*sign,m:toInt(match[MINUTE])*sign,s:toInt(match[SECOND])*sign,ms:toInt(absRound(1e3*match[MILLISECOND]))*sign}):(match=isoRegex.exec(input))?(sign="-"===match[1]?-1:1,duration={y:parseIso(match[2],sign),M:parseIso(match[3],sign),w:parseIso(match[4],sign),d:parseIso(match[5],sign),h:parseIso(match[6],sign),m:parseIso(match[7],sign),s:parseIso(match[8],sign)}):null==duration?duration={}:"object"==typeof duration&&("from"in duration||"to"in duration)&&(base=createLocal(duration.from),other=createLocal(duration.to),diffRes=base.isValid()&&other.isValid()?(other=cloneWithOffset(other,base),base.isBefore(other)?res=positiveMomentsDifference(base,other):((res=positiveMomentsDifference(other,base)).milliseconds=-res.milliseconds,res.months=-res.months),res):{milliseconds:0,months:0},(duration={}).ms=diffRes.milliseconds,duration.M=diffRes.months),ret=new Duration(duration),isDuration(input)&&hasOwnProp(input,"_locale")&&(ret._locale=input._locale),ret}function parseIso(inp,sign){var res=inp&&parseFloat(inp.replace(",","."));return(isNaN(res)?0:res)*sign}function positiveMomentsDifference(base,other){var res={};return res.months=other.month()-base.month()+12*(other.year()-base.year()),base.clone().add(res.months,"M").isAfter(other)&&--res.months,res.milliseconds=+other-+base.clone().add(res.months,"M"),res}function createAdder(direction,name){return function(val,period){var tmp;return null===period||isNaN(+period)||(deprecateSimple(name,"moment()."+name+"(period, number) is deprecated. Please use moment()."+name+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),tmp=val,val=period,period=tmp),addSubtract(this,createDuration(val="string"==typeof val?+val:val,period),direction),this}}function addSubtract(mom,duration,isAdding,updateOffset){var milliseconds=duration._milliseconds,days=absRound(duration._days),months=absRound(duration._months);mom.isValid()&&(updateOffset=null==updateOffset||updateOffset,months&&setMonth(mom,get(mom,"Month")+months*isAdding),days&&set$1(mom,"Date",get(mom,"Date")+days*isAdding),milliseconds&&mom._d.setTime(mom._d.valueOf()+milliseconds*isAdding),updateOffset&&hooks.updateOffset(mom,days||months))}createDuration.fn=Duration.prototype,createDuration.invalid=function(){return createDuration(NaN)};var add=createAdder(1,"add"),subtract=createAdder(-1,"subtract");function monthDiff(a,b){var wholeMonthDiff=12*(b.year()-a.year())+(b.month()-a.month()),anchor=a.clone().add(wholeMonthDiff,"months");return-(wholeMonthDiff+(b-anchor<0?(b-anchor)/(anchor-a.clone().add(wholeMonthDiff-1,"months")):(b-anchor)/(a.clone().add(wholeMonthDiff+1,"months")-anchor)))||0}function locale(key){var newLocaleData;return void 0===key?this._locale._abbr:(null!=(newLocaleData=getLocale(key))&&(this._locale=newLocaleData),this)}hooks.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",hooks.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var lang=deprecate("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(key){return void 0===key?this.localeData():this.locale(key)}));function localeData(){return this._locale}var MS_PER_SECOND=1e3,MS_PER_MINUTE=60*MS_PER_SECOND,MS_PER_HOUR=60*MS_PER_MINUTE,MS_PER_400_YEARS=3506328*MS_PER_HOUR;function mod$1(dividend,divisor){return(dividend%divisor+divisor)%divisor}function localStartOfDate(y,m,d){return y<100&&y>=0?new Date(y+400,m,d)-MS_PER_400_YEARS:new Date(y,m,d).valueOf()}function utcStartOfDate(y,m,d){return y<100&&y>=0?Date.UTC(y+400,m,d)-MS_PER_400_YEARS:Date.UTC(y,m,d)}function addWeekYearFormatToken(token,getter){addFormatToken(0,[token,token.length],0,getter)}function getSetWeekYearHelper(input,week,weekday,dow,doy){var weeksTarget;return null==input?weekOfYear(this,dow,doy).year:(week>(weeksTarget=weeksInYear(input,dow,doy))&&(week=weeksTarget),setWeekAll.call(this,input,week,weekday,dow,doy))}function setWeekAll(weekYear,week,weekday,dow,doy){var dayOfYearData=dayOfYearFromWeeks(weekYear,week,weekday,dow,doy),date=createUTCDate(dayOfYearData.year,0,dayOfYearData.dayOfYear);return this.year(date.getUTCFullYear()),this.month(date.getUTCMonth()),this.date(date.getUTCDate()),this}addFormatToken(0,["gg",2],0,(function(){return this.weekYear()%100})),addFormatToken(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),addWeekYearFormatToken("gggg","weekYear"),addWeekYearFormatToken("ggggg","weekYear"),addWeekYearFormatToken("GGGG","isoWeekYear"),addWeekYearFormatToken("GGGGG","isoWeekYear"),addUnitAlias("weekYear","gg"),addUnitAlias("isoWeekYear","GG"),addUnitPriority("weekYear",1),addUnitPriority("isoWeekYear",1),addRegexToken("G",matchSigned),addRegexToken("g",matchSigned),addRegexToken("GG",match1to2,match2),addRegexToken("gg",match1to2,match2),addRegexToken("GGGG",match1to4,match4),addRegexToken("gggg",match1to4,match4),addRegexToken("GGGGG",match1to6,match6),addRegexToken("ggggg",match1to6,match6),addWeekParseToken(["gggg","ggggg","GGGG","GGGGG"],(function(input,week,config,token){week[token.substr(0,2)]=toInt(input)})),addWeekParseToken(["gg","GG"],(function(input,week,config,token){week[token]=hooks.parseTwoDigitYear(input)})),addFormatToken("Q",0,"Qo","quarter"),addUnitAlias("quarter","Q"),addUnitPriority("quarter",7),addRegexToken("Q",match1),addParseToken("Q",(function(input,array){array[MONTH]=3*(toInt(input)-1)})),addFormatToken("D",["DD",2],"Do","date"),addUnitAlias("date","D"),addUnitPriority("date",9),addRegexToken("D",match1to2),addRegexToken("DD",match1to2,match2),addRegexToken("Do",(function(isStrict,locale){return isStrict?locale._dayOfMonthOrdinalParse||locale._ordinalParse:locale._dayOfMonthOrdinalParseLenient})),addParseToken(["D","DD"],DATE),addParseToken("Do",(function(input,array){array[DATE]=toInt(input.match(match1to2)[0])}));var getSetDayOfMonth=makeGetSet("Date",!0);addFormatToken("DDD",["DDDD",3],"DDDo","dayOfYear"),addUnitAlias("dayOfYear","DDD"),addUnitPriority("dayOfYear",4),addRegexToken("DDD",match1to3),addRegexToken("DDDD",match3),addParseToken(["DDD","DDDD"],(function(input,array,config){config._dayOfYear=toInt(input)})),addFormatToken("m",["mm",2],0,"minute"),addUnitAlias("minute","m"),addUnitPriority("minute",14),addRegexToken("m",match1to2),addRegexToken("mm",match1to2,match2),addParseToken(["m","mm"],MINUTE);var getSetMinute=makeGetSet("Minutes",!1);addFormatToken("s",["ss",2],0,"second"),addUnitAlias("second","s"),addUnitPriority("second",15),addRegexToken("s",match1to2),addRegexToken("ss",match1to2,match2),addParseToken(["s","ss"],SECOND);var token,getSetSecond=makeGetSet("Seconds",!1);for(addFormatToken("S",0,0,(function(){return~~(this.millisecond()/100)})),addFormatToken(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),addFormatToken(0,["SSS",3],0,"millisecond"),addFormatToken(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),addFormatToken(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),addFormatToken(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),addFormatToken(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),addFormatToken(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),addFormatToken(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),addUnitAlias("millisecond","ms"),addUnitPriority("millisecond",16),addRegexToken("S",match1to3,match1),addRegexToken("SS",match1to3,match2),addRegexToken("SSS",match1to3,match3),token="SSSS";token.length<=9;token+="S")addRegexToken(token,matchUnsigned);function parseMs(input,array){array[MILLISECOND]=toInt(1e3*("0."+input))}for(token="S";token.length<=9;token+="S")addParseToken(token,parseMs);var getSetMillisecond=makeGetSet("Milliseconds",!1);addFormatToken("z",0,0,"zoneAbbr"),addFormatToken("zz",0,0,"zoneName");var proto=Moment.prototype;function preParsePostFormat(string){return string}proto.add=add,proto.calendar=function(time,formats){var now=time||createLocal(),sod=cloneWithOffset(now,this).startOf("day"),format=hooks.calendarFormat(this,sod)||"sameElse",output=formats&&(isFunction(formats[format])?formats[format].call(this,now):formats[format]);return this.format(output||this.localeData().calendar(format,this,createLocal(now)))},proto.clone=function(){return new Moment(this)},proto.diff=function(input,units,asFloat){var that,zoneDelta,output;if(!this.isValid())return NaN;if(!(that=cloneWithOffset(input,this)).isValid())return NaN;switch(zoneDelta=6e4*(that.utcOffset()-this.utcOffset()),units=normalizeUnits(units)){case"year":output=monthDiff(this,that)/12;break;case"month":output=monthDiff(this,that);break;case"quarter":output=monthDiff(this,that)/3;break;case"second":output=(this-that)/1e3;break;case"minute":output=(this-that)/6e4;break;case"hour":output=(this-that)/36e5;break;case"day":output=(this-that-zoneDelta)/864e5;break;case"week":output=(this-that-zoneDelta)/6048e5;break;default:output=this-that}return asFloat?output:absFloor(output)},proto.endOf=function(units){var time;if(void 0===(units=normalizeUnits(units))||"millisecond"===units||!this.isValid())return this;var startOfDate=this._isUTC?utcStartOfDate:localStartOfDate;switch(units){case"year":time=startOfDate(this.year()+1,0,1)-1;break;case"quarter":time=startOfDate(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":time=startOfDate(this.year(),this.month()+1,1)-1;break;case"week":time=startOfDate(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":time=startOfDate(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":time=startOfDate(this.year(),this.month(),this.date()+1)-1;break;case"hour":time=this._d.valueOf(),time+=MS_PER_HOUR-mod$1(time+(this._isUTC?0:this.utcOffset()*MS_PER_MINUTE),MS_PER_HOUR)-1;break;case"minute":time=this._d.valueOf(),time+=MS_PER_MINUTE-mod$1(time,MS_PER_MINUTE)-1;break;case"second":time=this._d.valueOf(),time+=MS_PER_SECOND-mod$1(time,MS_PER_SECOND)-1}return this._d.setTime(time),hooks.updateOffset(this,!0),this},proto.format=function(inputString){inputString||(inputString=this.isUtc()?hooks.defaultFormatUtc:hooks.defaultFormat);var output=formatMoment(this,inputString);return this.localeData().postformat(output)},proto.from=function(time,withoutSuffix){return this.isValid()&&(isMoment(time)&&time.isValid()||createLocal(time).isValid())?createDuration({to:this,from:time}).locale(this.locale()).humanize(!withoutSuffix):this.localeData().invalidDate()},proto.fromNow=function(withoutSuffix){return this.from(createLocal(),withoutSuffix)},proto.to=function(time,withoutSuffix){return this.isValid()&&(isMoment(time)&&time.isValid()||createLocal(time).isValid())?createDuration({from:this,to:time}).locale(this.locale()).humanize(!withoutSuffix):this.localeData().invalidDate()},proto.toNow=function(withoutSuffix){return this.to(createLocal(),withoutSuffix)},proto.get=function(units){return isFunction(this[units=normalizeUnits(units)])?this[units]():this},proto.invalidAt=function(){return getParsingFlags(this).overflow},proto.isAfter=function(input,units){var localInput=isMoment(input)?input:createLocal(input);return!(!this.isValid()||!localInput.isValid())&&("millisecond"===(units=normalizeUnits(units)||"millisecond")?this.valueOf()>localInput.valueOf():localInput.valueOf()<this.clone().startOf(units).valueOf())},proto.isBefore=function(input,units){var localInput=isMoment(input)?input:createLocal(input);return!(!this.isValid()||!localInput.isValid())&&("millisecond"===(units=normalizeUnits(units)||"millisecond")?this.valueOf()<localInput.valueOf():this.clone().endOf(units).valueOf()<localInput.valueOf())},proto.isBetween=function(from,to,units,inclusivity){var localFrom=isMoment(from)?from:createLocal(from),localTo=isMoment(to)?to:createLocal(to);return!!(this.isValid()&&localFrom.isValid()&&localTo.isValid())&&("("===(inclusivity=inclusivity||"()")[0]?this.isAfter(localFrom,units):!this.isBefore(localFrom,units))&&(")"===inclusivity[1]?this.isBefore(localTo,units):!this.isAfter(localTo,units))},proto.isSame=function(input,units){var inputMs,localInput=isMoment(input)?input:createLocal(input);return!(!this.isValid()||!localInput.isValid())&&("millisecond"===(units=normalizeUnits(units)||"millisecond")?this.valueOf()===localInput.valueOf():(inputMs=localInput.valueOf(),this.clone().startOf(units).valueOf()<=inputMs&&inputMs<=this.clone().endOf(units).valueOf()))},proto.isSameOrAfter=function(input,units){return this.isSame(input,units)||this.isAfter(input,units)},proto.isSameOrBefore=function(input,units){return this.isSame(input,units)||this.isBefore(input,units)},proto.isValid=function(){return isValid(this)},proto.lang=lang,proto.locale=locale,proto.localeData=localeData,proto.max=prototypeMax,proto.min=prototypeMin,proto.parsingFlags=function(){return extend({},getParsingFlags(this))},proto.set=function(units,value){if("object"==typeof units)for(var prioritized=function(unitsObj){var units=[];for(var u in unitsObj)units.push({unit:u,priority:priorities[u]});return units.sort((function(a,b){return a.priority-b.priority})),units}(units=normalizeObjectUnits(units)),i=0;i<prioritized.length;i++)this[prioritized[i].unit](units[prioritized[i].unit]);else if(isFunction(this[units=normalizeUnits(units)]))return this[units](value);return this},proto.startOf=function(units){var time;if(void 0===(units=normalizeUnits(units))||"millisecond"===units||!this.isValid())return this;var startOfDate=this._isUTC?utcStartOfDate:localStartOfDate;switch(units){case"year":time=startOfDate(this.year(),0,1);break;case"quarter":time=startOfDate(this.year(),this.month()-this.month()%3,1);break;case"month":time=startOfDate(this.year(),this.month(),1);break;case"week":time=startOfDate(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":time=startOfDate(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":time=startOfDate(this.year(),this.month(),this.date());break;case"hour":time=this._d.valueOf(),time-=mod$1(time+(this._isUTC?0:this.utcOffset()*MS_PER_MINUTE),MS_PER_HOUR);break;case"minute":time=this._d.valueOf(),time-=mod$1(time,MS_PER_MINUTE);break;case"second":time=this._d.valueOf(),time-=mod$1(time,MS_PER_SECOND)}return this._d.setTime(time),hooks.updateOffset(this,!0),this},proto.subtract=subtract,proto.toArray=function(){var m=this;return[m.year(),m.month(),m.date(),m.hour(),m.minute(),m.second(),m.millisecond()]},proto.toObject=function(){var m=this;return{years:m.year(),months:m.month(),date:m.date(),hours:m.hours(),minutes:m.minutes(),seconds:m.seconds(),milliseconds:m.milliseconds()}},proto.toDate=function(){return new Date(this.valueOf())},proto.toISOString=function(keepOffset){if(!this.isValid())return null;var utc=!0!==keepOffset,m=utc?this.clone().utc():this;return m.year()<0||m.year()>9999?formatMoment(m,utc?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):isFunction(Date.prototype.toISOString)?utc?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",formatMoment(m,"Z")):formatMoment(m,utc?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},proto.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var func="moment",zone="";this.isLocal()||(func=0===this.utcOffset()?"moment.utc":"moment.parseZone",zone="Z");var prefix="["+func+'("]',year=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",suffix=zone+'[")]';return this.format(prefix+year+"-MM-DD[T]HH:mm:ss.SSS"+suffix)},proto.toJSON=function(){return this.isValid()?this.toISOString():null},proto.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},proto.unix=function(){return Math.floor(this.valueOf()/1e3)},proto.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},proto.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},proto.year=getSetYear,proto.isLeapYear=function(){return isLeapYear(this.year())},proto.weekYear=function(input){return getSetWeekYearHelper.call(this,input,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},proto.isoWeekYear=function(input){return getSetWeekYearHelper.call(this,input,this.isoWeek(),this.isoWeekday(),1,4)},proto.quarter=proto.quarters=function(input){return null==input?Math.ceil((this.month()+1)/3):this.month(3*(input-1)+this.month()%3)},proto.month=getSetMonth,proto.daysInMonth=function(){return daysInMonth(this.year(),this.month())},proto.week=proto.weeks=function(input){var week=this.localeData().week(this);return null==input?week:this.add(7*(input-week),"d")},proto.isoWeek=proto.isoWeeks=function(input){var week=weekOfYear(this,1,4).week;return null==input?week:this.add(7*(input-week),"d")},proto.weeksInYear=function(){var weekInfo=this.localeData()._week;return weeksInYear(this.year(),weekInfo.dow,weekInfo.doy)},proto.isoWeeksInYear=function(){return weeksInYear(this.year(),1,4)},proto.date=getSetDayOfMonth,proto.day=proto.days=function(input){if(!this.isValid())return null!=input?this:NaN;var day=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=input?(input=function(input,locale){return"string"!=typeof input?input:isNaN(input)?"number"==typeof(input=locale.weekdaysParse(input))?input:null:parseInt(input,10)}(input,this.localeData()),this.add(input-day,"d")):day},proto.weekday=function(input){if(!this.isValid())return null!=input?this:NaN;var weekday=(this.day()+7-this.localeData()._week.dow)%7;return null==input?weekday:this.add(input-weekday,"d")},proto.isoWeekday=function(input){if(!this.isValid())return null!=input?this:NaN;if(null!=input){var weekday=function(input,locale){return"string"==typeof input?locale.weekdaysParse(input)%7||7:isNaN(input)?null:input}(input,this.localeData());return this.day(this.day()%7?weekday:weekday-7)}return this.day()||7},proto.dayOfYear=function(input){var dayOfYear=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==input?dayOfYear:this.add(input-dayOfYear,"d")},proto.hour=proto.hours=getSetHour,proto.minute=proto.minutes=getSetMinute,proto.second=proto.seconds=getSetSecond,proto.millisecond=proto.milliseconds=getSetMillisecond,proto.utcOffset=function(input,keepLocalTime,keepMinutes){var localAdjust,offset=this._offset||0;if(!this.isValid())return null!=input?this:NaN;if(null!=input){if("string"==typeof input){if(null===(input=offsetFromString(matchShortOffset,input)))return this}else Math.abs(input)<16&&!keepMinutes&&(input*=60);return!this._isUTC&&keepLocalTime&&(localAdjust=getDateOffset(this)),this._offset=input,this._isUTC=!0,null!=localAdjust&&this.add(localAdjust,"m"),offset!==input&&(!keepLocalTime||this._changeInProgress?addSubtract(this,createDuration(input-offset,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,hooks.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?offset:getDateOffset(this)},proto.utc=function(keepLocalTime){return this.utcOffset(0,keepLocalTime)},proto.local=function(keepLocalTime){return this._isUTC&&(this.utcOffset(0,keepLocalTime),this._isUTC=!1,keepLocalTime&&this.subtract(getDateOffset(this),"m")),this},proto.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var tZone=offsetFromString(matchOffset,this._i);null!=tZone?this.utcOffset(tZone):this.utcOffset(0,!0)}return this},proto.hasAlignedHourOffset=function(input){return!!this.isValid()&&(input=input?createLocal(input).utcOffset():0,(this.utcOffset()-input)%60==0)},proto.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},proto.isLocal=function(){return!!this.isValid()&&!this._isUTC},proto.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},proto.isUtc=isUtc,proto.isUTC=isUtc,proto.zoneAbbr=function(){return this._isUTC?"UTC":""},proto.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},proto.dates=deprecate("dates accessor is deprecated. Use date instead.",getSetDayOfMonth),proto.months=deprecate("months accessor is deprecated. Use month instead",getSetMonth),proto.years=deprecate("years accessor is deprecated. Use year instead",getSetYear),proto.zone=deprecate("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(input,keepLocalTime){return null!=input?("string"!=typeof input&&(input=-input),this.utcOffset(input,keepLocalTime),this):-this.utcOffset()})),proto.isDSTShifted=deprecate("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!isUndefined(this._isDSTShifted))return this._isDSTShifted;var c={};if(copyConfig(c,this),(c=prepareConfig(c))._a){var other=c._isUTC?createUTC(c._a):createLocal(c._a);this._isDSTShifted=this.isValid()&&compareArrays(c._a,other.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}));var proto$1=Locale.prototype;function get$1(format,index,field,setter){var locale=getLocale(),utc=createUTC().set(setter,index);return locale[field](utc,format)}function listMonthsImpl(format,index,field){if(isNumber(format)&&(index=format,format=void 0),format=format||"",null!=index)return get$1(format,index,field,"month");var i,out=[];for(i=0;i<12;i++)out[i]=get$1(format,i,field,"month");return out}function listWeekdaysImpl(localeSorted,format,index,field){"boolean"==typeof localeSorted?(isNumber(format)&&(index=format,format=void 0),format=format||""):(index=format=localeSorted,localeSorted=!1,isNumber(format)&&(index=format,format=void 0),format=format||"");var i,locale=getLocale(),shift=localeSorted?locale._week.dow:0;if(null!=index)return get$1(format,(index+shift)%7,field,"day");var out=[];for(i=0;i<7;i++)out[i]=get$1(format,(i+shift)%7,field,"day");return out}proto$1.calendar=function(key,mom,now){var output=this._calendar[key]||this._calendar.sameElse;return isFunction(output)?output.call(mom,now):output},proto$1.longDateFormat=function(key){var format=this._longDateFormat[key],formatUpper=this._longDateFormat[key.toUpperCase()];return format||!formatUpper?format:(this._longDateFormat[key]=formatUpper.replace(/MMMM|MM|DD|dddd/g,(function(val){return val.slice(1)})),this._longDateFormat[key])},proto$1.invalidDate=function(){return this._invalidDate},proto$1.ordinal=function(number){return this._ordinal.replace("%d",number)},proto$1.preparse=preParsePostFormat,proto$1.postformat=preParsePostFormat,proto$1.relativeTime=function(number,withoutSuffix,string,isFuture){var output=this._relativeTime[string];return isFunction(output)?output(number,withoutSuffix,string,isFuture):output.replace(/%d/i,number)},proto$1.pastFuture=function(diff,output){var format=this._relativeTime[diff>0?"future":"past"];return isFunction(format)?format(output):format.replace(/%s/i,output)},proto$1.set=function(config){var prop,i;for(i in config)isFunction(prop=config[i])?this[i]=prop:this["_"+i]=prop;this._config=config,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},proto$1.months=function(m,format){return m?isArray(this._months)?this._months[m.month()]:this._months[(this._months.isFormat||MONTHS_IN_FORMAT).test(format)?"format":"standalone"][m.month()]:isArray(this._months)?this._months:this._months.standalone},proto$1.monthsShort=function(m,format){return m?isArray(this._monthsShort)?this._monthsShort[m.month()]:this._monthsShort[MONTHS_IN_FORMAT.test(format)?"format":"standalone"][m.month()]:isArray(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},proto$1.monthsParse=function(monthName,format,strict){var i,mom,regex;if(this._monthsParseExact)return handleStrictParse.call(this,monthName,format,strict);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(mom=createUTC([2e3,i]),strict&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(mom,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(mom,"").replace(".","")+"$","i")),strict||this._monthsParse[i]||(regex="^"+this.months(mom,"")+"|^"+this.monthsShort(mom,""),this._monthsParse[i]=new RegExp(regex.replace(".",""),"i")),strict&&"MMMM"===format&&this._longMonthsParse[i].test(monthName))return i;if(strict&&"MMM"===format&&this._shortMonthsParse[i].test(monthName))return i;if(!strict&&this._monthsParse[i].test(monthName))return i}},proto$1.monthsRegex=function(isStrict){return this._monthsParseExact?(hasOwnProp(this,"_monthsRegex")||computeMonthsParse.call(this),isStrict?this._monthsStrictRegex:this._monthsRegex):(hasOwnProp(this,"_monthsRegex")||(this._monthsRegex=defaultMonthsRegex),this._monthsStrictRegex&&isStrict?this._monthsStrictRegex:this._monthsRegex)},proto$1.monthsShortRegex=function(isStrict){return this._monthsParseExact?(hasOwnProp(this,"_monthsRegex")||computeMonthsParse.call(this),isStrict?this._monthsShortStrictRegex:this._monthsShortRegex):(hasOwnProp(this,"_monthsShortRegex")||(this._monthsShortRegex=defaultMonthsShortRegex),this._monthsShortStrictRegex&&isStrict?this._monthsShortStrictRegex:this._monthsShortRegex)},proto$1.week=function(mom){return weekOfYear(mom,this._week.dow,this._week.doy).week},proto$1.firstDayOfYear=function(){return this._week.doy},proto$1.firstDayOfWeek=function(){return this._week.dow},proto$1.weekdays=function(m,format){var weekdays=isArray(this._weekdays)?this._weekdays:this._weekdays[m&&!0!==m&&this._weekdays.isFormat.test(format)?"format":"standalone"];return!0===m?shiftWeekdays(weekdays,this._week.dow):m?weekdays[m.day()]:weekdays},proto$1.weekdaysMin=function(m){return!0===m?shiftWeekdays(this._weekdaysMin,this._week.dow):m?this._weekdaysMin[m.day()]:this._weekdaysMin},proto$1.weekdaysShort=function(m){return!0===m?shiftWeekdays(this._weekdaysShort,this._week.dow):m?this._weekdaysShort[m.day()]:this._weekdaysShort},proto$1.weekdaysParse=function(weekdayName,format,strict){var i,mom,regex;if(this._weekdaysParseExact)return handleStrictParse$1.call(this,weekdayName,format,strict);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(mom=createUTC([2e3,1]).day(i),strict&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(mom,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(mom,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(mom,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(regex="^"+this.weekdays(mom,"")+"|^"+this.weekdaysShort(mom,"")+"|^"+this.weekdaysMin(mom,""),this._weekdaysParse[i]=new RegExp(regex.replace(".",""),"i")),strict&&"dddd"===format&&this._fullWeekdaysParse[i].test(weekdayName))return i;if(strict&&"ddd"===format&&this._shortWeekdaysParse[i].test(weekdayName))return i;if(strict&&"dd"===format&&this._minWeekdaysParse[i].test(weekdayName))return i;if(!strict&&this._weekdaysParse[i].test(weekdayName))return i}},proto$1.weekdaysRegex=function(isStrict){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),isStrict?this._weekdaysStrictRegex:this._weekdaysRegex):(hasOwnProp(this,"_weekdaysRegex")||(this._weekdaysRegex=defaultWeekdaysRegex),this._weekdaysStrictRegex&&isStrict?this._weekdaysStrictRegex:this._weekdaysRegex)},proto$1.weekdaysShortRegex=function(isStrict){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),isStrict?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(hasOwnProp(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=defaultWeekdaysShortRegex),this._weekdaysShortStrictRegex&&isStrict?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},proto$1.weekdaysMinRegex=function(isStrict){return this._weekdaysParseExact?(hasOwnProp(this,"_weekdaysRegex")||computeWeekdaysParse.call(this),isStrict?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(hasOwnProp(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=defaultWeekdaysMinRegex),this._weekdaysMinStrictRegex&&isStrict?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},proto$1.isPM=function(input){return"p"===(input+"").toLowerCase().charAt(0)},proto$1.meridiem=function(hours,minutes,isLower){return hours>11?isLower?"pm":"PM":isLower?"am":"AM"},getSetGlobalLocale("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(number){var b=number%10;return number+(1===toInt(number%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th")}}),hooks.lang=deprecate("moment.lang is deprecated. Use moment.locale instead.",getSetGlobalLocale),hooks.langData=deprecate("moment.langData is deprecated. Use moment.localeData instead.",getLocale);var mathAbs=Math.abs;function addSubtract$1(duration,input,value,direction){var other=createDuration(input,value);return duration._milliseconds+=direction*other._milliseconds,duration._days+=direction*other._days,duration._months+=direction*other._months,duration._bubble()}function absCeil(number){return number<0?Math.floor(number):Math.ceil(number)}function daysToMonths(days){return 4800*days/146097}function monthsToDays(months){return 146097*months/4800}function makeAs(alias){return function(){return this.as(alias)}}var asMilliseconds=makeAs("ms"),asSeconds=makeAs("s"),asMinutes=makeAs("m"),asHours=makeAs("h"),asDays=makeAs("d"),asWeeks=makeAs("w"),asMonths=makeAs("M"),asQuarters=makeAs("Q"),asYears=makeAs("y");function makeGetter(name){return function(){return this.isValid()?this._data[name]:NaN}}var milliseconds=makeGetter("milliseconds"),seconds=makeGetter("seconds"),minutes=makeGetter("minutes"),hours=makeGetter("hours"),days=makeGetter("days"),months=makeGetter("months"),years=makeGetter("years"),round=Math.round,thresholds={ss:44,s:45,m:45,h:22,d:26,M:11};function substituteTimeAgo(string,number,withoutSuffix,isFuture,locale){return locale.relativeTime(number||1,!!withoutSuffix,string,isFuture)}var abs$1=Math.abs;function sign(x){return(x>0)-(x<0)||+x}function toISOString$1(){if(!this.isValid())return this.localeData().invalidDate();var minutes,hours,seconds=abs$1(this._milliseconds)/1e3,days=abs$1(this._days),months=abs$1(this._months);minutes=absFloor(seconds/60),hours=absFloor(minutes/60),seconds%=60,minutes%=60;var Y=absFloor(months/12),M=months%=12,D=days,h=hours,m=minutes,s=seconds?seconds.toFixed(3).replace(/\.?0+$/,""):"",total=this.asSeconds();if(!total)return"P0D";var totalSign=total<0?"-":"",ymSign=sign(this._months)!==sign(total)?"-":"",daysSign=sign(this._days)!==sign(total)?"-":"",hmsSign=sign(this._milliseconds)!==sign(total)?"-":"";return totalSign+"P"+(Y?ymSign+Y+"Y":"")+(M?ymSign+M+"M":"")+(D?daysSign+D+"D":"")+(h||m||s?"T":"")+(h?hmsSign+h+"H":"")+(m?hmsSign+m+"M":"")+(s?hmsSign+s+"S":"")}var proto$2=Duration.prototype;return proto$2.isValid=function(){return this._isValid},proto$2.abs=function(){var data=this._data;return this._milliseconds=mathAbs(this._milliseconds),this._days=mathAbs(this._days),this._months=mathAbs(this._months),data.milliseconds=mathAbs(data.milliseconds),data.seconds=mathAbs(data.seconds),data.minutes=mathAbs(data.minutes),data.hours=mathAbs(data.hours),data.months=mathAbs(data.months),data.years=mathAbs(data.years),this},proto$2.add=function(input,value){return addSubtract$1(this,input,value,1)},proto$2.subtract=function(input,value){return addSubtract$1(this,input,value,-1)},proto$2.as=function(units){if(!this.isValid())return NaN;var days,months,milliseconds=this._milliseconds;if("month"===(units=normalizeUnits(units))||"quarter"===units||"year"===units)switch(days=this._days+milliseconds/864e5,months=this._months+daysToMonths(days),units){case"month":return months;case"quarter":return months/3;case"year":return months/12}else switch(days=this._days+Math.round(monthsToDays(this._months)),units){case"week":return days/7+milliseconds/6048e5;case"day":return days+milliseconds/864e5;case"hour":return 24*days+milliseconds/36e5;case"minute":return 1440*days+milliseconds/6e4;case"second":return 86400*days+milliseconds/1e3;case"millisecond":return Math.floor(864e5*days)+milliseconds;default:throw new Error("Unknown unit "+units)}},proto$2.asMilliseconds=asMilliseconds,proto$2.asSeconds=asSeconds,proto$2.asMinutes=asMinutes,proto$2.asHours=asHours,proto$2.asDays=asDays,proto$2.asWeeks=asWeeks,proto$2.asMonths=asMonths,proto$2.asQuarters=asQuarters,proto$2.asYears=asYears,proto$2.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*toInt(this._months/12):NaN},proto$2._bubble=function(){var seconds,minutes,hours,years,monthsFromDays,milliseconds=this._milliseconds,days=this._days,months=this._months,data=this._data;return milliseconds>=0&&days>=0&&months>=0||milliseconds<=0&&days<=0&&months<=0||(milliseconds+=864e5*absCeil(monthsToDays(months)+days),days=0,months=0),data.milliseconds=milliseconds%1e3,seconds=absFloor(milliseconds/1e3),data.seconds=seconds%60,minutes=absFloor(seconds/60),data.minutes=minutes%60,hours=absFloor(minutes/60),data.hours=hours%24,days+=absFloor(hours/24),monthsFromDays=absFloor(daysToMonths(days)),months+=monthsFromDays,days-=absCeil(monthsToDays(monthsFromDays)),years=absFloor(months/12),months%=12,data.days=days,data.months=months,data.years=years,this},proto$2.clone=function(){return createDuration(this)},proto$2.get=function(units){return units=normalizeUnits(units),this.isValid()?this[units+"s"]():NaN},proto$2.milliseconds=milliseconds,proto$2.seconds=seconds,proto$2.minutes=minutes,proto$2.hours=hours,proto$2.days=days,proto$2.weeks=function(){return absFloor(this.days()/7)},proto$2.months=months,proto$2.years=years,proto$2.humanize=function(withSuffix){if(!this.isValid())return this.localeData().invalidDate();var locale=this.localeData(),output=function(posNegDuration,withoutSuffix,locale){var duration=createDuration(posNegDuration).abs(),seconds=round(duration.as("s")),minutes=round(duration.as("m")),hours=round(duration.as("h")),days=round(duration.as("d")),months=round(duration.as("M")),years=round(duration.as("y")),a=seconds<=thresholds.ss&&["s",seconds]||seconds<thresholds.s&&["ss",seconds]||minutes<=1&&["m"]||minutes<thresholds.m&&["mm",minutes]||hours<=1&&["h"]||hours<thresholds.h&&["hh",hours]||days<=1&&["d"]||days<thresholds.d&&["dd",days]||months<=1&&["M"]||months<thresholds.M&&["MM",months]||years<=1&&["y"]||["yy",years];return a[2]=withoutSuffix,a[3]=+posNegDuration>0,a[4]=locale,substituteTimeAgo.apply(null,a)}(this,!withSuffix,locale);return withSuffix&&(output=locale.pastFuture(+this,output)),locale.postformat(output)},proto$2.toISOString=toISOString$1,proto$2.toString=toISOString$1,proto$2.toJSON=toISOString$1,proto$2.locale=locale,proto$2.localeData=localeData,proto$2.toIsoString=deprecate("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",toISOString$1),proto$2.lang=lang,addFormatToken("X",0,0,"unix"),addFormatToken("x",0,0,"valueOf"),addRegexToken("x",matchSigned),addRegexToken("X",/[+-]?\d+(\.\d{1,3})?/),addParseToken("X",(function(input,array,config){config._d=new Date(1e3*parseFloat(input,10))})),addParseToken("x",(function(input,array,config){config._d=new Date(toInt(input))})),hooks.version="2.24.0",hookCallback=createLocal,hooks.fn=proto,hooks.min=function(){return pickBy("isBefore",[].slice.call(arguments,0))},hooks.max=function(){return pickBy("isAfter",[].slice.call(arguments,0))},hooks.now=function(){return Date.now?Date.now():+new Date},hooks.utc=createUTC,hooks.unix=function(input){return createLocal(1e3*input)},hooks.months=function(format,index){return listMonthsImpl(format,index,"months")},hooks.isDate=isDate,hooks.locale=getSetGlobalLocale,hooks.invalid=createInvalid,hooks.duration=createDuration,hooks.isMoment=isMoment,hooks.weekdays=function(localeSorted,format,index){return listWeekdaysImpl(localeSorted,format,index,"weekdays")},hooks.parseZone=function(){return createLocal.apply(null,arguments).parseZone()},hooks.localeData=getLocale,hooks.isDuration=isDuration,hooks.monthsShort=function(format,index){return listMonthsImpl(format,index,"monthsShort")},hooks.weekdaysMin=function(localeSorted,format,index){return listWeekdaysImpl(localeSorted,format,index,"weekdaysMin")},hooks.defineLocale=defineLocale,hooks.updateLocale=function(name,config){if(null!=config){var locale,tmpLocale,parentConfig=baseConfig;null!=(tmpLocale=loadLocale(name))&&(parentConfig=tmpLocale._config),config=mergeConfigs(parentConfig,config),(locale=new Locale(config)).parentLocale=locales[name],locales[name]=locale,getSetGlobalLocale(name)}else null!=locales[name]&&(null!=locales[name].parentLocale?locales[name]=locales[name].parentLocale:null!=locales[name]&&delete locales[name]);return locales[name]},hooks.locales=function(){return keys(locales)},hooks.weekdaysShort=function(localeSorted,format,index){return listWeekdaysImpl(localeSorted,format,index,"weekdaysShort")},hooks.normalizeUnits=normalizeUnits,hooks.relativeTimeRounding=function(roundingFunction){return void 0===roundingFunction?round:"function"==typeof roundingFunction&&(round=roundingFunction,!0)},hooks.relativeTimeThreshold=function(threshold,limit){return void 0!==thresholds[threshold]&&(void 0===limit?thresholds[threshold]:(thresholds[threshold]=limit,"s"===threshold&&(thresholds.ss=limit-1),!0))},hooks.calendarFormat=function(myMoment,now){var diff=myMoment.diff(now,"days",!0);return diff<-6?"sameElse":diff<-1?"lastWeek":diff<0?"lastDay":diff<1?"sameDay":diff<2?"nextDay":diff<7?"nextWeek":"sameElse"},hooks.prototype=proto,hooks.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},hooks}()}).call(this,__webpack_require__(48)(module))},function(module,exports){var global=module.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=global)},function(module,exports,__webpack_require__){var dP=__webpack_require__(33),createDesc=__webpack_require__(44);module.exports=__webpack_require__(17)?function(object,key,value){return dP.f(object,key,createDesc(1,value))}:function(object,key,value){return object[key]=value,object}},function(module,exports){module.exports=function(exec){try{return!!exec()}catch(e){return!0}}},function(module,exports,__webpack_require__){(function(module,process,global){__webpack_require__(35),__webpack_require__(11);const DEFAULT_CONFIG=__webpack_require__(79).default,NAMES=["perspective.config.js","perspective.config.json","package.json"];function isObject(item){return item&&"object"==typeof item&&!Array.isArray(item)}function mergeDeep(target,...sources){if(!sources.length)return target;const source=sources.shift();if(isObject(target)&&isObject(source))for(const key in source)isObject(source[key])?(target[key]||Object.assign(target,{[key]:{}}),mergeDeep(target[key],source[key])):Object.assign(target,{[key]:source[key]});return mergeDeep(target,...sources)}module.exports.get_types=function(){return Object.keys(module.exports.get_config().types)},module.exports.get_type_config=function(type){const config={};if(module.exports.get_config().types[type]&&Object.assign(config,module.exports.get_config().types[type]),config.type){const props=module.exports.get_type_config(config.type);return Object.assign(props,config),props}return config},global.__PERSPECTIVE_CONFIG__=void 0,module.exports.override_config=function(config){global.__PERSPECTIVE_CONFIG__&&console.warn("Config already initialized!"),global.__PERSPECTIVE_CONFIG__=mergeDeep(DEFAULT_CONFIG,config)},module.exports.get_config=function(){return global.__PERSPECTIVE_CONFIG__||(global.__PERSPECTIVE_CONFIG__=mergeDeep(DEFAULT_CONFIG,"undefined"==typeof window?function(){const REQUIRE="undefined"!=typeof require?require:module.require,path=REQUIRE("path"),fs=REQUIRE("fs"),[root,...curr]=process.cwd().split(path.sep);for(;curr.length>0;){for(const name of NAMES){const candidate="".concat(root).concat(path.sep).concat(path.join(...curr,name));if(fs.existsSync(candidate)){if(!name.endsWith("json")){const mod=REQUIRE(candidate);return mod.default||mod}{const json=JSON.parse(fs.readFileSync(candidate));if("package.json"!==name)return json;if(json.perspective)return json.perspective}}}curr.pop()}}():{types:{float:{filter_operator:"==",aggregate:"sum",format:{style:"decimal",minimumFractionDigits:2,maximumFractionDigits:2}},string:{filter_operator:"==",aggregate:"count"},integer:{filter_operator:"==",aggregate:"sum",format:{}},boolean:{filter_operator:"==",aggregate:"count"},datetime:{filter_operator:"==",aggregate:"count",format:{week:"numeric",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},null_value:-1},date:{filter_operator:"==",aggregate:"count",format:{week:"numeric",year:"numeric",month:"numeric",day:"numeric"},null_value:-1}}}||{})),global.__PERSPECTIVE_CONFIG__}}).call(this,__webpack_require__(48)(module),__webpack_require__(22),__webpack_require__(21))},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return is_valid_date})),__webpack_require__.d(__webpack_exports__,"a",(function(){return DateParser}));var moment__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(4),moment__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_0__);const DATE_PARSE_CANDIDATES=[moment__WEBPACK_IMPORTED_MODULE_0___default.a.ISO_8601,moment__WEBPACK_IMPORTED_MODULE_0___default.a.RFC_2822,"YYYY-MM-DD\\DHH:mm:ss.SSSS","MM-DD-YYYY","MM/DD/YYYY","M/D/YYYY","M/D/YY","DD MMM YYYY","HH:mm:ss.SSS"];function is_valid_date(x){return moment__WEBPACK_IMPORTED_MODULE_0___default()(x,DATE_PARSE_CANDIDATES,!0).isValid()}class DateParser{constructor(){this.date_types=[],this.date_candidates=DATE_PARSE_CANDIDATES.slice(),this.date_exclusions=[]}parse(input){if(this.date_exclusions.indexOf(input)>-1)return null;{let val=input;const type=typeof val;if(val.getMonth)return val;if("string"===type){if(val=moment__WEBPACK_IMPORTED_MODULE_0___default()(input,this.date_types,!0),!val.isValid()||0===this.date_types.length){for(let candidate of this.date_candidates)if(val=moment__WEBPACK_IMPORTED_MODULE_0___default()(input,candidate,!0),val.isValid())return this.date_types.push(candidate),this.date_candidates.splice(this.date_candidates.indexOf(candidate),1),val.toDate();return this.date_exclusions.push(input),null}return val.toDate()}if("number"===type)return new Date(val);throw new Error("Unparseable date ".concat(val))}}}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return get_column_type})),__webpack_require__.d(__webpack_exports__,"a",(function(){return bindall}));__webpack_require__(83);function get_column_type(val){return val>=1&&val<=4?"integer":19===val?"string":10===val||9===val?"float":11===val?"boolean":12===val?"datetime":13===val?"date":void console.warn("Unknown type for value ".concat(val," with JS type ").concat(typeof val))}function bindall(self){let obj=self;do{for(const key of Object.getOwnPropertyNames(obj)){const value=self[key];"constructor"!==key&&"function"==typeof value&&(self[key]=value.bind(self))}}while(obj=obj!==Object&&Object.getPrototypeOf(obj))}__webpack_require__(84);String.prototype.includes||(String.prototype.includes=function(search,start){return"number"!=typeof start&&(start=0),!(start+search.length>this.length)&&-1!==this.indexOf(search,start)}),Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{value:function(searchElement,fromIndex){if(null==this)throw new TypeError('"this" is null or not defined');var o=Object(this),len=o.length>>>0;if(0===len)return!1;var x,y,n=0|fromIndex,k=Math.max(n>=0?n:len-Math.abs(n),0);for(;k<len;){if((x=o[k])===(y=searchElement)||"number"==typeof x&&"number"==typeof y&&isNaN(x)&&isNaN(y))return!0;k++}return!1}})},function(module,exports,__webpack_require__){for(var $iterators=__webpack_require__(64),getKeys=__webpack_require__(45),redefine=__webpack_require__(18),global=__webpack_require__(5),hide=__webpack_require__(6),Iterators=__webpack_require__(36),wks=__webpack_require__(2),ITERATOR=wks("iterator"),TO_STRING_TAG=wks("toStringTag"),ArrayValues=Iterators.Array,DOMIterables={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},collections=getKeys(DOMIterables),i=0;i<collections.length;i++){var key,NAME=collections[i],explicit=DOMIterables[NAME],Collection=global[NAME],proto=Collection&&Collection.prototype;if(proto&&(proto[ITERATOR]||hide(proto,ITERATOR,ArrayValues),proto[TO_STRING_TAG]||hide(proto,TO_STRING_TAG,NAME),Iterators[NAME]=ArrayValues,explicit))for(key in $iterators)proto[key]||redefine(proto,key,$iterators[key],!0)}},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;
/* @license
Papa Parse
v4.6.3
https://github.com/mholt/PapaParse
License: MIT
*/Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),__WEBPACK_AMD_DEFINE_ARRAY__=[],void 0===(__WEBPACK_AMD_DEFINE_RESULT__="function"==typeof(__WEBPACK_AMD_DEFINE_FACTORY__=function(){"use strict";var s,e,f="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==f?f:{},n=!f.document&&!!f.postMessage,o=n&&/(\?|&)papaworker(=|&|$)/.test(f.location.search),a=!1,h={},u=0,k={parse:function(e,t){var r=(t=t||{}).dynamicTyping||!1;if(z(r)&&(t.dynamicTypingFunction=r,r={}),t.dynamicTyping=r,t.transform=!!z(t.transform)&&t.transform,t.worker&&k.WORKERS_SUPPORTED){var i=function(){if(!k.WORKERS_SUPPORTED)return!1;if(!a&&null===k.SCRIPT_PATH)throw new Error("Script path cannot be determined automatically when Papa Parse is loaded asynchronously. You need to set Papa.SCRIPT_PATH manually.");var e=k.SCRIPT_PATH||s;e+=(-1!==e.indexOf("?")?"&":"?")+"papaworker";var t=new f.Worker(e);return t.onmessage=m,t.id=u++,h[t.id]=t}();return i.userStep=t.step,i.userChunk=t.chunk,i.userComplete=t.complete,i.userError=t.error,t.step=z(t.step),t.chunk=z(t.chunk),t.complete=z(t.complete),t.error=z(t.error),delete t.worker,void i.postMessage({input:e,config:t,workerId:i.id})}var n=null;return k.NODE_STREAM_INPUT,"string"==typeof e?n=t.download?new c(t):new _(t):!0===e.readable&&z(e.read)&&z(e.on)?n=new g(t):(f.File&&e instanceof File||e instanceof Object)&&(n=new p(t)),n.stream(e)},unparse:function(e,t){var i=!1,g=!0,m=",",y="\r\n",n='"',r=!1;"object"==typeof t&&("string"!=typeof t.delimiter||k.BAD_DELIMITERS.filter((function(e){return-1!==t.delimiter.indexOf(e)})).length||(m=t.delimiter),("boolean"==typeof t.quotes||Array.isArray(t.quotes))&&(i=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(r=t.skipEmptyLines),"string"==typeof t.newline&&(y=t.newline),"string"==typeof t.quoteChar&&(n=t.quoteChar),"boolean"==typeof t.header&&(g=t.header));var s=new RegExp(M(n),"g");if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return o(null,e,r);if("object"==typeof e[0])return o(a(e[0]),e,r)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:a(e.data[0])),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),o(e.fields||[],e.data||[],r);throw"exception: Unable to serialize unrecognized input";function a(e){if("object"!=typeof e)return[];var t=[];for(var r in e)t.push(r);return t}function o(e,t,r){var i="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var n=Array.isArray(e)&&0<e.length,s=!Array.isArray(t[0]);if(n&&g){for(var a=0;a<e.length;a++)0<a&&(i+=m),i+=v(e[a],a);0<t.length&&(i+=y)}for(var o=0;o<t.length;o++){var h=n?e.length:t[o].length,u=!1,f=n?0===Object.keys(t[o]).length:0===t[o].length;if(r&&!n&&(u="greedy"===r?""===t[o].join("").trim():1===t[o].length&&0===t[o][0].length),"greedy"===r&&n){for(var d=[],l=0;l<h;l++){var c=s?e[l]:l;d.push(t[o][c])}u=""===d.join("").trim()}if(!u){for(var p=0;p<h;p++){0<p&&!f&&(i+=m);var _=n&&s?e[p]:p;i+=v(t[o][_],p)}o<t.length-1&&(!r||0<h&&!f)&&(i+=y)}}return i}function v(e,t){return null==e?"":e.constructor===Date?JSON.stringify(e).slice(1,25):(e=e.toString().replace(s,n+n),"boolean"==typeof i&&i||Array.isArray(i)&&i[t]||function(e,t){for(var r=0;r<t.length;r++)if(-1<e.indexOf(t[r]))return!0;return!1}(e,k.BAD_DELIMITERS)||-1<e.indexOf(m)||" "===e.charAt(0)||" "===e.charAt(e.length-1)?n+e+n:e)}}};if(k.RECORD_SEP=String.fromCharCode(30),k.UNIT_SEP=String.fromCharCode(31),k.BYTE_ORDER_MARK="\ufeff",k.BAD_DELIMITERS=["\r","\n",'"',k.BYTE_ORDER_MARK],k.WORKERS_SUPPORTED=!n&&!!f.Worker,k.SCRIPT_PATH=null,k.NODE_STREAM_INPUT=1,k.LocalChunkSize=10485760,k.RemoteChunkSize=5242880,k.DefaultDelimiter=",",k.Parser=v,k.ParserHandle=r,k.NetworkStreamer=c,k.FileStreamer=p,k.StringStreamer=_,k.ReadableStreamStreamer=g,f.jQuery){var d=f.jQuery;d.fn.parse=function(o){var r=o.config||{},h=[];return this.each((function(e){if("INPUT"!==d(this).prop("tagName").toUpperCase()||"file"!==d(this).attr("type").toLowerCase()||!f.FileReader||!this.files||0===this.files.length)return!0;for(var t=0;t<this.files.length;t++)h.push({file:this.files[t],inputElem:this,instanceConfig:d.extend({},r)})})),e(),this;function e(){if(0!==h.length){var t,r,i,n=h[0];if(z(o.before)){var s=o.before(n.file,n.inputElem);if("object"==typeof s){if("abort"===s.action)return t=n.file,r=n.inputElem,i=s.reason,void(z(o.error)&&o.error({name:"AbortError"},t,r,i));if("skip"===s.action)return void u();"object"==typeof s.config&&(n.instanceConfig=d.extend(n.instanceConfig,s.config))}else if("skip"===s)return void u()}var a=n.instanceConfig.complete;n.instanceConfig.complete=function(e){z(a)&&a(e,n.file,n.inputElem),u()},k.parse(n.file,n.instanceConfig)}else z(o.complete)&&o.complete()}function u(){h.splice(0,1),e()}}}function l(e){this._handle=null,this._finished=!1,this._completed=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},function(e){var t=E(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new r(t),(this._handle.streamer=this)._config=t}.call(this,e),this.parseChunk=function(e,t){if(this.isFirstChunk&&z(this._config.beforeFirstChunk)){var r=this._config.beforeFirstChunk(e);void 0!==r&&(e=r)}this.isFirstChunk=!1;var i=this._partialLine+e;this._partialLine="";var n=this._handle.parse(i,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var s=n.meta.cursor;this._finished||(this._partialLine=i.substring(s-this._baseIndex),this._baseIndex=s),n&&n.data&&(this._rowCount+=n.data.length);var a=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(o)f.postMessage({results:n,workerId:k.WORKER_ID,finished:a});else if(z(this._config.chunk)&&!t){if(this._config.chunk(n,this._handle),this._handle.paused()||this._handle.aborted())return;n=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(n.data),this._completeResults.errors=this._completeResults.errors.concat(n.errors),this._completeResults.meta=n.meta),this._completed||!a||!z(this._config.complete)||n&&n.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),a||n&&n.meta.paused||this._nextChunk(),n}},this._sendError=function(e){z(this._config.error)?this._config.error(e):o&&this._config.error&&f.postMessage({workerId:k.WORKER_ID,error:e,finished:!1})}}function c(e){var i;(e=e||{}).chunkSize||(e.chunkSize=k.RemoteChunkSize),l.call(this,e),this._nextChunk=n?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(i=new XMLHttpRequest,this._config.withCredentials&&(i.withCredentials=this._config.withCredentials),n||(i.onload=w(this._chunkLoaded,this),i.onerror=w(this._chunkError,this)),i.open("GET",this._input,!n),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var t in e)i.setRequestHeader(t,e[t])}if(this._config.chunkSize){var r=this._start+this._config.chunkSize-1;i.setRequestHeader("Range","bytes="+this._start+"-"+r),i.setRequestHeader("If-None-Match","webkit-no-cache")}try{i.send()}catch(e){this._chunkError(e.message)}n&&0===i.status?this._chunkError():this._start+=this._config.chunkSize}},this._chunkLoaded=function(){4===i.readyState&&(i.status<200||400<=i.status?this._chunkError():(this._finished=!this._config.chunkSize||this._start>function(e){var t=e.getResponseHeader("Content-Range");return null===t?-1:parseInt(t.substr(t.lastIndexOf("/")+1))}(i),this.parseChunk(i.responseText)))},this._chunkError=function(e){var t=i.statusText||e;this._sendError(new Error(t))}}function p(e){var i,n;(e=e||{}).chunkSize||(e.chunkSize=k.LocalChunkSize),l.call(this,e);var s="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,s?((i=new FileReader).onload=w(this._chunkLoaded,this),i.onerror=w(this._chunkError,this)):i=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input;if(this._config.chunkSize){var t=Math.min(this._start+this._config.chunkSize,this._input.size);e=n.call(e,this._start,t)}var r=i.readAsText(e,this._config.encoding);s||this._chunkLoaded({target:{result:r}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(i.error)}}function _(e){var r;l.call(this,e=e||{}),this.stream=function(e){return r=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e=this._config.chunkSize,t=e?r.substr(0,e):r;return r=e?r.substr(e):"",this._finished=!r,this.parseChunk(t)}}}function g(e){l.call(this,e=e||{});var t=[],r=!0,i=!1;this.pause=function(){l.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){l.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){i&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):r=!0},this._streamData=w((function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),r&&(r=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}}),this),this._streamError=w((function(e){this._streamCleanUp(),this._sendError(e)}),this),this._streamEnd=w((function(){this._streamCleanUp(),i=!0,this._streamData("")}),this),this._streamCleanUp=w((function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)}),this)}function r(g){var a,o,h,i=/^\s*-?(\d*\.?\d+|\d+\.?\d*)(e[-+]?\d+)?\s*$/i,n=/(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))/,t=this,r=0,s=0,u=!1,e=!1,f=[],d={data:[],errors:[],meta:{}};if(z(g.step)){var l=g.step;g.step=function(e){if(d=e,p())c();else{if(c(),0===d.data.length)return;r+=e.data.length,g.preview&&r>g.preview?o.abort():l(d,t)}}}function m(e){return"greedy"===g.skipEmptyLines?""===e.join("").trim():1===e.length&&0===e[0].length}function c(){if(d&&h&&(y("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+k.DefaultDelimiter+"'"),h=!1),g.skipEmptyLines)for(var e=0;e<d.data.length;e++)m(d.data[e])&&d.data.splice(e--,1);return p()&&function(){if(d){for(var e=0;p()&&e<d.data.length;e++)for(var t=0;t<d.data[e].length;t++){var r=d.data[e][t];g.trimHeaders&&(r=r.trim()),f.push(r)}d.data.splice(0,1)}}(),function(){if(!d||!g.header&&!g.dynamicTyping&&!g.transform)return d;for(var e=0;e<d.data.length;e++){var t,r=g.header?{}:[];for(t=0;t<d.data[e].length;t++){var i=t,n=d.data[e][t];g.header&&(i=t>=f.length?"__parsed_extra":f[t]),g.transform&&(n=g.transform(n,i)),n=_(i,n),"__parsed_extra"===i?(r[i]=r[i]||[],r[i].push(n)):r[i]=n}d.data[e]=r,g.header&&(t>f.length?y("FieldMismatch","TooManyFields","Too many fields: expected "+f.length+" fields but parsed "+t,s+e):t<f.length&&y("FieldMismatch","TooFewFields","Too few fields: expected "+f.length+" fields but parsed "+t,s+e))}return g.header&&d.meta&&(d.meta.fields=f),s+=d.data.length,d}()}function p(){return g.header&&0===f.length}function _(e,t){return r=e,g.dynamicTypingFunction&&void 0===g.dynamicTyping[r]&&(g.dynamicTyping[r]=g.dynamicTypingFunction(r)),!0===(g.dynamicTyping[r]||g.dynamicTyping)?"true"===t||"TRUE"===t||"false"!==t&&"FALSE"!==t&&(i.test(t)?parseFloat(t):n.test(t)?new Date(t):""===t?null:t):t;var r}function y(e,t,r,i){d.errors.push({type:e,code:t,message:r,row:i})}this.parse=function(e,t,r){var i=g.quoteChar||'"';if(g.newline||(g.newline=function(e,t){e=e.substr(0,1048576);var r=new RegExp(M(t)+"([^]*?)"+M(t),"gm"),i=(e=e.replace(r,"")).split("\r"),n=e.split("\n"),s=1<n.length&&n[0].length<i[0].length;if(1===i.length||s)return"\n";for(var a=0,o=0;o<i.length;o++)"\n"===i[o][0]&&a++;return a>=i.length/2?"\r\n":"\r"}(e,i)),h=!1,g.delimiter)z(g.delimiter)&&(g.delimiter=g.delimiter(e),d.meta.delimiter=g.delimiter);else{var n=function(e,t,r,i){for(var n,s,a,o=[",","\t","|",";",k.RECORD_SEP,k.UNIT_SEP],h=0;h<o.length;h++){var u=o[h],f=0,d=0,l=0;a=void 0;for(var c=new v({comments:i,delimiter:u,newline:t,preview:10}).parse(e),p=0;p<c.data.length;p++)if(r&&m(c.data[p]))l++;else{var _=c.data[p].length;d+=_,void 0!==a?1<_&&(f+=Math.abs(_-a),a=_):a=0}0<c.data.length&&(d/=c.data.length-l),(void 0===s||s<f)&&1.99<d&&(s=f,n=u)}return{successful:!!(g.delimiter=n),bestDelimiter:n}}(e,g.newline,g.skipEmptyLines,g.comments);n.successful?g.delimiter=n.bestDelimiter:(h=!0,g.delimiter=k.DefaultDelimiter),d.meta.delimiter=g.delimiter}var s=E(g);return g.preview&&g.header&&s.preview++,a=e,o=new v(s),d=o.parse(a,t,r),c(),u?{meta:{paused:!0}}:d||{meta:{paused:!1}}},this.paused=function(){return u},this.pause=function(){u=!0,o.abort(),a=a.substr(o.getCharIndex())},this.resume=function(){u=!1,t.streamer.parseChunk(a,!0)},this.aborted=function(){return e},this.abort=function(){e=!0,o.abort(),d.meta.aborted=!0,z(g.complete)&&g.complete(d),a=""}}function M(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function v(e){var S,O=(e=e||{}).delimiter,x=e.newline,T=e.comments,I=e.step,A=e.preview,D=e.fastMode,L=S=void 0===e.quoteChar?'"':e.quoteChar;if(void 0!==e.escapeChar&&(L=e.escapeChar),("string"!=typeof O||-1<k.BAD_DELIMITERS.indexOf(O))&&(O=","),T===O)throw"Comment character same as delimiter";!0===T?T="#":("string"!=typeof T||-1<k.BAD_DELIMITERS.indexOf(T))&&(T=!1),"\n"!==x&&"\r"!==x&&"\r\n"!==x&&(x="\n");var P=0,F=!1;this.parse=function(i,t,r){if("string"!=typeof i)throw"Input must be a string";var n=i.length,e=O.length,s=x.length,a=T.length,o=z(I),h=[],u=[],f=[],d=P=0;if(!i)return C();if(D||!1!==D&&-1===i.indexOf(S)){for(var l=i.split(x),c=0;c<l.length;c++){if(f=l[c],P+=f.length,c!==l.length-1)P+=x.length;else if(r)return C();if(!T||f.substr(0,a)!==T){if(o){if(h=[],k(f.split(O)),R(),F)return C()}else k(f.split(O));if(A&&A<=c)return h=h.slice(0,A),C(!0)}}return C()}for(var p,_=i.indexOf(O,P),g=i.indexOf(x,P),m=new RegExp(M(L)+M(S),"g");;)if(i[P]!==S)if(T&&0===f.length&&i.substr(P,a)===T){if(-1===g)return C();P=g+s,g=i.indexOf(x,P),_=i.indexOf(O,P)}else if(-1!==_&&(_<g||-1===g))f.push(i.substring(P,_)),P=_+e,_=i.indexOf(O,P);else{if(-1===g)break;if(f.push(i.substring(P,g)),w(g+s),o&&(R(),F))return C();if(A&&h.length>=A)return C(!0)}else for(p=P,P++;;){if(-1===(p=i.indexOf(S,p+1)))return r||u.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:h.length,index:P}),E();if(p===n-1)return E(i.substring(P,p).replace(m,S));if(S!==L||i[p+1]!==L){if(S===L||0===p||i[p-1]!==L){var y=b(-1===g?_:Math.min(_,g));if(i[p+1+y]===O){f.push(i.substring(P,p).replace(m,S)),P=p+1+y+e,_=i.indexOf(O,P),g=i.indexOf(x,P);break}var v=b(g);if(i.substr(p+1+v,s)===x){if(f.push(i.substring(P,p).replace(m,S)),w(p+1+v+s),_=i.indexOf(O,P),o&&(R(),F))return C();if(A&&h.length>=A)return C(!0);break}u.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:h.length,index:P}),p++}}else p++}return E();function k(e){h.push(e),d=P}function b(e){var t=0;if(-1!==e){var r=i.substring(p+1,e);r&&""===r.trim()&&(t=r.length)}return t}function E(e){return r||(void 0===e&&(e=i.substr(P)),f.push(e),P=n,k(f),o&&R()),C()}function w(e){P=e,k(f),f=[],g=i.indexOf(x,P)}function C(e){return{data:h,errors:u,meta:{delimiter:O,linebreak:x,aborted:F,truncated:!!e,cursor:d+(t||0)}}}function R(){I(C()),h=[],u=[]}},this.abort=function(){F=!0},this.getCharIndex=function(){return P}}function m(e){var t=e.data,r=h[t.workerId],i=!1;if(t.error)r.userError(t.error,t.file);else if(t.results&&t.results.data){var n={abort:function(){i=!0,y(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:b,resume:b};if(z(r.userStep)){for(var s=0;s<t.results.data.length&&(r.userStep({data:[t.results.data[s]],errors:t.results.errors,meta:t.results.meta},n),!i);s++);delete t.results}else z(r.userChunk)&&(r.userChunk(t.results,n,t.file),delete t.results)}t.finished&&!i&&y(t.workerId,t.results)}function y(e,t){var r=h[e];z(r.userComplete)&&r.userComplete(t),r.terminate(),delete h[e]}function b(){throw"Not implemented."}function E(e){if("object"!=typeof e||null===e)return e;var t=Array.isArray(e)?[]:{};for(var r in e)t[r]=E(e[r]);return t}function w(e,t){return function(){e.apply(t,arguments)}}function z(e){return"function"==typeof e}return o?f.onmessage=function(e){var t=e.data;if(void 0===k.WORKER_ID&&t&&(k.WORKER_ID=t.workerId),"string"==typeof t.input)f.postMessage({workerId:k.WORKER_ID,results:k.parse(t.input,t.config),finished:!0});else if(f.File&&t.input instanceof File||t.input instanceof Object){var r=k.parse(t.input,t.config);r&&f.postMessage({workerId:k.WORKER_ID,results:r,finished:!0})}}:k.WORKERS_SUPPORTED&&(e=document.getElementsByTagName("script"),s=e.length?e[e.length-1].src:"",document.body?document.addEventListener("DOMContentLoaded",(function(){a=!0}),!0):a=!0),(c.prototype=Object.create(l.prototype)).constructor=c,(p.prototype=Object.create(l.prototype)).constructor=p,(_.prototype=Object.create(_.prototype)).constructor=_,(g.prototype=Object.create(l.prototype)).constructor=g,k})?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__)||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},function(module,exports){module.exports=function(it){return"object"==typeof it?null!==it:"function"==typeof it}},function(module,exports){module.exports=function(it){if(null==it)throw TypeError("Can't call method on "+it);return it}},function(module,exports,__webpack_require__){var toInteger=__webpack_require__(16),min=Math.min;module.exports=function(it){return it>0?min(toInteger(it),9007199254740991):0}},function(module,exports){var ceil=Math.ceil,floor=Math.floor;module.exports=function(it){return isNaN(it=+it)?0:(it>0?floor:ceil)(it)}},function(module,exports,__webpack_require__){module.exports=!__webpack_require__(7)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(module,exports,__webpack_require__){var global=__webpack_require__(5),hide=__webpack_require__(6),has=__webpack_require__(19),SRC=__webpack_require__(29)("src"),$toString=__webpack_require__(60),TPL=(""+$toString).split("toString");__webpack_require__(28).inspectSource=function(it){return $toString.call(it)},(module.exports=function(O,key,val,safe){var isFunction="function"==typeof val;isFunction&&(has(val,"name")||hide(val,"name",key)),O[key]!==val&&(isFunction&&(has(val,SRC)||hide(val,SRC,O[key]?""+O[key]:TPL.join(String(key)))),O===global?O[key]=val:safe?O[key]?O[key]=val:hide(O,key,val):(delete O[key],hide(O,key,val)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[SRC]||$toString.call(this)}))},function(module,exports){var hasOwnProperty={}.hasOwnProperty;module.exports=function(it,key){return hasOwnProperty.call(it,key)}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__(35);var papaparse__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(12),papaparse__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(papaparse__WEBPACK_IMPORTED_MODULE_1__);const jsonFormatter={initDataValue:()=>[],initRowValue:()=>({}),initColumnValue:(data,row,colName)=>row[colName]=[],setColumnValue:(data,row,colName,value)=>row[colName]=value,addColumnValue:(data,row,colName,value)=>row[colName].unshift(value),addRow:(data,row)=>data.push(row),formatData:data=>data,slice:(data,start)=>data.slice(start)},csvFormatter=Object.assign({},jsonFormatter,{addColumnValue:(data,row,colName,value)=>row[colName.split("|").join(",")].unshift(value),setColumnValue:(data,row,colName,value)=>row[colName.split("|").join(",")]=value,formatData:(data,config)=>papaparse__WEBPACK_IMPORTED_MODULE_1___default.a.unparse(data,config)}),jsonTableFormatter={initDataValue:()=>new Object,initRowValue:()=>{},setColumnValue:(data,row,colName,value)=>{data[colName]=data[colName]||[],data[colName].push(value)},addColumnValue:(data,row,colName,value)=>{data[colName]=data[colName]||[],data[colName][data[colName].length-1].unshift(value)},initColumnValue:(data,row,colName)=>{data[colName]=data[colName]||[],data[colName].push([])},addRow:()=>{},formatData:data=>data,slice:(data,start)=>{let new_data={};for(let x in data)new_data[x]=data[x].slice(start);return new_data}};__webpack_exports__.a={jsonFormatter:jsonFormatter,jsonTableFormatter:jsonTableFormatter,csvFormatter:csvFormatter}},function(module,exports){var g;g=function(){return this}();try{g=g||new Function("return this")()}catch(e){"object"==typeof window&&(g=window)}module.exports=g},function(module,exports){var cachedSetTimeout,cachedClearTimeout,process=module.exports={};function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(fun){if(cachedSetTimeout===setTimeout)return setTimeout(fun,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,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(){try{cachedSetTimeout="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){cachedSetTimeout=defaultSetTimout}try{cachedClearTimeout="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){cachedClearTimeout=defaultClearTimeout}}();var currentQueue,queue=[],draining=!1,queueIndex=-1;function cleanUpNextTick(){draining&&currentQueue&&(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var timeout=runTimeout(cleanUpNextTick);draining=!0;for(var len=queue.length;len;){for(currentQueue=queue,queue=[];++queueIndex<len;)currentQueue&&currentQueue[queueIndex].run();queueIndex=-1,len=queue.length}currentQueue=null,draining=!1,function(marker){if(cachedClearTimeout===clearTimeout)return clearTimeout(marker);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(marker);try{cachedClearTimeout(marker)}catch(e){try{return cachedClearTimeout.call(null,marker)}catch(e){return cachedClearTimeout.call(this,marker)}}}(timeout)}}function Item(fun,array){this.fun=fun,this.array=array}function noop(){}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)),1!==queue.length||draining||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},process.title="browser",process.browser=!0,process.env={},process.argv=[],process.version="",process.versions={},process.on=noop,process.addListener=noop,process.once=noop,process.off=noop,process.removeListener=noop,process.removeAllListeners=noop,process.emit=noop,process.prependListener=noop,process.prependOnceListener=noop,process.listeners=function(name){return[]},process.binding=function(name){throw new Error("process.binding is not supported")},process.cwd=function(){return"/"},process.chdir=function(dir){throw new Error("process.chdir is not supported")},process.umask=function(){return 0}},function(module,exports,__webpack_require__){var defined=__webpack_require__(14);module.exports=function(it){return Object(defined(it))}},function(module,exports,__webpack_require__){"use strict";var at=__webpack_require__(54)(!0);module.exports=function(S,index,unicode){return index+(unicode?at(S,index).length:1)}},function(module,exports,__webpack_require__){"use strict";var classof=__webpack_require__(55),builtinExec=RegExp.prototype.exec;module.exports=function(R,S){var exec=R.exec;if("function"==typeof exec){var result=exec.call(R,S);if("object"!=typeof result)throw new TypeError("RegExp exec method returned something other than an Object or null");return result}if("RegExp"!==classof(R))throw new TypeError("RegExp#exec called on incompatible receiver");return builtinExec.call(R,S)}},function(module,exports){var toString={}.toString;module.exports=function(it){return toString.call(it).slice(8,-1)}},function(module,exports,__webpack_require__){var core=__webpack_require__(28),global=__webpack_require__(5),store=global["__core-js_shared__"]||(global["__core-js_shared__"]={});(module.exports=function(key,value){return store[key]||(store[key]=void 0!==value?value:{})})("versions",[]).push({version:core.version,mode:__webpack_require__(42)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(module,exports){var core=module.exports={version:"2.6.10"};"number"==typeof __e&&(__e=core)},function(module,exports){var id=0,px=Math.random();module.exports=function(key){return"Symbol(".concat(void 0===key?"":key,")_",(++id+px).toString(36))}},function(module,exports,__webpack_require__){"use strict";__webpack_require__(56);var redefine=__webpack_require__(18),hide=__webpack_require__(6),fails=__webpack_require__(7),defined=__webpack_require__(14),wks=__webpack_require__(2),regexpExec=__webpack_require__(31),SPECIES=wks("species"),REPLACE_SUPPORTS_NAMED_GROUPS=!fails((function(){var re=/./;return re.exec=function(){var result=[];return result.groups={a:"7"},result},"7"!=="".replace(re,"$<a>")})),SPLIT_WORKS_WITH_OVERWRITTEN_EXEC=function(){var re=/(?:)/,originalExec=re.exec;re.exec=function(){return originalExec.apply(this,arguments)};var result="ab".split(re);return 2===result.length&&"a"===result[0]&&"b"===result[1]}();module.exports=function(KEY,length,exec){var SYMBOL=wks(KEY),DELEGATES_TO_SYMBOL=!fails((function(){var O={};return O[SYMBOL]=function(){return 7},7!=""[KEY](O)})),DELEGATES_TO_EXEC=DELEGATES_TO_SYMBOL?!fails((function(){var execCalled=!1,re=/a/;return re.exec=function(){return execCalled=!0,null},"split"===KEY&&(re.constructor={},re.constructor[SPECIES]=function(){return re}),re[SYMBOL](""),!execCalled})):void 0;if(!DELEGATES_TO_SYMBOL||!DELEGATES_TO_EXEC||"replace"===KEY&&!REPLACE_SUPPORTS_NAMED_GROUPS||"split"===KEY&&!SPLIT_WORKS_WITH_OVERWRITTEN_EXEC){var nativeRegExpMethod=/./[SYMBOL],fns=exec(defined,SYMBOL,""[KEY],(function(nativeMethod,regexp,str,arg2,forceStringMethod){return regexp.exec===regexpExec?DELEGATES_TO_SYMBOL&&!forceStringMethod?{done:!0,value:nativeRegExpMethod.call(regexp,str,arg2)}:{done:!0,value:nativeMethod.call(str,regexp,arg2)}:{done:!1}})),strfn=fns[0],rxfn=fns[1];redefine(String.prototype,KEY,strfn),hide(RegExp.prototype,SYMBOL,2==length?function(string,arg){return rxfn.call(string,this,arg)}:function(string){return rxfn.call(string,this)})}}},function(module,exports,__webpack_require__){"use strict";var re1,re2,regexpFlags=__webpack_require__(57),nativeExec=RegExp.prototype.exec,nativeReplace=String.prototype.replace,patchedExec=nativeExec,UPDATES_LAST_INDEX_WRONG=(re1=/a/,re2=/b*/g,nativeExec.call(re1,"a"),nativeExec.call(re2,"a"),0!==re1.lastIndex||0!==re2.lastIndex),NPCG_INCLUDED=void 0!==/()??/.exec("")[1];(UPDATES_LAST_INDEX_WRONG||NPCG_INCLUDED)&&(patchedExec=function(str){var lastIndex,reCopy,match,i,re=this;return NPCG_INCLUDED&&(reCopy=new RegExp("^"+re.source+"$(?!\\s)",regexpFlags.call(re))),UPDATES_LAST_INDEX_WRONG&&(lastIndex=re.lastIndex),match=nativeExec.call(re,str),UPDATES_LAST_INDEX_WRONG&&match&&(re.lastIndex=re.global?match.index+match[0].length:lastIndex),NPCG_INCLUDED&&match&&match.length>1&&nativeReplace.call(match[0],reCopy,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(match[i]=void 0)})),match}),module.exports=patchedExec},function(module,exports,__webpack_require__){var global=__webpack_require__(5),core=__webpack_require__(28),hide=__webpack_require__(6),redefine=__webpack_require__(18),ctx=__webpack_require__(61),$export=function(type,name,source){var key,own,out,exp,IS_FORCED=type&$export.F,IS_GLOBAL=type&$export.G,IS_STATIC=type&$export.S,IS_PROTO=type&$export.P,IS_BIND=type&$export.B,target=IS_GLOBAL?global:IS_STATIC?global[name]||(global[name]={}):(global[name]||{}).prototype,exports=IS_GLOBAL?core:core[name]||(core[name]={}),expProto=exports.prototype||(exports.prototype={});for(key in IS_GLOBAL&&(source=name),source)out=((own=!IS_FORCED&&target&&void 0!==target[key])?target:source)[key],exp=IS_BIND&&own?ctx(out,global):IS_PROTO&&"function"==typeof out?ctx(Function.call,out):out,target&&redefine(target,key,out,type&$export.U),exports[key]!=out&&hide(exports,key,exp),IS_PROTO&&expProto[key]!=out&&(expProto[key]=out)};global.core=core,$export.F=1,$export.G=2,$export.S=4,$export.P=8,$export.B=16,$export.W=32,$export.U=64,$export.R=128,module.exports=$export},function(module,exports,__webpack_require__){var anObject=__webpack_require__(3),IE8_DOM_DEFINE=__webpack_require__(58),toPrimitive=__webpack_require__(59),dP=Object.defineProperty;exports.f=__webpack_require__(17)?Object.defineProperty:function(O,P,Attributes){if(anObject(O),P=toPrimitive(P,!0),anObject(Attributes),IE8_DOM_DEFINE)try{return dP(O,P,Attributes)}catch(e){}if("get"in Attributes||"set"in Attributes)throw TypeError("Accessors not supported!");return"value"in Attributes&&(O[P]=Attributes.value),O}},function(module,exports){module.exports=function(it){if("function"!=typeof it)throw TypeError(it+" is not a function!");return it}},function(module,exports,__webpack_require__){"use strict";var isRegExp=__webpack_require__(62),anObject=__webpack_require__(3),speciesConstructor=__webpack_require__(63),advanceStringIndex=__webpack_require__(24),toLength=__webpack_require__(15),callRegExpExec=__webpack_require__(25),regexpExec=__webpack_require__(31),fails=__webpack_require__(7),$min=Math.min,$push=[].push,SUPPORTS_Y=!fails((function(){RegExp(4294967295,"y")}));__webpack_require__(30)("split",2,(function(defined,SPLIT,$split,maybeCallNative){var internalSplit;return internalSplit="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(separator,limit){var string=String(this);if(void 0===separator&&0===limit)return[];if(!isRegExp(separator))return $split.call(string,separator,limit);for(var match,lastIndex,lastLength,output=[],flags=(separator.ignoreCase?"i":"")+(separator.multiline?"m":"")+(separator.unicode?"u":"")+(separator.sticky?"y":""),lastLastIndex=0,splitLimit=void 0===limit?4294967295:limit>>>0,separatorCopy=new RegExp(separator.source,flags+"g");(match=regexpExec.call(separatorCopy,string))&&!((lastIndex=separatorCopy.lastIndex)>lastLastIndex&&(output.push(string.slice(lastLastIndex,match.index)),match.length>1&&match.index<string.length&&$push.apply(output,match.slice(1)),lastLength=match[0].length,lastLastIndex=lastIndex,output.length>=splitLimit));)separatorCopy.lastIndex===match.index&&separatorCopy.lastIndex++;return lastLastIndex===string.length?!lastLength&&separatorCopy.test("")||output.push(""):output.push(string.slice(lastLastIndex)),output.length>splitLimit?output.slice(0,splitLimit):output}:"0".split(void 0,0).length?function(separator,limit){return void 0===separator&&0===limit?[]:$split.call(this,separator,limit)}:$split,[function(separator,limit){var O=defined(this),splitter=null==separator?void 0:separator[SPLIT];return void 0!==splitter?splitter.call(separator,O,limit):internalSplit.call(String(O),separator,limit)},function(regexp,limit){var res=maybeCallNative(internalSplit,regexp,this,limit,internalSplit!==$split);if(res.done)return res.value;var rx=anObject(regexp),S=String(this),C=speciesConstructor(rx,RegExp),unicodeMatching=rx.unicode,flags=(rx.ignoreCase?"i":"")+(rx.multiline?"m":"")+(rx.unicode?"u":"")+(SUPPORTS_Y?"y":"g"),splitter=new C(SUPPORTS_Y?rx:"^(?:"+rx.source+")",flags),lim=void 0===limit?4294967295:limit>>>0;if(0===lim)return[];if(0===S.length)return null===callRegExpExec(splitter,S)?[S]:[];for(var p=0,q=0,A=[];q<S.length;){splitter.lastIndex=SUPPORTS_Y?q:0;var e,z=callRegExpExec(splitter,SUPPORTS_Y?S:S.slice(q));if(null===z||(e=$min(toLength(splitter.lastIndex+(SUPPORTS_Y?0:q)),S.length))===p)q=advanceStringIndex(S,q,unicodeMatching);else{if(A.push(S.slice(p,q)),A.length===lim)return A;for(var i=1;i<=z.length-1;i++)if(A.push(z[i]),A.length===lim)return A;q=p=e}}return A.push(S.slice(p)),A}]}))},function(module,exports){module.exports={}},function(module,exports,__webpack_require__){var IObject=__webpack_require__(67),defined=__webpack_require__(14);module.exports=function(it){return IObject(defined(it))}},function(module,exports,__webpack_require__){var shared=__webpack_require__(27)("keys"),uid=__webpack_require__(29);module.exports=function(key){return shared[key]||(shared[key]=uid(key))}},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(process,__dirname){var _scriptDir,load_perspective=(_scriptDir="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,function(load_perspective){var e;load_perspective=load_perspective||{},e||(e=void 0!==load_perspective?load_perspective:{});var k,aa={};for(k in e)e.hasOwnProperty(k)&&(aa[k]=e[k]);var ba=[],ca="./this.program";function da(a,b){throw b}var q=!1,r=!1,ea=!1,ia=!1;q="object"==typeof window,r="function"==typeof importScripts,ea="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node&&!q&&!r,ia=!q&&!ea&&!r;var ja,ka,la,ma,t="";ea?(t=__dirname+"/",ja=function(a,b){return la||(la=__webpack_require__(51)),ma||(ma=__webpack_require__(52)),a=ma.normalize(a),a=la.readFileSync(a),b?a:a.toString()},ka=function(a){return(a=ja(a,!0)).buffer||(a=new Uint8Array(a)),a.buffer||u("Assertion failed: undefined"),a},1<process.argv.length&&(ca=process.argv[1].replace(/\\/g,"/")),ba=process.argv.slice(2),process.on("uncaughtException",(function(a){if(!(a instanceof na))throw a})),process.on("unhandledRejection",u),da=function(a){process.exit(a)},e.inspect=function(){return"[Emscripten Module object]"}):ia?("undefined"!=typeof read&&(ja=function(a){return read(a)}),ka=function(a){return"function"==typeof readbuffer?new Uint8Array(readbuffer(a)):("object"==typeof(a=read(a,"binary"))||u("Assertion failed: undefined"),a)},"undefined"!=typeof scriptArgs?ba=scriptArgs:void 0!==arguments&&(ba=arguments),"function"==typeof quit&&(da=function(a){quit(a)}),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(q||r)&&(r?t=self.location.href:document.currentScript&&(t=document.currentScript.src),_scriptDir&&(t=_scriptDir),t=0!==t.indexOf("blob:")?t.substr(0,t.lastIndexOf("/")+1):"",ja=function(a){var b=new XMLHttpRequest;return b.open("GET",a,!1),b.send(null),b.responseText},r&&(ka=function(a){var b=new XMLHttpRequest;return b.open("GET",a,!1),b.responseType="arraybuffer",b.send(null),new Uint8Array(b.response)}));var sa,ta,oa=e.print||console.log.bind(console),v=e.printErr||console.warn.bind(console);for(k in aa)aa.hasOwnProperty(k)&&(e[k]=aa[k]);function pa(a){var b=x[qa>>2];return(a=b+a+15&-16)>ra()&&u(),x[qa>>2]=a,b}aa=null,e.arguments&&(ba=e.arguments),e.thisProgram&&(ca=e.thisProgram),e.quit&&(da=e.quit),e.wasmBinary&&(sa=e.wasmBinary),e.noExitRuntime&&(ta=e.noExitRuntime),"object"!=typeof WebAssembly&&v("no native wasm support detected");var y,buffer,B,A,Da,Ea,x,C,Fa,Ga,ua=new WebAssembly.Table({initial:2034,maximum:2034,element:"anyfunc"}),va=!1,wa="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function xa(a,b,c){var d=b+c;for(c=b;a[c]&&!(c>=d);)++c;if(16<c-b&&a.subarray&&wa)return wa.decode(a.subarray(b,c));for(d="";b<c;){var f=a[b++];if(128&f){var g=63&a[b++];if(192==(224&f))d+=String.fromCharCode((31&f)<<6|g);else{var h=63&a[b++];65536>(f=224==(240&f)?(15&f)<<12|g<<6|h:(7&f)<<18|g<<12|h<<6|63&a[b++])?d+=String.fromCharCode(f):(f-=65536,d+=String.fromCharCode(55296|f>>10,56320|1023&f))}}else d+=String.fromCharCode(f)}return d}function z(a){return a?xa(A,a,void 0):""}function ya(a,b,c,d){if(0<d){d=c+d-1;for(var f=0;f<a.length;++f){var g=a.charCodeAt(f);if(55296<=g&&57343>=g&&(g=65536+((1023&g)<<10)|1023&a.charCodeAt(++f)),127>=g){if(c>=d)break;b[c++]=g}else{if(2047>=g){if(c+1>=d)break;b[c++]=192|g>>6}else{if(65535>=g){if(c+2>=d)break;b[c++]=224|g>>12}else{if(c+3>=d)break;b[c++]=240|g>>18,b[c++]=128|g>>12&63}b[c++]=128|g>>6&63}b[c++]=128|63&g}}b[c]=0}}function za(a){for(var b=0,c=0;c<a.length;++c){var d=a.charCodeAt(c);55296<=d&&57343>=d&&(d=65536+((1023&d)<<10)|1023&a.charCodeAt(++c)),127>=d?++b:b=2047>=d?b+2:65535>=d?b+3:b+4}return b}function Aa(a){var b=za(a)+1,c=Ba(b);return ya(a,B,c,b),c}function Ca(a){return 0<a%65536&&(a+=65536-a%65536),a}function Ha(a){buffer=a,e.HEAP8=B=new Int8Array(a),e.HEAP16=Da=new Int16Array(a),e.HEAP32=x=new Int32Array(a),e.HEAPU8=A=new Uint8Array(a),e.HEAPU16=Ea=new Uint16Array(a),e.HEAPU32=C=new Uint32Array(a),e.HEAPF32=Fa=new Float32Array(a),e.HEAPF64=Ga=new Float64Array(a)}"undefined"!=typeof TextDecoder&&new TextDecoder("utf-16le");var qa=95376,Ia=e.TOTAL_MEMORY||16777216;function Ja(a){for(;0<a.length;){var b=a.shift();if("function"==typeof b)b();else{var c=b.U;"number"==typeof c?void 0===b.G?e.dynCall_v(c):e.dynCall_vi(c,b.G):c(void 0===b.G?null:b.G)}}}(y=e.wasmMemory?e.wasmMemory:new WebAssembly.Memory({initial:Ia/65536}))&&(buffer=y.buffer),Ia=buffer.byteLength,Ha(buffer),x[qa>>2]=5338448;var Ka=[],La=[],Ma=[],Na=[],Oa=[],Pa=!1;function Qa(){var a=e.preRun.shift();Ka.unshift(a)}var D=0,Ra=null,Sa=null;function u(a){throw e.onAbort&&e.onAbort(a),oa(a),v(a),va=!0,"abort("+a+"). Build with -s ASSERTIONS=1 for more info."}function Ta(){var a=E;return String.prototype.startsWith?a.startsWith("data:application/octet-stream;base64,"):0===a.indexOf("data:application/octet-stream;base64,")}e.preloadedImages={},e.preloadedAudios={};var E="psp.async.wasm";if(!Ta()){var Ua=E;E=e.locateFile?e.locateFile(Ua,t):t+Ua}function Va(){try{if(sa)return new Uint8Array(sa);if(ka)return ka(E);throw"both async and sync fetching of the wasm failed"}catch(a){u(a)}}function Wa(){return sa||!q&&!r||"function"!=typeof fetch?new Promise((function(a){a(Va())})):fetch(E,{credentials:"same-origin"}).then((function(a){if(!a.ok)throw"failed to load wasm binary file at '"+E+"'";return a.arrayBuffer()})).catch((function(){return Va()}))}var Xa=[function(){throw Error("abort()")},function(){if("undefined"!=typeof self)try{if(self.dispatchEvent&&!self.m&&null!==self.document){self.m=!0;var a=self.document.createEvent("Event");a.initEvent("perspective-ready",!1,!0),self.dispatchEvent(a)}else!self.document&&self.postMessage&&self.postMessage({})}catch(b){}}];function Za(a){return a.replace(/\b_Z[\w\d_]+/g,(function(a){return a==a?a:a+" ["+a+"]"}))}function $a(){var a=Error();if(!a.stack){try{throw Error(0)}catch(b){a=b}if(!a.stack)return"(no stack trace available)"}return a.stack.toString()}La.push({U:function(){Ya()}});var F={};function ab(a){if(ab.m)var b=x[a>>2],c=x[b>>2];else ab.m=!0,F.USER=F.LOGNAME="web_user",F.PATH="/",F.PWD="/",F.HOME="/home/web_user",F.LANG=("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",F._=ca,c=Pa?G(1024):pa(1024),b=Pa?G(256):pa(256),x[b>>2]=c,x[a>>2]=b;a=[];var f,d=0;for(f in F)if("string"==typeof F[f]){var g=f+"="+F[f];a.push(g),d+=g.length}if(1024<d)throw Error("Environment size exceeded TOTAL_ENV_SIZE!");for(f=0;f<a.length;f++){d=g=a[f];for(var h=c,l=0;l<d.length;++l)B[h++>>0]=d.charCodeAt(l);B[h>>0]=0,x[b+4*f>>2]=c,c+=g.length+1}x[b+4*a.length>>2]=0}function bb(a,b){Na.unshift({U:a,G:b})}function cb(a){return e.___errno_location&&(x[e.___errno_location()>>2]=a),a}var db=[null,[],[]];function eb(a,b){var c=db[a];0===b||10===b?((1===a?oa:v)(xa(c,0)),c.length=0):c.push(b)}var H=0;function I(){return x[(H+=4)-4>>2]}var J={};function fb(a,b,c){var d,f=(a|=0)+(c|=0)|0;if(b=255&(0|b),67<=(0|c)){for(;0!=(3&a);)B[a>>0]=b,a=a+1|0;var g=-4&f|0,h=b|b<<8|b<<16|b<<24;for(d=g-64|0;(0|a)<=(0|d);)x[a>>2]=h,x[a+4>>2]=h,x[a+8>>2]=h,x[a+12>>2]=h,x[a+16>>2]=h,x[a+20>>2]=h,x[a+24>>2]=h,x[a+28>>2]=h,x[a+32>>2]=h,x[a+36>>2]=h,x[a+40>>2]=h,x[a+44>>2]=h,x[a+48>>2]=h,x[a+52>>2]=h,x[a+56>>2]=h,x[a+60>>2]=h,a=a+64|0;for(;(0|a)<(0|g);)x[a>>2]=h,a=a+4|0}for(;(0|a)<(0|f);)B[a>>0]=b,a=a+1|0;return f-c|0}function gb(a,b,c,d,f,g){if(g<<=12,0!=(16&d)&&0!=a%16384)return-22;if(0!=(32&d)){if(!(a=hb(16384,b)))return-12;fb(a,0,b),c=!0}else{var h=(void 0).da(f);if(!h)return-9;a=(c=(void 0).za(h,A,a,b,g,c,d)).c,c=c.R}return J.W[a]={ka:a,ja:b,R:c,fd:f,flags:d},a}function ib(a,b){if(-1===a||0===b)return-22;var c=J.W[a];if(!c)return 0;if(b===c.ja){var d=(void 0).da(c.fd);J.wa(a,d,b,c.flags),(void 0).Aa(d),J.W[a]=null,c.R&&K(c.ka)}return 0}function jb(a,b,c,d){try{for(var f=0,g=0;g<c;g++){for(var h=x[b+8*g>>2],l=x[b+(8*g+4)>>2],n=0;n<l;n++)eb(a,A[h+n]);f+=l}return x[d>>2]=f,0}catch(m){return u(m),-m.u}}var kb={};function lb(a){for(;a.length;){var b=a.pop();a.pop()(b)}}function L(a){return this.fromWireType(C[a>>2])}var M={},N={},mb={};function nb(a){if(void 0===a)return"_unknown";var b=(a=a.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return 48<=b&&57>=b?"_"+a:a}function ob(a,b){return a=nb(a),new Function("body","return function "+a+'() {\n "use strict"; return body.apply(this, arguments);\n};\n')(b)}function pb(a,b){var c=ob(b,(function(a){this.name=b,this.message=a,void 0!==(a=Error(a).stack)&&(this.stack=this.toString()+"\n"+a.replace(/^Error(:[^\n]*)?\n/,""))}));return c.prototype=Object.create(a.prototype),c.prototype.constructor=c,c.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},c}var qb=void 0;function rb(a){throw new qb(a)}function O(a,b,c){function d(b){(b=c(b)).length!==a.length&&rb("Mismatched type converter count");for(var d=0;d<a.length;++d)Q(a[d],b[d])}a.forEach((function(a){mb[a]=b}));var f=Array(b.length),g=[],h=0;b.forEach((function(a,b){N.hasOwnProperty(a)?f[b]=N[a]:(g.push(a),M.hasOwnProperty(a)||(M[a]=[]),M[a].push((function(){f[b]=N[a],++h===g.length&&d(f)})))})),0===g.length&&d(f)}function sb(a){switch(a){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+a)}}function tb(){for(var a=Array(256),b=0;256>b;++b)a[b]=String.fromCharCode(b);ub=a}var ub=void 0;function R(a){for(var b="";A[a];)b+=ub[A[a++]];return b}var vb=void 0;function S(a){throw new vb(a)}function Q(a,b,c){if(c=c||{},!("argPackAdvance"in b))throw new TypeError("registerType registeredInstance requires argPackAdvance");var d=b.name;if(a||S('type "'+d+'" must have a positive integer typeid pointer'),N.hasOwnProperty(a)){if(c.ha)return;S("Cannot register type '"+d+"' twice")}N[a]=b,delete mb[a],M.hasOwnProperty(a)&&(b=M[a],delete M[a],b.forEach((function(a){a()})))}function wb(a){if(!(this instanceof T&&a instanceof T))return!1;var b=this.a.f.b,c=this.a.c,d=a.a.f.b;for(a=a.a.c;b.o;)c=b.F(c),b=b.o;for(;d.o;)a=d.F(a),d=d.o;return b===d&&c===a}function xb(a){return{count:a.count,w:a.w,C:a.C,c:a.c,f:a.f,i:a.i,l:a.l}}function yb(a){S(a.a.f.b.name+" instance already deleted")}var zb=!1;function Ab(){}function Bb(a){a.i?a.l.s(a.i):a.f.b.s(a.c)}function Cb(a){--a.count.value,0===a.count.value&&Bb(a)}function Db(a){return"undefined"==typeof FinalizationGroup?(Db=function(a){return a},a):(zb=new FinalizationGroup((function(a){for(var b=a.next();!b.done;b=a.next())(b=b.value).c?Cb(b):console.warn("object already deleted: "+b.c)})),Ab=function(a){zb.unregister(a.a)},(Db=function(a){return zb.register(a,a.a,a.a),a})(a))}function Eb(){if(this.a.c||yb(this),this.a.C)return this.a.count.value+=1,this;var a=Db(Object.create(Object.getPrototypeOf(this),{a:{value:xb(this.a)}}));return a.a.count.value+=1,a.a.w=!1,a}function Fb(){this.a.c||yb(this),this.a.w&&!this.a.C&&S("Object already scheduled for deletion"),Ab(this),Cb(this.a),this.a.C||(this.a.i=void 0,this.a.c=void 0)}function Gb(){return!this.a.c}var Hb=void 0,Ib=[];function Jb(){for(;Ib.length;){var a=Ib.pop();a.a.w=!1,a.delete()}}function Kb(){return this.a.c||yb(this),this.a.w&&!this.a.C&&S("Object already scheduled for deletion"),Ib.push(this),1===Ib.length&&Hb&&Hb(Jb),this.a.w=!0,this}function Lb(){T.prototype.isAliasOf=wb,T.prototype.clone=Eb,T.prototype.delete=Fb,T.prototype.isDeleted=Gb,T.prototype.deleteLater=Kb}function T(){}var Mb={};function Nb(a,b,c){if(void 0===a[b].g){var d=a[b];a[b]=function(){return a[b].g.hasOwnProperty(arguments.length)||S("Function '"+c+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+a[b].g+")!"),a[b].g[arguments.length].apply(this,arguments)},a[b].g=[],a[b].g[d.H]=d}}function Ob(a,b,c){e.hasOwnProperty(a)?((void 0===c||void 0!==e[a].g&&void 0!==e[a].g[c])&&S("Cannot register public name '"+a+"' twice"),Nb(e,a,a),e.hasOwnProperty(c)&&S("Cannot register multiple overloads of a function with the same number of arguments ("+c+")!"),e[a].g[c]=b):(e[a]=b,void 0!==c&&(e[a].Ba=c))}function Pb(a,b,c,d,f,g,h,l){this.name=a,this.constructor=b,this.A=c,this.s=d,this.o=f,this.aa=g,this.F=h,this.Z=l,this.ma=[]}function Qb(a,b,c){for(;b!==c;)b.F||S("Expected null or instance of "+c.name+", got an instance of "+b.name),a=b.F(a),b=b.o;return a}function Rb(a,b){return null===b?(this.N&&S("null is not a valid "+this.name),0):(b.a||S('Cannot pass "'+U(b)+'" as a '+this.name),b.a.c||S("Cannot pass deleted object as a pointer of type "+this.name),Qb(b.a.c,b.a.f.b,this.b))}function Sb(a,b){if(null===b){if(this.N&&S("null is not a valid "+this.name),this.J){var c=this.O();return null!==a&&a.push(this.s,c),c}return 0}if(b.a||S('Cannot pass "'+U(b)+'" as a '+this.name),b.a.c||S("Cannot pass deleted object as a pointer of type "+this.name),!this.I&&b.a.f.I&&S("Cannot convert argument of type "+(b.a.l?b.a.l.name:b.a.f.name)+" to parameter type "+this.name),c=Qb(b.a.c,b.a.f.b,this.b),this.J)switch(void 0===b.a.i&&S("Passing raw pointer to smart pointer is illegal"),this.ra){case 0:b.a.l===this?c=b.a.i:S("Cannot convert argument of type "+(b.a.l?b.a.l.name:b.a.f.name)+" to parameter type "+this.name);break;case 1:c=b.a.i;break;case 2:if(b.a.l===this)c=b.a.i;else{var d=b.clone();c=this.na(c,V((function(){d.delete()}))),null!==a&&a.push(this.s,c)}break;default:S("Unsupporting sharing policy")}return c}function Tb(a,b){return null===b?(this.N&&S("null is not a valid "+this.name),0):(b.a||S('Cannot pass "'+U(b)+'" as a '+this.name),b.a.c||S("Cannot pass deleted object as a pointer of type "+this.name),b.a.f.I&&S("Cannot convert argument of type "+b.a.f.name+" to parameter type "+this.name),Qb(b.a.c,b.a.f.b,this.b))}function Ub(a){return this.X&&(a=this.X(a)),a}function Vb(a){this.s&&this.s(a)}function Wb(a){null!==a&&a.delete()}function Xb(a,b,c){return b===c?a:void 0===c.o?null:null===(a=Xb(a,b,c.o))?null:c.Z(a)}function Yb(){return Object.keys(Zb).length}function $b(){var b,a=[];for(b in Zb)Zb.hasOwnProperty(b)&&a.push(Zb[b]);return a}function ac(a){Hb=a,Ib.length&&Hb&&Hb(Jb)}function bc(){e.getInheritedInstanceCount=Yb,e.getLiveInheritedInstances=$b,e.flushPendingDeletes=Jb,e.setDelayFunction=ac}var Zb={};function cc(a,b){for(void 0===b&&S("ptr should not be undefined");a.o;)b=a.F(b),a=a.o;return b}function dc(a,b){return b=cc(a,b),Zb[b]}function ec(a,b){return b.f&&b.c||rb("makeClassHandle requires ptr and ptrType"),!!b.l!=!!b.i&&rb("Both smartPtrType and smartPtr must be specified"),b.count={value:1},Db(Object.create(a,{a:{value:b}}))}function fc(a){function b(){return this.J?ec(this.b.A,{f:this.la,c:c,l:this,i:a}):ec(this.b.A,{f:this,c:a})}var c=this.ba(a);if(!c)return this.S(a),null;var d=dc(this.b,c);if(void 0!==d)return 0===d.a.count.value?(d.a.c=c,d.a.i=a,d.clone()):(d=d.clone(),this.S(a),d);if(d=this.b.aa(c),!(d=Mb[d]))return b.call(this);d=this.I?d.Y:d.pointerType;var f=Xb(c,this.b,d.b);return null===f?b.call(this):this.J?ec(d.b.A,{f:d,c:f,l:this,i:a}):ec(d.b.A,{f:d,c:f})}function hc(){W.prototype.ba=Ub,W.prototype.S=Vb,W.prototype.argPackAdvance=8,W.prototype.readValueFromPointer=L,W.prototype.deleteObject=Wb,W.prototype.fromWireType=fc}function W(a,b,c,d,f,g,h,l,n,m,p){this.name=a,this.b=b,this.N=c,this.I=d,this.J=f,this.la=g,this.ra=h,this.X=l,this.O=n,this.na=m,this.s=p,f||void 0!==b.o?this.toWireType=Sb:(this.toWireType=d?Rb:Tb,this.j=null)}function ic(a,b,c){e.hasOwnProperty(a)||rb("Replacing nonexistant public symbol"),void 0!==e[a].g&&void 0!==c?e[a].g[c]=b:(e[a]=b,e[a].H=c)}function X(a,b){if(a=R(a),void 0!==e["FUNCTION_TABLE_"+a])var c=e["FUNCTION_TABLE_"+a][b];else if("undefined"!=typeof FUNCTION_TABLE)c=FUNCTION_TABLE[b];else{void 0===(c=e["dynCall_"+a])&&void 0===(c=e["dynCall_"+a.replace(/f/g,"d")])&&S("No dynCall invoker for signature: "+a);for(var d=[],f=1;f<a.length;++f)d.push("a"+f);f="return function dynCall_"+a+"_"+b+"("+d.join(", ")+") {\n",f+=" return dynCall(rawFunction"+(d.length?", ":"")+d.join(", ")+");\n",c=new Function("dynCall","rawFunction",f+"};\n")(c,b)}return"function"!=typeof c&&S("unknown function pointer with signature "+a+": "+b),c}var jc=void 0;function kc(a){var b=R(a=lc(a));return K(a),b}function mc(a,b){var d=[],f={};throw b.forEach((function c(a){f[a]||N[a]||(mb[a]?mb[a].forEach(c):(d.push(a),f[a]=!0))})),new jc(a+": "+d.map(kc).join([", "]))}function nc(a,b){for(var c=[],d=0;d<a;d++)c.push(x[(b>>2)+d]);return c}function oc(a,b){if(!(a instanceof Function))throw new TypeError("new_ called with constructor type "+typeof a+" which is not a function");var c=ob(a.name||"unknownFunctionName",(function(){}));return c.prototype=a.prototype,c=new c,(a=a.apply(c,b))instanceof Object?a:c}function pc(a,b,c,d,f){var g=b.length;2>g&&S("argTypes array size mismatch! Must at least get return value and 'this' types!");var h=null!==b[1]&&null!==c,l=!1;for(c=1;c<b.length;++c)if(null!==b[c]&&void 0===b[c].j){l=!0;break}var n="void"!==b[0].name,m="",p="";for(c=0;c<g-2;++c)m+=(0!==c?", ":"")+"arg"+c,p+=(0!==c?", ":"")+"arg"+c+"Wired";a="return function "+nb(a)+"("+m+") {\nif (arguments.length !== "+(g-2)+") {\nthrowBindingError('function "+a+" called with ' + arguments.length + ' arguments, expected "+(g-2)+" args!');\n}\n",l&&(a+="var destructors = [];\n");var w=l?"destructors":"null";for(m="throwBindingError invoker fn runDestructors retType classParam".split(" "),d=[S,d,f,lb,b[0],b[1]],h&&(a+="var thisWired = classParam.toWireType("+w+", this);\n"),c=0;c<g-2;++c)a+="var arg"+c+"Wired = argType"+c+".toWireType("+w+", arg"+c+"); // "+b[c+2].name+"\n",m.push("argType"+c),d.push(b[c+2]);if(h&&(p="thisWired"+(0<p.length?", ":"")+p),a+=(n?"var rv = ":"")+"invoker(fn"+(0<p.length?", ":"")+p+");\n",l)a+="runDestructors(destructors);\n";else for(c=h?1:2;c<b.length;++c)g=1===c?"thisWired":"arg"+(c-2)+"Wired",null!==b[c].j&&(a+=g+"_dtor("+g+"); // "+b[c].name+"\n",m.push(g+"_dtor"),d.push(b[c].j));return n&&(a+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),m.push(a+"}\n"),oc(Function,m).apply(null,d)}var qc=[],Y=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function rc(a){4<a&&0==--Y[a].P&&(Y[a]=void 0,qc.push(a))}function sc(){for(var a=0,b=5;b<Y.length;++b)void 0!==Y[b]&&++a;return a}function tc(){for(var a=5;a<Y.length;++a)if(void 0!==Y[a])return Y[a];return null}function uc(){e.count_emval_handles=sc,e.get_first_emval=tc}function V(a){switch(a){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var b=qc.length?qc.pop():Y.length;return Y[b]={P:1,value:a},b}}function vc(a,b,c){switch(b){case 0:return function(a){return this.fromWireType((c?B:A)[a])};case 1:return function(a){return this.fromWireType((c?Da:Ea)[a>>1])};case 2:return function(a){return this.fromWireType((c?x:C)[a>>2])};default:throw new TypeError("Unknown integer type: "+a)}}function wc(a,b){var c=N[a];return void 0===c&&S(b+" has unknown type "+kc(a)),c}function U(a){if(null===a)return"null";var b=typeof a;return"object"===b||"array"===b||"function"===b?a.toString():""+a}function xc(a,b){switch(b){case 2:return function(a){return this.fromWireType(Fa[a>>2])};case 3:return function(a){return this.fromWireType(Ga[a>>3])};default:throw new TypeError("Unknown float type: "+a)}}function yc(a,b,c){switch(b){case 0:return c?function(a){return B[a]}:function(a){return A[a]};case 1:return c?function(a){return Da[a>>1]}:function(a){return Ea[a>>1]};case 2:return c?function(a){return x[a>>2]}:function(a){return C[a>>2]};default:throw new TypeError("Unknown integer type: "+a)}}function Z(a){return a||S("Cannot use deleted val. handle = "+a),Y[a].value}function zc(a,b){for(var c=Array(a),d=0;d<a;++d)c[d]=wc(x[(b>>2)+d],"parameter "+d);return c}function Ac(a){var b=[];return x[a>>2]=V(b),b}var Bc={};function Cc(a){var b=Bc[a];return void 0===b?R(a):b}var Dc=[];function Ec(){return"object"==typeof globalThis?globalThis:Function("return this")()}function Fc(a){var b=Dc.length;return Dc.push(a),b}function Gc(a){for(var b="",c=0;c<a;++c)b+=(0!==c?", ":"")+"arg"+c;var d="return function emval_allocator_"+a+"(constructor, argTypes, args) {\n";for(c=0;c<a;++c)d+="var argType"+c+" = requireRegisteredType(Module['HEAP32'][(argTypes >> 2) + "+c+'], "parameter '+c+'");\nvar arg'+c+" = argType"+c+".readValueFromPointer(args);\nargs += argType"+c+"['argPackAdvance'];\n";return new Function("requireRegisteredType","Module","__emval_register",d+"var obj = new constructor("+b+");\nreturn __emval_register(obj);\n}\n")(wc,e,V)}var Hc={};function Ic(){u()}function Jc(){return ea||"undefined"!=typeof dateNow||"object"==typeof performance&&performance&&"function"==typeof performance.now}function ra(){return B.length}function Kc(a,b,c){A.set(A.subarray(b,b+c),a)}function Lc(a){try{return y.grow(a-buffer.byteLength+65535>>16),Ha(y.buffer),1}catch(b){}}function Mc(a){if(0===a)return 0;if(a=z(a),!F.hasOwnProperty(a))return 0;Mc.m&&K(Mc.m);var b=za(a=F[a])+1,c=G(b);return c&&ya(a,B,c,b),Mc.m=c,Mc.m}function Nc(a){if(a/=1e3,(q||r)&&self.performance&&self.performance.now)for(var b=self.performance.now();self.performance.now()-b<a;);else for(b=Date.now();Date.now()-b<a;);return 0}function Oc(a){return 0==a%4&&(0!=a%100||0==a%400)}function Pc(a,b){for(var c=0,d=0;d<=b;c+=a[d++]);return c}var Qc=[31,29,31,30,31,30,31,31,30,31,30,31],Rc=[31,28,31,30,31,30,31,31,30,31,30,31];function Sc(a,b){for(a=new Date(a.getTime());0<b;){var c=a.getMonth(),d=(Oc(a.getFullYear())?Qc:Rc)[c];if(!(b>d-a.getDate())){a.setDate(a.getDate()+b);break}b-=d-a.getDate()+1,a.setDate(1),11>c?a.setMonth(c+1):(a.setMonth(0),a.setFullYear(a.getFullYear()+1))}return a}function Tc(a,b,c,d){function f(a,b,c){for(a="number"==typeof a?a.toString():a||"";a.length<b;)a=c[0]+a;return a}function g(a,b){return f(a,b,"0")}function h(a,b){function c(a){return 0>a?-1:0<a?1:0}var d;return 0===(d=c(a.getFullYear()-b.getFullYear()))&&0===(d=c(a.getMonth()-b.getMonth()))&&(d=c(a.getDate()-b.getDate())),d}function l(a){switch(a.getDay()){case 0:return new Date(a.getFullYear()-1,11,29);case 1:return a;case 2:return new Date(a.getFullYear(),0,3);case 3:return new Date(a.getFullYear(),0,2);case 4:return new Date(a.getFullYear(),0,1);case 5:return new Date(a.getFullYear()-1,11,31);case 6:return new Date(a.getFullYear()-1,11,30)}}function n(a){a=Sc(new Date(a.h+1900,0,1),a.M);var b=l(new Date(a.getFullYear()+1,0,4));return 0>=h(l(new Date(a.getFullYear(),0,4)),a)?0>=h(b,a)?a.getFullYear()+1:a.getFullYear():a.getFullYear()-1}var m=x[d+40>>2];for(var p in d={ua:x[d>>2],ta:x[d+4>>2],K:x[d+8>>2],D:x[d+12>>2],B:x[d+16>>2],h:x[d+20>>2],L:x[d+24>>2],M:x[d+28>>2],Ca:x[d+32>>2],sa:x[d+36>>2],va:m?z(m):""},c=z(c),m={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"})c=c.replace(new RegExp(p,"g"),m[p]);var w="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),fa="January February March April May June July August September October November December".split(" ");for(p in m={"%a":function(a){return w[a.L].substring(0,3)},"%A":function(a){return w[a.L]},"%b":function(a){return fa[a.B].substring(0,3)},"%B":function(a){return fa[a.B]},"%C":function(a){return g((a.h+1900)/100|0,2)},"%d":function(a){return g(a.D,2)},"%e":function(a){return f(a.D,2," ")},"%g":function(a){return n(a).toString().substring(2)},"%G":function(a){return n(a)},"%H":function(a){return g(a.K,2)},"%I":function(a){return 0==(a=a.K)?a=12:12<a&&(a-=12),g(a,2)},"%j":function(a){return g(a.D+Pc(Oc(a.h+1900)?Qc:Rc,a.B-1),3)},"%m":function(a){return g(a.B+1,2)},"%M":function(a){return g(a.ta,2)},"%n":function(){return"\n"},"%p":function(a){return 0<=a.K&&12>a.K?"AM":"PM"},"%S":function(a){return g(a.ua,2)},"%t":function(){return"\t"},"%u":function(a){return a.L||7},"%U":function(a){var b=new Date(a.h+1900,0,1),c=0===b.getDay()?b:Sc(b,7-b.getDay());return 0>h(c,a=new Date(a.h+1900,a.B,a.D))?g(Math.ceil((31-c.getDate()+(Pc(Oc(a.getFullYear())?Qc:Rc,a.getMonth()-1)-31)+a.getDate())/7),2):0===h(c,b)?"01":"00"},"%V":function(a){var b=l(new Date(a.h+1900,0,4)),c=l(new Date(a.h+1901,0,4)),d=Sc(new Date(a.h+1900,0,1),a.M);return 0>h(d,b)?"53":0>=h(c,d)?"01":g(Math.ceil((b.getFullYear()<a.h+1900?a.M+32-b.getDate():a.M+1-b.getDate())/7),2)},"%w":function(a){return a.L},"%W":function(a){var b=new Date(a.h,0,1),c=1===b.getDay()?b:Sc(b,0===b.getDay()?1:7-b.getDay()+1);return 0>h(c,a=new Date(a.h+1900,a.B,a.D))?g(Math.ceil((31-c.getDate()+(Pc(Oc(a.getFullYear())?Qc:Rc,a.getMonth()-1)-31)+a.getDate())/7),2):0===h(c,b)?"01":"00"},"%y":function(a){return(a.h+1900).toString().substring(2)},"%Y":function(a){return a.h+1900},"%z":function(a){var b=0<=(a=a.sa);return a=Math.abs(a)/60,(b?"+":"-")+String("0000"+(a/60*100+a%60)).slice(-4)},"%Z":function(a){return a.va},"%%":function(){return"%"}})0<=c.indexOf(p)&&(c=c.replace(new RegExp(p,"g"),m[p](d)));return(p=Uc(c)).length>b?0:(B.set(p,a),p.length-1)}function Uc(a){var b=Array(za(a)+1);return ya(a,b,0,b.length),b}qb=e.InternalError=pb(Error,"InternalError"),tb(),vb=e.BindingError=pb(Error,"BindingError"),Lb(),hc(),bc(),jc=e.UnboundTypeError=pb(Error,"UnboundTypeError"),uc();var Wc={ClassHandle:T,ClassHandle_clone:Eb,ClassHandle_delete:Fb,ClassHandle_deleteLater:Kb,ClassHandle_isAliasOf:wb,ClassHandle_isDeleted:Gb,RegisteredClass:Pb,RegisteredPointer:W,RegisteredPointer_deleteObject:Wb,RegisteredPointer_destructor:Vb,RegisteredPointer_fromWireType:fc,RegisteredPointer_getPointee:Ub,__buildEnvironment:ab,__cxa_allocate_exception:function(a){return G(a)},__cxa_atexit:function(){return bb.apply(null,arguments)},__cxa_pure_virtual:function(){throw va=!0,"Pure virtual function called!"},__cxa_throw:function(a){throw"uncaught_exception"in Vc?Vc.m++:Vc.m=1,a},__cxa_uncaught_exceptions:function(){return Vc.m},__lock:function(){},__map_file:function(){return cb(1),-1},__setErrNo:cb,__syscall10:function(a,b){H=b;try{var c=z(I());return(void 0).unlink(c),0}catch(d){return u(d),-d.u}},__syscall140:function(a,b){H=b;try{return J.V(),I(),I(),I(),I(),0}catch(c){return u(c),-c.u}},__syscall145:function(a,b){H=b;try{var c=J.V(),d=I(),f=I();return J.xa(c,d,f)}catch(g){return u(g),-g.u}},__syscall163:function(a,b){return H=b,-12},__syscall192:function(a,b){H=b;try{return gb(I(),I(),I(),I(),I(),I())}catch(n){return u(n),-n.u}},__syscall194:function(a,b){H=b;try{var c=I();I();var d=I();return I(),(void 0).ya(c,d),0}catch(f){return u(f),-f.u}},__syscall221:function(a,b){return H=b,0},__syscall5:function(a,b){H=b;try{var c=z(I()),d=I(),f=I();return(void 0).open(c,d,f).fd}catch(g){return u(g),-g.u}},__syscall54:function(a,b){return H=b,0},__syscall6:function(a,b){H=b;try{return J.V(),0}catch(c){return u(c),-c.u}},__syscall91:function(a,b){H=b;try{return ib(I(),I())}catch(f){return u(f),-f.u}},__unlock:function(){},__wasi_fd_write:function(){return jb.apply(null,arguments)},_addDays:Sc,_arraySum:Pc,_embind_finalize_value_object:function(a){var b=kb[a];delete kb[a];var c=b.O,d=b.s,f=b.T;O([a],f.map((function(a){return a.ga})).concat(f.map((function(a){return a.pa}))),(function(a){var g={};return f.forEach((function(b,c){var d=a[c],l=b.ea,h=b.fa,m=a[c+f.length],n=b.oa,$c=b.qa;g[b.$]={read:function(a){return d.fromWireType(l(h,a))},write:function(a,b){var c=[];n($c,a,m.toWireType(c,b)),lb(c)}}})),[{name:b.name,fromWireType:function(a){var c,b={};for(c in g)b[c]=g[c].read(a);return d(a),b},toWireType:function(a,b){for(var f in g)if(!(f in b))throw new TypeError("Missing field");var l=c();for(f in g)g[f].write(l,b[f]);return null!==a&&a.push(d,l),l},argPackAdvance:8,readValueFromPointer:L,j:d}]}))},_embind_register_bool:function(a,b,c,d,f){var g=sb(c);Q(a,{name:b=R(b),fromWireType:function(a){return!!a},toWireType:function(a,b){return b?d:f},argPackAdvance:8,readValueFromPointer:function(a){if(1===c)var d=B;else if(2===c)d=Da;else{if(4!==c)throw new TypeError("Unknown boolean type size: "+b);d=x}return this.fromWireType(d[a>>g])},j:null})},_embind_register_class:function(a,b,c,d,f,g,h,l,n,m,p,w,fa){p=R(p),g=X(f,g),l&&(l=X(h,l)),m&&(m=X(n,m)),fa=X(w,fa);var P=nb(p);Ob(P,(function(){mc("Cannot construct "+p+" due to unbound types",[d])})),O([a,b,c],d?[d]:[],(function(b){if(b=b[0],d)var c=b.b,f=c.A;else f=T.prototype;b=ob(P,(function(){if(Object.getPrototypeOf(this)!==h)throw new vb("Use 'new' to construct "+p);if(void 0===n.v)throw new vb(p+" has no accessible constructor");var a=n.v[arguments.length];if(void 0===a)throw new vb("Tried to invoke ctor of "+p+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(n.v).toString()+") parameters instead!");return a.apply(this,arguments)}));var h=Object.create(f,{constructor:{value:b}});b.prototype=h;var n=new Pb(p,b,h,fa,c,g,l,m);c=new W(p,n,!0,!1,!1),f=new W(p+"*",n,!1,!1,!1);var w=new W(p+" const*",n,!1,!0,!1);return Mb[a]={pointerType:f,Y:w},ic(P,b),[c,f,w]}))},_embind_register_class_constructor:function(a,b,c,d,f,g){var h=nc(b,c);f=X(d,f),O([],[a],(function(a){var c="constructor "+(a=a[0]).name;if(void 0===a.b.v&&(a.b.v=[]),void 0!==a.b.v[b-1])throw new vb("Cannot register multiple constructors with identical number of parameters ("+(b-1)+") for class '"+a.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return a.b.v[b-1]=function(){mc("Cannot construct "+a.name+" due to unbound types",h)},O([],h,(function(d){return a.b.v[b-1]=function(){arguments.length!==b-1&&S(c+" called with "+arguments.length+" arguments, expected "+(b-1));var a=[],h=Array(b);h[0]=g;for(var l=1;l<b;++l)h[l]=d[l].toWireType(a,arguments[l-1]);return h=f.apply(null,h),lb(a),d[0].fromWireType(h)},[]})),[]}))},_embind_register_class_function:function(a,b,c,d,f,g,h,l){var n=nc(c,d);b=R(b),g=X(f,g),O([],[a],(function(a){function d(){mc("Cannot call "+f+" due to unbound types",n)}var f=(a=a[0]).name+"."+b;l&&a.b.ma.push(b);var m=a.b.A,P=m[b];return void 0===P||void 0===P.g&&P.className!==a.name&&P.H===c-2?(d.H=c-2,d.className=a.name,m[b]=d):(Nb(m,b,f),m[b].g[c-2]=d),O([],n,(function(d){return d=pc(f,d,a,g,h),void 0===m[b].g?(d.H=c-2,m[b]=d):m[b].g[c-2]=d,[]})),[]}))},_embind_register_emval:function(a,b){Q(a,{name:b=R(b),fromWireType:function(a){var b=Y[a].value;return rc(a),b},toWireType:function(a,b){return V(b)},argPackAdvance:8,readValueFromPointer:L,j:null})},_embind_register_enum:function(a,b,c,d){function f(){}c=sb(c),b=R(b),f.values={},Q(a,{name:b,constructor:f,fromWireType:function(a){return this.constructor.values[a]},toWireType:function(a,b){return b.value},argPackAdvance:8,readValueFromPointer:vc(b,c,d),j:null}),Ob(b,f)},_embind_register_enum_value:function(a,b,c){var d=wc(a,"enum");b=R(b),a=d.constructor,d=Object.create(d.constructor.prototype,{value:{value:c},constructor:{value:ob(d.name+"_"+b,(function(){}))}}),a.values[c]=d,a[b]=d},_embind_register_float:function(a,b,c){c=sb(c),Q(a,{name:b=R(b),fromWireType:function(a){return a},toWireType:function(a,b){if("number"!=typeof b&&"boolean"!=typeof b)throw new TypeError('Cannot convert "'+U(b)+'" to '+this.name);return b},argPackAdvance:8,readValueFromPointer:xc(b,c),j:null})},_embind_register_function:function(a,b,c,d,f,g){var h=nc(b,c);a=R(a),f=X(d,f),Ob(a,(function(){mc("Cannot call "+a+" due to unbound types",h)}),b-1),O([],h,(function(c){return c=[c[0],null].concat(c.slice(1)),ic(a,pc(a,c,null,f,g),b-1),[]}))},_embind_register_integer:function(a,b,c,d,f){function g(a){return a}b=R(b),-1===f&&(f=4294967295);var h=sb(c);if(0===d){var l=32-8*c;g=function(a){return a<<l>>>l}}var n=-1!=b.indexOf("unsigned");Q(a,{name:b,fromWireType:g,toWireType:function(a,c){if("number"!=typeof c&&"boolean"!=typeof c)throw new TypeError('Cannot convert "'+U(c)+'" to '+this.name);if(c<d||c>f)throw new TypeError('Passing a number "'+U(c)+'" from JS side to C/C++ side to an argument of type "'+b+'", which is outside the valid range ['+d+", "+f+"]!");return n?c>>>0:0|c},argPackAdvance:8,readValueFromPointer:yc(b,h,0!==d),j:null})},_embind_register_memory_view:function(a,b,c){function d(a){a>>=2;var b=C;return new f(b.buffer,b[a+1],b[a])}var f=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][b];Q(a,{name:c=R(c),fromWireType:d,argPackAdvance:8,readValueFromPointer:d},{ha:!0})},_embind_register_smart_ptr:function(a,b,c,d,f,g,h,l,n,m,p,w){c=R(c),g=X(f,g),l=X(h,l),m=X(n,m),w=X(p,w),O([a],[b],(function(a){return a=a[0],[new W(c,a.b,!1,!1,!0,a,d,g,l,m,w)]}))},_embind_register_std_string:function(a,b){var c="std::string"===(b=R(b));Q(a,{name:b,fromWireType:function(a){var b=C[a>>2];if(c){var d=A[a+4+b],h=0;0!=d&&(h=d,A[a+4+b]=0);var l=a+4;for(d=0;d<=b;++d){var n=a+4+d;if(0==A[n]){if(l=z(l),void 0===m)var m=l;else m+=String.fromCharCode(0),m+=l;l=n+1}}0!=h&&(A[a+4+b]=h)}else{for(m=Array(b),d=0;d<b;++d)m[d]=String.fromCharCode(A[a+4+d]);m=m.join("")}return K(a),m},toWireType:function(a,b){b instanceof ArrayBuffer&&(b=new Uint8Array(b));var d="string"==typeof b;d||b instanceof Uint8Array||b instanceof Uint8ClampedArray||b instanceof Int8Array||S("Cannot pass non-string to std::string");var f=(c&&d?function(){return za(b)}:function(){return b.length})(),l=G(4+f+1);if(C[l>>2]=f,c&&d)ya(b,A,l+4,f+1);else if(d)for(d=0;d<f;++d){var n=b.charCodeAt(d);255<n&&(K(l),S("String has UTF-16 code units that do not fit in 8 bits")),A[l+4+d]=n}else for(d=0;d<f;++d)A[l+4+d]=b[d];return null!==a&&a.push(K,l),l},argPackAdvance:8,readValueFromPointer:L,j:function(a){K(a)}})},_embind_register_std_wstring:function(a,b,c){if(c=R(c),2===b)var d=function(){return Ea},f=1;else 4===b&&(d=function(){return C},f=2);Q(a,{name:c,fromWireType:function(a){for(var b=d(),c=C[a>>2],g=Array(c),m=a+4>>f,p=0;p<c;++p)g[p]=String.fromCharCode(b[m+p]);return K(a),g.join("")},toWireType:function(a,c){var g=d(),h=c.length,m=G(4+h*b);C[m>>2]=h;for(var p=m+4>>f,w=0;w<h;++w)g[p+w]=c.charCodeAt(w);return null!==a&&a.push(K,m),m},argPackAdvance:8,readValueFromPointer:L,j:function(a){K(a)}})},_embind_register_value_object:function(a,b,c,d,f,g){kb[a]={name:R(b),O:X(c,d),s:X(f,g),T:[]}},_embind_register_value_object_field:function(a,b,c,d,f,g,h,l,n,m){kb[a].T.push({$:R(b),ga:c,ea:X(d,f),fa:g,pa:h,oa:X(l,n),qa:m})},_embind_register_void:function(a,b){Q(a,{ia:!0,name:b=R(b),argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},_emscripten_syscall_mmap2:gb,_emscripten_syscall_munmap:ib,_emval_addMethodCaller:Fc,_emval_allocateDestructors:Ac,_emval_as:function(a,b,c){a=Z(a),b=wc(b,"emval::as");var d=[],f=V(d);return x[c>>2]=f,b.toWireType(d,a)},_emval_call:function(a,b,c,d){a=Z(a),c=zc(b,c);for(var f=Array(b),g=0;g<b;++g){var h=c[g];f[g]=h.readValueFromPointer(d),d+=h.argPackAdvance}return V(a=a.apply(void 0,f))},_emval_call_method:function(a,b,c,d,f){return(a=Dc[a])(b=Z(b),c=Cc(c),Ac(d),f)},_emval_call_void_method:function(a,b,c,d){(a=Dc[a])(b=Z(b),c=Cc(c),null,d)},_emval_decref:rc,_emval_get_global:function(a){return 0===a?V(Ec()):(a=Cc(a),V(Ec()[a]))},_emval_get_method_caller:function(a,b){for(var c=(b=zc(a,b))[0],d=c.name+"_$"+b.slice(1).map((function(a){return a.name})).join("_")+"$",f=["retType"],g=[c],h="",l=0;l<a-1;++l)h+=(0!==l?", ":"")+"arg"+l,f.push("argType"+l),g.push(b[1+l]);d="return function "+nb("methodCaller_"+d)+"(handle, name, destructors, args) {\n";var n=0;for(l=0;l<a-1;++l)d+=" var arg"+l+" = argType"+l+".readValueFromPointer(args"+(n?"+"+n:"")+");\n",n+=b[l+1].argPackAdvance;for(d+=" var rv = handle[name]("+h+");\n",l=0;l<a-1;++l)b[l+1].deleteObject&&(d+=" argType"+l+".deleteObject(arg"+l+");\n");return c.ia||(d+=" return retType.toWireType(destructors, rv);\n"),f.push(d+"};\n"),Fc(a=oc(Function,f).apply(null,g))},_emval_get_module_property:function(a){return a=Cc(a),V(e[a])},_emval_get_property:function(a,b){return V((a=Z(a))[b=Z(b)])},_emval_incref:function(a){4<a&&(Y[a].P+=1)},_emval_instanceof:function(a,b){return(a=Z(a))instanceof(b=Z(b))},_emval_lookupTypes:zc,_emval_new:function(a,b,c,d){a=Z(a);var f=Hc[b];return f||(f=Gc(b),Hc[b]=f),f(a,c,d)},_emval_new_cstring:function(a){return V(Cc(a))},_emval_new_object:function(){return V({})},_emval_register:V,_emval_run_destructors:function(a){lb(Y[a].value),rc(a)},_emval_set_property:function(a,b,c){a=Z(a),b=Z(b),c=Z(c),a[b]=c},_emval_take_value:function(a,b){return V(a=(a=wc(a,"_emval_take_value")).readValueFromPointer(b))},_emval_typeof:function(a){return V(typeof(a=Z(a)))},_isLeapYear:Oc,abort:function(){u()},abortOnCannotGrowMemory:function(){u("OOM")},atexit:bb,attachFinalizer:Db,clock_gettime:function(a,b){if(0===a)a=Date.now();else{if(1!==a||!Jc())return cb(22),-1;a=Ic()}return x[b>>2]=a/1e3|0,x[b+4>>2]=a%1e3*1e6|0,0},constNoSmartPtrRawPointerToWireType:Rb,count_emval_handles:sc,craftEmvalAllocator:Gc,craftInvokerFunction:pc,createNamedFunction:ob,demangle:function(a){return a},demangleAll:Za,detachFinalizer:Ab,downcastPointer:Xb,embind__requireFunction:X,embind_init_charCodes:tb,embind_repr:U,emscripten_asm_const_iii:function(a,b,c){a:for(var d="";;){var f=A[b++>>0];if(!f){b=d;break a}d+=String.fromCharCode(f)}for(d=[],f=0;f<b.length;f++){var g=b[f];"d"==g||"f"==g?(c=c+8-1&-8,d.push(Ga[c>>3]),c+=8):"i"==g&&(c=c+4-1&-4,d.push(x[c>>2]),c+=4)}return Xa[a].apply(null,d)},emscripten_get_heap_size:ra,emscripten_get_now:Ic=ea?function(){var a=process.hrtime();return 1e3*a[0]+a[1]/1e6}:"undefined"!=typeof dateNow?dateNow:"object"==typeof performance&&performance&&"function"==typeof performance.now?function(){return performance.now()}:Date.now,emscripten_get_now_is_monotonic:Jc,emscripten_get_sbrk_ptr:function(){return 95376},emscripten_memcpy_big:Kc,emscripten_realloc_buffer:Lc,emscripten_resize_heap:function(a){if(2147418112<a)return!1;for(var b=Math.max(ra(),16777216);b<a;)b=536870912>=b?Ca(2*b):Math.min(Ca((3*b+2147483648)/4),2147418112);return!!Lc(b)},emval_get_global:Ec,ensureOverloadTable:Nb,enumReadValueFromPointer:vc,exposePublicSymbol:Ob,extendError:pb,fd_write:jb,floatReadValueFromPointer:xc,flushPendingDeletes:Jb,flush_NO_FILESYSTEM:function(){var a=e._fflush;a&&a(0),db[1].length&&eb(1,10),db[2].length&&eb(2,10)},genericPointerToWireType:Sb,getBasestPointer:cc,getInheritedInstance:dc,getInheritedInstanceCount:Yb,getLiveInheritedInstances:$b,getShiftFromSize:sb,getStringOrSymbol:Cc,getTypeName:kc,get_first_emval:tc,getenv:Mc,getpagesize:function(){return 16384},heap32VectorToArray:nc,init_ClassHandle:Lb,init_RegisteredPointer:hc,init_embind:bc,init_emval:uc,integerReadValueFromPointer:yc,jsStackTrace:$a,makeClassHandle:ec,makeLegalFunctionName:nb,memcpy:function(a,b,c){var d;if(a|=0,b|=0,8192<=(0|(c|=0)))return Kc(0|a,0|b,0|c),0|a;var f=0|a,g=a+c|0;if((3&a)==(3&b)){for(;3&a;){if(0==(0|c))return 0|f;B[a>>0]=0|B[b>>0],a=a+1|0,b=b+1|0,c=c-1|0}for(d=(c=-4&g|0)-64|0;(0|a)<=(0|d);)x[a>>2]=0|x[b>>2],x[a+4>>2]=0|x[b+4>>2],x[a+8>>2]=0|x[b+8>>2],x[a+12>>2]=0|x[b+12>>2],x[a+16>>2]=0|x[b+16>>2],x[a+20>>2]=0|x[b+20>>2],x[a+24>>2]=0|x[b+24>>2],x[a+28>>2]=0|x[b+28>>2],x[a+32>>2]=0|x[b+32>>2],x[a+36>>2]=0|x[b+36>>2],x[a+40>>2]=0|x[b+40>>2],x[a+44>>2]=0|x[b+44>>2],x[a+48>>2]=0|x[b+48>>2],x[a+52>>2]=0|x[b+52>>2],x[a+56>>2]=0|x[b+56>>2],x[a+60>>2]=0|x[b+60>>2],a=a+64|0,b=b+64|0;for(;(0|a)<(0|c);)x[a>>2]=0|x[b>>2],a=a+4|0,b=b+4|0}else for(c=g-4|0;(0|a)<(0|c);)B[a>>0]=0|B[b>>0],B[a+1>>0]=0|B[b+1>>0],B[a+2>>0]=0|B[b+2>>0],B[a+3>>0]=0|B[b+3>>0],a=a+4|0,b=b+4|0;for(;(0|a)<(0|g);)B[a>>0]=0|B[b>>0],a=a+1|0,b=b+1|0;return 0|f},memory:y,memset:fb,nanosleep:function(a,b){if(0===a)return cb(22),-1;var c=x[a>>2];return 0>(a=x[a+4>>2])||999999999<a||0>c?(cb(22),-1):(0!==b&&(x[b>>2]=0,x[b+4>>2]=0),Nc(1e6*c+a/1e3))},new_:oc,nonConstNoSmartPtrRawPointerToWireType:Tb,pthread_cond_broadcast:function(){return 0},pthread_cond_wait:function(){return 0},readLatin1String:R,registerType:Q,releaseClassHandle:Cb,replacePublicSymbol:ic,requireHandle:Z,requireRegisteredType:wc,runDestructor:Bb,runDestructors:lb,sched_yield:function(){return 0},setDelayFunction:ac,setTempRet0:function(){},shallowCopyInternalPointer:xb,simpleReadValueFromPointer:L,stackTrace:function(){var a=$a();return e.extraStackTrace&&(a+="\n"+e.extraStackTrace()),Za(a)},strftime:Tc,strftime_l:function(a,b,c,d){return Tc(a,b,c,d)},table:ua,throwBindingError:S,throwInstanceAlreadyDeleted:yb,throwInternalError:rb,throwUnboundTypeError:mc,upcastPointer:Qb,usleep:Nc,whenDependentTypesAreResolved:O},Xc=function(){function a(a){e.asm=a.exports,D--,e.monitorRunDependencies&&e.monitorRunDependencies(D),0==D&&(null!==Ra&&(clearInterval(Ra),Ra=null),Sa&&(a=Sa,Sa=null,a()))}function b(b){a(b.instance)}function c(a){return Wa().then((function(a){return WebAssembly.instantiate(a,d)})).then(a,(function(a){v("failed to asynchronously prepare wasm: "+a),u(a)}))}var d={env:Wc,wasi_unstable:Wc};if(D++,e.monitorRunDependencies&&e.monitorRunDependencies(D),e.instantiateWasm)try{return e.instantiateWasm(d,a)}catch(f){return v("Module.instantiateWasm callback failed with error: "+f),!1}return function(){if(sa||"function"!=typeof WebAssembly.instantiateStreaming||Ta()||"function"!=typeof fetch)return c(b);fetch(E,{credentials:"same-origin"}).then((function(a){return WebAssembly.instantiateStreaming(a,d).then(b,(function(a){v("wasm streaming compile failed: "+a),v("falling back to ArrayBuffer instantiation"),c(b)}))}))}(),{}}();e.asm=Xc;var Ya=e.___wasm_call_ctors=function(){return e.asm.__wasm_call_ctors.apply(null,arguments)},G=e._malloc=function(){return e.asm.malloc.apply(null,arguments)},K=e._free=function(){return e.asm.free.apply(null,arguments)};e._main=function(){return e.asm.main.apply(null,arguments)};var Vc=e.__ZSt18uncaught_exceptionv=function(){return e.asm._ZSt18uncaught_exceptionv.apply(null,arguments)};e._htonl=function(){return e.asm.htonl.apply(null,arguments)},e._htons=function(){return e.asm.htons.apply(null,arguments)},e._ntohs=function(){return e.asm.ntohs.apply(null,arguments)},e._setThrew=function(){return e.asm.setThrew.apply(null,arguments)},e.___cxa_can_catch=function(){return e.asm.__cxa_can_catch.apply(null,arguments)},e.___cxa_is_pointer_type=function(){return e.asm.__cxa_is_pointer_type.apply(null,arguments)},e.__get_environ=function(){return e.asm._get_environ.apply(null,arguments)},e.___embind_register_native_and_builtin_types=function(){return e.asm.__embind_register_native_and_builtin_types.apply(null,arguments)};var lc=e.___getTypeName=function(){return e.asm.__getTypeName.apply(null,arguments)},hb=e._memalign=function(){return e.asm.memalign.apply(null,arguments)};e._emscripten_builtin_free=function(){return e.asm.emscripten_builtin_free.apply(null,arguments)},e._emscripten_builtin_memalign=function(){return e.asm.emscripten_builtin_memalign.apply(null,arguments)},e.stackSave=function(){return e.asm.stackSave.apply(null,arguments)};var Yc,Ba=e.stackAlloc=function(){return e.asm.stackAlloc.apply(null,arguments)};function na(a){this.name="ExitStatus",this.message="Program terminated with exit("+a+")",this.status=a}function ad(a){function b(){if(!Yc&&(Yc=!0,!va)){if(Pa=!0,Ja(La),Ja(Ma),e.onRuntimeInitialized&&e.onRuntimeInitialized(),bd){var b=a,d=(b=b||[]).length+1,f=Ba(4*(d+1));x[f>>2]=Aa(ca);for(var g=1;g<d;g++)x[(f>>2)+g]=Aa(b[g-1]);x[(f>>2)+d]=0;try{var h=e._main(d,f);ta&&0===h||(!ta&&(va=!0,e.onExit)&&e.onExit(h),da(h,new na(h)))}catch(l){l instanceof na||("SimulateInfiniteLoop"==l?ta=!0:((b=l)&&"object"==typeof l&&l.stack&&(b=[l,l.stack]),v("exception thrown: "+b),da(1,l)))}}if(e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;)b=e.postRun.shift(),Oa.unshift(b);Ja(Oa)}}if(a=a||ba,!(0<D)){if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)Qa();Ja(Ka),0<D||(e.setStatus?(e.setStatus("Running..."),setTimeout((function(){setTimeout((function(){e.setStatus("")}),1),b()}),1)):b())}}if(e.stackRestore=function(){return e.asm.stackRestore.apply(null,arguments)},e.__growWasmMemory=function(){return e.asm.__growWasmMemory.apply(null,arguments)},e.dynCall_ii=function(){return e.asm.dynCall_ii.apply(null,arguments)},e.dynCall_vi=function(){return e.asm.dynCall_vi.apply(null,arguments)},e.dynCall_iii=function(){return e.asm.dynCall_iii.apply(null,arguments)},e.dynCall_viij=function(){return e.asm.dynCall_viij.apply(null,arguments)},e.dynCall_v=function(){return e.asm.dynCall_v.apply(null,arguments)},e.dynCall_vii=function(){return e.asm.dynCall_vii.apply(null,arguments)},e.dynCall_viii=function(){return e.asm.dynCall_viii.apply(null,arguments)},e.dynCall_viiji=function(){return e.asm.dynCall_viiji.apply(null,arguments)},e.dynCall_viijji=function(){return e.asm.dynCall_viijji.apply(null,arguments)},e.dynCall_ji=function(){return e.asm.dynCall_ji.apply(null,arguments)},e.dynCall_viiiiii=function(){return e.asm.dynCall_viiiiii.apply(null,arguments)},e.dynCall_viiii=function(){return e.asm.dynCall_viiii.apply(null,arguments)},e.dynCall_viijj=function(){return e.asm.dynCall_viijj.apply(null,arguments)},e.dynCall_viijjii=function(){return e.asm.dynCall_viijjii.apply(null,arguments)},e.dynCall_viiij=function(){return e.asm.dynCall_viiij.apply(null,arguments)},e.dynCall_viijii=function(){return e.asm.dynCall_viijii.apply(null,arguments)},e.dynCall_iiiiiii=function(){return e.asm.dynCall_iiiiiii.apply(null,arguments)},e.dynCall_iiiiii=function(){return e.asm.dynCall_iiiiii.apply(null,arguments)},e.dynCall_i=function(){return e.asm.dynCall_i.apply(null,arguments)},e.dynCall_iiii=function(){return e.asm.dynCall_iiii.apply(null,arguments)},e.dynCall_iiiii=function(){return e.asm.dynCall_iiiii.apply(null,arguments)},e.dynCall_iiiiiiiiii=function(){return e.asm.dynCall_iiiiiiiiii.apply(null,arguments)},e.dynCall_iiiiiiiii=function(){return e.asm.dynCall_iiiiiiiii.apply(null,arguments)},e.dynCall_viiiiiiiii=function(){return e.asm.dynCall_viiiiiiiii.apply(null,arguments)},e.dynCall_jiji=function(){return e.asm.dynCall_jiji.apply(null,arguments)},e.dynCall_iidiiii=function(){return e.asm.dynCall_iidiiii.apply(null,arguments)},e.dynCall_viiiii=function(){return e.asm.dynCall_viiiii.apply(null,arguments)},e.dynCall_iiiiiiii=function(){return e.asm.dynCall_iiiiiiii.apply(null,arguments)},e.dynCall_iiiiiijj=function(){return e.asm.dynCall_iiiiiijj.apply(null,arguments)},e.dynCall_iiiiij=function(){return e.asm.dynCall_iiiiij.apply(null,arguments)},e.dynCall_iiiiid=function(){return e.asm.dynCall_iiiiid.apply(null,arguments)},e.dynCall_iiiiijj=function(){return e.asm.dynCall_iiiiijj.apply(null,arguments)},e.asm=Xc,e.then=function(a){if(Yc)a(e);else{var b=e.onRuntimeInitialized;e.onRuntimeInitialized=function(){b&&b(),a(e)}}return e},Sa=function Zc(){Yc||ad(),Yc||(Sa=Zc)},e.run=ad,e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);0<e.preInit.length;)e.preInit.pop()();var bd=!0;return e.noInitialRun&&(bd=!1),ta=!0,ad(),load_perspective});__webpack_exports__.a=load_perspective}).call(this,__webpack_require__(22),"/")},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(global){__webpack_require__(53),__webpack_require__(35),__webpack_require__(11),__webpack_require__(77);var _config_constants_js__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(0),_config_index_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8),_data_accessor__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(49),_data_accessor_date_parser_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9),_emscripten_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(1),_utils_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(10),_api_server_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(41),_view_formatters__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(20),papaparse__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(12),papaparse__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(papaparse__WEBPACK_IMPORTED_MODULE_12__);void 0===global.performance&&(global.performance={now:Date.now}),"undefined"!=typeof self&&void 0===self.performance&&(self.performance={now:Date.now}),__webpack_exports__.a=function(Module){let __MODULE__=Module,accessor=new _data_accessor__WEBPACK_IMPORTED_MODULE_6__.a;const SIDES=["zero","one","two"];let _POOL_DEBOUNCES={};function _call_process(table_id){const pool=_POOL_DEBOUNCES[table_id];pool&&(pool._process(),_remove_process(table_id))}function _remove_process(table_id){delete _POOL_DEBOUNCES[table_id]}function make_table(accessor,_Table,computed,index,limit,op,is_update,is_arrow){const pool=(_Table=__MODULE__.make_table(_Table,accessor,computed,limit||4294967295,index,op,is_update,is_arrow)).get_pool(),table_id=_Table.get_id();return is_update||op==__MODULE__.t_op.OP_DELETE?function(pool,table_id){_POOL_DEBOUNCES[table_id]||(_POOL_DEBOUNCES[table_id]=pool,setTimeout(()=>_call_process(table_id)))}(pool,table_id):pool._process(),_Table}function view(table,sides,config,view_config,name,callbacks,overridden_types){this._View=void 0,this.date_parser=new _data_accessor_date_parser_js__WEBPACK_IMPORTED_MODULE_7__.a,this.config=config||{},this.view_config=view_config||new view_config,0===sides?this._View=__MODULE__.make_view_zero(table._Table,name,_config_constants_js__WEBPACK_IMPORTED_MODULE_4__.COLUMN_SEPARATOR_STRING,this.view_config,this.date_parser):1===sides?this._View=__MODULE__.make_view_one(table._Table,name,_config_constants_js__WEBPACK_IMPORTED_MODULE_4__.COLUMN_SEPARATOR_STRING,this.view_config,this.date_parser):2===sides&&(this._View=__MODULE__.make_view_two(table._Table,name,_config_constants_js__WEBPACK_IMPORTED_MODULE_4__.COLUMN_SEPARATOR_STRING,this.view_config,this.date_parser)),this.table=table,this.ctx=this._View.get_context(),this.column_only=this._View.is_column_only(),this.callbacks=callbacks,this.name=name,this.overridden_types=overridden_types,this._delete_callbacks=[],Object(_utils_js__WEBPACK_IMPORTED_MODULE_9__.a)(this)}function col_path_vector_to_string(vector){let extracted=[];for(let i=0;i<vector.size();i++)extracted.push(__MODULE__.scalar_to_val(vector.get(i),!1,!0));return vector.delete(),extracted}view.prototype.get_config=function(){return JSON.parse(JSON.stringify(this.config))},view.prototype.delete=function(){_remove_process(this.table.get_id()),this._View.delete(),this.ctx.delete(),this.table.views.splice(this.table.views.indexOf(this),1),this.table=void 0;let i=0,j=0;for(;i<this.callbacks.length;){let val=this.callbacks[i];val.view!==this&&(this.callbacks[j++]=val),i++}this.callbacks.length=j,this._delete_callbacks.forEach(cb=>cb())},view.prototype.sides=function(){return this._View.sides()},view.prototype._num_hidden=function(){let hidden=0;for(const sort of this.config.sort)-1===this.config.columns.indexOf(sort[0])&&hidden++;return hidden};const extract_vector_scalar=function(vector){let extracted=[];for(let i=0;i<vector.size();i++){let item=vector.get(i);extracted.push(col_path_vector_to_string(item))}return vector.delete(),extracted};view.prototype.schema=function(override=!0){const schema=Object(_emscripten_js__WEBPACK_IMPORTED_MODULE_8__.a)(this._View.schema());if(override)for(const key of Object.keys(schema)){let colname=key.split(_config_constants_js__WEBPACK_IMPORTED_MODULE_4__.COLUMN_SEPARATOR_STRING);colname=colname[colname.length-1],this.overridden_types[colname]&&Object(_config_index_js__WEBPACK_IMPORTED_MODULE_5__.get_type_config)(this.overridden_types[colname]).type===schema[key]&&(schema[key]=this.overridden_types[colname])}return schema},view.prototype._column_names=function(skip=!1,depth=0){return extract_vector_scalar(this._View.column_names(skip,depth)).map(x=>x.join(_config_constants_js__WEBPACK_IMPORTED_MODULE_4__.COLUMN_SEPARATOR_STRING))},view.prototype.column_paths=function(){return extract_vector_scalar(this._View.column_paths()).map(x=>x.join(_config_constants_js__WEBPACK_IMPORTED_MODULE_4__.COLUMN_SEPARATOR_STRING))},view.prototype.get_data_slice=function(start_row,end_row,start_col,end_col){const num_sides=this.sides();return __MODULE__["get_data_slice_".concat(SIDES[num_sides])](this._View,start_row,end_row,start_col,end_col)};const _parse_format_options=function(options){options=options||{};const max_cols=this._View.num_columns()+(0===this.sides()?0:1),max_rows=this._View.num_rows(),hidden=this._num_hidden(),viewport=this.config.viewport?this.config.viewport:{},start_row=options.start_row||(viewport.top?viewport.top:0),end_row=Math.min(max_rows,void 0!==options.end_row?options.end_row:viewport.height?start_row+viewport.height:max_rows),start_col=options.start_col||(viewport.left?viewport.left:0),end_col=Math.min(max_cols,(void 0!==options.end_col?options.end_col:viewport.width?start_col+viewport.width:max_cols)*(hidden+1));return options.start_row=start_row,options.end_row=end_row,options.start_col=start_col,options.end_col=end_col,options},to_format=function(options,formatter){_call_process(this.table.get_id());const start_row=(options=_parse_format_options.bind(this)(options)).start_row,end_row=options.end_row,start_col=options.start_col,end_col=options.end_col,hidden=this._num_hidden();let date_format;options.date_format&&(date_format=new Intl.DateTimeFormat(options.date_format));const get_pkeys=!!options.index,get_ids=!!options.id,leaves_only=!!options.leaves_only,num_sides=this.sides(),has_row_path=0!==num_sides&&!this.column_only,nidx=SIDES[num_sides],slice=this.get_data_slice(start_row,end_row,start_col,end_col),ns=slice.get_column_names(),col_names=extract_vector_scalar(ns).map(x=>x.join(_config_constants_js__WEBPACK_IMPORTED_MODULE_4__.COLUMN_SEPARATOR_STRING)),schema=this.schema();let data=formatter.initDataValue();for(let ridx=start_row;ridx<end_row;ridx++){let row_path=has_row_path?slice.get_row_path(ridx):void 0;if(has_row_path&&leaves_only&&row_path.size()<this.config.row_pivots.length){row_path.delete();continue}let row=formatter.initRowValue();get_ids&&formatter.initColumnValue(data,row,"__ID__");for(let cidx=start_col;cidx<end_col;cidx++){const col_name=col_names[cidx],col_type=schema[col_name];if(!((cidx-(num_sides>0?1:0))%(this.config.columns.length+hidden)>=this.config.columns.length))if(cidx===start_col&&0!==num_sides){if(!this.column_only){formatter.initColumnValue(data,row,"__ROW_PATH__");for(let i=0;i<row_path.size();i++){const value=__MODULE__.scalar_to_val(row_path.get(i),!1,!1);formatter.addColumnValue(data,row,"__ROW_PATH__",value),get_ids&&formatter.addColumnValue(data,row,"__ID__",value)}}}else{let value=__MODULE__["get_from_data_slice_".concat(nidx)](slice,ridx,cidx);"datetime"!==col_type&&"date"!==col_type||void 0===value||date_format&&(value=new Date(value),value=date_format.format(value)),formatter.setColumnValue(data,row,col_name,value)}}if(get_pkeys){const keys=slice.get_pkeys(ridx,0);formatter.initColumnValue(data,row,"__INDEX__");for(let i=0;i<keys.size();i++){const value=__MODULE__.scalar_to_val(keys.get(i),!1,!1);formatter.addColumnValue(data,row,"__INDEX__",value)}}if(get_ids&&0===num_sides){const keys=slice.get_pkeys(ridx,0);for(let i=0;i<keys.size();i++){const value=__MODULE__.scalar_to_val(keys.get(i),!1,!1);formatter.addColumnValue(data,row,"__ID__",value)}}row_path&&row_path.delete(),formatter.addRow(data,row)}return slice.delete(),formatter.formatData(data,options.config)},column_to_format=function(col_name,options,format_function){const num_rows=this.num_rows(),start_row=options.start_row||0,end_row=options.end_row||num_rows;let idx=this._column_names().indexOf(col_name);if(-1===idx)return;let slice,data_slice;this.sides()>0&&idx++,options.data_slice?slice=options.data_slice.get_column_slice(idx):(data_slice=this.get_data_slice(start_row,end_row,idx,idx+1),slice=data_slice.get_slice());const rst=format_function(slice,this._View.get_column_dtype(idx),idx);return slice.delete(),data_slice&&data_slice.delete(),rst};function filterInPlace(a,condition){let i=0,j=0;for(;i<a.length;){const val=a[i];condition(val,i,a)&&(a[j++]=val),i++}return a.length=j,a}function view_config(config){this.row_pivots=config.row_pivots||[],this.column_pivots=config.column_pivots||[],this.aggregates=config.aggregates||{},this.columns=config.columns,this.filter=config.filter||[],this.sort=config.sort||[],this.filter_op=config.filter_op||"and",this.row_pivot_depth=config.row_pivot_depth,this.column_pivot_depth=config.column_pivot_depth}function _table(_Table,index,computed,limit,overridden_types){this._Table=_Table,this.gnode_id=this._Table.get_gnode().get_id(),this.name=Math.random()+"",this.initialized=!1,this.index=index,this._Table.get_pool().set_update_delegate(this),this.computed=computed||[],this.callbacks=[],this.views=[],this.limit=limit,this.overridden_types=overridden_types,this._delete_callbacks=[],Object(_utils_js__WEBPACK_IMPORTED_MODULE_9__.a)(this)}let meter;view.prototype.to_columns=function(options){return to_format.call(this,options,_view_formatters__WEBPACK_IMPORTED_MODULE_11__.a.jsonTableFormatter)},view.prototype.to_json=function(options){return to_format.call(this,options,_view_formatters__WEBPACK_IMPORTED_MODULE_11__.a.jsonFormatter)},view.prototype.to_csv=function(options){return to_format.call(this,options,_view_formatters__WEBPACK_IMPORTED_MODULE_11__.a.csvFormatter)},view.prototype.col_to_js_typed_array=function(col_name,options={}){const format_function=__MODULE__.col_to_js_typed_array;return column_to_format.call(this,col_name,options,format_function)},view.prototype.to_arrow=function(options={}){_call_process(this.table.get_id());const start_row=(options=_parse_format_options.bind(this)(options)).start_row,end_row=options.end_row,start_col=options.start_col,end_col=options.end_col,sides=this.sides();return 0===sides?__MODULE__.to_arrow_zero(this._View,start_row,end_row,start_col,end_col):1===sides?__MODULE__.to_arrow_one(this._View,start_row,end_row,start_col,end_col):2===sides?__MODULE__.to_arrow_two(this._View,start_row,end_row,start_col,end_col):void 0},view.prototype.num_rows=function(){return this._View.num_rows()},view.prototype.num_columns=function(){const ncols=this._View.num_columns(),nhidden=this._num_hidden();return ncols-ncols/(this.config.columns.length+nhidden)*nhidden},view.prototype.get_row_expanded=function(idx){return this._View.get_row_expanded(idx)},view.prototype.expand=function(idx){return this._View.expand(idx,this.config.row_pivots.length)},view.prototype.collapse=function(idx){return this._View.collapse(idx)},view.prototype.set_depth=function(depth){return this._View.set_depth(depth,this.config.row_pivots.length)},view.prototype._get_step_delta=async function(){let data,delta=this._View.get_step_delta(0,2147483647);if(0===delta.cells.size())data=this.to_json();else{let rows={};for(let x=0;x<delta.cells.size();x++)rows[delta.cells.get(x).row]=!0;rows=Object.keys(rows);const results=rows.map(row=>this.to_json({start_row:Number.parseInt(row),end_row:Number.parseInt(row)+1}));data=[].concat.apply([],results)}return delta.cells.delete(),data},view.prototype._get_row_delta=async function(){const sides=this.sides();return __MODULE__["get_row_delta_".concat(SIDES[sides])](this._View)},view.prototype.on_update=function(_callback,{mode:mode="none"}={}){if(_call_process(this.table.get_id()),-1===["none","cell","row"].indexOf(mode))throw new Error('Invalid update mode "'.concat(mode,'" - valid modes are "none", "cell" and "row".'));"cell"!==mode&&"row"!==mode||this._View._get_deltas_enabled()||this._View._set_deltas_enabled(!0),this.callbacks.push({view:this,orig_callback:_callback,callback:async cache=>{switch(mode){case"cell":void 0===cache.step_delta&&(cache.step_delta=await this._get_step_delta()),_callback(cache.step_delta);break;case"row":void 0===cache.row_delta&&(cache.row_delta=await this._get_row_delta()),_callback(cache.row_delta);break;default:_callback()}}})},view.prototype.remove_update=function(callback){_call_process(this.table.get_id());const total=this.callbacks.length;filterInPlace(this.callbacks,x=>x.orig_callback!==callback),console.assert(total>this.callbacks.length,'"callback" does not match a registered updater')},view.prototype.on_delete=function(callback){this._delete_callbacks.push(callback)},view.prototype.remove_delete=function(callback){const initial_length=this._delete_callbacks.length;filterInPlace(this._delete_callbacks,cb=>cb!==callback),console.assert(initial_length>this._delete_callbacks.length,'"callback" does not match a registered delete callbacks')},view_config.prototype.get_row_pivots=function(){let vector=__MODULE__.make_string_vector();return Object(_emscripten_js__WEBPACK_IMPORTED_MODULE_8__.c)(vector,this.row_pivots)},view_config.prototype.get_column_pivots=function(){let vector=__MODULE__.make_string_vector();return Object(_emscripten_js__WEBPACK_IMPORTED_MODULE_8__.c)(vector,this.column_pivots)},view_config.prototype.get_columns=function(){let vector=__MODULE__.make_string_vector();return Object(_emscripten_js__WEBPACK_IMPORTED_MODULE_8__.c)(vector,this.columns)},view_config.prototype.get_filter=function(){let vector=__MODULE__.make_2d_val_vector();for(let filter of this.filter){let filter_vector=__MODULE__.make_val_vector(),filled=Object(_emscripten_js__WEBPACK_IMPORTED_MODULE_8__.c)(filter_vector,filter);vector.push_back(filled)}return vector},view_config.prototype.get_sort=function(){let vector=__MODULE__.make_2d_string_vector();for(let sort of this.sort){let sort_vector=__MODULE__.make_string_vector(),filled=Object(_emscripten_js__WEBPACK_IMPORTED_MODULE_8__.c)(sort_vector,sort);vector.push_back(filled)}return vector},_table.prototype.compute=function(){return!0},_table.prototype.get_id=function(){return this._Table.get_id()},_table.prototype.get_pool=function(){return this._Table.get_pool()},_table.prototype._update_callback=function(){let cache={};for(let e in this.callbacks)this.callbacks[e].callback(cache)},_table.prototype.clear=function(){_remove_process(this.get_id()),this._Table.reset_gnode(this.gnode_id)},_table.prototype.replace=function(data){_remove_process(this.get_id()),this._Table.reset_gnode(this.gnode_id),this.update(data),_call_process(this._Table.get_id())},_table.prototype.delete=function(){if(this.views.length>0)throw"Table still has contexts - refusing to delete.";_remove_process(this.get_id()),this._Table.unregister_gnode(this.gnode_id),this._Table.delete(),this._delete_callbacks.forEach(callback=>callback())},_table.prototype.on_delete=function(callback){this._delete_callbacks.push(callback)},_table.prototype.remove_delete=function(callback){const initial_length=this._delete_callbacks.length;filterInPlace(this._delete_callbacks,cb=>cb!==callback),console.assert(initial_length>this._delete_callbacks.length,'"callback" does not match a registered delete callbacks')},_table.prototype.size=function(){return this._Table.size()},_table.prototype.schema=function(computed=!1,override=!0){let schema=this._Table.get_schema(),columns=schema.columns(),types=schema.types(),new_schema={};const computed_schema=this.computed_schema();for(let key=0;key<columns.size();key++){const name=columns.get(key);("psp_okey"!==name||void 0!==computed_schema[name]&&!computed)&&(override&&this.overridden_types[name]?new_schema[name]=this.overridden_types[name]:new_schema[name]=Object(_utils_js__WEBPACK_IMPORTED_MODULE_9__.b)(types.get(key).value))}return schema.delete(),columns.delete(),types.delete(),new_schema},_table.prototype.computed_schema=function(){if(this.computed.length<0)return{};const computed_schema={};for(let i=0;i<this.computed.length;i++){const column_name=this.computed[i].column,column_type=this.computed[i].type,column={};column.type=column_type,column.input_columns=this.computed[i].inputs,column.input_type=this.computed[i].input_type,column.computation=this.computed[i].computation,computed_schema[column_name]=column}return computed_schema},_table.prototype.is_valid_filter=function(filter){if(filter[1]===perspective.FILTER_OPERATORS.isNull||filter[1]===perspective.FILTER_OPERATORS.isNotNull)return!0;let value=filter[2];if(null===value)return!1;const schema=this.schema();return"date"!==schema[filter[0]]&&"datetime"!==schema[filter[0]]||(value=(new _data_accessor_date_parser_js__WEBPACK_IMPORTED_MODULE_7__.a).parse(value)),null!=value},_table.prototype.view=function(_config={}){_call_process(this.get_id());let config={};for(const key of Object.keys(_config))if(_config_constants_js__WEBPACK_IMPORTED_MODULE_4__.CONFIG_ALIASES[key]){if(config[_config_constants_js__WEBPACK_IMPORTED_MODULE_4__.CONFIG_ALIASES[key]])throw new Error('Duplicate configuration parameter "'.concat(key,'"'));console.warn('Deprecated: "'.concat(key,'" config parameter, please use "').concat(_config_constants_js__WEBPACK_IMPORTED_MODULE_4__.CONFIG_ALIASES[key],'" instead')),config[_config_constants_js__WEBPACK_IMPORTED_MODULE_4__.CONFIG_ALIASES[key]]=_config[key]}else if("aggregate"===key){console.warn('Deprecated: "aggregate" config parameter has been replaced by "aggregates" and "columns"'),config.aggregates={},config.columns=[];for(const agg of _config.aggregate)config.aggregates[agg.column]=agg.op,config.columns.push(agg.column)}else{if(!(_config_constants_js__WEBPACK_IMPORTED_MODULE_4__.CONFIG_VALID_KEYS.indexOf(key)>-1))throw new Error('Unrecognized config parameter "'.concat(key,'"'));config[key]=_config[key]}config.row_pivots=config.row_pivots||[],config.column_pivots=config.column_pivots||[],config.aggregates=config.aggregates||{},config.filter=config.filter||[],config.sort=config.sort||[],void 0===config.columns&&(config.columns=this.columns(!0));let sides,name=Math.random()+"";sides=config.row_pivots.length>0||config.column_pivots.length>0?config.column_pivots&&config.column_pivots.length>0?2:1:0;let v=new view(this,sides,config,new view_config(config),name,this.callbacks,this.overridden_types);return this.views.push(v),v},_table.prototype.update=function(data){let pdata,cols=this.columns(),schema=this._Table.get_schema(),types=schema.types(),is_arrow=!1;if(pdata=accessor,data instanceof ArrayBuffer?(pdata=new Uint8Array(data),is_arrow=!0):"string"==typeof data?(","===data[0]&&(data="_"+data),accessor.init(papaparse__WEBPACK_IMPORTED_MODULE_12___default.a.parse(data.trim(),{header:!0}).data),accessor.names=cols.concat(accessor.names.filter(x=>"__INDEX__"===x)),accessor.types=Object(_emscripten_js__WEBPACK_IMPORTED_MODULE_8__.b)(types).slice(0,accessor.names.length),meter&&meter(accessor.row_count)):(accessor.init(data),accessor.names=cols.concat(accessor.names.filter(x=>"__INDEX__"===x)),accessor.types=Object(_emscripten_js__WEBPACK_IMPORTED_MODULE_8__.b)(types).slice(0,cols.length),meter&&meter(accessor.row_count)),!is_arrow){if(0===pdata.row_count)return void console.warn("table.update called with no data - ignoring");if(-1!=accessor.names.indexOf("__INDEX__")){!!this.index?accessor.types.push(accessor.types[accessor.names.indexOf(this.index)]):accessor.types.push(__MODULE__.t_dtype.DTYPE_INT32)}}try{const op=__MODULE__.t_op.OP_INSERT;make_table(pdata,this._Table,this.computed,this.index||"",this.limit,op,!0,is_arrow),this.initialized=!0}catch(e){console.error("Update failed: ".concat(e))}finally{schema.delete()}},_table.prototype.remove=function(data){let pdata,cols=this.columns(),schema=this._Table.get_schema(),types=schema.types(),is_arrow=!1;(data=data.map(idx=>({[this.index]:idx})))instanceof ArrayBuffer?(pdata=new Uint8Array(data),is_arrow=!0):(accessor.init(data),accessor.names=[this.index],accessor.types=[Object(_emscripten_js__WEBPACK_IMPORTED_MODULE_8__.b)(types)[cols.indexOf(this.index)]],pdata=accessor);try{const op=__MODULE__.t_op.OP_DELETE;make_table(pdata,this._Table,void 0,this.index||"",this.limit,op,!1,is_arrow),this.initialized=!0}catch(e){console.error("Remove failed",e)}finally{schema.delete()}},_table.prototype.add_computed=function(computed){let _Table;try{return _Table=__MODULE__.make_computed_table(this._Table,computed),this.computed.length>0&&(computed=this.computed.concat(computed)),new _table(_Table,this.index,computed,this.limit,this.overridden_types)}catch(e){throw _Table&&_Table.delete(),e}},_table.prototype.columns=function(computed=!1){let schema=this._Table.get_schema(),computed_schema=this.computed_schema(),cols=schema.columns(),names=[];for(let cidx=0;cidx<cols.size();cidx++){let name=cols.get(cidx);"psp_okey"===name||void 0!==computed_schema[name]&&!computed||names.push(name)}return schema.delete(),cols.delete(),names},_table.prototype.execute=function(f){f(this)};const perspective={__module__:__MODULE__,Server:_api_server_js__WEBPACK_IMPORTED_MODULE_10__.a,worker:function(){return this},initialize_profile_thread:function(){if(void 0===meter){let _msgs=0,start=performance.now();setTimeout((function poll(){let now=performance.now();console.log("".concat((1e3*_msgs/(now-start)).toFixed(2)," msgs/sec")),_msgs=0,start=now,setTimeout(poll,5e3)}),5e3),meter=function(x){_msgs+=x},console.log("Profiling initialized")}},table:function(data,options){let data_accessor;(options=options||{}).index=options.index||"";let _Table,is_arrow=!1,overridden_types={};if(data instanceof ArrayBuffer||"undefined"!=typeof Buffer&&data instanceof Buffer?(data_accessor=new Uint8Array(data),is_arrow=!0):("string"==typeof data&&(","===data[0]&&(data="_"+data),data=papaparse__WEBPACK_IMPORTED_MODULE_12___default.a.parse(data.trim(),{dynamicTyping:!0,header:!0}).data),accessor.clean(),overridden_types=accessor.init(data),data_accessor=accessor),options.index&&options.limit)throw"Cannot specify both index '".concat(options.index,"' and limit '").concat(options.limit,"'.");try{const op=__MODULE__.t_op.OP_INSERT;return _Table=make_table(data_accessor,void 0,void 0,options.index,options.limit,op,!1,is_arrow),new _table(_Table,options.index,void 0,options.limit,overridden_types)}catch(e){throw _Table&&_Table.delete(),console.error("Table initialization failed: ".concat(e)),e}}};for(let prop of Object.keys(_config_constants_js__WEBPACK_IMPORTED_MODULE_4__))perspective[prop]=_config_constants_js__WEBPACK_IMPORTED_MODULE_4__[prop];class WebWorkerServer extends _api_server_js__WEBPACK_IMPORTED_MODULE_10__.a{constructor(perspective){super(perspective),self.addEventListener("message",e=>this.process(e.data),!1)}post(msg,transfer){self.postMessage(msg,transfer)}init(msg){if("undefined"==typeof WebAssembly)throw new Error("WebAssembly not supported");console.log("Loading wasm"),__MODULE__=__MODULE__({wasmBinary:msg.buffer,wasmJSMethod:"native-wasm"}).then(()=>super.init(msg))}}return"undefined"!=typeof self&&self.addEventListener&&new WebWorkerServer(perspective),perspective}}).call(this,__webpack_require__(21))},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return Server}));var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(11),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_0__),_config__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(8),_config__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_config__WEBPACK_IMPORTED_MODULE_1__);function error_to_json(error){const obj={};return"string"!=typeof error?Object.getOwnPropertyNames(error).forEach(key=>{obj[key]=error[key]},error):obj.message=error,obj}class Server{constructor(perspective){this.perspective=perspective,this._tables={},this._views={},this._callback_cache=new Map}init(msg){msg.config&&Object(_config__WEBPACK_IMPORTED_MODULE_1__.override_config)(msg.config),this.post(msg)}post(){throw new Error("post() not implemented!")}clear_views(client_id){for(let key of Object.keys(this._views))if(this._views[key].client_id===client_id){try{this._views[key].delete()}catch(e){console.error(e)}delete this._views[key]}console.debug("GC ".concat(Object.keys(this._views).length," views in memory"))}process(msg,client_id){switch(msg.cmd){case"init_profile_thread":this.perspective.initialize_profile_thread();break;case"init":this.init(msg);break;case"table":if(void 0===msg.args[0])this._tables[msg.name]=[];else{const msgs=this._tables[msg.name];if(this._tables[msg.name]=this.perspective.table(msg.args[0],msg.options),msgs)for(const msg of msgs)this.process(msg)}break;case"add_computed":let table=this._tables[msg.original],computed=msg.computed;for(let i=0;i<computed.length;++i){let column=computed[i];eval("column.func = "+column.func)}this._tables[msg.name]=table.add_computed(computed);break;case"table_generate":let g;eval("g = "+msg.args),g((function(tbl){this._tables[msg.name]=tbl,this.post({id:msg.id,data:"created!"})}));break;case"table_execute":let f;eval("f = "+msg.f),f(this._tables[msg.name]);break;case"table_method":case"view_method":this.process_method_call(msg);break;case"view":this._views[msg.view_name]=this._tables[msg.table_name].view(msg.config),this._views[msg.view_name].client_id=client_id}}process_error(msg,error){this.post({id:msg.id,error:error_to_json(error)})}process_subscribe(msg,obj){try{let callback;"on"===msg.method.slice(0,2)?(callback=ev=>{let result={id:msg.id,data:ev};try{if(msg.args&&msg.args[0]&&"on_update"===msg.method&&"row"===msg.args[0].mode)return void this.post(result,[ev]);this.post(result)}catch(e){console.error("Removing failed callback to `".concat(msg.method,"()` (presumably due to failed connection)"));const remove_method=msg.method.substring(3);obj["remove_".concat(remove_method)](callback)}},msg.callback_id&&this._callback_cache.set(msg.callback_id,callback)):msg.callback_id&&(callback=this._callback_cache.get(msg.callback_id),this._callback_cache.delete(msg.callback_id)),callback?obj[msg.method](callback,...msg.args):console.error('Callback not found for remote call "'.concat(JSON.stringify(msg),'"'))}catch(error){return void this.process_error(msg,error)}}process_method_call_response(msg,result){"delete"===msg.method&&delete this._views[msg.name],"to_arrow"===msg.method?this.post({id:msg.id,data:result},[result]):this.post({id:msg.id,data:result})}process_method_call(msg){let obj,result;if(obj="table_method"===msg.cmd?this._tables[msg.name]:this._views[msg.name],obj||"view_method"!==msg.cmd)if(obj&&obj.push)obj.push(msg);else try{if(msg.subscribe)return void this.process_subscribe(msg,obj);result=obj[msg.method].apply(obj,msg.args),result instanceof Promise?result.then(result=>this.process_method_call_response(msg,result)).catch(error=>this.process_error(msg,error)):this.process_method_call_response(msg,result)}catch(error){return void this.process_error(msg,error)}else this.process_error(msg,{message:"View is not initialized"})}}},function(module,exports){module.exports=!1},function(module,exports,__webpack_require__){var isObject=__webpack_require__(13),document=__webpack_require__(5).document,is=isObject(document)&&isObject(document.createElement);module.exports=function(it){return is?document.createElement(it):{}}},function(module,exports){module.exports=function(bitmap,value){return{enumerable:!(1&bitmap),configurable:!(2&bitmap),writable:!(4&bitmap),value:value}}},function(module,exports,__webpack_require__){var $keys=__webpack_require__(72),enumBugKeys=__webpack_require__(46);module.exports=Object.keys||function(O){return $keys(O,enumBugKeys)}},function(module,exports){module.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(module,exports,__webpack_require__){var def=__webpack_require__(33).f,has=__webpack_require__(19),TAG=__webpack_require__(2)("toStringTag");module.exports=function(it,tag,stat){it&&!has(it=stat?it:it.prototype,TAG)&&def(it,TAG,{configurable:!0,value:tag})}},function(module,exports){module.exports=function(module){return module.webpackPolyfill||(module.deprecate=function(){},module.paths=[],module.children||(module.children=[]),Object.defineProperty(module,"loaded",{enumerable:!0,get:function(){return module.l}}),Object.defineProperty(module,"id",{enumerable:!0,get:function(){return module.i}}),module.webpackPolyfill=1),module}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return DataAccessor}));__webpack_require__(11);var _date_parser_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(9),_utils_js__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(10),_config_index_js__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8);class DataAccessor{constructor(){this.data_formats={row:0,column:1,schema:2},this.format=void 0,this.data=void 0,this.names=void 0,this.types=void 0,this.row_count=void 0,this.date_parsers={},this.date_validator=val=>Object(_date_parser_js__WEBPACK_IMPORTED_MODULE_1__.b)(val)}is_format(data){if(Array.isArray(data))return this.data_formats.row;if(Array.isArray(data[Object.keys(data)[0]]))return this.data_formats.column;if("string"==typeof data[Object.keys(data)[0]]||"function"==typeof data[Object.keys(data)[0]])return this.data_formats.schema;throw"Could not determine data format for ".concat(JSON.stringify(data),", with JS typeof ").concat(typeof data)}count_rows(data){return this.format===this.data_formats.row?data.length:this.format===this.data_formats.column?data[Object.keys(data)[0]].length:0}get_format(){return this.format}get(column_name,row_index){let value=void 0;if(this.format===this.data_formats.row){let d=this.data[row_index];d.hasOwnProperty(column_name)&&(value=d[column_name])}else if(this.format===this.data_formats.column)this.data.hasOwnProperty(column_name)&&(value=this.data[column_name][row_index]);else{if(this.format!==this.data_formats.schema)throw"Could not get() from dataset - ".concat(this.data," is poorly formatted.");value=void 0}return value}marshal(column_index,row_index,type){const column_name=this.names[column_index];let val=null===(value=this.get(column_name,row_index))||"null"===value?null:void 0===value||"undefined"===value?void 0:value;var value;let date_parser;if(null===val)return null;if(void 0!==val){switch(void 0===this.date_parsers[column_name]&&(this.date_parsers[column_name]=new _date_parser_js__WEBPACK_IMPORTED_MODULE_1__.a),date_parser=this.date_parsers[column_name],Object(_utils_js__WEBPACK_IMPORTED_MODULE_2__.b)(type.value)){case"float":case"integer":val=Number(val);break;case"boolean":val="string"==typeof val?"true"===val.toLowerCase():!!val;break;case"datetime":case"date":val=date_parser.parse(val);break;default:val+=""}return val}}clean(){this.date_parsers={},this.names=void 0,this.types=void 0}init(data){this.data=data,this.format=this.is_format(this.data),this.row_count=this.count_rows(this.data);const overridden_types={};if(this.format===this.data_formats.row)data.length>0?this.names=Object.keys(data[0]):this.clean.names=[];else if(this.format===this.data_formats.column)this.names=Object.keys(data);else{if(this.format!==this.data_formats.schema)throw"Could not initialize - failed to determine format for ".concat(data);this.names=Object.keys(data);for(const name of this.names){const new_type=Object(_config_index_js__WEBPACK_IMPORTED_MODULE_3__.get_type_config)(data[name]);new_type.type&&(console.debug('Converting "'.concat(data[name],'" to "').concat(new_type.type,'"')),overridden_types[name]=data[name],data[name]=new_type.type)}}return overridden_types}}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__),function(global){var _obj_psp_async_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(39),_perspective_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(40);let _perspective_instance;_perspective_instance=void 0!==global.document&&"undefined"!=typeof WebAssembly?global.perspective=Object(_perspective_js__WEBPACK_IMPORTED_MODULE_1__.a)(Object(_obj_psp_async_js__WEBPACK_IMPORTED_MODULE_0__.a)({wasmJSMethod:"native-wasm",printErr:x=>console.error(x),print:x=>console.log(x)})):global.perspective=Object(_perspective_js__WEBPACK_IMPORTED_MODULE_1__.a)(_obj_psp_async_js__WEBPACK_IMPORTED_MODULE_0__.a),__webpack_exports__.default=_perspective_instance}.call(this,__webpack_require__(21))},function(module,exports){},function(module,exports,__webpack_require__){(function(process){function normalizeArray(parts,allowAboveRoot){for(var up=0,i=parts.length-1;i>=0;i--){var last=parts[i];"."===last?parts.splice(i,1):".."===last?(parts.splice(i,1),up++):up&&(parts.splice(i,1),up--)}if(allowAboveRoot)for(;up--;up)parts.unshift("..");return parts}function filter(xs,f){if(xs.filter)return xs.filter(f);for(var res=[],i=0;i<xs.length;i++)f(xs[i],i,xs)&&res.push(xs[i]);return res}exports.resolve=function(){for(var resolvedPath="",resolvedAbsolute=!1,i=arguments.length-1;i>=-1&&!resolvedAbsolute;i--){var path=i>=0?arguments[i]:process.cwd();if("string"!=typeof path)throw new TypeError("Arguments to path.resolve must be strings");path&&(resolvedPath=path+"/"+resolvedPath,resolvedAbsolute="/"===path.charAt(0))}return(resolvedAbsolute?"/":"")+(resolvedPath=normalizeArray(filter(resolvedPath.split("/"),(function(p){return!!p})),!resolvedAbsolute).join("/"))||"."},exports.normalize=function(path){var isAbsolute=exports.isAbsolute(path),trailingSlash="/"===substr(path,-1);return(path=normalizeArray(filter(path.split("/"),(function(p){return!!p})),!isAbsolute).join("/"))||isAbsolute||(path="."),path&&trailingSlash&&(path+="/"),(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("string"!=typeof p)throw new TypeError("Arguments to path.join must be strings");return p})).join("/"))},exports.relative=function(from,to){function trim(arr){for(var start=0;start<arr.length&&""===arr[start];start++);for(var end=arr.length-1;end>=0&&""===arr[end];end--);return start>end?[]:arr.slice(start,end-start+1)}from=exports.resolve(from).substr(1),to=exports.resolve(to).substr(1);for(var fromParts=trim(from.split("/")),toParts=trim(to.split("/")),length=Math.min(fromParts.length,toParts.length),samePartsLength=length,i=0;i<length;i++)if(fromParts[i]!==toParts[i]){samePartsLength=i;break}var outputParts=[];for(i=samePartsLength;i<fromParts.length;i++)outputParts.push("..");return(outputParts=outputParts.concat(toParts.slice(samePartsLength))).join("/")},exports.sep="/",exports.delimiter=":",exports.dirname=function(path){if("string"!=typeof path&&(path+=""),0===path.length)return".";for(var code=path.charCodeAt(0),hasRoot=47===code,end=-1,matchedSlash=!0,i=path.length-1;i>=1;--i)if(47===(code=path.charCodeAt(i))){if(!matchedSlash){end=i;break}}else matchedSlash=!1;return-1===end?hasRoot?"/":".":hasRoot&&1===end?"/":path.slice(0,end)},exports.basename=function(path,ext){var f=function(path){"string"!=typeof path&&(path+="");var i,start=0,end=-1,matchedSlash=!0;for(i=path.length-1;i>=0;--i)if(47===path.charCodeAt(i)){if(!matchedSlash){start=i+1;break}}else-1===end&&(matchedSlash=!1,end=i+1);return-1===end?"":path.slice(start,end)}(path);return ext&&f.substr(-1*ext.length)===ext&&(f=f.substr(0,f.length-ext.length)),f},exports.extname=function(path){"string"!=typeof path&&(path+="");for(var startDot=-1,startPart=0,end=-1,matchedSlash=!0,preDotState=0,i=path.length-1;i>=0;--i){var code=path.charCodeAt(i);if(47!==code)-1===end&&(matchedSlash=!1,end=i+1),46===code?-1===startDot?startDot=i:1!==preDotState&&(preDotState=1):-1!==startDot&&(preDotState=-1);else if(!matchedSlash){startPart=i+1;break}}return-1===startDot||-1===end||0===preDotState||1===preDotState&&startDot===end-1&&startDot===startPart+1?"":path.slice(startDot,end)};var substr="b"==="ab".substr(-1)?function(str,start,len){return str.substr(start,len)}:function(str,start,len){return start<0&&(start=str.length+start),str.substr(start,len)}}).call(this,__webpack_require__(22))},function(module,exports,__webpack_require__){"use strict";var anObject=__webpack_require__(3),toObject=__webpack_require__(23),toLength=__webpack_require__(15),toInteger=__webpack_require__(16),advanceStringIndex=__webpack_require__(24),regExpExec=__webpack_require__(25),max=Math.max,min=Math.min,floor=Math.floor,SUBSTITUTION_SYMBOLS=/\$([$&`']|\d\d?|<[^>]*>)/g,SUBSTITUTION_SYMBOLS_NO_NAMED=/\$([$&`']|\d\d?)/g;__webpack_require__(30)("replace",2,(function(defined,REPLACE,$replace,maybeCallNative){return[function(searchValue,replaceValue){var O=defined(this),fn=null==searchValue?void 0:searchValue[REPLACE];return void 0!==fn?fn.call(searchValue,O,replaceValue):$replace.call(String(O),searchValue,replaceValue)},function(regexp,replaceValue){var res=maybeCallNative($replace,regexp,this,replaceValue);if(res.done)return res.value;var rx=anObject(regexp),S=String(this),functionalReplace="function"==typeof replaceValue;functionalReplace||(replaceValue=String(replaceValue));var global=rx.global;if(global){var fullUnicode=rx.unicode;rx.lastIndex=0}for(var results=[];;){var result=regExpExec(rx,S);if(null===result)break;if(results.push(result),!global)break;""===String(result[0])&&(rx.lastIndex=advanceStringIndex(S,toLength(rx.lastIndex),fullUnicode))}for(var it,accumulatedResult="",nextSourcePosition=0,i=0;i<results.length;i++){result=results[i];for(var matched=String(result[0]),position=max(min(toInteger(result.index),S.length),0),captures=[],j=1;j<result.length;j++)captures.push(void 0===(it=result[j])?it:String(it));var namedCaptures=result.groups;if(functionalReplace){var replacerArgs=[matched].concat(captures,position,S);void 0!==namedCaptures&&replacerArgs.push(namedCaptures);var replacement=String(replaceValue.apply(void 0,replacerArgs))}else replacement=getSubstitution(matched,S,position,captures,namedCaptures,replaceValue);position>=nextSourcePosition&&(accumulatedResult+=S.slice(nextSourcePosition,position)+replacement,nextSourcePosition=position+matched.length)}return accumulatedResult+S.slice(nextSourcePosition)}];function getSubstitution(matched,str,position,captures,namedCaptures,replacement){var tailPos=position+matched.length,m=captures.length,symbols=SUBSTITUTION_SYMBOLS_NO_NAMED;return void 0!==namedCaptures&&(namedCaptures=toObject(namedCaptures),symbols=SUBSTITUTION_SYMBOLS),$replace.call(replacement,symbols,(function(match,ch){var capture;switch(ch.charAt(0)){case"$":return"$";case"&":return matched;case"`":return str.slice(0,position);case"'":return str.slice(tailPos);case"<":capture=namedCaptures[ch.slice(1,-1)];break;default:var n=+ch;if(0===n)return match;if(n>m){var f=floor(n/10);return 0===f?match:f<=m?void 0===captures[f-1]?ch.charAt(1):captures[f-1]+ch.charAt(1):match}capture=captures[n-1]}return void 0===capture?"":capture}))}}))},function(module,exports,__webpack_require__){var toInteger=__webpack_require__(16),defined=__webpack_require__(14);module.exports=function(TO_STRING){return function(that,pos){var a,b,s=String(defined(that)),i=toInteger(pos),l=s.length;return i<0||i>=l?TO_STRING?"":void 0:(a=s.charCodeAt(i))<55296||a>56319||i+1===l||(b=s.charCodeAt(i+1))<56320||b>57343?TO_STRING?s.charAt(i):a:TO_STRING?s.slice(i,i+2):b-56320+(a-55296<<10)+65536}}},function(module,exports,__webpack_require__){var cof=__webpack_require__(26),TAG=__webpack_require__(2)("toStringTag"),ARG="Arguments"==cof(function(){return arguments}());module.exports=function(it){var O,T,B;return void 0===it?"Undefined":null===it?"Null":"string"==typeof(T=function(it,key){try{return it[key]}catch(e){}}(O=Object(it),TAG))?T:ARG?cof(O):"Object"==(B=cof(O))&&"function"==typeof O.callee?"Arguments":B}},function(module,exports,__webpack_require__){"use strict";var regexpExec=__webpack_require__(31);__webpack_require__(32)({target:"RegExp",proto:!0,forced:regexpExec!==/./.exec},{exec:regexpExec})},function(module,exports,__webpack_require__){"use strict";var anObject=__webpack_require__(3);module.exports=function(){var that=anObject(this),result="";return that.global&&(result+="g"),that.ignoreCase&&(result+="i"),that.multiline&&(result+="m"),that.unicode&&(result+="u"),that.sticky&&(result+="y"),result}},function(module,exports,__webpack_require__){module.exports=!__webpack_require__(17)&&!__webpack_require__(7)((function(){return 7!=Object.defineProperty(__webpack_require__(43)("div"),"a",{get:function(){return 7}}).a}))},function(module,exports,__webpack_require__){var isObject=__webpack_require__(13);module.exports=function(it,S){if(!isObject(it))return it;var fn,val;if(S&&"function"==typeof(fn=it.toString)&&!isObject(val=fn.call(it)))return val;if("function"==typeof(fn=it.valueOf)&&!isObject(val=fn.call(it)))return val;if(!S&&"function"==typeof(fn=it.toString)&&!isObject(val=fn.call(it)))return val;throw TypeError("Can't convert object to primitive value")}},function(module,exports,__webpack_require__){module.exports=__webpack_require__(27)("native-function-to-string",Function.toString)},function(module,exports,__webpack_require__){var aFunction=__webpack_require__(34);module.exports=function(fn,that,length){if(aFunction(fn),void 0===that)return fn;switch(length){case 1:return function(a){return fn.call(that,a)};case 2:return function(a,b){return fn.call(that,a,b)};case 3:return function(a,b,c){return fn.call(that,a,b,c)}}return function(){return fn.apply(that,arguments)}}},function(module,exports,__webpack_require__){var isObject=__webpack_require__(13),cof=__webpack_require__(26),MATCH=__webpack_require__(2)("match");module.exports=function(it){var isRegExp;return isObject(it)&&(void 0!==(isRegExp=it[MATCH])?!!isRegExp:"RegExp"==cof(it))}},function(module,exports,__webpack_require__){var anObject=__webpack_require__(3),aFunction=__webpack_require__(34),SPECIES=__webpack_require__(2)("species");module.exports=function(O,D){var S,C=anObject(O).constructor;return void 0===C||null==(S=anObject(C)[SPECIES])?D:aFunction(S)}},function(module,exports,__webpack_require__){"use strict";var addToUnscopables=__webpack_require__(65),step=__webpack_require__(66),Iterators=__webpack_require__(36),toIObject=__webpack_require__(37);module.exports=__webpack_require__(68)(Array,"Array",(function(iterated,kind){this._t=toIObject(iterated),this._i=0,this._k=kind}),(function(){var O=this._t,kind=this._k,index=this._i++;return!O||index>=O.length?(this._t=void 0,step(1)):step(0,"keys"==kind?index:"values"==kind?O[index]:[index,O[index]])}),"values"),Iterators.Arguments=Iterators.Array,addToUnscopables("keys"),addToUnscopables("values"),addToUnscopables("entries")},function(module,exports,__webpack_require__){var UNSCOPABLES=__webpack_require__(2)("unscopables"),ArrayProto=Array.prototype;null==ArrayProto[UNSCOPABLES]&&__webpack_require__(6)(ArrayProto,UNSCOPABLES,{}),module.exports=function(key){ArrayProto[UNSCOPABLES][key]=!0}},function(module,exports){module.exports=function(done,value){return{value:value,done:!!done}}},function(module,exports,__webpack_require__){var cof=__webpack_require__(26);module.exports=Object("z").propertyIsEnumerable(0)?Object:function(it){return"String"==cof(it)?it.split(""):Object(it)}},function(module,exports,__webpack_require__){"use strict";var LIBRARY=__webpack_require__(42),$export=__webpack_require__(32),redefine=__webpack_require__(18),hide=__webpack_require__(6),Iterators=__webpack_require__(36),$iterCreate=__webpack_require__(69),setToStringTag=__webpack_require__(47),getPrototypeOf=__webpack_require__(76),ITERATOR=__webpack_require__(2)("iterator"),BUGGY=!([].keys&&"next"in[].keys()),returnThis=function(){return this};module.exports=function(Base,NAME,Constructor,next,DEFAULT,IS_SET,FORCED){$iterCreate(Constructor,NAME,next);var methods,key,IteratorPrototype,getMethod=function(kind){if(!BUGGY&&kind in proto)return proto[kind];switch(kind){case"keys":case"values":return function(){return new Constructor(this,kind)}}return function(){return new Constructor(this,kind)}},TAG=NAME+" Iterator",DEF_VALUES="values"==DEFAULT,VALUES_BUG=!1,proto=Base.prototype,$native=proto[ITERATOR]||proto["@@iterator"]||DEFAULT&&proto[DEFAULT],$default=$native||getMethod(DEFAULT),$entries=DEFAULT?DEF_VALUES?getMethod("entries"):$default:void 0,$anyNative="Array"==NAME&&proto.entries||$native;if($anyNative&&(IteratorPrototype=getPrototypeOf($anyNative.call(new Base)))!==Object.prototype&&IteratorPrototype.next&&(setToStringTag(IteratorPrototype,TAG,!0),LIBRARY||"function"==typeof IteratorPrototype[ITERATOR]||hide(IteratorPrototype,ITERATOR,returnThis)),DEF_VALUES&&$native&&"values"!==$native.name&&(VALUES_BUG=!0,$default=function(){return $native.call(this)}),LIBRARY&&!FORCED||!BUGGY&&!VALUES_BUG&&proto[ITERATOR]||hide(proto,ITERATOR,$default),Iterators[NAME]=$default,Iterators[TAG]=returnThis,DEFAULT)if(methods={values:DEF_VALUES?$default:getMethod("values"),keys:IS_SET?$default:getMethod("keys"),entries:$entries},FORCED)for(key in methods)key in proto||redefine(proto,key,methods[key]);else $export($export.P+$export.F*(BUGGY||VALUES_BUG),NAME,methods);return methods}},function(module,exports,__webpack_require__){"use strict";var create=__webpack_require__(70),descriptor=__webpack_require__(44),setToStringTag=__webpack_require__(47),IteratorPrototype={};__webpack_require__(6)(IteratorPrototype,__webpack_require__(2)("iterator"),(function(){return this})),module.exports=function(Constructor,NAME,next){Constructor.prototype=create(IteratorPrototype,{next:descriptor(1,next)}),setToStringTag(Constructor,NAME+" Iterator")}},function(module,exports,__webpack_require__){var anObject=__webpack_require__(3),dPs=__webpack_require__(71),enumBugKeys=__webpack_require__(46),IE_PROTO=__webpack_require__(38)("IE_PROTO"),Empty=function(){},createDict=function(){var iframeDocument,iframe=__webpack_require__(43)("iframe"),i=enumBugKeys.length;for(iframe.style.display="none",__webpack_require__(75).appendChild(iframe),iframe.src="javascript:",(iframeDocument=iframe.contentWindow.document).open(),iframeDocument.write("<script>document.F=Object<\/script>"),iframeDocument.close(),createDict=iframeDocument.F;i--;)delete createDict.prototype[enumBugKeys[i]];return createDict()};module.exports=Object.create||function(O,Properties){var result;return null!==O?(Empty.prototype=anObject(O),result=new Empty,Empty.prototype=null,result[IE_PROTO]=O):result=createDict(),void 0===Properties?result:dPs(result,Properties)}},function(module,exports,__webpack_require__){var dP=__webpack_require__(33),anObject=__webpack_require__(3),getKeys=__webpack_require__(45);module.exports=__webpack_require__(17)?Object.defineProperties:function(O,Properties){anObject(O);for(var P,keys=getKeys(Properties),length=keys.length,i=0;length>i;)dP.f(O,P=keys[i++],Properties[P]);return O}},function(module,exports,__webpack_require__){var has=__webpack_require__(19),toIObject=__webpack_require__(37),arrayIndexOf=__webpack_require__(73)(!1),IE_PROTO=__webpack_require__(38)("IE_PROTO");module.exports=function(object,names){var key,O=toIObject(object),i=0,result=[];for(key in O)key!=IE_PROTO&&has(O,key)&&result.push(key);for(;names.length>i;)has(O,key=names[i++])&&(~arrayIndexOf(result,key)||result.push(key));return result}},function(module,exports,__webpack_require__){var toIObject=__webpack_require__(37),toLength=__webpack_require__(15),toAbsoluteIndex=__webpack_require__(74);module.exports=function(IS_INCLUDES){return function($this,el,fromIndex){var value,O=toIObject($this),length=toLength(O.length),index=toAbsoluteIndex(fromIndex,length);if(IS_INCLUDES&&el!=el){for(;length>index;)if((value=O[index++])!=value)return!0}else for(;length>index;index++)if((IS_INCLUDES||index in O)&&O[index]===el)return IS_INCLUDES||index||0;return!IS_INCLUDES&&-1}}},function(module,exports,__webpack_require__){var toInteger=__webpack_require__(16),max=Math.max,min=Math.min;module.exports=function(index,length){return(index=toInteger(index))<0?max(index+length,0):min(index,length)}},function(module,exports,__webpack_require__){var document=__webpack_require__(5).document;module.exports=document&&document.documentElement},function(module,exports,__webpack_require__){var has=__webpack_require__(19),toObject=__webpack_require__(23),IE_PROTO=__webpack_require__(38)("IE_PROTO"),ObjectProto=Object.prototype;module.exports=Object.getPrototypeOf||function(O){return O=toObject(O),has(O,IE_PROTO)?O[IE_PROTO]:"function"==typeof O.constructor&&O instanceof O.constructor?O.constructor.prototype:O instanceof Object?ObjectProto:null}},function(module,exports,__webpack_require__){"use strict";var $export=__webpack_require__(32),aFunction=__webpack_require__(34),toObject=__webpack_require__(23),fails=__webpack_require__(7),$sort=[].sort,test=[1,2,3];$export($export.P+$export.F*(fails((function(){test.sort(void 0)}))||!fails((function(){test.sort(null)}))||!__webpack_require__(78)($sort)),"Array",{sort:function(comparefn){return void 0===comparefn?$sort.call(toObject(this)):$sort.call(toObject(this),aFunction(comparefn))}})},function(module,exports,__webpack_require__){"use strict";var fails=__webpack_require__(7);module.exports=function(method,arg){return!!method&&fails((function(){arg?method.call(null,(function(){}),1):method.call(null)}))}},function(module,exports){module.exports.default={types:{float:{filter_operator:"==",aggregate:"sum",format:{style:"decimal",minimumFractionDigits:2,maximumFractionDigits:2}},string:{filter_operator:"==",aggregate:"count"},integer:{filter_operator:"==",aggregate:"sum",format:{}},boolean:{filter_operator:"==",aggregate:"count"},datetime:{filter_operator:"==",aggregate:"count",format:{week:"numeric",year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},null_value:-1},date:{filter_operator:"==",aggregate:"count",format:{week:"numeric",year:"numeric",month:"numeric",day:"numeric"},null_value:-1}}}},function(module,exports,__webpack_require__){var map={"./es":81,"./fr":82};function webpackContext(req){var id=webpackContextResolve(req);return __webpack_require__(id)}function webpackContextResolve(req){if(!__webpack_require__.o(map,req)){var e=new Error("Cannot find module '"+req+"'");throw e.code="MODULE_NOT_FOUND",e}return map[req]}webpackContext.keys=function(){return Object.keys(map)},webpackContext.resolve=webpackContextResolve,module.exports=webpackContext,webpackContext.id=80},function(module,exports,__webpack_require__){!function(moment){"use strict";var monthsShortDot="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),monthsShort="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),monthsParse=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],monthsRegex=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;moment.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(m,format){return m?/-MMM-/.test(format)?monthsShort[m.month()]:monthsShortDot[m.month()]:monthsShortDot},monthsRegex:monthsRegex,monthsShortRegex:monthsRegex,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:monthsParse,longMonthsParse:monthsParse,shortMonthsParse:monthsParse,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(__webpack_require__(4))},function(module,exports,__webpack_require__){!function(moment){"use strict";moment.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourdhui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(number,period){switch(period){case"D":return number+(1===number?"er":"");default:case"M":case"Q":case"DDD":case"d":return number+(1===number?"er":"e");case"w":case"W":return number+(1===number?"re":"e")}},week:{dow:1,doy:4}})}(__webpack_require__(4))},function(module,exports,__webpack_require__){"use strict";var anObject=__webpack_require__(3),toLength=__webpack_require__(15),advanceStringIndex=__webpack_require__(24),regExpExec=__webpack_require__(25);__webpack_require__(30)("match",1,(function(defined,MATCH,$match,maybeCallNative){return[function(regexp){var O=defined(this),fn=null==regexp?void 0:regexp[MATCH];return void 0!==fn?fn.call(regexp,O):new RegExp(regexp)[MATCH](String(O))},function(regexp){var res=maybeCallNative($match,regexp,this);if(res.done)return res.value;var rx=anObject(regexp),S=String(this);if(!rx.global)return regExpExec(rx,S);var fullUnicode=rx.unicode;rx.lastIndex=0;for(var result,A=[],n=0;null!==(result=regExpExec(rx,S));){var matchStr=String(result[0]);A[n]=matchStr,""===matchStr&&(rx.lastIndex=advanceStringIndex(S,toLength(rx.lastIndex),fullUnicode)),n++}return 0===n?null:A}]}))},function(module,exports){module.exports=function(){var ua=window.navigator.userAgent,msie=ua.indexOf("MSIE ");if(msie>0)return parseInt(ua.substring(msie+5,ua.indexOf(".",msie)),10);if(ua.indexOf("Trident/")>0){var rv=ua.indexOf("rv:");return parseInt(ua.substring(rv+3,ua.indexOf(".",rv)),10)}var edge=ua.indexOf("Edge/");return edge>0&&parseInt(ua.substring(edge+5,ua.indexOf(".",edge)),10)}}]);
//# sourceMappingURL=perspective.wasm.worker.js.map