1var __defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,t,r)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,__spreadValues=(e,t)=>{for(var r in t||(t={}))__hasOwnProp.call(t,r)&&__defNormalProp(e,r,t[r]);if(__getOwnPropSymbols)for(var r of __getOwnPropSymbols(t))__propIsEnum.call(t,r)&&__defNormalProp(e,r,t[r]);return e},__spreadProps=(e,t)=>__defProps(e,__getOwnPropDescs(t)),__async=(e,t,r)=>new Promise((n,i)=>{var s=e=>{try{a(r.next(e))}catch(t){i(t)}},o=e=>{try{a(r.throw(e))}catch(t){i(t)}},a=e=>e.done?n(e.value):Promise.resolve(e.value).then(s,o);a((r=r.apply(e,t)).next())});!function(){"use strict";function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var t,r={exports:{}};var n=(t||(t=1,r.exports=function e(){var t,r="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r?r:{},n=!r.document&&!!r.postMessage,i=r.IS_PAPA_WORKER||!1,s={},o=0,a={};function u(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!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=b(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new f(t),(this._handle.streamer=this)._config=t}.call(this,e),this.parseChunk=function(e,t){var n=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<n){let t=this._config.newline;t||(s=this._config.quoteChar||'"',t=this._handle.guessLineEndings(e,s)),e=[...e.split(t).slice(n)].join(t)}this.isFirstChunk&&v(this._config.beforeFirstChunk)&&void 0!==(s=this._config.beforeFirstChunk(e))&&(e=s),this.isFirstChunk=!1,this._halted=!1,n=this._partialLine+e;var s=(this._partialLine="",this._handle.parse(n,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(e=s.meta.cursor,this._finished||(this._partialLine=n.substring(e
vendor: 11,645 bytes, line 1
1-this._baseIndex),this._baseIndex=e),s&&s.data&&(this._rowCount+=s.data.length),n=this._finished||this._config.preview&&this._rowCount>=this._config.preview,i)r.postMessage({results:s,workerId:a.WORKER_ID,finished:n});else if(v(this._config.chunk)&&!t){if(this._config.chunk(s,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=s=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(s.data),this._completeResults.errors=this._completeResults.errors.concat(s.errors),this._completeResults.meta=s.meta),this._completed||!n||!v(this._config.complete)||s&&s.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),n||s&&s.meta.paused||this._nextChunk(),s}this._halted=!0},this._sendError=function(e){v(this._config.error)?this._config.error(e):i&&this._config.error&&r.postMessage({workerId:a.WORKER_ID,error:e,finished:!1})}}function h(e){var t;(e=e||{}).chunkSize||(e.chunkSize=a.RemoteChunkSize),u.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=k(this._chunkLoaded,this),t.onerror=k(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!n),this._config.downloadRequestHeaders){var e,r=this._config.downloadRequestHeaders;for(e in r)t.setRequestHeader(e,r[e])}var i;this._config.chunkSize&&(i=this._start+this._config.chunkSize-1,t.setRequestHeader("Range","bytes="+this._start+"-"+i));try{t.send(this._config.downloadRequestBody)}catch(s){this._chunkError(s.message)}n&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){var e;4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize||t.responseText.length,this._finished=!this._config.chunkSize||this._start>=(null!==(e=(e=t).getResponseHeader("Content-Range"))?parseInt(e.substring(e.lastIndexOf("/")+1)):-1),this.parseChunk(t.responseText)))},this._chunkError=function(e){e=t.statusText||e,this._sendError(new Error(e))}}function l(e){(e=e||{}).chunkSize||(e.chunkSize=a.LocalChunkSize),u.call(this,e);var t,r,n="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,r=e.slice||e.webkitSlice||e.mozSlice,n?((t=new FileReader).onload=k(this._chunkLoaded,this),t.onerror=k(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,i=(this._config.chunkSize&&(i=Math.min(this._start+this._config.chunkSize,this._input.size),e=r.call(e,this._start,i)),t.readAsText(e,this._config.encoding));n||this._chunkLoaded({target:{result:i}})},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 d(e){var t;u.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){var e,r;if(!this._finished)return e=this._config.chunkSize,t=e?(r=t.substring(0,e),t.substring(e)):(r=t,""),this._finished=!t,this.parseChunk(r)}}function c(e){u.call(this,e=e||{});var t=[],r=!0,n=!1;this.pause=function(){u.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){u.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=k(function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),r&&(r=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(n){this._streamError(n)}},this),this._streamError=k(function(e){this._streamCleanUp(),this._sendError(e)},this),this._streamEnd=k(function(){this._streamCleanUp(),n=!0,this._streamData("")},this),this._streamCleanUp=k(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function f(e){var t,r,n,i,s=Math.pow(2,53),o=-s,u=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,h=/^((\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)))$/,l=this,d=0,c=0,f=!1,g=!1,m=[],y={data:[],errors:[],meta:{}};function k(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function w(){if(y&&n&&(O("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+a.DefaultDelimiter+"'"),n=!1),e.skipEmptyLines&&(y.data=y.data.filter(function(e){return!k(e)})),E()){let r=function(t,r){v(e.transformHeader)&&(t=e.transformHeader(t,r)),m.push(t)};if(y)if(Array.isArray(y.data[0])){for(var t=0;E()&&t<y.data.length;t++)y.data[t].forEach(r);y.data.splice(0,1)}else y.data.forEach(r)}function r(t,r){for(var n=e.header?{}:[],i=0;i<t.length;i++){var a=i,l=t[i];l=((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&&((e=>{if(u.test(e)&&(e=parseFloat(e),o<e&&e<s))return 1})(r)?parseFloat(r):h.test(r)?new Date(r):""===r?null:r):r;var n})(a=e.header?i>=m.length?"__parsed_extra":m[i]:a,l=e.transform?e.transform(l,a):l),"__parsed_extra"===a?(n[a]=n[a]||[],n[a].push(l)):n[a]=l}return e.header&&(i>m.length?O("FieldMismatch","TooManyFields","Too many fields: expected "+m.length+" fields but parsed "+i,c+r):i<m.length&&O("FieldMismatch","TooFewFields","Too few fields: expected "+m.length+" fields but parsed "+i,c+r)),n}var i;y&&(e.header||e.dynamicTyping||e.transform)&&(i=1,!y.data.length||Array.isArray(y.data[0])?(y.data=y.data.map(r),i=y.data.length):y.data=r(y.data,0),e.header&&y.meta&&(y.meta.fields=m),c+=i)}function E(){return e.header&&0===m.length}function O(e,t,r,n){e={type:e,code:t,message:r},void 0!==n&&(e.row=n),y.errors.push(e)}v(e.step)&&(i=e.step,e.step=function(t){y=t,E()?w():(w(),0!==y.data.length&&(d+=t.data.length,e.preview&&d>e.preview?r.abort():(y.data=y.data[0],i(y,l))))}),this.parse=function(i,s,o){var u=e.quoteChar||'"';return e.newline||(e.newline=this.guessLineEndings(i,u)),n=!1,e.delimiter?v(e.delimiter)&&(e.delimiter=e.delimiter(i),y.meta.delimiter=e.delimiter):((u=((t,r,n,i,s)=>{var o,u,h,l;s=s||[",","\t","|",";",a.RECORD_SEP,a.UNIT_SEP];for(var d=0;d<s.length;d++){for(var c,f=s[d],p=0,g=0,m=0,y=(h=void 0,new _({comments:i,delimiter:f,newline:r,preview:10}).parse(t)),b=0;b<y.data.length;b++)n&&k(y.data[b])?m++:(g+=c=y.data[b].length,void 0===h?h=c:0<c&&(p+=Math.abs(c-h),h=c));0<y.data.length&&(g/=y.data.length-m),(void 0===u||p<=u)&&(void 0===l||l<g)&&1.99<g&&(u=p,o=f,l=g)}return{successful:!!(e.delimiter=o),bestDelimiter:o}})(i,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess)).successful?e.delimiter=u.bestDelimiter:(n=!0,e.delimiter=a.DefaultDelimiter),y.meta.delimiter=e.delimiter),u=b(e),e.preview&&e.header&&u.preview++,t=i,r=new _(u),y=r.parse(t,s,o),w(),f?{meta:{paused:!0}}:y||{meta:{paused:!1}}},this.paused=function(){return f},this.pause=function(){f=!0,r.abort(),t=v(e.chunk)?"":t.substring(r.getCharIndex())},this.resume=function(){l.streamer._halted?(f=!1,l.streamer.parseChunk(t,!0)):setTimeout(l.resume,3)},this.aborted=function(){return g},this.abort=function(){g=!0,r.abort(),y.meta.aborted=!0,v(e.complete)&&e.complete(y),t=""},this.guessLineEndings=function(e,t){e=e.substring(0,1048576),t=new RegExp(p(t)+"([^]*?)"+p(t),"gm");var r=(e=e.replace(t,"")).split("\r");if(e=1<(t=e.split("\n")).length&&t[0].length<r[0].length,1===r.length||e)return"\n";for(var n=0,i=0;i<r.length;i++)"\n"===r[i][0]&&n++;return n>=r.length/2?"\r\n":"\r"}}function p(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function _(e){var t=(e=e||{}).delimiter,r=e.newline,n=e.comments,i=e.step,s=e.preview,o=e.fastMode,u=null,h=!1,l=null==e.quoteChar?'"':e.quoteChar,d=l;if(void 0!==e.escapeChar&&(d=e.escapeChar),("string"!=typeof t||-1<a.BAD_DELIMITERS.indexOf(t))&&(t=","),n===t)throw new Error("Comment character same as delimiter");!0===n?n="#":("string"!=typeof n||-1<a.BAD_DELIMITERS.indexOf(n))&&(n=!1),"\n"!==r&&"\r"!==r&&"\r\n"!==r&&(r="\n");var c=0,f=!1;this.parse=function(a,_,g){if("string"!=typeof a)throw new Error("Input must be a string");var m=a.length,y=t.length,b=r.length,k=n.length,w=v(i),E=[],O=[],S=[],C=c=0;if(!a)return z();if(o||!1!==o&&-1===a.indexOf(l)){for(var R=a.split(r),x=0;x<R.length;x++){if(S=R[x],c+=S.length,x!==R.length-1)c+=r.length;else if(g)return z();if(!n||S.substring(0,k)!==n){if(w){if(E=[],L(S.split(t)),M(),f)return z()}else L(S.split(t));if(s&&s<=x)return E=E.slice(0,s),z(!0)}}return z()}for(var I=a.indexOf(t,c),A=a.indexOf(r,c),T=new RegExp(p(d)+p(l),"g"),D=a.indexOf(l,c);;)if(a[c]===l)for(D=c,c++;;){if(-1===(D=a.indexOf(l,D+1)))return g||O.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:E.length,index:c}),N();if(D===m-1)return N(a.substring(c,D).replace(T,l));if(l===d&&a[D+1]===d)D++;else if(l===d||0===D||a[D-1]!==d){-1!==I&&I<D+1&&(I=a.indexOf(t,D+1));var j=P(-1===(A=-1!==A&&A<D+1?a.indexOf(r,D+1):A)?I:Math.min(I,A));if(a.substr(D+1+j,y)===t){S.push(a.substring(c,D).replace(T,l)),a[c=D+1+j+y]!==l&&(D=a.indexOf(l,c)),I=a.indexOf(t,c),A=a.indexOf(r,c);break}if(j=P(A),a.substring(D+1+j,D+1+j+b)===r){if(S.push(a.substring(c,D).replace(T,l)),F(D+1+j+b),I=a.indexOf(t,c),D=a.indexOf(l,c),w&&(M(),f))return z();if(s&&E.length>=s)return z(!0);break}O.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:E.length,index:c}),D++}}else if(n&&0===S.length&&a.substring(c,c+k)===n){if(-1===A)return z();c=A+b,A=a.indexOf(r,c),I=a.indexOf(t,c)}else if(-1!==I&&(I<A||-1===A))S.push(a.substring(c,I)),c=I+y,I=a.indexOf(t,c);else{if(-1===A)break;if(S.push(a.substring(c,A)),F(A+b),w&&(M(),f))return z();if(s&&E.length>=s)return z(!0)}return N();function L(e){E.push(e),C=c}function P(e){var t=0;return-1!==e&&(e=a.substring(D+1,e))&&""===e.trim()?e.length:t}function N(e){return g||(void 0===e&&(e=a.substring(c)),S.push(e),c=m,L(S),w&&M()),z()}function F(e){c=e,L(S),S=[],A=a.indexOf(r,c)}function z(n){if(e.header&&!_&&E.length&&!h){var i=E[0],s=Object.create(null),o=new Set(i);let t=!1;for(let r=0;r<i.length;r++){let n=i[r];if(s[n=v(e.transformHeader)?e.transformHeader(n,r):n]){let e,a=s[n];for(;e=n+"_"+a,a++,o.has(e););o.add(e),i[r]=e,s[n]++,t=!0,(u=null===u?{}:u)[e]=n}else s[n]=1,i[r]=n;o.add(n)}h=!0}return{data:E,errors:O,meta:{delimiter:t,linebreak:r,aborted:f,truncated:!!n,cursor:C+(_||0),renamedHeaders:u}}}function M(){i(z()),E=[],O=[]}},this.abort=function(){f=!0},this.getCharIndex=function(){return c}}function g(e){var t=e.data,r=s[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,m(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:y,resume:y}
1;if(v(r.userStep)){for(var o=0;o<t.results.data.length&&(r.userStep({data:t.results.data[o],errors:t.results.errors,meta:t.results.meta},i),!n);o++);delete t.results}else v(r.userChunk)&&(r.userChunk(t.results,i,t.file),delete t.results)}t.finished&&!n&&m(t.workerId,t.results)}function m(e,t){var r=s[e];v(r.userComplete)&&r.userComplete(t),r.terminate(),delete s[e]}function y(){throw new Error("Not implemented.")}function b(e){if("object"!=typeof e||null===e)return e;var t,r=Array.isArray(e)?[]:{};for(t in e)r[t]=b(e[t]);return r}function k(e,t){return function(){e.apply(t,arguments)}}function v(e){return"function"==typeof e}return a.parse=function(t,n){var i,u=(n=n||{}).dynamicTyping||!1;if(v(u)&&(n.dynamicTypingFunction=u,u={}),n.dynamicTyping=u,n.transform=!!v(n.transform)&&n.transform,!n.worker||!a.WORKERS_SUPPORTED)return u=null,a.NODE_STREAM_INPUT,"string"==typeof t?(t=65279!==(i=t).charCodeAt(0)?i:i.slice(1),u=new(n.download?h:d)(n)):!0===t.readable&&v(t.read)&&v(t.on)?u=new c(n):(r.File&&t instanceof File||t instanceof Object)&&(u=new l(n)),u.stream(t);(u=(()=>{var t,n,i;return!!a.WORKERS_SUPPORTED&&(n=r.URL||r.webkitURL||null,i=e.toString(),t=a.BLOB_URL||(a.BLOB_URL=n.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",i,")();"],{type:"text/javascript"}))),(t=new r.Worker(t)).onmessage=g,t.id=o++,s[t.id]=t)})()).userStep=n.step,u.userChunk=n.chunk,u.userComplete=n.complete,u.userError=n.error,n.step=v(n.step),n.chunk=v(n.chunk),n.complete=v(n.complete),n.error=v(n.error),delete n.worker,u.postMessage({input:t,config:n,workerId:u.id})},a.unparse=function(e,t){var r=!1,n=!0,i=",",s="\r\n",o='"',u=o+o,h=!1,l=null,d=!1,c=((()=>{if("object"==typeof t){if("string"!=typeof t.delimiter||a.BAD_DELIMITERS.filter(function(e){return-1!==t.delimiter.indexOf(e)}).length||(i=t.delimiter),"boolean"!=typeof t.quotes&&"function"!=typeof t.quotes&&!Array.isArray(t.quotes)||(r=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(h=t.skipEmptyLines),"string"==typeof t.newline&&(s=t.newline),"string"==typeof t.quoteChar&&(o=t.quoteChar),"boolean"==typeof t.header&&(n=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");l=t.columns}void 0!==t.escapeChar&&(u=t.escapeChar+o),t.escapeFormulae instanceof RegExp?d=t.escapeFormulae:"boolean"==typeof t.escapeFormulae&&t.escapeFormulae&&(d=/^[=+\-@\t\r].*$/)}})(),new RegExp(p(o),"g"));if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return f(null,e,h);if("object"==typeof e[0])return f(l||Object.keys(e[0]),e,h)}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||l),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),f(e.fields||[],e.data||[],h);throw new Error("Unable to serialize unrecognized input");function f(e,t,r){var o="",a=("string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t)),Array.isArray(e)&&0<e.length),u=!Array.isArray(t[0]);if(a&&n){for(var h=0;h<e.length;h++)0<h&&(o+=i),o+=_(e[h],h);0<t.length&&(o+=s)}for(var l=0;l<t.length;l++){var d=(a?e:t[l]).length,c=!1,f=a?0===Object.keys(t[l]).length:0===t[l].length;if(r&&!a&&(c="greedy"===r?""===t[l].join("").trim():1===t[l].length&&0===t[l][0].length),"greedy"===r&&a){for(var p=[],g=0;g<d;g++){var m=u?e[g]:g;p.push(t[l][m])}c=""===p.join("").trim()}if(!c){for(var y=0;y<d;y++){0<y&&!f&&(o+=i);var b=a&&u?e[y]:y;o+=_(t[l][b],y)}l<t.length-1&&(!r||0<d&&!f)&&(o+=s)}}return o}function _(e,t){var n,s;return null==e?"":e.constructor===Date?JSON.stringify(e).slice(1,25):(s=!1,d&&"string"==typeof e&&d.test(e)&&(e="'"+e,s=!0),n=e.toString().replace(c,u),(s=s||!0===r||"function"==typeof r&&r(e,t)||Array.isArray(r)&&r[t]||((e,t)=>{for(var r=0;r<t.length;r++)if(-1<e.indexOf(t[r]))return!0;return!1})(n,a.BAD_DELIMITERS)||-1<n.indexOf(i)||" "===n.charAt(0)||" "===n.charAt(n.length-1))?o+n+o:n)}},a.RECORD_SEP=String.fromCharCode(30),a.UNIT_SEP=String.fromCharCode(31),a.BYTE_ORDER_MARK="\ufeff",a.BAD_DELIMITERS=["\r","\n",'"',a.BYTE_ORDER_MARK],a.WORKERS_SUPPORTED=!n&&!!r.Worker,a.NODE_STREAM_INPUT=1,a.LocalChunkSize=10485760,a.RemoteChunkSize=5242880,a.DefaultDelimiter=",",a.Parser=_,a.ParserHandle=f,a.NetworkStreamer=h,a.FileStreamer=l,a.StringStreamer=d,a.ReadableStreamStreamer=c,r.jQuery&&((t=r.jQuery).fn.parse=function(e){var n=e.config||{},i=[];return this.each(function(e){if("INPUT"!==t(this).prop("tagName").toUpperCase()||"file"!==t(this).attr("type").toLowerCase()||!r.FileReader||!this.files||0===this.files.length)return!0;for(var s=0;s<this.files.length;
1s++)i.push({file:this.files[s],inputElem:this,instanceConfig:t.extend({},n)})}),s(),this;function s(){if(0===i.length)v(e.complete)&&e.complete();else{var r,n,s,u,h=i[0];if(v(e.before)){var l=e.before(h.file,h.inputElem);if("object"==typeof l){if("abort"===l.action)return r="AbortError",n=h.file,s=h.inputElem,u=l.reason,void(v(e.error)&&e.error({name:r},n,s,u));if("skip"===l.action)return void o();"object"==typeof l.config&&(h.instanceConfig=t.extend(h.instanceConfig,l.config))}else if("skip"===l)return void o()}var d=h.instanceConfig.complete;h.instanceConfig.complete=function(e){v(d)&&d(e,h.file,h.inputElem),o()},a.parse(h.file,h.instanceConfig)}}function o(){i.splice(0,1),s()}}),i&&(r.onmessage=function(e){e=e.data,void 0===a.WORKER_ID&&e&&(a.WORKER_ID=e.workerId),"string"==typeof e.input?r.postMessage({workerId:a.WORKER_ID,results:a.parse(e.input,e.config),finished:!0}):(r.File&&e.input instanceof File||e.input instanceof Object)&&(e=a.parse(e.input,e.config))&&r.postMessage({workerId:a.WORKER_ID,results:e,finished:!0})}),(h.prototype=Object.create(u.prototype)).constructor=h,(l.prototype=Object.create(u.prototype)).constructor=l,(d.prototype=Object.create(d.prototype)).constructor=d,(c.prototype=Object.create(u.prototype)).constructor=c,a}()),r.exports),i=e(n);const s=new Set(["password-generator","totp-generator","jwt-decoder","certificate-decoder","api-request-builder","websocket-tester","qr-code-generator","docker-command-builder"]),o=new Set(["pdf-tools","image-converter"]);const a=10485760;function u(e){return Array.isArray(e)?e.map(u):e&&"object"==typeof e?Object.fromEntries(Object.entries(e).sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>[e,u(t)])):e}function h(e,t=2,r=!1){try{const n=JSON.parse(e);let i=!1;for(let t=0;t<e.length;t++)if('"'!==e[t]){if("-"===e[t]||e[t]>="0"&&e[t]<="9"){const r=t;for(;t+1<e.length&&/[0-9.eE+-]/.test(e[t+1]);)t++;const n=Number(e.slice(r,t+1));(!Number.isFinite(n)||Number.isInteger(n)&&!Number.isSafeInteger(n))&&(i=!0)}}else for(t++;t<e.length;t++)if("\\"!==e[t]){if('"'===e[t])break}else t++;return{ok:!0,value:JSON.stringify(r?u(n):n,null,t),warning:i?"Some numbers exceed JavaScriptâs safe integer precision. Output may be rounded; retain the original input.":void 0}}catch(n){return{ok:!1,code:"INVALID_INPUT"}}}function l(e,t="normalize"){return"strip-all"===t?e.replace(/\s+/g," ").trim():e.split("\n").map(e=>"strip-leading"===t?e.replace(/^\s+/,""):"strip-trailing"===t?e.replace(/\s+$/,""):"strip-both"===t?e.trim():"remove-empty"===t?e:e.replace(/\s+/g," ").trim()).filter(e=>!["normalize","remove-empty"].includes(t)||e.trim()).join("\n")}function d(e,t,r,n,i){return __spreadProps(__spreadValues({id:e,version:1,inputType:t,outputType:r,maxInputBytes:a},function(e){const t=s.has(e)?"secret":o.has(e)?"personal":"normal";return{sensitivity:t,network:["api-request-builder","websocket-tester"].includes(e)?"user_initiated":"none",historyDefault:"secret"===t?"disabled":"enabled"}}(e)),{defaultOptions:n,parse:e=>(new TextEncoder).encode(e).length>a?{ok:!1,code:"INPUT_TOO_LARGE"}:{ok:!0,value:e},serializeOptions:e=>Object.fromEntries(Object.entries(n).map(([t,r])=>[t,typeof e[t]==typeof r?e[t]:r])),transform(e,t,r){return __async(this,null,function*(){if(null==r?void 0:r.aborted)return{ok:!1,code:"CANCELLED"};const n=yield i(e,t);return(null==r?void 0:r.aborted)?{ok:!1,code:"CANCELLED"}:n})}})}const c={"json-formatter":d("json-formatter","text","json",{indent:2,sortKeys:!1,validateWhileTyping:!0},(e,t)=>h(e,Number(t.indent),Boolean(t.sortKeys))),"json-validator":d("json-validator","json","json",{},e=>h(e)),"base64-encoder":d("base64-encoder","text","text",{mode:"encode",urlSafe:!1},(e,t)=>function(e,t,r){try{if("decode"===t){let t=e.trim().replace(/-/g,"+").replace(/_/g,"/");t+="=".repeat((4-t.length%4)%4);const r=Uint8Array.from(atob(t),e=>e.charCodeAt(0));return{ok:!0,value:new TextDecoder("utf-8",{fatal:!0}).decode(r)}}const n=(new TextEncoder).encode(e);let i="";for(let e=0;e<n.length;e+=32768)i+=String.fromCharCode(...n.subarray(e,e+32768));let s=btoa(i);return r&&(s=s.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")),{ok:!0,value:s}}
1catch(n){return{ok:!1,code:"INVALID_INPUT"}}}(e,String(t.mode),Boolean(t.urlSafe))),"strip-whitespace":d("strip-whitespace","text","text",{action:"normalize"},(e,t)=>({ok:!0,value:l(e,String(t.action))})),"csv-to-json":d("csv-to-json","csv","json",{header:!0},e=>{const t=i.parse(e,{header:!0,skipEmptyLines:!0});return t.errors.length?{ok:!1,code:"INVALID_INPUT"}:{ok:!0,value:JSON.stringify(t.data,null,2)}}),"hash-generator":d("hash-generator","text","text",{algorithm:"SHA-256"},e=>__async(null,null,function*(){return{ok:!0,value:Array.from(new Uint8Array(yield crypto.subtle.digest("SHA-256",(new TextEncoder).encode(e)))).map(e=>e.toString(16).padStart(2,"0")).join("")}}))};self.onmessage=e=>__async(null,null,function*(){const{id:t,input:r,options:n}=e.data;try{const e=c[t];if(!e)throw new Error;const i=e.parse(r);self.postMessage(i.ok?yield e.transform(i.value,n):i)}catch(i){self.postMessage({ok:!1,code:"INVALID_INPUT"})}})}();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.