!function(e,t){"function"==typeofdefine&&define.amd?define([],t):"object"==typeofmodule&&"undefined"!=typeofexports?module.exports=t():e.Papa=t()}(this,function(){"use strict";vars,e,f="undefined"!=typeofself?self:"undefined"!=typeofwindow?window:void0!==f?f:{},r=!f.document&&!!f.postMessage,o=r&&/(\?|&)papaworker(=|&|$)/.test(f.location.search),a=!1,h={},u=0,y={parse:function(e,t){vari=(t=t||{}).dynamicTyping||!1;M(i)&&(t.dynamicTypingFunction=i,i={});if(t.dynamicTyping=i,t.transform=!!M(t.transform)&&t.transform,t.worker&&y.WORKERS_SUPPORTED){varn=function(){if(!y.WORKERS_SUPPORTED)return!1;if(!a&&null===y.SCRIPT_PATH)thrownewError("Script path cannot be determined automatically when Papa Parse is loaded asynchronously. You need to set Papa.SCRIPT_PATH manually.");vare=y.SCRIPT_PATH||s;e+=(-1!==e.indexOf("?")?"&":"?")+"papaworker";vart=newf.Worker(e);returnt.onmessage=v,t.id=u++,h[t.id]=t}();returnn.userStep=t.step,n.userChunk=t.chunk,n.userComplete=t.complete,n.userError=t.error,t.step=M(t.step),t.chunk=M(t.chunk),t.complete=M(t.complete),t.error=M(t.error),deletet.worker,voidn.postMessage({input:e,config:t,workerId:n.id})}varr=null;{if(e===y.NODE_STREAM_INPUT)return(r=newg(t)).getStream();"string"==typeofe?r=t.download?newl(t):new_(t):!0===e.readable&&M(e.read)&&M(e.on)?r=newm(t):(f.File&&einstanceofFile||einstanceofObject)&&(r=newp(t))}returnr.stream(e)},unparse:function(e,t){varn=!1,c=!0,l=",",p="\r\n",r='"',i=!1;!function(){if("object"!=typeoft)return;"string"!=typeoft.delimiter||y.BAD_DELIMITERS.filter(function(e){return-1!==t.delimiter.indexOf(e)}).length||(l=t.delimiter);("boolean"==typeoft.quotes||t.quotesinstanceofArray)&&(n=t.quotes);"boolean"!=typeoft.skipEmptyLines&&"string"!=typeoft.skipEmptyLines||(i=t.skipEmptyLines);"string"==typeoft.newline&&(p=t.newline);"string"==typeoft.quoteChar&&(r=t.quoteChar);"boolean"==typeoft.header&&(c=t.header)}();vars=newRegExp(r,"g");"string"==typeofe&&(e=JSON.parse(e));if(einstanceofArray){if(!e.length||e[0]instanceofArray)returno(null,e,i);if("object"==typeofe[0])returno(a(e[0]),e,i)}elseif("object"==typeofe)return"string"==typeofe.data&&(e.data=JSON.parse(e.data)),e.datainstanceofArray&&(e.fields||(e.fields=e.meta&&e.meta.fields),e.fields||(e.fields=e.data[0]instanceofArray?e.fields:a(e.data[0])),e.data[0]instanceofArray||"object"==typeofe.data[0]||(e.data=[e.data])),o(e.fields||[],e.data||[],i);throw"exception: Unable to serialize unrecognized input";functiona(e){if("object"!=typeofe)return[];vart=[];for(variine)t.push(i);returnt}functiono(e,t,i){varn="";"string"==typeofe&&(e=JSON.parse(e)),"string"==typeoft&&(t=JSON.parse(t));varr=einstanceofArray&&0<e.length,s=!(t[0]instanceofArray);if(r&&c){for(vara=0;a<e.length;a++)0<a&&(n+=l),n+=_(e[a],a);0<t.length&&(n+=p)}for(varo=0;o<t.length;o++){varh=r?e.length:t[o].length,u=r?e:t[o];if("greedy"!==i||""!==u.join("").trim()){for(varf=0;f<h;f++){0<f&&(n+=l);vard=r&&s?e[f]:f;n+=_(t[o][d],f)}o<t.length-1&&(!i||0<h)&&(n+=p)}}returnn}function_(e,t){if(null==e)return"";if(e.constructor===Date)returnJSON.stringify(e).slice(1,25);e=e.toString().replace(s,r+r);vari="boolean"==typeofn&&n||ninstanceofArray&&n[t]||function(e,t){for(vari=0;i<t.length;i++)if(-1<e.indexOf(t[i]))return!0;return!1}(e,y.BAD_DELIMITERS)||-1<e.indexOf(l)||" "===e.charAt(0)||" "===e.charAt(e.length-1);returni?r+e+r:e}}};if(y.RECORD_SEP=String.fromCharCode(30),y.UNIT_SEP=String.fromCharCode(31),y.BYTE_ORDER_MARK="\ufeff",y.BAD_DELIMITERS=["\r","\n",'"',y.BYTE_ORDER_MARK],y.WORKERS_SUPPORTED=!r&&!!f.Worker,y.SCRIPT_PATH=null,y.NODE_STREAM_INPUT=1,y.LocalChunkSize=10485760,y.RemoteChunkSize=5242880,y.DefaultDelimiter=",",y.Parser=C,y.ParserHandle=i,y.NetworkStreamer=l,y.FileStreamer=p,y.StringStreamer=_,y.ReadableStreamStreamer=m,y.DuplexStreamStreamer=g,f.jQuery){vard=f.jQuery;d.fn.parse=function(o){vari=o.config||{},h=[];returnthis.each(function(e){if(!("INPUT"===d(this).prop("tagName").toUpperCase()&&"file"===d(this).attr("type").toLowerCase()&&f.FileReader)||!this.files||0