neatkit 0.3.0 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -43,6 +43,15 @@ type ButtonOwnProps = {
43
43
  type ButtonReference<Component extends ElementType> = ComponentPropsWithRef<Component>["ref"];
44
44
  /** A type representing properties for a polymorphic Button element. */
45
45
  export type ButtonProps<Component extends ElementType = "button"> = ButtonOwnProps & {
46
+ /**
47
+ * The intrinsic element or custom component used as the outer control.
48
+ *
49
+ * Intrinsic elements without native interactivity receive Button
50
+ * semantics. Custom components own their native semantics and complete
51
+ * unavailable behavior, including suppressing persistent navigation
52
+ * targets. They must forward the class name, reference, event handlers,
53
+ * ARIA properties, and tab index to their interactive root.
54
+ */
46
55
  as?: Component;
47
56
  } & Omit<ComponentPropsWithoutRef<Component>, keyof ButtonOwnProps | "as">;
48
57
  /** A type representing the public polymorphic Button component. */
@@ -17,7 +17,10 @@ export type PopoverProps = Omit<HTMLAttributes<HTMLDivElement>, "children" | "de
17
17
  closeOnEscape?: boolean;
18
18
  /** Whether an uncontrolled Popover is initially open. */
19
19
  defaultOpen?: boolean;
20
- /** Whether Popover behavior is disabled without removing its trigger. */
20
+ /**
21
+ * Whether Popover behavior is disabled while leaving the supplied trigger's
22
+ * semantics and interaction unchanged.
23
+ */
21
24
  disabled?: boolean;
22
25
  /** The preferred element focused when the Popover opens. */
23
26
  initialFocusReference?: RefObject<HTMLElement | null>;
@@ -40,7 +43,11 @@ export type PopoverProps = Omit<HTMLAttributes<HTMLDivElement>, "children" | "de
40
43
  /**
41
44
  * The single element that receives Popover trigger behavior.
42
45
  *
43
- * Custom components must forward standard DOM properties and a reference.
46
+ * Intrinsic elements without native interactivity receive Button semantics.
47
+ * Custom components own their native semantics, keyboard behavior, and
48
+ * complete unavailable state, including suppressing persistent navigation
49
+ * targets. They must forward standard DOM properties, composed event
50
+ * handlers, and a reference to their interactive root.
44
51
  */
45
52
  trigger: ReactElement;
46
53
  };
@@ -63,7 +70,10 @@ declare const Popover: import("react").ForwardRefExoticComponent<Omit<HTMLAttrib
63
70
  closeOnEscape?: boolean;
64
71
  /** Whether an uncontrolled Popover is initially open. */
65
72
  defaultOpen?: boolean;
66
- /** Whether Popover behavior is disabled without removing its trigger. */
73
+ /**
74
+ * Whether Popover behavior is disabled while leaving the supplied trigger's
75
+ * semantics and interaction unchanged.
76
+ */
67
77
  disabled?: boolean;
68
78
  /** The preferred element focused when the Popover opens. */
69
79
  initialFocusReference?: RefObject<HTMLElement | null>;
@@ -86,7 +96,11 @@ declare const Popover: import("react").ForwardRefExoticComponent<Omit<HTMLAttrib
86
96
  /**
87
97
  * The single element that receives Popover trigger behavior.
88
98
  *
89
- * Custom components must forward standard DOM properties and a reference.
99
+ * Intrinsic elements without native interactivity receive Button semantics.
100
+ * Custom components own their native semantics, keyboard behavior, and
101
+ * complete unavailable state, including suppressing persistent navigation
102
+ * targets. They must forward standard DOM properties, composed event
103
+ * handlers, and a reference to their interactive root.
90
104
  */
91
105
  trigger: ReactElement;
