@oardi/ts-utils 0.0.41 → 0.0.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/extensions/date-extensions.d.ts +1 -0
- package/extensions/date-extensions.d.ts.map +1 -1
- package/index.cjs.js +8 -8
- package/index.es.js +647 -613
- package/index.umd.js +8 -8
- package/package.json +1 -1
package/index.umd.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
(function(L,mt){typeof exports=="object"&&typeof module<"u"?mt(exports):typeof define=="function"&&define.amd?define(["exports"],mt):(L=typeof globalThis<"u"?globalThis:L||self,mt(L["ts-utils"]={}))})(this,(function(L){"use strict";const mt={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400,xxxl:1600};class bt{static getScreenWidth(){return window.innerWidth}static getScreenHeight(){return window.innerHeight}}class pt{static breakPoints=mt;static getCurrentBreakpoint(){return pt.getBreakpointByScreenWidth(bt.getScreenWidth())}static getBreakpointByScreenWidth(t=bt.getScreenWidth()){let i="xs";for(const c of Object.keys(pt.breakPoints))pt.breakPoints[c]<=t&&(i=c);return{breakpoint:i,screenWidth:t}}isScreenGreaterThan(t){return bt.getScreenWidth()>pt.breakPoints[t]}isScreenSmallerThan(t){return bt.getScreenWidth()<pt.breakPoints[t]}}var H=(s=>(s.opera="opera",s.firefox="firefox",s.safari="safari",s.ie="ie",s.edgeLegacy="edgeLegacy",s.edg="edg",s.chrome="chrome",s.iOS="iOS",s.headlessChrome="headlessChrome",s.nodeRuntime="nodeRuntime",s.electron="electron",s))(H||{});const ut=(typeof navigator<"u"?navigator.userAgent:"").toLowerCase();class X{static isBrowserEnv(){return typeof window<"u"&&typeof navigator<"u"}static isOpera(t=ut){return this.isBrowserEnv()?t.includes("opr/")||t.includes("opera"):!1}static isFirefox(t=ut){return this.isBrowserEnv()?t.includes("firefox")||typeof globalThis.InstallTrigger<"u":!1}static isSafari(t=ut){if(!this.isBrowserEnv())return!1;const i=navigator.vendor&&navigator.vendor.includes("Apple"),c=t.includes("safari"),b=!(t.includes("crios")||t.includes("chrome")||t.includes("android")||t.includes("opr/")||t.includes("edg"));return i&&c&&b}static isIOS(t=ut){if(!this.isBrowserEnv())return!1;const i=/iphone|ipad|ipod/.test(t),c=t.includes("macintosh")&&navigator.maxTouchPoints>1;return i||c}static isEdgeLegacy(){return this.isBrowserEnv()?!!window.StyleMedia&&!ut.includes("edg/"):!1}static isEdg(t=ut){return this.isBrowserEnv()?t.includes("edg/"):!1}static isIE(){return!this.isBrowserEnv()&&typeof document>"u"?!1:!!document.documentMode}static isChrome(t=ut){if(!this.isBrowserEnv())return!1;const i=navigator.vendor&&navigator.vendor.includes("Google"),c=t.includes("chrome")||t.includes("crios"),b=!this.isEdg(t)&&!this.isOpera(t);return i&&c&&b}static isElectron(t=ut){return typeof process<"u"&&process.versions?.electron?!0:t.includes("electron")}static isHeadlessChrome(t=ut){return t.includes("headlesschrome")}static isNodeRuntime(){return typeof process<"u"&&!!process.versions?.node&&!this.isBrowserEnv()}static getCurrentBrowser(){const t=navigator.userAgent.toLowerCase();if(typeof navigator>"u")throw new Error("navigator not set");if(X.isOpera())return H.opera;if(X.isFirefox())return H.firefox;if(X.isSafari())return H.safari;if(X.isIE())return H.ie;if(X.isEdgeLegacy())return H.edgeLegacy;if(X.isEdg())return H.edg;if(X.isChrome())return H.chrome;if(X.isIOS(t))return H.iOS;if(X.isElectron(t))return H.electron;if(X.isHeadlessChrome(t))return H.headlessChrome;if(X.isNodeRuntime())return H.nodeRuntime;throw new Error("Browser could not be detected: "+t)}}function Pt(s){return navigator.clipboard.writeText(s)}function $t(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var Dt={exports:{}};var Ut=Dt.exports,Rt;function Bt(){return Rt||(Rt=1,(function(s,t){((i,c)=>{s.exports=c()})(Ut,function i(){var c=typeof self<"u"?self:typeof window<"u"?window:c!==void 0?c:{},b,$=!c.document&&!!c.postMessage,F=c.IS_PAPA_WORKER||!1,q={},K=0,_={};function J(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(r){var n=ft(r);n.chunkSize=parseInt(n.chunkSize),r.step||r.chunk||(n.chunkSize=null),this._handle=new it(n),(this._handle.streamer=this)._config=n}).call(this,e),this.parseChunk=function(r,n){var o=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<o){let k=this._config.newline;k||(g=this._config.quoteChar||'"',k=this._handle.guessLineEndings(r,g)),r=[...r.split(k).slice(o)].join(k)}this.isFirstChunk&&R(this._config.beforeFirstChunk)&&(g=this._config.beforeFirstChunk(r))!==void 0&&(r=g),this.isFirstChunk=!1,this._halted=!1;var o=this._partialLine+r,g=(this._partialLine="",this._handle.parse(o,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(r=g.meta.cursor,o=(this._finished||(this._partialLine=o.substring(r-this._baseIndex),this._baseIndex=r),g&&g.data&&(this._rowCount+=g.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),F)c.postMessage({results:g,workerId:_.WORKER_ID,finished:o});else if(R(this._config.chunk)&&!n){if(this._config.chunk(g,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=g=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(g.data),this._completeResults.errors=this._completeResults.errors.concat(g.errors),this._completeResults.meta=g.meta),this._completed||!o||!R(this._config.complete)||g&&g.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),o||g&&g.meta.paused||this._nextChunk(),g}this._halted=!0},this._sendError=function(r){R(this._config.error)?this._config.error(r):F&&this._config.error&&c.postMessage({workerId:_.WORKER_ID,error:r,finished:!1})}}function Y(e){var r;(e=e||{}).chunkSize||(e.chunkSize=_.RemoteChunkSize),J.call(this,e),this._nextChunk=$?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(n){this._input=n,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(r=new XMLHttpRequest,this._config.withCredentials&&(r.withCredentials=this._config.withCredentials),$||(r.onload=Q(this._chunkLoaded,this),r.onerror=Q(this._chunkError,this)),r.open(this._config.downloadRequestBody?"POST":"GET",this._input,!$),this._config.downloadRequestHeaders){var n,o=this._config.downloadRequestHeaders;for(n in o)r.setRequestHeader(n,o[n])}var g;this._config.chunkSize&&(g=this._start+this._config.chunkSize-1,r.setRequestHeader("Range","bytes="+this._start+"-"+g));try{r.send(this._config.downloadRequestBody)}catch(k){this._chunkError(k.message)}$&&r.status===0&&this._chunkError()}},this._chunkLoaded=function(){r.readyState===4&&(r.status<200||400<=r.status?this._chunkError():(this._start+=this._config.chunkSize||r.responseText.length,this._finished=!this._config.chunkSize||this._start>=(n=>(n=n.getResponseHeader("Content-Range"))!==null?parseInt(n.substring(n.lastIndexOf("/")+1)):-1)(r),this.parseChunk(r.responseText)))},this._chunkError=function(n){n=r.statusText||n,this._sendError(new Error(n))}}function nt(e){(e=e||{}).chunkSize||(e.chunkSize=_.LocalChunkSize),J.call(this,e);var r,n,o=typeof FileReader<"u";this.stream=function(g){this._input=g,n=g.slice||g.webkitSlice||g.mozSlice,o?((r=new FileReader).onload=Q(this._chunkLoaded,this),r.onerror=Q(this._chunkError,this)):r=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var g=this._input,k=(this._config.chunkSize&&(k=Math.min(this._start+this._config.chunkSize,this._input.size),g=n.call(g,this._start,k)),r.readAsText(g,this._config.encoding));o||this._chunkLoaded({target:{result:k}})},this._chunkLoaded=function(g){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(g.target.result)},this._chunkError=function(){this._sendError(r.error)}}function Z(e){var r;J.call(this,e=e||{}),this.stream=function(n){return r=n,this._nextChunk()},this._nextChunk=function(){var n,o;if(!this._finished)return n=this._config.chunkSize,r=n?(o=r.substring(0,n),r.substring(n)):(o=r,""),this._finished=!r,this.parseChunk(o)}}function et(e){J.call(this,e=e||{});var r=[],n=!0,o=!1;this.pause=function(){J.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){J.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(g){this._input=g,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){o&&r.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),r.length?this.parseChunk(r.shift()):n=!0},this._streamData=Q(function(g){try{r.push(typeof g=="string"?g:g.toString(this._config.encoding)),n&&(n=!1,this._checkIsFinished(),this.parseChunk(r.shift()))}catch(k){this._streamError(k)}},this),this._streamError=Q(function(g){this._streamCleanUp(),this._sendError(g)},this),this._streamEnd=Q(function(){this._streamCleanUp(),o=!0,this._streamData("")},this),this._streamCleanUp=Q(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function it(e){var r,n,o,g,k=Math.pow(2,53),m=-k,d=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,l=/^((\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,u=0,f=0,y=!1,p=!1,v=[],h={data:[],errors:[],meta:{}};function x(S){return e.skipEmptyLines==="greedy"?S.join("").trim()==="":S.length===1&&S[0].length===0}function C(){if(h&&o&&(B("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+_.DefaultDelimiter+"'"),o=!1),e.skipEmptyLines&&(h.data=h.data.filter(function(w){return!x(w)})),z()){let w=function(T,j){R(e.transformHeader)&&(T=e.transformHeader(T,j)),v.push(T)};if(h)if(Array.isArray(h.data[0])){for(var S=0;z()&&S<h.data.length;S++)h.data[S].forEach(w);h.data.splice(0,1)}else h.data.forEach(w)}function D(w,T){for(var j=e.header?{}:[],A=0;A<w.length;A++){var I=A,M=w[A],M=((rt,E)=>(P=>(e.dynamicTypingFunction&&e.dynamicTyping[P]===void 0&&(e.dynamicTyping[P]=e.dynamicTypingFunction(P)),(e.dynamicTyping[P]||e.dynamicTyping)===!0))(rt)?E==="true"||E==="TRUE"||E!=="false"&&E!=="FALSE"&&((P=>{if(d.test(P)&&(P=parseFloat(P),m<P&&P<k))return 1})(E)?parseFloat(E):l.test(E)?new Date(E):E===""?null:E):E)(I=e.header?A>=v.length?"__parsed_extra":v[A]:I,M=e.transform?e.transform(M,I):M);I==="__parsed_extra"?(j[I]=j[I]||[],j[I].push(M)):j[I]=M}return e.header&&(A>v.length?B("FieldMismatch","TooManyFields","Too many fields: expected "+v.length+" fields but parsed "+A,f+T):A<v.length&&B("FieldMismatch","TooFewFields","Too few fields: expected "+v.length+" fields but parsed "+A,f+T)),j}var O;h&&(e.header||e.dynamicTyping||e.transform)&&(O=1,!h.data.length||Array.isArray(h.data[0])?(h.data=h.data.map(D),O=h.data.length):h.data=D(h.data,0),e.header&&h.meta&&(h.meta.fields=v),f+=O)}function z(){return e.header&&v.length===0}function B(S,D,O,w){S={type:S,code:D,message:O},w!==void 0&&(S.row=w),h.errors.push(S)}R(e.step)&&(g=e.step,e.step=function(S){h=S,z()?C():(C(),h.data.length!==0&&(u+=S.data.length,e.preview&&u>e.preview?n.abort():(h.data=h.data[0],g(h,a))))}),this.parse=function(S,D,O){var w=e.quoteChar||'"',w=(e.newline||(e.newline=this.guessLineEndings(S,w)),o=!1,e.delimiter?R(e.delimiter)&&(e.delimiter=e.delimiter(S),h.meta.delimiter=e.delimiter):((w=((T,j,A,I,M)=>{var rt,E,P,ht;M=M||[","," ","|",";",_.RECORD_SEP,_.UNIT_SEP];for(var _t=0;_t<M.length;_t++){for(var st,kt=M[_t],V=0,at=0,N=0,G=(P=void 0,new vt({comments:I,delimiter:kt,newline:j,preview:10}).parse(T)),lt=0;lt<G.data.length;lt++)A&&x(G.data[lt])?N++:(st=G.data[lt].length,at+=st,P===void 0?P=st:0<st&&(V+=Math.abs(st-P),P=st));0<G.data.length&&(at/=G.data.length-N),(E===void 0||V<=E)&&(ht===void 0||ht<at)&&1.99<at&&(E=V,rt=kt,ht=at)}return{successful:!!(e.delimiter=rt),bestDelimiter:rt}})(S,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess)).successful?e.delimiter=w.bestDelimiter:(o=!0,e.delimiter=_.DefaultDelimiter),h.meta.delimiter=e.delimiter),ft(e));return e.preview&&e.header&&w.preview++,r=S,n=new vt(w),h=n.parse(r,D,O),C(),y?{meta:{paused:!0}}:h||{meta:{paused:!1}}},this.paused=function(){return y},this.pause=function(){y=!0,n.abort(),r=R(e.chunk)?"":r.substring(n.getCharIndex())},this.resume=function(){a.streamer._halted?(y=!1,a.streamer.parseChunk(r,!0)):setTimeout(a.resume,3)},this.aborted=function(){return p},this.abort=function(){p=!0,n.abort(),h.meta.aborted=!0,R(e.complete)&&e.complete(h),r=""},this.guessLineEndings=function(T,w){T=T.substring(0,1048576);var w=new RegExp(ct(w)+"([^]*?)"+ct(w),"gm"),O=(T=T.replace(w,"")).split("\r"),w=T.split(`
|
|
2
|
-
`),
|
|
3
|
-
`;for(var
|
|
4
|
-
`&&
|
|
5
|
-
`:"\r"}}function
|
|
1
|
+
(function(F,me){typeof exports=="object"&&typeof module<"u"?me(exports):typeof define=="function"&&define.amd?define(["exports"],me):(F=typeof globalThis<"u"?globalThis:F||self,me(F["ts-utils"]={}))})(this,(function(F){"use strict";const me={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400,xxxl:1600};class ke{static getScreenWidth(){return window.innerWidth}static getScreenHeight(){return window.innerHeight}}class pe{static breakPoints=me;static getCurrentBreakpoint(){return pe.getBreakpointByScreenWidth(ke.getScreenWidth())}static getBreakpointByScreenWidth(e=ke.getScreenWidth()){let i="xs";for(const o of Object.keys(pe.breakPoints))pe.breakPoints[o]<=e&&(i=o);return{breakpoint:i,screenWidth:e}}isScreenGreaterThan(e){return ke.getScreenWidth()>pe.breakPoints[e]}isScreenSmallerThan(e){return ke.getScreenWidth()<pe.breakPoints[e]}}var te=(s=>(s.opera="opera",s.firefox="firefox",s.safari="safari",s.ie="ie",s.edgeLegacy="edgeLegacy",s.edg="edg",s.chrome="chrome",s.iOS="iOS",s.headlessChrome="headlessChrome",s.nodeRuntime="nodeRuntime",s.electron="electron",s))(te||{});const ue=(typeof navigator<"u"?navigator.userAgent:"").toLowerCase();class re{static isBrowserEnv(){return typeof window<"u"&&typeof navigator<"u"}static isOpera(e=ue){return this.isBrowserEnv()?e.includes("opr/")||e.includes("opera"):!1}static isFirefox(e=ue){return this.isBrowserEnv()?e.includes("firefox")||typeof globalThis.InstallTrigger<"u":!1}static isSafari(e=ue){if(!this.isBrowserEnv())return!1;const i=navigator.vendor&&navigator.vendor.includes("Apple"),o=e.includes("safari"),k=!(e.includes("crios")||e.includes("chrome")||e.includes("android")||e.includes("opr/")||e.includes("edg"));return i&&o&&k}static isIOS(e=ue){if(!this.isBrowserEnv())return!1;const i=/iphone|ipad|ipod/.test(e),o=e.includes("macintosh")&&navigator.maxTouchPoints>1;return i||o}static isEdgeLegacy(){return this.isBrowserEnv()?!!window.StyleMedia&&!ue.includes("edg/"):!1}static isEdg(e=ue){return this.isBrowserEnv()?e.includes("edg/"):!1}static isIE(){return!this.isBrowserEnv()&&typeof document>"u"?!1:!!document.documentMode}static isChrome(e=ue){if(!this.isBrowserEnv())return!1;const i=navigator.vendor&&navigator.vendor.includes("Google"),o=e.includes("chrome")||e.includes("crios"),k=!this.isEdg(e)&&!this.isOpera(e);return i&&o&&k}static isElectron(e=ue){return typeof process<"u"&&process.versions?.electron?!0:e.includes("electron")}static isHeadlessChrome(e=ue){return e.includes("headlesschrome")}static isNodeRuntime(){return typeof process<"u"&&!!process.versions?.node&&!this.isBrowserEnv()}static getCurrentBrowser(){const e=navigator.userAgent.toLowerCase();if(typeof navigator>"u")throw new Error("navigator not set");if(re.isOpera())return te.opera;if(re.isFirefox())return te.firefox;if(re.isSafari())return te.safari;if(re.isIE())return te.ie;if(re.isEdgeLegacy())return te.edgeLegacy;if(re.isEdg())return te.edg;if(re.isChrome())return te.chrome;if(re.isIOS(e))return te.iOS;if(re.isElectron(e))return te.electron;if(re.isHeadlessChrome(e))return te.headlessChrome;if(re.isNodeRuntime())return te.nodeRuntime;throw new Error("Browser could not be detected: "+e)}}function We(s){return navigator.clipboard.writeText(s)}function Oe(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var xe={exports:{}};var Ye=xe.exports,Te;function Be(){return Te||(Te=1,(function(s,e){((i,o)=>{s.exports=o()})(Ye,function i(){var o=typeof self<"u"?self:typeof window<"u"?window:o!==void 0?o:{},k,D=!o.document&&!!o.postMessage,T=o.IS_PAPA_WORKER||!1,U={},K=0,p={};function W(t){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(r){var n=fe(r);n.chunkSize=parseInt(n.chunkSize),r.step||r.chunk||(n.chunkSize=null),this._handle=new ne(n),(this._handle.streamer=this)._config=n}).call(this,t),this.parseChunk=function(r,n){var u=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<u){let S=this._config.newline;S||(m=this._config.quoteChar||'"',S=this._handle.guessLineEndings(r,m)),r=[...r.split(S).slice(u)].join(S)}this.isFirstChunk&&R(this._config.beforeFirstChunk)&&(m=this._config.beforeFirstChunk(r))!==void 0&&(r=m),this.isFirstChunk=!1,this._halted=!1;var u=this._partialLine+r,m=(this._partialLine="",this._handle.parse(u,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(r=m.meta.cursor,u=(this._finished||(this._partialLine=u.substring(r-this._baseIndex),this._baseIndex=r),m&&m.data&&(this._rowCount+=m.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),T)o.postMessage({results:m,workerId:p.WORKER_ID,finished:u});else if(R(this._config.chunk)&&!n){if(this._config.chunk(m,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=m=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(m.data),this._completeResults.errors=this._completeResults.errors.concat(m.errors),this._completeResults.meta=m.meta),this._completed||!u||!R(this._config.complete)||m&&m.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),u||m&&m.meta.paused||this._nextChunk(),m}this._halted=!0},this._sendError=function(r){R(this._config.error)?this._config.error(r):T&&this._config.error&&o.postMessage({workerId:p.WORKER_ID,error:r,finished:!1})}}function z(t){var r;(t=t||{}).chunkSize||(t.chunkSize=p.RemoteChunkSize),W.call(this,t),this._nextChunk=D?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(n){this._input=n,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(r=new XMLHttpRequest,this._config.withCredentials&&(r.withCredentials=this._config.withCredentials),D||(r.onload=Z(this._chunkLoaded,this),r.onerror=Z(this._chunkError,this)),r.open(this._config.downloadRequestBody?"POST":"GET",this._input,!D),this._config.downloadRequestHeaders){var n,u=this._config.downloadRequestHeaders;for(n in u)r.setRequestHeader(n,u[n])}var m;this._config.chunkSize&&(m=this._start+this._config.chunkSize-1,r.setRequestHeader("Range","bytes="+this._start+"-"+m));try{r.send(this._config.downloadRequestBody)}catch(S){this._chunkError(S.message)}D&&r.status===0&&this._chunkError()}},this._chunkLoaded=function(){r.readyState===4&&(r.status<200||400<=r.status?this._chunkError():(this._start+=this._config.chunkSize||r.responseText.length,this._finished=!this._config.chunkSize||this._start>=(n=>(n=n.getResponseHeader("Content-Range"))!==null?parseInt(n.substring(n.lastIndexOf("/")+1)):-1)(r),this.parseChunk(r.responseText)))},this._chunkError=function(n){n=r.statusText||n,this._sendError(new Error(n))}}function Q(t){(t=t||{}).chunkSize||(t.chunkSize=p.LocalChunkSize),W.call(this,t);var r,n,u=typeof FileReader<"u";this.stream=function(m){this._input=m,n=m.slice||m.webkitSlice||m.mozSlice,u?((r=new FileReader).onload=Z(this._chunkLoaded,this),r.onerror=Z(this._chunkError,this)):r=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var m=this._input,S=(this._config.chunkSize&&(S=Math.min(this._start+this._config.chunkSize,this._input.size),m=n.call(m,this._start,S)),r.readAsText(m,this._config.encoding));u||this._chunkLoaded({target:{result:S}})},this._chunkLoaded=function(m){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(m.target.result)},this._chunkError=function(){this._sendError(r.error)}}function q(t){var r;W.call(this,t=t||{}),this.stream=function(n){return r=n,this._nextChunk()},this._nextChunk=function(){var n,u;if(!this._finished)return n=this._config.chunkSize,r=n?(u=r.substring(0,n),r.substring(n)):(u=r,""),this._finished=!r,this.parseChunk(u)}}function X(t){W.call(this,t=t||{});var r=[],n=!0,u=!1;this.pause=function(){W.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){W.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(m){this._input=m,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){u&&r.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),r.length?this.parseChunk(r.shift()):n=!0},this._streamData=Z(function(m){try{r.push(typeof m=="string"?m:m.toString(this._config.encoding)),n&&(n=!1,this._checkIsFinished(),this.parseChunk(r.shift()))}catch(S){this._streamError(S)}},this),this._streamError=Z(function(m){this._streamCleanUp(),this._sendError(m)},this),this._streamEnd=Z(function(){this._streamCleanUp(),u=!0,this._streamData("")},this),this._streamCleanUp=Z(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function ne(t){var r,n,u,m,S=Math.pow(2,53),y=-S,l=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,d=/^((\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,c=0,f=0,v=!1,g=!1,w=[],h={data:[],errors:[],meta:{}};function M(b){return t.skipEmptyLines==="greedy"?b.join("").trim()==="":b.length===1&&b[0].length===0}function C(){if(h&&u&&(N("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+p.DefaultDelimiter+"'"),u=!1),t.skipEmptyLines&&(h.data=h.data.filter(function(_){return!M(_)})),j()){let _=function(A,P){R(t.transformHeader)&&(A=t.transformHeader(A,P)),w.push(A)};if(h)if(Array.isArray(h.data[0])){for(var b=0;j()&&b<h.data.length;b++)h.data[b].forEach(_);h.data.splice(0,1)}else h.data.forEach(_)}function O(_,A){for(var P=t.header?{}:[],I=0;I<_.length;I++){var L=I,$=_[I],$=((ie,E)=>(Y=>(t.dynamicTypingFunction&&t.dynamicTyping[Y]===void 0&&(t.dynamicTyping[Y]=t.dynamicTypingFunction(Y)),(t.dynamicTyping[Y]||t.dynamicTyping)===!0))(ie)?E==="true"||E==="TRUE"||E!=="false"&&E!=="FALSE"&&((Y=>{if(l.test(Y)&&(Y=parseFloat(Y),y<Y&&Y<S))return 1})(E)?parseFloat(E):d.test(E)?new Date(E):E===""?null:E):E)(L=t.header?I>=w.length?"__parsed_extra":w[I]:L,$=t.transform?t.transform($,L):$);L==="__parsed_extra"?(P[L]=P[L]||[],P[L].push($)):P[L]=$}return t.header&&(I>w.length?N("FieldMismatch","TooManyFields","Too many fields: expected "+w.length+" fields but parsed "+I,f+A):I<w.length&&N("FieldMismatch","TooFewFields","Too few fields: expected "+w.length+" fields but parsed "+I,f+A)),P}var x;h&&(t.header||t.dynamicTyping||t.transform)&&(x=1,!h.data.length||Array.isArray(h.data[0])?(h.data=h.data.map(O),x=h.data.length):h.data=O(h.data,0),t.header&&h.meta&&(h.meta.fields=w),f+=x)}function j(){return t.header&&w.length===0}function N(b,O,x,_){b={type:b,code:O,message:x},_!==void 0&&(b.row=_),h.errors.push(b)}R(t.step)&&(m=t.step,t.step=function(b){h=b,j()?C():(C(),h.data.length!==0&&(c+=b.data.length,t.preview&&c>t.preview?n.abort():(h.data=h.data[0],m(h,a))))}),this.parse=function(b,O,x){var _=t.quoteChar||'"',_=(t.newline||(t.newline=this.guessLineEndings(b,_)),u=!1,t.delimiter?R(t.delimiter)&&(t.delimiter=t.delimiter(b),h.meta.delimiter=t.delimiter):((_=((A,P,I,L,$)=>{var ie,E,Y,he;$=$||[","," ","|",";",p.RECORD_SEP,p.UNIT_SEP];for(var we=0;we<$.length;we++){for(var se,Se=$[we],G=0,ae=0,J=0,ee=(Y=void 0,new ve({comments:L,delimiter:Se,newline:P,preview:10}).parse(A)),de=0;de<ee.data.length;de++)I&&M(ee.data[de])?J++:(se=ee.data[de].length,ae+=se,Y===void 0?Y=se:0<se&&(G+=Math.abs(se-Y),Y=se));0<ee.data.length&&(ae/=ee.data.length-J),(E===void 0||G<=E)&&(he===void 0||he<ae)&&1.99<ae&&(E=G,ie=Se,he=ae)}return{successful:!!(t.delimiter=ie),bestDelimiter:ie}})(b,t.newline,t.skipEmptyLines,t.comments,t.delimitersToGuess)).successful?t.delimiter=_.bestDelimiter:(u=!0,t.delimiter=p.DefaultDelimiter),h.meta.delimiter=t.delimiter),fe(t));return t.preview&&t.header&&_.preview++,r=b,n=new ve(_),h=n.parse(r,O,x),C(),v?{meta:{paused:!0}}:h||{meta:{paused:!1}}},this.paused=function(){return v},this.pause=function(){v=!0,n.abort(),r=R(t.chunk)?"":r.substring(n.getCharIndex())},this.resume=function(){a.streamer._halted?(v=!1,a.streamer.parseChunk(r,!0)):setTimeout(a.resume,3)},this.aborted=function(){return g},this.abort=function(){g=!0,n.abort(),h.meta.aborted=!0,R(t.complete)&&t.complete(h),r=""},this.guessLineEndings=function(A,_){A=A.substring(0,1048576);var _=new RegExp(ce(_)+"([^]*?)"+ce(_),"gm"),x=(A=A.replace(_,"")).split("\r"),_=A.split(`
|
|
2
|
+
`),A=1<_.length&&_[0].length<x[0].length;if(x.length===1||A)return`
|
|
3
|
+
`;for(var P=0,I=0;I<x.length;I++)x[I][0]===`
|
|
4
|
+
`&&P++;return P>=x.length/2?`\r
|
|
5
|
+
`:"\r"}}function ce(t){return t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function ve(t){var r=(t=t||{}).delimiter,n=t.newline,u=t.comments,m=t.step,S=t.preview,y=t.fastMode,l=null,d=!1,a=t.quoteChar==null?'"':t.quoteChar,c=a;if(t.escapeChar!==void 0&&(c=t.escapeChar),(typeof r!="string"||-1<p.BAD_DELIMITERS.indexOf(r))&&(r=","),u===r)throw new Error("Comment character same as delimiter");u===!0?u="#":(typeof u!="string"||-1<p.BAD_DELIMITERS.indexOf(u))&&(u=!1),n!==`
|
|
6
6
|
`&&n!=="\r"&&n!==`\r
|
|
7
7
|
`&&(n=`
|
|
8
|
-
`);var f=0,
|
|
9
|
-
`,
|
|
10
|
-
`,'"',_.BYTE_ORDER_MARK],_.WORKERS_SUPPORTED=!$&&!!c.Worker,_.NODE_STREAM_INPUT=1,_.LocalChunkSize=10485760,_.RemoteChunkSize=5242880,_.DefaultDelimiter=",",_.Parser=vt,_.ParserHandle=it,_.NetworkStreamer=Y,_.FileStreamer=nt,_.StringStreamer=Z,_.ReadableStreamStreamer=et,c.jQuery&&((b=c.jQuery).fn.parse=function(e){var r=e.config||{},n=[];return this.each(function(k){if(!(b(this).prop("tagName").toUpperCase()==="INPUT"&&b(this).attr("type").toLowerCase()==="file"&&c.FileReader)||!this.files||this.files.length===0)return!0;for(var m=0;m<this.files.length;m++)n.push({file:this.files[m],inputElem:this,instanceConfig:b.extend({},r)})}),o(),this;function o(){if(n.length===0)R(e.complete)&&e.complete();else{var k,m,d,l,a=n[0];if(R(e.before)){var u=e.before(a.file,a.inputElem);if(typeof u=="object"){if(u.action==="abort")return k="AbortError",m=a.file,d=a.inputElem,l=u.reason,void(R(e.error)&&e.error({name:k},m,d,l));if(u.action==="skip")return void g();typeof u.config=="object"&&(a.instanceConfig=b.extend(a.instanceConfig,u.config))}else if(u==="skip")return void g()}var f=a.instanceConfig.complete;a.instanceConfig.complete=function(y){R(f)&&f(y,a.file,a.inputElem),g()},_.parse(a.file,a.instanceConfig)}}function g(){n.splice(0,1),o()}}),F&&(c.onmessage=function(e){e=e.data,_.WORKER_ID===void 0&&e&&(_.WORKER_ID=e.workerId),typeof e.input=="string"?c.postMessage({workerId:_.WORKER_ID,results:_.parse(e.input,e.config),finished:!0}):(c.File&&e.input instanceof File||e.input instanceof Object)&&(e=_.parse(e.input,e.config))&&c.postMessage({workerId:_.WORKER_ID,results:e,finished:!0})}),(Y.prototype=Object.create(J.prototype)).constructor=Y,(nt.prototype=Object.create(J.prototype)).constructor=nt,(Z.prototype=Object.create(Z.prototype)).constructor=Z,(et.prototype=Object.create(J.prototype)).constructor=et,_})})(Dt)),Dt.exports}var Yt=Bt();const Nt=$t(Yt),{parse:qt,unparse:Wt}=Nt;class Kt{static unparse(t,i){return Wt(t,i)}static parse(t){return new Promise((i,c)=>{qt(t,{header:!0,complete:b=>i(b),error:b=>c(b)})})}}async function Tt(s,t,i){const c=i?.mimeType??Qt(t),b=Jt(s,c);if("showSaveFilePicker"in window&&i?.showSaveFilePicker)try{const K=await(await window.showSaveFilePicker({suggestedName:t,types:[{description:"Datei",accept:{[c]:[`.${At(t)}`]}}]})).createWritable();await K.write(b),await K.close();return}catch{}const $=URL.createObjectURL(b),F=document.createElement("a");F.href=$,F.download=t,F.rel="noopener",F.style.display="none",document.body.appendChild(F),Vt(F),window.setTimeout(()=>{document.body.removeChild(F),URL.revokeObjectURL($)},0),Zt()&&window.open($,"_blank","noopener,noreferrer")}function Jt(s,t){if(s instanceof Blob)return s.type?s:new Blob([s],{type:t});if(s instanceof ArrayBuffer||s instanceof Uint8Array){const i=s instanceof Uint8Array?s:new Uint8Array(s);return new Blob([i],{type:t})}return new Blob([s],{type:t||"text/plain;charset=utf-8"})}function Qt(s){switch(At(s).toLowerCase()){case"txt":return"text/plain;charset=utf-8";case"csv":return"text/csv;charset=utf-8";case"json":return"application/json;charset=utf-8";case"pdf":return"application/pdf";case"png":return"image/png";case"jpg":case"jpeg":return"image/jpeg";case"svg":return"image/svg+xml";case"zip":return"application/zip";default:return"application/octet-stream"}}function At(s){const t=s.lastIndexOf(".");return t>=0&&t<s.length-1?s.slice(t+1):""}function Vt(s){const t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),s.dispatchEvent(t)}function Zt(){const s=navigator.userAgent,t=/iPad|iPhone|iPod/.test(s),i=/^((?!chrome|android).)*safari/i.test(s);return t||i}class Gt{static getEnumValue(t,i){if(i in t)return t[i];throw Error(`${i} not found in ${t}`)}static getKeyValues(t){return Object.keys(t).filter(i=>!isNaN(Number(i))).map(i=>({key:Number(i),value:t[i]}))}}class Ht{static getFileExtension(t){let i="";const c=t.lastIndexOf(".");return c>0&&c<t.length-1&&(i=`.${t.substring(c+1).toLowerCase()}`),i}static readAsText(t){const i=new FileReader;return new Promise((c,b)=>{i.onload=()=>{i.onload=null,i.onerror=null,typeof i.result=="string"?c(i.result):b(new Error("Unexpected result type"))},i.onerror=()=>{const $=i.error??new Error("FileReader error");i.onload=null,i.onerror=null,b($)},i.readAsText(t)})}static readAsArrayBuffer(t){const i=new FileReader;return new Promise((c,b)=>{i.onload=()=>{i.onload=null,i.onerror=null,i.result instanceof ArrayBuffer?c(i.result):b(new Error("Unexpected result type"))},i.onerror=()=>{const $=i.error??new Error("FileReader error");i.onload=null,i.onerror=null,b($)},i.readAsArrayBuffer(t)})}static readAsDataUrl(t){const i=new FileReader;return new Promise((c,b)=>{i.onload=$=>{c($)},i.onerror=$=>b($),i.readAsDataURL(t)})}static formatFileSize(t,i=2,c){if(t===0)return"0 Bytes";const b=1024,$=["Bytes","KB","MB","GB","TB"];let F=Math.floor(Math.log(t)/Math.log(b));c&&$.includes(c)&&(F=$.indexOf(c));const q=t/Math.pow(b,F);return`${parseFloat(q.toFixed(i))} ${$[F]}`}static save(t,i,c){const b=new Blob([t],{type:c});Tt(b,i)}}class yt{static set(t,i){localStorage.setItem(t,JSON.stringify(i))}static get(t){let i=null;const c=localStorage.getItem(t);return c&&(i=JSON.parse(c)),i}static remove(t){let i=!!yt.get(t);return i&&localStorage.removeItem(t),i}static removeAll(){localStorage.clear()}static getKeysBy(t){return Object.keys(localStorage).filter(i=>i.startsWith(t))}}var gt=(s=>(s.log="log",s.info="info",s.warn="warn",s.debug="debug",s.error="error",s))(gt||{});class W{static listeners=new Set;static enabled=!0;static log(...t){W.doLog(gt.log,t)}static info(...t){W.doLog(gt.info,t)}static warn(...t){W.doLog(gt.warn,t)}static debug(...t){W.doLog(gt.debug,t)}static error(...t){W.doLog(gt.error,t)}static clearListeners(){W.listeners.clear()}static setEnabled(t){W.enabled=t}static doLog(t,i){if(!W.enabled)return;const c={type:t,args:i,timestamp:new Date().toISOString()};for(const b of W.listeners)try{if(b(c)===!1)return}catch{}console[t].apply(console,i)}static onLog(t,i=!1){if(i){const c=b=>{try{return t(b)}finally{W.listeners.delete(c)}};return W.listeners.add(c),()=>W.listeners.delete(c)}return W.listeners.add(t),()=>W.listeners.delete(t)}}const Xt=(s,t,i)=>s.localeCompare(t)*(i?1:-1),te=(s,t)=>s<t?-1:s===t?0:1,ee=(s,t,i)=>te(s,t)*(i?1:-1),re=(s,t,i)=>{let c=0;return typeof s=="string"&&typeof t=="string"?c=Xt(s,t,i):c=ee(s,t,i),c},It=(s,t,i,c)=>{const b=i(s),$=i(t);return re(b,$,c)};class ne{static get(t){return yt.get(t)}static set(t,i){yt.set(t,i)}static remove(t){yt.remove(t)}}class U{static listeners=new Set;static initialized=!1;static resizeTimeout=null;static lastWidth=window.innerWidth;static onResize(t){return U.initialized||U.init(),U.listeners.add(t),()=>U.off(t)}static handleResize=()=>{U.resizeTimeout!==null&&(window.clearTimeout(U.resizeTimeout),U.resizeTimeout=null),U.resizeTimeout=window.setTimeout(()=>{const t=window.innerWidth;if(t!==U.lastWidth){U.lastWidth=t;for(const i of U.listeners)i(t)}},150)};static init(){U.initialized||(window.addEventListener("resize",U.handleResize,{passive:!0}),U.initialized=!0)}static off(t){U.initialized&&(U.listeners.delete(t),U.listeners.size===0&&(window.removeEventListener("resize",U.handleResize),U.initialized=!1))}}function ie(){Array.prototype.distinct=function(s){return s?this.filter((i,c,b)=>b.findIndex($=>s($,i))===c):this.filter((i,c,b)=>b.indexOf(i)===c)},Array.prototype.filterBy=function(s){return this.filter(t=>s(t))},Array.prototype.first=function(){return this.length>0?this[0]:null},Array.prototype.groupBy=function(s){return this.reduce((t,i)=>{const c=s(i);return t[c]||(t[c]=[]),t[c].push(i),t},{})},Array.prototype.orderBy=function(s,t=!0){return this?.sort((i,c)=>It(i,c,s,t)),this},Array.prototype.removeBy=function(s,t){return this.filter(i=>s(i)!==t)}}var Ot={exports:{}},se=Ot.exports,Lt;function ae(){return Lt||(Lt=1,(function(s,t){(function(i,c){s.exports=c()})(se,(function(){var i=1e3,c=6e4,b=36e5,$="millisecond",F="second",q="minute",K="hour",_="day",J="week",Y="month",nt="quarter",Z="year",et="date",it="Invalid Date",ct=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,vt=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,St={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(m){var d=["th","st","nd","rd"],l=m%100;return"["+m+(d[(l-20)%10]||d[l]||d[0])+"]"}},dt=function(m,d,l){var a=String(m);return!a||a.length>=d?m:""+Array(d+1-a.length).join(l)+m},Mt={s:dt,z:function(m){var d=-m.utcOffset(),l=Math.abs(d),a=Math.floor(l/60),u=l%60;return(d<=0?"+":"-")+dt(a,2,"0")+":"+dt(u,2,"0")},m:function m(d,l){if(d.date()<l.date())return-m(l,d);var a=12*(l.year()-d.year())+(l.month()-d.month()),u=d.clone().add(a,Y),f=l-u<0,y=d.clone().add(a+(f?-1:1),Y);return+(-(a+(l-u)/(f?u-y:y-u))||0)},a:function(m){return m<0?Math.ceil(m)||0:Math.floor(m)},p:function(m){return{M:Y,y:Z,w:J,d:_,D:et,h:K,m:q,s:F,ms:$,Q:nt}[m]||String(m||"").toLowerCase().replace(/s$/,"")},u:function(m){return m===void 0}},ft="en",Q={};Q[ft]=St;var R="$isDayjsObject",e=function(m){return m instanceof g||!(!m||!m[R])},r=function m(d,l,a){var u;if(!d)return ft;if(typeof d=="string"){var f=d.toLowerCase();Q[f]&&(u=f),l&&(Q[f]=l,u=f);var y=d.split("-");if(!u&&y.length>1)return m(y[0])}else{var p=d.name;Q[p]=d,u=p}return!a&&u&&(ft=u),u||!a&&ft},n=function(m,d){if(e(m))return m.clone();var l=typeof d=="object"?d:{};return l.date=m,l.args=arguments,new g(l)},o=Mt;o.l=r,o.i=e,o.w=function(m,d){return n(m,{locale:d.$L,utc:d.$u,x:d.$x,$offset:d.$offset})};var g=(function(){function m(l){this.$L=r(l.locale,null,!0),this.parse(l),this.$x=this.$x||l.x||{},this[R]=!0}var d=m.prototype;return d.parse=function(l){this.$d=(function(a){var u=a.date,f=a.utc;if(u===null)return new Date(NaN);if(o.u(u))return new Date;if(u instanceof Date)return new Date(u);if(typeof u=="string"&&!/Z$/i.test(u)){var y=u.match(ct);if(y){var p=y[2]-1||0,v=(y[7]||"0").substring(0,3);return f?new Date(Date.UTC(y[1],p,y[3]||1,y[4]||0,y[5]||0,y[6]||0,v)):new Date(y[1],p,y[3]||1,y[4]||0,y[5]||0,y[6]||0,v)}}return new Date(u)})(l),this.init()},d.init=function(){var l=this.$d;this.$y=l.getFullYear(),this.$M=l.getMonth(),this.$D=l.getDate(),this.$W=l.getDay(),this.$H=l.getHours(),this.$m=l.getMinutes(),this.$s=l.getSeconds(),this.$ms=l.getMilliseconds()},d.$utils=function(){return o},d.isValid=function(){return this.$d.toString()!==it},d.isSame=function(l,a){var u=n(l);return this.startOf(a)<=u&&u<=this.endOf(a)},d.isAfter=function(l,a){return n(l)<this.startOf(a)},d.isBefore=function(l,a){return this.endOf(a)<n(l)},d.$g=function(l,a,u){return o.u(l)?this[a]:this.set(u,l)},d.unix=function(){return Math.floor(this.valueOf()/1e3)},d.valueOf=function(){return this.$d.getTime()},d.startOf=function(l,a){var u=this,f=!!o.u(a)||a,y=o.p(l),p=function(D,O){var w=o.w(u.$u?Date.UTC(u.$y,O,D):new Date(u.$y,O,D),u);return f?w:w.endOf(_)},v=function(D,O){return o.w(u.toDate()[D].apply(u.toDate("s"),(f?[0,0,0,0]:[23,59,59,999]).slice(O)),u)},h=this.$W,x=this.$M,C=this.$D,z="set"+(this.$u?"UTC":"");switch(y){case Z:return f?p(1,0):p(31,11);case Y:return f?p(1,x):p(0,x+1);case J:var B=this.$locale().weekStart||0,S=(h<B?h+7:h)-B;return p(f?C-S:C+(6-S),x);case _:case et:return v(z+"Hours",0);case K:return v(z+"Minutes",1);case q:return v(z+"Seconds",2);case F:return v(z+"Milliseconds",3);default:return this.clone()}},d.endOf=function(l){return this.startOf(l,!1)},d.$set=function(l,a){var u,f=o.p(l),y="set"+(this.$u?"UTC":""),p=(u={},u[_]=y+"Date",u[et]=y+"Date",u[Y]=y+"Month",u[Z]=y+"FullYear",u[K]=y+"Hours",u[q]=y+"Minutes",u[F]=y+"Seconds",u[$]=y+"Milliseconds",u)[f],v=f===_?this.$D+(a-this.$W):a;if(f===Y||f===Z){var h=this.clone().set(et,1);h.$d[p](v),h.init(),this.$d=h.set(et,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](v);return this.init(),this},d.set=function(l,a){return this.clone().$set(l,a)},d.get=function(l){return this[o.p(l)]()},d.add=function(l,a){var u,f=this;l=Number(l);var y=o.p(a),p=function(x){var C=n(f);return o.w(C.date(C.date()+Math.round(x*l)),f)};if(y===Y)return this.set(Y,this.$M+l);if(y===Z)return this.set(Z,this.$y+l);if(y===_)return p(1);if(y===J)return p(7);var v=(u={},u[q]=c,u[K]=b,u[F]=i,u)[y]||1,h=this.$d.getTime()+l*v;return o.w(h,this)},d.subtract=function(l,a){return this.add(-1*l,a)},d.format=function(l){var a=this,u=this.$locale();if(!this.isValid())return u.invalidDate||it;var f=l||"YYYY-MM-DDTHH:mm:ssZ",y=o.z(this),p=this.$H,v=this.$m,h=this.$M,x=u.weekdays,C=u.months,z=u.meridiem,B=function(O,w,T,j){return O&&(O[w]||O(a,f))||T[w].slice(0,j)},S=function(O){return o.s(p%12||12,O,"0")},D=z||function(O,w,T){var j=O<12?"AM":"PM";return T?j.toLowerCase():j};return f.replace(vt,(function(O,w){return w||(function(T){switch(T){case"YY":return String(a.$y).slice(-2);case"YYYY":return o.s(a.$y,4,"0");case"M":return h+1;case"MM":return o.s(h+1,2,"0");case"MMM":return B(u.monthsShort,h,C,3);case"MMMM":return B(C,h);case"D":return a.$D;case"DD":return o.s(a.$D,2,"0");case"d":return String(a.$W);case"dd":return B(u.weekdaysMin,a.$W,x,2);case"ddd":return B(u.weekdaysShort,a.$W,x,3);case"dddd":return x[a.$W];case"H":return String(p);case"HH":return o.s(p,2,"0");case"h":return S(1);case"hh":return S(2);case"a":return D(p,v,!0);case"A":return D(p,v,!1);case"m":return String(v);case"mm":return o.s(v,2,"0");case"s":return String(a.$s);case"ss":return o.s(a.$s,2,"0");case"SSS":return o.s(a.$ms,3,"0");case"Z":return y}return null})(O)||y.replace(":","")}))},d.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},d.diff=function(l,a,u){var f,y=this,p=o.p(a),v=n(l),h=(v.utcOffset()-this.utcOffset())*c,x=this-v,C=function(){return o.m(y,v)};switch(p){case Z:f=C()/12;break;case Y:f=C();break;case nt:f=C()/3;break;case J:f=(x-h)/6048e5;break;case _:f=(x-h)/864e5;break;case K:f=x/b;break;case q:f=x/c;break;case F:f=x/i;break;default:f=x}return u?f:o.a(f)},d.daysInMonth=function(){return this.endOf(Y).$D},d.$locale=function(){return Q[this.$L]},d.locale=function(l,a){if(!l)return this.$L;var u=this.clone(),f=r(l,a,!0);return f&&(u.$L=f),u},d.clone=function(){return o.w(this.$d,this)},d.toDate=function(){return new Date(this.valueOf())},d.toJSON=function(){return this.isValid()?this.toISOString():null},d.toISOString=function(){return this.$d.toISOString()},d.toString=function(){return this.$d.toUTCString()},m})(),k=g.prototype;return n.prototype=k,[["$ms",$],["$s",F],["$m",q],["$H",K],["$W",_],["$M",Y],["$y",Z],["$D",et]].forEach((function(m){k[m[1]]=function(d){return this.$g(d,m[0],m[1])}})),n.extend=function(m,d){return m.$i||(m(d,g,n),m.$i=!0),n},n.locale=r,n.isDayjs=e,n.unix=function(m){return n(1e3*m)},n.en=Q[ft],n.Ls=Q,n.p={},n}))})(Ot)),Ot.exports}var oe=ae();const tt=$t(oe);var xt={exports:{}},ue=xt.exports,Ft;function ce(){return Ft||(Ft=1,(function(s,t){(function(i,c){s.exports=c()})(ue,(function(){var i={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"};return function(c,b,$){var F=b.prototype,q=F.format;$.en.formats=i,F.format=function(K){K===void 0&&(K="YYYY-MM-DDTHH:mm:ssZ");var _=this.$locale().formats,J=(function(Y,nt){return Y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(Z,et,it){var ct=it&&it.toUpperCase();return et||nt[it]||i[it]||nt[ct].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(vt,St,dt){return St||dt.slice(1)}))}))})(K,_===void 0?{}:_);return q.call(this,J)}}}))})(xt)),xt.exports}var fe=ce();const le=$t(fe);tt.extend(le);function de(){Date.prototype.add=function(s,t){return tt(this).add(s,t).toDate()},Date.prototype.diff=function(s,t){return tt(this).diff(s,t)},Date.prototype.endOf=function(s){return tt(this).endOf(s).toDate()},Date.prototype.firstDayOfMonth=function(){return tt(this).startOf("month").toDate()},Date.prototype.isAfter=function(s,t){return tt(this).isAfter(s,t)},Date.prototype.isBefore=function(s,t){return tt(this).isBefore(s,t)},Date.prototype.format=function(s){return tt(this).format(s)},Date.prototype.isValid=function(){return tt(this).isValid()},Date.prototype.subtract=function(s,t){return tt(this).subtract(s,t).toDate()},Date.prototype.lastDayOfMonth=function(){return tt(this).endOf("month").toDate()},Date.prototype.set=function(s,t){return tt(this).set(s,t).toDate()},Date.prototype.startOf=function(s){return tt(this).startOf(s).toDate()}}function he(){String.prototype.capitalize=function(){return this.charAt(0).toUpperCase()+this.slice(1)},String.prototype.isNumber=function(){return!isNaN(Number(this))&&this.trim()!==""},String.prototype.isEmpty=function(){return this===void 0||!this||this.length===0},String.prototype.stripTags=function(){return new DOMParser().parseFromString(this.toString(),"text/html").body.textContent||""}}class pe{resizeListener;onResizeCallbacks=new Set;rafId=null;emitTimeoutId=null;duplicateThresholdMs=60;constructor(){typeof window<"u"&&(this.resizeListener=this.onResize.bind(this),window.addEventListener("resize",this.resizeListener,{passive:!0}))}destroy(){typeof window<"u"&&window.removeEventListener("resize",this.resizeListener),this.onResizeCallbacks.clear(),this.rafId!==null&&(cancelAnimationFrame(this.rafId),this.rafId=null)}onResizeChange(t){this.onResizeCallbacks.add(t)}offResizeChange(t){this.onResizeCallbacks.delete(t)}onResize=()=>{typeof window>"u"||(this.emitTimeoutId&&clearTimeout(this.emitTimeoutId),this.emitTimeoutId=window.setTimeout(()=>{this.emitTimeoutId=null},this.duplicateThresholdMs))}}L.BreakPointHelper=pt,L.BreakPoints=mt,L.BrowserHelper=X,L.BrowserService=pe,L.BrowserType=H,L.CsvHelper=Kt,L.EnumHelper=Gt,L.FileHelper=Ht,L.LocalStorageHelper=yt,L.LoggerHelper=W,L.LoggerType=gt,L.ScreenHelper=bt,L.TokenHelper=ne,L.WindowResizeHelper=U,L.copyToClipboard=Pt,L.initArrayExtensions=ie,L.initDateExtensions=de,L.initStringExtensions=he,L.saveAs=Tt,L.sortHelper=It,Object.defineProperty(L,Symbol.toStringTag,{value:"Module"})}));
|
|
8
|
+
`);var f=0,v=!1;this.parse=function(g,w,h){if(typeof g!="string")throw new Error("Input must be a string");var M=g.length,C=r.length,j=n.length,N=u.length,b=R(m),O=[],x=[],_=[],A=f=0;if(!g)return G();if(y||y!==!1&&g.indexOf(a)===-1){for(var P=g.split(n),I=0;I<P.length;I++){if(_=P[I],f+=_.length,I!==P.length-1)f+=n.length;else if(h)return G();if(!u||_.substring(0,N)!==u){if(b){if(O=[],he(_.split(r)),ae(),v)return G()}else he(_.split(r));if(S&&S<=I)return O=O.slice(0,S),G(!0)}}return G()}for(var L=g.indexOf(r,f),$=g.indexOf(n,f),ie=new RegExp(ce(c)+ce(a),"g"),E=g.indexOf(a,f);;)if(g[f]===a)for(E=f,f++;;){if((E=g.indexOf(a,E+1))===-1)return h||x.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:O.length,index:f}),se();if(E===M-1)return se(g.substring(f,E).replace(ie,a));if(a===c&&g[E+1]===c)E++;else if(a===c||E===0||g[E-1]!==c){L!==-1&&L<E+1&&(L=g.indexOf(r,E+1));var Y=we(($=$!==-1&&$<E+1?g.indexOf(n,E+1):$)===-1?L:Math.min(L,$));if(g.substr(E+1+Y,C)===r){_.push(g.substring(f,E).replace(ie,a)),g[f=E+1+Y+C]!==a&&(E=g.indexOf(a,f)),L=g.indexOf(r,f),$=g.indexOf(n,f);break}if(Y=we($),g.substring(E+1+Y,E+1+Y+j)===n){if(_.push(g.substring(f,E).replace(ie,a)),Se(E+1+Y+j),L=g.indexOf(r,f),E=g.indexOf(a,f),b&&(ae(),v))return G();if(S&&O.length>=S)return G(!0);break}x.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:O.length,index:f}),E++}}else if(u&&_.length===0&&g.substring(f,f+N)===u){if($===-1)return G();f=$+j,$=g.indexOf(n,f),L=g.indexOf(r,f)}else if(L!==-1&&(L<$||$===-1))_.push(g.substring(f,L)),f=L+C,L=g.indexOf(r,f);else{if($===-1)break;if(_.push(g.substring(f,$)),Se($+j),b&&(ae(),v))return G();if(S&&O.length>=S)return G(!0)}return se();function he(J){O.push(J),A=f}function we(J){var ee=0;return ee=J!==-1&&(J=g.substring(E+1,J))&&J.trim()===""?J.length:ee}function se(J){return h||(J===void 0&&(J=g.substring(f)),_.push(J),f=M,he(_),b&&ae()),G()}function Se(J){f=J,he(_),_=[],$=g.indexOf(n,f)}function G(J){if(t.header&&!w&&O.length&&!d){var ee=O[0],de=Object.create(null),Re=new Set(ee);let Pe=!1;for(let _e=0;_e<ee.length;_e++){let oe=ee[_e];if(de[oe=R(t.transformHeader)?t.transformHeader(oe,_e):oe]){let Ee,Ue=de[oe];for(;Ee=oe+"_"+Ue,Ue++,Re.has(Ee););Re.add(Ee),ee[_e]=Ee,de[oe]++,Pe=!0,(l=l===null?{}:l)[Ee]=oe}else de[oe]=1,ee[_e]=oe;Re.add(oe)}Pe&&console.warn("Duplicate headers found and renamed."),d=!0}return{data:O,errors:x,meta:{delimiter:r,linebreak:n,aborted:v,truncated:!!J,cursor:A+(w||0),renamedHeaders:l}}}function ae(){m(G()),O=[],x=[]}},this.abort=function(){v=!0},this.getCharIndex=function(){return f}}function be(t){var r=t.data,n=U[r.workerId],u=!1;if(r.error)n.userError(r.error,r.file);else if(r.results&&r.results.data){var m={abort:function(){u=!0,le(r.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:Ce,resume:Ce};if(R(n.userStep)){for(var S=0;S<r.results.data.length&&(n.userStep({data:r.results.data[S],errors:r.results.errors,meta:r.results.meta},m),!u);S++);delete r.results}else R(n.userChunk)&&(n.userChunk(r.results,m,r.file),delete r.results)}r.finished&&!u&&le(r.workerId,r.results)}function le(t,r){var n=U[t];R(n.userComplete)&&n.userComplete(r),n.terminate(),delete U[t]}function Ce(){throw new Error("Not implemented.")}function fe(t){if(typeof t!="object"||t===null)return t;var r,n=Array.isArray(t)?[]:{};for(r in t)n[r]=fe(t[r]);return n}function Z(t,r){return function(){t.apply(r,arguments)}}function R(t){return typeof t=="function"}return p.parse=function(t,r){var n=(r=r||{}).dynamicTyping||!1;if(R(n)&&(r.dynamicTypingFunction=n,n={}),r.dynamicTyping=n,r.transform=!!R(r.transform)&&r.transform,!r.worker||!p.WORKERS_SUPPORTED)return n=null,p.NODE_STREAM_INPUT,typeof t=="string"?(t=(u=>u.charCodeAt(0)!==65279?u:u.slice(1))(t),n=new(r.download?z:q)(r)):t.readable===!0&&R(t.read)&&R(t.on)?n=new X(r):(o.File&&t instanceof File||t instanceof Object)&&(n=new Q(r)),n.stream(t);(n=(()=>{var u;return!!p.WORKERS_SUPPORTED&&(u=(()=>{var m=o.URL||o.webkitURL||null,S=i.toString();return p.BLOB_URL||(p.BLOB_URL=m.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; ","(",S,")();"],{type:"text/javascript"})))})(),(u=new o.Worker(u)).onmessage=be,u.id=K++,U[u.id]=u)})()).userStep=r.step,n.userChunk=r.chunk,n.userComplete=r.complete,n.userError=r.error,r.step=R(r.step),r.chunk=R(r.chunk),r.complete=R(r.complete),r.error=R(r.error),delete r.worker,n.postMessage({input:t,config:r,workerId:n.id})},p.unparse=function(t,r){var n=!1,u=!0,m=",",S=`\r
|
|
9
|
+
`,y='"',l=y+y,d=!1,a=null,c=!1,f=((()=>{if(typeof r=="object"){if(typeof r.delimiter!="string"||p.BAD_DELIMITERS.filter(function(w){return r.delimiter.indexOf(w)!==-1}).length||(m=r.delimiter),typeof r.quotes!="boolean"&&typeof r.quotes!="function"&&!Array.isArray(r.quotes)||(n=r.quotes),typeof r.skipEmptyLines!="boolean"&&typeof r.skipEmptyLines!="string"||(d=r.skipEmptyLines),typeof r.newline=="string"&&(S=r.newline),typeof r.quoteChar=="string"&&(y=r.quoteChar),typeof r.header=="boolean"&&(u=r.header),Array.isArray(r.columns)){if(r.columns.length===0)throw new Error("Option columns is empty");a=r.columns}r.escapeChar!==void 0&&(l=r.escapeChar+y),r.escapeFormulae instanceof RegExp?c=r.escapeFormulae:typeof r.escapeFormulae=="boolean"&&r.escapeFormulae&&(c=/^[=+\-@\t\r].*$/)}})(),new RegExp(ce(y),"g"));if(typeof t=="string"&&(t=JSON.parse(t)),Array.isArray(t)){if(!t.length||Array.isArray(t[0]))return v(null,t,d);if(typeof t[0]=="object")return v(a||Object.keys(t[0]),t,d)}else if(typeof t=="object")return typeof t.data=="string"&&(t.data=JSON.parse(t.data)),Array.isArray(t.data)&&(t.fields||(t.fields=t.meta&&t.meta.fields||a),t.fields||(t.fields=Array.isArray(t.data[0])?t.fields:typeof t.data[0]=="object"?Object.keys(t.data[0]):[]),Array.isArray(t.data[0])||typeof t.data[0]=="object"||(t.data=[t.data])),v(t.fields||[],t.data||[],d);throw new Error("Unable to serialize unrecognized input");function v(w,h,M){var C="",j=(typeof w=="string"&&(w=JSON.parse(w)),typeof h=="string"&&(h=JSON.parse(h)),Array.isArray(w)&&0<w.length),N=!Array.isArray(h[0]);if(j&&u){for(var b=0;b<w.length;b++)0<b&&(C+=m),C+=g(w[b],b);0<h.length&&(C+=S)}for(var O=0;O<h.length;O++){var x=(j?w:h[O]).length,_=!1,A=j?Object.keys(h[O]).length===0:h[O].length===0;if(M&&!j&&(_=M==="greedy"?h[O].join("").trim()==="":h[O].length===1&&h[O][0].length===0),M==="greedy"&&j){for(var P=[],I=0;I<x;I++){var L=N?w[I]:I;P.push(h[O][L])}_=P.join("").trim()===""}if(!_){for(var $=0;$<x;$++){0<$&&!A&&(C+=m);var ie=j&&N?w[$]:$;C+=g(h[O][ie],$)}O<h.length-1&&(!M||0<x&&!A)&&(C+=S)}}return C}function g(w,h){var M,C;return w==null?"":w.constructor===Date?JSON.stringify(w).slice(1,25):(C=!1,c&&typeof w=="string"&&c.test(w)&&(w="'"+w,C=!0),M=w.toString().replace(f,l),(C=C||n===!0||typeof n=="function"&&n(w,h)||Array.isArray(n)&&n[h]||((j,N)=>{for(var b=0;b<N.length;b++)if(-1<j.indexOf(N[b]))return!0;return!1})(M,p.BAD_DELIMITERS)||-1<M.indexOf(m)||M.charAt(0)===" "||M.charAt(M.length-1)===" ")?y+M+y:M)}},p.RECORD_SEP="",p.UNIT_SEP="",p.BYTE_ORDER_MARK="\uFEFF",p.BAD_DELIMITERS=["\r",`
|
|
10
|
+
`,'"',p.BYTE_ORDER_MARK],p.WORKERS_SUPPORTED=!D&&!!o.Worker,p.NODE_STREAM_INPUT=1,p.LocalChunkSize=10485760,p.RemoteChunkSize=5242880,p.DefaultDelimiter=",",p.Parser=ve,p.ParserHandle=ne,p.NetworkStreamer=z,p.FileStreamer=Q,p.StringStreamer=q,p.ReadableStreamStreamer=X,o.jQuery&&((k=o.jQuery).fn.parse=function(t){var r=t.config||{},n=[];return this.each(function(S){if(!(k(this).prop("tagName").toUpperCase()==="INPUT"&&k(this).attr("type").toLowerCase()==="file"&&o.FileReader)||!this.files||this.files.length===0)return!0;for(var y=0;y<this.files.length;y++)n.push({file:this.files[y],inputElem:this,instanceConfig:k.extend({},r)})}),u(),this;function u(){if(n.length===0)R(t.complete)&&t.complete();else{var S,y,l,d,a=n[0];if(R(t.before)){var c=t.before(a.file,a.inputElem);if(typeof c=="object"){if(c.action==="abort")return S="AbortError",y=a.file,l=a.inputElem,d=c.reason,void(R(t.error)&&t.error({name:S},y,l,d));if(c.action==="skip")return void m();typeof c.config=="object"&&(a.instanceConfig=k.extend(a.instanceConfig,c.config))}else if(c==="skip")return void m()}var f=a.instanceConfig.complete;a.instanceConfig.complete=function(v){R(f)&&f(v,a.file,a.inputElem),m()},p.parse(a.file,a.instanceConfig)}}function m(){n.splice(0,1),u()}}),T&&(o.onmessage=function(t){t=t.data,p.WORKER_ID===void 0&&t&&(p.WORKER_ID=t.workerId),typeof t.input=="string"?o.postMessage({workerId:p.WORKER_ID,results:p.parse(t.input,t.config),finished:!0}):(o.File&&t.input instanceof File||t.input instanceof Object)&&(t=p.parse(t.input,t.config))&&o.postMessage({workerId:p.WORKER_ID,results:t,finished:!0})}),(z.prototype=Object.create(W.prototype)).constructor=z,(Q.prototype=Object.create(W.prototype)).constructor=Q,(q.prototype=Object.create(q.prototype)).constructor=q,(X.prototype=Object.create(W.prototype)).constructor=X,p})})(xe)),xe.exports}var Ne=Be();const qe=Oe(Ne),{parse:Ke,unparse:Je}=qe;class Qe{static unparse(e,i){return Je(e,i)}static parse(e){return new Promise((i,o)=>{Ke(e,{header:!0,complete:k=>i(k),error:k=>o(k)})})}}async function Ae(s,e,i){const o=i?.mimeType??Ze(e),k=Ve(s,o);if("showSaveFilePicker"in window&&i?.showSaveFilePicker)try{const K=await(await window.showSaveFilePicker({suggestedName:e,types:[{description:"Datei",accept:{[o]:[`.${Ie(e)}`]}}]})).createWritable();await K.write(k),await K.close();return}catch{}const D=URL.createObjectURL(k),T=document.createElement("a");T.href=D,T.download=e,T.rel="noopener",T.style.display="none",document.body.appendChild(T),Ge(T),window.setTimeout(()=>{document.body.removeChild(T),URL.revokeObjectURL(D)},0),He()&&window.open(D,"_blank","noopener,noreferrer")}function Ve(s,e){if(s instanceof Blob)return s.type?s:new Blob([s],{type:e});if(s instanceof ArrayBuffer||s instanceof Uint8Array){const i=s instanceof Uint8Array?s:new Uint8Array(s);return new Blob([i],{type:e})}return new Blob([s],{type:e||"text/plain;charset=utf-8"})}function Ze(s){switch(Ie(s).toLowerCase()){case"txt":return"text/plain;charset=utf-8";case"csv":return"text/csv;charset=utf-8";case"json":return"application/json;charset=utf-8";case"pdf":return"application/pdf";case"png":return"image/png";case"jpg":case"jpeg":return"image/jpeg";case"svg":return"image/svg+xml";case"zip":return"application/zip";default:return"application/octet-stream"}}function Ie(s){const e=s.lastIndexOf(".");return e>=0&&e<s.length-1?s.slice(e+1):""}function Ge(s){const e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),s.dispatchEvent(e)}function He(){const s=navigator.userAgent,e=/iPad|iPhone|iPod/.test(s),i=/^((?!chrome|android).)*safari/i.test(s);return e||i}class Xe{static getEnumValue(e,i){if(i in e)return e[i];throw Error(`${i} not found in ${e}`)}static getKeyValues(e){return Object.keys(e).filter(i=>!isNaN(Number(i))).map(i=>({key:Number(i),value:e[i]}))}}class et{static getFileExtension(e){let i="";const o=e.lastIndexOf(".");return o>0&&o<e.length-1&&(i=`.${e.substring(o+1).toLowerCase()}`),i}static readAsText(e){const i=new FileReader;return new Promise((o,k)=>{i.onload=()=>{i.onload=null,i.onerror=null,typeof i.result=="string"?o(i.result):k(new Error("Unexpected result type"))},i.onerror=()=>{const D=i.error??new Error("FileReader error");i.onload=null,i.onerror=null,k(D)},i.readAsText(e)})}static readAsArrayBuffer(e){const i=new FileReader;return new Promise((o,k)=>{i.onload=()=>{i.onload=null,i.onerror=null,i.result instanceof ArrayBuffer?o(i.result):k(new Error("Unexpected result type"))},i.onerror=()=>{const D=i.error??new Error("FileReader error");i.onload=null,i.onerror=null,k(D)},i.readAsArrayBuffer(e)})}static readAsDataUrl(e){const i=new FileReader;return new Promise((o,k)=>{i.onload=D=>{o(D)},i.onerror=D=>k(D),i.readAsDataURL(e)})}static formatFileSize(e,i=2,o){if(e===0)return"0 Bytes";const k=1024,D=["Bytes","KB","MB","GB","TB"];let T=Math.floor(Math.log(e)/Math.log(k));o&&D.includes(o)&&(T=D.indexOf(o));const U=e/Math.pow(k,T);return`${parseFloat(U.toFixed(i))} ${D[T]}`}static save(e,i,o){const k=new Blob([e],{type:o});Ae(k,i)}}class ye{static set(e,i){localStorage.setItem(e,JSON.stringify(i))}static get(e){let i=null;const o=localStorage.getItem(e);return o&&(i=JSON.parse(o)),i}static remove(e){let i=!!ye.get(e);return i&&localStorage.removeItem(e),i}static removeAll(){localStorage.clear()}static getKeysBy(e){return Object.keys(localStorage).filter(i=>i.startsWith(e))}}var ge=(s=>(s.log="log",s.info="info",s.warn="warn",s.debug="debug",s.error="error",s))(ge||{});class V{static listeners=new Set;static enabled=!0;static log(...e){V.doLog(ge.log,e)}static info(...e){V.doLog(ge.info,e)}static warn(...e){V.doLog(ge.warn,e)}static debug(...e){V.doLog(ge.debug,e)}static error(...e){V.doLog(ge.error,e)}static clearListeners(){V.listeners.clear()}static setEnabled(e){V.enabled=e}static doLog(e,i){if(!V.enabled)return;const o={type:e,args:i,timestamp:new Date().toISOString()};for(const k of V.listeners)try{if(k(o)===!1)return}catch{}console[e].apply(console,i)}static onLog(e,i=!1){if(i){const o=k=>{try{return e(k)}finally{V.listeners.delete(o)}};return V.listeners.add(o),()=>V.listeners.delete(o)}return V.listeners.add(e),()=>V.listeners.delete(e)}}const tt=(s,e,i)=>s.localeCompare(e)*(i?1:-1),rt=(s,e)=>s<e?-1:s===e?0:1,nt=(s,e,i)=>rt(s,e)*(i?1:-1),it=(s,e,i)=>{let o=0;return typeof s=="string"&&typeof e=="string"?o=tt(s,e,i):o=nt(s,e,i),o},Le=(s,e,i,o)=>{const k=i(s),D=i(e);return it(k,D,o)};class st{static get(e){return ye.get(e)}static set(e,i){ye.set(e,i)}static remove(e){ye.remove(e)}}class B{static listeners=new Set;static initialized=!1;static resizeTimeout=null;static lastWidth=window.innerWidth;static onResize(e){return B.initialized||B.init(),B.listeners.add(e),()=>B.off(e)}static handleResize=()=>{B.resizeTimeout!==null&&(window.clearTimeout(B.resizeTimeout),B.resizeTimeout=null),B.resizeTimeout=window.setTimeout(()=>{const e=window.innerWidth;if(e!==B.lastWidth){B.lastWidth=e;for(const i of B.listeners)i(e)}},150)};static init(){B.initialized||(window.addEventListener("resize",B.handleResize,{passive:!0}),B.initialized=!0)}static off(e){B.initialized&&(B.listeners.delete(e),B.listeners.size===0&&(window.removeEventListener("resize",B.handleResize),B.initialized=!1))}}function at(){Array.prototype.distinct=function(s){return s?this.filter((i,o,k)=>k.findIndex(D=>s(D,i))===o):this.filter((i,o,k)=>k.indexOf(i)===o)},Array.prototype.filterBy=function(s){return this.filter(e=>s(e))},Array.prototype.first=function(){return this.length>0?this[0]:null},Array.prototype.groupBy=function(s){return this.reduce((e,i)=>{const o=s(i);return e[o]||(e[o]=[]),e[o].push(i),e},{})},Array.prototype.orderBy=function(s,e=!0){return this?.sort((i,o)=>Le(i,o,s,e)),this},Array.prototype.removeBy=function(s,e){return this.filter(i=>s(i)!==e)}}var De={exports:{}},ot=De.exports,Fe;function ut(){return Fe||(Fe=1,(function(s,e){(function(i,o){s.exports=o()})(ot,(function(){var i=1e3,o=6e4,k=36e5,D="millisecond",T="second",U="minute",K="hour",p="day",W="week",z="month",Q="quarter",q="year",X="date",ne="Invalid Date",ce=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,ve=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,be={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(y){var l=["th","st","nd","rd"],d=y%100;return"["+y+(l[(d-20)%10]||l[d]||l[0])+"]"}},le=function(y,l,d){var a=String(y);return!a||a.length>=l?y:""+Array(l+1-a.length).join(d)+y},Ce={s:le,z:function(y){var l=-y.utcOffset(),d=Math.abs(l),a=Math.floor(d/60),c=d%60;return(l<=0?"+":"-")+le(a,2,"0")+":"+le(c,2,"0")},m:function y(l,d){if(l.date()<d.date())return-y(d,l);var a=12*(d.year()-l.year())+(d.month()-l.month()),c=l.clone().add(a,z),f=d-c<0,v=l.clone().add(a+(f?-1:1),z);return+(-(a+(d-c)/(f?c-v:v-c))||0)},a:function(y){return y<0?Math.ceil(y)||0:Math.floor(y)},p:function(y){return{M:z,y:q,w:W,d:p,D:X,h:K,m:U,s:T,ms:D,Q}[y]||String(y||"").toLowerCase().replace(/s$/,"")},u:function(y){return y===void 0}},fe="en",Z={};Z[fe]=be;var R="$isDayjsObject",t=function(y){return y instanceof m||!(!y||!y[R])},r=function y(l,d,a){var c;if(!l)return fe;if(typeof l=="string"){var f=l.toLowerCase();Z[f]&&(c=f),d&&(Z[f]=d,c=f);var v=l.split("-");if(!c&&v.length>1)return y(v[0])}else{var g=l.name;Z[g]=l,c=g}return!a&&c&&(fe=c),c||!a&&fe},n=function(y,l){if(t(y))return y.clone();var d=typeof l=="object"?l:{};return d.date=y,d.args=arguments,new m(d)},u=Ce;u.l=r,u.i=t,u.w=function(y,l){return n(y,{locale:l.$L,utc:l.$u,x:l.$x,$offset:l.$offset})};var m=(function(){function y(d){this.$L=r(d.locale,null,!0),this.parse(d),this.$x=this.$x||d.x||{},this[R]=!0}var l=y.prototype;return l.parse=function(d){this.$d=(function(a){var c=a.date,f=a.utc;if(c===null)return new Date(NaN);if(u.u(c))return new Date;if(c instanceof Date)return new Date(c);if(typeof c=="string"&&!/Z$/i.test(c)){var v=c.match(ce);if(v){var g=v[2]-1||0,w=(v[7]||"0").substring(0,3);return f?new Date(Date.UTC(v[1],g,v[3]||1,v[4]||0,v[5]||0,v[6]||0,w)):new Date(v[1],g,v[3]||1,v[4]||0,v[5]||0,v[6]||0,w)}}return new Date(c)})(d),this.init()},l.init=function(){var d=this.$d;this.$y=d.getFullYear(),this.$M=d.getMonth(),this.$D=d.getDate(),this.$W=d.getDay(),this.$H=d.getHours(),this.$m=d.getMinutes(),this.$s=d.getSeconds(),this.$ms=d.getMilliseconds()},l.$utils=function(){return u},l.isValid=function(){return this.$d.toString()!==ne},l.isSame=function(d,a){var c=n(d);return this.startOf(a)<=c&&c<=this.endOf(a)},l.isAfter=function(d,a){return n(d)<this.startOf(a)},l.isBefore=function(d,a){return this.endOf(a)<n(d)},l.$g=function(d,a,c){return u.u(d)?this[a]:this.set(c,d)},l.unix=function(){return Math.floor(this.valueOf()/1e3)},l.valueOf=function(){return this.$d.getTime()},l.startOf=function(d,a){var c=this,f=!!u.u(a)||a,v=u.p(d),g=function(O,x){var _=u.w(c.$u?Date.UTC(c.$y,x,O):new Date(c.$y,x,O),c);return f?_:_.endOf(p)},w=function(O,x){return u.w(c.toDate()[O].apply(c.toDate("s"),(f?[0,0,0,0]:[23,59,59,999]).slice(x)),c)},h=this.$W,M=this.$M,C=this.$D,j="set"+(this.$u?"UTC":"");switch(v){case q:return f?g(1,0):g(31,11);case z:return f?g(1,M):g(0,M+1);case W:var N=this.$locale().weekStart||0,b=(h<N?h+7:h)-N;return g(f?C-b:C+(6-b),M);case p:case X:return w(j+"Hours",0);case K:return w(j+"Minutes",1);case U:return w(j+"Seconds",2);case T:return w(j+"Milliseconds",3);default:return this.clone()}},l.endOf=function(d){return this.startOf(d,!1)},l.$set=function(d,a){var c,f=u.p(d),v="set"+(this.$u?"UTC":""),g=(c={},c[p]=v+"Date",c[X]=v+"Date",c[z]=v+"Month",c[q]=v+"FullYear",c[K]=v+"Hours",c[U]=v+"Minutes",c[T]=v+"Seconds",c[D]=v+"Milliseconds",c)[f],w=f===p?this.$D+(a-this.$W):a;if(f===z||f===q){var h=this.clone().set(X,1);h.$d[g](w),h.init(),this.$d=h.set(X,Math.min(this.$D,h.daysInMonth())).$d}else g&&this.$d[g](w);return this.init(),this},l.set=function(d,a){return this.clone().$set(d,a)},l.get=function(d){return this[u.p(d)]()},l.add=function(d,a){var c,f=this;d=Number(d);var v=u.p(a),g=function(M){var C=n(f);return u.w(C.date(C.date()+Math.round(M*d)),f)};if(v===z)return this.set(z,this.$M+d);if(v===q)return this.set(q,this.$y+d);if(v===p)return g(1);if(v===W)return g(7);var w=(c={},c[U]=o,c[K]=k,c[T]=i,c)[v]||1,h=this.$d.getTime()+d*w;return u.w(h,this)},l.subtract=function(d,a){return this.add(-1*d,a)},l.format=function(d){var a=this,c=this.$locale();if(!this.isValid())return c.invalidDate||ne;var f=d||"YYYY-MM-DDTHH:mm:ssZ",v=u.z(this),g=this.$H,w=this.$m,h=this.$M,M=c.weekdays,C=c.months,j=c.meridiem,N=function(x,_,A,P){return x&&(x[_]||x(a,f))||A[_].slice(0,P)},b=function(x){return u.s(g%12||12,x,"0")},O=j||function(x,_,A){var P=x<12?"AM":"PM";return A?P.toLowerCase():P};return f.replace(ve,(function(x,_){return _||(function(A){switch(A){case"YY":return String(a.$y).slice(-2);case"YYYY":return u.s(a.$y,4,"0");case"M":return h+1;case"MM":return u.s(h+1,2,"0");case"MMM":return N(c.monthsShort,h,C,3);case"MMMM":return N(C,h);case"D":return a.$D;case"DD":return u.s(a.$D,2,"0");case"d":return String(a.$W);case"dd":return N(c.weekdaysMin,a.$W,M,2);case"ddd":return N(c.weekdaysShort,a.$W,M,3);case"dddd":return M[a.$W];case"H":return String(g);case"HH":return u.s(g,2,"0");case"h":return b(1);case"hh":return b(2);case"a":return O(g,w,!0);case"A":return O(g,w,!1);case"m":return String(w);case"mm":return u.s(w,2,"0");case"s":return String(a.$s);case"ss":return u.s(a.$s,2,"0");case"SSS":return u.s(a.$ms,3,"0");case"Z":return v}return null})(x)||v.replace(":","")}))},l.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},l.diff=function(d,a,c){var f,v=this,g=u.p(a),w=n(d),h=(w.utcOffset()-this.utcOffset())*o,M=this-w,C=function(){return u.m(v,w)};switch(g){case q:f=C()/12;break;case z:f=C();break;case Q:f=C()/3;break;case W:f=(M-h)/6048e5;break;case p:f=(M-h)/864e5;break;case K:f=M/k;break;case U:f=M/o;break;case T:f=M/i;break;default:f=M}return c?f:u.a(f)},l.daysInMonth=function(){return this.endOf(z).$D},l.$locale=function(){return Z[this.$L]},l.locale=function(d,a){if(!d)return this.$L;var c=this.clone(),f=r(d,a,!0);return f&&(c.$L=f),c},l.clone=function(){return u.w(this.$d,this)},l.toDate=function(){return new Date(this.valueOf())},l.toJSON=function(){return this.isValid()?this.toISOString():null},l.toISOString=function(){return this.$d.toISOString()},l.toString=function(){return this.$d.toUTCString()},y})(),S=m.prototype;return n.prototype=S,[["$ms",D],["$s",T],["$m",U],["$H",K],["$W",p],["$M",z],["$y",q],["$D",X]].forEach((function(y){S[y[1]]=function(l){return this.$g(l,y[0],y[1])}})),n.extend=function(y,l){return y.$i||(y(l,m,n),y.$i=!0),n},n.locale=r,n.isDayjs=t,n.unix=function(y){return n(1e3*y)},n.en=Z[fe],n.Ls=Z,n.p={},n}))})(De)),De.exports}var ct=ut();const H=Oe(ct);var Me={exports:{}},ft=Me.exports,ze;function dt(){return ze||(ze=1,(function(s,e){(function(i,o){s.exports=o()})(ft,(function(){var i="day";return function(o,k,D){var T=function(p){return p.add(4-p.isoWeekday(),i)},U=k.prototype;U.isoWeekYear=function(){return T(this).year()},U.isoWeek=function(p){if(!this.$utils().u(p))return this.add(7*(p-this.isoWeek()),i);var W,z,Q,q,X=T(this),ne=(W=this.isoWeekYear(),z=this.$u,Q=(z?D.utc:D)().year(W).startOf("year"),q=4-Q.isoWeekday(),Q.isoWeekday()>4&&(q+=7),Q.add(q,i));return X.diff(ne,"week")+1},U.isoWeekday=function(p){return this.$utils().u(p)?this.day()||7:this.day(this.day()%7?p:p-7)};var K=U.startOf;U.startOf=function(p,W){var z=this.$utils(),Q=!!z.u(W)||W;return z.p(p)==="isoweek"?Q?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):K.bind(this)(p,W)}}}))})(Me)),Me.exports}var lt=dt();const ht=Oe(lt);var $e={exports:{}},pt=$e.exports,je;function gt(){return je||(je=1,(function(s,e){(function(i,o){s.exports=o()})(pt,(function(){var i={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"};return function(o,k,D){var T=k.prototype,U=T.format;D.en.formats=i,T.format=function(K){K===void 0&&(K="YYYY-MM-DDTHH:mm:ssZ");var p=this.$locale().formats,W=(function(z,Q){return z.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(q,X,ne){var ce=ne&&ne.toUpperCase();return X||Q[ne]||i[ne]||Q[ce].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(ve,be,le){return be||le.slice(1)}))}))})(K,p===void 0?{}:p);return U.call(this,W)}}}))})($e)),$e.exports}var mt=gt();const yt=Oe(mt);H.extend(yt),H.extend(ht);function vt(){Date.prototype.add=function(s,e){return H(this).add(s,e).toDate()},Date.prototype.diff=function(s,e){return H(this).diff(s,e)},Date.prototype.endOf=function(s){return H(this).endOf(s).toDate()},Date.prototype.firstDayOfMonth=function(){return H(this).startOf("month").toDate()},Date.prototype.format=function(s){return H(this).format(s)},Date.prototype.isAfter=function(s,e){return H(this).isAfter(s,e)},Date.prototype.isBefore=function(s,e){return H(this).isBefore(s,e)},Date.prototype.isValid=function(){return H(this).isValid()},Date.prototype.isoWeek=function(){return H(this).isoWeek()},Date.prototype.subtract=function(s,e){return H(this).subtract(s,e).toDate()},Date.prototype.lastDayOfMonth=function(){return H(this).endOf("month").toDate()},Date.prototype.set=function(s,e){return H(this).set(s,e).toDate()},Date.prototype.startOf=function(s){return H(this).startOf(s).toDate()}}function wt(){String.prototype.capitalize=function(){return this.charAt(0).toUpperCase()+this.slice(1)},String.prototype.isNumber=function(){return!isNaN(Number(this))&&this.trim()!==""},String.prototype.isEmpty=function(){return this===void 0||!this||this.length===0},String.prototype.stripTags=function(){return new DOMParser().parseFromString(this.toString(),"text/html").body.textContent||""}}class _t{resizeListener;onResizeCallbacks=new Set;rafId=null;emitTimeoutId=null;duplicateThresholdMs=60;constructor(){typeof window<"u"&&(this.resizeListener=this.onResize.bind(this),window.addEventListener("resize",this.resizeListener,{passive:!0}))}destroy(){typeof window<"u"&&window.removeEventListener("resize",this.resizeListener),this.onResizeCallbacks.clear(),this.rafId!==null&&(cancelAnimationFrame(this.rafId),this.rafId=null)}onResizeChange(e){this.onResizeCallbacks.add(e)}offResizeChange(e){this.onResizeCallbacks.delete(e)}onResize=()=>{typeof window>"u"||(this.emitTimeoutId&&clearTimeout(this.emitTimeoutId),this.emitTimeoutId=window.setTimeout(()=>{this.emitTimeoutId=null},this.duplicateThresholdMs))}}F.BreakPointHelper=pe,F.BreakPoints=me,F.BrowserHelper=re,F.BrowserService=_t,F.BrowserType=te,F.CsvHelper=Qe,F.EnumHelper=Xe,F.FileHelper=et,F.LocalStorageHelper=ye,F.LoggerHelper=V,F.LoggerType=ge,F.ScreenHelper=ke,F.TokenHelper=st,F.WindowResizeHelper=B,F.copyToClipboard=We,F.initArrayExtensions=at,F.initDateExtensions=vt,F.initStringExtensions=wt,F.saveAs=Ae,F.sortHelper=Le,Object.defineProperty(F,Symbol.toStringTag,{value:"Module"})}));
|