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