text: !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.rexachievementsplugin=t():e.rexachievementsplugin=t()}(window,function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=308)}({0:function(e,t){e.exports=function(e,t,n){if(e&&"number"!=typeof e){if(e.hasOwnProperty(t))return e[t];if(-1!==t.indexOf(".")){for(var r=t.split("."),i=e,s=n,a=0;a<r.length;a++){if(!i.hasOwnProperty(r[a])){s=n;break}s=i[r[a]],i=i[r[a]]}return s}return n}return n}},127:function(e,t,n){"use strict";var r=function(e,t){var n;return-1==(n=t).indexOf("==")&&-1==n.indexOf("!=")&&-1==n.indexOf(">=")&&-1==n.indexOf("<=")&&-1==n.indexOf(">")&&-1==n.indexOf("<")&&(isNaN(t)&&(t="'"+t+"'"),t="==("+t+")"),"(values['"+e+"']"+t+")"};t.a=function(e,t){for(var n=[],i=0,s=e.length;i<s;i++)""!==t[i]&&null!=t[i]&&n.push(r(e[i],t[i]));var a=n.length>0?n.join("&&"):"false";return new Function("values","return "+a)}},201:function(e,t,n){"use strict";var r=n(0),i=n.n(r),s=n(30),a=n.n(s),o=n(7),u=n(127);function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var f=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.createTestCallback(t,n)}var t,n,r;return t=e,(n=[{key:"createTestCallback",value:function(e,t){return this.name=t[1],t.splice(0,2),this.testFunction=Object(u.a)(e,t),this}},{key:"runTest",value:function(e){return this.testFunction(e)}}])&&h(t.prototype,n),r&&h(t,r),e}();function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.achievements={},this.obtainedStates={},this.resetFromJSON(t)}var t,n,r;return t=e,(n=[{key:"resetFromJSON",value:function(e){return this.setObtainedState(i()(e,"obtained",{})),this}},{key:"loadCSV",value:function(e,t){Object(o.a)(this.achievements);var n,r,s,u=i()(t,"delimiter",","),h=a.a.parse(e,{delimiter:u}).data,c=h[0];c.splice(0,2);for(var l=1,d=h.length;l<d;l++)s=(n=h[l])[0],r=new f(c,n),this.achievements.hasOwnProperty(s)||(this.achievements[s]=[]),this.achievements[s].push(r);return this}},{key:"getAchievements",value:function(e){return this.achievements[e]}},{key:"getAchievementNames",value:function(e,t){void 0===t&&(t=[]);var n=this.getAchievements(e);if(!n)return t;for(var r=0,i=n.length;r<i;r++)t.push(n[r].name);return names}},{key:"getObtainedState",value:function(e,t){return this.obtainedStates.hasOwnProperty(e)||(this.obtainedStates[e]={}),this.obtainedStates[e].hasOwnProperty(t)||(this.obtainedStates[e][t]={wasObtained:!1,justObtained:!1}),this.obtainedStates[e][t]}},{key:"runTest",value:function(e,t){var n,r=this.getAchievements(e);if(void 0===r)return this;for(var i=0,s=r.length;i<s;i++)(n=this.getObtainedState(e,r[i].name)).justObtained=!1,n.wasObtained||r[i].runTest(t)&&(n.justObtained=!0,n.wasObtained=!0);return this}},{key:"forEachObtainedState",value:function(e,t,n){var r,i,s=this.getAchievements(e);if(void 0===s)return this;for(var a=0,o=s.length;a<o;a++)r=s[a].name,i=this.getObtainedState(e,r),n?t.call(n,e,r,i):t(e,r,i);return this}},{key:"setObtainedState",value:function(e,t,n){void 0===n&&(n=!0);var r=this.getObtainedState(e,t);return r.wasObtained!==n&&(r.justObtained=n,r.wasObtained=n),this}},{key:"loadObtainedStates",value:function(e){return this.obtainedStates=e,this}},{key:"getObtainedStates",value:function(){return this.obtainedStates}}])&&c(t.prototype,n),r&&c(t,r),e}();t.a=l},30:function(e,t,n){var r,i,s;function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),i=[],void 0===(s="function"==typeof(r=function(){"use strict";var e,t,n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n?n:{},r=!n.document&&!!n.postMessage,i=r&&/(\?|&)papaworker(=|&|$)/.test(n.location.search),s=!1,o={},u=0,h={parse:function(t,r){var i=(r=r||{}).dynamicTyping||!1;if(S(i)&&(r.dynamicTypingFunction=i,i={}),r.dynamicTyping=i,r.transform=!!S(r.transform)&&r.transform,r.worker&&h.WORKERS_SUPPORTED){var a=function(){if(!h.WORKERS_SUPPORTED)return!1;if(!s&&null===h.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 t=h.SCRIPT_PATH||e;t+=(-1!==t.indexOf("?")?"&":"?")+"papaworker";var r=new n.Worker(t);return r.onmessage=v,r.id=u++,o[r.id]=r}();return a.userStep=r.step,a.userChunk=r.chunk,a.userComplete=r.complete,a.userError=r.error,r.step=S(r.step),r.chunk=S(r.chunk),r.complete=S(r.complete),r.error=S(r.error),delete r.worker,void a.postMessage({input:t,config:r,workerId:a.id})}var f=null;return h.NODE_STREAM_INPUT,"string"==typeof t?f=r.download?new l(r):new p(r):!0===t.readable&&S(t.read)&&S(t.on)?f=new m(r):(n.File&&t instanceof File||t instanceof Object)&&(f=new d(r)),f.stream(t)},unparse:function(e,t){var n=!1,r=!0,i=",",s="\r\n",o='"',u=!1;"object"==a(t)&&("string"!=typeof t.delimiter||h.BAD_DELIMITERS.filter(function(e){return-1!==t.delimiter.indexOf(e)}).length||(i=t.delimiter),("boolean"==typeof t.quotes||Array.isArray(t.quotes))&&(n=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(u=t.skipEmptyLines),"string"==typeof t.newline&&(s=t.newline),"string"==typeof t.quoteChar&&(o=t.quoteChar),"boolean"==typeof t.header&&(r=t.header));var f=new RegExp(y(o),"g");if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return l(null,e,u);if("object"==a(e[0]))return l(c(e[0]),e,u)}else if("object"==a(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:c(e.data[0])),Array.isArray(e.data[0])||"object"==a(e.data[0])||(e.data=[e.data])),l(e.fields||[],e.data||[],u);throw"exception: Unable to serialize unrecognized input";function c(e){if("object"!=a(e))return[];var t=[];for(var n in e)t.push(n);return t}function l(e,t,n){var a="";"string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t));var o=Array.isArray(e)&&0<e.length,u=!Array.isArray(t[0]);if(o&&r){for(var h=0;h<e.length;h++)0<h&&(a+=i),a+=d(e[h],h);0<t.length&&(a+=s)}for(var f=0;f<t.length;f++){var c=o?e.length:t[f].length,l=!1,p=o?0===Object.keys(t[f]).length:0===t[f].length;if(n&&!o&&(l="greedy"===n?""===t[f].join("").trim():1===t[f].length&&0===t[f][0].length),"greedy"===n&&o){for(var m=[],g=0;g<c;g++){var y=u?e[g]:g;m.push(t[f][y])}l=""===m.join("").trim()}if(!l){for(var _=0;_<c;_++){0<_&&!p&&(a+=i);var v=o&&u?e[_]:_;a+=d(t[f][v],_)}f<t.length-1&&(!n||0<c&&!p)&&(a+=s)}}return a}function d(e,t){if(null==e)return"";if(e.constructor===Date)return JSON.stringify(e).slice(1,25);e=e.toString().replace(f,o+o);var r="boolean"==typeof n&&n||Array.isArray(n)&&n[t]||function(e,t){for(var n=0;n<t.length;n++)if(-1<e.indexOf(t[n]))return!0;return!1}(e,h.BAD_DELIMITERS)||-1<e.indexOf(i)||" "===e.charAt(0)||" "===e.charAt(e.length-1);return r?o+e+o:e}}};if(h.RECORD_SEP=String.fromCharCode(30),h.UNIT_SEP=String.fromCharCode(31),h.BYTE_ORDER_MARK="\ufeff",h.BAD_DELIMITERS=["\r","\n",'"',h.BYTE_ORDER_MARK],h.WORKERS_SUPPORTED=!r&&!!n.Worker,h.SCRIPT_PATH=null,h.NODE_STREAM_INPUT=1,h.LocalChunkSize=10485760,h.RemoteChunkSize=5242880,h.DefaultDelimiter=",",h.Parser=_,h.ParserHandle=g,h.NetworkStreamer=l,h.FileStreamer=d,h.StringStreamer=p,h.ReadableStreamStreamer=m,n.jQuery){var f=n.jQuery;f.fn.parse=function(e){var t=e.config||{},r=[];return this.each(function(e){if("INPUT"!==f(this).prop("tagName").toUpperCase()||"file"!==f(this).attr("type").toLowerCase()||!n.FileReader||!this.files||0===this.files.length)return!0;for(var i=0;i<this.files.length;i++)r.push({file:this.files[i],inputElem:this,instanceConfig:f.extend({},t)})}),i(),this;function i(){if(0!==r.length){var t,n,i,o,u=r[0];if(S(e.before)){var c=e.before(u.file,u.inputElem);if("object"==a(c)){if("abort"===c.action)return t="AbortError",n=u.file,i=u.inputElem,o=c.reason,void(S(e.error)&&e.error({name:t},n,i,o));if("skip"===c.action)return void s();"object"==a(c.config)&&(u.instanceConfig=f.extend(u.instanceConfig,c.config))}else if("skip"===c)return void s()}var l=u.instanceConfig.complete;u.instanceConfig.complete=function(e){S(l)&&l(e,u.file,u.inputElem),s()},h.parse(u.file,u.instanceConfig)}else S(e.complete)&&e.complete()}function s(){r.splice(0,1),i()}}}function c(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=w(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new g(t),(this._handle.streamer=this)._config=t}.call(this,e),this.parseChunk=function(e,t){if(this.isFirstChunk&&S(this._config.beforeFirstChunk)){var r=this._config.beforeFirstChunk(e);void 0!==r&&(e=r)}this.isFirstChunk=!1;var s=this._partialLine+e;this._partialLine="";var a=this._handle.parse(s,this._baseIndex,!this._finished);if(!this._handle.paused()&&!this._handle.aborted()){var o=a.meta.cursor;this._finished||(this._partialLine=s.substring(o-this._baseIndex),this._baseIndex=o),a&&a.data&&(this._rowCount+=a.data.length);var u=this._finished||this._config.preview&&this._rowCount>=this._config.preview;if(i)n.postMessage({results:a,workerId:h.WORKER_ID,finished:u});else if(S(this._config.chunk)&&!t){if(this._config.chunk(a,this._handle),this._handle.paused()||this._handle.aborted())return;a=void 0,this._completeResults=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(a.data),this._completeResults.errors=this._completeResults.errors.concat(a.errors),this._completeResults.meta=a.meta),this._completed||!u||!S(this._config.complete)||a&&a.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),u||a&&a.meta.paused||this._nextChunk(),a}},this._sendError=function(e){S(this._config.error)?this._config.error(e):i&&this._config.error&&n.postMessage({workerId:h.WORKER_ID,error:e,finished:!1})}}function l(e){var t;(e=e||{}).chunkSize||(e.chunkSize=h.RemoteChunkSize),c.call(this,e),this._nextChunk=r?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(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),r||(t.onload=O(this._chunkLoaded,this),t.onerror=O(this._chunkError,this)),t.open("GET",this._input,!r),this._config.downloadRequestHeaders){var e=this._config.downloadRequestHeaders;for(var n in e)t.setRequestHeader(n,e[n])}if(this._config.chunkSize){var i=this._start+this._config.chunkSize-1;t.setRequestHeader("Range","bytes="+this._start+"-"+i),t.setRequestHeader("If-None-Match","webkit-no-cache")}try{t.send()}catch(e){this._chunkError(e.message)}r&&0===t.status?this._chunkError():this._start+=this._config.chunkSize}},this._chunkLoaded=function(){var e;4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._finished=!this._config.chunkSize||this._start>(null===(e=t.getResponseHeader("Content-Range"))?-1:parseInt(e.substr(e.lastIndexOf("/")+1))),this.parseChunk(t.responseText)))},this._chunkError=function(e){var n=t.statusText||e;this._sendError(new Error(n))}}function d(e){var t,n;(e=e||{}).chunkSize||(e.chunkSize=h.LocalChunkSize),c.call(this,e);var r="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,n=e.slice||e.webkitSlice||e.mozSlice,r?((t=new FileReader).onload=O(this._chunkLoaded,this),t.onerror=O(this._chunkError,this)):t=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 i=Math.min(this._start+this._config.chunkSize,this._input.size);e=n.call(e,this._start,i)}var s=t.readAsText(e,this._config.encoding);r||this._chunkLoaded({target:{result:s}})},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(t.error)}}function p(e){var t;c.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){if(!this._finished){var e=this._config.chunkSize,n=e?t.substr(0,e):t;return t=e?t.substr(e):"",this._finished=!t,this.parseChunk(n)}}}function m(e){c.call(this,e=e||{});var t=[],n=!0,r=!1;this.pause=function(){c.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){c.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(){r&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):n=!0},this._streamData=O(function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),n&&(n=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}},this),this._streamError=O(function(e){this._streamCleanUp(),this._sendError(e)},this),this._streamEnd=O(function(){this._streamCleanUp(),r=!0,this._streamData("")},this),this._streamCleanUp=O(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function g(e){var t,n,r,i=/^\s*-?(\d*\.?\d+|\d+\.?\d*)(e[-+]?\d+)?\s*$/i,s=/(\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))/,a=this,o=0,u=0,f=!1,c=!1,l=[],d={data:[],errors:[],meta:{}};if(S(e.step)){var p=e.step;e.step=function(t){if(d=t,v())g();else{if(g(),0===d.data.length)return;o+=t.data.length,e.preview&&o>e.preview?n.abort():p(d,a)}}}function m(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function g(){if(d&&r&&(k("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+h.DefaultDelimiter+"'"),r=!1),e.skipEmptyLines)for(var t=0;t<d.data.length;t++)m(d.data[t])&&d.data.splice(t--,1);return v()&&function(){if(d){for(var t=0;v()&&t<d.data.length;t++)for(var n=0;n<d.data[t].length;n++){var r=d.data[t][n];e.trimHeaders&&(r=r.trim()),l.push(r)}d.data.splice(0,1)}}(),function(){if(!d||!e.header&&!e.dynamicTyping&&!e.transform)return d;for(var t=0;t<d.data.length;t++){var n,r=e.header?{}:[];for(n=0;n<d.data[t].length;n++){var i=n,s=d.data[t][n];e.header&&(i=n>=l.length?"__parsed_extra":l[n]),e.transform&&(s=e.transform(s,i)),s=b(i,s),"__parsed_extra"===i?(r[i]=r[i]||[],r[i].push(s)):r[i]=s}d.data[t]=r,e.header&&(n>l.length?k("FieldMismatch","TooManyFields","Too many fields: expected "+l.length+" fields but parsed "+n,u+t):n<l.length&&k("FieldMismatch","TooFewFields","Too few fields: expected "+l.length+" fields but parsed "+n,u+t))}return e.header&&d.meta&&(d.meta.fields=l),u+=d.data.length,d}()}function v(){return e.header&&0===l.length}function b(t,n){return r=t,e.dynamicTypingFunction&&void 0===e.dynamicTyping[r]&&(e.dynamicTyping[r]=e.dynamicTypingFunction(r)),!0===(e.dynamicTyping[r]||e.dynamicTyping)?"true"===n||"TRUE"===n||"false"!==n&&"FALSE"!==n&&(i.test(n)?parseFloat(n):s.test(n)?new Date(n):""===n?null:n):n;var r}function k(e,t,n,r){d.errors.push({type:e,code:t,message:n,row:r})}this.parse=function(i,s,a){var o=e.quoteChar||'"';if(e.newline||(e.newline=function(e,t){e=e.substr(0,1048576);var n=new RegExp(y(t)+"([^]*?)"+y(t),"gm"),r=(e=e.replace(n,"")).split("\r"),i=e.split("\n"),s=1<i.length&&i[0].length<r[0].length;if(1===r.length||s)return"\n";for(var a=0,o=0;o<r.length;o++)"\n"===r[o][0]&&a++;return a>=r.length/2?"\r\n":"\r"}(i,o)),r=!1,e.delimiter)S(e.delimiter)&&(e.delimiter=e.delimiter(i),d.meta.delimiter=e.delimiter);else{var u=function(t,n,r,i){for(var s,a,o,u=[",","\t","|",";",h.RECORD_SEP,h.UNIT_SEP],f=0;f<u.length;f++){var c=u[f],l=0,d=0,p=0;o=void 0;for(var g=new _({comments:i,delimiter:c,newline:n,preview:10}).parse(t),y=0;y<g.data.length;y++)if(r&&m(g.data[y]))p++;else{var v=g.data[y].length;d+=v,void 0!==o?1<v&&(l+=Math.abs(v-o),o=v):o=0}0<g.data.length&&(d/=g.data.length-p),(void 0===a||a<l)&&1.99<d&&(a=l,s=c)}return{successful:!!(e.delimiter=s),bestDelimiter:s}}(i,e.newline,e.skipEmptyLines,e.comments);u.successful?e.delimiter=u.bestDelimiter:(r=!0,e.delimiter=h.DefaultDelimiter),d.meta.delimiter=e.delimiter}var c=w(e);return e.preview&&e.header&&c.preview++,t=i,n=new _(c),d=n.parse(t,s,a),g(),f?{meta:{paused:!0}}:d||{meta:{paused:!1}}},this.paused=function(){return f},this.pause=function(){f=!0,n.abort(),t=t.substr(n.getCharIndex())},this.resume=function(){f=!1,a.streamer.parseChunk(t,!0)},this.aborted=function(){return c},this.abort=function(){c=!0,n.abort(),d.meta.aborted=!0,S(e.complete)&&e.complete(d),t=""}}function y(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function _(e){var t,n=(e=e||{}).delimiter,r=e.newline,i=e.comments,s=e.step,a=e.preview,o=e.fastMode,u=t=void 0===e.quoteChar?'"':e.quoteChar;if(void 0!==e.escapeChar&&(u=e.escapeChar),("string"!=typeof n||-1<h.BAD_DELIMITERS.indexOf(n))&&(n=","),i===n)throw"Comment character same as delimiter";!0===i?i="#":("string"!=typeof i||-1<h.BAD_DELIMITERS.indexOf(i))&&(i=!1),"\n"!==r&&"\r"!==r&&"\r\n"!==r&&(r="\n");var f=0,c=!1;this.parse=function(e,h,l){if("string"!=typeof e)throw"Input must be a string";var d=e.length,p=n.length,m=r.length,g=i.length,_=S(s),v=[],b=[],k=[],w=f=0;if(!e)return L();if(o||!1!==o&&-1===e.indexOf(t)){for(var O=e.split(r),E=0;E<O.length;E++){if(k=O[E],f+=k.length,E!==O.length-1)f+=r.length;else if(l)return L();if(!i||k.substr(0,g)!==i){if(_){if(v=[],j(k.split(n)),M(),c)return L()}else j(k.split(n));if(a&&a<=E)return v=v.slice(0,a),L(!0)}}return L()}for(var C,R=e.indexOf(n,f),x=e.indexOf(r,f),T=new RegExp(y(u)+y(t),"g");;)if(e[f]!==t)if(i&&0===k.length&&e.substr(f,g)===i){if(-1===x)return L();f=x+m,x=e.indexOf(r,f),R=e.indexOf(n,f)}else if(-1!==R&&(R<x||-1===x))k.push(e.substring(f,R)),f=R+p,R=e.indexOf(n,f);else{if(-1===x)break;if(k.push(e.substring(f,x)),F(x+m),_&&(M(),c))return L();if(a&&v.length>=a)return L(!0)}else for(C=f,f++;;){if(-1===(C=e.indexOf(t,C+1)))return l||b.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:v.length,index:f}),D();if(C===d-1)return D(e.substring(f,C).replace(T,t));if(t!==u||e[C+1]!==u){if(t===u||0===C||e[C-1]!==u){var A=P(-1===x?R:Math.min(R,x));if(e[C+1+A]===n){k.push(e.substring(f,C).replace(T,t)),f=C+1+A+p,R=e.indexOf(n,f),x=e.indexOf(r,f);break}var I=P(x);if(e.substr(C+1+I,m)===r){if(k.push(e.substring(f,C).replace(T,t)),F(C+1+I+m),R=e.indexOf(n,f),_&&(M(),c))return L();if(a&&v.length>=a)return L(!0);break}b.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:v.length,index:f}),C++}}else C++}return D();function j(e){v.push(e),w=f}function P(t){var n=0;if(-1!==t){var r=e.substring(C+1,t);r&&""===r.trim()&&(n=r.length)}return n}function D(t){return l||(void 0===t&&(t=e.substr(f)),k.push(t),f=d,j(k),_&&M()),L()}function F(t){f=t,j(k),k=[],x=e.indexOf(r,f)}function L(e){return{data:v,errors:b,meta:{delimiter:n,linebreak:r,aborted:c,truncated:!!e,cursor:w+(h||0)}}}function M(){s(L()),v=[],b=[]}},this.abort=function(){c=!0},this.getCharIndex=function(){return f}}function v(e){var t=e.data,n=o[t.workerId],r=!1;if(t.error)n.userError(t.error,t.file);else if(t.results&&t.results.data){var i={abort:function(){r=!0,b(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:k,resume:k};if(S(n.userStep)){for(var s=0;s<t.results.data.length&&(n.userStep({data:[t.results.data[s]],errors:t.results.errors,meta:t.results.meta},i),!r);s++);delete t.results}else S(n.userChunk)&&(n.userChunk(t.results,i,t.file),delete t.results)}t.finished&&!r&&b(t.workerId,t.results)}function b(e,t){var n=o[e];S(n.userComplete)&&n.userComplete(t),n.terminate(),delete o[e]}function k(){throw"Not implemented."}function w(e){if("object"!=a(e)||null===e)return e;var t=Array.isArray(e)?[]:{};for(var n in e)t[n]=w(e[n]);return t}function O(e,t){return function(){e.apply(t,arguments)}}function S(e){return"function"==typeof e}return i?n.onmessage=function(e){var t=e.data;if(void 0===h.WORKER_ID&&t&&(h.WORKER_ID=t.workerId),"string"==typeof t.input)n.postMessage({workerId:h.WORKER_ID,results:h.parse(t.input,t.config),finished:!0});else if(n.File&&t.input instanceof File||t.input instanceof Object){var r=h.parse(t.input,t.config);r&&n.postMessage({workerId:h.WORKER_ID,results:r,finished:!0})}}:h.WORKERS_SUPPORTED&&(t=document.getElementsByTagName("script"),e=t.length?t[t.length-1].src:"",document.body?document.addEventListener("DOMContentLoaded",function(){s=!0},!0):s=!0),(l.prototype=Object.create(c.prototype)).constructor=l,(d.prototype=Object.create(c.prototype)).constructor=d,(p.prototype=Object.create(p.prototype)).constructor=p,(m.prototype=Object.create(c.prototype)).constructor=m,h})?r.apply(t,i):r)||(e.exports=s)},308:function(e,t,n){"use strict";n.r(t);var r=n(201);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function o(e){return(o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var h=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),a(this,o(t).call(this,e))}var n,i,h;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(t,Phaser.Plugins.BasePlugin),n=t,(i=[{key:"start",value:function(){this.game.events.once("destroy",this.destroy,this)}},{key:"add",value:function(e){return new r.a(e)}}])&&s(n.prototype,i),h&&s(n,h),t}();t.default=h},7:function(e,t,n){"use strict";t.a=function(e){if(Array.isArray(e))e.length=0;else for(var t in e)delete e[t]}}}).default});