1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[15944,58877,60706],{766902:function(e,t,r){"use strict";var i=r(625127),o=r(461704),n=r(885115);r(69108);var s=r(852689),a=r(131787),l=n.forwardRef(function(e,t){var r=e.active,a=void 0!==r&&r,l=e.alternativeLabel,c=e.children,u=e.classes,d=e.className,f=e.completed,p=void 0!==f&&f,h=e.connector,m=e.disabled,_=void 0!==m&&m,g=e.expanded,v=void 0!==g&&g,b=e.index,y=e.last,x=e.orientation,C=(0,o.Z)(e,["active","alternativeLabel","children","classes","className","completed","connector","disabled","expanded","index","last","orientation"]),E=h?n.cloneElement(h,{orientation:x,alternativeLabel:l,index:b,active:a,completed:p,disabled:_}):null,w=n.createElement("div",(0,i.Z)({className:(0,s.default)(u.root,u[x],d,l&&u.alternativeLabel,p&&u.completed),ref:t},C),E&&l&&0!==b?E:null,n.Children.map(c,function(e){return n.isValidElement(e)?n.cloneElement(e,(0,i.Z)({active:a,alternativeLabel:l,completed:p,disabled:_,expanded:v,last:y,icon:b+1,orientation:x},e.props)):null}));return E&&!l&&0!==b?n.createElement(n.Fragment,null,E,w):w});t.Z=(0,a.Z)({root:{},horizontal:{paddingLeft:8,paddingRight:8},vertical:{},alternativeLabel:{flex:1,position:"relative"},completed:{}},{name:"MuiStep"})(l)},923085:function(e,t,r){"use strict";r.d(t,{Z:function(){return g}});var i=r(625127),o=r(461704),n=r(885115),s=r(852689),a=r(131787),l=r(821858),c=r(624794),u=(0,c.Z)(n.createElement("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),d=(0,c.Z)(n.createElement("path",{d:"M1 21h22L12 2
11 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning"),f=r(190882),p=n.createElement("circle",{cx:"12",cy:"12",r:"12"}),h=n.forwardRef(function(e,t){var r=e.completed,i=void 0!==r&&r,o=e.icon,a=e.active,l=e.error,c=void 0!==l&&l,h=e.classes;if("number"==typeof o||"string"==typeof o){var m=(0,s.default)(h.root,void 0!==a&&a&&h.active,c&&h.error,i&&h.completed);return c?n.createElement(d,{className:m,ref:t}):i?n.createElement(u,{className:m,ref:t}):n.createElement(f.Z,{className:m,ref:t},p,n.createElement("text",{className:h.text,x:"12",y:"16",textAnchor:"middle"},o))}return o}),m=(0,a.Z)(function(e){return{root:{display:"block",color:e.palette.text.disabled,"&$completed":{color:e.palette.primary.main},"&$active":{color:e.palette.primary.main},"&$error":{color:e.palette.error.main}},text:{fill:e.palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily},active:{},completed:{},error:{}}},{name:"MuiStepIcon"})(h),_=n.forwardRef(function(e,t){var r=e.active,a=void 0!==r&&r,c=e.alternativeLabel,u=void 0!==c&&c,d=e.children,f=e.classes,p=e.className,h=e.completed,_=void 0!==h&&h,g=e.disabled,v=void 0!==g&&g,b=e.error,y=void 0!==b&&b,x=(e.expanded,e.icon),C=(e.last,e.optional),E=e.orientation,w=e.StepIconComponent,O=e.StepIconProps,N=(0,o.Z)(e,["active","alternativeLabel","children","classes","className","completed","disabled","error","expanded","icon","last","optional","orientation","StepIconComponent","StepIconProps"]),I=w;return x&&!I&&(I=m),n.createElement("span",(0,i.Z)({className:(0,s.default)(f.root,f[void 0===E?"horizontal":E],p,v&&f.disabled,u&&f.alternativeLabel,y&&f.error),ref:t},N),x||I?n.createElement("span",{className:(0,s.default)(f.iconContainer,u&&f.alternativeLabel)},n.createElement(I,(0,i.Z)({completed:_,active:a,error:y,icon:x},O))):null,n.createElement("span",{className:f.labelContainer},d?n.createElement(l.Z,{variant:"body2",component:"span",display:"block",className:(0,s.default)(f.label,u&&f.alternativeLabel,_&&f.completed,a&&f.active,y&&f.error)},d):null,C))});_.muiName="StepLabel";var g=(0,a.Z)(function(e){return{root:{display:"flex",alignItems:"center","&$alternativeLabel":{flexDirection:"column"},"&$disabled":{cursor:"default"}},horizontal:{},vertical:{},label:{color:e.palette.text.secondary,"&$active":{color:e.palette.text.primary,fontWeight:500},"&$completed":{color:e.palette.text.primary,fontWeight:500},"&$alternativeLabel":{textAlign:"center",marginTop:16},"&$error":{color:e.palette.error.main}},active:{},completed:{},error:{},disabled:{},iconContainer:{flexShrink:0,display:"flex",paddingRight:8,"&$alternativeLabel":{paddingRight:0}},alternativeLabel:{},labelContainer:{width:"100%"}}},{name:"MuiStepLabel"})(_)},512461:function(e,t,r){"use strict";r.d(t,{Z:function(){return p}});var i=r(625127),o=r(461704),n=r(885115),s=r(852689),a=r(131787),l=r(311346),c=n.forwardRef(function(e,t){var r=e.active,a=e.alternativeLabel,l=void 0!==a&&a,c=e.classes,u=e.className,d=e.completed,f=e.disabled,p=(e.index,e.orientation),h=void 0===p?"horizontal":p,m=(0,o.Z)(e,["active","alternativeLabel","classes","className","completed","disabled","index","orientation"]);return n.createElement("div",(0,i.Z)({className:(0,s.default)(c.root,c[h],u,l&&c.alternativeLabel,r&&c.active,d&&c.completed,f&&c.disabled),ref:t},m),n.createElement("span",{className:(0,s.default)(c.line,{horizontal:c.lineHorizontal,vertical:c.lineVertical}[h])}))}),u=(0,a.Z)(function(e){return{root:{flex:"1 1 auto"},horizontal:{},vertical:{marginLeft:12,padding:"0 0 8px"},alternativeLabel:{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"},active:{},completed:{},disabled:{},line:{display:"block",borderColor:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600]},lineHorizontal:{borderTopStyle:"solid",borderTopWidth:1},lineVertical:{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24}}},{name:"MuiStepConnector"})(c),d=n.createElement(u,null),f=n.forwardRef(function(e,t){var r=e.activeStep,a=void 0===r?0:r,c=e.alternativeLabel,u=void 0!==c&&c,f=e.children,p=e.classes,h=e.className,m=e.connector,_=void 0===m?d:m,g=e.nonLinear,v=void 0!==g&&g,b=e.orientation,y=void 0===b?"horizontal":b,x=(0,o.Z)(e,["activeStep","alternativeLabel","children","classes","className","connector","nonLinear","orientation"]),C=n.isValidElement(_)?n.cloneElement(_,{orientation:y}):null,E=n.Children.toArray(f),w=E.map(function(e,t){var r={index:t,active:!1,completed:!1,disabled:!1};return a===t?r.active=!0:!v&&a>t?r.completed=!0:!v&&a<t&&(r.disabled=!0),n.cloneElement(e,(0,i.Z)({alternativeLabel:u,connector:C,last:t+1===E.length,orientation:y},r,e.props))});
1return n.createElement(l.Z,(0,i.Z)({square:!0,elevation:0,className:(0,s.default)(p.root,p[y],h,u&&p.alternativeLabel),ref:t},x),w)}),p=(0,a.Z)({root:{display:"flex",padding:24},horizontal:{flexDirection:"row",alignItems:"center"},vertical:{flexDirection:"column"},alternativeLabel:{alignItems:"flex-start"}},{name:"MuiStepper"})(f)},526172:function(e,t,r){"use strict";r.d(t,{Z:function(){return E}});var i=r(625127),o=r(461704),n=r(885115),s=r(852689),a=r(131787),l=r(444144),c=r(626588),u=r(834954),d=r(37678),f=r(154101),p=r(544251),h=r(624794),m=(0,h.Z)(n.createElement("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),_=(0,h.Z)(n.createElement("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),g=(0,h.Z)(n.createElement("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),v=(0,h.Z)(n.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),b=r(909940),y=n.forwardRef(function(e,t){var r=e.classes,a=e.className,l=e.color,c=void 0===l?"standard":l,u=e.component,d=e.disabled,h=void 0!==d&&d,y=e.page,x=e.selected,C=void 0!==x&&x,E=e.shape,w=e.size,O=void 0===w?"medium":w,N=e.type,I=void 0===N?"page":N,S=e.variant,k=void 0===S?"text":S,R=(0,o.Z)(e,["classes","className","color","component","disabled","page","selected","shape","size","type","variant"]),q=("rtl"===(0,f.Z)().direction?{previous:v,next:g,last:m,first:_}:{previous:g,next:v,first:m,last:_})[I];return"start-ellipsis"===I||"end-ellipsis"===I?n.createElement("div",{ref:t,className:(0,s.default)(r.root,r.ellipsis,h&&r.disabled,"medium"!==O&&r["size".concat((0,b.Z)(O))])},"â¦"):n.createElement(p.Z,(0,i.Z)({ref:t,component:u,disabled:h,focusVisibleClassName:r.focusVisible,className:(0,s.default)(r.root,r.page,r[k],r[void 0===E?"round":E],a,"standard"!==c&&r["".concat(k).concat((0,b.Z)(c))],h&&r.disabled,C&&r.selected,"medium"!==O&&r["size".concat((0,b.Z)(O))])},R),"page"===I&&y,q?n.createElement(q,{className:r.icon}):null)}),x=(0,a.Z)(function(e){return{root:(0,i.Z)({},e.typography.body2,{borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:e.palette.text.primary}),page:{transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:e.palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},"&$focusVisible":{backgroundColor:e.palette.action.focus},"&$selected":{backgroundColor:e.palette.action.selected,"&:hover, &$focusVisible":{backgroundColor:(0,d.Fq)(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.palette.action.selected}},"&$disabled":{opacity:1,color:e.palette.action.disabled,backgroundColor:e.palette.action.selected}},"&$disabled":{opacity:e.palette.action.disabledOpacity}},sizeSmall:{minWidth:26,height:26,borderRadius:13,margin:"0 1px",padding:"0 4px","& $icon":{fontSize:e.typography.pxToRem(18)}},sizeLarge:{minWidth:40,height:40,borderRadius:20,padding:"0 10px",fontSize:e.typography.pxToRem(15),"& $icon":{fontSize:e.typography.pxToRem(22)}},textPrimary:{"&$selected":{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover, &$focusVisible":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}},"&$disabled":{color:e.palette.action.disabled}}},textSecondary:{"&$selected":{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover, &$focusVisible":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}},"&$disabled":{color:e.palette.action.disabled}}},outlined:{border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$selected":{"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}}},outlinedPrimary:{"&$selected":{color:e.palette.primary.main,border:"1px solid ".concat((0,d.Fq)(e.palette.primary.main,.5)),backgroundColor:(0,d.Fq)(e.palette.primary.main,e.palette.action.activatedOpacity),"&:hover, &$focusVisible":{backgroundColor:(0,d.Fq)(e.palette.primary.main,e.palette.action.activatedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}},outlinedSecondary:{"&$selected":{color:e.palette.secondary.main,border:"1px solid ".concat((0,d.Fq)(e.palette.secondary.main,.5)),backgroundColor:(0,d.Fq)(e.palette.secondary.main,e.palette.action.activatedOpacity),"&:hover, &$focusVisible":{backgroundColor:(0,d.Fq)(e.palette.secondary.main,e.palette.action.activatedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}},rounded:{borderRadius:e.shape.borderRadius},ellipsis:{height:"auto","&$disabled":{opacity:e.palette.action.disabledOpacity}},focusVisible:{},disabled:{},selected:{},icon:{fontSize:e.typography.pxToRem(20),margin:"0 -8px"}}},{name:"MuiPaginationItem"})(y);function defaultGetAriaLabel(e,t,r){return"page"===e?"".concat(r?"":"Go to ","page ").concat(t):"Go to ".concat(e," page")}
1var C=n.forwardRef(function(e,t){e.boundaryCount;var r=e.classes,a=e.className,d=e.color,f=void 0===d?"standard":d,p=(e.count,e.defaultPage,e.disabled,e.getItemAriaLabel),h=void 0===p?defaultGetAriaLabel:p,m=(e.hideNextButton,e.hidePrevButton,e.onChange,e.page,e.renderItem),_=void 0===m?function(e){return n.createElement(x,e)}:m,g=e.shape,v=void 0===g?"round":g,b=(e.showFirstButton,e.showLastButton,e.siblingCount,e.size),y=void 0===b?"medium":b,C=e.variant,E=void 0===C?"text":C,w=(0,o.Z)(e,["boundaryCount","classes","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"]),O=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.boundaryCount,r=void 0===t?1:t,n=e.componentName,s=e.count,a=void 0===s?1:s,d=e.defaultPage,f=e.disabled,p=void 0!==f&&f,h=e.hideNextButton,m=e.hidePrevButton,_=e.onChange,g=e.page,v=e.showFirstButton,b=e.showLastButton,y=e.siblingCount,x=void 0===y?1:y,C=(0,o.Z)(e,["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"]),E=(0,u.Z)({controlled:g,default:void 0===d?1:d,name:void 0===n?"usePagination":n,state:"page"}),w=(0,c.Z)(E,2),O=w[0],N=w[1],handleClick=function(e,t){g||N(t),_&&_(e,t)},range=function(e,t){return Array.from({length:t-e+1},function(t,r){return e+r})},I=range(1,Math.min(r,a)),S=range(Math.max(a-r+1,r+1),a),k=Math.max(Math.min(O-x,a-r-2*x-1),r+2),R=Math.min(Math.max(O+x,r+2*x+2),S[0]-2),q=[].concat((0,l.Z)(void 0!==v&&v?["first"]:[]),(0,l.Z)(void 0!==m&&m?[]:["previous"]),(0,l.Z)(I),(0,l.Z)(k>r+2?["start-ellipsis"]:r+1<a-r?[r+1]:[]),(0,l.Z)(range(k,R)),(0,l.Z)(R<a-r-1?["end-ellipsis"]:a-r>r?[a-r]:[]),(0,l.Z)(S),(0,l.Z)(void 0!==h&&h?[]:["next"]),(0,l.Z)(void 0!==b&&b?["last"]:[])),buttonPage=function(e){switch(e){case"first":return 1;case"previous":return O-1;case"next":return O+1;case"last":return a;default:return null}},L=q.map(function(e){return"number"==typeof e?{onClick:function(t){handleClick(t,e)},type:"page",page:e,selected:e===O,disabled:p,"aria-current":e===O?"true":void 0}:{onClick:function(t){handleClick(t,buttonPage(e))},type:e,page:buttonPage(e),selected:!1,disabled:p||-1===e.indexOf("ellipsis")&&("next"===e||"last"===e?O>=a:O<=1)}});return(0,i.Z)({items:L},C)}((0,i.Z)({},e,{componentName:"Pagination"})).items;return n.createElement("nav",(0,i.Z)({"aria-label":"pagination navigation",className:(0,s.default)(r.root,a),ref:t},w),n.createElement("ul",{className:r.ul},O.map(function(e,t){return n.createElement("li",{key:t},_((0,i.Z)({},e,{color:f,"aria-label":h(e.type,e.page,e.selected),shape:v,size:y,variant:E})))})))}),E=(0,a.Z)({root:{},ul:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}},{name:"MuiPagination"})(C)},883252:function(e,t,r){"use strict";r.d(t,{SV:function(){return ErrorBoundary}});var i=r(885115);let o=(0,i.createContext)(null),n={didCatch:!1,error:null};let ErrorBoundary=class ErrorBoundary extends i.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=n}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(){let{error:e}=this.state;if(null!==e){for(var t,r,i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];null===(t=(r=this.props).onReset)||void 0===t||t.call(r,{args:o,reason:"imperative-api"}),this.setState(n)}}componentDidCatch(e,t){var r,i;null===(r=(i=this.props).onError)||void 0===r||r.call(i,e,t)}componentDidUpdate(e,t){let{didCatch:r}=this.state,{resetKeys:i}=this.props;if(r&&null!==t.error&&function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.length!==t.length||e.some((e,r)=>!Object.is(e,t[r]))}(e.resetKeys,i)){var o,s;null===(o=(s=this.props).onReset)||void 0===o||o.call(s,{next:i,prev:e.resetKeys,reason:"keys"}),this.setState(n)}}render(){let{children:e,fallbackRender:t,FallbackComponent:r,fallback:n}=this.props,{didCatch:s,error:a}=this.state,l=e;if(s){let e={error:a,resetErrorBoundary:this.resetErrorBoundary};if("function"==typeof t)l=t(e);else if(r)l=(0,i.createElement)(r,e);else if(void 0!==n)l=n;else throw a}return(0,i.createElement)(o.Provider,{value:{didCatch:s,error:a,resetErrorBoundary:this.resetErrorBoundary}},l)}}},485350:function(e,t,r){"use strict";var i=r(13138);t.Z=function(e){(0,i.Z)(function(){return e})}},353013:function(e,t,r){var i=r(112569).Buffer;e.exports=class{constructor(e=100){this.size=e,this.length=0,this.buf=i.alloc(e)}prepend(e){let t=this.length++;t===this.size&&this.resize();let r=this.clone();this.buf[0]=e,r.copy(this.buf,1,0,t)}append(e){let t=this.length++;t===this.size&&this.resize(),this.buf[t]=e}clone(){return i.from(this.buf.slice(0,this.length))}resize(){let e=this.length;this.size=2*this.size;let t=i.alloc(this.size);this.buf.copy(t,0,0,e),this.buf=t}toString(){return this.buf.slice(0,this.length).toString()}toJSON(){return this.toString()}reset(){this.length=0}}},260183:function(e,t,r){var i=r(112569).Buffer;let{Transform:o}=r(574894),n=r(353013),s=i.from([239,187,191]);let Parser=class Parser extends o{constructor(e={}){super({readableObjectMode:!0,...e});let t={};for(let r in e)t[underscore(r)]=e[r];if(void 0===t.bom||null===t.bom||!1===t.bom)t.bom=!1;else if(!0!==t.bom)throw new CsvError("CSV_INVALID_OPTION_BOM",["Invalid option bom:","bom must be true,",`got ${JSON.stringify(t.bom)}`]);let r=null;if(void 0===t.cast||null===t.cast||!1===t.cast||""===t.cast)t.cast=void 0;else if("function"==typeof t.cast)r=t.cast,t.cast=!0;else if(!0!==t.cast)throw new CsvError("CSV_INVALID_OPTION_CAST",["Invalid option cast:","cast must be true or a function,",`got ${JSON.stringify(t.cast)}`]);if(void 0===t.cast_date||null===t.cast_date||!1===t.cast_date||""===t.cast_date)t.cast_date=!1;else if(!0===t.cast_date)t.cast_date=function(e){let t=Date.parse(e);
1return isNaN(t)?e:new Date(t)};else if("function"!=typeof t.cast_date)throw new CsvError("CSV_INVALID_OPTION_CAST_DATE",["Invalid option cast_date:","cast_date must be true or a function,",`got ${JSON.stringify(t.cast_date)}`]);let o=null;if(!0===t.columns)o=void 0;else if("function"==typeof t.columns)o=t.columns,t.columns=!0;else if(Array.isArray(t.columns))t.columns=normalizeColumnsArray(t.columns);else if(void 0===t.columns||null===t.columns||!1===t.columns)t.columns=!1;else throw new CsvError("CSV_INVALID_OPTION_COLUMNS",["Invalid option columns:","expect an object, a function or true,",`got ${JSON.stringify(t.columns)}`]);if(void 0===t.comment||null===t.comment||!1===t.comment||""===t.comment)t.comment=null;else if("string"==typeof t.comment&&(t.comment=i.from(t.comment)),!i.isBuffer(t.comment))throw new CsvError("CSV_INVALID_OPTION_COMMENT",["Invalid option comment:","comment must be a buffer or a string,",`got ${JSON.stringify(t.comment)}`]);if(void 0===t.delimiter||null===t.delimiter||!1===t.delimiter)t.delimiter=i.from(",");else if("string"==typeof t.delimiter&&0!==t.delimiter.length)t.delimiter=i.from(t.delimiter);else if(i.isBuffer(t.delimiter)&&0===t.delimiter.length||"string"==typeof t.delimiter&&0===t.delimiter.length||!i.isBuffer(t.delimiter)&&"string"!=typeof t.delimiter)throw new CsvError("CSV_INVALID_OPTION_DELIMITER",["Invalid option delimiter:","delimiter must be a non empty string or buffer,",`got ${JSON.stringify(t.delimiter)}`]);if(void 0===t.escape||null===t.escape?t.escape=i.from('"'):"string"==typeof t.escape&&(t.escape=i.from(t.escape)),i.isBuffer(t.escape)){if(1!==t.escape.length)throw Error(`Invalid Option Length: escape must be one character, got ${t.escape.length}`);t.escape=t.escape[0]}else throw Error(`Invalid Option: escape must be a buffer or a string, got ${JSON.stringify(t.escape)}`);if(void 0===t.from||null===t.from)t.from=1;else if("string"==typeof t.from&&/\d+/.test(t.from)&&(t.from=parseInt(t.from)),Number.isInteger(t.from)){if(t.from<0)throw Error(`Invalid Option: from must be a positive integer, got ${JSON.stringify(e.from)}`)}else throw Error(`Invalid Option: from must be an integer, got ${JSON.stringify(t.from)}`);if(void 0===t.from_line||null===t.from_line)t.from_line=1;else if("string"==typeof t.from_line&&/\d+/.test(t.from_line)&&(t.from_line=parseInt(t.from_line)),Number.isInteger(t.from_line)){if(t.from_line<=0)throw Error(`Invalid Option: from_line must be a positive integer greater than 0, got ${JSON.stringify(e.from_line)}`)}else throw Error(`Invalid Option: from_line must be an integer, got ${JSON.stringify(e.from_line)}`);if(void 0===t.info||null===t.info||!1===t.info)t.info=!1;else if(!0!==t.info)throw Error(`Invalid Option: info must be true, got ${JSON.stringify(t.info)}`);if(void 0===t.max_record_size||null===t.max_record_size||!1===t.max_record_size)t.max_record_size=0;else if(Number.isInteger(t.max_record_size)&&t.max_record_size>=0);else if("string"==typeof t.max_record_size&&/\d+/.test(t.max_record_size))t.max_record_size=parseInt(t.max_record_size);else throw Error(`Invalid Option: max_record_size must be a positive integer, got ${JSON.stringify(t.max_record_size)}`);if(void 0===t.objname||null===t.objname||!1===t.objname)t.objname=void 0;else if(i.isBuffer(t.objname)){if(0===t.objname.length)throw Error("Invalid Option: objname must be a non empty buffer");t.objname=t.objname.toString()}else if("string"==typeof t.objname){if(0===t.objname.length)throw Error("Invalid Option: objname must be a non empty string")}else throw Error(`Invalid Option: objname must be a string or a buffer, got ${t.objname}`);if(void 0===t.on_record||null===t.on_record)t.on_record=void 0;else if("function"!=typeof t.on_record)throw new CsvError("CSV_INVALID_OPTION_ON_RECORD",["Invalid option `on_record`:","expect a function,",`got ${JSON.stringify(t.on_record)}`]);if(null===t.quote||!1===t.quote||""===t.quote)t.quote=null;else if(void 0===t.quote||!0===t.quote?t.quote=i.from('"'):"string"==typeof t.quote&&(t.quote=i.from(t.quote)),i.isBuffer(t.quote)){if(1!==t.quote.length)throw Error(`Invalid Option Length: quote must be one character, got ${t.quote.length}`);t.quote=t.quote[0]}else throw Error(`Invalid Option: quote must be a buffer or a string, got ${JSON.stringify(t.quote)}`);if(void 0===t.raw||null===t.raw||!1===t.raw)t.raw=!1;else if(!0!==t.raw)throw Error(`Invalid Option: raw must be true, got ${JSON.stringify(t.raw)}`);if(t.record_delimiter?Array.isArray(t.record_delimiter)||(t.record_delimiter=[t.record_delimiter]):t.record_delimiter=[],t.record_delimiter=t.record_delimiter.map(function(e){return"string"==typeof e&&(e=i.from(e)),e}),"boolean"==typeof t.relax);else if(void 0===t.relax||null===t.relax)t.relax=!1;else throw Error(`Invalid Option: relax must be a boolean, got ${JSON.stringify(t.relax)}`);if("boolean"==typeof t.relax_column_count);else if(void 0===t.relax_column_count||null===t.relax_column_count)t.relax_column_count=!1;else throw Error(`Invalid Option: relax_column_count must be a boolean, got ${JSON.stringify(t.relax_column_count)}`);if("boolean"==typeof t.relax_column_count_less);else if(void 0===t.relax_column_count_less||null===t.relax_column_count_less)t.relax_column_count_less=!1;else throw Error(`Invalid Option: relax_column_count_less must be a boolean, got ${JSON.stringify(t.relax_column_count_less)}`);if("boolean"==typeof t.relax_column_count_more);else if(void 0===t.relax_column_count_more||null===t.relax_column_count_more)t.relax_column_count_more=!1;else throw Error(`Invalid Option: relax_column_count_more must be a boolean, got ${JSON.stringify(t.relax_column_count_more)}`);if("boolean"==typeof t.skip_empty_lines);else if(void 0===t.skip_empty_lines||null===t.skip_empty_lines)t.skip_empty_lines=!1;else throw Error(`Invalid Option: skip_empty_lines must be a boolean, got ${JSON.stringify(t.skip_empty_lines)}`);if("boolean"==typeof t.skip_lines_with_empty_values);else if(void 0===t.skip_lines_with_empty_values||null===t.skip_lines_with_empty_values)t.skip_lines_with_empty_values=!1;else throw Error(`Invalid Option: skip_lines_with_empty_values must be a boolean, got ${JSON.stringify(t.skip_lines_with_empty_values)}`);if("boolean"==typeof t.skip_lines_with_error);else if(void 0===t.skip_lines_with_error||null===t.skip_lines_with_error)t.skip_lines_with_error=!1;else throw Error(`Invalid Option: skip_lines_with_error must be a boolean, got ${JSON.stringify(t.skip_lines_with_error)}`);if(void 0===t.rtrim||null===t.rtrim||!1===t.rtrim)t.rtrim=!1;else if(!0!==t.rtrim)throw Error(`Invalid Option: rtrim must be a boolean, got ${JSON.stringify(t.rtrim)}`);
1if(void 0===t.ltrim||null===t.ltrim||!1===t.ltrim)t.ltrim=!1;else if(!0!==t.ltrim)throw Error(`Invalid Option: ltrim must be a boolean, got ${JSON.stringify(t.ltrim)}`);if(void 0===t.trim||null===t.trim||!1===t.trim)t.trim=!1;else if(!0!==t.trim)throw Error(`Invalid Option: trim must be a boolean, got ${JSON.stringify(t.trim)}`);if(!0===t.trim&&!1!==e.ltrim?t.ltrim=!0:!0!==t.ltrim&&(t.ltrim=!1),!0===t.trim&&!1!==e.rtrim?t.rtrim=!0:!0!==t.rtrim&&(t.rtrim=!1),void 0===t.to||null===t.to)t.to=-1;else if("string"==typeof t.to&&/\d+/.test(t.to)&&(t.to=parseInt(t.to)),Number.isInteger(t.to)){if(t.to<=0)throw Error(`Invalid Option: to must be a positive integer greater than 0, got ${JSON.stringify(e.to)}`)}else throw Error(`Invalid Option: to must be an integer, got ${JSON.stringify(e.to)}`);if(void 0===t.to_line||null===t.to_line)t.to_line=-1;else if("string"==typeof t.to_line&&/\d+/.test(t.to_line)&&(t.to_line=parseInt(t.to_line)),Number.isInteger(t.to_line)){if(t.to_line<=0)throw Error(`Invalid Option: to_line must be a positive integer greater than 0, got ${JSON.stringify(e.to_line)}`)}else throw Error(`Invalid Option: to_line must be an integer, got ${JSON.stringify(e.to_line)}`);this.info={comment_lines:0,empty_lines:0,invalid_field_length:0,lines:1,records:0},this.options=t,this.state={bomSkipped:!1,castField:r,commenting:!1,enabled:1===t.from_line,escaping:!1,escapeIsQuote:t.escape===t.quote,expectedRecordLength:null===t.columns?0:t.columns.length,field:new n(20),firstLineToHeaders:o,info:Object.assign({},this.info),previousBuf:void 0,quoting:!1,stop:!1,rawBuffer:new n(100),record:[],recordHasError:!1,record_length:0,recordDelimiterMaxLength:0===t.record_delimiter.length?2:Math.max(...t.record_delimiter.map(e=>e.length)),trimChars:[i.from(" ")[0],i.from(" ")[0]],wasQuoting:!1,wasRowDelimiter:!1}}_transform(e,t,r){if(!0===this.state.stop)return;let i=this.__parse(e,!1);void 0!==i&&(this.state.stop=!0),r(i)}_flush(e){if(!0===this.state.stop)return;let t=this.__parse(void 0,!0);e(t)}__parse(e,t){let r,o;let{bom:n,comment:a,escape:l,from_line:c,info:u,ltrim:d,max_record_size:f,quote:p,raw:h,relax:m,rtrim:_,skip_empty_lines:g,to:v,to_line:b}=this.options,{record_delimiter:y}=this.options,{bomSkipped:x,previousBuf:C,rawBuffer:E,escapeIsQuote:w}=this.state;if(void 0===C){if(void 0===e){this.push(null);return}r=e}else r=void 0!==C&&void 0===e?C:i.concat([C,e]);if(!1===x){if(!1===n)this.state.bomSkipped=!0;else if(r.length<3){if(!1===t){this.state.previousBuf=r;return}}else 0===s.compare(r,0,3)&&(r=r.slice(3)),this.state.bomSkipped=!0}let O=r.length;for(o=0;o<O&&!this.__needMoreData(o,O,t);o++){if(!0===this.state.wasRowDelimiter&&(this.info.lines++,!0===u&&0===this.state.record.length&&0===this.state.field.length&&!1===this.state.wasQuoting&&(this.state.info=Object.assign({},this.info)),this.state.wasRowDelimiter=!1),-1!==b&&this.info.lines>b){this.state.stop=!0,this.push(null);return}if(!1===this.state.quoting&&0===y.length){let e=this.__autoDiscoverRowDelimiter(r,o);e&&(y=this.options.record_delimiter)}let e=r[o];if(!0===h&&E.append(e),(13===e||10===e)&&!1===this.state.wasRowDelimiter&&(this.state.wasRowDelimiter=!0),!0===this.state.escaping)this.state.escaping=!1;else{if(!0===this.state.quoting&&e===l&&o+1<O){if(w){if(r[o+1]===p){this.state.escaping=!0;continue}}else{this.state.escaping=!0;continue}}if(!1===this.state.commenting&&e===p){if(!0===this.state.quoting){let t=r[o+1],i=_&&this.__isCharTrimable(t),n=null!==a&&this.__compareBytes(a,r,o+1,t),s=this.__isDelimiter(t,r,o+1),c=0===y.length?this.__autoDiscoverRowDelimiter(r,o+1):this.__isRecordDelimiter(t,r,o+1);if(e===l&&t===p)o++;else if(!t||s||c||n||i){this.state.quoting=!1,this.state.wasQuoting=!0;continue}else if(!1===m){let e=this.__error(new CsvError("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(t)}"`,`at line ${this.info.lines}`,"instead of delimiter, row delimiter, trimable character","(if activated) or comment"],this.__context()));if(void 0!==e)return e}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(p)}else if(0!==this.state.field.length){if(!1===m){let e=this.__error(new CsvError("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found inside a field at line ${this.info.lines}`],this.__context(),{field:this.state.field}));if(void 0!==e)return e}}else{this.state.quoting=!0;continue}}if(!1===this.state.quoting){let t=this.__isRecordDelimiter(e,r,o);if(0!==t){let e=this.state.commenting&&!1===this.state.wasQuoting&&0===this.state.record.length&&0===this.state.field.length;if(e)this.info.comment_lines++;else{if(!0===g&&!1===this.state.wasQuoting&&0===this.state.record.length&&0===this.state.field.length){this.info.empty_lines++,o+=t-1;continue}if(!1===this.state.enabled&&this.info.lines+(!0===this.state.wasRowDelimiter?1:0)>=c){this.state.enabled=!0,this.__resetField(),this.__resetRow(),o+=t-1;continue}{let e=this.__onField();if(void 0!==e)return e;let t=this.__onRow();if(void 0!==t)return t}if(-1!==v&&this.info.records>=v){this.state.stop=!0,this.push(null);return}}this.state.commenting=!1,o+=t-1;continue}if(this.state.commenting)continue;let i=null===a?0:this.__compareBytes(a,r,o,e);if(0!==i){this.state.commenting=!0;continue}let n=this.__isDelimiter(e,r,o);if(0!==n){let e=this.__onField();if(void 0!==e)return e;o+=n-1;continue}}}if(!1===this.state.commenting&&0!==f&&this.state.record_length+this.state.field.length>f){let e=this.__error(new CsvError("CSV_MAX_RECORD_SIZE",["Max Record Size:","re
1cord exceed the maximum number of tolerated bytes",`of ${f}`,`at line ${this.info.lines}`],this.__context()));if(void 0!==e)return e}let t=!1===d||!0===this.state.quoting||0!==this.state.field.length||!this.__isCharTrimable(e),i=!1===_||!1===this.state.wasQuoting;if(!0===t&&!0===i)this.state.field.append(e);else if(!0===_&&!this.__isCharTrimable(e)){let e=this.__error(new CsvError("CSV_NON_TRIMABLE_CHAR_AFTER_CLOSING_QUOTE",["Invalid Closing Quote:","found non trimable byte after quote",`at line ${this.info.lines}`],this.__context()));if(void 0!==e)return e}}if(!0===t){if(!0===this.state.quoting){let e=this.__error(new CsvError("CSV_QUOTE_NOT_CLOSED",["Quote Not Closed:",`the parsing is finished with an opening quote at line ${this.info.lines}`],this.__context()));if(void 0!==e)return e}else if(!0===this.state.wasQuoting||0!==this.state.record.length||0!==this.state.field.length){let e=this.__onField();if(void 0!==e)return e;let t=this.__onRow();if(void 0!==t)return t}else!0===this.state.wasRowDelimiter?this.info.empty_lines++:!0===this.state.commenting&&this.info.comment_lines++}else this.state.previousBuf=r.slice(o);!0===this.state.wasRowDelimiter&&(this.info.lines++,this.state.wasRowDelimiter=!1)}__isCharTrimable(e){return 32===e||9===e||13===e||10===e}__onRow(){let{columns:e,info:t,from:r,relax_column_count:i,relax_column_count_less:o,relax_column_count_more:n,raw:s,skip_lines_with_empty_values:a}=this.options,{enabled:l,record:c}=this.state;if(!1===l)return this.__resetRow();let u=c.length;if(!0===e){if(isRecordEmpty(c)){this.__resetRow();return}return this.__firstLineToColumns(c)}if(!1===e&&0===this.info.records&&(this.state.expectedRecordLength=u),u!==this.state.expectedRecordLength){if(!0===i||!0===o&&u<this.state.expectedRecordLength||!0===n&&u>this.state.expectedRecordLength)this.info.invalid_field_length++;else if(!1===e){let e=this.__error(new CsvError("CSV_INCONSISTENT_RECORD_LENGTH",["Invalid Record Length:",`expect ${this.state.expectedRecordLength},`,`got ${u} on line ${this.info.lines}`],this.__context(),{record:c}));if(void 0!==e)return e}else{let t=this.__error(new CsvError("CSV_RECORD_DONT_MATCH_COLUMNS_LENGTH",["Invalid Record Length:",`columns length is ${e.length},`,`got ${u} on line ${this.info.lines}`],this.__context(),{record:c}));if(void 0!==t)return t}}if(!0===a&&isRecordEmpty(c)){this.__resetRow();return}if(!0===this.state.recordHasError){this.__resetRow(),this.state.recordHasError=!1;return}if(this.info.records++,1===r||this.info.records>=r){if(!1!==e){let r={};for(let t in c)void 0===e[t]||e[t].disabled||(r[e[t].name]=c[t]);let{objname:i}=this.options;void 0===i?!0===s||!0===t?this.__push(Object.assign({record:r},!0===s?{raw:this.state.rawBuffer.toString()}:{},!0===t?{info:this.state.info}:{})):this.__push(r):!0===s||!0===t?this.__push(Object.assign({record:[r[i],r]},!0===s?{raw:this.state.rawBuffer.toString()}:{},!0===t?{info:this.state.info}:{})):this.__push([r[i],r])}else!0===s||!0===t?this.__push(Object.assign({record:c},!0===s?{raw:this.state.rawBuffer.toString()}:{},!0===t?{info:this.state.info}:{})):this.__push(c)}this.__resetRow()}__firstLineToColumns(e){let{firstLineToHeaders:t}=this.state;try{let r=void 0===t?e:t.call(null,e);if(!Array.isArray(r))return this.__error(new CsvError("CSV_INVALID_COLUMN_MAPPING",["Invalid Column Mapping:","expect an array from column function,",`got ${JSON.stringify(r)}`],this.__context(),{headers:r}));let i=normalizeColumnsArray(r);this.state.expectedRecordLength=i.length,this.options.columns=i,this.__resetRow();return}catch(e){return e}}__resetRow(){!0===this.options.raw&&this.state.rawBuffer.reset(),this.state.record=[],this.state.record_length=0}__onField(){let{cast:e,rtrim:t,max_record_size:r}=this.options,{enabled:i,wasQuoting:o}=this.state;if(!1===i)return this.__resetField();let n=this.state.field.toString();if(!0===t&&!1===o&&(n=n.trimRight()),!0===e){let[e,t]=this.__cast(n);if(void 0!==e)return e;n=t}this.state.record.push(n),0!==r&&"string"==typeof n&&(this.state.record_length+=n.length),this.__resetField()}__resetField(){this.state.field.reset(),this.state.wasQuoting=!1}__push(e){let{on_record:t}=this.options;if(void 0!==t){let r=this.__context();if(null==(e=t.call(null,e,r)))return}this.push(e)}
1__cast(e){let{columns:t,relax_column_count:r}=this.options,i=Array.isArray(t);if(!0===i&&r&&this.options.columns.length<=this.state.record.length)return[void 0,void 0];let o=this.__context();if(null!==this.state.castField)try{return[void 0,this.state.castField.call(null,e,o)]}catch(e){return[e]}return this.__isFloat(e)?[void 0,parseFloat(e)]:!1!==this.options.cast_date?[void 0,this.options.cast_date.call(null,e,o)]:[void 0,e]}__isFloat(e){return e-parseFloat(e)+1>=0}__compareBytes(e,t,r,i){if(e[0]!==i)return 0;let o=e.length;for(let i=1;i<o;i++)if(e[i]!==t[r+i])return 0;return o}__needMoreData(e,t,r){if(r)return!1;let{comment:i,delimiter:o}=this.options,{quoting:n,recordDelimiterMaxLength:s}=this.state,a=Math.max(i?i.length:0,s,n?1+s:0,o.length,1);return t-e-1<a}__isDelimiter(e,t,r){let{delimiter:i}=this.options,o=i.length;if(i[0]!==e)return 0;for(let e=1;e<o;e++)if(i[e]!==t[r+e])return 0;return i.length}__isRecordDelimiter(e,t,r){let{record_delimiter:i}=this.options,o=i.length;e:for(let n=0;n<o;n++){let o=i[n],s=o.length;if(o[0]===e){for(let e=1;e<s;e++)if(o[e]!==t[r+e])continue e;return o.length}}return 0}__autoDiscoverRowDelimiter(e,t){let r=e[t];return 13===r?10===e[t+1]?(this.options.record_delimiter.push(i.from("\r\n")),this.state.recordDelimiterMaxLength=2,2):(this.options.record_delimiter.push(i.from("\r")),this.state.recordDelimiterMaxLength=1,1):10===r?(this.options.record_delimiter.push(i.from("\n")),this.state.recordDelimiterMaxLength=1,1):0}__error(e){let{skip_lines_with_error:t}=this.options,r="string"==typeof e?Error(e):e;if(!t)return r;this.state.recordHasError=!0,this.emit("skip",r)}__context(){let{columns:e}=this.options,t=Array.isArray(e);return{column:!0===t?e.length>this.state.record.length?e[this.state.record.length].name:null:this.state.record.length,empty_lines:this.info.empty_lines,header:!0===e,index:this.state.record.length,invalid_field_length:this.info.invalid_field_length,quoting:this.state.wasQuoting,lines:this.info.lines,records:this.info.records}}};let parse=function(){let e,t,r;for(let o in arguments){let n=arguments[o],s=typeof n;if(void 0===e&&("string"==typeof n||i.isBuffer(n)))e=n;else if(void 0===t&&isObject(n))t=n;else if(void 0===r&&"function"===s)r=n;else throw new CsvError("CSV_INVALID_ARGUMENT",["Invalid argument:",`got ${JSON.stringify(n)} at index ${o}`])}let o=new Parser(t);if(r){let e=void 0===t||void 0===t.objname?[]:{};o.on("readable",function(){let r;for(;null!==(r=this.read());)void 0===t||void 0===t.objname?e.push(r):e[r[0]]=r[1]}),o.on("error",function(e){r(e,void 0,o.info)}),o.on("end",function(){r(void 0,e,o.info)})}return void 0!==e&&(o.write(e),o.end()),o};let CsvError=class CsvError extends Error{constructor(e,t,...r){for(let o of(Array.isArray(t)&&(t=t.join(" ")),super(t),Error.captureStackTrace(this,CsvError),this.code=e,r))for(let e in o){let t=o[e];this[e]=i.isBuffer(t)?t.toString():null==t?t:JSON.parse(JSON.stringify(t))}}};parse.Parser=Parser,parse.CsvError=CsvError,e.exports=parse;let underscore=function(e){return e.replace(/([A-Z])/g,function(e,t){return"_"+t.toLowerCase()})},isObject=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)},isRecordEmpty=function(e){return e.every(e=>null==e||e.toString&&""===e.toString().trim())},normalizeColumnsArray=function(e){let t=[];for(let r=0;r<e.length;r++){let i=e[r];if(null==i||!1===i)t[r]={disabled:!0};else if("string"==typeof i)t[r]={name:i};else if(isObject(i)){if("string"!=typeof i.name)throw new CsvError("CSV_OPTION_COLUMNS_MISSING_NAME",["Option columns missing name:",`property "name" is required at position ${r}`,"when column is an object literal"]);t[r]=i}else throw new CsvError("CSV_INVALID_COLUMN_DEFINITION",["Invalid column definition:","expect a string or a literal object,",`got ${JSON.stringify(i)} at position ${r}`])}return t}},658877:function(e,t,r){var i=r(112569).Buffer;let o=r(260183);e.exports=function(e,t={}){"string"==typeof e&&(e=i.from(e));let r=t&&t.objname?{}:[],n=new o.Parser(t);n.push=function(e){void 0===t.objname?r.push(e):r[e[0]]=e[1]};let s=n.__parse(e,!1);if(void 0!==s)throw s;let a=n.__parse(void 0,!0);if(void 0!==a)throw a;return r}},286536:function(e){"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var r,i="boolean"==typeof t.cycles&&t.cycles,o=t.cmp&&(r=t.cmp,function(e){return function(t,i){return r({key:t,value:e[t]},{key:i,value:e[i]})}}),n=[];return function stringify(e){if(e&&e.toJSON&&"function"==typeof e.toJSON&&(e=e.toJSON()),void 0!==e){if("number"==typeof e)return isFinite(e)?""+e:"null";if("object"!=typeof e)return JSON.stringify(e);if(Array.isArray(e)){for(t=0,r="[";t<e.length;t++)t&&(r+=","),r+=stringify(e[t])||"null";return r+"]"}if(null===e)return"null";if(-1!==n.indexOf(e)){if(i)return JSON.stringify("__cycle__");throw TypeError("Converting circular structure to JSON")}var t,r,s=n.push(e)-1,a=Object.keys(e).sort(o&&o(e));for(t=0,r="";t<a.length;t++){var l=a[t],c=stringify(e[l]);c&&(r&&(r+=","),r+=JSON.stringify(l)+":"+c)}return n.splice(s,1),"{"+r+"}"}}(e)}},576384:function(e,t){!function(e){"use strict";function promisifyRequest(e){return new Promise(function(t,r){e.onsuccess=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function promisifyRequestCall(e,t,r){var i,o=new Promise(function(o,n){promisifyRequest(i=e[t].apply(e,r)).then(o,n)});return o.request=i,o}function proxyProperties(e,t,r){r.forEach(function(r){Object.defineProperty(e.prototype,r,{get:function(){return this[t][r]},set:function(e){this[t][r]=e}})})}
1function proxyRequestMethods(e,t,r,i){i.forEach(function(i){i in r.prototype&&(e.prototype[i]=function(){return promisifyRequestCall(this[t],i,arguments)})})}function proxyMethods(e,t,r,i){i.forEach(function(i){i in r.prototype&&(e.prototype[i]=function(){return this[t][i].apply(this[t],arguments)})})}function proxyCursorRequestMethods(e,t,r,i){i.forEach(function(i){i in r.prototype&&(e.prototype[i]=function(){var e,r,o;return e=this[t],r=arguments,(o=promisifyRequestCall(e,i,r)).then(function(e){if(e)return new Cursor(e,o.request)})})})}function Index(e){this._index=e}function Cursor(e,t){this._cursor=e,this._request=t}function ObjectStore(e){this._store=e}function Transaction(e){this._tx=e,this.complete=new Promise(function(t,r){e.oncomplete=function(){t()},e.onerror=function(){r(e.error)},e.onabort=function(){r(e.error)}})}function UpgradeDB(e,t,r){this._db=e,this.oldVersion=t,this.transaction=new Transaction(r)}function DB(e){this._db=e}proxyProperties(Index,"_index",["name","keyPath","multiEntry","unique"]),proxyRequestMethods(Index,"_index",IDBIndex,["get","getKey","getAll","getAllKeys","count"]),proxyCursorRequestMethods(Index,"_index",IDBIndex,["openCursor","o
1penKeyCursor"]),proxyProperties(Cursor,"_cursor",["direction","key","primaryKey","value"]),proxyRequestMethods(Cursor,"_cursor",IDBCursor,["update","delete"]),["advance","continue","continuePrimaryKey"].forEach(function(e){e in IDBCursor.prototype&&(Cursor.prototype[e]=function(){var t=this,r=arguments;return Promise.resolve().then(function(){return t._cursor[e].apply(t._cursor,r),promisifyRequest(t._request).then(function(e){if(e)return new Cursor(e,t._request)})})})}),ObjectStore.prototype.createIndex=function(){return new Index(this._store.createIndex.apply(this._store,arguments))},ObjectStore.prototype.index=function(){return new Index(this._store.index.apply(this._store,arguments))},proxyProperties(ObjectStore,"_store",["name","keyPath","indexNames","autoIncrement"]),proxyRequestMethods(ObjectStore,"_store",IDBObjectStore,["put","add","delete","clear","get","getAll","getKey","getAllKeys","count"]),proxyCursorRequestMethods(ObjectStore,"_store",IDBObjectStore,["openCursor","openKeyCursor"]),proxyMethods(ObjectStore,"_store",IDBObjectStore,["deleteIndex"]),Transaction.prototype.objectStore=function(){return new ObjectStore(this._tx.objectStore.apply(this._tx,arguments))},proxyProperties(Transaction,"_tx",["objectStoreNames","mode"]),proxyMethods(Transaction,"_tx",IDBTransaction,["abort"]),UpgradeDB.prototype.createObjectStore=function(){return new ObjectStore(this._db.createObjectStore.apply(this._db,arguments))},proxyProperties(UpgradeDB,"_db",["name","version","objectStoreNames"]),proxyMethods(UpgradeDB,"_db",IDBDatabase,["deleteObjectStore","close"]),DB.prototype.transaction=function(){return new Transaction(this._db.transaction.apply(this._db,arguments))},proxyProperties(DB,"_db",["name","version","objectStoreNames"]),proxyMethods(DB,"_db",IDBDatabase,["close"]),["openCursor","o
1penKeyCursor"].forEach(function(e){[ObjectStore,Index].forEach(function(t){e in t.prototype&&(t.prototype[e.replace("open","iterate")]=function(){var t,r=(t=arguments,Array.prototype.slice.call(t)),i=r[r.length-1],o=this._store||this._index,n=o[e].apply(o,r.slice(0,-1));n.onsuccess=function(){i(n.result)}})})}),[Index,ObjectStore].forEach(function(e){e.prototype.getAll||(e.prototype.getAll=function(e,t){var r=this,i=[];return new Promise(function(o){r.iterateCursor(e,function(e){if(!e||(i.push(e.value),void 0!==t&&i.length==t)){o(i);return}e.continue()})})})}),e.openDb=function(e,t,r){var i=promisifyRequestCall(indexedDB,"open",[e,t]),o=i.request;return o&&(o.onupgradeneeded=function(e){r&&r(new UpgradeDB(o.result,e.oldVersion,o.transaction))}),i.then(function(e){return new DB(e)})},e.deleteDb=function(e){return promisifyRequestCall(indexedDB,"deleteDatabase",[e])},Object.defineProperty(e,"__esModule",{value:!0})}(t)},582891:function(e,t,r){"use strict";r.d(t,{z$:function(){return N},ck:function(){return O},fC:function(){return w},hm:function(){return m}});var i=r(885115),o=r(121211),n=r(236833),s=r(159004),a=r(683239),l=r(226055),c=r(31635),u=c.WV;u.dispatchDiscreteCustomEvent=c.jH,u.Root=c.WV;var d=r(392478);let{useDirection:f}=o,p="CheckboxGroup",[h,m]=s.b(p,[a.Pc,n.Ed]),_=a.Pc(),g=n.Ed(),[v,b]=h(p),y=i.forwardRef((e,t)=>{let{__scopeCheckboxGroup:r,name:o,defaultValue:n,value:s,required:c=!1,disabled:d=!1,orientation:p,dir:h,loop:m=!0,onValueChange:g,...b}=e,y=_(r),x=f(h),[C=[],E]=(0,l.T)({prop:s,defaultProp:n,onChange:g}),w=i.useCallback(e=>E((t=[])=>[...t,e]),[E]),O=i.useCallback(e=>E((t=[])=>t.filter(t=>t!==e)),[E]);return i.createElement(v,{scope:r,name:o,required:c,disabled:d,value:C,onItemCheck:w,onItemUncheck:O},i.createElement(a.fC,{asChild:!0,...y,orientation:p,dir:x,loop:m},i.createElement(u.div,{role:"group","data-disabled":d?"":void 0,dir:x,...b,ref:t})))});y.displayName=p;let x="CheckboxGroupItem",C=i.forwardRef((e,t)=>{let{__scopeCheckboxGroup:r,disabled:o,...s}=e,l=b(x,r),c=l.disabled||o,u=_(r),f=g(r),p=i.useRef(null),h=(0,d.e)(t,p),m=l.value?.includes(s.value);return i.createElement(a.ck,{asChild:!0,...u,focusable:!c,active:m},i.createElement(n.fC,{name:l.name,disabled:c,required:l.required,checked:m,...f,...s,ref:h,onCheckedChange:t=>{t?l.onItemCheck(e.value):l.onItemUncheck(e.value)}}))});C.displayName=x;let E=i.forwardRef((e,t)=>{let{__scopeCheckboxGroup:r,...o}=e,s=g(r);return i.createElement(n.z$,{...s,...o,ref:t})});E.displayName="CheckboxGroupIndicator";let w=y,O=C,N=E},287923:function(e,t,r){"use strict";r.r(t),r.d(t,{Item:function(){return N},Root:function(){return O}});var i=r(885115),o=r(399947),n=r(159004),s=r(582891),a=r(95034),l=r(67587),c=r(25050),u=r(914265);let d={...a.C,size:{type:"enum",className:"rt-r-size",values:["1","2","3"],default:"2",responsive:!0},variant:{type:"enum",className:"rt-variant",values:["surface","classic"],default:"surface"},...l.EG,...c.K,columns:{...u.L.columns,default:"repeat(auto-fit, minmax(200px, 1fr))"},gap:{...u.L.gap,default:"4"}};var f=r(35817),p=r(928811),h=r(638830),m=r(812734),_=r(455575);let g="CheckboxCards",[v]=n.b(g,[s.hm]),b=(0,s.hm)(),[y,x]=v(g),C=i.forwardRef((e,t)=>{let{__scopeCheckboxCards:r,className:n,color:a,...l}=(0,m.y)(e,d,_.E),c=b(r);return i.createElement(y,{scope:r,size:e.size,highContrast:e.highContrast},i.createElement(p.r,{asChild:!0},i.createElement(s.fC,{...c,"data-accent-color":a,...l,ref:t,className:o("rt-CheckboxCardsRoot",n)})))});C.displayName="CheckboxCards.Root";let E=i.forwardRef(({__scopeCheckboxCards:e,children:t,className:r,style:n,...a},l)=>{let c=x("CheckboxCardsItem",e),u=b(e),{className:d}=(0,m.y)({size:c?.size,variant:"surface",highContrast:c?.highContrast},f.m);return i.createElement("label",{className:o("rt-BaseCard","rt-CheckboxCardsItem",r),style:n},t,i.createElement(s.ck,{...u,...a,ref:l,className:o("rt-reset","rt-BaseCheckboxRoot","rt-CheckboxCardCheckbox",d)},i.createElement(s.z$,{...u,asChild:!0,className:"rt-BaseCheckboxIndicator"},i.createElement(h.dc,null))))});E.displayName="CheckboxCards.Item";var w=r(684549);let O=(0,w.b)(C),N=E},157298:function(e,t,r){"use strict";r.r(t),r.d(t,{Item:function(){return O},Root:function(){return w}});var i=r(684549),o=r(667488),n=r(885115),s=r(661869),a=r(159004),l=r(95034),c=r(35817);let u={...l.C,...c.m};var d=r(455575),f=r(812734),p=r(582891),h=r(638830),m=r(727599);let _="CheckboxGroup",[g]=(0,a.b)(_,[p.hm]),v=(0,p.hm)(),[b,y]=g(_),x=n.forwardRef(({color:e=u.color.default,highContrast:t=u.highContrast.default,size:r=u.size.default,variant:i=u.variant.default,...n},a)=>{let{__scopeCheckboxGroup:l,className:c,...h}=(0,f.y)(n,d.E),m=v(l);return(0,o.jsx)(b,{scope:l,color:e,size:r,highContrast:t,variant:i,children:(0,o.jsx)(p.fC,{...m,...h,ref:a,className:s("rt-CheckboxGroupRoot",c)})})});x.displayName="CheckboxGroup.Root";let C=n.forwardRef((e,t)=>
1{let{__scopeCheckboxGroup:r,children:i,className:n,style:a,...l}=e,{size:c}=y("CheckboxGroupItem",r);return i?(0,o.jsxs)(m.xv,{as:"label",size:c,className:s("rt-CheckboxGroupItem",n),style:a,children:[(0,o.jsx)(E,{__scopeCheckboxGroup:r,...l,ref:t}),i&&(0,o.jsx)("span",{className:"rt-CheckboxGroupItemInner",children:i})]}):(0,o.jsx)(E,{__scopeCheckboxGroup:r,...l,ref:t,className:n,style:a})});C.displayName="CheckboxGroup.Item";let E=n.forwardRef(({__scopeCheckboxGroup:e,...t},r)=>{let i=y("CheckboxGroupItemCheckbox",e),n=v(e),{color:a,className:l}=(0,f.y)({...t,...i},u,d.E);return(0,o.jsx)(p.ck,{...n,"data-accent-color":a,...t,ref:r,className:s("rt-reset","rt-BaseCheckboxRoot","rt-CheckboxGroupItemCheckbox",l),children:(0,o.jsx)(p.z$,{...n,asChild:!0,className:"rt-BaseCheckboxIndicator",children:(0,o.jsx)(h.dc,{})})})});E.displayName="CheckboxGroup.ItemCheckbox";let w=(0,i.b)(x),O=(0,i.b)(C)},989343:function(e,t,r){"use strict";r.d(t,{P:function(){return stringify}});let i=/\\(\\)?/g,o=RegExp("[^.[\\]]+|\\[(?:([^\"'][^[]*)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))","g"),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/,isSymbol=function(e){let t=typeof e;return"symbol"===t||"object"===t&&e&&"[object Symbol]"===Object.prototype.toString.call(e)},isKey=function(e,t){if(Array.isArray(e))return!1;let r=typeof e;return!!("number"===r||"symbol"===r||"boolean"===r||!e||isSymbol(e))||s.test(e)||!n.test(e)||null!=t&&e in Object(t)},stringToPath=function(e){let t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,function(e,r,o,n){let s=e;o?s=n.replace(i,"$1"):r&&(s=r.trim()),t.push(s)}),t},toKey=function(e){if("string"==typeof e||isSymbol(e))return e;let t=`${e}`;return"0"==t&&1/e==-INFINITY?"-0":t},get=function(e,t){var r,i;r=t,i=e,t=Array.isArray(r)?r:isKey(r,i)?[r]:stringToPath(r);let o=0,n=t.length;for(;null!=e&&o<n;)e=e[toKey(t[o++])];return o&&o===n?e:void 0},normalize_columns=function(e){if(null==e)return[void 0,void 0];if("object"!=typeof e)return[Error('Invalid option "columns": expect an array or an object')];if(Array.isArray(e)){let t=[];for(let r of e)if("string"==typeof r)t.push({key:r,header:r});else{if("object"!=typeof r||null===r||Array.isArray(r))return[Error("Invalid column definition: expect a string or an object")];if(!r.key)return[Error('Invalid column definition: property "key" is required')];void 0===r.header&&(r.header=r.key),t.push(r)}e=t}else{let t=[];for(let r in e)t.push({key:r,header:e[r]});e=t}return[void 0,e]};var a=r(112569).Buffer;let CsvError=class CsvError extends Error{constructor(e,t,...r){for(let i of(Array.isArray(t)&&(t=t.join(" ")),super(t),void 0!==Error.captureStackTrace&&Error.captureStackTrace(this,CsvError),this.code=e,r))for(let e in i){let t=i[e];this[e]=a.isBuffer(t)?t.toString():null==t?t:JSON.parse(JSON.stringify(t))}}};var l=r(112569).Buffer;let normalize_options=function(e){let t={};for(let r in e)t[r.replace(/([A-Z])/g,function(e,t){return"_"+t.toLowerCase()})]=e[r];if(void 0===t.bom||null===t.bom||!1===t.bom)t.bom=!1;else if(!0!==t.bom)return[new CsvError("CSV_OPTION_BOOLEAN_INVALID_TYPE",["option `bom` is optional and must be a boolean value,",`got ${JSON.stringify(t.bom)}`])];if(void 0===t.delimiter||null===t.delimiter)t.delimiter=",";else if(l.isBuffer(t.delimiter))t.delimiter=t.delimiter.toString();else if("string"!=typeof t.delimiter)return[new CsvError("CSV_OPTION_DELIMITER_INVALID_TYPE",["option `delimiter` must be a buffer or a string,",`got ${JSON.stringify(t.delimiter)}`])];if(void 0===t.quote||null===t.quote)t.quote='"';else if(!0===t.quote)t.quote='"';else if(!1===t.quote)t.quote="";else if(l.isBuffer(t.quote))t.quote=t.quote.toString();else if("string"!=typeof t.quote)return[new CsvError("CSV_OPTION_QUOTE_INVALID_TYPE",["option `quote` must be a boolean, a buffer or a string,",`got ${JSON.stringify(t.quote)}`])];if((void 0===t.quoted||null===t.quoted)&&(t.quoted=!1),void 0===t.escape_formulas||null===t.escape_formulas)t.escape_formulas=!1;else if("boolean"!=typeof t.escape_formulas)return[new CsvError("CSV_OPTION_ESCAPE_FORMULAS_INVALID_TYPE",["option `escape_formulas` must be a boolean,",`got ${JSON.stringify(t.escape_formulas)}`])];if((void 0===t.quoted_empty||null===t.quoted_empty)&&(t.quoted_empty=void 0),void 0===t.quoted_match||null===t.quoted_match||!1===t.quoted_match?t.quoted_match=null:Array.isArray(t.quoted_match)||(t.quoted_match=[t.quoted_match]),t.quoted_match)for(let e of t.quoted_match){let t="string"==typeof e,r=e instanceof RegExp;if(!t&&!r)return[Error(`Invalid Option: quoted_match must be a string or a regex, got ${JSON.stringify(e)}`)]}if((void 0===t.quoted_string||null===t.quoted_string)&&(t.quoted_string=!1),(void 0===t.eof||null===t.eof)&&(t.eof=!0),void 0===t.escape||null===t.escape)t.escape='"';else if(l.isBuffer(t.escape))t.escape=t.escape.toString();else if("string"!=typeof t.escape)return[Error(`Invalid Option: escape must be a buffer or a string, got ${JSON.stringify(t.escape)}`)];if(t.escape.length>1)return[Error(`Invalid Option: escape must be one character, got ${t.escape.length} characters`)];(void 0===t.header||null===t.header)&&(t.header=!1);let[r,i]=normalize_columns(t.columns);if(void 0!==r)return[r];if(t.columns=i,(void 0===t.quoted||null===t.quoted)&&(t.quoted=!1),(void 0===t.cast||null===t.cast)&&(t.cast={}),(void 0===t.cast.bigint||null===t.cast.bigint)&&(t.cast.bigint=e=>
1""+e),(void 0===t.cast.boolean||null===t.cast.boolean)&&(t.cast.boolean=e=>e?"1":""),(void 0===t.cast.date||null===t.cast.date)&&(t.cast.date=e=>""+e.getTime()),(void 0===t.cast.number||null===t.cast.number)&&(t.cast.number=e=>""+e),(void 0===t.cast.object||null===t.cast.object)&&(t.cast.object=e=>JSON.stringify(e)),(void 0===t.cast.string||null===t.cast.string)&&(t.cast.string=function(e){return e}),void 0!==t.on_record&&"function"!=typeof t.on_record)return[Error('Invalid Option: "on_record" must be a function.')];if(void 0===t.record_delimiter||null===t.record_delimiter)t.record_delimiter="\n";else if(l.isBuffer(t.record_delimiter))t.record_delimiter=t.record_delimiter.toString();else if("string"!=typeof t.record_delimiter)return[Error(`Invalid Option: record_delimiter must be a buffer or a string, got ${JSON.stringify(t.record_delimiter)}`)];switch(t.record_delimiter){case"unix":t.record_delimiter="\n";break;case"mac":t.record_delimiter="\r";break;case"windows":t.record_delimiter="\r\n";break;case"ascii":t.record_delimiter="\x1e";break;case"unicode":t.record_delimiter="\u2028"}return[void 0,t]};var c=r(112569).Buffer;let u=c.from([239,187,191]),stringify=function(e,t={}){let r=[],[i,o]=normalize_options(t);if(void 0!==i)throw i;let n={options:o,state:{stop:!1},info:{records:0},__transform:function(e,t){let r,i;if(!Array.isArray(e)&&"object"!=typeof e)return Error(`Invalid Record: expect an array or an object, got ${JSON.stringify(e)}`);if(0===this.info.records){if(Array.isArray(e)){if(!0===this.options.header&&void 0===this.options.columns)return Error("Undiscoverable Columns: header option requires column option or object records")}else if(void 0===this.options.columns){let[t,r]=normalize_columns(Object.keys(e));if(t)return;this.options.columns=r}}if(0===this.info.records){this.bom(t);let e=this.headers(t);if(e)return e}try{this.options.on_record&&this.options.on_record(e,this.info.records)}catch(e){return e}if(this.options.eof){if([r,i]=this.stringify(e),r)return r;if(void 0===i)return;i+=this.options.record_delimiter}else{if([r,i]=this.stringify(e),r)return r;if(void 0===i)return;(this.options.header||this.info.records)&&(i=this.options.record_delimiter+i)}this.info.records++,t(i)},stringify:function(e,t=!1){if("object"!=typeof e)return[void 0,e];let{columns:r}=this.options,i=[];if(Array.isArray(e)){r&&e.splice(r.length);for(let r=0;r<e.length;r++){let o=e[r],[n,s]=this.__cast(o,{index:r,column:r,records:this.info.records,header:t});if(n)return[n];i[r]=[s,o]}}else for(let o=0;o<r.length;o++){let n=get(e,r[o].key),[s,a]=this.__cast(n,{index:o,column:r[o].key,records:this.info.records,header:t});if(s)return[s];i[o]=[a,n]}let o="";for(let e=0;e<i.length;e++){let t,r;let[s,a]=i[e];if("string"==typeof s)t=this.options;else{var n;if("object"!=typeof(n=s)||null===n||Array.isArray(n)){if(null!=s)return[Error(`Invalid Casting Value: returned value must return a string, an object, null or undefined, got ${JSON.stringify(s)}`)];t=this.options}else{if(s=(t=s).value,delete t.value,"string"!=typeof s&&null!=s&&r)return[Error(`Invalid Casting Value: returned value must return a string, null or undefined, got ${JSON.stringify(s)}`)];if(t={...this.options,...t},[r,t]=normalize_options(t),void 0!==r)return[r]}}let{delimiter:l,escape:c,quote:u,quoted:d,quoted_empty:f,quoted_string:p,quoted_match:h,record_delimiter:m,escape_formulas:_}=t;if(""===s&&""===a){let e=h&&h.filter(e=>"string"==typeof e?-1!==s.indexOf(e):e.test(s));e=e&&e.length>0;let t=e||!0===f||!0===p&&!1!==f;!0===t&&(s=u+s+u),o+=s}else if(s){if("string"!=typeof s)return[Error(`Formatter must return a string, null or undefined, got ${JSON.stringify(s)}`)];let e=l.length&&s.indexOf(l)>=0,t=""!==u&&s.indexOf(u)>=0,r=s.indexOf(c)>=0&&c!==u,i=s.indexOf(m)>=0,n=p&&"string"==typeof a,f=h&&h.filter(e=>"string"==typeof e?-1!==s.indexOf(e):e.test(s));if(f=f&&f.length>0,_)switch(s[0]){case"=":case"+":case"-":case"@":case" ":case"\r":case"ï¼":case"ï¼":case"ï¼":case"ï¼ ":s=`'${s}`}let g=!0===t||e||i||d||n||f;if(!0===g&&!0===r){let e="\\"===c?RegExp(c+c,"g"):RegExp(c,"g");s=s.replace(e,c+c)}if(!0===t){let e=RegExp(u,"g");s=s.replace(e,c+u)}!0===g&&(s=u+s+u),o+=s}else(!0===f||""===a&&!0===p&&!1!==f)&&(o+=u+u);e!==i.length-1&&(o+=l)}return[void 0,o]},bom:function(e){!0===this.options.bom&&e(u)},headers:function(e){let t;if(!1===this.options.header||void 0===this.options.columns)return;let r=this.options.columns.map(e=>e.header);if(this.options.eof?([t,r]=this.stringify(r,!0),r+=this.options.record_delimiter):[t,r]=this.stringify(r),t)return t;e(r)},__cast:function(e,t){let r=typeof e;
1try{if("string"===r)return[void 0,this.options.cast.string(e,t)];if("bigint"===r)return[void 0,this.options.cast.bigint(e,t)];if("number"===r)return[void 0,this.options.cast.number(e,t)];if("boolean"===r)return[void 0,this.options.cast.boolean(e,t)];else if(e instanceof Date)return[void 0,this.options.cast.date(e,t)];else if("object"===r&&null!==e)return[void 0,this.options.cast.object(e,t)];else return[void 0,e,e]}catch(e){return[e]}}};for(let t of e){let e=n.__transform(t,function(e){r.push(e)});if(void 0!==e)throw e}if(0===r.length){n.bom(e=>{r.push(e)});let e=n.headers(e=>{r.push(e)});if(void 0!==e)throw e}return r.join("")}}}]);
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.