UNPKG

@gatekeeper-auth/react

Version:
14 lines 346 kB
import{jsx as e,Fragment as t,jsxs as a}from"react/jsx-runtime";import n from"axios";import*as r from"react";import o,{useContext as i,useState as y,createContext as l,forwardRef as c,createElement as d,useLayoutEffect as h,useEffect as p}from"react";import*as s from"react-dom";import k from"react-dom";const u=l(null),f=()=>{const e=i(u);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e};function m({children:t,tenantId:a,projectId:r,customRoleId:o}){const[i,l]=y(!1);return e(u.Provider,{value:{isAuthenticated:i,login:async(e,t)=>{try{if(200!==(await n.post("http://localhost:3000/api/auth/login",{email:e,password:t})).status)throw new Error("Login failed");l(!0)}catch(e){console.error("Login error:",e),l(!1)}},logout:()=>{console.log("Logging out"),l(!1)},register:async(e,t,i)=>{try{if(201!==(await n.post("http://localhost:3000/api/auth/register",{email:e,username:t,password:i,tenantId:a,projectId:r,customRoleId:o})).status)throw new Error("Registration failed");l(!0)}catch(e){console.error("Registration error:",e),l(!1)}}},children:t})}function v(...e){return t=>e.forEach((e=>function(e,t){"function"==typeof e?e(t):null!=e&&(e.current=t)}(e,t)))}function x(...e){return r.useCallback(v(...e),e)}var g=r.forwardRef(((t,a)=>{const{children:n,...o}=t,i=r.Children.toArray(n),y=i.find(b);if(y){const t=y.props.children,n=i.map((e=>e===y?r.Children.count(t)>1?r.Children.only(null):r.isValidElement(t)?t.props.children:null:e));return e(M,{...o,ref:a,children:r.isValidElement(t)?r.cloneElement(t,void 0,n):null})}return e(M,{...o,ref:a,children:n})}));g.displayName="Slot";var M=r.forwardRef(((e,t)=>{const{children:a,...n}=e;if(r.isValidElement(a)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning;if(a)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,a=t&&"isReactWarning"in t&&t.isReactWarning,a)return e.props.ref;return e.props.ref||e.ref}(a);return r.cloneElement(a,{...z(n,a.props),ref:t?v(t,e):e})}return r.Children.count(a)>1?r.Children.only(null):null}));M.displayName="SlotClone";var w=({children:a})=>e(t,{children:a});function b(e){return r.isValidElement(e)&&e.type===w}function z(e,t){const a={...t};for(const n in t){const r=e[n],o=t[n];/^on[A-Z]/.test(n)?r&&o?a[n]=(...e)=>{o(...e),r(...e)}:r&&(a[n]=r):"style"===n?a[n]={...r,...o}:"className"===n&&(a[n]=[r,o].filter(Boolean).join(" "))}return{...e,...a}}const C=e=>"boolean"==typeof e?"".concat(e):0===e?"0":e,j=function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return t.flat(1/0).filter(Boolean).join(" ")},H=(e,t)=>a=>{var n;if(null==(null==t?void 0:t.variants))return j(e,null==a?void 0:a.class,null==a?void 0:a.className);const{variants:r,defaultVariants:o}=t,i=Object.keys(r).map((e=>{const t=null==a?void 0:a[e],n=null==o?void 0:o[e];if(null===t)return null;const i=C(t)||C(n);return r[e][i]})),y=a&&Object.entries(a).reduce(((e,t)=>{let[a,n]=t;return void 0===n||(e[a]=n),e}),{}),l=null==t||null===(n=t.compoundVariants)||void 0===n?void 0:n.reduce(((e,t)=>{let{class:a,className:n,...r}=t;return Object.entries(r).every((e=>{let[t,a]=e;return Array.isArray(a)?a.includes({...o,...y}[t]):{...o,...y}[t]===a}))?[...e,a,n]:e}),[]);return j(e,i,l,null==a?void 0:a.class,null==a?void 0:a.className)};function q(e){var t,a,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(a=q(e[t]))&&(n&&(n+=" "),n+=a);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function V(){for(var e,t,a=0,n="";a<arguments.length;)(e=arguments[a++])&&(t=L(e))&&(n&&(n+=" "),n+=t);return n}function L(e){if("string"==typeof e)return e;for(var t,a="",n=0;n<e.length;n++)e[n]&&(t=L(e[n]))&&(a&&(a+=" "),a+=t);return a}function A(e){var t=function(e){var t=e.theme,a=e.prefix,n={nextPart:new Map,validators:[]},r=function(e,t){if(!t)return e;return e.map((function(e){return[e[0],e[1].map((function(e){return"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((function(e){var a=e[0],n=e[1];return[t+a,n]}))):e}))]}))}(Object.entries(e.classGroups),a);return r.forEach((function(e){var a=e[0];E(e[1],n,a,t)})),n}(e),a=e.conflictingClassGroups,n=e.conflictingClassGroupModifiers,r=void 0===n?{}:n;return{getClassGroupId:function(e){var a=e.split("-");return""===a[0]&&1!==a.length&&a.shift(),S(a,t)||function(e){if(R.test(e)){var t=R.exec(e)[1],a=t?.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}}(e)},getConflictingClassGroupIds:function(e,t){var n=a[e]||[];return t&&r[e]?[].concat(n,r[e]):n}}}function S(e,t){if(0===e.length)return t.classGroupId;var a=e[0],n=t.nextPart.get(a),r=n?S(e.slice(1),n):void 0;if(r)return r;if(0!==t.validators.length){var o=e.join("-");return t.validators.find((function(e){return(0,e.validator)(o)}))?.classGroupId}}var R=/^\[(.+)\]$/;function E(e,t,a,n){e.forEach((function(e){if("string"!=typeof e){if("function"==typeof e)return e.isThemeGetter?void E(e(n),t,a,n):void t.validators.push({validator:e,classGroupId:a});Object.entries(e).forEach((function(e){var r=e[0];E(e[1],N(t,r),a,n)}))}else{(""===e?t:N(t,e)).classGroupId=a}}))}function N(e,t){var a=e;return t.split("-").forEach((function(e){a.nextPart.has(e)||a.nextPart.set(e,{nextPart:new Map,validators:[]}),a=a.nextPart.get(e)})),a}function O(e){if(e<1)return{get:function(){},set:function(){}};var t=0,a=new Map,n=new Map;function r(r,o){a.set(r,o),++t>e&&(t=0,n=a,a=new Map)}return{get:function(e){var t=a.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(r(e,t),t):void 0},set:function(e,t){a.has(e)?a.set(e,t):r(e,t)}}}function P(e){var t=e.separator||":",a=1===t.length,n=t[0],r=t.length;return function(e){for(var o,i=[],y=0,l=0,c=0;c<e.length;c++){var d=e[c];if(0===y){if(d===n&&(a||e.slice(c,c+r)===t)){i.push(e.slice(l,c)),l=c+r;continue}if("/"===d){o=c;continue}}"["===d?y++:"]"===d&&y--}var h=0===i.length?e:e.substring(l),p=h.startsWith("!");return{modifiers:i,hasImportantModifier:p,baseClassName:p?h.substring(1):h,maybePostfixModifierPosition:o&&o>l?o-l:void 0}}}var D=/\s+/;function F(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];var n,r,o,i=function(e){var a=t[0],l=t.slice(1).reduce((function(e,t){return t(e)}),a());return n=function(e){return{cache:O(e.cacheSize),splitModifiers:P(e),...A(e)}}(l),r=n.cache.get,o=n.cache.set,i=y,y(e)};function y(e){var t=r(e);if(t)return t;var a=function(e,t){var a=t.splitModifiers,n=t.getClassGroupId,r=t.getConflictingClassGroupIds,o=new Set;return e.trim().split(D).map((function(e){var t=a(e),r=t.modifiers,o=t.hasImportantModifier,i=t.baseClassName,y=t.maybePostfixModifierPosition,l=n(y?i.substring(0,y):i),c=Boolean(y);if(!l){if(!y)return{isTailwindClass:!1,originalClassName:e};if(!(l=n(i)))return{isTailwindClass:!1,originalClassName:e};c=!1}var d=function(e){if(e.length<=1)return e;var t=[],a=[];return e.forEach((function(e){"["===e[0]?(t.push.apply(t,a.sort().concat([e])),a=[]):a.push(e)})),t.push.apply(t,a.sort()),t}(r).join(":");return{isTailwindClass:!0,modifierId:o?d+"!":d,classGroupId:l,originalClassName:e,hasPostfixModifier:c}})).reverse().filter((function(e){if(!e.isTailwindClass)return!0;var t=e.modifierId,a=e.classGroupId,n=e.hasPostfixModifier,i=t+a;return!o.has(i)&&(o.add(i),r(a,n).forEach((function(e){return o.add(t+e)})),!0)})).reverse().map((function(e){return e.originalClassName})).join(" ")}(e,n);return o(e,a),a}return function(){return i(V.apply(null,arguments))}}function T(e){var t=function(t){return t[e]||[]};return t.isThemeGetter=!0,t}var _=/^\[(?:([a-z-]+):)?(.+)\]$/i,Z=/^\d+\/\d+$/,I=new Set(["px","full","screen"]),B=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,W=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,$=/^-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/;function U(e){return Q(e)||I.has(e)||Z.test(e)||G(e)}function G(e){return ie(e,"length",ye)}function K(e){return ie(e,"size",le)}function X(e){return ie(e,"position",le)}function Y(e){return ie(e,"url",ce)}function J(e){return ie(e,"number",Q)}function Q(e){return!Number.isNaN(Number(e))}function ee(e){return e.endsWith("%")&&Q(e.slice(0,-1))}function te(e){return de(e)||ie(e,"number",de)}function ae(e){return _.test(e)}function ne(){return!0}function re(e){return B.test(e)}function oe(e){return ie(e,"",he)}function ie(e,t,a){var n=_.exec(e);return!!n&&(n[1]?n[1]===t:a(n[2]))}function ye(e){return W.test(e)}function le(){return!1}function ce(e){return e.startsWith("url(")}function de(e){return Number.isInteger(Number(e))}function he(e){return $.test(e)}function pe(){var e=T("colors"),t=T("spacing"),a=T("blur"),n=T("brightness"),r=T("borderColor"),o=T("borderRadius"),i=T("borderSpacing"),y=T("borderWidth"),l=T("contrast"),c=T("grayscale"),d=T("hueRotate"),h=T("invert"),p=T("gap"),s=T("gradientColorStops"),k=T("gradientColorStopPositions"),u=T("inset"),f=T("margin"),m=T("opacity"),v=T("padding"),x=T("saturate"),g=T("scale"),M=T("sepia"),w=T("skew"),b=T("space"),z=T("translate"),C=function(){return["auto",ae,t]},j=function(){return[ae,t]},H=function(){return["",U]},q=function(){return["auto",Q,ae]},V=function(){return["","0",ae]},L=function(){return[Q,J]},A=function(){return[Q,ae]};return{cacheSize:500,theme:{colors:[ne],spacing:[U],blur:["none","",re,ae],brightness:L(),borderColor:[e],borderRadius:["none","","full",re,ae],borderSpacing:j(),borderWidth:H(),contrast:L(),grayscale:V(),hueRotate:A(),invert:V(),gap:j(),gradientColorStops:[e],gradientColorStopPositions:[ee,G],inset:C(),margin:C(),opacity:L(),padding:j(),saturate:L(),scale:L(),sepia:V(),skew:A(),space:j(),translate:j()},classGroups:{aspect:[{aspect:["auto","square","video",ae]}],container:["container"],columns:[{columns:[re]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none"]}],clear:[{clear:["left","right","both","none"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[].concat(["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],[ae])}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[u]}],"inset-x":[{"inset-x":[u]}],"inset-y":[{"inset-y":[u]}],start:[{start:[u]}],end:[{end:[u]}],top:[{top:[u]}],right:[{right:[u]}],bottom:[{bottom:[u]}],left:[{left:[u]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",te]}],basis:[{basis:C()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ae]}],grow:[{grow:V()}],shrink:[{shrink:V()}],order:[{order:["first","last","none",te]}],"grid-cols":[{"grid-cols":[ne]}],"col-start-end":[{col:["auto",{span:["full",te]},ae]}],"col-start":[{"col-start":q()}],"col-end":[{"col-end":q()}],"grid-rows":[{"grid-rows":[ne]}],"row-start-end":[{row:["auto",{span:[te]},ae]}],"row-start":[{"row-start":q()}],"row-end":[{"row-end":q()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ae]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ae]}],gap:[{gap:[p]}],"gap-x":[{"gap-x":[p]}],"gap-y":[{"gap-y":[p]}],"justify-content":[{justify:["normal"].concat(["start","end","center","between","around","evenly","stretch"])}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal"].concat(["start","end","center","between","around","evenly","stretch"],["baseline"])}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[].concat(["start","end","center","between","around","evenly","stretch"],["baseline"])}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[f]}],mx:[{mx:[f]}],my:[{my:[f]}],ms:[{ms:[f]}],me:[{me:[f]}],mt:[{mt:[f]}],mr:[{mr:[f]}],mb:[{mb:[f]}],ml:[{ml:[f]}],"space-x":[{"space-x":[b]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[b]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit",ae,t]}],"min-w":[{"min-w":["min","max","fit",ae,U]}],"max-w":[{"max-w":["0","none","full","min","max","fit","prose",{screen:[re]},re,ae]}],h:[{h:[ae,t,"auto","min","max","fit"]}],"min-h":[{"min-h":["min","max","fit",ae,U]}],"max-h":[{"max-h":[ae,t,"min","max","fit"]}],"font-size":[{text:["base",re,G]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",J]}],"font-family":[{font:[ne]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractons"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",ae]}],"line-clamp":[{"line-clamp":["none",Q,J]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",ae,U]}],"list-image":[{"list-image":["none",ae]}],"list-style-type":[{list:["none","disc","decimal",ae]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[m]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[m]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[].concat(["solid","dashed","dotted","double","none"],["wavy"])}],"text-decoration-thickness":[{decoration:["auto","from-font",U]}],"underline-offset":[{"underline-offset":["auto",ae,U]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],indent:[{indent:j()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ae]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ae]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[m]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[].concat(["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],[X])}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",K]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Y]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[k]}],"gradient-via-pos":[{via:[k]}],"gradient-to-pos":[{to:[k]}],"gradient-from":[{from:[s]}],"gradient-via":[{via:[s]}],"gradient-to":[{to:[s]}],rounded:[{rounded:[o]}],"rounded-s":[{"rounded-s":[o]}],"rounded-e":[{"rounded-e":[o]}],"rounded-t":[{"rounded-t":[o]}],"rounded-r":[{"rounded-r":[o]}],"rounded-b":[{"rounded-b":[o]}],"rounded-l":[{"rounded-l":[o]}],"rounded-ss":[{"rounded-ss":[o]}],"rounded-se":[{"rounded-se":[o]}],"rounded-ee":[{"rounded-ee":[o]}],"rounded-es":[{"rounded-es":[o]}],"rounded-tl":[{"rounded-tl":[o]}],"rounded-tr":[{"rounded-tr":[o]}],"rounded-br":[{"rounded-br":[o]}],"rounded-bl":[{"rounded-bl":[o]}],"border-w":[{border:[y]}],"border-w-x":[{"border-x":[y]}],"border-w-y":[{"border-y":[y]}],"border-w-s":[{"border-s":[y]}],"border-w-e":[{"border-e":[y]}],"border-w-t":[{"border-t":[y]}],"border-w-r":[{"border-r":[y]}],"border-w-b":[{"border-b":[y]}],"border-w-l":[{"border-l":[y]}],"border-opacity":[{"border-opacity":[m]}],"border-style":[{border:[].concat(["solid","dashed","dotted","double","none"],["hidden"])}],"divide-x":[{"divide-x":[y]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[y]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[m]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[r]}],"border-color-x":[{"border-x":[r]}],"border-color-y":[{"border-y":[r]}],"border-color-t":[{"border-t":[r]}],"border-color-r":[{"border-r":[r]}],"border-color-b":[{"border-b":[r]}],"border-color-l":[{"border-l":[r]}],"divide-color":[{divide:[r]}],"outline-style":[{outline:[""].concat(["solid","dashed","dotted","double","none"])}],"outline-offset":[{"outline-offset":[ae,U]}],"outline-w":[{outline:[U]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[m]}],"ring-offset-w":[{"ring-offset":[U]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",re,oe]}],"shadow-color":[{shadow:[ne]}],opacity:[{opacity:[m]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter"]}],filter:[{filter:["","none"]}],blur:[{blur:[a]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",re,ae]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[d]}],invert:[{invert:[h]}],saturate:[{saturate:[x]}],sepia:[{sepia:[M]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[a]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[d]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[m]}],"backdrop-saturate":[{"backdrop-saturate":[x]}],"backdrop-sepia":[{"backdrop-sepia":[M]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ae]}],duration:[{duration:A()}],ease:[{ease:["linear","in","out","in-out",ae]}],delay:[{delay:A()}],animate:[{animate:["none","spin","ping","pulse","bounce",ae]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[g]}],"scale-x":[{"scale-x":[g]}],"scale-y":[{"scale-y":[g]}],rotate:[{rotate:[te,ae]}],"translate-x":[{"translate-x":[z]}],"translate-y":[{"translate-y":[z]}],"skew-x":[{"skew-x":[w]}],"skew-y":[{"skew-y":[w]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ae]}],accent:[{accent:["auto",e]}],appearance:["appearance-none"],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ae]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":j()}],"scroll-mx":[{"scroll-mx":j()}],"scroll-my":[{"scroll-my":j()}],"scroll-ms":[{"scroll-ms":j()}],"scroll-me":[{"scroll-me":j()}],"scroll-mt":[{"scroll-mt":j()}],"scroll-mr":[{"scroll-mr":j()}],"scroll-mb":[{"scroll-mb":j()}],"scroll-ml":[{"scroll-ml":j()}],"scroll-p":[{"scroll-p":j()}],"scroll-px":[{"scroll-px":j()}],"scroll-py":[{"scroll-py":j()}],"scroll-ps":[{"scroll-ps":j()}],"scroll-pe":[{"scroll-pe":j()}],"scroll-pt":[{"scroll-pt":j()}],"scroll-pr":[{"scroll-pr":j()}],"scroll-pb":[{"scroll-pb":j()}],"scroll-pl":[{"scroll-pl":j()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","pinch-zoom","manipulation",{pan:["x","left","right","y","up","down"]}]}],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",ae]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[U,J]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}var se=F(pe);function ke(...e){return se(function(){for(var e,t,a=0,n="";a<arguments.length;)(e=arguments[a++])&&(t=q(e))&&(n&&(n+=" "),n+=t);return n}(e))}const ue=H("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),fe=r.forwardRef((({className:t,variant:a,size:n,asChild:r=!1,...o},i)=>e(r?g:"button",{className:ke(ue({variant:a,size:n,className:t})),ref:i,...o})));fe.displayName="Button";var me=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce(((t,a)=>{const n=r.forwardRef(((t,n)=>{const{asChild:r,...o}=t,i=r?g:a;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),e(i,{...o,ref:n})}));return n.displayName=`Primitive.${a}`,{...t,[a]:n}}),{});function ve(e,t){e&&s.flushSync((()=>e.dispatchEvent(t)))}var xe=r.forwardRef(((t,a)=>e(me.label,{...t,ref:a,onMouseDown:e=>{e.target.closest("button, input, select, textarea")||(t.onMouseDown?.(e),!e.defaultPrevented&&e.detail>1&&e.preventDefault())}})));xe.displayName="Label";var ge=xe;const Me=H("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),we=r.forwardRef((({className:t,...a},n)=>e(ge,{ref:n,className:ke(Me(),t),...a})));we.displayName=ge.displayName;const be=r.forwardRef((({className:t,type:a,...n},r)=>e("input",{type:a,className:ke("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",t),ref:r,...n})));be.displayName="Input";const ze=r.forwardRef((({className:t,...a},n)=>e("div",{ref:n,className:ke("rounded-xl border bg-card text-card-foreground shadow",t),...a})));ze.displayName="Card";const Ce=r.forwardRef((({className:t,...a},n)=>e("div",{ref:n,className:ke("flex flex-col space-y-1.5 p-6",t),...a})));Ce.displayName="CardHeader";const je=r.forwardRef((({className:t,...a},n)=>e("h3",{ref:n,className:ke("font-semibold leading-none tracking-tight",t),...a})));je.displayName="CardTitle";const He=r.forwardRef((({className:t,...a},n)=>e("p",{ref:n,className:ke("text-sm text-muted-foreground",t),...a})));He.displayName="CardDescription";const qe=r.forwardRef((({className:t,...a},n)=>e("div",{ref:n,className:ke("p-6 pt-0",t),...a})));qe.displayName="CardContent";const Ve=r.forwardRef((({className:t,...a},n)=>e("div",{ref:n,className:ke("flex items-center p-6 pt-0",t),...a})));function Le(){const[t,n]=y(""),[r,o]=y(""),{login:i}=f(),l=e=>{e.preventDefault(),i(t,r)};return a(ze,{className:"w-[350px]",children:[a(Ce,{children:[e(je,{children:"Login"}),e(He,{children:"Enter your credentials to access your account."})]}),e(qe,{children:e("form",{onSubmit:l,children:a("div",{className:"grid w-full items-center gap-4",children:[a("div",{className:"flex flex-col space-y-1.5",children:[e(we,{htmlFor:"username",children:"Username"}),e(be,{id:"username",placeholder:"Enter your username",value:t,onChange:e=>n(e.target.value)})]}),a("div",{className:"flex flex-col space-y-1.5",children:[e(we,{htmlFor:"password",children:"Password"}),e(be,{id:"password",type:"password",placeholder:"Enter your password",value:r,onChange:e=>o(e.target.value)})]})]})})}),a(Ve,{className:"flex justify-between",children:[e(fe,{variant:"outline",children:"Cancel"}),e(fe,{onClick:l,children:"Login"})]})]})}function Ae(){const[t,n]=y(""),[r,o]=y(""),[i,l]=y(""),[c,d]=y(""),{register:h}=f(),p=e=>{e.preventDefault(),i===c?h(t,r,i):alert("Passwords don't match")};return a(ze,{className:"w-[350px]",children:[a(Ce,{children:[e(je,{children:"Register"}),e(He,{children:"Create a new account to get started."})]}),e(qe,{children:e("form",{onSubmit:p,children:a("div",{className:"grid w-full items-center gap-4",children:[a("div",{className:"flex flex-col space-y-1.5",children:[e(we,{htmlFor:"email",children:"Email"}),e(be,{id:"email",type:"email",placeholder:"Enter your email",value:t,onChange:e=>n(e.target.value),required:!0})]}),a("div",{className:"flex flex-col space-y-1.5",children:[e(we,{htmlFor:"username",children:"Username"}),e(be,{id:"username",placeholder:"Choose a username",value:r,onChange:e=>o(e.target.value),required:!0})]}),a("div",{className:"flex flex-col space-y-1.5",children:[e(we,{htmlFor:"password",children:"Password"}),e(be,{id:"password",type:"password",placeholder:"Choose a password",value:i,onChange:e=>l(e.target.value),required:!0})]}),a("div",{className:"flex flex-col space-y-1.5",children:[e(we,{htmlFor:"confirm-password",children:"Confirm Password"}),e(be,{id:"confirm-password",type:"password",placeholder:"Confirm your password",value:c,onChange:e=>d(e.target.value),required:!0})]})]})})}),a(Ve,{className:"flex justify-between",children:[e(fe,{variant:"outline",children:"Cancel"}),e(fe,{onClick:p,children:"Register"})]})]})}Ve.displayName="CardFooter";var Se,Re={exports:{}},Ee={exports:{}},Ne={};var Oe,Pe,De,Fe,Te,_e,Ze,Ie,Be,We,$e,Ue,Ge,Ke,Xe={}; /** @license React v16.13.1 * react-is.development.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */function Ye(){return Pe||(Pe=1,e=Ee,"production"===process.env.NODE_ENV?e.exports=function(){if(Se)return Ne;Se=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,y=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,s=e?Symbol.for("react.memo"):60115,k=e?Symbol.for("react.lazy"):60116,u=e?Symbol.for("react.block"):60121,f=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case l:case c:case n:case o:case r:case h:return e;default:switch(e=e&&e.$$typeof){case y:case d:case k:case s:case i:return e;default:return p}}case a:return p}}}function g(e){return x(e)===c}return Ne.AsyncMode=l,Ne.ConcurrentMode=c,Ne.ContextConsumer=y,Ne.ContextProvider=i,Ne.Element=t,Ne.ForwardRef=d,Ne.Fragment=n,Ne.Lazy=k,Ne.Memo=s,Ne.Portal=a,Ne.Profiler=o,Ne.StrictMode=r,Ne.Suspense=h,Ne.isAsyncMode=function(e){return g(e)||x(e)===l},Ne.isConcurrentMode=g,Ne.isContextConsumer=function(e){return x(e)===y},Ne.isContextProvider=function(e){return x(e)===i},Ne.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Ne.isForwardRef=function(e){return x(e)===d},Ne.isFragment=function(e){return x(e)===n},Ne.isLazy=function(e){return x(e)===k},Ne.isMemo=function(e){return x(e)===s},Ne.isPortal=function(e){return x(e)===a},Ne.isProfiler=function(e){return x(e)===o},Ne.isStrictMode=function(e){return x(e)===r},Ne.isSuspense=function(e){return x(e)===h},Ne.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===c||e===o||e===r||e===h||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===k||e.$$typeof===s||e.$$typeof===i||e.$$typeof===y||e.$$typeof===d||e.$$typeof===f||e.$$typeof===m||e.$$typeof===v||e.$$typeof===u)},Ne.typeOf=x,Ne}():e.exports=(Oe||(Oe=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,a=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,y=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,s=e?Symbol.for("react.memo"):60115,k=e?Symbol.for("react.lazy"):60116,u=e?Symbol.for("react.block"):60121,f=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,v=e?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var u=e.type;switch(u){case l:case c:case n:case o:case r:case h:return u;default:var f=u&&u.$$typeof;switch(f){case y:case d:case k:case s:case i:return f;default:return p}}case a:return p}}}var g=l,M=c,w=y,b=i,z=t,C=d,j=n,H=k,q=s,V=a,L=o,A=r,S=h,R=!1;function E(e){return x(e)===c}Xe.AsyncMode=g,Xe.ConcurrentMode=M,Xe.ContextConsumer=w,Xe.ContextProvider=b,Xe.Element=z,Xe.ForwardRef=C,Xe.Fragment=j,Xe.Lazy=H,Xe.Memo=q,Xe.Portal=V,Xe.Profiler=L,Xe.StrictMode=A,Xe.Suspense=S,Xe.isAsyncMode=function(e){return R||(R=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),E(e)||x(e)===l},Xe.isConcurrentMode=E,Xe.isContextConsumer=function(e){return x(e)===y},Xe.isContextProvider=function(e){return x(e)===i},Xe.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Xe.isForwardRef=function(e){return x(e)===d},Xe.isFragment=function(e){return x(e)===n},Xe.isLazy=function(e){return x(e)===k},Xe.isMemo=function(e){return x(e)===s},Xe.isPortal=function(e){return x(e)===a},Xe.isProfiler=function(e){return x(e)===o},Xe.isStrictMode=function(e){return x(e)===r},Xe.isSuspense=function(e){return x(e)===h},Xe.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===c||e===o||e===r||e===h||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===k||e.$$typeof===s||e.$$typeof===i||e.$$typeof===y||e.$$typeof===d||e.$$typeof===f||e.$$typeof===m||e.$$typeof===v||e.$$typeof===u)},Xe.typeOf=x}()),Xe)),Ee.exports;var e} /* object-assign (c) Sindre Sorhus @license MIT */function Je(){if(Fe)return De;Fe=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;return De=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},a=0;a<10;a++)t["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(n,r){for(var o,i,y=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(n),l=1;l<arguments.length;l++){for(var c in o=Object(arguments[l]))t.call(o,c)&&(y[c]=o[c]);if(e){i=e(o);for(var d=0;d<i.length;d++)a.call(o,i[d])&&(y[i[d]]=o[i[d]])}}return y},De}function Qe(){if(_e)return Te;_e=1;return Te="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function et(){return Ie?Ze:(Ie=1,Ze=Function.call.bind(Object.prototype.hasOwnProperty))}if("production"!==process.env.NODE_ENV){var tt=Ye();Re.exports=function(){if(Ue)return $e;Ue=1;var e=Ye(),t=Je(),a=Qe(),n=et(),r=function(){if(We)return Be;We=1;var e=function(){};if("production"!==process.env.NODE_ENV){var t=Qe(),a={},n=et();e=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}}function r(r,o,i,y,l){if("production"!==process.env.NODE_ENV)for(var c in r)if(n(r,c)){var d;try{if("function"!=typeof r[c]){var h=Error((y||"React class")+": "+i+" type `"+c+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof r[c]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}d=r[c](o,c,y,i,null,t)}catch(e){d=e}if(!d||d instanceof Error||e((y||"React class")+": type specification of "+i+" `"+c+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in a)){a[d.message]=!0;var p=l?l():"";e("Failed "+i+" type: "+d.message+(null!=p?p:""))}}}return r.resetWarningCache=function(){"production"!==process.env.NODE_ENV&&(a={})},Be=r}(),o=function(){};function i(){return null}return"production"!==process.env.NODE_ENV&&(o=function(e){var t="Warning: "+e;"undefined"!=typeof console&&console.error(t);try{throw new Error(t)}catch(e){}}),$e=function(y,l){var c="function"==typeof Symbol&&Symbol.iterator,d="<<anonymous>>",h={array:u("array"),bigint:u("bigint"),bool:u("boolean"),func:u("function"),number:u("number"),object:u("object"),string:u("string"),symbol:u("symbol"),any:k(i),arrayOf:function(e){return k((function(t,n,r,o,i){if("function"!=typeof e)return new s("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var y=t[n];if(!Array.isArray(y))return new s("Invalid "+o+" `"+i+"` of type `"+v(y)+"` supplied to `"+r+"`, expected an array.");for(var l=0;l<y.length;l++){var c=e(y,l,r,o,i+"["+l+"]",a);if(c instanceof Error)return c}return null}))},element:k((function(e,t,a,n,r){var o=e[t];return y(o)?null:new s("Invalid "+n+" `"+r+"` of type `"+v(o)+"` supplied to `"+a+"`, expected a single ReactElement.")})),elementType:k((function(t,a,n,r,o){var i=t[a];return e.isValidElementType(i)?null:new s("Invalid "+r+" `"+o+"` of type `"+v(i)+"` supplied to `"+n+"`, expected a single ReactElement type.")})),instanceOf:function(e){return k((function(t,a,n,r,o){if(!(t[a]instanceof e)){var i=e.name||d;return new s("Invalid "+r+" `"+o+"` of type `"+((y=t[a]).constructor&&y.constructor.name?y.constructor.name:d)+"` supplied to `"+n+"`, expected instance of `"+i+"`.")}var y;return null}))},node:k((function(e,t,a,n,r){return m(e[t])?null:new s("Invalid "+n+" `"+r+"` supplied to `"+a+"`, expected a ReactNode.")})),objectOf:function(e){return k((function(t,r,o,i,y){if("function"!=typeof e)return new s("Property `"+y+"` of component `"+o+"` has invalid PropType notation inside objectOf.");var l=t[r],c=v(l);if("object"!==c)return new s("Invalid "+i+" `"+y+"` of type `"+c+"` supplied to `"+o+"`, expected an object.");for(var d in l)if(n(l,d)){var h=e(l,d,o,i,y+"."+d,a);if(h instanceof Error)return h}return null}))},oneOf:function(e){return Array.isArray(e)?k((function(t,a,n,r,o){for(var i=t[a],y=0;y<e.length;y++)if(p(i,e[y]))return null;var l=JSON.stringify(e,(function(e,t){return"symbol"===x(t)?String(t):t}));return new s("Invalid "+r+" `"+o+"` of value `"+String(i)+"` supplied to `"+n+"`, expected one of "+l+".")})):("production"!==process.env.NODE_ENV&&o(arguments.length>1?"Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).":"Invalid argument supplied to oneOf, expected an array."),i)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==process.env.NODE_ENV&&o("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var t=0;t<e.length;t++){var r=e[t];if("function"!=typeof r)return o("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+g(r)+" at index "+t+"."),i}return k((function(t,r,o,i,y){for(var l=[],c=0;c<e.length;c++){var d=(0,e[c])(t,r,o,i,y,a);if(null==d)return null;d.data&&n(d.data,"expectedType")&&l.push(d.data.expectedType)}return new s("Invalid "+i+" `"+y+"` supplied to `"+o+"`"+(l.length>0?", expected one of type ["+l.join(", ")+"]":"")+".")}))},shape:function(e){return k((function(t,n,r,o,i){var y=t[n],l=v(y);if("object"!==l)return new s("Invalid "+o+" `"+i+"` of type `"+l+"` supplied to `"+r+"`, expected `object`.");for(var c in e){var d=e[c];if("function"!=typeof d)return f(r,o,i,c,x(d));var h=d(y,c,r,o,i+"."+c,a);if(h)return h}return null}))},exact:function(e){return k((function(r,o,i,y,l){var c=r[o],d=v(c);if("object"!==d)return new s("Invalid "+y+" `"+l+"` of type `"+d+"` supplied to `"+i+"`, expected `object`.");var h=t({},r[o],e);for(var p in h){var k=e[p];if(n(e,p)&&"function"!=typeof k)return f(i,y,l,p,x(k));if(!k)return new s("Invalid "+y+" `"+l+"` key `"+p+"` supplied to `"+i+"`.\nBad object: "+JSON.stringify(r[o],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var u=k(c,p,i,y,l+"."+p,a);if(u)return u}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function s(e,t){this.message=e,this.data=t&&"object"==typeof t?t:{},this.stack=""}function k(e){if("production"!==process.env.NODE_ENV)var t={},n=0;function r(r,i,y,c,h,p,k){if(c=c||d,p=p||y,k!==a){if(l){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}if("production"!==process.env.NODE_ENV&&"undefined"!=typeof console){var f=c+":"+y;!t[f]&&n<3&&(o("You are manually calling a React.PropTypes validation function for the `"+p+"` prop on `"+c+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),t[f]=!0,n++)}}return null==i[y]?r?null===i[y]?new s("The "+h+" `"+p+"` is marked as required in `"+c+"`, but its value is `null`."):new s("The "+h+" `"+p+"` is marked as required in `"+c+"`, but its value is `undefined`."):null:e(i,y,c,h,p)}var i=r.bind(null,!1);return i.isRequired=r.bind(null,!0),i}function u(e){return k((function(t,a,n,r,o,i){var y=t[a];return v(y)!==e?new s("Invalid "+r+" `"+o+"` of type `"+x(y)+"` supplied to `"+n+"`, expected `"+e+"`.",{expectedType:e}):null}))}function f(e,t,a,n,r){return new s((e||"React class")+": "+t+" type `"+a+"."+n+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+r+"`.")}function m(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(m);if(null===e||y(e))return!0;var t=function(e){var t=e&&(c&&e[c]||e["@@iterator"]);if("function"==typeof t)return t}(e);if(!t)return!1;var a,n=t.call(e);if(t!==e.entries){for(;!(a=n.next()).done;)if(!m(a.value))return!1}else for(;!(a=n.next()).done;){var r=a.value;if(r&&!m(r[1]))return!1}return!0;default:return!1}}function v(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||!!t&&("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}(t,e)?"symbol":t}function x(e){if(null==e)return""+e;var t=v(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function g(e){var t=x(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return s.prototype=Error.prototype,h.checkPropTypes=r,h.resetWarningCache=r.resetWarningCache,h.PropTypes=h,h},$e}()(tt.isElement,!0)}else Re.exports=function(){if(Ke)return Ge;Ke=1;var e=Qe();function t(){}function a(){}return a.resetWarningCache=t,Ge=function(){function n(t,a,n,r,o,i){if(i!==e){var y=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw y.name="Invariant Violation",y}}function r(){return n}n.isRequired=n;var o={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:r,element:n,elementType:n,instanceOf:r,node:n,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:a,resetWarningCache:t};return o.PropTypes=o,o}}()();var at={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},nt=["color","size","strokeWidth","children"];function rt(){return rt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n])}return e},rt.apply(this,arguments)}var ot=function(e,t){var a=c((function(a,n){var r,o=a.color,i=void 0===o?"currentColor":o,y=a.size,l=void 0===y?24:y,c=a.strokeWidth,h=void 0===c?2:c,p=a.children,s=function(e,t){if(null==e)return{};var a,n,r={},o=Object.keys(e);for(n=0;n<o.length;n++)a=o[n],t.indexOf(a)>=0||(r[a]=e[a]);return r}(a,nt);return d("svg",rt({ref:n},at,{width:l,height:l,stroke:i,strokeWidth:h,className:"lucide lucide-"+(r=e,r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase())},s),[].concat(t.map((function(e){var t=e[0],a=e[1];return d(t,a)})),p||[]))}));return a.propTypes={color:Re.exports.string,size:Re.exports.oneOfType([Re.exports.string,Re.exports.number]),strokeWidth:Re.exports.oneOfType([Re.exports.string,Re.exports.number])},a.displayName=""+e,a};ot("Accessibility",[["circle",{cx:"16",cy:"4",r:"1",key:"1grugj"}],["path",{d:"m18 19 1-7-5.87.94",key:"16gztd"}],["path",{d:"m5 8 3-3 5.5 3-2.21 3.1",key:"133gd0"}],["path",{d:"M4.24 14.48c-.19.58-.27 1.2-.23 1.84a5 5 0 0 0 5.31 4.67c.65-.04 1.25-.2 1.8-.46",key:"12oo9p"}],["path",{d:"M13.76 17.52c.19-.58.27-1.2.23-1.84a5 5 0 0 0-5.31-4.67c-.65.04-1.25.2-1.8.46",key:"15si8q"}]]),ot("Activity",[["polyline",{points:"22 12 18 12 15 21 9 3 6 12 2 12",key:"xez52g"}]]),ot("AirVent",[["path",{d:"M6 12H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2",key:"larmp2"}],["path",{d:"M6 8h12",key:"6g4wlu"}],["path",{d:"M18.3 17.7a2.5 2.5 0 0 1-3.16 3.83 2.53 2.53 0 0 1-1.14-2V12",key:"1bo8pg"}],["path",{d:"M6.6 15.6A2 2 0 1 0 10 17v-5",key:"t9h90c"}]]),ot("Airplay",[["path",{d:"M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1",key:"ns4c3b"}],["polygon",{points:"12 15 17 21 7 21 12 15",key:"1sy95i"}]]),ot("AlarmCheck",[["path",{d:"M12 21a8 8 0 1 0 0-16 8 8 0 0 0 0 16z",key:"1dr9l2"}],["path",{d:"M5 3 2 6",key:"18tl5t"}],["path",{d:"m22 6-3-3",key:"1opdir"}],["path",{d:"m6 19-2 2",key:"1ek6nb"}],["path",{d:"m18 19 2 2",key:"lw9i"}],["path",{d:"m9 13 2 2 4-4",key:"6343dt"}]]),ot("AlarmClockOff",[["path",{d:"M6.87 6.87a8 8 0 1 0 11.26 11.26",key:"3on8tj"}],["path",{d:"M19.9 14.25A7.44 7.44 0 0 0 20 13a8 8 0 0 0-8-8 7.44 7.44 0 0 0-1.25.1",key:"nxzvge"}],["path",{d:"m22 6-3-3",key:"1opdir"}],["path",{d:"m6 19-2 2",key:"1ek6nb"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M4 4 2 6",key:"1ycko6"}]]),ot("AlarmClock",[["circle",{cx:"12",cy:"13",r:"8",key:"3y4lt7"}],["path",{d:"M12 9v4l2 2",key:"1c63tq"}],["path",{d:"M5 3 2 6",key:"18tl5t"}],["path",{d:"m22 6-3-3",key:"1opdir"}],["path",{d:"m6 19-2 2",key:"1ek6nb"}],["path",{d:"m18 19 2 2",key:"lw9i"}]]),ot("AlarmMinus",[["path",{d:"M12 21a8 8 0 1 0 0-16 8 8 0 0 0 0 16z",key:"1dr9l2"}],["path",{d:"M5 3 2 6",key:"18tl5t"}],["path",{d:"m22 6-3-3",key:"1opdir"}],["path",{d:"m6 19-2 2",key:"1ek6nb"}],["path",{d:"m18 19 2 2",key:"lw9i"}],["path",{d:"M9 13h6",key:"1uhe8q"}]]),ot("AlarmPlus",[["path",{d:"M12 21a8 8 0 1 0 0-16 8 8 0 0 0 0 16z",key:"1dr9l2"}],["path",{d:"M5 3 2 6",key:"18tl5t"}],["path",{d:"m22 6-3-3",key:"1opdir"}],["path",{d:"m6 19-2 2",key:"1ek6nb"}],["path",{d:"m18 19 2 2",key:"lw9i"}],["path",{d:"M12 10v6",key:"1bos4e"}],["path",{d:"M9 13h6",key:"1uhe8q"}]]),ot("Album",[["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2",key:"maln0c"}],["polyline",{points:"11 3 11 11 14 8 17 11 17 3",key:"1wcwz3"}]]),ot("AlertCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",y1:"8",x2:"12",y2:"12",key:"1grbh0"}],["line",{x1:"12",y1:"16",x2:"12.01",y2:"16",key:"1w440g"}]]),ot("AlertOctagon",[["polygon",{points:"7.86 2 16.14 2 22 7.86 22 16.14 16.14 22 7.86 22 2 16.14 2 7.86 7.86 2",key:"h1p8hx"}],["line",{x1:"12",y1:"8",x2:"12",y2:"12",key:"1grbh0"}],["line",{x1:"12",y1:"16",x2:"12.01",y2:"16",key:"1w440g"}]]),ot("AlertTriangle",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z",key:"c3ski4"}],["line",{x1:"12",y1:"9",x2:"12",y2:"13",key:"mb7vjk"}],["line",{x1:"12",y1:"17",x2:"12.01",y2:"17",key:"kdstpg"}]]),ot("AlignCenterHorizontal",[["path",{d:"M2 12h20",key:"9i4pu4"}],["path",{d:"M10 16v4a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-4",key:"11f1s0"}],["path",{d:"M10 8V4a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v4",key:"t14dx9"}],["path",{d:"M20 16v1a2 2 0 0 1-2 2h-2a2 2 0 0 1-2-2v-1",key:"1w07xs"}],["path",{d:"M14 8V7c0-1.1.9-2 2-2h2a2 2 0 0 1 2 2v1",key:"1apec2"}]]),ot("AlignCenterVertical",[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"M8 10H4a2 2 0 0 1-2-2V6c0-1.1.9-2 2-2h4",key:"14d6g8"}],["path",{d:"M16 10h4a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-4",ke