92
106
  } & import("react").RefAttributes<HTMLDivElement>>;
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),i=require("react"),yt=require("react-dom"),kt=36,rt=[2,4,8,12,16,24,32,48],qe={sm:768,md:960,lg:1440,xl:1920};({...Object.fromEntries(rt.map(t=>[`--nk-space-${t}`,`${t}px`]))});function jt(t){if(typeof t!="number"||!Number.isFinite(t))throw new RangeError("Cell amount must be a finite number.");const n=t*kt;if(!Number.isFinite(n))throw new RangeError("Calculated cell value must be finite.");return n}function It(t){if(!rt.some(n=>n===t))throw new RangeError(`Unsupported spacing size: ${String(t)}.`);return t}function he(t){if(!Object.prototype.hasOwnProperty.call(qe,t))throw new RangeError(`Unsupported breakpoint: ${String(t)}.`);return qe[t]}function Ct(t){if(typeof t!="number"||!Number.isFinite(t))throw new RangeError("Pixel value must be a finite number.");return`${t}px`}const Ee=i.forwardRef(function(n,e){const{children:o,className:s,...r}=n;return a.jsx("div",{...r,ref:e,className:["nk-surface",s].filter(Boolean).join(" "),children:o})}),Rt=i.forwardRef(function(n,e){const{children:o,className:s,role:r,tone:c="info",...l}=n;return a.jsxs(Ee,{...l,ref:e,className:["nk-alert",s].filter(Boolean).join(" "),"data-tone":c,role:r,children:[a.jsx("span",{"aria-hidden":"true",className:"nk-alert__indicator"}),a.jsx("div",{className:"nk-alert__content",children:o})]})});function Et(t){return(Array.from((t==null?void 0:t.trim())??"")[0]??"?").trim().toUpperCase()||"?"}function Pt(t){if(t==="?")return"neutral";const n=Array.from(t)[0]??"";if("AJO".includes(n))return"1";if("BNSV".includes(n))return"2";if("CFLQW".includes(n))return"3";if("EHKMPTX".includes(n))return"4";if("DGRUY".includes(n))return"5";if("IZ".includes(n))return"6";const e=n.codePointAt(0)??0;return String(e%6+1)}const Mt=i.forwardRef(function(n,e){const{alt:o,className:s,image:r,size:c=32,style:l,...p}=n,[h,d]=i.useState(),u=!!r&&r!==h,v=(o==null?void 0:o.trim())??"",g=Et(v),w=typeof c=="number"?`${c}px`:c,y=v?{"aria-label":v,role:"img"}:{"aria-hidden":!0,role:void 0};function b(){d(r)}return a.jsx("div",{...p,...u?void 0:y,ref:e,className:["nk-avatar",s].filter(Boolean).join(" "),"data-palette":Pt(g),"data-state":u?"image":"fallback",style:{...l,"--nk-avatar-size":w},children:u?a.jsx("img",{alt:v,className:"nk-avatar__image",onError:b,src:r}):a.jsx("span",{"aria-hidden":"true",className:"nk-avatar__initial",children:g})})}),Lt=i.forwardRef(function(n,e){const{children:o,className:s,tone:r="neutral",variant:c="outline",...l}=n;return a.jsx("span",{...l,ref:e,className:["nk-badge",s].filter(Boolean).join(" "),"data-tone":r,"data-variant":c,children:o})}),St=i.forwardRef(function(n,e){const{height:o=14,width:s=14,...r}=n;return a.jsx("svg",{...r,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:o,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.5 0h1.6c.5.1 1 .3 1.3.6.3.4.5.8.5 1.3l.1 1.6v8.6c-.1.5-.3 1-.6 1.3a2 2 0 0 1-1.3.5l-1.6.1H1.9a2 2 0 0 1-1.3-.6A2 2 0 0 1 .1 12L0 10.5V1.9C.2 1.4.4.9.7.6A2 2 0 0 1 2 .1L3.5 0h7Zm-7 1.4H2.1c-.3 0-.4.1-.5.2l-.2.5v3.5a11.8 11.8 0 0 0 0 1l.4.3h.3l.7.1h1a1.4 1.4 0 0 1 .8.4l.4.4.1.4v.2l.2.3.1.4h3.2l.2-.5v-.2l.2-.6.4-.4.2-.2.6-.2h1a11.8 11.8 0 0 0 1 0l.3-.4v-.3l.1-.6V2.1c0-.3-.1-.4-.2-.5l-.5-.2H3.5Z",clipRule:"evenodd"})})}),Nt=i.forwardRef(function(n,e){const{height:o=14,width:s=14,...r}=n;return a.jsx("svg",{...r,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:o,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M5.75 10 3 7.25m0 0L5.75 4.5M3 7.25h8.5"})})}),_t=i.forwardRef(function(n,e){const{height:o=14,width:s=14,...r}=n;return a.jsx("svg",{...r,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:o,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M8.25 10 11 7.25m0 0L8.25 4.5M11 7.25H2.5"})})}),Vt=i.forwardRef(function(n,e){const{height:o=14,width:s=14,...r}=n;return a.jsxs("svg",{...r,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:o,viewBox:"0 0 14 14",fill:"none",children:[a.jsx("path",{stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.633",d:"M5.955 11.616 2.177 8.838a.82.82 0 0 0-.32-.143l-.985-.2-.03-.007a.148.148 0 0 1-.026-.087V5.423c0-.049.014-.076.022-.087l.034-.005.984-.202a.818.818 0 0 0 .32-.142l3.78-2.78v9.41Z"}),a.jsx("path",{fill:"currentColor",d:"M9.383 5.053c-.192-.37-.635-.454-.93-.168l-.044.033a.737.737 0 0 0-.133.825c.162.337.266.724.266 1.144 0 .421-.104.808-.266 1.145a.737.737 0 0 0 .133.824l.044.034c.28.286.738.219.93-.168A4.214 4.214 0 0 0 9.81 6.87c0-.64-.162-1.263-.427-1.818Z"}),a.jsx("path",{fill:"currentColor",d:"M10.932 3.386c-.207-.336-.635-.387-.9-.117l-.03.033a.768.768 0 0 0-.088.91c.472.756.737 1.699.737 2.692 0 1.01-.28 1.935-.737 2.692a.768.768 0 0 0 .088.91l.03.033c.265.27.693.219.9-.118.62-.993.973-2.205.973-3.517 0-1.313-.354-2.525-.973-3.518Z"}),a.jsx("path",{fill:"currentColor",d:"M12.48 1.754c-.22-.32-.62-.37-.885-.1l-.044.033c-.236.235-.265.64-.074.925.797 1.195 1.254 2.676 1.254 4.275 0 1.599-.472 3.097-1.254 4.275-.191.286-.162.69.074.925l.044.034c.266.27.664.219.885-.101.96-1.43 1.52-3.214 1.52-5.15 0-1.901-.56-3.685-1.52-5.116Z"})]})}),Tt=i.forwardRef(function(n,e){const{height:o=14,width:s=14,...r}=n;return a.jsx("svg",{...r,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:o,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"M13 2.229c0-.413-.112-.818-.324-1.17a2.2 2.2 0 0 0-.88-.822A2.15 2.15 0 0 0 9.51.441c-.325.246-.577.58-.726.964a2.27 2.27 0 0 0 .4 2.303c.27.308.618.534 1.006.652v.095c0 .507-.197.992-.548 1.35a1.86 1.86 0 0 1-1.325.559H5.82c-.675.007-1.33.23-1.874.636V4.36a2.2 2.2 0 0 0 1.218-.936A2.26 2.26 0 0 0 4.751.542 2.16 2.16 0 0 0 3.322 0c-.525 0-1.032.193-1.43.542a2.26 2.26 0 0 0-.413 2.882c.283.451.716.783 1.219.936v5.28a2.2 2.2 0 0 0-1.218.936 2.26 2.26 0 0 0 .413 2.882c.397.35.904.542 1.43.542.524 0 1.031-.193 1.428-.542a2.26 2.26 0 0 0 .413-2.882 2.2 2.2 0 0 0-1.218-.936v-.095c0-.507.198-.992.55-1.35a1.86 1.86 0 0 1 1.324-.559h2.497c.828 0 1.622-.335 2.208-.931a3.2 3.2 0 0 0 .914-2.25V4.36c.45-.137.846-.418 1.127-.802S13 2.708 13 2.229"})})}),At=i.forwardRef(function(n,e){const{height:o=14,width:s=14,...r}=n;return a.jsxs("svg",{...r,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:o,viewBox:"0 0 14 14",fill:"none",children:[a.jsx("rect",{width:"14",height:"2.1",y:"1.75",fill:"currentColor",rx:"1.05"}),a.jsx("rect",{width:"14",height:"2.1",y:"5.95",fill:"currentColor",rx:"1.05"}),a.jsx("rect",{width:"14",height:"2.1",y:"10.15",fill:"currentColor",rx:"1.05"})]})}),Dt=i.forwardRef(function(n,e){const{height:o=14,width:s=14,...r}=n;return a.jsxs("svg",{...r,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:o,viewBox:"0 0 14 14",fill:"none",children:[a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.25 2.714h-1.313l-.437-.857C10.242 1.36 10.108 1 9.625 1h-5.25c-.483 0-.643.409-.875.857l-.438.857H1.75C.784 2.714 0 3.482 0 4.43v6.857C0 12.232.784 13 1.75 13h10.5c.966 0 1.75-.768 1.75-1.714V4.429c0-.947-.784-1.715-1.75-1.715ZM7 11.286c-1.933 0-3.5-1.535-3.5-3.429C3.5 5.964 5.067 4.43 7 4.43s3.5 1.535 3.5 3.428c0 1.894-1.567 3.429-3.5 3.429Z",clipRule:"evenodd"}),a.jsx("path",{fill:"currentColor",d:"M4.75 7.9a2.25 2.25 0 1 1 4.5 0 2.25 2.25 0 0 1-4.5 0Z"})]})}),Ot=i.forwardRef(function(n,e){const{height:o=14,width:s=14,...r}=n;return a.jsx("svg",{...r,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:o,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"M1.3 10.7c.1-.4 0-.7-.2-1A6 6 0 0 1 0 6.3C0 2.8 3.1 0 7 0s7 2.8 7 6.3-3.1 6.3-7 6.3c-.6 0-1.2 0-1.7-.2a1 1 0 0 0-.7 0l-3 1.5-.2.1a.7.7 0 0 1-.7-.9l.6-2.4Z"})})}),Bt=i.forwardRef(function(n,e){const{height:o=14,width:s=14,...r}=n;return a.jsx("svg",{...r,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:o,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.8",d:"m4 7.5 2 2L10.5 5"})})}),Ft=i.forwardRef(function(n,e){const{height:o=14,width:s=14,...r}=n;return a.jsx("svg",{...r,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:o,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M3.5 5.25 7 8.75l3.5-3.5"})})}),Ht=i.forwardRef(function(n,e){const{height:o=14,width:s=14,...r}=n;return a.jsx("svg",{...r,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:o,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M8.75 3.5 5.25 7l3.5 3.5"})})}),Wt=i.forwardRef(function(n,e){const{height:o=14,width:s=14,...r}=n;return a.jsx("svg",{...r,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:o,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M5.25 3.5 8.75 7l-3.5 3.5"})})}),zt=i.forwardRef(function(n,e){const{height:o=14,width:s=14,...r}=n;return a.jsx("svg",{...r,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:o,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M3.5 8.75 7 5.25l3.5 3.5"})})}),Zt=i.forwardRef(function(n,e){const{height:o=14,width:s=14,...r}=n;return a.jsx("svg",{...r,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:o,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.391 7.868a3.501 3.501 0 0 1-6.782 0 1 1 0 0 1-.109.007H.875a.875.875 0 1 1 0-1.75H3.5q.055 0 .109.007a3.501 3.501 0 0 1 6.782 0 1 1 0 0 1 .109-.007h2.625a.875.875 0 1 1 0 1.75H10.5a1 1 0 0 1-.109-.007M7 8.75a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5",clipRule:"evenodd"})})}),qt=i.forwardRef(function(n,e){const{height:o=14,width:s=14,...r}=n;return a.jsx("svg",{...r,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:o,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.6",d:"m4 4 6 6M10 4l-6 6"})})}),Gt=i.forwardRef(function(n,e){const{height:o=14,width:s=14,...r}=n;return a.jsx("svg",{...r,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:o,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M3.5 12.25h7M7 1.75v8.167m0 0L9.917 7M7 9.917 4.083 7"})})}),$t=i.forwardRef(function(n,e){const{height:o=14,width:s=14,...r}=n;return a.jsx("svg",{...r,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:o,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"M8.152.192c.35 0 .663 0 .92.02.268.023.548.074.82.215.398.205.718.532.918.93.137.273.187.553.209.822.018.223.019.487.02.783.302 0 .574.001.803.02.267.023.547.072.82.213.397.206.718.533.918.932.137.273.185.552.207.821.021.26.02.575.02.93v5.012c0 .356.001.671-.02.931-.022.27-.07.549-.207.822-.2.398-.52.725-.918.93a2.126 2.126 0 0 1-.82.214c-.258.021-.57.02-.921.02H5.848c-.35 0-.663.002-.92-.02a2.124 2.124 0 0 1-.82-.214 2.117 2.117 0 0 1-.919-.931 2.177 2.177 0 0 1-.208-.82 10.57 10.57 0 0 1-.018-.792c-.145-.002-.29-.004-.43-.01a6.939 6.939 0 0 1-.595-.05 1.89 1.89 0 0 1-.6-.165 2.117 2.117 0 0 1-.918-.932 2.176 2.176 0 0 1-.207-.821c-.021-.26-.02-.575-.02-.93V3.11c0-.356-.001-.671.02-.931.022-.27.07-.549.207-.822.2-.398.52-.725.918-.93.273-.141.553-.192.82-.214.258-.021.57-.02.921-.02h5.073ZM5.848 4.577c-.377 0-.611 0-.786.015-.166.014-.207.036-.212.039a.5.5 0 0 0-.217.22l-.017.053a1.207 1.207 0 0 0-.024.174c-.015.18-.015.419-.015.8v5.012c0 .382 0 .621.015.801.007.086.016.14.024.174l.017.053a.506.506 0 0 0 .151.18l.066.04c.005.003.046.025.212.039.175.014.409.015.786.015h5.073c.377 0 .612 0 .787-.015.166-.014.207-.036.212-.038a.501.501 0 0 0 .217-.221c.004-.01.026-.056.04-.227.014-.18.015-.419.015-.801V5.879c0-.382 0-.621-.015-.8-.014-.172-.036-.218-.04-.227a.501.501 0 0 0-.217-.221c-.005-.003-.046-.025-.212-.04-.175-.014-.41-.014-.787-.014H5.848Zm-2.769-2.77c-.377 0-.611.002-.787.016-.166.014-.207.036-.212.038a.502.502 0 0 0-.217.221c-.004.01-.026.056-.04.227-.014.18-.015.419-.015.801v5.011c0 .382 0 .621.015.8.007.086.016.14.024.175l.016.052c.044.087.111.156.19.204.017.003.05.011.101.018.116.016.27.028.453.036.114.005.234.007.355.009V5.879c0-.356-.001-.671.02-.93.021-.27.07-.55.207-.822.2-.4.521-.726.918-.932.273-.14.553-.19.82-.213.258-.021.57-.02.92-.02h3.575c0-.298-.001-.498-.014-.653-.014-.171-.036-.218-.04-.227a.501.501 0 0 0-.218-.22l-.046-.015a1.143 1.143 0 0 0-.166-.024c-.175-.014-.409-.015-.786-.015H3.08Z"})})}),Ut=i.forwardRef(function(n,e){const{height:o=14,width:s=14,...r}=n;return a.jsxs("svg",{...r,ref:e,fill:"none",height:o,viewBox:"0 0 14 14",width:s,xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("path",{d:"M7.042 4.475c.49 0 .97.15 1.377.429.407.28.724.677.912 1.142.187.464.237.976.141 1.469a2.57 2.57 0 0 1-.676 1.303 2.5 2.5 0 0 1-1.035.637 2.42 2.42 0 0 1-2.293-.467 2.54 2.54 0 0 1-.719-.994 2.6 2.6 0 0 1 .23-2.389c.226-.348.534-.633.893-.83a2.4 2.4 0 0 1 1.17-.3m-.017 1.157c-.354 0-.694.145-.944.402s-.392.605-.393.968c0 .755.617 1.389 1.354 1.389.73 0 1.317-.627 1.317-1.389 0-.754-.598-1.37-1.334-1.37",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}),a.jsx("path",{d:"M7.023 2c2.73 0 5.303 1.51 6.656 4.154l.127.258.001.002.122.274.005.009v.007a.9.9 0 0 1 .066.303.9.9 0 0 1-.065.317v.005l-.004.008C12.665 10.313 9.904 12 6.997 12 4.09 12 1.333 10.318.066 7.349L.06 7.344l-.003-.01A1.1 1.1 0 0 1 0 7.016c0-.101.02-.202.057-.318L.06 6.69v-.002a7.7 7.7 0 0 1 2.797-3.415A7.43 7.43 0 0 1 7.023 2m0 1.284c-2.308 0-4.601 1.261-5.731 3.726 1.139 2.477 3.401 3.706 5.704 3.706 2.308 0 4.572-1.238 5.7-3.704-1.129-2.466-3.369-3.728-5.673-3.728",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})]})}),Kt=i.forwardRef(function(n,e){const{height:o=14,width:s=14,...r}=n;return a.jsxs("svg",{...r,ref:e,fill:"none",height:o,viewBox:"0 0 14 14",width:s,xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("path",{d:"m2.867 12.098 1.266.804 7-11-1.266-.804zM10.264 4.2c1.005.624 1.86 1.564 2.431 2.813-1.127 2.465-3.39 3.703-5.699 3.703q-.423-.002-.84-.06l-.745 1.17A7.5 7.5 0 0 0 6.996 12c2.907 0 5.669-1.687 6.936-4.663l.003-.008v-.005A.9.9 0 0 0 14 7.008a.9.9 0 0 0-.066-.304v-.008l-.005-.008-.121-.274-.001-.002-.127-.258h-.001a7.7 7.7 0 0 0-2.736-3.022zM7.022 2a7.43 7.43 0 0 0-4.166 1.274A7.7 7.7 0 0 0 .061 6.688L.06 6.69l-.003.007a1 1 0 0 0-.057.32q.005.163.058.317l.003.01.004.005c.658 1.54 1.718 2.73 2.99 3.523l.678-1.067C2.727 9.188 1.866 8.259 1.292 7.01c1.13-2.465 3.423-3.727 5.73-3.727q.416 0 .826.057l.743-1.17A7.4 7.4 0 0 0 7.022 2",fill:"currentColor"}),a.jsx("path",{d:"M8.343 7.219c-.061.408-.292.76-.616.968l-.872 1.369c.305.023.612-.01.906-.1.39-.123.747-.341 1.035-.638.346-.356.581-.81.677-1.303a2.6 2.6 0 0 0-.244-1.69zM7.042 4.475c-.408 0-.81.103-1.17.3-.36.198-.667.483-.893.83a2.61 2.61 0 0 0-.23 2.389q.027.063.058.124l.925-1.455a1.4 1.4 0 0 1 .472-.741l.92-1.444z",fill:"currentColor"})]})}),Yt=i.forwardRef(function(n,e){const{height:o=14,width:s=14,...r}=n;return a.jsx("svg",{...r,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:o,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M7 9.25 9.25 7m0 0L7 4.75M9.25 7H1m0-3.564V3.4c0-.84 0-1.26.163-1.581a1.5 1.5 0 0 1 .656-.656C2.139 1 2.56 1 3.4 1h7.2c.84 0 1.26 0 1.58.163a1.5 1.5 0 0 1 .657.656c.163.32.163.74.163 1.579v7.205c0 .838 0 1.257-.163 1.578a1.5 1.5 0 0 1-.656.656c-.321.163-.74.163-1.579.163H3.398c-.839 0-1.259 0-1.58-.163a1.5 1.5 0 0 1-.655-.656C1 11.86 1 11.44 1 10.6v-.037"})})}),Qt=i.forwardRef(function(n,e){const{height:o=14,width:s=14,...r}=n;return a.jsx("svg",{...r,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:o,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M12 5.5v4.867c0 .746 0 1.12-.14 1.405a1.3 1.3 0 0 1-.562.583c-.275.145-.635.145-1.355.145H4.557c-.72 0-1.08 0-1.355-.145a1.3 1.3 0 0 1-.562-.583c-.14-.285-.14-.659-.14-1.405V3.633c0-.746 0-1.12.14-1.405.123-.25.32-.455.562-.583.275-.145.635-.145 1.355-.145h3.586M12 5.5l-3.857-4M12 5.5H8.786a.655.655 0 0 1-.643-.667V1.5"})})}),Xt=i.forwardRef(function(n,e){const{height:o=14,width:s=14,...r}=n;return a.jsx("svg",{...r,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:o,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M2.49 2.25H5.19c.413 0 .508.004.588.021q.133.03.243.093c.064.036.128.088.421.358l.098.09c.244.224.45.42.7.56q.232.13.486.205l.17.044c.278.061.564.058.912.058h2.702c.447 0 .74 0 .966.017.217.017.307.045.356.068a.75.75 0 0 1 .342.308c.013.024.04.084.056.27.018.198.019.459.019.872v5c0 .413-.001.675-.019.872-.016.186-.043.246-.056.27a.75.75 0 0 1-.342.309c-.049.023-.139.051-.356.067-.225.017-.52.018-.966.018H2.489c-.447 0-.74 0-.966-.018-.217-.016-.307-.044-.356-.067a.75.75 0 0 1-.342-.309c-.013-.024-.04-.084-.056-.27a11 11 0 0 1-.019-.872V3.786c0-.413.001-.675.019-.872.016-.186.043-.246.056-.27a.75.75 0 0 1 .342-.309c.049-.023.139-.051.356-.067.225-.017.52-.018.966-.018"})})}),Jt=i.forwardRef(function(n,e){const{height:o=14,width:s=14,...r}=n;return a.jsx("svg",{...r,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:o,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"M6.293.818a1 1 0 0 1 1.414 0l5.586 5.585c.39.39.39 1.025 0 1.415l-5.586 5.585a1 1 0 0 1-1.414 0L.707 7.818a1 1 0 0 1 0-1.415L4.731 2.38l1.215 1.215a1.187 1.187 0 0 0 .554 1.68v4a1.187 1.187 0 1 0 .95 0V5.275q.06-.026.117-.06l1.865 1.864A1.186 1.186 0 0 0 10.537 8.7a1.188 1.188 0 1 0-.434-2.293L8.135 4.44a1.187 1.187 0 0 0-1.411-1.411l-1.32-1.32z"})})}),en=i.forwardRef(function(n,e){const{height:o=14,width:s=14,...r}=n;return a.jsx("svg",{...r,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:o,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 0a7 7 0 0 1 7 7.2c0 3.1-2 5.8-4.8 6.8-.3 0-.5-.2-.5-.4v-2c0-.6-.2-1-.4-1.3 1.5-.1 3.2-.7 3.2-3.5a3 3 0 0 0-.8-2c.1-.1.4-.8 0-1.8 0 0-.6-.2-2 .7a6.6 6.6 0 0 0-3.5 0C4 2.7 3.3 3 3.3 3c-.4 1-.1 1.7 0 1.9-.5.5-.8 1.1-.8 1.9 0 2.8 1.7 3.4 3.2 3.5-.2.2-.4.5-.4 1-.4.2-1.4.5-2-.6 0 0-.4-.7-1.1-.7 0 0-.7 0 0 .4 0 0 .4.2.7 1 0 0 .4 1.3 2.4 1v1.2c0 .2-.2.5-.5.4A7.2 7.2 0 0 1 0 7.2 7 7 0 0 1 7 0Z",clipRule:"evenodd"})})}),tn=i.forwardRef(function(n,e){const{height:o=14,width:s=14,...r}=n;return a.jsx("svg",{...r,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:o,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 0a7 7 0 1 1 0 14A7 7 0 0 1 7 0ZM1.4 7.7c.3 2.2 1.9 4 4 4.7a9.7 9.7 0 0 1-1.9-4.7h-2Zm9 0c0 1.5-.6 3-1.8 4.7a5.6 5.6 0 0 0 4-4.7h-2.1ZM5 7.7c.2 1.4.8 3 2.1 4.6A8.7 8.7 0 0 0 9 7.7H5Zm.3-6c-2 .6-3.5 2.4-3.8 4.6h2.1l.1-.8a12 12 0 0 1 1.5-3.8Zm1.8 0A8.2 8.2 0 0 0 5 6.3h4.2v-.6a8.2 8.2 0 0 0-2.1-4Zm1.8 0a9.4 9.4 0 0 1 1.7 4.6h2c-.2-2.2-1.7-4-3.7-4.6Z",clipRule:"evenodd"})})}),nn=i.forwardRef(function(n,e){const{height:o=14,width:s=14,...r}=n;return a.jsx("svg",{...r,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:o,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"M9.71 0c.374 0 .678.304.678.678v.677h.677c.872 0 1.58.708 1.58 1.58v.678h.678a.678.678 0 0 1 0 1.355h-.678v1.355h.678a.677.677 0 0 1 0 1.355h-.678v1.354h.678a.678.678 0 0 1 0 1.356h-.678v.677c0 .872-.708 1.58-1.58 1.58h-.677v.678a.678.678 0 0 1-1.356 0v-.678H7.678v.678a.678.678 0 0 1-1.355 0v-.678H4.968v.678a.677.677 0 0 1-1.355 0v-.678h-.677a1.58 1.58 0 0 1-1.58-1.58v-.677H.677a.678.678 0 0 1 0-1.356h.677V7.678H.678a.678.678 0 0 1 0-1.355h.677V4.968H.678a.678.678 0 1 1 0-1.355h.677v-.677c0-.873.708-1.58 1.58-1.58h.678V.677a.678.678 0 0 1 1.355 0v.677h1.355V.678a.677.677 0 1 1 1.355 0v.677h1.354V.678c0-.374.304-.678.678-.678ZM2.936 2.71a.226.226 0 0 0-.226.226v8.128c0 .125.101.227.226.227h8.128a.228.228 0 0 0 .227-.226v-8.13a.227.227 0 0 0-.226-.225h-8.13Zm5.42 1.354c.872 0 1.58.709 1.58 1.582v2.71a1.58 1.58 0 0 1-1.58 1.58h-2.71c-.873 0-1.581-.708-1.582-1.58v-2.71c0-.873.709-1.582 1.582-1.582h2.71ZM5.645 5.42c-.125 0-.226.1-.226.226v2.71c0 .124.101.225.226.225h2.71a.226.226 0 0 0 .225-.226v-2.71a.226.226 0 0 0-.226-.225h-2.71Z"})})}),on=i.forwardRef(function(n,e){const{height:o=14,width:s=14,...r}=n;return a.jsx("svg",{...r,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:o,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"M1 5.7v7.8h4.286v-3.467C5.286 9.076 6.053 8.3 7 8.3s1.714.776 1.714 1.733V13.5H13V5.7L7 .5z"})})}),rn=i.forwardRef(function(n,e){const{height:o=14,width:s=14,...r}=n;return a.jsxs("svg",{...r,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:o,viewBox:"0 0 14 14",fill:"none",children:[a.jsx("circle",{cx:"7",cy:"7",r:"5.25",stroke:"currentColor",strokeWidth:"1.4"}),a.jsx("circle",{cx:"7",cy:"5",r:"0.75",fill:"currentColor",stroke:"none"}),a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.6",d:"M7 7v2.5"})]})}),sn=i.forwardRef(function(n,e){const{height:o=14,width:s=14,...r}=n;return a.jsx("svg",{...r,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:o,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.254 7.814C11.323 7.814 13 6.177 13 4.157S11.323.5 9.254.5 5.507 2.137 5.507 4.157c0 .57.134 1.11.373 1.592a.55.55 0 0 1-.09.64l-4.423 4.318a.5.5 0 0 0 0 .715l1.779 1.737a.5.5 0 0 0 .698 0l.462-.45a.5.5 0 0 0 0-.716l-.585-.57a.5.5 0 0 1 0-.716l.605-.59a.5.5 0 0 1 .698 0l.62.604a.5.5 0 0 0 .698 0l.461-.45a.5.5 0 0 0 0-.716l-.584-.57a.5.5 0 0 1 0-.716l.761-.744a.55.55 0 0 1 .621-.085c.499.24 1.06.374 1.653.374m0-1.625c1.15 0 2.081-.91 2.081-2.032s-.932-2.032-2.081-2.032-2.082.91-2.082 2.032.932 2.032 2.082 2.032",clipRule:"evenodd"})})}),an=i.forwardRef(function(n,e){const{height:o=14,width:s=14,...r}=n;return a.jsx("svg",{...r,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:o,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M14 14h-2.8V9.1c0-1.3-.6-2-1.7-2s-1.8.7-1.8 2V14H4.9V4.9h2.8v1s.9-1.5 2.9-1.5S14 5.6 14 8v6ZM1.7 3.4C.7 3.4 0 2.7 0 1.7S.8 0 1.7 0a1.7 1.7 0 0 1 0 3.4ZM0 14h3.5V4.9H0V14Z",clipRule:"evenodd"})})}),ln=i.forwardRef(function(n,e){const{height:o=14,width:s=14,...r}=n;return a.jsxs("svg",{...r,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:o,viewBox:"3 -2 16 22",fill:"none",children:[a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5",d:"m3 3.7 8 5.9 8-5.9"}),a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5",d:"M18 2H4a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h14a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2Z"})]})}),cn=i.forwardRef(function(n,e){const{height:o=14,width:s=14,...r}=n;return a.jsx("svg",{...r,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:o,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.6",d:"M3.5 7.121h7.243"})})}),un=i.forwardRef(function(n,e){const{height:o=14,width:s=14,...r}=n;return a.jsx("svg",{...r,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:o,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"M9.534 2.136a1.784 1.784 0 0 1 1.944 2.91l-.26.258-2.522-2.522.259-.26c.166-.165.362-.297.579-.386ZM7.989 3.489 2.827 8.65a.5.5 0 0 0-.128.222l-.681 2.497a.5.5 0 0 0 .614.614l2.496-.681a.5.5 0 0 0 .222-.129l5.162-5.162L7.989 3.49Z"})})}),dn=i.forwardRef(function(n,e){const{height:o=14,width:s=14,...r}=n;return a.jsx("svg",{...r,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:o,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.6",d:"M3.5 7.121h7.243M7.122 3.5v7.243"})})}),fn=i.forwardRef(function(n,e){const{height:o=14,width:s=14,...r}=n;return a.jsxs("svg",{...r,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:o,viewBox:"0 0 14 14",fill:"none",children:[a.jsx("rect",{width:"6",height:"6",fill:"currentColor",rx:"1"}),a.jsx("rect",{width:"6",height:"6",x:"8",fill:"currentColor",rx:"1"}),a.jsx("rect",{width:"6",height:"6",y:"8",fill:"currentColor",rx:"1"}),a.jsx("rect",{width:"6",height:"6",x:"8",y:"8",fill:"currentColor",rx:"1"})]})}),hn=i.forwardRef(function(n,e){const{height:o=14,width:s=14,...r}=n;return a.jsx("svg",{...r,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:o,viewBox:"0 0 14 14",fill:"none",children:a.jsxs("g",{fill:"currentColor",children:[a.jsx("path",{d:"M14 14h-3.111v-1.556h1.555V10.89H14V14ZM0 0h6.222v6.222H0V0Zm1.556 1.556v3.11h3.11v-3.11h-3.11ZM7.778 0H14v6.222H7.778V0Zm1.555 1.556v3.11h3.111v-3.11h-3.11ZM0 7.778h6.222V14H0V7.778Zm1.556 1.555v3.111h3.11v-3.11h-3.11Zm10.11-1.555H14V9h-2.333V7.778ZM9.333 10H7.778V7.778h1.555V10ZM9.31 12.444V14H7.779v-2H9.31v.444ZM9.3 11h1v1h-1zM10.3 11h1v1h-1z"}),a.jsx("path",{d:"M11.3 10H14v1h-2.7zM10.3 9h1v1h-1z"})]})})}),pn=i.forwardRef(function(n,e){const{height:o=14,width:s=14,...r}=n;return a.jsx("svg",{...r,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:o,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.1 9.1a1 1 0 0 1-1-1c0-.7.5-1.2 1-1.2.6 0 1 .5 1 1.1 0 .6-.4 1.1-1 1.1Zm.2 2c-.5.5-1.3.8-2.3.8-1 0-1.8-.3-2.3-.8a.3.3 0 0 1 0-.4c.1-.1.3-.1.4 0 .4.4 1 .6 1.9.6.9 0 1.5-.2 1.9-.6 0-.1.3-.1.4 0v.4ZM3.9 8c0-.7.5-1.2 1-1.2s1 .5 1 1.1c0 .6-.5 1.1-1 1.1s-1-.5-1-1ZM14 6.8c0-1-.7-1.8-1.6-1.8-.4 0-.8.2-1 .5a6.8 6.8 0 0 0-4-1.3l.8-3 2.2.6c0 .8.8 1.5 1.5 1.5s1.4-.7 1.4-1.5c0-.7-.7-1.4-1.4-1.4-.6 0-1.2.4-1.4.9L7.8.7l-1 3.6c-1.6 0-3 .5-4.2 1.2-.3-.2-.6-.4-1-.4-.9 0-1.6.8-1.6 1.8 0 .6.3 1.1.8 1.5C.3 11 3.3 13.5 7 13.5s6.6-2.4 6.2-5.1c.5-.3.8-.9.8-1.5Z",clipRule:"evenodd"})})}),vn=i.forwardRef(function(n,e){const{height:o=14,width:s=14,...r}=n;return a.jsxs("svg",{...r,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:o,viewBox:"0 0 14 15",fill:"none",children:[a.jsx("path",{fill:"currentColor",d:"M4.875 10.65a.437.437 0 0 0-.437.438v2.625a.438.438 0 0 0 .68.364l1.07-.713 1.07.713a.438.438 0 0 0 .68-.364v-2.625a.437.437 0 0 0-.438-.438z"}),a.jsx("path",{fill:"currentColor",stroke:"currentColor",strokeWidth:".15",d:"M12.094.075a1.17 1.17 0 0 1 1.169 1.169V12.18a1.17 1.17 0 0 1-1.17 1.17h-2.63a.732.732 0 0 1 0-1.464H11.8V9.413H2.906a.58.58 0 0 0-.58.58v1.313a.58.58 0 0 0 .58.581h.069a.731.731 0 0 1 0 1.463h-.069a2.044 2.044 0 0 1-2.044-2.044V2.12A2.044 2.044 0 0 1 2.906.075zM2.906 1.538a.58.58 0 0 0-.58.58v5.917q.276-.084.58-.085H11.8V1.538z"})]})}),mn=i.forwardRef(function(n,e){const{height:o=14,width:s=14,...r}=n;return a.jsx("svg",{...r,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:o,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"M9.958 0c.194 0 .49.066.663.148 0 0-.112-.12.045.042.141.147 3.117 3.214 3.178 3.278.055.059.024.032.021.03.081.175.135.48.135.673v8.374c0 .62-.743 1.455-1.453 1.455l-2.436-.007A1.02 1.02 0 0 1 10 14H4c-.073 0-.144-.009-.212-.023l-2.345-.006A1.44 1.44 0 0 1 .01 12.56C-.022 11.696.04 2.202.04 1.454.04.708.646.031 1.524.031 2.404.031 9.958 0 9.958 0ZM1.471 1.435a.174.174 0 0 0-.057.037.173.173 0 0 0-.037.056.172.172 0 0 0-.014.067l.014 10.597c0 .193.158.35.352.352L3 12.55V8a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v4.592l1.3.008a.349.349 0 0 0 .351-.349l-.012-7.914a.476.476 0 0 0-.127-.297L9.948 1.56c-.07-.068-.126-.044-.126.052V4.69c0 .293-.406.8-.774.801H3.75c-.403 0-.838-.413-.838-.8l-.002-3.079a.177.177 0 0 0-.174-.176l-1.199-.014a.176.176 0 0 0-.067.013Zm2.69 11.122 5.679.029V8.16H4.16v4.397Zm.232-11.099a.175.175 0 0 0-.176.175v2.435c0 .097.079.176.176.176h3.92a.175.175 0 0 0 .174-.176V1.634a.176.176 0 0 0-.175-.176h-3.92Z"})})}),gn=i.forwardRef(function(n,e){const{height:o=14,width:s=14,...r}=n;return a.jsxs("svg",{...r,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:o,viewBox:"0 0 14 14",fill:"none",children:[a.jsx("path",{fill:"currentColor",d:"M7 1.25c-2.29 0-4.584.943-6.297 2.838l-.434.485C-.08 4.956-.09 5.596.242 5.998c.335.403.888.415 1.237.032l.438-.482c2.7-2.988 7.466-2.988 10.166 0l.438.482c.349.383.902.37 1.237-.032.332-.402.322-1.042-.027-1.425l-.434-.489C11.584 2.194 9.29 1.25 7 1.25ZM6.973 5.3c-1.375.012-2.739.635-3.682 1.831l-.438.557a1.083 1.083 0 0 0-.229.726c.01.268.113.521.287.703.171.181.397.276.63.26a.828.828 0 0 0 .608-.332l.434-.552c1.118-1.417 3.64-1.512 4.834.004l.437.548c.154.202.373.32.606.332a.8.8 0 0 0 .632-.26c.17-.182.273-.435.284-.703a1.108 1.108 0 0 0-.23-.726l-.437-.553C9.728 5.888 8.343 5.288 6.973 5.3Z"}),a.jsx("circle",{cx:"7",cy:"11.05",r:"1.867",fill:"currentColor"})]})}),wn=i.forwardRef(function(n,e){const{height:o=14,width:s=14,...r}=n;return a.jsx("svg",{...r,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:o,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M4.031 4.031h.006M6.195 1.5H4.5c-1.05 0-1.575 0-1.976.204-.353.18-.64.467-.82.82-.204.4-.204.926-.204 1.976v1.695c0 .458 0 .688.052.904.046.19.121.374.224.542.116.189.278.35.603.675l2.937 2.938c.743.742 1.114 1.114 1.542 1.253.377.122.782.122 1.159 0 .428-.14.8-.51 1.542-1.253l1.695-1.695c.742-.743 1.114-1.114 1.253-1.542a1.88 1.88 0 0 0 0-1.159c-.14-.428-.51-.8-1.253-1.542L8.316 2.38c-.324-.325-.486-.487-.675-.603a1.9 1.9 0 0 0-.542-.224C6.883 1.5 6.653 1.5 6.195 1.5M4.344 4.031a.312.312 0 1 1-.625 0 .312.312 0 0 1 .625 0"})})}),xn=i.forwardRef(function(n,e){const{height:o=14,width:s=14,...r}=n;return a.jsx("svg",{...r,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:o,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"M7 0a7 7 0 1 1 0 14A7 7 0 0 1 7 0Zm0 1.866a5.134 5.134 0 0 0-3.257 9.102C3.853 9.002 4.821 7.467 7 7.467c2.179 0 3.146 1.535 3.256 3.5A5.134 5.134 0 0 0 7 1.866ZM7 2.8a1.867 1.867 0 1 1-.001 3.733A1.867 1.867 0 0 1 7 2.8Z"})})}),bn=i.forwardRef(function(n,e){const{height:o=14,width:s=14,...r}=n;return a.jsxs("svg",{...r,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:o,viewBox:"0 0 14 14",fill:"none",children:[a.jsx("path",{stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.4",d:"M7 1.5 1.5 11.5h11L7 1.5Z"}),a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.6",d:"M7 6v2"}),a.jsx("circle",{cx:"7",cy:"9.75",r:"0.75",fill:"currentColor",stroke:"none"})]})}),yn=i.forwardRef(function(n,e){const{height:o=14,width:s=14,...r}=n;return a.jsx("svg",{...r,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:o,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"M10.938 1.003c.196.003.376.007.538.018.331.023.668.074.998.216.488.211.918.56 1.199 1.027.199.33.27.672.3.987.028.297.027.655.027 1.035v5.428c0 .38.001.738-.027 1.035-.03.315-.101.657-.3.987a2.553 2.553 0 0 1-1.019.94l-.18.087c-.33.142-.667.193-.998.216-.324.022-.72.021-1.178.021H3.702c-.459 0-.854 0-1.178-.021a3.168 3.168 0 0 1-.874-.167l-.124-.05a2.583 2.583 0 0 1-1.199-1.026c-.199-.33-.27-.672-.3-.987C0 10.452 0 10.094 0 9.714V4.286c0-.38-.001-.738.027-1.035.03-.315.101-.657.3-.987l.112-.17a2.615 2.615 0 0 1 1.087-.857l.124-.049a3.17 3.17 0 0 1 .874-.167C2.848 1 3.244 1 3.702 1h6.596l.64.003ZM3.702 3c-.487 0-.8 0-1.04.017-.23.016-.312.043-.344.057a.596.596 0 0 0-.275.218c.01-.02-.01 0-.024.151C2 3.623 2 3.867 2 4.286v5.428c0 .42.001.664.019.843.008.091.019.134.024.15.044.07.13.157.274.219h.001c.032.014.113.041.344.057.24.017.553.017 1.04.017h6.596c.486 0 .8 0 1.04-.017.23-.016.312-.043.344-.057a.59.59 0 0 0 .274-.219.758.758 0 0 0 .025-.15c.018-.18.019-.424.019-.843V4.286c0-.42-.001-.664-.019-.843a.763.763 0 0 0-.025-.151.594.594 0 0 0-.274-.218c-.032-.014-.113-.041-.344-.057a7.799 7.799 0 0 0-.427-.015L10.298 3H3.702Zm4.24.5a1 1 0 0 1 0 2h-.008a1 1 0 0 1 0-2h.008Zm2.534 0a1 1 0 0 1 0 2h-.01a1 1 0 0 1 0-2h.01Z"})})}),kn={projects:fn,chat:Ot,articles:St,mail:ln,github:en,globe:tn,linkedin:an,reddit:pn,exit:Yt,camera:Dt,"qr-code":hn,download:Gt,save:mn,pencil:un,"arrow-left":Nt,"arrow-right":_t,cross:qt,checkmark:Bt,plus:dn,minus:cn,window:yn,user:xn,duplicate:$t,eye:Ut,"eye-off":Kt,signal:gn,audio:Vt,hardware:nn,burger:At,repository:vn,"chevron-down":Ft,"chevron-up":zt,"chevron-left":Ht,"chevron-right":Wt,branch:Tt,commit:Zt,folder:Xt,file:Qt,tag:wn,key:sn,git:Jt,home:on,info:rn,warning:bn},le=i.forwardRef(function(n,e){const{"aria-hidden":o,"aria-label":s,"aria-labelledby":r,color:c,role:l,size:p=14,style:h,type:d,...u}=n,v=kn[d];if(!v)return console.warn(`Icon type "${d}" not found`),null;const g=s!==void 0||r!==void 0;return i.createElement(v,{...u,"aria-hidden":o??(g?void 0:!0),"aria-label":s,"aria-labelledby":r,ref:e,height:p,role:l??(g?"img":void 0),style:{flexShrink:0,...h,...c?{color:c}:void 0},width:p})}),ze=i.forwardRef(function(n,e){const{className:o="",color:s,size:r=48,style:c,...l}=n,p=typeof r=="number"?`${r}px`:r;return a.jsx("div",{ref:e,className:["nk-spinner",o].filter(Boolean).join(" "),style:{...c,width:r,height:r,fontSize:p,...s?{color:s}:void 0},role:"status","aria-label":"Loading",...l})});function We(t){return t==null||typeof t=="boolean"||typeof t=="string"&&!t.trim()?!1:Array.isArray(t)?t.some(We):i.isValidElement(t)&&t.type===i.Fragment?We(t.props.children):!0}function jn(t,n){const e=t.getBoundingClientRect(),o=n.clientX-e.left,s=n.clientY-e.top;t.style.setProperty("--nk-button-glow-x",`${o}px`),t.style.setProperty("--nk-button-glow-y",`${s}px`)}const Me=i.forwardRef(function(n,e){const{as:o,children:s,className:r,disabled:c,fullWidth:l=!1,icon:p,iconAlignment:h="left",loading:d=!1,onClick:u,onKeyDown:v,onMouseMove:g,role:w,shape:y,tabIndex:b,textAlignment:x="center",tone:N,variant:E="primary",..._}=n,j=o??"button",P=c||d,C=!!p&&!We(s),L=j!=="button"&&j!=="a",A=m=>{if(P){m.preventDefault(),m.stopPropagation();return}const k=u;k==null||k(m)},F=m=>{jn(m.currentTarget,m);const k=g;k==null||k(m)},H=m=>{const k=v;k==null||k(m),!(m.defaultPrevented||P||!L||m.key!=="Enter"&&m.key!==" ")&&(m.preventDefault(),m.currentTarget.click())},O=j==="button"?{disabled:P,type:_.type??"button"}:{"aria-disabled":P||void 0},M=j==="a"&&P?{href:void 0}:void 0,Z=j==="a"&&P?w??"link":L?w??"button":w,R=j==="button"?b:j==="a"&&P?void 0:P?-1:L?b??0:b;return i.createElement(j,{..._,...O,...M,ref:e,"aria-busy":d||void 0,className:["nk-button",r].filter(Boolean).join(" "),"data-full-width":l||void 0,"data-icon-only":C||void 0,"data-shape":y,"data-tone":N,"data-variant":E,onClick:A,onKeyDown:L?H:v,onMouseMove:F,role:Z,tabIndex:R},a.jsxs(a.Fragment,{children:[a.jsxs("span",{className:"nk-button__content",style:{justifyContent:x},children:[p&&h==="left"?a.jsx(le,{size:14,type:p}):null,s,p&&h==="right"?a.jsx(le,{size:14,type:p}):null]}),d?a.jsx(ze,{"aria-hidden":"true","aria-label":void 0,className:"nk-button__spinner",role:void 0,size:16}):null]}))}),ie=i.forwardRef(function(n,e){const{align:o="left",as:s,className:r,size:c="body",tone:l="default",weight:p,...h}=n,d=s??"p";return i.createElement(d,{...h,ref:e,className:["nk-text",r].filter(Boolean).join(" "),"data-align":o,"data-size":c,"data-tone":l,"data-weight":p})}),In=i.forwardRef(function(n,e){const{children:o,className:s,header:r,spacing:c="standard",...l}=n;return a.jsxs(Ee,{...l,ref:e,className:["nk-card",s].filter(Boolean).join(" "),"data-has-header":r?!0:void 0,"data-spacing":c,children:[r?a.jsxs("div",{className:"nk-card__header",children:[r.title?a.jsx(ie,{as:"span",size:"caption",tone:"muted",weight:"semibold",children:r.title}):null,r.title&&r.subtitle?a.jsx("span",{"aria-hidden":"true",className:"nk-card__separator",children:"•"}):null,r.subtitle?a.jsx(ie,{as:"span",size:"caption",tone:"muted",weight:"semibold",children:r.subtitle}):null]}):null,r?a.jsx("div",{className:"nk-card__content","data-spacing":c,children:o}):o]})});function ce(t){return t!==void 0&&t!==!1&&t!=="false"}function fe(t,n){return t?!0:n}const st=i.createContext(void 0);function Cn(){return i.useContext(st)}const it=i.forwardRef(function(n,e){var C;const{"aria-invalid":o,checked:s,children:r,className:c,defaultChecked:l,disabled:p=!1,invalid:h=!1,name:d,onChange:u,required:v=!1,style:g,value:w="on",...y}=n,b=Cn(),x=String(w),N=(b==null?void 0:b.value)!==void 0,E=p||!!(b!=null&&b.disabled),_=!!(b!=null&&b.required&&!b.hasSelection&&b.validationValue===x),j=h||ce(o);function P(L){u==null||u(L),L.defaultPrevented||b==null||b.handleChange(L)}return a.jsxs("label",{className:["nk-checkbox",c].filter(Boolean).join(" "),"data-disabled":E||void 0,"data-invalid":j||void 0,style:g,children:[a.jsx("input",{...y,ref:e,"aria-invalid":fe(h,o),checked:b?N?(C=b.value)==null?void 0:C.includes(x):void 0:s,className:"nk-checkbox__control",defaultChecked:b&&!N?b.defaultValue.includes(x):l,disabled:E,name:(b==null?void 0:b.name)??d,onChange:P,required:v||_,type:"checkbox",value:w}),a.jsx("span",{"aria-hidden":"true",className:"nk-checkbox__visual",children:a.jsx(le,{className:"nk-checkbox__icon",size:12,type:"checkmark"})}),r!==void 0?a.jsxs(ie,{as:"span",className:"nk-checkbox__label",children:[r,v?a.jsx("span",{"aria-hidden":"true",className:"nk-checkbox__required",children:"*"}):null]}):null]})}),at=Symbol("nk-field-control-metadata");function lt(t){if(typeof t!="function"&&typeof t!="object"||t===null)return;const n=t,e=n[at];return e||(n.type!==void 0&&n.type!==t?lt(n.type):void 0)}function ct(t,n){Object.assign(t,{[at]:{requiredCommunication:n}})}const Rn=Object.freeze([]);function ut(t,n){i.Children.forEach(t,e=>{if(e==null||typeof e=="boolean")return;if(!i.isValidElement(e))throw new Error("CheckboxGroup children must be direct Checkbox elements or fragments");if(e.type===i.Fragment){ut(e.props.children,n);return}if(e.type!==it)throw new Error("CheckboxGroup children must be direct Checkbox elements or fragments");const o=e;n.push({disabled:!!o.props.disabled,required:!!o.props.required,value:String(o.props.value??"on")})})}function En(t){const n=[];ut(t,n);const e=new Set;return n.forEach(o=>{if(e.has(o.value))throw new Error("CheckboxGroup Checkbox values must be unique");e.add(o.value)}),n}function Pn(t,n,e){n.current=t,typeof e=="function"?e(t):e&&(e.current=t)}const dt=i.forwardRef(function(n,e){const{"aria-invalid":o,children:s,className:r,defaultValue:c=Rn,disabled:l=!1,invalid:p=!1,name:h,onChange:d,orientation:u="vertical",required:v=!1,value:g,...w}=n,y=i.useRef(null),[b,x]=i.useState(c),N=g!==void 0,E=N?g:b,_=p||ce(o),j=En(s),P=l?[]:j.filter(m=>!m.disabled).map(m=>m.value),C=new Set(P),L=E.some(m=>C.has(m)),A=P[0],F=j.find(m=>!m.disabled&&m.value===A),H=c.some(m=>C.has(m)),O=!!(F!=null&&F.required),M=i.useCallback(m=>Pn(m,y,e),[e]);i.useEffect(()=>{var S;if(N)return;const m=(S=y.current)==null?void 0:S.querySelector('input[type="checkbox"]'),k=m instanceof HTMLInputElement?m.form:null;if(!k)return;const D=k.getRootNode();function T(B){var K;if(B.target!==k||B.defaultPrevented)return;const Q=Array.from(((K=y.current)==null?void 0:K.querySelectorAll('input[type="checkbox"]'))??[]).find(G=>!G.disabled&&G.value===A);Q&&(Q.required=!!(O||v&&!H)),x(c)}return D.addEventListener("reset",T),()=>D.removeEventListener("reset",T)},[s,c,H,N,v,O,A]);function Z(m){if(!N){const k=m.currentTarget.value,D=m.currentTarget.checked;x(T=>D?[...new Set([...T,k])]:T.filter(S=>S!==k))}d==null||d(m)}const R={defaultValue:c,disabled:l,handleChange:Z,hasSelection:L,name:h,required:v,value:g,validationValue:A};return a.jsx(st.Provider,{value:R,children:a.jsx("div",{...w,ref:M,"aria-disabled":l||void 0,"aria-invalid":fe(p,o),className:["nk-checkbox-group",r].filter(Boolean).join(" "),"data-disabled":l||void 0,"data-invalid":_||void 0,"data-orientation":u,role:"group",children:s})})});ct(dt,"label");const Mn=[{minWidth:he("xl"),marginPercent:32,preferredWidth:1200},{minWidth:he("lg"),marginPercent:20,preferredWidth:1100},{minWidth:he("md"),marginPercent:14,preferredWidth:he("md")},{minWidth:he("sm"),marginPercent:8,preferredWidth:650}],Ln=16;function Sn(t){for(const n of Mn)if(t>=n.minWidth)return n}function Nn(t,n){if(!Number.isFinite(t)||!Number.isFinite(n)||t<he("sm")||n<=0)return;const e=Sn(t);if(!e)return;const o=t*e.marginPercent/100,s=t-o*2,r=Math.min(e.preferredWidth,t-Ln),c=Math.max(s,r);let l=Math.floor(c/n);return l%2===0&&(l-=1),l=Math.max(l,1),Math.min((l-1)*n,t)}const _n=typeof window>"u"?i.useEffect:i.useLayoutEffect;function Vn(t,n){if(typeof t=="function"){t(n);return}t&&(t.current=n)}function Tn(t){const n=window.getComputedStyle(t),e=Number.parseFloat(n.paddingLeft)+Number.parseFloat(n.paddingRight);return Math.max(t.clientWidth-e,0)}function An(t){const e=window.getComputedStyle(t).getPropertyValue("--nk-cell").trim().match(/^([+]?(?:\d+\.?\d*|\.\d+))px$/i);if(!e)return;const o=Number.parseFloat(e[1]);return Number.isFinite(o)&&o>0?o:void 0}function Dn(t,n){const e=i.useRef(null),o=i.useRef(null),s=i.useRef(void 0),[r,c]=i.useState(void 0),l=i.useCallback(d=>{if(!n){if(s.current===void 0)return;s.current=void 0,c(void 0);return}const u=Tn(d),v=An(d),g=v===void 0?void 0:Nn(u,v);s.current!==g&&(s.current=g,c(g))},[n]),p=i.useCallback(d=>{var v;if((v=o.current)==null||v.disconnect(),o.current=null,typeof ResizeObserver>"u")return;const u=new ResizeObserver(()=>l(d));u.observe(d),o.current=u},[l]),h=i.useCallback(d=>{var u;(u=o.current)==null||u.disconnect(),o.current=null,e.current=d,Vn(t,d),!(!d||typeof window>"u"||!n)&&(l(d),p(d))},[p,n,t,l]);return _n(()=>{e.current&&l(e.current)}),i.useEffect(()=>(e.current&&n&&p(e.current),()=>{var d;(d=o.current)==null||d.disconnect(),o.current=null}),[p,n]),{rootReference:h,innerWidth:r}}const On=i.forwardRef(function(n,e){const{accent:o,as:s,children:r,className:c,constrain:l=!0,fill:p="none",mode:h="grid",spacing:d="standard",style:u,theme:v="light",...g}=n,{rootReference:w,innerWidth:y}=Dn(e,l),b=s??"div",x=o!==void 0?{...u,"--nk-accent":o}:u;return i.createElement(b,{...g,ref:w,className:["nk-content",c].filter(Boolean).join(" "),"data-constrain":l,"data-fill":p,"data-mode":h,"data-spacing":d,"data-theme":v,style:x},i.createElement("div",{className:"nk-content__inner",style:y===void 0?void 0:{width:`${y}px`}},r))}),Bn=i.forwardRef(function(n,e){const{"aria-hidden":o,"aria-label":s,"aria-labelledby":r,"aria-orientation":c,className:l,decorative:p=!1,orientation:h="horizontal",role:d,text:u,...v}=n,w=p?{"aria-hidden":!0,"aria-label":void 0,"aria-labelledby":void 0,role:void 0}:{"aria-hidden":o,"aria-label":s??(r===void 0&&h==="horizontal"?u:void 0),"aria-labelledby":r,"aria-orientation":c??h,role:d??"separator"};return a.jsx("div",{...v,...w,ref:e,className:["nk-divider",l].filter(Boolean).join(" "),"data-has-text":!!u||void 0,"data-orientation":h,children:u&&h==="horizontal"?a.jsx("span",{className:"nk-divider__text",children:u}):null})});function De(t){return typeof t=="string"?t.trim().length>0:t!=null&&t!==!1&&t!==!0}function Ge(...t){const n=t.flatMap(o=>(o==null?void 0:o.split(/\s+/).filter(Boolean))??[]),e=[...new Set(n)];return e.length>0?e.join(" "):void 0}const Fn=i.forwardRef(function(n,e){const{children:o,className:s,description:r,disabled:c=!1,error:l,label:p,orientation:h="vertical",required:d=!1,...u}=n,v=i.useId(),g=o.props.id??`${v}-control`,w=`${v}-label`,y=`${v}-description`,b=`${v}-error`,x=De(p),N=De(r),E=De(l),_=lt(o.type),j=_!==void 0,P=c||!!o.props.disabled,C=d||!!o.props.required,L=C&&(_==null?void 0:_.requiredCommunication)==="label",A=Ge(o.props["aria-describedby"],N?y:void 0,E?b:void 0),F=Ge(x?w:void 0,o.props["aria-labelledby"]),H=C?a.jsx("span",{"aria-hidden":"true",className:"nk-field__required",children:"*"}):null,O=L?a.jsx("span",{className:"nk-field__required-text",children:", select at least one"}):null,M=i.cloneElement(o,{"aria-describedby":A,"aria-invalid":E?!0:o.props["aria-invalid"],"aria-labelledby":F,disabled:P||void 0,id:g,required:C||void 0});return a.jsxs("div",{...u,ref:e,className:["nk-field",s].filter(Boolean).join(" "),"data-disabled":P||void 0,"data-has-label":x||void 0,"data-invalid":E||void 0,"data-orientation":h,"data-required":C||void 0,children:[x&&j?a.jsxs(ie,{as:"span",className:"nk-field__label",id:w,size:"caption",weight:"medium",children:[p,H,O]}):null,x&&!j?a.jsxs(ie,{as:"label",className:"nk-field__label",htmlFor:g,id:w,size:"caption",weight:"medium",children:[p,H]}):null,a.jsxs("div",{className:"nk-field__body",children:[M,N?a.jsx(ie,{as:"p",className:"nk-field__description",id:y,size:"caption",tone:"muted",children:r}):null,E?a.jsx(ie,{as:"p","aria-live":"polite",className:"nk-field__error",id:b,size:"caption",tone:"danger",children:l}):null]})]})});function Oe(t){return Array.isArray(t)?t.length>0:t!=null&&String(t).length>0}function Hn(t,n,e){n.current=t,typeof e=="function"?e(t):e&&(e.current=t)}function $e(t){return t!=null&&t!==!1&&t!==!0&&t!==""}function Wn(t){var e;const n=(e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value"))==null?void 0:e.set;n?n.call(t,""):t.value=""}const zn=i.forwardRef(function(n,e){const{"aria-busy":o,"aria-invalid":s,className:r,clearable:c=!1,defaultValue:l,disabled:p=!1,id:h,invalid:d=!1,leading:u,loading:v=!1,onChange:g,readOnly:w=!1,style:y,trailing:b,type:x="text",value:N,...E}=n,_=i.useId(),j=i.useRef(null),[P,C]=i.useState(Oe(l)),[L,A]=i.useState(!1);i.useEffect(()=>{x!=="password"&&A(!1)},[x]);const F=i.useCallback(W=>Hn(W,j,e),[e]),H=h??`${_}-control`,O=p||v,M=d||ce(s),Z=N!==void 0?Oe(N):P,R=x==="password"&&L?"text":x,m=fe(d,s),k=c&&Z&&!w&&!O,D=x==="password"&&!v,T=k||D,S=$e(u),B=$e(b)||T;function Q(W){N===void 0&&C(Oe(W.currentTarget.value)),g==null||g(W)}function K(){const W=j.current;W&&(Wn(W),W.dispatchEvent(new Event("input",{bubbles:!0})),W.focus())}function G(){A(W=>!W)}return a.jsxs("div",{className:["nk-input",r].filter(Boolean).join(" "),"data-clearable":c||void 0,"data-disabled":O||void 0,"data-invalid":M||void 0,"data-leading":S||void 0,"data-loading":v||void 0,"data-read-only":w||void 0,"data-has-trailing-action":T||void 0,"data-trailing":B||void 0,style:y,children:[S?a.jsx("span",{className:"nk-input__leading",children:u}):null,a.jsx("input",{...E,ref:F,"aria-busy":v?!0:o,"aria-invalid":m,className:"nk-input__control",defaultValue:l,disabled:O,id:H,onChange:Q,readOnly:w,type:R,value:N}),B?a.jsxs("span",{className:"nk-input__trailing",children:[b,k?a.jsx(Me,{"aria-controls":H,"aria-label":"Clear input",className:"nk-input__action",icon:"cross",onClick:K,shape:"rectangle",type:"button",variant:"ghost"}):null,D?a.jsx(Me,{"aria-controls":H,"aria-label":L?"Hide password":"Show password","aria-pressed":L,className:"nk-input__action",disabled:O,icon:L?"eye-off":"eye",onClick:G,shape:"rectangle",type:"button",variant:"ghost"}):null]}):null,v?a.jsx(ze,{"aria-hidden":"true","aria-label":void 0,className:"nk-input__spinner",role:void 0,size:14}):null]})}),Ce=i.createContext(void 0),Ue=typeof window>"u"?i.useEffect:i.useLayoutEffect;function Ke(t,n){const e=t.ownerDocument.defaultView;if(!e)return;const o=e.getComputedStyle(t);Array.from(n.style).filter(r=>r.startsWith("--nk-")).forEach(r=>{n.style.removeProperty(r)});for(let r=0;r<o.length;r+=1){const c=o.item(r);c.startsWith("--nk-")&&n.style.setProperty(c,o.getPropertyValue(c))}}function Zn(t){const{children:n,source:e}=t,o=i.useRef(null),s=i.useContext(Ce);return Ue(()=>{const r=o.current;if(!(!r||!s))return s.registerBranch(r)},[s]),Ue(()=>{var d;const r=o.current;if(!r)return;Ke(e,r);const l=e.closest(".nk-content")??e,p=(d=e.ownerDocument.defaultView)==null?void 0:d.MutationObserver;if(!p)return;const h=new p(()=>{Ke(e,r)});return h.observe(l,{attributeFilter:["class","data-theme","style"],attributes:!0}),()=>h.disconnect()},[e]),a.jsx("div",{className:"nk-portal",ref:o,style:{display:"contents"},children:n})}function Se(t){const{children:n,container:e,inheritFrom:o}=t,s=i.useRef(null),[r,c]=i.useState(!1);i.useEffect(()=>{c(!0)},[]);const l=o??s.current,p=(l==null?void 0:l.ownerDocument)??(typeof document>"u"?null:document),h=e??(p==null?void 0:p.body)??null;return a.jsxs(a.Fragment,{children:[o?null:a.jsx("span",{"aria-hidden":"true",hidden:!0,ref:s}),r&&l&&h?yt.createPortal(a.jsx(Zn,{source:l,children:n}),h):null]})}const qn=1e3,Gn=10,Ye=new WeakMap;function Re(t){const n=Ye.get(t);if(n)return n;const e={focusLayers:new Set,layers:[],listeners:new Set};return Ye.set(t,e),e}function Qe(t){t.listeners.forEach(n=>n())}function Ne(t,n){const e=i.useRef(Symbol("nk-overlay-layer")),[,o]=i.useReducer(l=>l+1,0);i.useEffect(()=>{if(!t||!n)return;const l=Re(n),p=()=>o();return l.listeners.add(p),l.layers.push(e.current),Qe(l),()=>{l.listeners.delete(p);const h=l.layers.indexOf(e.current);h>=0&&l.layers.splice(h,1),Qe(l)}},[t,n]);const s=n?Re(n):null,r=(s==null?void 0:s.layers.indexOf(e.current))??-1,c=r>=0?r:(s==null?void 0:s.layers.length)??0;return{id:e.current,zIndex:qn+c*Gn}}function Xe(t,n){const e=Re(t).layers;return e.length>0&&e[e.length-1]===n}function $n(t,n,e){i.useEffect(()=>{if(!t||!n)return;const o=Re(n);return o.focusLayers.add(e),()=>{o.focusLayers.delete(e)}},[t,e,n])}function Je(t,n){const e=Re(t);for(let o=e.layers.length-1;o>=0;o-=1){const s=e.layers[o];if(e.focusLayers.has(s))return s===n}return!1}function Un(t,n){const e=t.composedPath();return n.some(o=>{var c;const s=o.current;if(!s)return!1;if(e.includes(s))return!0;const r=(c=s.ownerDocument.defaultView)==null?void 0:c.Node;return r&&t.target instanceof r?s.contains(t.target):!1})}function _e(t){const{active:n,boundaries:e,dismissOnEscape:o=!0,dismissOnPointerDownOutside:s=!0,layerId:r,onEscapeDismiss:c,onEscapeKeyDown:l,onPointerDownOutside:p,onPointerDownOutsideDismiss:h,ownerDocument:d}=t;i.useEffect(()=>{if(!n||!d)return;function u(g){g.key!=="Escape"||!o||!Xe(d,r)||(l==null||l(g),!g.defaultPrevented&&(g.preventDefault(),c==null||c()))}function v(g){!s||!Xe(d,r)||Un(g,e)||(p==null||p(g),!g.defaultPrevented&&(h==null||h()))}return d.addEventListener("keydown",u,!0),d.addEventListener("pointerdown",v,!0),()=>{d.removeEventListener("keydown",u,!0),d.removeEventListener("pointerdown",v,!0)}},[n,e,o,s,r,c,l,p,h,d])}const Kn=["a[href]","area[href]","button","input:not([type=hidden])","select","textarea","iframe","[contenteditable]:not([contenteditable='false'])","[tabindex]"].join(",");function Yn(t,n){let e=t;for(;e;){if(e.hidden||e.inert||e.getAttribute("aria-hidden")==="true")return!0;const o=e.ownerDocument.defaultView,s=o==null?void 0:o.getComputedStyle(e);if((s==null?void 0:s.display)==="none"||(s==null?void 0:s.visibility)==="hidden")return!0;if(e===n)break;e=e.parentElement}return!1}function Qn(t,n){var r;const e=(r=t.ownerDocument.defaultView)==null?void 0:r.HTMLInputElement;if(!e||!(t instanceof e)||t.type!=="radio"||!t.name)return!0;const o=n.filter(c=>c instanceof e&&c.type==="radio"&&c.name===t.name&&c.form===t.form),s=o.find(c=>c.checked);return s?s===t:o[0]===t}function Xn(t){const n=Array.from(t.querySelectorAll(Kn)).filter(e=>!e.matches(":disabled")&&e.tabIndex>=0&&!Yn(e,t));return n.filter(e=>Qn(e,n))}function et(t,n){const e=[t,...n];return[...new Set(e.flatMap(s=>Xn(s)))].sort((s,r)=>{var p;if(s===r)return 0;const c=s.compareDocumentPosition(r),l=((p=s.ownerDocument.defaultView)==null?void 0:p.Node.DOCUMENT_POSITION_FOLLOWING)??4;return c&l?-1:1})}function Be(t,n,e){return e?t.contains(e)||[...n].some(o=>o.contains(e)):!1}function ft(t){const{active:n,autoFocus:e=!0,container:o,initialFocusReference:s,layerId:r,restoreFocus:c=!0}=t,l=(o==null?void 0:o.ownerDocument)??null,p=i.useRef(new Set),h=i.useCallback(u=>(p.current.add(u),()=>p.current.delete(u)),[]),d=i.useMemo(()=>({registerBranch:h}),[h]);return $n(n&&!!o,l,r),i.useEffect(()=>{var E,_;if(!n||!o)return;const u=o.ownerDocument,v=(E=u.defaultView)==null?void 0:E.HTMLElement,g=(_=u.defaultView)==null?void 0:_.Node,w=v&&u.activeElement instanceof v?u.activeElement:null;let y=!0;function b(){const j=s==null?void 0:s.current;(j&&Be(o,p.current,j)?j:et(o,p.current)[0]??o).focus({preventScroll:!0})}function x(j){if(j.key!=="Tab"||!Je(u,r))return;const P=et(o,p.current);if(P.length===0){j.preventDefault(),o==null||o.focus({preventScroll:!0});return}const C=P[0],L=P[P.length-1],A=u.activeElement,F=Be(o,p.current,A);j.shiftKey&&(A===C||!F)?(j.preventDefault(),L.focus()):!j.shiftKey&&(A===L||!F)&&(j.preventDefault(),C.focus())}function N(j){Je(u,r)&&g&&j.target instanceof g&&!Be(o,p.current,j.target)&&b()}return u.addEventListener("keydown",x,!0),u.addEventListener("focusin",N,!0),e&&Promise.resolve().then(()=>{y&&b()}),()=>{y=!1,u.removeEventListener("keydown",x,!0),u.removeEventListener("focusin",N,!0),c&&(w!=null&&w.isConnected)&&w.focus({preventScroll:!0})}},[n,e,o,s,r,c]),d}function Jn(){const[t,n]=i.useState(!1);return i.useEffect(()=>{const e=typeof window>"u"?null:window;if(!(e!=null&&e.matchMedia))return;const o=e.matchMedia("(prefers-reduced-motion: reduce)"),s=()=>{n(o.matches)};return s(),o.addEventListener("change",s),()=>o.removeEventListener("change",s)},[]),t}function Ve(t,n=200){const e=Jn(),[o,s]=i.useState(t);return i.useEffect(()=>{if(t){s(!0);return}if(!o)return;if(e||n<=0){s(!1);return}const r=window.setTimeout(()=>{s(!1)},n);return()=>window.clearTimeout(r)},[n,t,e,o]),{present:o,state:t?"open":o?"closing":"closed"}}const Pe=new WeakMap;function eo(t,n){i.useEffect(()=>{if(!t||!n)return;const e=Pe.get(n);if(e)e.count+=1;else{const o=n.body,s=n.defaultView,r=s&&Number.parseFloat(s.getComputedStyle(o).paddingRight)||0,c=n.documentElement.clientWidth,l=s&&c>0?Math.max(0,s.innerWidth-c):0,p={count:1,overflow:o.style.overflow,paddingRight:o.style.paddingRight};Pe.set(n,p),o.style.overflow="hidden",l>0&&(o.style.paddingRight=`${r+l}px`)}return()=>{const o=Pe.get(n);o&&(o.count-=1,!(o.count>0)&&(n.body.style.overflow=o.overflow,n.body.style.paddingRight=o.paddingRight,Pe.delete(n)))}},[t,n])}function to(t,n,e){n.current=t,typeof e=="function"?e(t):e&&(e.current=t)}function no(t){const{"aria-label":n,"aria-labelledby":e,children:o,className:s,closeButtonLabel:r="Close modal",exitable:c=!0,forwardedReference:l,initialFocusReference:p,lockScroll:h=!0,onClose:d,open:u,ownerDocument:v,presenceState:g,restoreFocus:w=!0,role:y="dialog",style:b,title:x,trapFocus:N=!0,...E}=t,_=i.useRef(null),j=i.useContext(Ce),P=`${i.useId()}-title`,[C,L]=i.useState(null),A=Ne(!0,v),F=i.useMemo(()=>[_],[]),H=!!(x!=null&&x.trim()),O=e??(n===void 0&&H?P:void 0),M=i.useCallback(D=>{to(D,_,l),L(D)},[l]);i.useLayoutEffect(()=>{C&&(C.inert=!u)},[C,u]);const Z=i.useCallback(()=>{d==null||d("escape")},[d]),R=i.useCallback(()=>{d==null||d("outside")},[d]);_e({active:u,boundaries:F,dismissOnEscape:c,dismissOnPointerDownOutside:c,layerId:A.id,onEscapeDismiss:Z,onPointerDownOutsideDismiss:R,ownerDocument:v});const m=ft({active:u&&N,container:C,initialFocusReference:p,layerId:A.id,restoreFocus:w});eo(h,v);const k=c?a.jsx(Me,{"aria-label":r,className:"nk-modal__close",icon:"cross",onClick:()=>d==null?void 0:d("close-button"),shape:"rectangle",type:"button",variant:"ghost"}):null;return a.jsx(Ce.Provider,{value:u&&N?m:j,children:a.jsx("div",{className:"nk-modal__overlay","data-state":g,role:"presentation",style:{zIndex:A.zIndex},children:a.jsxs(Ee,{...E,ref:M,"aria-hidden":u?void 0:!0,"aria-label":u?n:void 0,"aria-labelledby":u?O:void 0,"aria-modal":u?"true":void 0,className:["nk-modal",s].filter(Boolean).join(" "),"data-state":g,role:u?y:void 0,style:b,tabIndex:-1,children:[H?a.jsxs("div",{className:"nk-modal__header",children:[a.jsx(ie,{as:"h2",className:"nk-modal__title",id:P,size:"subtitle",weight:"semibold",children:x}),k]}):k,o]})})})}const oo=i.forwardRef(function(n,e){const{open:o,portalContainer:s}=n,r=Ve(o),c=(s==null?void 0:s.ownerDocument)??(typeof document>"u"?null:document);return r.present?a.jsx(Se,{container:s,children:a.jsx(no,{...n,forwardedReference:e,ownerDocument:c,presenceState:r.state==="closing"?"closing":"open"})}):null}),ro=Number.parseInt(i.version,10);function ht(t){return ro>=19?t.props.ref:t.ref}function Le(t,n){typeof t=="function"?t(n):t&&(t.current=n)}const so=12,io={bottom:"top",left:"right",right:"left",top:"bottom"};function tt(t,n){const e=Math.min(so,n/2);return Math.min(Math.max(e,t),n-e)}function ao(t){return io[t]}function lo(t,n){return n==="left"||n==="right"?t.width:t.height}function co(t,n,e,o,s,r){const c={bottom:r-e.bottom-n*2,left:e.left-n*2,right:s-e.right-n*2,top:e.top-n*2},l=ao(t),p=lo(o,t),h=c[t]<p&&c[l]>c[t]?l:t;let d=e.left+(e.width-o.width)/2,u=e.top+(e.height-o.height)/2;return h==="top"?u=e.top-o.height-n:h==="bottom"?u=e.bottom+n:h==="left"?d=e.left-o.width-n:d=e.right+n,d=Math.min(Math.max(n,d),Math.max(n,s-n-o.width)),u=Math.min(Math.max(n,u),Math.max(n,r-n-o.height)),{arrowOffset:h==="top"||h==="bottom"?tt(e.left+e.width/2-d,o.width):tt(e.top+e.height/2-u,o.height),left:d,placement:h,top:u}}const uo=8;function pt(t,n,e,o){const[s,r]=i.useState(null);return i.useEffect(()=>{if(!t||!e||!o){r(null);return}const c=e.ownerDocument.defaultView;if(!c)return;const l=c,p=l.getComputedStyle(e),h=Number.parseFloat(p.getPropertyValue("--nk-space-8")),d=Number.isFinite(h)?h:uo;function u(){const w=e==null?void 0:e.getBoundingClientRect(),y=o==null?void 0:o.getBoundingClientRect();!w||!y||r(co(n,d,w,y,l.innerWidth,l.innerHeight))}u(),l.addEventListener("resize",u),l.addEventListener("scroll",u,!0);const v=l.ResizeObserver,g=v?new v(u):null;return g==null||g.observe(e),g==null||g.observe(o),()=>{l.removeEventListener("resize",u),l.removeEventListener("scroll",u,!0),g==null||g.disconnect()}},[t,o,n,e]),s}function fo(t,n,e){n.current=t,Le(e,t)}function ho(t,n,e){n.current=t,Le(e,t)}function po(t,n){const e=(t==null?void 0:t.split(/\s+/).filter(Boolean))??[];return e.includes(n)||e.push(n),e.join(" ")}function vo(t){const n=t.tagName.toLowerCase();return t.getAttribute("role")==="button"&&n!=="button"?!1:["button","input","select","summary","textarea"].includes(n)?!0:n==="a"&&t.hasAttribute("href")}function mo(t){return t==="grid"||t==="listbox"||t==="menu"||t==="tree"?t:"dialog"}const go=i.forwardRef(function(n,e){const{"aria-label":o,"aria-labelledby":s,autoFocus:r=!0,children:c,className:l,closeOnEscape:p=!0,closeOnOutsideInteraction:h=!0,defaultOpen:d=!1,disabled:u=!1,initialFocusReference:v,onEscapeKeyDown:g,onOpenChange:w,onPointerDownOutside:y,open:b,placement:x="bottom",portalContainer:N,restoreFocus:E=!0,role:_="dialog",style:j,tabIndex:P,trapFocus:C=!1,trigger:L,...A}=n;if(L.type===i.Fragment)throw new Error("Popover requires a single non-Fragment trigger");const F=i.useId(),H=i.useContext(Ce),O=`${F}-popover`,M=L.props,Z=ht(L),R=M.id??`${F}-trigger`,m=u||M.disabled===!0||M["aria-disabled"]===!0||M["aria-disabled"]==="true",k=b!==void 0,[D,T]=i.useState(d),S=k?b:D,B=Ve(S),Q=i.useRef(null),K=i.useRef(null),G=i.useRef("programmatic"),W=i.useRef(null),re=i.useRef(S),ue=i.useRef(null),[pe,xe]=i.useReducer(V=>V+1,0),[z,Y]=i.useState(null),[ne,X]=i.useState(null),q=(N==null?void 0:N.ownerDocument)??(z==null?void 0:z.ownerDocument)??(typeof document>"u"?null:document),de=Ne(B.present,q),J=i.useMemo(()=>[Q,K],[]),oe=pt(B.present,x,z,ne),ve=S?{}:{inert:""},be=i.useCallback(V=>{ho(V,Q,Z),Y(V)},[Z]),ye=i.useCallback(V=>{fo(V,K,e),X(V)},[e]),se=i.useCallback((V,U)=>{S!==V&&(k?(W.current={open:V,reason:U},xe()):(G.current=U,T(V)),w==null||w(V,U))},[k,w,S]),ke=i.useCallback(()=>{se(!1,"escape")},[se]),me=i.useCallback(()=>{se(!1,"outside")},[se]),f=i.useCallback(V=>{var Ie;if(y==null||y(V),V.defaultPrevented)return;const U=(Ie=q==null?void 0:q.defaultView)==null?void 0:Ie.HTMLElement;ue.current=U?V.composedPath().find(ge=>ge instanceof U&&ge.tabIndex>=0)??V.target:V.target},[y,q]);_e({active:S,boundaries:J,dismissOnEscape:p,dismissOnPointerDownOutside:h,layerId:de.id,onEscapeDismiss:ke,onEscapeKeyDown:g,onPointerDownOutside:f,onPointerDownOutsideDismiss:me,ownerDocument:q});const I=ft({active:S&&C,autoFocus:r,container:ne,initialFocusReference:v,layerId:de.id,restoreFocus:E});i.useEffect(()=>{if(!S||C||!r||!ne)return;let V=!0;return Promise.resolve().then(()=>{if(!V)return;const U=v==null?void 0:v.current;(U&&ne.contains(U)?U:ne).focus({preventScroll:!0})}),()=>{V=!1}},[r,v,S,ne,C]),i.useEffect(()=>{var Ze;const V=re.current;re.current=S;const U=W.current,Ie=k?V!==S&&(U==null?void 0:U.open)===S?U.reason:"programmatic":G.current;if(W.current=null,S){G.current="programmatic",ue.current=null;return}const ge=q==null?void 0:q.activeElement,Te=ue.current,Ae=(Ze=q==null?void 0:q.defaultView)==null?void 0:Ze.HTMLElement,bt=Ie==="outside"&&Ae&&Te instanceof Ae&&ge instanceof Ae&&(Te===ge||Te.contains(ge));V&&!C&&E&&!bt&&(z==null||z.focus({preventScroll:!0})),ue.current=null},[pe,k,S,q,E,C,z]),i.useEffect(()=>{u&&S&&se(!1,"programmatic")},[u,S,se]);function $(V){var U;(U=M.onClick)==null||U.call(M,V),!(V.defaultPrevented||m)&&se(!S,"trigger")}function ee(V){var U;(U=M.onKeyDown)==null||U.call(M,V),!(V.defaultPrevented||m||vo(V.currentTarget)||V.key!=="Enter"&&V.key!==" ")&&(V.preventDefault(),V.currentTarget.click())}if(u)return L;const te=typeof L.type=="string"?L.type:null,ae=te==="button"||te==="input"||te==="select"||te==="summary"||te==="textarea"||te==="a"&&!!M.href,je=i.cloneElement(L,{"aria-controls":S?po(M["aria-controls"],O):M["aria-controls"],"aria-expanded":S,"aria-haspopup":M["aria-haspopup"]??mo(_),"aria-disabled":m?!0:M["aria-disabled"],className:[M.className,"nk-popover__trigger"].filter(Boolean).join(" "),id:R,onClick:$,onKeyDown:ee,ref:be,role:M.role??(ae?void 0:"button"),tabIndex:m?-1:M.tabIndex??(ae?void 0:0)});return a.jsxs(a.Fragment,{children:[je,a.jsx(Ce.Provider,{value:S&&C?I:H,children:B.present&&q?a.jsx(Se,{container:N,inheritFrom:z,children:a.jsxs(Ee,{...A,...ve,ref:ye,"aria-hidden":S?void 0:!0,"aria-label":S?o:void 0,"aria-labelledby":S?s??(o===void 0?R:void 0):void 0,className:["nk-popover",l].filter(Boolean).join(" "),"data-placement":(oe==null?void 0:oe.placement)??x,"data-state":B.state==="closing"?"closing":"open",id:O,role:S?_:void 0,style:oe?{...j,"--nk-popover-arrow-offset":`${oe.arrowOffset}px`,left:oe.left,top:oe.top,zIndex:de.zIndex}:{...j,visibility:"hidden",zIndex:de.zIndex},tabIndex:P??-1,children:[a.jsx("span",{"aria-hidden":"true",className:"nk-popover__arrow"}),a.jsx("div",{className:"nk-popover__content",children:c})]})}):null})]})}),wo=3,xo=10,vt=4;function bo(t){return Number.isFinite(t)?Math.min(xo,Math.max(wo,Math.trunc(t))):vt}function we(t,n,e){return(n==="numeric"?t.replace(/[^0-9]/g,""):t.replace(/[^0-9a-z]/gi,"").toUpperCase()).slice(0,e)}function yo(t,n,e){n.current=t,typeof e=="function"?e(t):e&&(e.current=t)}function ko(t,n){var o;const e=(o=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value"))==null?void 0:o.set;e?e.call(t,n):t.value=n}function Fe(t,n,e){const o=Math.min(e-1,Math.max(0,n)),s=Math.min(o+1,t.value.length);t.focus(),t.setSelectionRange(o,s)}function jo(t){const{defaultValue:n,disabled:e,forwardedReference:o,length:s,mode:r,onChange:c,onComplete:l,onFocus:p,onKeyDown:h,onPaste:d,onSelect:u,readOnly:v,value:g}=t,w=bo(s),y=we(n,r,w),b=i.useRef(null),[x,N]=i.useState(y),[E,_]=i.useState(0),j=g!==void 0,P=we(j?g:x,r,w),C=i.useCallback(R=>yo(R,b,o),[o]);i.useEffect(()=>{!j&&x!==P&&N(P)},[j,P,x]),i.useEffect(()=>{var D;if(j)return;const R=(D=b.current)==null?void 0:D.form;if(!R)return;const m=R.getRootNode();function k(T){T.target!==R||T.defaultPrevented||(N(y),_(0))}return m.addEventListener("reset",k),()=>m.removeEventListener("reset",k)},[j,y]);function L(R){const m=R.selectionStart??P.length;return Math.min(w-1,Math.max(0,m))}function A(R){const m=R.currentTarget,k=m.selectionStart??m.value.length,D=we(m.value,r,w),T=we(m.value.slice(0,k),r,w).length;m.value=D,j||N(D),c==null||c(R),D.length===w&&D!==P&&(l==null||l(D));const S=Math.min(w-1,T);_(S),m.setSelectionRange(S,Math.min(S+1,D.length))}function F(R){if(d==null||d(R),R.defaultPrevented||e||v)return;const m=we(R.clipboardData.getData("text"),r,w);if(R.preventDefault(),m.length===0)return;const k=R.currentTarget,D=k.selectionStart??P.length,T=k.selectionEnd??D,S=m.length===w?m:we(P.slice(0,D)+m+P.slice(T),r,w),B=m.length===w?w:Math.min(w,D+m.length);ko(k,S),k.setSelectionRange(B,B),k.dispatchEvent(new Event("input",{bubbles:!0}))}function H(R){if(h==null||h(R),R.defaultPrevented||R.key!=="ArrowLeft"&&R.key!=="ArrowRight")return;R.preventDefault();const m=R.key==="ArrowLeft"?-1:1,k=Math.min(w-1,Math.max(0,L(R.currentTarget)+m));_(k),Fe(R.currentTarget,k,w)}function O(R){p==null||p(R);const m=Math.min(w-1,P.length);_(m),Fe(R.currentTarget,m,w)}function M(R){u==null||u(R),_(L(R.currentTarget))}function Z(R,m){if(R.preventDefault(),e)return;const k=b.current;k&&(_(m),Fe(k,m,w))}return{activeIndex:E,handleChange:A,handleFocus:O,handleKeyDown:H,handlePaste:F,handleSelect:M,handleSlotPointerDown:Z,inputCallbackReference:C,length:w,renderedValue:P}}const Io=i.forwardRef(function(n,e){const{"aria-invalid":o,autoCapitalize:s,autoComplete:r="one-time-code",className:c,censored:l=!1,defaultValue:p="",disabled:h=!1,invalid:d=!1,length:u=vt,mode:v="numeric",onChange:g,onComplete:w,onFocus:y,onKeyDown:b,onPaste:x,onSelect:N,readOnly:E=!1,style:_,value:j,wrap:P=!1,...C}=n,{activeIndex:L,handleChange:A,handleFocus:F,handleKeyDown:H,handlePaste:O,handleSelect:M,handleSlotPointerDown:Z,inputCallbackReference:R,length:m,renderedValue:k}=jo({defaultValue:p,disabled:h,forwardedReference:e,length:u,mode:v,onChange:g,onComplete:w,onFocus:y,onKeyDown:b,onPaste:x,onSelect:N,readOnly:E,value:j}),D=d||ce(o),T=!P&&m>=6&&m%2===0,S=m/2,B={..._,"--nk-pin-input-columns":Math.ceil(m/2)};return a.jsxs("span",{className:["nk-pin-input",c].filter(Boolean).join(" "),"data-disabled":h||void 0,"data-invalid":D||void 0,"data-read-only":E||void 0,"data-wrap":P||void 0,style:B,children:[a.jsx("input",{...C,ref:R,"aria-invalid":fe(d,o),autoCapitalize:s??(v==="alphanumeric"?"characters":"off"),autoComplete:r,className:"nk-pin-input__control",disabled:h,inputMode:v==="numeric"?"numeric":"text",maxLength:m,minLength:m,onChange:A,onFocus:F,onKeyDown:H,onPaste:O,onSelect:M,pattern:v==="numeric"?`[0-9]{${m}}`:`[0-9A-Za-z]{${m}}`,readOnly:E,spellCheck:!1,type:"text",value:k}),a.jsx("span",{"aria-hidden":"true",className:"nk-pin-input__slots",children:Array.from({length:m},(Q,K)=>a.jsxs("span",{className:"nk-pin-input__slot-group",children:[T&&K===S?a.jsx("span",{className:"nk-pin-input__separator",children:"-"}):null,a.jsx("span",{className:"nk-pin-input__slot","data-active":L===K||void 0,onPointerDown:G=>Z(G,K),children:l&&k[K]?a.jsx("span",{className:"nk-pin-input__censor"}):k[K]??""})]},K))})]})}),mt=i.createContext(void 0);function Co(){const t=i.useContext(mt);if(!t)throw new Error("Radio must be rendered within RadioGroup");return t}function Ro(t,n,e){n.current=t,typeof e=="function"?e(t):e&&(e.current=t)}const Eo=i.forwardRef(function(n,e){const{children:o,className:s,disabled:r=!1,style:c,value:l,...p}=n,h=Co(),d=i.useRef(null),u=h.disabled||r,v=h.value!==void 0,g=h.value===l,w=i.useCallback(y=>Ro(y,d,e),[e]);return i.useEffect(()=>{var y;!v&&u&&((y=d.current)!=null&&y.checked)&&(d.current.checked=!1)},[v,u]),a.jsxs("label",{className:["nk-radio",s].filter(Boolean).join(" "),"data-disabled":u||void 0,style:c,children:[a.jsx("input",{...p,ref:w,checked:v?!u&&g:void 0,className:"nk-radio__control",defaultChecked:v?void 0:!u&&h.defaultValue===l,disabled:u,name:h.name,onChange:h.onChange,required:h.required,type:"radio",value:l}),a.jsx("span",{"aria-hidden":"true",className:"nk-radio__visual"}),a.jsx(ie,{as:"span",className:"nk-radio__label",children:o})]})}),gt=i.forwardRef(function(n,e){const{"aria-invalid":o,children:s,className:r,defaultValue:c,disabled:l=!1,invalid:p=!1,name:h,onChange:d,orientation:u="vertical",required:v=!1,value:g,...w}=n,y=p||ce(o),b={defaultValue:c,disabled:l,name:h,onChange:d,required:v,value:g};return a.jsx(mt.Provider,{value:b,children:a.jsx("div",{...w,ref:e,"aria-disabled":l||void 0,"aria-invalid":fe(p,o),"aria-required":v||void 0,className:["nk-radio-group",r].filter(Boolean).join(" "),"data-disabled":l||void 0,"data-invalid":y||void 0,"data-orientation":u,role:"radiogroup",children:s})})});ct(gt,"group");function He(t,n,e){if(t.length===0)return-1;for(let o=1;o<=t.length;o+=1){const s=(n+e*o+t.length)%t.length;if(!t[s].disabled)return s}return-1}function Po(t,n,e){for(let o=1;o<=t.length;o+=1){const s=(e+o+t.length)%t.length,r=t[s];if(!r.disabled&&r.label.toLocaleLowerCase().startsWith(n))return s}return-1}function Mo(t){const n=new Set;t.forEach(e=>{if(n.has(e.value))throw new Error("Select option values must be unique");n.add(e.value)})}function Lo(t,n,e){n.current=t,typeof e=="function"?e(t):e&&(e.current=t)}function So(t){const{"aria-invalid":n,children:e,className:o,defaultValue:s,disabled:r=!1,forwardedReference:c,invalid:l=!1,placeholder:p,style:h,value:d,...u}=t,v=fe(l,n),g=l||ce(n);return a.jsxs("span",{className:["nk-select",o].filter(Boolean).join(" "),"data-disabled":r||void 0,"data-invalid":g||void 0,"data-mode":"native",style:h,children:[a.jsxs("select",{...u,ref:c,"aria-invalid":v,className:"nk-select__control",defaultValue:d===void 0?s??(p!==void 0?"":void 0):void 0,disabled:r,value:d,children:[p!==void 0?a.jsx("option",{disabled:!0,value:"",children:p}):null,e]}),a.jsx(le,{className:"nk-select__icon",type:"chevron-down"})]})}function No(t,n,e){const[o,s]=i.useState(null);return i.useEffect(()=>{if(!t||!n){s(null);return}const r=n.ownerDocument.defaultView;if(!r)return;const c=r;function l(){const d=n==null?void 0:n.getBoundingClientRect();if(!d)return;const u=8,v=4,g=c.innerHeight-d.bottom-v-u,w=d.top-v-u,y=g<160&&w>g,b=Math.max(72,y?w:g),x=e==null?void 0:e.getBoundingClientRect(),N=Math.max(d.width,(x==null?void 0:x.width)??d.width),E=Math.min(Math.max(u,d.left),Math.max(u,c.innerWidth-u-N)),_=y?Math.max(u,d.top-v-Math.min((x==null?void 0:x.height)??b,b)):d.bottom+v;s({left:E,maxHeight:b,minWidth:d.width,top:_})}l(),c.addEventListener("resize",l),c.addEventListener("scroll",l,!0);const p=c.ResizeObserver,h=p?new p(l):null;return h==null||h.observe(n),e&&(h==null||h.observe(e)),()=>{c.removeEventListener("resize",l),c.removeEventListener("scroll",l,!0),h==null||h.disconnect()}},[t,e,n]),o}function _o(t){const{active:n,closeOnEscape:e,closeOnOutsideInteraction:o,highlightedIndex:s,id:r,listboxReference:c,onEscapeDismiss:l,onEscapeKeyDown:p,onHighlight:h,onOutsideDismiss:d,onPointerDownOutside:u,onSelect:v,options:g,ownerDocument:w,position:y,selectedValue:b,state:x,triggerReference:N}=t,E=i.useRef(null),_=Ne(!0,w),j=i.useMemo(()=>[N,E],[N]),P=i.useCallback(C=>{E.current=C,c(C)},[c]);return _e({active:n,boundaries:j,dismissOnEscape:e,dismissOnPointerDownOutside:o,layerId:_.id,onEscapeDismiss:l,onEscapeKeyDown:p,onPointerDownOutside:u,onPointerDownOutsideDismiss:d,ownerDocument:w}),a.jsx("div",{"aria-hidden":n?void 0:!0,"aria-labelledby":r,className:"nk-select__listbox","data-state":x,id:`${r}-listbox`,ref:P,role:"listbox",style:y?{left:y.left,maxHeight:y.maxHeight,minWidth:y.minWidth,top:y.top,zIndex:_.zIndex}:{visibility:"hidden",zIndex:_.zIndex},children:g.map((C,L)=>a.jsxs("div",{"aria-disabled":C.disabled||void 0,"aria-selected":C.value===b,className:"nk-select__option","data-highlighted":L===s||void 0,"data-selected":C.value===b||void 0,id:`${r}-option-${L}`,onPointerDown:A=>{A.preventDefault(),C.disabled||v(C)},onPointerMove:()=>{C.disabled||h(L)},role:"option",children:[C.icon?a.jsx(le,{type:C.icon}):null,a.jsx("span",{className:"nk-select__option-label",children:C.label}),C.value===b?a.jsx(le,{className:"nk-select__check",type:"checkmark"}):null]},C.value))})}function Vo(t){var me;const{"aria-invalid":n,className:e,closeOnEscape:o=!0,closeOnOutsideInteraction:s=!0,defaultValue:r="",disabled:c=!1,displayOverride:l,form:p,forwardedReference:h,id:d,invalid:u=!1,name:v,onChange:g,onClick:w,onEscapeKeyDown:y,onKeyDown:b,onOpenChange:x,onPointerDownOutside:N,options:E,placeholder:_,portalContainer:j,required:P=!1,style:C,value:L,width:A,...F}=t;Mo(E);const H=i.useId(),O=d??H,M=i.useRef(null),Z=i.useRef(null),R=i.useRef(null),m=i.useRef(""),[k,D]=i.useState(null),[T,S]=i.useState(!1),[B,Q]=i.useState(-1),[K,G]=i.useState(r),W=L!==void 0,re=W?L:K,ue=E.find(f=>f.value===re),pe=u||ce(n),xe=fe(u,n),z=Ve(T),Y=(j==null?void 0:j.ownerDocument)??((me=M.current)==null?void 0:me.ownerDocument)??(typeof document>"u"?null:document),ne=No(z.present,M.current,k),X=A===void 0?C:{...C,width:A},q=l??ue,de=i.useCallback(f=>{Lo(f,M,h)},[h]),J=i.useCallback(f=>{T!==f&&(S(f),x==null||x(f))},[x,T]),oe=i.useCallback((f=1)=>{const I=E.findIndex(ee=>ee.value===re&&!ee.disabled),$=f===1?-1:E.length;Q(I>=0?I:He(E,$,f)),J(!0)},[E,re,J]),ve=i.useCallback(f=>{var I;f.disabled||(W||G(f.value),J(!1),(I=M.current)==null||I.focus(),g==null||g(f.value))},[W,g,J]),be=i.useCallback(()=>{var f;J(!1),(f=M.current)==null||f.focus()},[J]),ye=i.useCallback(()=>{J(!1)},[J]);function se(f){w==null||w(f),!(f.defaultPrevented||c)&&(T?J(!1):oe())}function ke(f){if(b==null||b(f),!(f.defaultPrevented||c)){if(f.key==="ArrowDown"||f.key==="ArrowUp"){f.preventDefault();const I=f.key==="ArrowDown"?1:-1;T?Q($=>He(E,$,I)):oe(I);return}if(f.key==="Home"||f.key==="End"){if(f.preventDefault(),!T)oe(f.key==="Home"?1:-1);else{const I=f.key==="Home"?1:-1,$=I===1?-1:E.length;Q(He(E,$,I))}return}if(f.key==="Enter"||f.key===" "){f.preventDefault();const I=E[B];T&&I?ve(I):T||oe();return}if(f.key==="Tab"){J(!1);return}if(f.key.length===1&&!f.altKey&&!f.ctrlKey&&!f.metaKey){const I=f.currentTarget.ownerDocument.defaultView;if(!I)return;const $=f.key.toLocaleLowerCase(),ee=m.current+$,te=Array.from(ee).every(je=>je===$);m.current=te?$:ee,R.current!==null&&I.clearTimeout(R.current),R.current=I.setTimeout(()=>{m.current="",R.current=null},500);const ae=Po(E,m.current,B);ae>=0&&(f.preventDefault(),T||J(!0),Q(ae))}}}return i.useEffect(()=>{var f;if(T&&B>=0){const I=Y==null?void 0:Y.getElementById(`${O}-option-${B}`);I&&(k!=null&&k.contains(I))&&((f=I.scrollIntoView)==null||f.call(I,{block:"nearest"}))}},[B,O,k,T]),i.useEffect(()=>{var $;const f=($=M.current)==null?void 0:$.form;if(!f)return;function I(){const ee=Z.current,te=W?re:r;if(ee){const ae=Array.from(ee.options),je=ae.find(V=>V.value===te)??ae[0];ae.forEach(V=>{V.defaultSelected=V===je})}W||G(r),J(!1)}return f.addEventListener("reset",I),()=>f.removeEventListener("reset",I)},[r,p,W,re,J]),i.useEffect(()=>()=>{var I;const f=(I=M.current)==null?void 0:I.ownerDocument.defaultView;f&&R.current!==null&&f.clearTimeout(R.current)},[]),a.jsxs("span",{className:["nk-select",e].filter(Boolean).join(" "),"data-disabled":c||void 0,"data-invalid":pe||void 0,"data-mode":"custom","data-open":T||void 0,style:X,children:[a.jsxs("button",{...F,ref:de,"aria-activedescendant":T&&B>=0?`${O}-option-${B}`:void 0,"aria-controls":`${O}-listbox`,"aria-expanded":T,"aria-haspopup":"listbox","aria-invalid":xe,"aria-required":P||void 0,"aria-autocomplete":"none",className:"nk-select__trigger",disabled:c,form:p,id:O,onClick:se,onKeyDown:ke,role:"combobox",type:"button",children:[q?a.jsxs("span",{className:"nk-select__value",children:[q.icon?a.jsx(le,{type:q.icon}):null,a.jsx("span",{className:"nk-select__value-label",children:q.label})]}):a.jsx("span",{className:"nk-select__placeholder",children:_}),a.jsx(le,{className:"nk-select__icon",type:"chevron-down"})]}),v||P?a.jsxs("select",{ref:Z,"aria-hidden":"true",className:"nk-select__form-control",disabled:c,form:p,name:v,onChange:()=>{},onInvalid:f=>{var I;f.preventDefault(),(I=M.current)==null||I.focus()},required:P,tabIndex:-1,value:re,children:[a.jsx("option",{value:""}),E.map(f=>a.jsx("option",{disabled:f.disabled,value:f.value,children:f.label},f.value))]}):null,z.present&&Y?a.jsx(Se,{container:j,inheritFrom:M.current,children:a.jsx(_o,{active:T,closeOnEscape:o,closeOnOutsideInteraction:s,highlightedIndex:B,id:O,listboxReference:D,onEscapeDismiss:be,onEscapeKeyDown:y,onHighlight:Q,onOutsideDismiss:ye,onPointerDownOutside:N,onSelect:ve,options:E,ownerDocument:Y,position:ne,selectedValue:re,state:z.state==="closing"?"closing":"open",triggerReference:M})}):null]})}const To=i.forwardRef(function(n,e){const{options:o}=n;return o!==void 0?a.jsx(Vo,{...n,forwardedReference:e}):a.jsx(So,{...n,forwardedReference:e})}),Ao=i.forwardRef(function(n,e){const{"aria-hidden":o=!0,className:s,height:r="1em",shape:c="rectangle",style:l,width:p=c==="circle"?"1em":"100%",...h}=n;return a.jsx("div",{...h,ref:e,"aria-hidden":o,className:["nk-skeleton",s].filter(Boolean).join(" "),"data-shape":c,style:{...l,width:p,height:r}})}),Do=i.forwardRef(function(n,e){const{"aria-invalid":o,className:s,disabled:r=!1,style:c,...l}=n;return a.jsxs("span",{className:["nk-switch",s].filter(Boolean).join(" "),"data-disabled":r||void 0,"data-invalid":ce(o)||void 0,style:c,children:[a.jsx("input",{...l,ref:e,"aria-invalid":o,className:"nk-switch__control",disabled:r,role:"switch",type:"checkbox"}),a.jsx("span",{"aria-hidden":"true",className:"nk-switch__track",children:a.jsx("span",{className:"nk-switch__thumb"})})]})});function nt(t){return Number.isFinite(t)?Math.max(1,Math.floor(t)):1}const Oo=i.forwardRef(function(n,e){const{"aria-invalid":o,className:s,disabled:r=!1,invalid:c=!1,minRows:l,readOnly:p=!1,resize:h="vertical",rows:d,style:u,...v}=n,g=nt(d??l??3),y=`calc(${nt(l??d??3)*1.25}em + var(--nk-text-area-padding) * 2 + var(--nk-text-area-border-width) * 2)`,b={...u,"--nk-text-area-min-height":y};return a.jsx("textarea",{...v,ref:e,"aria-invalid":fe(c,o),className:["nk-text-area",s].filter(Boolean).join(" "),"data-invalid":c||ce(o)||void 0,"data-resize":h,disabled:r,readOnly:p,rows:g,style:b})}),Bo=500,wt=i.createContext(null);function Fo(t){const{children:n,delay:e=Bo}=t,o=i.useMemo(()=>({delay:e}),[e]);return a.jsx(wt.Provider,{value:o,children:n})}const xt=500,ot=100;function Ho(t,n,e,o){n.current=t,Le(e,t),Le(o,t)}function Wo(t){return Number.isFinite(t)?Math.max(0,t):xt}function zo(t,n){const e=(t==null?void 0:t.split(/\s+/).filter(Boolean))??[];return e.includes(n)||e.push(n),e.join(" ")}const Zo=i.forwardRef(function(n,e){const{children:o,className:s,content:r,contentClassName:c,contentStyle:l,delay:p,disabled:h=!1,onOpenChange:d,placement:u="top",portalContainer:v,style:g}=n;if(r==null||typeof r=="boolean"||typeof r=="string"&&!r.trim())throw new Error("Tooltip content must not be empty");if(o.type===i.Fragment)throw new Error("Tooltip requires a single non-Fragment trigger");const y=`${i.useId()}-tooltip`,b=i.useContext(wt),x=o.props,N=ht(o),E=i.useRef(null),_=i.useRef(null),j=i.useRef(h),P=i.useRef(!1),C=i.useRef(null),L=i.useRef(null),A=i.useRef(null),F=i.useRef(!1),H=i.useRef(!1),O=i.useRef(!1),M=i.useRef(!1),[Z,R]=i.useState(null),[m,k]=i.useState(null),[D,T]=i.useState(!1);j.current=h;const S=Wo(p??(b==null?void 0:b.delay)??xt),B=Ve(D),Q=(v==null?void 0:v.ownerDocument)??(Z==null?void 0:Z.ownerDocument)??(typeof document>"u"?null:document),K=Ne(B.present,Q),G=pt(B.present,u,Z,m),W=i.useMemo(()=>[E,_],[]),re=zo(x["aria-describedby"],y),ue=D&&B.present?re:x["aria-describedby"],pe=i.useCallback(f=>{Ho(f,E,N,e),R(f)},[e,N]),xe=i.useCallback(f=>{_.current=f,f||(M.current=!1),k(f)},[]),z=i.useCallback(()=>{const f=C.current;f&&f.ownerWindow.clearTimeout(f.timerId),C.current=null},[]),Y=i.useCallback(()=>{const f=L.current;f&&f.ownerWindow.clearTimeout(f.timerId),L.current=null},[]),ne=i.useCallback(()=>{const f=A.current;f&&f.ownerWindow.clearTimeout(f.timerId),A.current=null},[]),X=i.useCallback(f=>{P.current!==f&&(f||(M.current=!1),P.current=f,T(f),d==null||d(f))},[d]),q=i.useCallback(f=>{var ee,te;if(Y(),H.current||O.current||M.current)return;if(f===0){X(!1);return}const I=((ee=E.current)==null?void 0:ee.ownerDocument.defaultView)??((te=_.current)==null?void 0:te.ownerDocument.defaultView);if(!I){X(!1);return}const $=I.setTimeout(()=>{L.current=null,!H.current&&!O.current&&!M.current&&X(!1)},f);L.current={ownerWindow:I,timerId:$}},[Y,X]),de=i.useCallback(()=>{var $;if(z(),Y(),S===0){X(!0);return}const f=($=E.current)==null?void 0:$.ownerDocument.defaultView;if(!f)return;const I=f.setTimeout(()=>{C.current=null,j.current||X(!0)},S);C.current={ownerWindow:f,timerId:I}},[Y,z,S,X]);function J(f){var I;(I=x.onFocus)==null||I.call(x,f),H.current=!0,Y(),!F.current&&(z(),X(!0))}function oe(f){var I;(I=x.onBlur)==null||I.call(x,f),!f.currentTarget.contains(f.relatedTarget)&&(H.current=!1,z(),q(0))}function ve(f){var I;(I=x.onMouseEnter)==null||I.call(x,f),O.current=!0,de()}function be(f){var I;(I=x.onMouseLeave)==null||I.call(x,f),O.current=!1,z(),q(ot)}function ye(){M.current=!0,Y()}function se(){M.current=!1,q(ot)}function ke(f){var ee,te;(ee=x.onPointerDown)==null||ee.call(x,f),z(),Y(),X(!1);const I=(te=E.current)==null?void 0:te.ownerDocument.defaultView;if(!I)return;F.current=!0,ne();const $=I.setTimeout(()=>{F.current=!1,A.current=null},0);A.current={ownerWindow:I,timerId:$}}if(_e({active:D,boundaries:W,dismissOnPointerDownOutside:!0,layerId:K.id,onEscapeDismiss:()=>X(!1),onPointerDownOutsideDismiss:()=>X(!1),ownerDocument:Q}),i.useEffect(()=>{h&&(z(),Y(),ne(),F.current=!1,H.current=!1,O.current=!1,M.current=!1,P.current&&X(!1))},[Y,z,ne,h,X]),i.useEffect(()=>()=>{z(),Y(),ne()},[Y,z,ne]),h)return i.cloneElement(o,{ref:pe});const me=i.cloneElement(o,{"aria-describedby":ue,className:[x.className,"nk-tooltip__trigger",s].filter(Boolean).join(" "),onBlur:oe,onFocus:J,onMouseEnter:ve,onMouseLeave:be,onPointerDown:ke,ref:pe,style:{...x.style,...g}});return a.jsxs(a.Fragment,{children:[me,B.present&&Q?a.jsx(Se,{container:v,inheritFrom:Z,children:a.jsxs(Ee,{ref:xe,"aria-hidden":D?void 0:!0,className:["nk-tooltip",c].filter(Boolean).join(" "),"data-placement":(G==null?void 0:G.placement)??u,"data-state":B.state==="closing"?"closing":"open",id:y,onMouseEnter:ye,onMouseLeave:se,role:"tooltip",style:G?{...l,"--nk-tooltip-arrow-offset":`${G.arrowOffset}px`,left:G.left,top:G.top,zIndex:K.zIndex}:{...l,visibility:"hidden",zIndex:K.zIndex},children:[a.jsx("span",{"aria-hidden":"true",className:"nk-tooltip__arrow"}),r]})}):null]})});exports.Alert=Rt;exports.Avatar=Mt;exports.Badge=Lt;exports.Button=Me;exports.Card=In;exports.Checkbox=it;exports.CheckboxGroup=dt;exports.Content=On;exports.Divider=Bn;exports.Field=Fn;exports.Icon=le;exports.Input=zn;exports.Modal=oo;exports.PinInput=Io;exports.Popover=go;exports.Radio=Eo;exports.RadioGroup=gt;exports.Select=To;exports.Skeleton=Ao;exports.Spinner=ze;exports.Switch=Do;exports.Text=ie;exports.TextArea=Oo;exports.Tooltip=Zo;exports.TooltipProvider=Fo;exports.breakpoint=he;exports.cell=jt;exports.px=Ct;exports.space=It;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),i=require("react"),Ct=require("react-dom"),Rt=36,at=[2,4,8,12,16,24,32,48],Ke={sm:768,md:960,lg:1440,xl:1920};({...Object.fromEntries(at.map(t=>[`--nk-space-${t}`,`${t}px`]))});function Et(t){if(typeof t!="number"||!Number.isFinite(t))throw new RangeError("Cell amount must be a finite number.");const n=t*Rt;if(!Number.isFinite(n))throw new RangeError("Calculated cell value must be finite.");return n}function Pt(t){if(!at.some(n=>n===t))throw new RangeError(`Unsupported spacing size: ${String(t)}.`);return t}function he(t){if(!Object.prototype.hasOwnProperty.call(Ke,t))throw new RangeError(`Unsupported breakpoint: ${String(t)}.`);return Ke[t]}function Mt(t){if(typeof t!="number"||!Number.isFinite(t))throw new RangeError("Pixel value must be a finite number.");return`${t}px`}const Pe=i.forwardRef(function(n,e){const{children:r,className:s,...o}=n;return a.jsx("div",{...o,ref:e,className:["nk-surface",s].filter(Boolean).join(" "),children:r})}),Lt=i.forwardRef(function(n,e){const{children:r,className:s,role:o,tone:c="info",...l}=n;return a.jsxs(Pe,{...l,ref:e,className:["nk-alert",s].filter(Boolean).join(" "),"data-tone":c,role:o,children:[a.jsx("span",{"aria-hidden":"true",className:"nk-alert__indicator"}),a.jsx("div",{className:"nk-alert__content",children:r})]})});function St(t){return(Array.from((t==null?void 0:t.trim())??"")[0]??"?").trim().toUpperCase()||"?"}function Nt(t){if(t==="?")return"neutral";const n=Array.from(t)[0]??"";if("AJO".includes(n))return"1";if("BNSV".includes(n))return"2";if("CFLQW".includes(n))return"3";if("EHKMPTX".includes(n))return"4";if("DGRUY".includes(n))return"5";if("IZ".includes(n))return"6";const e=n.codePointAt(0)??0;return String(e%6+1)}const _t=i.forwardRef(function(n,e){const{alt:r,className:s,image:o,size:c=32,style:l,...p}=n,[h,d]=i.useState(),u=!!o&&o!==h,v=(r==null?void 0:r.trim())??"",m=St(v),g=typeof c=="number"?`${c}px`:c,k=v?{"aria-label":v,role:"img"}:{"aria-hidden":!0,role:void 0};function b(){d(o)}return a.jsx("div",{...p,...u?void 0:k,ref:e,className:["nk-avatar",s].filter(Boolean).join(" "),"data-palette":Nt(m),"data-state":u?"image":"fallback",style:{...l,"--nk-avatar-size":g},children:u?a.jsx("img",{alt:v,className:"nk-avatar__image",onError:b,src:o}):a.jsx("span",{"aria-hidden":"true",className:"nk-avatar__initial",children:m})})}),Vt=i.forwardRef(function(n,e){const{children:r,className:s,tone:o="neutral",variant:c="outline",...l}=n;return a.jsx("span",{...l,ref:e,className:["nk-badge",s].filter(Boolean).join(" "),"data-tone":o,"data-variant":c,children:r})}),Tt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.5 0h1.6c.5.1 1 .3 1.3.6.3.4.5.8.5 1.3l.1 1.6v8.6c-.1.5-.3 1-.6 1.3a2 2 0 0 1-1.3.5l-1.6.1H1.9a2 2 0 0 1-1.3-.6A2 2 0 0 1 .1 12L0 10.5V1.9C.2 1.4.4.9.7.6A2 2 0 0 1 2 .1L3.5 0h7Zm-7 1.4H2.1c-.3 0-.4.1-.5.2l-.2.5v3.5a11.8 11.8 0 0 0 0 1l.4.3h.3l.7.1h1a1.4 1.4 0 0 1 .8.4l.4.4.1.4v.2l.2.3.1.4h3.2l.2-.5v-.2l.2-.6.4-.4.2-.2.6-.2h1a11.8 11.8 0 0 0 1 0l.3-.4v-.3l.1-.6V2.1c0-.3-.1-.4-.2-.5l-.5-.2H3.5Z",clipRule:"evenodd"})})}),At=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M5.75 10 3 7.25m0 0L5.75 4.5M3 7.25h8.5"})})}),Dt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M8.25 10 11 7.25m0 0L8.25 4.5M11 7.25H2.5"})})}),Ot=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsxs("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:[a.jsx("path",{stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.633",d:"M5.955 11.616 2.177 8.838a.82.82 0 0 0-.32-.143l-.985-.2-.03-.007a.148.148 0 0 1-.026-.087V5.423c0-.049.014-.076.022-.087l.034-.005.984-.202a.818.818 0 0 0 .32-.142l3.78-2.78v9.41Z"}),a.jsx("path",{fill:"currentColor",d:"M9.383 5.053c-.192-.37-.635-.454-.93-.168l-.044.033a.737.737 0 0 0-.133.825c.162.337.266.724.266 1.144 0 .421-.104.808-.266 1.145a.737.737 0 0 0 .133.824l.044.034c.28.286.738.219.93-.168A4.214 4.214 0 0 0 9.81 6.87c0-.64-.162-1.263-.427-1.818Z"}),a.jsx("path",{fill:"currentColor",d:"M10.932 3.386c-.207-.336-.635-.387-.9-.117l-.03.033a.768.768 0 0 0-.088.91c.472.756.737 1.699.737 2.692 0 1.01-.28 1.935-.737 2.692a.768.768 0 0 0 .088.91l.03.033c.265.27.693.219.9-.118.62-.993.973-2.205.973-3.517 0-1.313-.354-2.525-.973-3.518Z"}),a.jsx("path",{fill:"currentColor",d:"M12.48 1.754c-.22-.32-.62-.37-.885-.1l-.044.033c-.236.235-.265.64-.074.925.797 1.195 1.254 2.676 1.254 4.275 0 1.599-.472 3.097-1.254 4.275-.191.286-.162.69.074.925l.044.034c.266.27.664.219.885-.101.96-1.43 1.52-3.214 1.52-5.15 0-1.901-.56-3.685-1.52-5.116Z"})]})}),Bt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"M13 2.229c0-.413-.112-.818-.324-1.17a2.2 2.2 0 0 0-.88-.822A2.15 2.15 0 0 0 9.51.441c-.325.246-.577.58-.726.964a2.27 2.27 0 0 0 .4 2.303c.27.308.618.534 1.006.652v.095c0 .507-.197.992-.548 1.35a1.86 1.86 0 0 1-1.325.559H5.82c-.675.007-1.33.23-1.874.636V4.36a2.2 2.2 0 0 0 1.218-.936A2.26 2.26 0 0 0 4.751.542 2.16 2.16 0 0 0 3.322 0c-.525 0-1.032.193-1.43.542a2.26 2.26 0 0 0-.413 2.882c.283.451.716.783 1.219.936v5.28a2.2 2.2 0 0 0-1.218.936 2.26 2.26 0 0 0 .413 2.882c.397.35.904.542 1.43.542.524 0 1.031-.193 1.428-.542a2.26 2.26 0 0 0 .413-2.882 2.2 2.2 0 0 0-1.218-.936v-.095c0-.507.198-.992.55-1.35a1.86 1.86 0 0 1 1.324-.559h2.497c.828 0 1.622-.335 2.208-.931a3.2 3.2 0 0 0 .914-2.25V4.36c.45-.137.846-.418 1.127-.802S13 2.708 13 2.229"})})}),Ft=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsxs("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:[a.jsx("rect",{width:"14",height:"2.1",y:"1.75",fill:"currentColor",rx:"1.05"}),a.jsx("rect",{width:"14",height:"2.1",y:"5.95",fill:"currentColor",rx:"1.05"}),a.jsx("rect",{width:"14",height:"2.1",y:"10.15",fill:"currentColor",rx:"1.05"})]})}),Ht=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsxs("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:[a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.25 2.714h-1.313l-.437-.857C10.242 1.36 10.108 1 9.625 1h-5.25c-.483 0-.643.409-.875.857l-.438.857H1.75C.784 2.714 0 3.482 0 4.43v6.857C0 12.232.784 13 1.75 13h10.5c.966 0 1.75-.768 1.75-1.714V4.429c0-.947-.784-1.715-1.75-1.715ZM7 11.286c-1.933 0-3.5-1.535-3.5-3.429C3.5 5.964 5.067 4.43 7 4.43s3.5 1.535 3.5 3.428c0 1.894-1.567 3.429-3.5 3.429Z",clipRule:"evenodd"}),a.jsx("path",{fill:"currentColor",d:"M4.75 7.9a2.25 2.25 0 1 1 4.5 0 2.25 2.25 0 0 1-4.5 0Z"})]})}),Wt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"M1.3 10.7c.1-.4 0-.7-.2-1A6 6 0 0 1 0 6.3C0 2.8 3.1 0 7 0s7 2.8 7 6.3-3.1 6.3-7 6.3c-.6 0-1.2 0-1.7-.2a1 1 0 0 0-.7 0l-3 1.5-.2.1a.7.7 0 0 1-.7-.9l.6-2.4Z"})})}),zt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.8",d:"m4 7.5 2 2L10.5 5"})})}),Zt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M3.5 5.25 7 8.75l3.5-3.5"})})}),qt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M8.75 3.5 5.25 7l3.5 3.5"})})}),Gt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M5.25 3.5 8.75 7l-3.5 3.5"})})}),$t=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M3.5 8.75 7 5.25l3.5 3.5"})})}),Kt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.391 7.868a3.501 3.501 0 0 1-6.782 0 1 1 0 0 1-.109.007H.875a.875.875 0 1 1 0-1.75H3.5q.055 0 .109.007a3.501 3.501 0 0 1 6.782 0 1 1 0 0 1 .109-.007h2.625a.875.875 0 1 1 0 1.75H10.5a1 1 0 0 1-.109-.007M7 8.75a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5",clipRule:"evenodd"})})}),Ut=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.6",d:"m4 4 6 6M10 4l-6 6"})})}),Yt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M3.5 12.25h7M7 1.75v8.167m0 0L9.917 7M7 9.917 4.083 7"})})}),Qt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"M8.152.192c.35 0 .663 0 .92.02.268.023.548.074.82.215.398.205.718.532.918.93.137.273.187.553.209.822.018.223.019.487.02.783.302 0 .574.001.803.02.267.023.547.072.82.213.397.206.718.533.918.932.137.273.185.552.207.821.021.26.02.575.02.93v5.012c0 .356.001.671-.02.931-.022.27-.07.549-.207.822-.2.398-.52.725-.918.93a2.126 2.126 0 0 1-.82.214c-.258.021-.57.02-.921.02H5.848c-.35 0-.663.002-.92-.02a2.124 2.124 0 0 1-.82-.214 2.117 2.117 0 0 1-.919-.931 2.177 2.177 0 0 1-.208-.82 10.57 10.57 0 0 1-.018-.792c-.145-.002-.29-.004-.43-.01a6.939 6.939 0 0 1-.595-.05 1.89 1.89 0 0 1-.6-.165 2.117 2.117 0 0 1-.918-.932 2.176 2.176 0 0 1-.207-.821c-.021-.26-.02-.575-.02-.93V3.11c0-.356-.001-.671.02-.931.022-.27.07-.549.207-.822.2-.398.52-.725.918-.93.273-.141.553-.192.82-.214.258-.021.57-.02.921-.02h5.073ZM5.848 4.577c-.377 0-.611 0-.786.015-.166.014-.207.036-.212.039a.5.5 0 0 0-.217.22l-.017.053a1.207 1.207 0 0 0-.024.174c-.015.18-.015.419-.015.8v5.012c0 .382 0 .621.015.801.007.086.016.14.024.174l.017.053a.506.506 0 0 0 .151.18l.066.04c.005.003.046.025.212.039.175.014.409.015.786.015h5.073c.377 0 .612 0 .787-.015.166-.014.207-.036.212-.038a.501.501 0 0 0 .217-.221c.004-.01.026-.056.04-.227.014-.18.015-.419.015-.801V5.879c0-.382 0-.621-.015-.8-.014-.172-.036-.218-.04-.227a.501.501 0 0 0-.217-.221c-.005-.003-.046-.025-.212-.04-.175-.014-.41-.014-.787-.014H5.848Zm-2.769-2.77c-.377 0-.611.002-.787.016-.166.014-.207.036-.212.038a.502.502 0 0 0-.217.221c-.004.01-.026.056-.04.227-.014.18-.015.419-.015.801v5.011c0 .382 0 .621.015.8.007.086.016.14.024.175l.016.052c.044.087.111.156.19.204.017.003.05.011.101.018.116.016.27.028.453.036.114.005.234.007.355.009V5.879c0-.356-.001-.671.02-.93.021-.27.07-.55.207-.822.2-.4.521-.726.918-.932.273-.14.553-.19.82-.213.258-.021.57-.02.92-.02h3.575c0-.298-.001-.498-.014-.653-.014-.171-.036-.218-.04-.227a.501.501 0 0 0-.218-.22l-.046-.015a1.143 1.143 0 0 0-.166-.024c-.175-.014-.409-.015-.786-.015H3.08Z"})})}),Xt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsxs("svg",{...o,ref:e,fill:"none",height:r,viewBox:"0 0 14 14",width:s,xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("path",{d:"M7.042 4.475c.49 0 .97.15 1.377.429.407.28.724.677.912 1.142.187.464.237.976.141 1.469a2.57 2.57 0 0 1-.676 1.303 2.5 2.5 0 0 1-1.035.637 2.42 2.42 0 0 1-2.293-.467 2.54 2.54 0 0 1-.719-.994 2.6 2.6 0 0 1 .23-2.389c.226-.348.534-.633.893-.83a2.4 2.4 0 0 1 1.17-.3m-.017 1.157c-.354 0-.694.145-.944.402s-.392.605-.393.968c0 .755.617 1.389 1.354 1.389.73 0 1.317-.627 1.317-1.389 0-.754-.598-1.37-1.334-1.37",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}),a.jsx("path",{d:"M7.023 2c2.73 0 5.303 1.51 6.656 4.154l.127.258.001.002.122.274.005.009v.007a.9.9 0 0 1 .066.303.9.9 0 0 1-.065.317v.005l-.004.008C12.665 10.313 9.904 12 6.997 12 4.09 12 1.333 10.318.066 7.349L.06 7.344l-.003-.01A1.1 1.1 0 0 1 0 7.016c0-.101.02-.202.057-.318L.06 6.69v-.002a7.7 7.7 0 0 1 2.797-3.415A7.43 7.43 0 0 1 7.023 2m0 1.284c-2.308 0-4.601 1.261-5.731 3.726 1.139 2.477 3.401 3.706 5.704 3.706 2.308 0 4.572-1.238 5.7-3.704-1.129-2.466-3.369-3.728-5.673-3.728",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})]})}),Jt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsxs("svg",{...o,ref:e,fill:"none",height:r,viewBox:"0 0 14 14",width:s,xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("path",{d:"m2.867 12.098 1.266.804 7-11-1.266-.804zM10.264 4.2c1.005.624 1.86 1.564 2.431 2.813-1.127 2.465-3.39 3.703-5.699 3.703q-.423-.002-.84-.06l-.745 1.17A7.5 7.5 0 0 0 6.996 12c2.907 0 5.669-1.687 6.936-4.663l.003-.008v-.005A.9.9 0 0 0 14 7.008a.9.9 0 0 0-.066-.304v-.008l-.005-.008-.121-.274-.001-.002-.127-.258h-.001a7.7 7.7 0 0 0-2.736-3.022zM7.022 2a7.43 7.43 0 0 0-4.166 1.274A7.7 7.7 0 0 0 .061 6.688L.06 6.69l-.003.007a1 1 0 0 0-.057.32q.005.163.058.317l.003.01.004.005c.658 1.54 1.718 2.73 2.99 3.523l.678-1.067C2.727 9.188 1.866 8.259 1.292 7.01c1.13-2.465 3.423-3.727 5.73-3.727q.416 0 .826.057l.743-1.17A7.4 7.4 0 0 0 7.022 2",fill:"currentColor"}),a.jsx("path",{d:"M8.343 7.219c-.061.408-.292.76-.616.968l-.872 1.369c.305.023.612-.01.906-.1.39-.123.747-.341 1.035-.638.346-.356.581-.81.677-1.303a2.6 2.6 0 0 0-.244-1.69zM7.042 4.475c-.408 0-.81.103-1.17.3-.36.198-.667.483-.893.83a2.61 2.61 0 0 0-.23 2.389q.027.063.058.124l.925-1.455a1.4 1.4 0 0 1 .472-.741l.92-1.444z",fill:"currentColor"})]})}),en=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M7 9.25 9.25 7m0 0L7 4.75M9.25 7H1m0-3.564V3.4c0-.84 0-1.26.163-1.581a1.5 1.5 0 0 1 .656-.656C2.139 1 2.56 1 3.4 1h7.2c.84 0 1.26 0 1.58.163a1.5 1.5 0 0 1 .657.656c.163.32.163.74.163 1.579v7.205c0 .838 0 1.257-.163 1.578a1.5 1.5 0 0 1-.656.656c-.321.163-.74.163-1.579.163H3.398c-.839 0-1.259 0-1.58-.163a1.5 1.5 0 0 1-.655-.656C1 11.86 1 11.44 1 10.6v-.037"})})}),tn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M12 5.5v4.867c0 .746 0 1.12-.14 1.405a1.3 1.3 0 0 1-.562.583c-.275.145-.635.145-1.355.145H4.557c-.72 0-1.08 0-1.355-.145a1.3 1.3 0 0 1-.562-.583c-.14-.285-.14-.659-.14-1.405V3.633c0-.746 0-1.12.14-1.405.123-.25.32-.455.562-.583.275-.145.635-.145 1.355-.145h3.586M12 5.5l-3.857-4M12 5.5H8.786a.655.655 0 0 1-.643-.667V1.5"})})}),nn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M2.49 2.25H5.19c.413 0 .508.004.588.021q.133.03.243.093c.064.036.128.088.421.358l.098.09c.244.224.45.42.7.56q.232.13.486.205l.17.044c.278.061.564.058.912.058h2.702c.447 0 .74 0 .966.017.217.017.307.045.356.068a.75.75 0 0 1 .342.308c.013.024.04.084.056.27.018.198.019.459.019.872v5c0 .413-.001.675-.019.872-.016.186-.043.246-.056.27a.75.75 0 0 1-.342.309c-.049.023-.139.051-.356.067-.225.017-.52.018-.966.018H2.489c-.447 0-.74 0-.966-.018-.217-.016-.307-.044-.356-.067a.75.75 0 0 1-.342-.309c-.013-.024-.04-.084-.056-.27a11 11 0 0 1-.019-.872V3.786c0-.413.001-.675.019-.872.016-.186.043-.246.056-.27a.75.75 0 0 1 .342-.309c.049-.023.139-.051.356-.067.225-.017.52-.018.966-.018"})})}),rn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"M6.293.818a1 1 0 0 1 1.414 0l5.586 5.585c.39.39.39 1.025 0 1.415l-5.586 5.585a1 1 0 0 1-1.414 0L.707 7.818a1 1 0 0 1 0-1.415L4.731 2.38l1.215 1.215a1.187 1.187 0 0 0 .554 1.68v4a1.187 1.187 0 1 0 .95 0V5.275q.06-.026.117-.06l1.865 1.864A1.186 1.186 0 0 0 10.537 8.7a1.188 1.188 0 1 0-.434-2.293L8.135 4.44a1.187 1.187 0 0 0-1.411-1.411l-1.32-1.32z"})})}),on=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 0a7 7 0 0 1 7 7.2c0 3.1-2 5.8-4.8 6.8-.3 0-.5-.2-.5-.4v-2c0-.6-.2-1-.4-1.3 1.5-.1 3.2-.7 3.2-3.5a3 3 0 0 0-.8-2c.1-.1.4-.8 0-1.8 0 0-.6-.2-2 .7a6.6 6.6 0 0 0-3.5 0C4 2.7 3.3 3 3.3 3c-.4 1-.1 1.7 0 1.9-.5.5-.8 1.1-.8 1.9 0 2.8 1.7 3.4 3.2 3.5-.2.2-.4.5-.4 1-.4.2-1.4.5-2-.6 0 0-.4-.7-1.1-.7 0 0-.7 0 0 .4 0 0 .4.2.7 1 0 0 .4 1.3 2.4 1v1.2c0 .2-.2.5-.5.4A7.2 7.2 0 0 1 0 7.2 7 7 0 0 1 7 0Z",clipRule:"evenodd"})})}),sn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M7 0a7 7 0 1 1 0 14A7 7 0 0 1 7 0ZM1.4 7.7c.3 2.2 1.9 4 4 4.7a9.7 9.7 0 0 1-1.9-4.7h-2Zm9 0c0 1.5-.6 3-1.8 4.7a5.6 5.6 0 0 0 4-4.7h-2.1ZM5 7.7c.2 1.4.8 3 2.1 4.6A8.7 8.7 0 0 0 9 7.7H5Zm.3-6c-2 .6-3.5 2.4-3.8 4.6h2.1l.1-.8a12 12 0 0 1 1.5-3.8Zm1.8 0A8.2 8.2 0 0 0 5 6.3h4.2v-.6a8.2 8.2 0 0 0-2.1-4Zm1.8 0a9.4 9.4 0 0 1 1.7 4.6h2c-.2-2.2-1.7-4-3.7-4.6Z",clipRule:"evenodd"})})}),an=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"M9.71 0c.374 0 .678.304.678.678v.677h.677c.872 0 1.58.708 1.58 1.58v.678h.678a.678.678 0 0 1 0 1.355h-.678v1.355h.678a.677.677 0 0 1 0 1.355h-.678v1.354h.678a.678.678 0 0 1 0 1.356h-.678v.677c0 .872-.708 1.58-1.58 1.58h-.677v.678a.678.678 0 0 1-1.356 0v-.678H7.678v.678a.678.678 0 0 1-1.355 0v-.678H4.968v.678a.677.677 0 0 1-1.355 0v-.678h-.677a1.58 1.58 0 0 1-1.58-1.58v-.677H.677a.678.678 0 0 1 0-1.356h.677V7.678H.678a.678.678 0 0 1 0-1.355h.677V4.968H.678a.678.678 0 1 1 0-1.355h.677v-.677c0-.873.708-1.58 1.58-1.58h.678V.677a.678.678 0 0 1 1.355 0v.677h1.355V.678a.677.677 0 1 1 1.355 0v.677h1.354V.678c0-.374.304-.678.678-.678ZM2.936 2.71a.226.226 0 0 0-.226.226v8.128c0 .125.101.227.226.227h8.128a.228.228 0 0 0 .227-.226v-8.13a.227.227 0 0 0-.226-.225h-8.13Zm5.42 1.354c.872 0 1.58.709 1.58 1.582v2.71a1.58 1.58 0 0 1-1.58 1.58h-2.71c-.873 0-1.581-.708-1.582-1.58v-2.71c0-.873.709-1.582 1.582-1.582h2.71ZM5.645 5.42c-.125 0-.226.1-.226.226v2.71c0 .124.101.225.226.225h2.71a.226.226 0 0 0 .225-.226v-2.71a.226.226 0 0 0-.226-.225h-2.71Z"})})}),ln=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"M1 5.7v7.8h4.286v-3.467C5.286 9.076 6.053 8.3 7 8.3s1.714.776 1.714 1.733V13.5H13V5.7L7 .5z"})})}),cn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsxs("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:[a.jsx("circle",{cx:"7",cy:"7",r:"5.25",stroke:"currentColor",strokeWidth:"1.4"}),a.jsx("circle",{cx:"7",cy:"5",r:"0.75",fill:"currentColor",stroke:"none"}),a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.6",d:"M7 7v2.5"})]})}),un=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.254 7.814C11.323 7.814 13 6.177 13 4.157S11.323.5 9.254.5 5.507 2.137 5.507 4.157c0 .57.134 1.11.373 1.592a.55.55 0 0 1-.09.64l-4.423 4.318a.5.5 0 0 0 0 .715l1.779 1.737a.5.5 0 0 0 .698 0l.462-.45a.5.5 0 0 0 0-.716l-.585-.57a.5.5 0 0 1 0-.716l.605-.59a.5.5 0 0 1 .698 0l.62.604a.5.5 0 0 0 .698 0l.461-.45a.5.5 0 0 0 0-.716l-.584-.57a.5.5 0 0 1 0-.716l.761-.744a.55.55 0 0 1 .621-.085c.499.24 1.06.374 1.653.374m0-1.625c1.15 0 2.081-.91 2.081-2.032s-.932-2.032-2.081-2.032-2.082.91-2.082 2.032.932 2.032 2.082 2.032",clipRule:"evenodd"})})}),dn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M14 14h-2.8V9.1c0-1.3-.6-2-1.7-2s-1.8.7-1.8 2V14H4.9V4.9h2.8v1s.9-1.5 2.9-1.5S14 5.6 14 8v6ZM1.7 3.4C.7 3.4 0 2.7 0 1.7S.8 0 1.7 0a1.7 1.7 0 0 1 0 3.4ZM0 14h3.5V4.9H0V14Z",clipRule:"evenodd"})})}),fn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsxs("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"3 -2 16 22",fill:"none",children:[a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5",d:"m3 3.7 8 5.9 8-5.9"}),a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5",d:"M18 2H4a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h14a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2Z"})]})}),hn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.6",d:"M3.5 7.121h7.243"})})}),pn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"M9.534 2.136a1.784 1.784 0 0 1 1.944 2.91l-.26.258-2.522-2.522.259-.26c.166-.165.362-.297.579-.386ZM7.989 3.489 2.827 8.65a.5.5 0 0 0-.128.222l-.681 2.497a.5.5 0 0 0 .614.614l2.496-.681a.5.5 0 0 0 .222-.129l5.162-5.162L7.989 3.49Z"})})}),vn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.6",d:"M3.5 7.121h7.243M7.122 3.5v7.243"})})}),mn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsxs("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:[a.jsx("rect",{width:"6",height:"6",fill:"currentColor",rx:"1"}),a.jsx("rect",{width:"6",height:"6",x:"8",fill:"currentColor",rx:"1"}),a.jsx("rect",{width:"6",height:"6",y:"8",fill:"currentColor",rx:"1"}),a.jsx("rect",{width:"6",height:"6",x:"8",y:"8",fill:"currentColor",rx:"1"})]})}),gn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsxs("g",{fill:"currentColor",children:[a.jsx("path",{d:"M14 14h-3.111v-1.556h1.555V10.89H14V14ZM0 0h6.222v6.222H0V0Zm1.556 1.556v3.11h3.11v-3.11h-3.11ZM7.778 0H14v6.222H7.778V0Zm1.555 1.556v3.11h3.111v-3.11h-3.11ZM0 7.778h6.222V14H0V7.778Zm1.556 1.555v3.111h3.11v-3.11h-3.11Zm10.11-1.555H14V9h-2.333V7.778ZM9.333 10H7.778V7.778h1.555V10ZM9.31 12.444V14H7.779v-2H9.31v.444ZM9.3 11h1v1h-1zM10.3 11h1v1h-1z"}),a.jsx("path",{d:"M11.3 10H14v1h-2.7zM10.3 9h1v1h-1z"})]})})}),wn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M9.1 9.1a1 1 0 0 1-1-1c0-.7.5-1.2 1-1.2.6 0 1 .5 1 1.1 0 .6-.4 1.1-1 1.1Zm.2 2c-.5.5-1.3.8-2.3.8-1 0-1.8-.3-2.3-.8a.3.3 0 0 1 0-.4c.1-.1.3-.1.4 0 .4.4 1 .6 1.9.6.9 0 1.5-.2 1.9-.6 0-.1.3-.1.4 0v.4ZM3.9 8c0-.7.5-1.2 1-1.2s1 .5 1 1.1c0 .6-.5 1.1-1 1.1s-1-.5-1-1ZM14 6.8c0-1-.7-1.8-1.6-1.8-.4 0-.8.2-1 .5a6.8 6.8 0 0 0-4-1.3l.8-3 2.2.6c0 .8.8 1.5 1.5 1.5s1.4-.7 1.4-1.5c0-.7-.7-1.4-1.4-1.4-.6 0-1.2.4-1.4.9L7.8.7l-1 3.6c-1.6 0-3 .5-4.2 1.2-.3-.2-.6-.4-1-.4-.9 0-1.6.8-1.6 1.8 0 .6.3 1.1.8 1.5C.3 11 3.3 13.5 7 13.5s6.6-2.4 6.2-5.1c.5-.3.8-.9.8-1.5Z",clipRule:"evenodd"})})}),xn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsxs("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 15",fill:"none",children:[a.jsx("path",{fill:"currentColor",d:"M4.875 10.65a.437.437 0 0 0-.437.438v2.625a.438.438 0 0 0 .68.364l1.07-.713 1.07.713a.438.438 0 0 0 .68-.364v-2.625a.437.437 0 0 0-.438-.438z"}),a.jsx("path",{fill:"currentColor",stroke:"currentColor",strokeWidth:".15",d:"M12.094.075a1.17 1.17 0 0 1 1.169 1.169V12.18a1.17 1.17 0 0 1-1.17 1.17h-2.63a.732.732 0 0 1 0-1.464H11.8V9.413H2.906a.58.58 0 0 0-.58.58v1.313a.58.58 0 0 0 .58.581h.069a.731.731 0 0 1 0 1.463h-.069a2.044 2.044 0 0 1-2.044-2.044V2.12A2.044 2.044 0 0 1 2.906.075zM2.906 1.538a.58.58 0 0 0-.58.58v5.917q.276-.084.58-.085H11.8V1.538z"})]})}),bn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"M9.958 0c.194 0 .49.066.663.148 0 0-.112-.12.045.042.141.147 3.117 3.214 3.178 3.278.055.059.024.032.021.03.081.175.135.48.135.673v8.374c0 .62-.743 1.455-1.453 1.455l-2.436-.007A1.02 1.02 0 0 1 10 14H4c-.073 0-.144-.009-.212-.023l-2.345-.006A1.44 1.44 0 0 1 .01 12.56C-.022 11.696.04 2.202.04 1.454.04.708.646.031 1.524.031 2.404.031 9.958 0 9.958 0ZM1.471 1.435a.174.174 0 0 0-.057.037.173.173 0 0 0-.037.056.172.172 0 0 0-.014.067l.014 10.597c0 .193.158.35.352.352L3 12.55V8a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v4.592l1.3.008a.349.349 0 0 0 .351-.349l-.012-7.914a.476.476 0 0 0-.127-.297L9.948 1.56c-.07-.068-.126-.044-.126.052V4.69c0 .293-.406.8-.774.801H3.75c-.403 0-.838-.413-.838-.8l-.002-3.079a.177.177 0 0 0-.174-.176l-1.199-.014a.176.176 0 0 0-.067.013Zm2.69 11.122 5.679.029V8.16H4.16v4.397Zm.232-11.099a.175.175 0 0 0-.176.175v2.435c0 .097.079.176.176.176h3.92a.175.175 0 0 0 .174-.176V1.634a.176.176 0 0 0-.175-.176h-3.92Z"})})}),yn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsxs("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:[a.jsx("path",{fill:"currentColor",d:"M7 1.25c-2.29 0-4.584.943-6.297 2.838l-.434.485C-.08 4.956-.09 5.596.242 5.998c.335.403.888.415 1.237.032l.438-.482c2.7-2.988 7.466-2.988 10.166 0l.438.482c.349.383.902.37 1.237-.032.332-.402.322-1.042-.027-1.425l-.434-.489C11.584 2.194 9.29 1.25 7 1.25ZM6.973 5.3c-1.375.012-2.739.635-3.682 1.831l-.438.557a1.083 1.083 0 0 0-.229.726c.01.268.113.521.287.703.171.181.397.276.63.26a.828.828 0 0 0 .608-.332l.434-.552c1.118-1.417 3.64-1.512 4.834.004l.437.548c.154.202.373.32.606.332a.8.8 0 0 0 .632-.26c.17-.182.273-.435.284-.703a1.108 1.108 0 0 0-.23-.726l-.437-.553C9.728 5.888 8.343 5.288 6.973 5.3Z"}),a.jsx("circle",{cx:"7",cy:"11.05",r:"1.867",fill:"currentColor"})]})}),kn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"M4.031 4.031h.006M6.195 1.5H4.5c-1.05 0-1.575 0-1.976.204-.353.18-.64.467-.82.82-.204.4-.204.926-.204 1.976v1.695c0 .458 0 .688.052.904.046.19.121.374.224.542.116.189.278.35.603.675l2.937 2.938c.743.742 1.114 1.114 1.542 1.253.377.122.782.122 1.159 0 .428-.14.8-.51 1.542-1.253l1.695-1.695c.742-.743 1.114-1.114 1.253-1.542a1.88 1.88 0 0 0 0-1.159c-.14-.428-.51-.8-1.253-1.542L8.316 2.38c-.324-.325-.486-.487-.675-.603a1.9 1.9 0 0 0-.542-.224C6.883 1.5 6.653 1.5 6.195 1.5M4.344 4.031a.312.312 0 1 1-.625 0 .312.312 0 0 1 .625 0"})})}),jn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"M7 0a7 7 0 1 1 0 14A7 7 0 0 1 7 0Zm0 1.866a5.134 5.134 0 0 0-3.257 9.102C3.853 9.002 4.821 7.467 7 7.467c2.179 0 3.146 1.535 3.256 3.5A5.134 5.134 0 0 0 7 1.866ZM7 2.8a1.867 1.867 0 1 1-.001 3.733A1.867 1.867 0 0 1 7 2.8Z"})})}),In=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsxs("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:[a.jsx("path",{stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.4",d:"M7 1.5 1.5 11.5h11L7 1.5Z"}),a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.6",d:"M7 6v2"}),a.jsx("circle",{cx:"7",cy:"9.75",r:"0.75",fill:"currentColor",stroke:"none"})]})}),Cn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"M10.938 1.003c.196.003.376.007.538.018.331.023.668.074.998.216.488.211.918.56 1.199 1.027.199.33.27.672.3.987.028.297.027.655.027 1.035v5.428c0 .38.001.738-.027 1.035-.03.315-.101.657-.3.987a2.553 2.553 0 0 1-1.019.94l-.18.087c-.33.142-.667.193-.998.216-.324.022-.72.021-1.178.021H3.702c-.459 0-.854 0-1.178-.021a3.168 3.168 0 0 1-.874-.167l-.124-.05a2.583 2.583 0 0 1-1.199-1.026c-.199-.33-.27-.672-.3-.987C0 10.452 0 10.094 0 9.714V4.286c0-.38-.001-.738.027-1.035.03-.315.101-.657.3-.987l.112-.17a2.615 2.615 0 0 1 1.087-.857l.124-.049a3.17 3.17 0 0 1 .874-.167C2.848 1 3.244 1 3.702 1h6.596l.64.003ZM3.702 3c-.487 0-.8 0-1.04.017-.23.016-.312.043-.344.057a.596.596 0 0 0-.275.218c.01-.02-.01 0-.024.151C2 3.623 2 3.867 2 4.286v5.428c0 .42.001.664.019.843.008.091.019.134.024.15.044.07.13.157.274.219h.001c.032.014.113.041.344.057.24.017.553.017 1.04.017h6.596c.486 0 .8 0 1.04-.017.23-.016.312-.043.344-.057a.59.59 0 0 0 .274-.219.758.758 0 0 0 .025-.15c.018-.18.019-.424.019-.843V4.286c0-.42-.001-.664-.019-.843a.763.763 0 0 0-.025-.151.594.594 0 0 0-.274-.218c-.032-.014-.113-.041-.344-.057a7.799 7.799 0 0 0-.427-.015L10.298 3H3.702Zm4.24.5a1 1 0 0 1 0 2h-.008a1 1 0 0 1 0-2h.008Zm2.534 0a1 1 0 0 1 0 2h-.01a1 1 0 0 1 0-2h.01Z"})})}),Rn={projects:mn,chat:Wt,articles:Tt,mail:fn,github:on,globe:sn,linkedin:dn,reddit:wn,exit:en,camera:Ht,"qr-code":gn,download:Yt,save:bn,pencil:pn,"arrow-left":At,"arrow-right":Dt,cross:Ut,checkmark:zt,plus:vn,minus:hn,window:Cn,user:jn,duplicate:Qt,eye:Xt,"eye-off":Jt,signal:yn,audio:Ot,hardware:an,burger:Ft,repository:xn,"chevron-down":Zt,"chevron-up":$t,"chevron-left":qt,"chevron-right":Gt,branch:Bt,commit:Kt,folder:nn,file:tn,tag:kn,key:un,git:rn,home:ln,info:cn,warning:In},le=i.forwardRef(function(n,e){const{"aria-hidden":r,"aria-label":s,"aria-labelledby":o,color:c,role:l,size:p=14,style:h,type:d,...u}=n,v=Rn[d];if(!v)return console.warn(`Icon type "${d}" not found`),null;const m=s!==void 0||o!==void 0;return i.createElement(v,{...u,"aria-hidden":r??(m?void 0:!0),"aria-label":s,"aria-labelledby":o,ref:e,height:p,role:l??(m?"img":void 0),style:{flexShrink:0,...h,...c?{color:c}:void 0},width:p})}),Ze=i.forwardRef(function(n,e){const{className:r="",color:s,size:o=48,style:c,...l}=n,p=typeof o=="number"?`${o}px`:o;return a.jsx("div",{ref:e,className:["nk-spinner",r].filter(Boolean).join(" "),style:{...c,width:o,height:o,fontSize:p,...s?{color:s}:void 0},role:"status","aria-label":"Loading",...l})});function ze(t){return t==null||typeof t=="boolean"||typeof t=="string"&&!t.trim()?!1:Array.isArray(t)?t.some(ze):i.isValidElement(t)&&t.type===i.Fragment?ze(t.props.children):!0}function En(t,n){const e=t.getBoundingClientRect(),r=n.clientX-e.left,s=n.clientY-e.top;t.style.setProperty("--nk-button-glow-x",`${r}px`),t.style.setProperty("--nk-button-glow-y",`${s}px`)}const Le=i.forwardRef(function(n,e){const{as:r,children:s,className:o,disabled:c,fullWidth:l=!1,icon:p,iconAlignment:h="left",loading:d=!1,onClick:u,onKeyDown:v,onMouseMove:m,role:g,shape:k,tabIndex:b,textAlignment:x="center",tone:V,variant:E="primary",..._}=n,C=r??"button",P=c||d,I=!!p&&!ze(s),L=C==="a"&&"href"in _&&typeof _.href=="string",T=typeof C=="string"&&C!=="button"&&!L,F=y=>{if(P){y.preventDefault(),y.stopPropagation();return}const S=u;S==null||S(y)},H=y=>{En(y.currentTarget,y);const S=m;S==null||S(y)},O=y=>{const S=v;S==null||S(y),!(y.defaultPrevented||P||!T||y.key!=="Enter"&&y.key!==" ")&&(y.preventDefault(),y.currentTarget.click())},M=C==="button"?{disabled:P,type:_.type??"button"}:{"aria-disabled":P||void 0},Z=L&&P?{href:void 0}:void 0,R=L&&P?g??"link":T?g??"button":g,w=C==="button"?b:L&&P?void 0:P?-1:T?b??0:b;return i.createElement(C,{..._,...M,...Z,ref:e,"aria-busy":d||void 0,className:["nk-button",o].filter(Boolean).join(" "),"data-full-width":l||void 0,"data-icon-only":I||void 0,"data-shape":k,"data-tone":V,"data-variant":E,onClick:F,onKeyDown:T?O:v,onMouseMove:H,role:R,tabIndex:w},a.jsxs(a.Fragment,{children:[a.jsxs("span",{className:"nk-button__content",style:{justifyContent:x},children:[p&&h==="left"?a.jsx(le,{size:14,type:p}):null,s,p&&h==="right"?a.jsx(le,{size:14,type:p}):null]}),d?a.jsx(Ze,{"aria-hidden":"true","aria-label":void 0,className:"nk-button__spinner",role:void 0,size:16}):null]}))}),ae=i.forwardRef(function(n,e){const{align:r="left",as:s,className:o,size:c="body",tone:l="default",weight:p,...h}=n,d=s??"p";return i.createElement(d,{...h,ref:e,className:["nk-text",o].filter(Boolean).join(" "),"data-align":r,"data-size":c,"data-tone":l,"data-weight":p})}),Pn=i.forwardRef(function(n,e){const{children:r,className:s,header:o,spacing:c="standard",...l}=n;return a.jsxs(Pe,{...l,ref:e,className:["nk-card",s].filter(Boolean).join(" "),"data-has-header":o?!0:void 0,"data-spacing":c,children:[o?a.jsxs("div",{className:"nk-card__header",children:[o.title?a.jsx(ae,{as:"span",size:"caption",tone:"muted",weight:"semibold",children:o.title}):null,o.title&&o.subtitle?a.jsx("span",{"aria-hidden":"true",className:"nk-card__separator",children:"•"}):null,o.subtitle?a.jsx(ae,{as:"span",size:"caption",tone:"muted",weight:"semibold",children:o.subtitle}):null]}):null,o?a.jsx("div",{className:"nk-card__content","data-spacing":c,children:r}):r]})});function ce(t){return t!==void 0&&t!==!1&&t!=="false"}function fe(t,n){return t?!0:n}const lt=i.createContext(void 0);function Mn(){return i.useContext(lt)}const ct=i.forwardRef(function(n,e){var I;const{"aria-invalid":r,checked:s,children:o,className:c,defaultChecked:l,disabled:p=!1,invalid:h=!1,name:d,onChange:u,required:v=!1,style:m,value:g="on",...k}=n,b=Mn(),x=String(g),V=(b==null?void 0:b.value)!==void 0,E=p||!!(b!=null&&b.disabled),_=!!(b!=null&&b.required&&!b.hasSelection&&b.validationValue===x),C=h||ce(r);function P(L){u==null||u(L),L.defaultPrevented||b==null||b.handleChange(L)}return a.jsxs("label",{className:["nk-checkbox",c].filter(Boolean).join(" "),"data-disabled":E||void 0,"data-invalid":C||void 0,style:m,children:[a.jsx("input",{...k,ref:e,"aria-invalid":fe(h,r),checked:b?V?(I=b.value)==null?void 0:I.includes(x):void 0:s,className:"nk-checkbox__control",defaultChecked:b&&!V?b.defaultValue.includes(x):l,disabled:E,name:(b==null?void 0:b.name)??d,onChange:P,required:v||_,type:"checkbox",value:g}),a.jsx("span",{"aria-hidden":"true",className:"nk-checkbox__visual",children:a.jsx(le,{className:"nk-checkbox__icon",size:12,type:"checkmark"})}),o!==void 0?a.jsxs(ae,{as:"span",className:"nk-checkbox__label",children:[o,v?a.jsx("span",{"aria-hidden":"true",className:"nk-checkbox__required",children:"*"}):null]}):null]})}),ut=Symbol("nk-field-control-metadata");function dt(t){if(typeof t!="function"&&typeof t!="object"||t===null)return;const n=t,e=n[ut];return e||(n.type!==void 0&&n.type!==t?dt(n.type):void 0)}function ft(t,n){Object.assign(t,{[ut]:{requiredCommunication:n}})}const Ln=Object.freeze([]);function ht(t,n){i.Children.forEach(t,e=>{if(e==null||typeof e=="boolean")return;if(!i.isValidElement(e))throw new Error("CheckboxGroup children must be direct Checkbox elements or fragments");if(e.type===i.Fragment){ht(e.props.children,n);return}if(e.type!==ct)throw new Error("CheckboxGroup children must be direct Checkbox elements or fragments");const r=e;n.push({disabled:!!r.props.disabled,required:!!r.props.required,value:String(r.props.value??"on")})})}function Sn(t){const n=[];ht(t,n);const e=new Set;return n.forEach(r=>{if(e.has(r.value))throw new Error("CheckboxGroup Checkbox values must be unique");e.add(r.value)}),n}function Nn(t,n,e){n.current=t,typeof e=="function"?e(t):e&&(e.current=t)}const pt=i.forwardRef(function(n,e){const{"aria-invalid":r,children:s,className:o,defaultValue:c=Ln,disabled:l=!1,invalid:p=!1,name:h,onChange:d,orientation:u="vertical",required:v=!1,value:m,...g}=n,k=i.useRef(null),[b,x]=i.useState(c),V=m!==void 0,E=V?m:b,_=p||ce(r),C=Sn(s),P=l?[]:C.filter(w=>!w.disabled).map(w=>w.value),I=new Set(P),L=E.some(w=>I.has(w)),T=P[0],F=C.find(w=>!w.disabled&&w.value===T),H=c.some(w=>I.has(w)),O=!!(F!=null&&F.required),M=i.useCallback(w=>Nn(w,k,e),[e]);i.useEffect(()=>{var N;if(V)return;const w=(N=k.current)==null?void 0:N.querySelector('input[type="checkbox"]'),y=w instanceof HTMLInputElement?w.form:null;if(!y)return;const S=y.getRootNode();function A(B){var U;if(B.target!==y||B.defaultPrevented)return;const Q=Array.from(((U=k.current)==null?void 0:U.querySelectorAll('input[type="checkbox"]'))??[]).find(G=>!G.disabled&&G.value===T);Q&&(Q.required=!!(O||v&&!H)),x(c)}return S.addEventListener("reset",A),()=>S.removeEventListener("reset",A)},[s,c,H,V,v,O,T]);function Z(w){if(!V){const y=w.currentTarget.value,S=w.currentTarget.checked;x(A=>S?[...new Set([...A,y])]:A.filter(N=>N!==y))}d==null||d(w)}const R={defaultValue:c,disabled:l,handleChange:Z,hasSelection:L,name:h,required:v,value:m,validationValue:T};return a.jsx(lt.Provider,{value:R,children:a.jsx("div",{...g,ref:M,"aria-disabled":l||void 0,"aria-invalid":fe(p,r),className:["nk-checkbox-group",o].filter(Boolean).join(" "),"data-disabled":l||void 0,"data-invalid":_||void 0,"data-orientation":u,role:"group",children:s})})});ft(pt,"label");const _n=[{minWidth:he("xl"),marginPercent:32,preferredWidth:1200},{minWidth:he("lg"),marginPercent:20,preferredWidth:1100},{minWidth:he("md"),marginPercent:14,preferredWidth:he("md")},{minWidth:he("sm"),marginPercent:8,preferredWidth:650}],Vn=16;function Tn(t){for(const n of _n)if(t>=n.minWidth)return n}function An(t,n){if(!Number.isFinite(t)||!Number.isFinite(n)||t<he("sm")||n<=0)return;const e=Tn(t);if(!e)return;const r=t*e.marginPercent/100,s=t-r*2,o=Math.min(e.preferredWidth,t-Vn),c=Math.max(s,o);let l=Math.floor(c/n);return l%2===0&&(l-=1),l=Math.max(l,1),Math.min((l-1)*n,t)}const Dn=typeof window>"u"?i.useEffect:i.useLayoutEffect;function On(t,n){if(typeof t=="function"){t(n);return}t&&(t.current=n)}function Bn(t){const n=window.getComputedStyle(t),e=Number.parseFloat(n.paddingLeft)+Number.parseFloat(n.paddingRight);return Math.max(t.clientWidth-e,0)}function Fn(t){const e=window.getComputedStyle(t).getPropertyValue("--nk-cell").trim().match(/^([+]?(?:\d+\.?\d*|\.\d+))px$/i);if(!e)return;const r=Number.parseFloat(e[1]);return Number.isFinite(r)&&r>0?r:void 0}function Hn(t,n){const e=i.useRef(null),r=i.useRef(null),s=i.useRef(void 0),[o,c]=i.useState(void 0),l=i.useCallback(d=>{if(!n){if(s.current===void 0)return;s.current=void 0,c(void 0);return}const u=Bn(d),v=Fn(d),m=v===void 0?void 0:An(u,v);s.current!==m&&(s.current=m,c(m))},[n]),p=i.useCallback(d=>{var v;if((v=r.current)==null||v.disconnect(),r.current=null,typeof ResizeObserver>"u")return;const u=new ResizeObserver(()=>l(d));u.observe(d),r.current=u},[l]),h=i.useCallback(d=>{var u;(u=r.current)==null||u.disconnect(),r.current=null,e.current=d,On(t,d),!(!d||typeof window>"u"||!n)&&(l(d),p(d))},[p,n,t,l]);return Dn(()=>{e.current&&l(e.current)}),i.useEffect(()=>(e.current&&n&&p(e.current),()=>{var d;(d=r.current)==null||d.disconnect(),r.current=null}),[p,n]),{rootReference:h,innerWidth:o}}const Wn=i.forwardRef(function(n,e){const{accent:r,as:s,children:o,className:c,constrain:l=!0,fill:p="none",mode:h="grid",spacing:d="standard",style:u,theme:v="light",...m}=n,{rootReference:g,innerWidth:k}=Hn(e,l),b=s??"div",x=r!==void 0?{...u,"--nk-accent":r}:u;return i.createElement(b,{...m,ref:g,className:["nk-content",c].filter(Boolean).join(" "),"data-constrain":l,"data-fill":p,"data-mode":h,"data-spacing":d,"data-theme":v,style:x},i.createElement("div",{className:"nk-content__inner",style:k===void 0?void 0:{width:`${k}px`}},o))}),zn=i.forwardRef(function(n,e){const{"aria-hidden":r,"aria-label":s,"aria-labelledby":o,"aria-orientation":c,className:l,decorative:p=!1,orientation:h="horizontal",role:d,text:u,...v}=n,g=p?{"aria-hidden":!0,"aria-label":void 0,"aria-labelledby":void 0,role:void 0}:{"aria-hidden":r,"aria-label":s??(o===void 0&&h==="horizontal"?u:void 0),"aria-labelledby":o,"aria-orientation":c??h,role:d??"separator"};return a.jsx("div",{...v,...g,ref:e,className:["nk-divider",l].filter(Boolean).join(" "),"data-has-text":!!u||void 0,"data-orientation":h,children:u&&h==="horizontal"?a.jsx("span",{className:"nk-divider__text",children:u}):null})});function Oe(t){return typeof t=="string"?t.trim().length>0:t!=null&&t!==!1&&t!==!0}function Ue(...t){const n=t.flatMap(r=>(r==null?void 0:r.split(/\s+/).filter(Boolean))??[]),e=[...new Set(n)];return e.length>0?e.join(" "):void 0}const Zn=i.forwardRef(function(n,e){const{children:r,className:s,description:o,disabled:c=!1,error:l,label:p,orientation:h="vertical",required:d=!1,...u}=n,v=i.useId(),m=r.props.id??`${v}-control`,g=`${v}-label`,k=`${v}-description`,b=`${v}-error`,x=Oe(p),V=Oe(o),E=Oe(l),_=dt(r.type),C=_!==void 0,P=c||!!r.props.disabled,I=d||!!r.props.required,L=I&&(_==null?void 0:_.requiredCommunication)==="label",T=Ue(r.props["aria-describedby"],V?k:void 0,E?b:void 0),F=Ue(x?g:void 0,r.props["aria-labelledby"]),H=I?a.jsx("span",{"aria-hidden":"true",className:"nk-field__required",children:"*"}):null,O=L?a.jsx("span",{className:"nk-field__required-text",children:", select at least one"}):null,M=i.cloneElement(r,{"aria-describedby":T,"aria-invalid":E?!0:r.props["aria-invalid"],"aria-labelledby":F,disabled:P||void 0,id:m,required:I||void 0});return a.jsxs("div",{...u,ref:e,className:["nk-field",s].filter(Boolean).join(" "),"data-disabled":P||void 0,"data-has-label":x||void 0,"data-invalid":E||void 0,"data-orientation":h,"data-required":I||void 0,children:[x&&C?a.jsxs(ae,{as:"span",className:"nk-field__label",id:g,size:"caption",weight:"medium",children:[p,H,O]}):null,x&&!C?a.jsxs(ae,{as:"label",className:"nk-field__label",htmlFor:m,id:g,size:"caption",weight:"medium",children:[p,H]}):null,a.jsxs("div",{className:"nk-field__body",children:[M,V?a.jsx(ae,{as:"p",className:"nk-field__description",id:k,size:"caption",tone:"muted",children:o}):null,E?a.jsx(ae,{as:"p","aria-live":"polite",className:"nk-field__error",id:b,size:"caption",tone:"danger",children:l}):null]})]})});function Be(t){return Array.isArray(t)?t.length>0:t!=null&&String(t).length>0}function qn(t,n,e){n.current=t,typeof e=="function"?e(t):e&&(e.current=t)}function Ye(t){return t!=null&&t!==!1&&t!==!0&&t!==""}function Gn(t){var e;const n=(e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value"))==null?void 0:e.set;n?n.call(t,""):t.value=""}const $n=i.forwardRef(function(n,e){const{"aria-busy":r,"aria-invalid":s,className:o,clearable:c=!1,defaultValue:l,disabled:p=!1,id:h,invalid:d=!1,leading:u,loading:v=!1,onChange:m,readOnly:g=!1,style:k,trailing:b,type:x="text",value:V,...E}=n,_=i.useId(),C=i.useRef(null),[P,I]=i.useState(Be(l)),[L,T]=i.useState(!1);i.useEffect(()=>{x!=="password"&&T(!1)},[x]);const F=i.useCallback(W=>qn(W,C,e),[e]),H=h??`${_}-control`,O=p||v,M=d||ce(s),Z=V!==void 0?Be(V):P,R=x==="password"&&L?"text":x,w=fe(d,s),y=c&&Z&&!g&&!O,S=x==="password"&&!v,A=y||S,N=Ye(u),B=Ye(b)||A;function Q(W){V===void 0&&I(Be(W.currentTarget.value)),m==null||m(W)}function U(){const W=C.current;W&&(Gn(W),W.dispatchEvent(new Event("input",{bubbles:!0})),W.focus())}function G(){T(W=>!W)}return a.jsxs("div",{className:["nk-input",o].filter(Boolean).join(" "),"data-clearable":c||void 0,"data-disabled":O||void 0,"data-invalid":M||void 0,"data-leading":N||void 0,"data-loading":v||void 0,"data-read-only":g||void 0,"data-has-trailing-action":A||void 0,"data-trailing":B||void 0,style:k,children:[N?a.jsx("span",{className:"nk-input__leading",children:u}):null,a.jsx("input",{...E,ref:F,"aria-busy":v?!0:r,"aria-invalid":w,className:"nk-input__control",defaultValue:l,disabled:O,id:H,onChange:Q,readOnly:g,type:R,value:V}),B?a.jsxs("span",{className:"nk-input__trailing",children:[b,y?a.jsx(Le,{"aria-controls":H,"aria-label":"Clear input",className:"nk-input__action",icon:"cross",onClick:U,shape:"rectangle",type:"button",variant:"ghost"}):null,S?a.jsx(Le,{"aria-controls":H,"aria-label":L?"Hide password":"Show password","aria-pressed":L,className:"nk-input__action",disabled:O,icon:L?"eye-off":"eye",onClick:G,shape:"rectangle",type:"button",variant:"ghost"}):null]}):null,v?a.jsx(Ze,{"aria-hidden":"true","aria-label":void 0,className:"nk-input__spinner",role:void 0,size:14}):null]})}),Re=i.createContext(void 0),Qe=typeof window>"u"?i.useEffect:i.useLayoutEffect;function Xe(t,n){const e=t.ownerDocument.defaultView;if(!e)return;const r=e.getComputedStyle(t);Array.from(n.style).filter(o=>o.startsWith("--nk-")).forEach(o=>{n.style.removeProperty(o)});for(let o=0;o<r.length;o+=1){const c=r.item(o);c.startsWith("--nk-")&&n.style.setProperty(c,r.getPropertyValue(c))}}function Kn(t){const{children:n,source:e}=t,r=i.useRef(null),s=i.useContext(Re);return Qe(()=>{const o=r.current;if(!(!o||!s))return s.registerBranch(o)},[s]),Qe(()=>{var d;const o=r.current;if(!o)return;Xe(e,o);const l=e.closest(".nk-content")??e,p=(d=e.ownerDocument.defaultView)==null?void 0:d.MutationObserver;if(!p)return;const h=new p(()=>{Xe(e,o)});return h.observe(l,{attributeFilter:["class","data-theme","style"],attributes:!0}),()=>h.disconnect()},[e]),a.jsx("div",{className:"nk-portal",ref:r,style:{display:"contents"},children:n})}function Ne(t){const{children:n,container:e,inheritFrom:r}=t,s=i.useRef(null),[o,c]=i.useState(!1);i.useEffect(()=>{c(!0)},[]);const l=r??s.current,p=(l==null?void 0:l.ownerDocument)??(typeof document>"u"?null:document),h=e??(p==null?void 0:p.body)??null;return a.jsxs(a.Fragment,{children:[r?null:a.jsx("span",{"aria-hidden":"true",hidden:!0,ref:s}),o&&l&&h?Ct.createPortal(a.jsx(Kn,{source:l,children:n}),h):null]})}const Un=1e3,Yn=10,Je=new WeakMap;function Ee(t){const n=Je.get(t);if(n)return n;const e={focusLayers:new Set,layers:[],listeners:new Set};return Je.set(t,e),e}function et(t){t.listeners.forEach(n=>n())}function _e(t,n){const e=i.useRef(Symbol("nk-overlay-layer")),[,r]=i.useReducer(l=>l+1,0);i.useEffect(()=>{if(!t||!n)return;const l=Ee(n),p=()=>r();return l.listeners.add(p),l.layers.push(e.current),et(l),()=>{l.listeners.delete(p);const h=l.layers.indexOf(e.current);h>=0&&l.layers.splice(h,1),et(l)}},[t,n]);const s=n?Ee(n):null,o=(s==null?void 0:s.layers.indexOf(e.current))??-1,c=o>=0?o:(s==null?void 0:s.layers.length)??0;return{id:e.current,zIndex:Un+c*Yn}}function tt(t,n){const e=Ee(t).layers;return e.length>0&&e[e.length-1]===n}function Qn(t,n,e){i.useEffect(()=>{if(!t||!n)return;const r=Ee(n);return r.focusLayers.add(e),()=>{r.focusLayers.delete(e)}},[t,e,n])}function nt(t,n){const e=Ee(t);for(let r=e.layers.length-1;r>=0;r-=1){const s=e.layers[r];if(e.focusLayers.has(s))return s===n}return!1}function Xn(t,n){const e=t.composedPath();return n.some(r=>{var c;const s=r.current;if(!s)return!1;if(e.includes(s))return!0;const o=(c=s.ownerDocument.defaultView)==null?void 0:c.Node;return o&&t.target instanceof o?s.contains(t.target):!1})}function Ve(t){const{active:n,boundaries:e,dismissOnEscape:r=!0,dismissOnPointerDownOutside:s=!0,layerId:o,onEscapeDismiss:c,onEscapeKeyDown:l,onPointerDownOutside:p,onPointerDownOutsideDismiss:h,ownerDocument:d}=t;i.useEffect(()=>{if(!n||!d)return;function u(m){m.key!=="Escape"||!r||!tt(d,o)||(l==null||l(m),!m.defaultPrevented&&(m.preventDefault(),c==null||c()))}function v(m){!s||!tt(d,o)||Xn(m,e)||(p==null||p(m),!m.defaultPrevented&&(h==null||h()))}return d.addEventListener("keydown",u,!0),d.addEventListener("pointerdown",v,!0),()=>{d.removeEventListener("keydown",u,!0),d.removeEventListener("pointerdown",v,!0)}},[n,e,r,s,o,c,l,p,h,d])}const Jn=["a[href]","area[href]","button","input:not([type=hidden])","select","textarea","iframe","[contenteditable]:not([contenteditable='false'])","[tabindex]"].join(",");function er(t,n){let e=t;for(;e;){if(e.hidden||e.inert||e.getAttribute("aria-hidden")==="true")return!0;const r=e.ownerDocument.defaultView,s=r==null?void 0:r.getComputedStyle(e);if((s==null?void 0:s.display)==="none"||(s==null?void 0:s.visibility)==="hidden")return!0;if(e===n)break;e=e.parentElement}return!1}function tr(t,n){var o;const e=(o=t.ownerDocument.defaultView)==null?void 0:o.HTMLInputElement;if(!e||!(t instanceof e)||t.type!=="radio"||!t.name)return!0;const r=n.filter(c=>c instanceof e&&c.type==="radio"&&c.name===t.name&&c.form===t.form),s=r.find(c=>c.checked);return s?s===t:r[0]===t}function nr(t){const n=Array.from(t.querySelectorAll(Jn)).filter(e=>!e.matches(":disabled")&&e.tabIndex>=0&&!er(e,t));return n.filter(e=>tr(e,n))}function rt(t,n){const e=[t,...n];return[...new Set(e.flatMap(s=>nr(s)))].sort((s,o)=>{var p;if(s===o)return 0;const c=s.compareDocumentPosition(o),l=((p=s.ownerDocument.defaultView)==null?void 0:p.Node.DOCUMENT_POSITION_FOLLOWING)??4;return c&l?-1:1})}function Fe(t,n,e){return e?t.contains(e)||[...n].some(r=>r.contains(e)):!1}function vt(t){const{active:n,autoFocus:e=!0,container:r,initialFocusReference:s,layerId:o,restoreFocus:c=!0}=t,l=(r==null?void 0:r.ownerDocument)??null,p=i.useRef(new Set),h=i.useCallback(u=>(p.current.add(u),()=>p.current.delete(u)),[]),d=i.useMemo(()=>({registerBranch:h}),[h]);return Qn(n&&!!r,l,o),i.useEffect(()=>{var E,_;if(!n||!r)return;const u=r.ownerDocument,v=(E=u.defaultView)==null?void 0:E.HTMLElement,m=(_=u.defaultView)==null?void 0:_.Node,g=v&&u.activeElement instanceof v?u.activeElement:null;let k=!0;function b(){const C=s==null?void 0:s.current;(C&&Fe(r,p.current,C)?C:rt(r,p.current)[0]??r).focus({preventScroll:!0})}function x(C){if(C.key!=="Tab"||!nt(u,o))return;const P=rt(r,p.current);if(P.length===0){C.preventDefault(),r==null||r.focus({preventScroll:!0});return}const I=P[0],L=P[P.length-1],T=u.activeElement,F=Fe(r,p.current,T);C.shiftKey&&(T===I||!F)?(C.preventDefault(),L.focus()):!C.shiftKey&&(T===L||!F)&&(C.preventDefault(),I.focus())}function V(C){nt(u,o)&&m&&C.target instanceof m&&!Fe(r,p.current,C.target)&&b()}return u.addEventListener("keydown",x,!0),u.addEventListener("focusin",V,!0),e&&Promise.resolve().then(()=>{k&&b()}),()=>{k=!1,u.removeEventListener("keydown",x,!0),u.removeEventListener("focusin",V,!0),c&&(g!=null&&g.isConnected)&&g.focus({preventScroll:!0})}},[n,e,r,s,o,c]),d}function rr(){const[t,n]=i.useState(!1);return i.useEffect(()=>{const e=typeof window>"u"?null:window;if(!(e!=null&&e.matchMedia))return;const r=e.matchMedia("(prefers-reduced-motion: reduce)"),s=()=>{n(r.matches)};return s(),r.addEventListener("change",s),()=>r.removeEventListener("change",s)},[]),t}function Te(t,n=200){const e=rr(),[r,s]=i.useState(t);return i.useEffect(()=>{if(t){s(!0);return}if(!r)return;if(e||n<=0){s(!1);return}const o=window.setTimeout(()=>{s(!1)},n);return()=>window.clearTimeout(o)},[n,t,e,r]),{present:r,state:t?"open":r?"closing":"closed"}}const Me=new WeakMap;function or(t,n){i.useEffect(()=>{if(!t||!n)return;const e=Me.get(n);if(e)e.count+=1;else{const r=n.body,s=n.defaultView,o=s&&Number.parseFloat(s.getComputedStyle(r).paddingRight)||0,c=n.documentElement.clientWidth,l=s&&c>0?Math.max(0,s.innerWidth-c):0,p={count:1,overflow:r.style.overflow,paddingRight:r.style.paddingRight};Me.set(n,p),r.style.overflow="hidden",l>0&&(r.style.paddingRight=`${o+l}px`)}return()=>{const r=Me.get(n);r&&(r.count-=1,!(r.count>0)&&(n.body.style.overflow=r.overflow,n.body.style.paddingRight=r.paddingRight,Me.delete(n)))}},[t,n])}function sr(t,n,e){n.current=t,typeof e=="function"?e(t):e&&(e.current=t)}function ir(t){const{"aria-label":n,"aria-labelledby":e,children:r,className:s,closeButtonLabel:o="Close modal",exitable:c=!0,forwardedReference:l,initialFocusReference:p,lockScroll:h=!0,onClose:d,open:u,ownerDocument:v,presenceState:m,restoreFocus:g=!0,role:k="dialog",style:b,title:x,trapFocus:V=!0,...E}=t,_=i.useRef(null),C=i.useContext(Re),P=`${i.useId()}-title`,[I,L]=i.useState(null),T=_e(!0,v),F=i.useMemo(()=>[_],[]),H=!!(x!=null&&x.trim()),O=e??(n===void 0&&H?P:void 0),M=i.useCallback(S=>{sr(S,_,l),L(S)},[l]);i.useLayoutEffect(()=>{I&&(I.inert=!u)},[I,u]);const Z=i.useCallback(()=>{d==null||d("escape")},[d]),R=i.useCallback(()=>{d==null||d("outside")},[d]);Ve({active:u,boundaries:F,dismissOnEscape:c,dismissOnPointerDownOutside:c,layerId:T.id,onEscapeDismiss:Z,onPointerDownOutsideDismiss:R,ownerDocument:v});const w=vt({active:u&&V,container:I,initialFocusReference:p,layerId:T.id,restoreFocus:g});or(h,v);const y=c?a.jsx(Le,{"aria-label":o,className:"nk-modal__close",icon:"cross",onClick:()=>d==null?void 0:d("close-button"),shape:"rectangle",type:"button",variant:"ghost"}):null;return a.jsx(Re.Provider,{value:u&&V?w:C,children:a.jsx("div",{className:"nk-modal__overlay","data-state":m,role:"presentation",style:{zIndex:T.zIndex},children:a.jsxs(Pe,{...E,ref:M,"aria-hidden":u?void 0:!0,"aria-label":u?n:void 0,"aria-labelledby":u?O:void 0,"aria-modal":u?"true":void 0,className:["nk-modal",s].filter(Boolean).join(" "),"data-state":m,role:u?k:void 0,style:b,tabIndex:-1,children:[H?a.jsxs("div",{className:"nk-modal__header",children:[a.jsx(ae,{as:"h2",className:"nk-modal__title",id:P,size:"subtitle",weight:"semibold",children:x}),y]}):y,r]})})})}const ar=i.forwardRef(function(n,e){const{open:r,portalContainer:s}=n,o=Te(r),c=(s==null?void 0:s.ownerDocument)??(typeof document>"u"?null:document);return o.present?a.jsx(Ne,{container:s,children:a.jsx(ir,{...n,forwardedReference:e,ownerDocument:c,presenceState:o.state==="closing"?"closing":"open"})}):null}),lr=Number.parseInt(i.version,10);function mt(t){return lr>=19?t.props.ref:t.ref}function Se(t,n){typeof t=="function"?t(n):t&&(t.current=n)}const cr=12,ur={bottom:"top",left:"right",right:"left",top:"bottom"};function ot(t,n){const e=Math.min(cr,n/2);return Math.min(Math.max(e,t),n-e)}function dr(t){return ur[t]}function fr(t,n){return n==="left"||n==="right"?t.width:t.height}function hr(t,n,e,r,s,o){const c={bottom:o-e.bottom-n*2,left:e.left-n*2,right:s-e.right-n*2,top:e.top-n*2},l=dr(t),p=fr(r,t),h=c[t]<p&&c[l]>c[t]?l:t;let d=e.left+(e.width-r.width)/2,u=e.top+(e.height-r.height)/2;return h==="top"?u=e.top-r.height-n:h==="bottom"?u=e.bottom+n:h==="left"?d=e.left-r.width-n:d=e.right+n,d=Math.min(Math.max(n,d),Math.max(n,s-n-r.width)),u=Math.min(Math.max(n,u),Math.max(n,o-n-r.height)),{arrowOffset:h==="top"||h==="bottom"?ot(e.left+e.width/2-d,r.width):ot(e.top+e.height/2-u,r.height),left:d,placement:h,top:u}}const pr=8;function gt(t,n,e,r){const[s,o]=i.useState(null);return i.useEffect(()=>{if(!t||!e||!r){o(null);return}const c=e.ownerDocument.defaultView;if(!c)return;const l=c,p=l.getComputedStyle(e),h=Number.parseFloat(p.getPropertyValue("--nk-space-8")),d=Number.isFinite(h)?h:pr;function u(){const g=e==null?void 0:e.getBoundingClientRect(),k=r==null?void 0:r.getBoundingClientRect();!g||!k||o(hr(n,d,g,k,l.innerWidth,l.innerHeight))}u(),l.addEventListener("resize",u),l.addEventListener("scroll",u,!0);const v=l.ResizeObserver,m=v?new v(u):null;return m==null||m.observe(e),m==null||m.observe(r),()=>{l.removeEventListener("resize",u),l.removeEventListener("scroll",u,!0),m==null||m.disconnect()}},[t,r,n,e]),s}function vr(t,n,e){n.current=t,Se(e,t)}function mr(t,n,e){n.current=t,Se(e,t)}function gr(t,n){const e=(t==null?void 0:t.split(/\s+/).filter(Boolean))??[];return e.includes(n)||e.push(n),e.join(" ")}function wr(t){const n=t.tagName.toLowerCase();return t.getAttribute("role")==="button"&&n!=="button"?!1:["button","input","select","summary","textarea"].includes(n)?!0:n==="a"&&t.hasAttribute("href")}function xr(t){return t==="grid"||t==="listbox"||t==="menu"||t==="tree"?t:"dialog"}const br=i.forwardRef(function(n,e){const{"aria-label":r,"aria-labelledby":s,autoFocus:o=!0,children:c,className:l,closeOnEscape:p=!0,closeOnOutsideInteraction:h=!0,defaultOpen:d=!1,disabled:u=!1,initialFocusReference:v,onEscapeKeyDown:m,onOpenChange:g,onPointerDownOutside:k,open:b,placement:x="bottom",portalContainer:V,restoreFocus:E=!0,role:_="dialog",style:C,tabIndex:P,trapFocus:I=!1,trigger:L,...T}=n;if(L.type===i.Fragment)throw new Error("Popover requires a single non-Fragment trigger");const F=i.useId(),H=i.useContext(Re),O=`${F}-popover`,M=L.props,Z=mt(L),R=M.id??`${F}-trigger`,w=u||M.disabled===!0||M["aria-disabled"]===!0||M["aria-disabled"]==="true",y=b!==void 0,[S,A]=i.useState(d),N=y?b:S,B=Te(N),Q=i.useRef(null),U=i.useRef(null),G=i.useRef("programmatic"),W=i.useRef(null),se=i.useRef(N),ue=i.useRef(null),[pe,be]=i.useReducer(D=>D+1,0),[z,Y]=i.useState(null),[te,X]=i.useState(null),q=(V==null?void 0:V.ownerDocument)??(z==null?void 0:z.ownerDocument)??(typeof document>"u"?null:document),de=_e(B.present,q),J=i.useMemo(()=>[Q,U],[]),ne=gt(B.present,x,z,te),ve=N?{}:{inert:""},ye=i.useCallback(D=>{mr(D,Q,Z),Y(D)},[Z]),ke=i.useCallback(D=>{vr(D,U,e),X(D)},[e]),ie=i.useCallback((D,K)=>{N!==D&&(y?(W.current={open:D,reason:K},be()):(G.current=K,A(D)),g==null||g(D,K))},[y,g,N]),je=i.useCallback(()=>{ie(!1,"escape")},[ie]),me=i.useCallback(()=>{ie(!1,"outside")},[ie]),f=i.useCallback(D=>{var Ce;if(k==null||k(D),D.defaultPrevented)return;const K=(Ce=q==null?void 0:q.defaultView)==null?void 0:Ce.HTMLElement;ue.current=K?D.composedPath().find(we=>we instanceof K&&we.tabIndex>=0)??D.target:D.target},[k,q]);Ve({active:N,boundaries:J,dismissOnEscape:p,dismissOnPointerDownOutside:h,layerId:de.id,onEscapeDismiss:je,onEscapeKeyDown:m,onPointerDownOutside:f,onPointerDownOutsideDismiss:me,ownerDocument:q});const j=vt({active:N&&I,autoFocus:o,container:te,initialFocusReference:v,layerId:de.id,restoreFocus:E});i.useEffect(()=>{if(!N||I||!o||!te)return;let D=!0;return Promise.resolve().then(()=>{if(!D)return;const K=v==null?void 0:v.current;(K&&te.contains(K)?K:te).focus({preventScroll:!0})}),()=>{D=!1}},[o,v,N,te,I]),i.useEffect(()=>{var $e;const D=se.current;se.current=N;const K=W.current,Ce=y?D!==N&&(K==null?void 0:K.open)===N?K.reason:"programmatic":G.current;if(W.current=null,N){G.current="programmatic",ue.current=null;return}const we=q==null?void 0:q.activeElement,Ae=ue.current,De=($e=q==null?void 0:q.defaultView)==null?void 0:$e.HTMLElement,It=Ce==="outside"&&De&&Ae instanceof De&&we instanceof De&&(Ae===we||Ae.contains(we));D&&!I&&E&&!It&&(z==null||z.focus({preventScroll:!0})),ue.current=null},[pe,y,N,q,E,I,z]),i.useEffect(()=>{u&&N&&ie(!1,"programmatic")},[u,N,ie]);function $(D){var K;if(w){D.preventDefault(),D.stopPropagation();return}(K=M.onClick)==null||K.call(M,D),!D.defaultPrevented&&ie(!N,"trigger")}function ee(D){var K;(K=M.onKeyDown)==null||K.call(M,D),!(D.defaultPrevented||w||wr(D.currentTarget)||D.key!=="Enter"&&D.key!==" ")&&(D.preventDefault(),D.currentTarget.click())}if(u)return L;const re=typeof L.type=="string",oe=re?L.type:null,ge=oe==="a"&&typeof M.href=="string",qe=re&&!(oe==="button"||oe==="input"||oe==="select"||oe==="summary"||oe==="textarea"||ge),Ge=ge&&w,jt=i.cloneElement(L,{"aria-controls":N?gr(M["aria-controls"],O):M["aria-controls"],"aria-expanded":N,"aria-haspopup":M["aria-haspopup"]??xr(_),"aria-disabled":w?!0:M["aria-disabled"],className:[M.className,"nk-popover__trigger"].filter(Boolean).join(" "),href:Ge?void 0:M.href,id:R,onClick:$,onKeyDown:re?ee:M.onKeyDown,ref:ye,role:M.role??(Ge?"link":qe?"button":void 0),tabIndex:w?-1:M.tabIndex??(qe?0:void 0)});return a.jsxs(a.Fragment,{children:[jt,a.jsx(Re.Provider,{value:N&&I?j:H,children:B.present&&q?a.jsx(Ne,{container:V,inheritFrom:z,children:a.jsxs(Pe,{...T,...ve,ref:ke,"aria-hidden":N?void 0:!0,"aria-label":N?r:void 0,"aria-labelledby":N?s??(r===void 0?R:void 0):void 0,className:["nk-popover",l].filter(Boolean).join(" "),"data-placement":(ne==null?void 0:ne.placement)??x,"data-state":B.state==="closing"?"closing":"open",id:O,role:N?_:void 0,style:ne?{...C,"--nk-popover-arrow-offset":`${ne.arrowOffset}px`,left:ne.left,top:ne.top,zIndex:de.zIndex}:{...C,visibility:"hidden",zIndex:de.zIndex},tabIndex:P??-1,children:[a.jsx("span",{"aria-hidden":"true",className:"nk-popover__arrow"}),a.jsx("div",{className:"nk-popover__content",children:c})]})}):null})]})}),yr=3,kr=10,wt=4;function jr(t){return Number.isFinite(t)?Math.min(kr,Math.max(yr,Math.trunc(t))):wt}function xe(t,n,e){return(n==="numeric"?t.replace(/[^0-9]/g,""):t.replace(/[^0-9a-z]/gi,"").toUpperCase()).slice(0,e)}function Ir(t,n,e){n.current=t,typeof e=="function"?e(t):e&&(e.current=t)}function Cr(t,n){var r;const e=(r=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value"))==null?void 0:r.set;e?e.call(t,n):t.value=n}function He(t,n,e){const r=Math.min(e-1,Math.max(0,n)),s=Math.min(r+1,t.value.length);t.focus(),t.setSelectionRange(r,s)}function Rr(t){const{defaultValue:n,disabled:e,forwardedReference:r,length:s,mode:o,onChange:c,onComplete:l,onFocus:p,onKeyDown:h,onPaste:d,onSelect:u,readOnly:v,value:m}=t,g=jr(s),k=xe(n,o,g),b=i.useRef(null),[x,V]=i.useState(k),[E,_]=i.useState(0),C=m!==void 0,P=xe(C?m:x,o,g),I=i.useCallback(R=>Ir(R,b,r),[r]);i.useEffect(()=>{!C&&x!==P&&V(P)},[C,P,x]),i.useEffect(()=>{var S;if(C)return;const R=(S=b.current)==null?void 0:S.form;if(!R)return;const w=R.getRootNode();function y(A){A.target!==R||A.defaultPrevented||(V(k),_(0))}return w.addEventListener("reset",y),()=>w.removeEventListener("reset",y)},[C,k]);function L(R){const w=R.selectionStart??P.length;return Math.min(g-1,Math.max(0,w))}function T(R){const w=R.currentTarget,y=w.selectionStart??w.value.length,S=xe(w.value,o,g),A=xe(w.value.slice(0,y),o,g).length;w.value=S,C||V(S),c==null||c(R),S.length===g&&S!==P&&(l==null||l(S));const N=Math.min(g-1,A);_(N),w.setSelectionRange(N,Math.min(N+1,S.length))}function F(R){if(d==null||d(R),R.defaultPrevented||e||v)return;const w=xe(R.clipboardData.getData("text"),o,g);if(R.preventDefault(),w.length===0)return;const y=R.currentTarget,S=y.selectionStart??P.length,A=y.selectionEnd??S,N=w.length===g?w:xe(P.slice(0,S)+w+P.slice(A),o,g),B=w.length===g?g:Math.min(g,S+w.length);Cr(y,N),y.setSelectionRange(B,B),y.dispatchEvent(new Event("input",{bubbles:!0}))}function H(R){if(h==null||h(R),R.defaultPrevented||R.key!=="ArrowLeft"&&R.key!=="ArrowRight")return;R.preventDefault();const w=R.key==="ArrowLeft"?-1:1,y=Math.min(g-1,Math.max(0,L(R.currentTarget)+w));_(y),He(R.currentTarget,y,g)}function O(R){p==null||p(R);const w=Math.min(g-1,P.length);_(w),He(R.currentTarget,w,g)}function M(R){u==null||u(R),_(L(R.currentTarget))}function Z(R,w){if(R.preventDefault(),e)return;const y=b.current;y&&(_(w),He(y,w,g))}return{activeIndex:E,handleChange:T,handleFocus:O,handleKeyDown:H,handlePaste:F,handleSelect:M,handleSlotPointerDown:Z,inputCallbackReference:I,length:g,renderedValue:P}}const Er=i.forwardRef(function(n,e){const{"aria-invalid":r,autoCapitalize:s,autoComplete:o="one-time-code",className:c,censored:l=!1,defaultValue:p="",disabled:h=!1,invalid:d=!1,length:u=wt,mode:v="numeric",onChange:m,onComplete:g,onFocus:k,onKeyDown:b,onPaste:x,onSelect:V,readOnly:E=!1,style:_,value:C,wrap:P=!1,...I}=n,{activeIndex:L,handleChange:T,handleFocus:F,handleKeyDown:H,handlePaste:O,handleSelect:M,handleSlotPointerDown:Z,inputCallbackReference:R,length:w,renderedValue:y}=Rr({defaultValue:p,disabled:h,forwardedReference:e,length:u,mode:v,onChange:m,onComplete:g,onFocus:k,onKeyDown:b,onPaste:x,onSelect:V,readOnly:E,value:C}),S=d||ce(r),A=!P&&w>=6&&w%2===0,N=w/2,B={..._,"--nk-pin-input-columns":Math.ceil(w/2)};return a.jsxs("span",{className:["nk-pin-input",c].filter(Boolean).join(" "),"data-disabled":h||void 0,"data-invalid":S||void 0,"data-read-only":E||void 0,"data-wrap":P||void 0,style:B,children:[a.jsx("input",{...I,ref:R,"aria-invalid":fe(d,r),autoCapitalize:s??(v==="alphanumeric"?"characters":"off"),autoComplete:o,className:"nk-pin-input__control",disabled:h,inputMode:v==="numeric"?"numeric":"text",maxLength:w,minLength:w,onChange:T,onFocus:F,onKeyDown:H,onPaste:O,onSelect:M,pattern:v==="numeric"?`[0-9]{${w}}`:`[0-9A-Za-z]{${w}}`,readOnly:E,spellCheck:!1,type:"text",value:y}),a.jsx("span",{"aria-hidden":"true",className:"nk-pin-input__slots",children:Array.from({length:w},(Q,U)=>a.jsxs("span",{className:"nk-pin-input__slot-group",children:[A&&U===N?a.jsx("span",{className:"nk-pin-input__separator",children:"-"}):null,a.jsx("span",{className:"nk-pin-input__slot","data-active":L===U||void 0,onPointerDown:G=>Z(G,U),children:l&&y[U]?a.jsx("span",{className:"nk-pin-input__censor"}):y[U]??""})]},U))})]})}),xt=i.createContext(void 0);function Pr(){const t=i.useContext(xt);if(!t)throw new Error("Radio must be rendered within RadioGroup");return t}function Mr(t,n,e){n.current=t,typeof e=="function"?e(t):e&&(e.current=t)}const Lr=i.forwardRef(function(n,e){const{children:r,className:s,disabled:o=!1,style:c,value:l,...p}=n,h=Pr(),d=i.useRef(null),u=h.disabled||o,v=h.value!==void 0,m=h.value===l,g=i.useCallback(k=>Mr(k,d,e),[e]);return i.useEffect(()=>{var k;!v&&u&&((k=d.current)!=null&&k.checked)&&(d.current.checked=!1)},[v,u]),a.jsxs("label",{className:["nk-radio",s].filter(Boolean).join(" "),"data-disabled":u||void 0,style:c,children:[a.jsx("input",{...p,ref:g,checked:v?!u&&m:void 0,className:"nk-radio__control",defaultChecked:v?void 0:!u&&h.defaultValue===l,disabled:u,name:h.name,onChange:h.onChange,required:h.required,type:"radio",value:l}),a.jsx("span",{"aria-hidden":"true",className:"nk-radio__visual"}),a.jsx(ae,{as:"span",className:"nk-radio__label",children:r})]})}),bt=i.forwardRef(function(n,e){const{"aria-invalid":r,children:s,className:o,defaultValue:c,disabled:l=!1,invalid:p=!1,name:h,onChange:d,orientation:u="vertical",required:v=!1,value:m,...g}=n,k=p||ce(r),b={defaultValue:c,disabled:l,name:h,onChange:d,required:v,value:m};return a.jsx(xt.Provider,{value:b,children:a.jsx("div",{...g,ref:e,"aria-disabled":l||void 0,"aria-invalid":fe(p,r),"aria-required":v||void 0,className:["nk-radio-group",o].filter(Boolean).join(" "),"data-disabled":l||void 0,"data-invalid":k||void 0,"data-orientation":u,role:"radiogroup",children:s})})});ft(bt,"group");function We(t,n,e){if(t.length===0)return-1;for(let r=1;r<=t.length;r+=1){const s=(n+e*r+t.length)%t.length;if(!t[s].disabled)return s}return-1}function Sr(t,n,e){for(let r=1;r<=t.length;r+=1){const s=(e+r+t.length)%t.length,o=t[s];if(!o.disabled&&o.label.toLocaleLowerCase().startsWith(n))return s}return-1}function Nr(t){const n=new Set;t.forEach(e=>{if(n.has(e.value))throw new Error("Select option values must be unique");n.add(e.value)})}function _r(t,n,e){n.current=t,typeof e=="function"?e(t):e&&(e.current=t)}function Vr(t){const{"aria-invalid":n,children:e,className:r,defaultValue:s,disabled:o=!1,forwardedReference:c,invalid:l=!1,placeholder:p,style:h,value:d,...u}=t,v=fe(l,n),m=l||ce(n);return a.jsxs("span",{className:["nk-select",r].filter(Boolean).join(" "),"data-disabled":o||void 0,"data-invalid":m||void 0,"data-mode":"native",style:h,children:[a.jsxs("select",{...u,ref:c,"aria-invalid":v,className:"nk-select__control",defaultValue:d===void 0?s??(p!==void 0?"":void 0):void 0,disabled:o,value:d,children:[p!==void 0?a.jsx("option",{disabled:!0,value:"",children:p}):null,e]}),a.jsx(le,{className:"nk-select__icon",type:"chevron-down"})]})}function Tr(t,n,e){const[r,s]=i.useState(null);return i.useEffect(()=>{if(!t||!n){s(null);return}const o=n.ownerDocument.defaultView;if(!o)return;const c=o;function l(){const d=n==null?void 0:n.getBoundingClientRect();if(!d)return;const u=8,v=4,m=c.innerHeight-d.bottom-v-u,g=d.top-v-u,k=m<160&&g>m,b=Math.max(72,k?g:m),x=e==null?void 0:e.getBoundingClientRect(),V=Math.max(d.width,(x==null?void 0:x.width)??d.width),E=Math.min(Math.max(u,d.left),Math.max(u,c.innerWidth-u-V)),_=k?Math.max(u,d.top-v-Math.min((x==null?void 0:x.height)??b,b)):d.bottom+v;s({left:E,maxHeight:b,minWidth:d.width,top:_})}l(),c.addEventListener("resize",l),c.addEventListener("scroll",l,!0);const p=c.ResizeObserver,h=p?new p(l):null;return h==null||h.observe(n),e&&(h==null||h.observe(e)),()=>{c.removeEventListener("resize",l),c.removeEventListener("scroll",l,!0),h==null||h.disconnect()}},[t,e,n]),r}function Ar(t){const{active:n,closeOnEscape:e,closeOnOutsideInteraction:r,highlightedIndex:s,id:o,listboxReference:c,onEscapeDismiss:l,onEscapeKeyDown:p,onHighlight:h,onOutsideDismiss:d,onPointerDownOutside:u,onSelect:v,options:m,ownerDocument:g,position:k,selectedValue:b,state:x,triggerReference:V}=t,E=i.useRef(null),_=_e(!0,g),C=i.useMemo(()=>[V,E],[V]),P=i.useCallback(I=>{E.current=I,c(I)},[c]);return Ve({active:n,boundaries:C,dismissOnEscape:e,dismissOnPointerDownOutside:r,layerId:_.id,onEscapeDismiss:l,onEscapeKeyDown:p,onPointerDownOutside:u,onPointerDownOutsideDismiss:d,ownerDocument:g}),a.jsx("div",{"aria-hidden":n?void 0:!0,"aria-labelledby":o,className:"nk-select__listbox","data-state":x,id:`${o}-listbox`,ref:P,role:"listbox",style:k?{left:k.left,maxHeight:k.maxHeight,minWidth:k.minWidth,top:k.top,zIndex:_.zIndex}:{visibility:"hidden",zIndex:_.zIndex},children:m.map((I,L)=>a.jsxs("div",{"aria-disabled":I.disabled||void 0,"aria-selected":I.value===b,className:"nk-select__option","data-highlighted":L===s||void 0,"data-selected":I.value===b||void 0,id:`${o}-option-${L}`,onPointerDown:T=>{T.preventDefault(),I.disabled||v(I)},onPointerMove:()=>{I.disabled||h(L)},role:"option",children:[I.icon?a.jsx(le,{type:I.icon}):null,a.jsx("span",{className:"nk-select__option-label",children:I.label}),I.value===b?a.jsx(le,{className:"nk-select__check",type:"checkmark"}):null]},I.value))})}function Dr(t){var me;const{"aria-invalid":n,className:e,closeOnEscape:r=!0,closeOnOutsideInteraction:s=!0,defaultValue:o="",disabled:c=!1,displayOverride:l,form:p,forwardedReference:h,id:d,invalid:u=!1,name:v,onChange:m,onClick:g,onEscapeKeyDown:k,onKeyDown:b,onOpenChange:x,onPointerDownOutside:V,options:E,placeholder:_,portalContainer:C,required:P=!1,style:I,value:L,width:T,...F}=t;Nr(E);const H=i.useId(),O=d??H,M=i.useRef(null),Z=i.useRef(null),R=i.useRef(null),w=i.useRef(""),[y,S]=i.useState(null),[A,N]=i.useState(!1),[B,Q]=i.useState(-1),[U,G]=i.useState(o),W=L!==void 0,se=W?L:U,ue=E.find(f=>f.value===se),pe=u||ce(n),be=fe(u,n),z=Te(A),Y=(C==null?void 0:C.ownerDocument)??((me=M.current)==null?void 0:me.ownerDocument)??(typeof document>"u"?null:document),te=Tr(z.present,M.current,y),X=T===void 0?I:{...I,width:T},q=l??ue,de=i.useCallback(f=>{_r(f,M,h)},[h]),J=i.useCallback(f=>{A!==f&&(N(f),x==null||x(f))},[x,A]),ne=i.useCallback((f=1)=>{const j=E.findIndex(ee=>ee.value===se&&!ee.disabled),$=f===1?-1:E.length;Q(j>=0?j:We(E,$,f)),J(!0)},[E,se,J]),ve=i.useCallback(f=>{var j;f.disabled||(W||G(f.value),J(!1),(j=M.current)==null||j.focus(),m==null||m(f.value))},[W,m,J]),ye=i.useCallback(()=>{var f;J(!1),(f=M.current)==null||f.focus()},[J]),ke=i.useCallback(()=>{J(!1)},[J]);function ie(f){g==null||g(f),!(f.defaultPrevented||c)&&(A?J(!1):ne())}function je(f){if(b==null||b(f),!(f.defaultPrevented||c)){if(f.key==="ArrowDown"||f.key==="ArrowUp"){f.preventDefault();const j=f.key==="ArrowDown"?1:-1;A?Q($=>We(E,$,j)):ne(j);return}if(f.key==="Home"||f.key==="End"){if(f.preventDefault(),!A)ne(f.key==="Home"?1:-1);else{const j=f.key==="Home"?1:-1,$=j===1?-1:E.length;Q(We(E,$,j))}return}if(f.key==="Enter"||f.key===" "){f.preventDefault();const j=E[B];A&&j?ve(j):A||ne();return}if(f.key==="Tab"){J(!1);return}if(f.key.length===1&&!f.altKey&&!f.ctrlKey&&!f.metaKey){const j=f.currentTarget.ownerDocument.defaultView;if(!j)return;const $=f.key.toLocaleLowerCase(),ee=w.current+$,re=Array.from(ee).every(ge=>ge===$);w.current=re?$:ee,R.current!==null&&j.clearTimeout(R.current),R.current=j.setTimeout(()=>{w.current="",R.current=null},500);const oe=Sr(E,w.current,B);oe>=0&&(f.preventDefault(),A||J(!0),Q(oe))}}}return i.useEffect(()=>{var f;if(A&&B>=0){const j=Y==null?void 0:Y.getElementById(`${O}-option-${B}`);j&&(y!=null&&y.contains(j))&&((f=j.scrollIntoView)==null||f.call(j,{block:"nearest"}))}},[B,O,y,A]),i.useEffect(()=>{var $;const f=($=M.current)==null?void 0:$.form;if(!f)return;function j(){const ee=Z.current,re=W?se:o;if(ee){const oe=Array.from(ee.options),ge=oe.find(Ie=>Ie.value===re)??oe[0];oe.forEach(Ie=>{Ie.defaultSelected=Ie===ge})}W||G(o),J(!1)}return f.addEventListener("reset",j),()=>f.removeEventListener("reset",j)},[o,p,W,se,J]),i.useEffect(()=>()=>{var j;const f=(j=M.current)==null?void 0:j.ownerDocument.defaultView;f&&R.current!==null&&f.clearTimeout(R.current)},[]),a.jsxs("span",{className:["nk-select",e].filter(Boolean).join(" "),"data-disabled":c||void 0,"data-invalid":pe||void 0,"data-mode":"custom","data-open":A||void 0,style:X,children:[a.jsxs("button",{...F,ref:de,"aria-activedescendant":A&&B>=0?`${O}-option-${B}`:void 0,"aria-controls":`${O}-listbox`,"aria-expanded":A,"aria-haspopup":"listbox","aria-invalid":be,"aria-required":P||void 0,"aria-autocomplete":"none",className:"nk-select__trigger",disabled:c,form:p,id:O,onClick:ie,onKeyDown:je,role:"combobox",type:"button",children:[q?a.jsxs("span",{className:"nk-select__value",children:[q.icon?a.jsx(le,{type:q.icon}):null,a.jsx("span",{className:"nk-select__value-label",children:q.label})]}):a.jsx("span",{className:"nk-select__placeholder",children:_}),a.jsx(le,{className:"nk-select__icon",type:"chevron-down"})]}),v||P?a.jsxs("select",{ref:Z,"aria-hidden":"true",className:"nk-select__form-control",disabled:c,form:p,name:v,onChange:()=>{},onInvalid:f=>{var j;f.preventDefault(),(j=M.current)==null||j.focus()},required:P,tabIndex:-1,value:se,children:[a.jsx("option",{value:""}),E.map(f=>a.jsx("option",{disabled:f.disabled,value:f.value,children:f.label},f.value))]}):null,z.present&&Y?a.jsx(Ne,{container:C,inheritFrom:M.current,children:a.jsx(Ar,{active:A,closeOnEscape:r,closeOnOutsideInteraction:s,highlightedIndex:B,id:O,listboxReference:S,onEscapeDismiss:ye,onEscapeKeyDown:k,onHighlight:Q,onOutsideDismiss:ke,onPointerDownOutside:V,onSelect:ve,options:E,ownerDocument:Y,position:te,selectedValue:se,state:z.state==="closing"?"closing":"open",triggerReference:M})}):null]})}const Or=i.forwardRef(function(n,e){const{options:r}=n;return r!==void 0?a.jsx(Dr,{...n,forwardedReference:e}):a.jsx(Vr,{...n,forwardedReference:e})}),Br=i.forwardRef(function(n,e){const{"aria-hidden":r=!0,className:s,height:o="1em",shape:c="rectangle",style:l,width:p=c==="circle"?"1em":"100%",...h}=n;return a.jsx("div",{...h,ref:e,"aria-hidden":r,className:["nk-skeleton",s].filter(Boolean).join(" "),"data-shape":c,style:{...l,width:p,height:o}})}),Fr=i.forwardRef(function(n,e){const{"aria-invalid":r,className:s,disabled:o=!1,style:c,...l}=n;return a.jsxs("span",{className:["nk-switch",s].filter(Boolean).join(" "),"data-disabled":o||void 0,"data-invalid":ce(r)||void 0,style:c,children:[a.jsx("input",{...l,ref:e,"aria-invalid":r,className:"nk-switch__control",disabled:o,role:"switch",type:"checkbox"}),a.jsx("span",{"aria-hidden":"true",className:"nk-switch__track",children:a.jsx("span",{className:"nk-switch__thumb"})})]})});function st(t){return Number.isFinite(t)?Math.max(1,Math.floor(t)):1}const Hr=i.forwardRef(function(n,e){const{"aria-invalid":r,className:s,disabled:o=!1,invalid:c=!1,minRows:l,readOnly:p=!1,resize:h="vertical",rows:d,style:u,...v}=n,m=st(d??l??3),k=`calc(${st(l??d??3)*1.25}em + var(--nk-text-area-padding) * 2 + var(--nk-text-area-border-width) * 2)`,b={...u,"--nk-text-area-min-height":k};return a.jsx("textarea",{...v,ref:e,"aria-invalid":fe(c,r),className:["nk-text-area",s].filter(Boolean).join(" "),"data-invalid":c||ce(r)||void 0,"data-resize":h,disabled:o,readOnly:p,rows:m,style:b})}),Wr=500,yt=i.createContext(null);function zr(t){const{children:n,delay:e=Wr}=t,r=i.useMemo(()=>({delay:e}),[e]);return a.jsx(yt.Provider,{value:r,children:n})}const kt=500,it=100;function Zr(t,n,e,r){n.current=t,Se(e,t),Se(r,t)}function qr(t){return Number.isFinite(t)?Math.max(0,t):kt}function Gr(t,n){const e=(t==null?void 0:t.split(/\s+/).filter(Boolean))??[];return e.includes(n)||e.push(n),e.join(" ")}const $r=i.forwardRef(function(n,e){const{children:r,className:s,content:o,contentClassName:c,contentStyle:l,delay:p,disabled:h=!1,onOpenChange:d,placement:u="top",portalContainer:v,style:m}=n;if(o==null||typeof o=="boolean"||typeof o=="string"&&!o.trim())throw new Error("Tooltip content must not be empty");if(r.type===i.Fragment)throw new Error("Tooltip requires a single non-Fragment trigger");const k=`${i.useId()}-tooltip`,b=i.useContext(yt),x=r.props,V=mt(r),E=i.useRef(null),_=i.useRef(null),C=i.useRef(h),P=i.useRef(!1),I=i.useRef(null),L=i.useRef(null),T=i.useRef(null),F=i.useRef(!1),H=i.useRef(!1),O=i.useRef(!1),M=i.useRef(!1),[Z,R]=i.useState(null),[w,y]=i.useState(null),[S,A]=i.useState(!1);C.current=h;const N=qr(p??(b==null?void 0:b.delay)??kt),B=Te(S),Q=(v==null?void 0:v.ownerDocument)??(Z==null?void 0:Z.ownerDocument)??(typeof document>"u"?null:document),U=_e(B.present,Q),G=gt(B.present,u,Z,w),W=i.useMemo(()=>[E,_],[]),se=Gr(x["aria-describedby"],k),ue=S&&B.present?se:x["aria-describedby"],pe=i.useCallback(f=>{Zr(f,E,V,e),R(f)},[e,V]),be=i.useCallback(f=>{_.current=f,f||(M.current=!1),y(f)},[]),z=i.useCallback(()=>{const f=I.current;f&&f.ownerWindow.clearTimeout(f.timerId),I.current=null},[]),Y=i.useCallback(()=>{const f=L.current;f&&f.ownerWindow.clearTimeout(f.timerId),L.current=null},[]),te=i.useCallback(()=>{const f=T.current;f&&f.ownerWindow.clearTimeout(f.timerId),T.current=null},[]),X=i.useCallback(f=>{P.current!==f&&(f||(M.current=!1),P.current=f,A(f),d==null||d(f))},[d]),q=i.useCallback(f=>{var ee,re;if(Y(),H.current||O.current||M.current)return;if(f===0){X(!1);return}const j=((ee=E.current)==null?void 0:ee.ownerDocument.defaultView)??((re=_.current)==null?void 0:re.ownerDocument.defaultView);if(!j){X(!1);return}const $=j.setTimeout(()=>{L.current=null,!H.current&&!O.current&&!M.current&&X(!1)},f);L.current={ownerWindow:j,timerId:$}},[Y,X]),de=i.useCallback(()=>{var $;if(z(),Y(),N===0){X(!0);return}const f=($=E.current)==null?void 0:$.ownerDocument.defaultView;if(!f)return;const j=f.setTimeout(()=>{I.current=null,C.current||X(!0)},N);I.current={ownerWindow:f,timerId:j}},[Y,z,N,X]);function J(f){var j;(j=x.onFocus)==null||j.call(x,f),H.current=!0,Y(),!F.current&&(z(),X(!0))}function ne(f){var j;(j=x.onBlur)==null||j.call(x,f),!f.currentTarget.contains(f.relatedTarget)&&(H.current=!1,z(),q(0))}function ve(f){var j;(j=x.onMouseEnter)==null||j.call(x,f),O.current=!0,de()}function ye(f){var j;(j=x.onMouseLeave)==null||j.call(x,f),O.current=!1,z(),q(it)}function ke(){M.current=!0,Y()}function ie(){M.current=!1,q(it)}function je(f){var ee,re;(ee=x.onPointerDown)==null||ee.call(x,f),z(),Y(),X(!1);const j=(re=E.current)==null?void 0:re.ownerDocument.defaultView;if(!j)return;F.current=!0,te();const $=j.setTimeout(()=>{F.current=!1,T.current=null},0);T.current={ownerWindow:j,timerId:$}}if(Ve({active:S,boundaries:W,dismissOnPointerDownOutside:!0,layerId:U.id,onEscapeDismiss:()=>X(!1),onPointerDownOutsideDismiss:()=>X(!1),ownerDocument:Q}),i.useEffect(()=>{h&&(z(),Y(),te(),F.current=!1,H.current=!1,O.current=!1,M.current=!1,P.current&&X(!1))},[Y,z,te,h,X]),i.useEffect(()=>()=>{z(),Y(),te()},[Y,z,te]),h)return i.cloneElement(r,{ref:pe});const me=i.cloneElement(r,{"aria-describedby":ue,className:[x.className,"nk-tooltip__trigger",s].filter(Boolean).join(" "),onBlur:ne,onFocus:J,onMouseEnter:ve,onMouseLeave:ye,onPointerDown:je,ref:pe,style:{...x.style,...m}});return a.jsxs(a.Fragment,{children:[me,B.present&&Q?a.jsx(Ne,{container:v,inheritFrom:Z,children:a.jsxs(Pe,{ref:be,"aria-hidden":S?void 0:!0,className:["nk-tooltip",c].filter(Boolean).join(" "),"data-placement":(G==null?void 0:G.placement)??u,"data-state":B.state==="closing"?"closing":"open",id:k,onMouseEnter:ke,onMouseLeave:ie,role:"tooltip",style:G?{...l,"--nk-tooltip-arrow-offset":`${G.arrowOffset}px`,left:G.left,top:G.top,zIndex:U.zIndex}:{...l,visibility:"hidden",zIndex:U.zIndex},children:[a.jsx("span",{"aria-hidden":"true",className:"nk-tooltip__arrow"}),o]})}):null]})});exports.Alert=Lt;exports.Avatar=_t;exports.Badge=Vt;exports.Button=Le;exports.Card=Pn;exports.Checkbox=ct;exports.CheckboxGroup=pt;exports.Content=Wn;exports.Divider=zn;exports.Field=Zn;exports.Icon=le;exports.Input=$n;exports.Modal=ar;exports.PinInput=Er;exports.Popover=br;exports.Radio=Lr;exports.RadioGroup=bt;exports.Select=Or;exports.Skeleton=Br;exports.Spinner=Ze;exports.Switch=Fr;exports.Text=ae;exports.TextArea=Hr;exports.Tooltip=$r;exports.TooltipProvider=zr;exports.breakpoint=he;exports.cell=Et;exports.px=Mt;exports.space=Pt;