neatkit 0.2.0 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +373 -674
- package/README.md +9 -34
- package/dist/components/Alert/Alert.d.ts +2 -2
- package/dist/components/Avatar/Avatar.d.ts +1 -1
- package/dist/components/Badge/Badge.d.ts +2 -2
- package/dist/components/Button/Button.d.ts +3 -3
- package/dist/components/Card/Card.d.ts +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +1 -1
- package/dist/components/CheckboxGroup/contexts/CheckboxGroupContext.d.ts +1 -1
- package/dist/components/CheckboxGroup/hooks/useCheckboxGroup.d.ts +1 -1
- package/dist/components/Content/Content.d.ts +2 -2
- package/dist/components/Content/hooks/useContentLayout.d.ts +1 -1
- package/dist/components/Divider/Divider.d.ts +1 -1
- package/dist/components/Field/Field.d.ts +1 -1
- package/dist/components/Icon/Icon.d.ts +2 -2
- package/dist/components/Input/Input.d.ts +1 -1
- package/dist/components/Modal/Modal.d.ts +1 -1
- package/dist/components/PinInput/PinInput.d.ts +1 -1
- package/dist/components/PinInput/hooks/usePinInput.d.ts +1 -1
- package/dist/components/Popover/Popover.d.ts +1 -1
- package/dist/components/Portal/Portal.d.ts +2 -2
- package/dist/components/Portal/hooks/useDismissableLayer.d.ts +1 -1
- package/dist/components/Portal/hooks/useFloatingPosition.d.ts +1 -1
- package/dist/components/Portal/hooks/useFocusTrap.d.ts +1 -1
- package/dist/components/Radio/Radio.d.ts +1 -1
- package/dist/components/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/components/RadioGroup/contexts/RadioGroupContext.d.ts +1 -1
- package/dist/components/RadioGroup/hooks/useRadioGroup.d.ts +1 -1
- package/dist/components/Select/Select.d.ts +2 -2
- package/dist/components/Skeleton/Skeleton.d.ts +1 -1
- package/dist/components/Spinner/Spinner.d.ts +1 -1
- package/dist/components/Surface/Surface.d.ts +1 -1
- package/dist/components/Switch/Switch.d.ts +1 -1
- package/dist/components/Text/Text.d.ts +2 -2
- package/dist/components/TextArea/TextArea.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/components/Tooltip/TooltipProvider.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +937 -887
- package/dist/style.css +1 -1
- package/dist/tokens.d.ts +84 -0
- package/dist/utils/{react-reference.d.ts → reference.d.ts} +1 -1
- package/dist/utils/units.d.ts +33 -0
- package/package.json +3 -2
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"),xt=require("react-dom"),Re=i.forwardRef(function(t,e){const{children:o,className:s,...r}=t;return a.jsx("div",{...r,ref:e,className:["nk-surface",s].filter(Boolean).join(" "),children:o})}),bt=i.forwardRef(function(t,e){const{children:o,className:s,role:r,tone:c="info",...l}=t;return a.jsxs(Re,{...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 yt(n){return(Array.from((n==null?void 0:n.trim())??"")[0]??"?").trim().toUpperCase()||"?"}function kt(n){if(n==="?")return"neutral";const t=Array.from(n)[0]??"";if("AJO".includes(t))return"1";if("BNSV".includes(t))return"2";if("CFLQW".includes(t))return"3";if("EHKMPTX".includes(t))return"4";if("DGRUY".includes(t))return"5";if("IZ".includes(t))return"6";const e=t.codePointAt(0)??0;return String(e%6+1)}const It=i.forwardRef(function(t,e){const{alt:o,className:s,image:r,size:c=32,style:l,...p}=t,[h,u]=i.useState(),d=!!r&&r!==h,v=(o==null?void 0:o.trim())??"",g=yt(v),w=typeof c=="number"?`${c}px`:c,y=v?{"aria-label":v,role:"img"}:{"aria-hidden":!0,role:void 0};function b(){u(r)}return a.jsx("div",{...p,...d?void 0:y,ref:e,className:["nk-avatar",s].filter(Boolean).join(" "),"data-palette":kt(g),"data-state":d?"image":"fallback",style:{...l,"--nk-avatar-size":w},children:d?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})})}),jt=i.forwardRef(function(t,e){const{children:o,className:s,tone:r="neutral",variant:c="outline",...l}=t;return a.jsx("span",{...l,ref:e,className:["nk-badge",s].filter(Boolean).join(" "),"data-tone":r,"data-variant":c,children:o})}),Ct=i.forwardRef(function(t,e){const{height:o=14,width:s=14,...r}=t;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"})})}),Rt=i.forwardRef(function(t,e){const{height:o=14,width:s=14,...r}=t;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"})})}),Mt=i.forwardRef(function(t,e){const{height:o=14,width:s=14,...r}=t;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"})})}),Pt=i.forwardRef(function(t,e){const{height:o=14,width:s=14,...r}=t;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"})]})}),Et=i.forwardRef(function(t,e){const{height:o=14,width:s=14,...r}=t;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"})})}),Lt=i.forwardRef(function(t,e){const{height:o=14,width:s=14,...r}=t;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"})]})}),St=i.forwardRef(function(t,e){const{height:o=14,width:s=14,...r}=t;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"})]})}),Nt=i.forwardRef(function(t,e){const{height:o=14,width:s=14,...r}=t;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"})})}),_t=i.forwardRef(function(t,e){const{height:o=14,width:s=14,...r}=t;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"})})}),Vt=i.forwardRef(function(t,e){const{height:o=14,width:s=14,...r}=t;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"})})}),Tt=i.forwardRef(function(t,e){const{height:o=14,width:s=14,...r}=t;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"})})}),At=i.forwardRef(function(t,e){const{height:o=14,width:s=14,...r}=t;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"})})}),Dt=i.forwardRef(function(t,e){const{height:o=14,width:s=14,...r}=t;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"})})}),Bt=i.forwardRef(function(t,e){const{height:o=14,width:s=14,...r}=t;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"})})}),Ot=i.forwardRef(function(t,e){const{height:o=14,width:s=14,...r}=t;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"})})}),Ht=i.forwardRef(function(t,e){const{height:o=14,width:s=14,...r}=t;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"})})}),Ft=i.forwardRef(function(t,e){const{height:o=14,width:s=14,...r}=t;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"})})}),Wt=i.forwardRef(function(t,e){const{height:o=14,width:s=14,...r}=t;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"})]})}),zt=i.forwardRef(function(t,e){const{height:o=14,width:s=14,...r}=t;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"})]})}),Zt=i.forwardRef(function(t,e){const{height:o=14,width:s=14,...r}=t;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(t,e){const{height:o=14,width:s=14,...r}=t;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"})})}),Gt=i.forwardRef(function(t,e){const{height:o=14,width:s=14,...r}=t;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"})})}),$t=i.forwardRef(function(t,e){const{height:o=14,width:s=14,...r}=t;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"})})}),Kt=i.forwardRef(function(t,e){const{height:o=14,width:s=14,...r}=t;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"})})}),Ut=i.forwardRef(function(t,e){const{height:o=14,width:s=14,...r}=t;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"})})}),Yt=i.forwardRef(function(t,e){const{height:o=14,width:s=14,...r}=t;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"})})}),Qt=i.forwardRef(function(t,e){const{height:o=14,width:s=14,...r}=t;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"})})}),Xt=i.forwardRef(function(t,e){const{height:o=14,width:s=14,...r}=t;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"})]})}),Jt=i.forwardRef(function(t,e){const{height:o=14,width:s=14,...r}=t;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"})})}),en=i.forwardRef(function(t,e){const{height:o=14,width:s=14,...r}=t;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"})})}),tn=i.forwardRef(function(t,e){const{height:o=14,width:s=14,...r}=t;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"})]})}),nn=i.forwardRef(function(t,e){const{height:o=14,width:s=14,...r}=t;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"})})}),on=i.forwardRef(function(t,e){const{height:o=14,width:s=14,...r}=t;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"})})}),rn=i.forwardRef(function(t,e){const{height:o=14,width:s=14,...r}=t;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"})})}),sn=i.forwardRef(function(t,e){const{height:o=14,width:s=14,...r}=t;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"})]})}),an=i.forwardRef(function(t,e){const{height:o=14,width:s=14,...r}=t;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"})]})})}),ln=i.forwardRef(function(t,e){const{height:o=14,width:s=14,...r}=t;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"})})}),cn=i.forwardRef(function(t,e){const{height:o=14,width:s=14,...r}=t;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"})]})}),dn=i.forwardRef(function(t,e){const{height:o=14,width:s=14,...r}=t;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"})})}),un=i.forwardRef(function(t,e){const{height:o=14,width:s=14,...r}=t;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"})]})}),fn=i.forwardRef(function(t,e){const{height:o=14,width:s=14,...r}=t;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"})})}),hn=i.forwardRef(function(t,e){const{height:o=14,width:s=14,...r}=t;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"})})}),pn=i.forwardRef(function(t,e){const{height:o=14,width:s=14,...r}=t;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"})]})}),vn=i.forwardRef(function(t,e){const{height:o=14,width:s=14,...r}=t;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"})})}),mn={projects:sn,chat:Nt,articles:Ct,mail:tn,github:Kt,globe:Ut,linkedin:en,reddit:ln,exit:Zt,camera:St,"qr-code":an,download:Ht,save:dn,pencil:on,"arrow-left":Rt,"arrow-right":Mt,cross:Ot,checkmark:_t,plus:rn,minus:nn,window:vn,user:hn,duplicate:Ft,eye:Wt,"eye-off":zt,signal:un,audio:Pt,hardware:Yt,burger:Lt,repository:cn,"chevron-down":Vt,"chevron-up":Dt,"chevron-left":Tt,"chevron-right":At,branch:Et,commit:Bt,folder:Gt,file:qt,tag:fn,key:Jt,git:$t,home:Qt,info:Xt,warning:pn},le=i.forwardRef(function(t,e){const{"aria-hidden":o,"aria-label":s,"aria-labelledby":r,color:c,role:l,size:p=14,style:h,type:u,...d}=t,v=mn[u];if(!v)return console.warn(`Icon type "${u}" not found`),null;const g=s!==void 0||r!==void 0;return i.createElement(v,{...d,"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})}),We=i.forwardRef(function(t,e){const{className:o="",color:s,size:r=48,style:c,...l}=t,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 Fe(n){return n==null||typeof n=="boolean"||typeof n=="string"&&!n.trim()?!1:Array.isArray(n)?n.some(Fe):i.isValidElement(n)&&n.type===i.Fragment?Fe(n.props.children):!0}function gn(n,t){const e=n.getBoundingClientRect(),o=t.clientX-e.left,s=t.clientY-e.top;n.style.setProperty("--nk-button-glow-x",`${o}px`),n.style.setProperty("--nk-button-glow-y",`${s}px`)}const Pe=i.forwardRef(function(t,e){const{as:o,children:s,className:r,disabled:c,fullWidth:l=!1,icon:p,iconAlignment:h="left",loading:u=!1,onClick:d,onKeyDown:v,onMouseMove:g,role:w,shape:y,tabIndex:b,textAlignment:x="center",tone:N,variant:M="primary",..._}=t,I=o??"button",P=c||u,C=!!p&&!Fe(s),L=I!=="button"&&I!=="a",A=m=>{if(P){m.preventDefault(),m.stopPropagation();return}const k=d;k==null||k(m)},H=m=>{gn(m.currentTarget,m);const k=g;k==null||k(m)},F=m=>{const k=v;k==null||k(m),!(m.defaultPrevented||P||!L||m.key!=="Enter"&&m.key!==" ")&&(m.preventDefault(),m.currentTarget.click())},B=I==="button"?{disabled:P,type:_.type??"button"}:{"aria-disabled":P||void 0},E=I==="a"&&P?{href:void 0}:void 0,Z=I==="a"&&P?w??"link":L?w??"button":w,R=I==="button"?b:I==="a"&&P?void 0:P?-1:L?b??0:b;return i.createElement(I,{..._,...B,...E,ref:e,"aria-busy":u||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":M,onClick:A,onKeyDown:L?F:v,onMouseMove:H,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]}),u?a.jsx(We,{"aria-hidden":"true","aria-label":void 0,className:"nk-button__spinner",role:void 0,size:16}):null]}))}),ie=i.forwardRef(function(t,e){const{align:o="left",as:s,className:r,size:c="body",tone:l="default",weight:p,...h}=t,u=s??"p";return i.createElement(u,{...h,ref:e,className:["nk-text",r].filter(Boolean).join(" "),"data-align":o,"data-size":c,"data-tone":l,"data-weight":p})}),wn=i.forwardRef(function(t,e){const{children:o,className:s,header:r,spacing:c="standard",...l}=t;return a.jsxs(Re,{...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(n){return n!==void 0&&n!==!1&&n!=="false"}function fe(n,t){return n?!0:t}const nt=i.createContext(void 0);function xn(){return i.useContext(nt)}const ot=i.forwardRef(function(t,e){var C;const{"aria-invalid":o,checked:s,children:r,className:c,defaultChecked:l,disabled:p=!1,invalid:h=!1,name:u,onChange:d,required:v=!1,style:g,value:w="on",...y}=t,b=xn(),x=String(w),N=(b==null?void 0:b.value)!==void 0,M=p||!!(b!=null&&b.disabled),_=!!(b!=null&&b.required&&!b.hasSelection&&b.validationValue===x),I=h||ce(o);function P(L){d==null||d(L),L.defaultPrevented||b==null||b.handleChange(L)}return a.jsxs("label",{className:["nk-checkbox",c].filter(Boolean).join(" "),"data-disabled":M||void 0,"data-invalid":I||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:M,name:(b==null?void 0:b.name)??u,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]})}),rt=Symbol("nk-field-control-metadata");function st(n){if(typeof n!="function"&&typeof n!="object"||n===null)return;const t=n,e=t[rt];return e||(t.type!==void 0&&t.type!==n?st(t.type):void 0)}function it(n,t){Object.assign(n,{[rt]:{requiredCommunication:t}})}const bn=Object.freeze([]);function at(n,t){i.Children.forEach(n,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){at(e.props.children,t);return}if(e.type!==ot)throw new Error("CheckboxGroup children must be direct Checkbox elements or fragments");const o=e;t.push({disabled:!!o.props.disabled,required:!!o.props.required,value:String(o.props.value??"on")})})}function yn(n){const t=[];at(n,t);const e=new Set;return t.forEach(o=>{if(e.has(o.value))throw new Error("CheckboxGroup Checkbox values must be unique");e.add(o.value)}),t}function kn(n,t,e){t.current=n,typeof e=="function"?e(n):e&&(e.current=n)}const lt=i.forwardRef(function(t,e){const{"aria-invalid":o,children:s,className:r,defaultValue:c=bn,disabled:l=!1,invalid:p=!1,name:h,onChange:u,orientation:d="vertical",required:v=!1,value:g,...w}=t,y=i.useRef(null),[b,x]=i.useState(c),N=g!==void 0,M=N?g:b,_=p||ce(o),I=yn(s),P=l?[]:I.filter(m=>!m.disabled).map(m=>m.value),C=new Set(P),L=M.some(m=>C.has(m)),A=P[0],H=I.find(m=>!m.disabled&&m.value===A),F=c.some(m=>C.has(m)),B=!!(H!=null&&H.required),E=i.useCallback(m=>kn(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(O){var U;if(O.target!==k||O.defaultPrevented)return;const Q=Array.from(((U=y.current)==null?void 0:U.querySelectorAll('input[type="checkbox"]'))??[]).find(G=>!G.disabled&&G.value===A);Q&&(Q.required=!!(B||v&&!F)),x(c)}return D.addEventListener("reset",T),()=>D.removeEventListener("reset",T)},[s,c,F,N,v,B,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))}u==null||u(m)}const R={defaultValue:c,disabled:l,handleChange:Z,hasSelection:L,name:h,required:v,value:g,validationValue:A};return a.jsx(nt.Provider,{value:R,children:a.jsx("div",{...w,ref:E,"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":d,role:"group",children:s})})});it(lt,"label");const ct=768,In=[{minWidth:1920,marginPercent:32,preferredWidth:1200},{minWidth:1440,marginPercent:20,preferredWidth:1100},{minWidth:960,marginPercent:14,preferredWidth:960},{minWidth:ct,marginPercent:8,preferredWidth:650}],jn=16;function Cn(n){for(const t of In)if(n>=t.minWidth)return t}function Rn(n,t){if(!Number.isFinite(n)||!Number.isFinite(t)||n<ct||t<=0)return;const e=Cn(n);if(!e)return;const o=n*e.marginPercent/100,s=n-o*2,r=Math.min(e.preferredWidth,n-jn),c=Math.max(s,r);let l=Math.floor(c/t);return l%2===0&&(l-=1),l=Math.max(l,1),Math.min((l-1)*t,n)}const Mn=typeof window>"u"?i.useEffect:i.useLayoutEffect;function Pn(n,t){if(typeof n=="function"){n(t);return}n&&(n.current=t)}function En(n){const t=window.getComputedStyle(n),e=Number.parseFloat(t.paddingLeft)+Number.parseFloat(t.paddingRight);return Math.max(n.clientWidth-e,0)}function Ln(n){const e=window.getComputedStyle(n).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 Sn(n,t){const e=i.useRef(null),o=i.useRef(null),s=i.useRef(void 0),[r,c]=i.useState(void 0),l=i.useCallback(u=>{if(!t){if(s.current===void 0)return;s.current=void 0,c(void 0);return}const d=En(u),v=Ln(u),g=v===void 0?void 0:Rn(d,v);s.current!==g&&(s.current=g,c(g))},[t]),p=i.useCallback(u=>{var v;if((v=o.current)==null||v.disconnect(),o.current=null,typeof ResizeObserver>"u")return;const d=new ResizeObserver(()=>l(u));d.observe(u),o.current=d},[l]),h=i.useCallback(u=>{var d;(d=o.current)==null||d.disconnect(),o.current=null,e.current=u,Pn(n,u),!(!u||typeof window>"u"||!t)&&(l(u),p(u))},[p,t,n,l]);return Mn(()=>{e.current&&l(e.current)}),i.useEffect(()=>(e.current&&t&&p(e.current),()=>{var u;(u=o.current)==null||u.disconnect(),o.current=null}),[p,t]),{rootReference:h,innerWidth:r}}const Nn=i.forwardRef(function(t,e){const{accent:o,as:s,children:r,className:c,constrain:l=!0,fill:p="none",mode:h="grid",spacing:u="standard",style:d,theme:v="light",...g}=t,{rootReference:w,innerWidth:y}=Sn(e,l),b=s??"div",x=o!==void 0?{...d,"--nk-accent":o}:d;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":u,"data-theme":v,style:x},i.createElement("div",{className:"nk-content__inner",style:y===void 0?void 0:{width:`${y}px`}},r))}),_n=i.forwardRef(function(t,e){const{"aria-hidden":o,"aria-label":s,"aria-labelledby":r,"aria-orientation":c,className:l,decorative:p=!1,orientation:h="horizontal",role:u,text:d,...v}=t,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"?d:void 0),"aria-labelledby":r,"aria-orientation":c??h,role:u??"separator"};return a.jsx("div",{...v,...w,ref:e,className:["nk-divider",l].filter(Boolean).join(" "),"data-has-text":!!d||void 0,"data-orientation":h,children:d&&h==="horizontal"?a.jsx("span",{className:"nk-divider__text",children:d}):null})});function Ae(n){return typeof n=="string"?n.trim().length>0:n!=null&&n!==!1&&n!==!0}function Ze(...n){const t=n.flatMap(o=>(o==null?void 0:o.split(/\s+/).filter(Boolean))??[]),e=[...new Set(t)];return e.length>0?e.join(" "):void 0}const Vn=i.forwardRef(function(t,e){const{children:o,className:s,description:r,disabled:c=!1,error:l,label:p,orientation:h="vertical",required:u=!1,...d}=t,v=i.useId(),g=o.props.id??`${v}-control`,w=`${v}-label`,y=`${v}-description`,b=`${v}-error`,x=Ae(p),N=Ae(r),M=Ae(l),_=st(o.type),I=_!==void 0,P=c||!!o.props.disabled,C=u||!!o.props.required,L=C&&(_==null?void 0:_.requiredCommunication)==="label",A=Ze(o.props["aria-describedby"],N?y:void 0,M?b:void 0),H=Ze(x?w:void 0,o.props["aria-labelledby"]),F=C?a.jsx("span",{"aria-hidden":"true",className:"nk-field__required",children:"*"}):null,B=L?a.jsx("span",{className:"nk-field__required-text",children:", select at least one"}):null,E=i.cloneElement(o,{"aria-describedby":A,"aria-invalid":M?!0:o.props["aria-invalid"],"aria-labelledby":H,disabled:P||void 0,id:g,required:C||void 0});return a.jsxs("div",{...d,ref:e,className:["nk-field",s].filter(Boolean).join(" "),"data-disabled":P||void 0,"data-has-label":x||void 0,"data-invalid":M||void 0,"data-orientation":h,"data-required":C||void 0,children:[x&&I?a.jsxs(ie,{as:"span",className:"nk-field__label",id:w,size:"caption",weight:"medium",children:[p,F,B]}):null,x&&!I?a.jsxs(ie,{as:"label",className:"nk-field__label",htmlFor:g,id:w,size:"caption",weight:"medium",children:[p,F]}):null,a.jsxs("div",{className:"nk-field__body",children:[E,N?a.jsx(ie,{as:"p",className:"nk-field__description",id:y,size:"caption",tone:"muted",children:r}):null,M?a.jsx(ie,{as:"p","aria-live":"polite",className:"nk-field__error",id:b,size:"caption",tone:"danger",children:l}):null]})]})});function De(n){return Array.isArray(n)?n.length>0:n!=null&&String(n).length>0}function Tn(n,t,e){t.current=n,typeof e=="function"?e(n):e&&(e.current=n)}function qe(n){return n!=null&&n!==!1&&n!==!0&&n!==""}function An(n){var e;const t=(e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(n),"value"))==null?void 0:e.set;t?t.call(n,""):n.value=""}const Dn=i.forwardRef(function(t,e){const{"aria-busy":o,"aria-invalid":s,className:r,clearable:c=!1,defaultValue:l,disabled:p=!1,id:h,invalid:u=!1,leading:d,loading:v=!1,onChange:g,readOnly:w=!1,style:y,trailing:b,type:x="text",value:N,...M}=t,_=i.useId(),I=i.useRef(null),[P,C]=i.useState(De(l)),[L,A]=i.useState(!1);i.useEffect(()=>{x!=="password"&&A(!1)},[x]);const H=i.useCallback(W=>Tn(W,I,e),[e]),F=h??`${_}-control`,B=p||v,E=u||ce(s),Z=N!==void 0?De(N):P,R=x==="password"&&L?"text":x,m=fe(u,s),k=c&&Z&&!w&&!B,D=x==="password"&&!v,T=k||D,S=qe(d),O=qe(b)||T;function Q(W){N===void 0&&C(De(W.currentTarget.value)),g==null||g(W)}function U(){const W=I.current;W&&(An(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":B||void 0,"data-invalid":E||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":O||void 0,style:y,children:[S?a.jsx("span",{className:"nk-input__leading",children:d}):null,a.jsx("input",{...M,ref:H,"aria-busy":v?!0:o,"aria-invalid":m,className:"nk-input__control",defaultValue:l,disabled:B,id:F,onChange:Q,readOnly:w,type:R,value:N}),O?a.jsxs("span",{className:"nk-input__trailing",children:[b,k?a.jsx(Pe,{"aria-controls":F,"aria-label":"Clear input",className:"nk-input__action",icon:"cross",onClick:U,shape:"rectangle",type:"button",variant:"ghost"}):null,D?a.jsx(Pe,{"aria-controls":F,"aria-label":L?"Hide password":"Show password","aria-pressed":L,className:"nk-input__action",disabled:B,icon:L?"eye-off":"eye",onClick:G,shape:"rectangle",type:"button",variant:"ghost"}):null]}):null,v?a.jsx(We,{"aria-hidden":"true","aria-label":void 0,className:"nk-input__spinner",role:void 0,size:14}):null]})}),je=i.createContext(void 0),Ge=typeof window>"u"?i.useEffect:i.useLayoutEffect;function $e(n,t){const e=n.ownerDocument.defaultView;if(!e)return;const o=e.getComputedStyle(n);Array.from(t.style).filter(r=>r.startsWith("--nk-")).forEach(r=>{t.style.removeProperty(r)});for(let r=0;r<o.length;r+=1){const c=o.item(r);c.startsWith("--nk-")&&t.style.setProperty(c,o.getPropertyValue(c))}}function Bn(n){const{children:t,source:e}=n,o=i.useRef(null),s=i.useContext(je);return Ge(()=>{const r=o.current;if(!(!r||!s))return s.registerBranch(r)},[s]),Ge(()=>{var u;const r=o.current;if(!r)return;$e(e,r);const l=e.closest(".nk-content")??e,p=(u=e.ownerDocument.defaultView)==null?void 0:u.MutationObserver;if(!p)return;const h=new p(()=>{$e(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:t})}function Le(n){const{children:t,container:e,inheritFrom:o}=n,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?xt.createPortal(a.jsx(Bn,{source:l,children:t}),h):null]})}const On=1e3,Hn=10,Ke=new WeakMap;function Ce(n){const t=Ke.get(n);if(t)return t;const e={focusLayers:new Set,layers:[],listeners:new Set};return Ke.set(n,e),e}function Ue(n){n.listeners.forEach(t=>t())}function Se(n,t){const e=i.useRef(Symbol("nk-overlay-layer")),[,o]=i.useReducer(l=>l+1,0);i.useEffect(()=>{if(!n||!t)return;const l=Ce(t),p=()=>o();return l.listeners.add(p),l.layers.push(e.current),Ue(l),()=>{l.listeners.delete(p);const h=l.layers.indexOf(e.current);h>=0&&l.layers.splice(h,1),Ue(l)}},[n,t]);const s=t?Ce(t):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:On+c*Hn}}function Ye(n,t){const e=Ce(n).layers;return e.length>0&&e[e.length-1]===t}function Fn(n,t,e){i.useEffect(()=>{if(!n||!t)return;const o=Ce(t);return o.focusLayers.add(e),()=>{o.focusLayers.delete(e)}},[n,e,t])}function Qe(n,t){const e=Ce(n);for(let o=e.layers.length-1;o>=0;o-=1){const s=e.layers[o];if(e.focusLayers.has(s))return s===t}return!1}function Wn(n,t){const e=n.composedPath();return t.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&&n.target instanceof r?s.contains(n.target):!1})}function Ne(n){const{active:t,boundaries:e,dismissOnEscape:o=!0,dismissOnPointerDownOutside:s=!0,layerId:r,onEscapeDismiss:c,onEscapeKeyDown:l,onPointerDownOutside:p,onPointerDownOutsideDismiss:h,ownerDocument:u}=n;i.useEffect(()=>{if(!t||!u)return;function d(g){g.key!=="Escape"||!o||!Ye(u,r)||(l==null||l(g),!g.defaultPrevented&&(g.preventDefault(),c==null||c()))}function v(g){!s||!Ye(u,r)||Wn(g,e)||(p==null||p(g),!g.defaultPrevented&&(h==null||h()))}return u.addEventListener("keydown",d,!0),u.addEventListener("pointerdown",v,!0),()=>{u.removeEventListener("keydown",d,!0),u.removeEventListener("pointerdown",v,!0)}},[t,e,o,s,r,c,l,p,h,u])}const zn=["a[href]","area[href]","button","input:not([type=hidden])","select","textarea","iframe","[contenteditable]:not([contenteditable='false'])","[tabindex]"].join(",");function Zn(n,t){let e=n;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===t)break;e=e.parentElement}return!1}function qn(n,t){var r;const e=(r=n.ownerDocument.defaultView)==null?void 0:r.HTMLInputElement;if(!e||!(n instanceof e)||n.type!=="radio"||!n.name)return!0;const o=t.filter(c=>c instanceof e&&c.type==="radio"&&c.name===n.name&&c.form===n.form),s=o.find(c=>c.checked);return s?s===n:o[0]===n}function Gn(n){const t=Array.from(n.querySelectorAll(zn)).filter(e=>!e.matches(":disabled")&&e.tabIndex>=0&&!Zn(e,n));return t.filter(e=>qn(e,t))}function Xe(n,t){const e=[n,...t];return[...new Set(e.flatMap(s=>Gn(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(n,t,e){return e?n.contains(e)||[...t].some(o=>o.contains(e)):!1}function dt(n){const{active:t,autoFocus:e=!0,container:o,initialFocusReference:s,layerId:r,restoreFocus:c=!0}=n,l=(o==null?void 0:o.ownerDocument)??null,p=i.useRef(new Set),h=i.useCallback(d=>(p.current.add(d),()=>p.current.delete(d)),[]),u=i.useMemo(()=>({registerBranch:h}),[h]);return Fn(t&&!!o,l,r),i.useEffect(()=>{var M,_;if(!t||!o)return;const d=o.ownerDocument,v=(M=d.defaultView)==null?void 0:M.HTMLElement,g=(_=d.defaultView)==null?void 0:_.Node,w=v&&d.activeElement instanceof v?d.activeElement:null;let y=!0;function b(){const I=s==null?void 0:s.current;(I&&Be(o,p.current,I)?I:Xe(o,p.current)[0]??o).focus({preventScroll:!0})}function x(I){if(I.key!=="Tab"||!Qe(d,r))return;const P=Xe(o,p.current);if(P.length===0){I.preventDefault(),o==null||o.focus({preventScroll:!0});return}const C=P[0],L=P[P.length-1],A=d.activeElement,H=Be(o,p.current,A);I.shiftKey&&(A===C||!H)?(I.preventDefault(),L.focus()):!I.shiftKey&&(A===L||!H)&&(I.preventDefault(),C.focus())}function N(I){Qe(d,r)&&g&&I.target instanceof g&&!Be(o,p.current,I.target)&&b()}return d.addEventListener("keydown",x,!0),d.addEventListener("focusin",N,!0),e&&Promise.resolve().then(()=>{y&&b()}),()=>{y=!1,d.removeEventListener("keydown",x,!0),d.removeEventListener("focusin",N,!0),c&&(w!=null&&w.isConnected)&&w.focus({preventScroll:!0})}},[t,e,o,s,r,c]),u}function $n(){const[n,t]=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=()=>{t(o.matches)};return s(),o.addEventListener("change",s),()=>o.removeEventListener("change",s)},[]),n}function _e(n,t=200){const e=$n(),[o,s]=i.useState(n);return i.useEffect(()=>{if(n){s(!0);return}if(!o)return;if(e||t<=0){s(!1);return}const r=window.setTimeout(()=>{s(!1)},t);return()=>window.clearTimeout(r)},[t,n,e,o]),{present:o,state:n?"open":o?"closing":"closed"}}const Me=new WeakMap;function Kn(n,t){i.useEffect(()=>{if(!n||!t)return;const e=Me.get(t);if(e)e.count+=1;else{const o=t.body,s=t.defaultView,r=s&&Number.parseFloat(s.getComputedStyle(o).paddingRight)||0,c=t.documentElement.clientWidth,l=s&&c>0?Math.max(0,s.innerWidth-c):0,p={count:1,overflow:o.style.overflow,paddingRight:o.style.paddingRight};Me.set(t,p),o.style.overflow="hidden",l>0&&(o.style.paddingRight=`${r+l}px`)}return()=>{const o=Me.get(t);o&&(o.count-=1,!(o.count>0)&&(t.body.style.overflow=o.overflow,t.body.style.paddingRight=o.paddingRight,Me.delete(t)))}},[n,t])}function Un(n,t,e){t.current=n,typeof e=="function"?e(n):e&&(e.current=n)}function Yn(n){const{"aria-label":t,"aria-labelledby":e,children:o,className:s,closeButtonLabel:r="Close modal",exitable:c=!0,forwardedReference:l,initialFocusReference:p,lockScroll:h=!0,onClose:u,open:d,ownerDocument:v,presenceState:g,restoreFocus:w=!0,role:y="dialog",style:b,title:x,trapFocus:N=!0,...M}=n,_=i.useRef(null),I=i.useContext(je),P=`${i.useId()}-title`,[C,L]=i.useState(null),A=Se(!0,v),H=i.useMemo(()=>[_],[]),F=!!(x!=null&&x.trim()),B=e??(t===void 0&&F?P:void 0),E=i.useCallback(D=>{Un(D,_,l),L(D)},[l]);i.useLayoutEffect(()=>{C&&(C.inert=!d)},[C,d]);const Z=i.useCallback(()=>{u==null||u("escape")},[u]),R=i.useCallback(()=>{u==null||u("outside")},[u]);Ne({active:d,boundaries:H,dismissOnEscape:c,dismissOnPointerDownOutside:c,layerId:A.id,onEscapeDismiss:Z,onPointerDownOutsideDismiss:R,ownerDocument:v});const m=dt({active:d&&N,container:C,initialFocusReference:p,layerId:A.id,restoreFocus:w});Kn(h,v);const k=c?a.jsx(Pe,{"aria-label":r,className:"nk-modal__close",icon:"cross",onClick:()=>u==null?void 0:u("close-button"),shape:"rectangle",type:"button",variant:"ghost"}):null;return a.jsx(je.Provider,{value:d&&N?m:I,children:a.jsx("div",{className:"nk-modal__overlay","data-state":g,role:"presentation",style:{zIndex:A.zIndex},children:a.jsxs(Re,{...M,ref:E,"aria-hidden":d?void 0:!0,"aria-label":d?t:void 0,"aria-labelledby":d?B:void 0,"aria-modal":d?"true":void 0,className:["nk-modal",s].filter(Boolean).join(" "),"data-state":g,role:d?y:void 0,style:b,tabIndex:-1,children:[F?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 Qn=i.forwardRef(function(t,e){const{open:o,portalContainer:s}=t,r=_e(o),c=(s==null?void 0:s.ownerDocument)??(typeof document>"u"?null:document);return r.present?a.jsx(Le,{container:s,children:a.jsx(Yn,{...t,forwardedReference:e,ownerDocument:c,presenceState:r.state==="closing"?"closing":"open"})}):null}),Xn=Number.parseInt(i.version,10);function ut(n){return Xn>=19?n.props.ref:n.ref}function Ee(n,t){typeof n=="function"?n(t):n&&(n.current=t)}const Jn=12,eo={bottom:"top",left:"right",right:"left",top:"bottom"};function Je(n,t){const e=Math.min(Jn,t/2);return Math.min(Math.max(e,n),t-e)}function to(n){return eo[n]}function no(n,t){return t==="left"||t==="right"?n.width:n.height}function oo(n,t,e,o,s,r){const c={bottom:r-e.bottom-t*2,left:e.left-t*2,right:s-e.right-t*2,top:e.top-t*2},l=to(n),p=no(o,n),h=c[n]<p&&c[l]>c[n]?l:n;let u=e.left+(e.width-o.width)/2,d=e.top+(e.height-o.height)/2;return h==="top"?d=e.top-o.height-t:h==="bottom"?d=e.bottom+t:h==="left"?u=e.left-o.width-t:u=e.right+t,u=Math.min(Math.max(t,u),Math.max(t,s-t-o.width)),d=Math.min(Math.max(t,d),Math.max(t,r-t-o.height)),{arrowOffset:h==="top"||h==="bottom"?Je(e.left+e.width/2-u,o.width):Je(e.top+e.height/2-d,o.height),left:u,placement:h,top:d}}const ro=8;function ft(n,t,e,o){const[s,r]=i.useState(null);return i.useEffect(()=>{if(!n||!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")),u=Number.isFinite(h)?h:ro;function d(){const w=e==null?void 0:e.getBoundingClientRect(),y=o==null?void 0:o.getBoundingClientRect();!w||!y||r(oo(t,u,w,y,l.innerWidth,l.innerHeight))}d(),l.addEventListener("resize",d),l.addEventListener("scroll",d,!0);const v=l.ResizeObserver,g=v?new v(d):null;return g==null||g.observe(e),g==null||g.observe(o),()=>{l.removeEventListener("resize",d),l.removeEventListener("scroll",d,!0),g==null||g.disconnect()}},[n,o,t,e]),s}function so(n,t,e){t.current=n,Ee(e,n)}function io(n,t,e){t.current=n,Ee(e,n)}function ao(n,t){const e=(n==null?void 0:n.split(/\s+/).filter(Boolean))??[];return e.includes(t)||e.push(t),e.join(" ")}function lo(n){const t=n.tagName.toLowerCase();return n.getAttribute("role")==="button"&&t!=="button"?!1:["button","input","select","summary","textarea"].includes(t)?!0:t==="a"&&n.hasAttribute("href")}function co(n){return n==="grid"||n==="listbox"||n==="menu"||n==="tree"?n:"dialog"}const uo=i.forwardRef(function(t,e){const{"aria-label":o,"aria-labelledby":s,autoFocus:r=!0,children:c,className:l,closeOnEscape:p=!0,closeOnOutsideInteraction:h=!0,defaultOpen:u=!1,disabled:d=!1,initialFocusReference:v,onEscapeKeyDown:g,onOpenChange:w,onPointerDownOutside:y,open:b,placement:x="bottom",portalContainer:N,restoreFocus:M=!0,role:_="dialog",style:I,tabIndex:P,trapFocus:C=!1,trigger:L,...A}=t;if(L.type===i.Fragment)throw new Error("Popover requires a single non-Fragment trigger");const H=i.useId(),F=i.useContext(je),B=`${H}-popover`,E=L.props,Z=ut(L),R=E.id??`${H}-trigger`,m=d||E.disabled===!0||E["aria-disabled"]===!0||E["aria-disabled"]==="true",k=b!==void 0,[D,T]=i.useState(u),S=k?b:D,O=_e(S),Q=i.useRef(null),U=i.useRef(null),G=i.useRef("programmatic"),W=i.useRef(null),re=i.useRef(S),de=i.useRef(null),[he,we]=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),ue=Se(O.present,q),J=i.useMemo(()=>[Q,U],[]),oe=ft(O.present,x,z,ne),pe=S?{}:{inert:""},xe=i.useCallback(V=>{io(V,Q,Z),Y(V)},[Z]),be=i.useCallback(V=>{so(V,U,e),X(V)},[e]),se=i.useCallback((V,K)=>{S!==V&&(k?(W.current={open:V,reason:K},we()):(G.current=K,T(V)),w==null||w(V,K))},[k,w,S]),ye=i.useCallback(()=>{se(!1,"escape")},[se]),ve=i.useCallback(()=>{se(!1,"outside")},[se]),f=i.useCallback(V=>{var Ie;if(y==null||y(V),V.defaultPrevented)return;const K=(Ie=q==null?void 0:q.defaultView)==null?void 0:Ie.HTMLElement;de.current=K?V.composedPath().find(me=>me instanceof K&&me.tabIndex>=0)??V.target:V.target},[y,q]);Ne({active:S,boundaries:J,dismissOnEscape:p,dismissOnPointerDownOutside:h,layerId:ue.id,onEscapeDismiss:ye,onEscapeKeyDown:g,onPointerDownOutside:f,onPointerDownOutsideDismiss:ve,ownerDocument:q});const j=dt({active:S&&C,autoFocus:r,container:ne,initialFocusReference:v,layerId:ue.id,restoreFocus:M});i.useEffect(()=>{if(!S||C||!r||!ne)return;let V=!0;return Promise.resolve().then(()=>{if(!V)return;const K=v==null?void 0:v.current;(K&&ne.contains(K)?K:ne).focus({preventScroll:!0})}),()=>{V=!1}},[r,v,S,ne,C]),i.useEffect(()=>{var ze;const V=re.current;re.current=S;const K=W.current,Ie=k?V!==S&&(K==null?void 0:K.open)===S?K.reason:"programmatic":G.current;if(W.current=null,S){G.current="programmatic",de.current=null;return}const me=q==null?void 0:q.activeElement,Ve=de.current,Te=(ze=q==null?void 0:q.defaultView)==null?void 0:ze.HTMLElement,wt=Ie==="outside"&&Te&&Ve instanceof Te&&me instanceof Te&&(Ve===me||Ve.contains(me));V&&!C&&M&&!wt&&(z==null||z.focus({preventScroll:!0})),de.current=null},[he,k,S,q,M,C,z]),i.useEffect(()=>{d&&S&&se(!1,"programmatic")},[d,S,se]);function $(V){var K;(K=E.onClick)==null||K.call(E,V),!(V.defaultPrevented||m)&&se(!S,"trigger")}function ee(V){var K;(K=E.onKeyDown)==null||K.call(E,V),!(V.defaultPrevented||m||lo(V.currentTarget)||V.key!=="Enter"&&V.key!==" ")&&(V.preventDefault(),V.currentTarget.click())}if(d)return L;const te=typeof L.type=="string"?L.type:null,ae=te==="button"||te==="input"||te==="select"||te==="summary"||te==="textarea"||te==="a"&&!!E.href,ke=i.cloneElement(L,{"aria-controls":S?ao(E["aria-controls"],B):E["aria-controls"],"aria-expanded":S,"aria-haspopup":E["aria-haspopup"]??co(_),"aria-disabled":m?!0:E["aria-disabled"],className:[E.className,"nk-popover__trigger"].filter(Boolean).join(" "),id:R,onClick:$,onKeyDown:ee,ref:xe,role:E.role??(ae?void 0:"button"),tabIndex:m?-1:E.tabIndex??(ae?void 0:0)});return a.jsxs(a.Fragment,{children:[ke,a.jsx(je.Provider,{value:S&&C?j:F,children:O.present&&q?a.jsx(Le,{container:N,inheritFrom:z,children:a.jsxs(Re,{...A,...pe,ref:be,"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":O.state==="closing"?"closing":"open",id:B,role:S?_:void 0,style:oe?{...I,"--nk-popover-arrow-offset":`${oe.arrowOffset}px`,left:oe.left,top:oe.top,zIndex:ue.zIndex}:{...I,visibility:"hidden",zIndex:ue.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})]})}),fo=3,ho=10,ht=4;function po(n){return Number.isFinite(n)?Math.min(ho,Math.max(fo,Math.trunc(n))):ht}function ge(n,t,e){return(t==="numeric"?n.replace(/[^0-9]/g,""):n.replace(/[^0-9a-z]/gi,"").toUpperCase()).slice(0,e)}function vo(n,t,e){t.current=n,typeof e=="function"?e(n):e&&(e.current=n)}function mo(n,t){var o;const e=(o=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(n),"value"))==null?void 0:o.set;e?e.call(n,t):n.value=t}function Oe(n,t,e){const o=Math.min(e-1,Math.max(0,t)),s=Math.min(o+1,n.value.length);n.focus(),n.setSelectionRange(o,s)}function go(n){const{defaultValue:t,disabled:e,forwardedReference:o,length:s,mode:r,onChange:c,onComplete:l,onFocus:p,onKeyDown:h,onPaste:u,onSelect:d,readOnly:v,value:g}=n,w=po(s),y=ge(t,r,w),b=i.useRef(null),[x,N]=i.useState(y),[M,_]=i.useState(0),I=g!==void 0,P=ge(I?g:x,r,w),C=i.useCallback(R=>vo(R,b,o),[o]);i.useEffect(()=>{!I&&x!==P&&N(P)},[I,P,x]),i.useEffect(()=>{var D;if(I)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)},[I,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=ge(m.value,r,w),T=ge(m.value.slice(0,k),r,w).length;m.value=D,I||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 H(R){if(u==null||u(R),R.defaultPrevented||e||v)return;const m=ge(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:ge(P.slice(0,D)+m+P.slice(T),r,w),O=m.length===w?w:Math.min(w,D+m.length);mo(k,S),k.setSelectionRange(O,O),k.dispatchEvent(new Event("input",{bubbles:!0}))}function F(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),Oe(R.currentTarget,k,w)}function B(R){p==null||p(R);const m=Math.min(w-1,P.length);_(m),Oe(R.currentTarget,m,w)}function E(R){d==null||d(R),_(L(R.currentTarget))}function Z(R,m){if(R.preventDefault(),e)return;const k=b.current;k&&(_(m),Oe(k,m,w))}return{activeIndex:M,handleChange:A,handleFocus:B,handleKeyDown:F,handlePaste:H,handleSelect:E,handleSlotPointerDown:Z,inputCallbackReference:C,length:w,renderedValue:P}}const wo=i.forwardRef(function(t,e){const{"aria-invalid":o,autoCapitalize:s,autoComplete:r="one-time-code",className:c,censored:l=!1,defaultValue:p="",disabled:h=!1,invalid:u=!1,length:d=ht,mode:v="numeric",onChange:g,onComplete:w,onFocus:y,onKeyDown:b,onPaste:x,onSelect:N,readOnly:M=!1,style:_,value:I,wrap:P=!1,...C}=t,{activeIndex:L,handleChange:A,handleFocus:H,handleKeyDown:F,handlePaste:B,handleSelect:E,handleSlotPointerDown:Z,inputCallbackReference:R,length:m,renderedValue:k}=go({defaultValue:p,disabled:h,forwardedReference:e,length:d,mode:v,onChange:g,onComplete:w,onFocus:y,onKeyDown:b,onPaste:x,onSelect:N,readOnly:M,value:I}),D=u||ce(o),T=!P&&m>=6&&m%2===0,S=m/2,O={..._,"--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":M||void 0,"data-wrap":P||void 0,style:O,children:[a.jsx("input",{...C,ref:R,"aria-invalid":fe(u,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:H,onKeyDown:F,onPaste:B,onSelect:E,pattern:v==="numeric"?`[0-9]{${m}}`:`[0-9A-Za-z]{${m}}`,readOnly:M,spellCheck:!1,type:"text",value:k}),a.jsx("span",{"aria-hidden":"true",className:"nk-pin-input__slots",children:Array.from({length:m},(Q,U)=>a.jsxs("span",{className:"nk-pin-input__slot-group",children:[T&&U===S?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&&k[U]?a.jsx("span",{className:"nk-pin-input__censor"}):k[U]??""})]},U))})]})}),pt=i.createContext(void 0);function xo(){const n=i.useContext(pt);if(!n)throw new Error("Radio must be rendered within RadioGroup");return n}function bo(n,t,e){t.current=n,typeof e=="function"?e(n):e&&(e.current=n)}const yo=i.forwardRef(function(t,e){const{children:o,className:s,disabled:r=!1,style:c,value:l,...p}=t,h=xo(),u=i.useRef(null),d=h.disabled||r,v=h.value!==void 0,g=h.value===l,w=i.useCallback(y=>bo(y,u,e),[e]);return i.useEffect(()=>{var y;!v&&d&&((y=u.current)!=null&&y.checked)&&(u.current.checked=!1)},[v,d]),a.jsxs("label",{className:["nk-radio",s].filter(Boolean).join(" "),"data-disabled":d||void 0,style:c,children:[a.jsx("input",{...p,ref:w,checked:v?!d&&g:void 0,className:"nk-radio__control",defaultChecked:v?void 0:!d&&h.defaultValue===l,disabled:d,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})]})}),vt=i.forwardRef(function(t,e){const{"aria-invalid":o,children:s,className:r,defaultValue:c,disabled:l=!1,invalid:p=!1,name:h,onChange:u,orientation:d="vertical",required:v=!1,value:g,...w}=t,y=p||ce(o),b={defaultValue:c,disabled:l,name:h,onChange:u,required:v,value:g};return a.jsx(pt.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":d,role:"radiogroup",children:s})})});it(vt,"group");function He(n,t,e){if(n.length===0)return-1;for(let o=1;o<=n.length;o+=1){const s=(t+e*o+n.length)%n.length;if(!n[s].disabled)return s}return-1}function ko(n,t,e){for(let o=1;o<=n.length;o+=1){const s=(e+o+n.length)%n.length,r=n[s];if(!r.disabled&&r.label.toLocaleLowerCase().startsWith(t))return s}return-1}function Io(n){const t=new Set;n.forEach(e=>{if(t.has(e.value))throw new Error("Select option values must be unique");t.add(e.value)})}function jo(n,t,e){t.current=n,typeof e=="function"?e(n):e&&(e.current=n)}function Co(n){const{"aria-invalid":t,children:e,className:o,defaultValue:s,disabled:r=!1,forwardedReference:c,invalid:l=!1,placeholder:p,style:h,value:u,...d}=n,v=fe(l,t),g=l||ce(t);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",{...d,ref:c,"aria-invalid":v,className:"nk-select__control",defaultValue:u===void 0?s??(p!==void 0?"":void 0):void 0,disabled:r,value:u,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 Ro(n,t,e){const[o,s]=i.useState(null);return i.useEffect(()=>{if(!n||!t){s(null);return}const r=t.ownerDocument.defaultView;if(!r)return;const c=r;function l(){const u=t==null?void 0:t.getBoundingClientRect();if(!u)return;const d=8,v=4,g=c.innerHeight-u.bottom-v-d,w=u.top-v-d,y=g<160&&w>g,b=Math.max(72,y?w:g),x=e==null?void 0:e.getBoundingClientRect(),N=Math.max(u.width,(x==null?void 0:x.width)??u.width),M=Math.min(Math.max(d,u.left),Math.max(d,c.innerWidth-d-N)),_=y?Math.max(d,u.top-v-Math.min((x==null?void 0:x.height)??b,b)):u.bottom+v;s({left:M,maxHeight:b,minWidth:u.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(t),e&&(h==null||h.observe(e)),()=>{c.removeEventListener("resize",l),c.removeEventListener("scroll",l,!0),h==null||h.disconnect()}},[n,e,t]),o}function Mo(n){const{active:t,closeOnEscape:e,closeOnOutsideInteraction:o,highlightedIndex:s,id:r,listboxReference:c,onEscapeDismiss:l,onEscapeKeyDown:p,onHighlight:h,onOutsideDismiss:u,onPointerDownOutside:d,onSelect:v,options:g,ownerDocument:w,position:y,selectedValue:b,state:x,triggerReference:N}=n,M=i.useRef(null),_=Se(!0,w),I=i.useMemo(()=>[N,M],[N]),P=i.useCallback(C=>{M.current=C,c(C)},[c]);return Ne({active:t,boundaries:I,dismissOnEscape:e,dismissOnPointerDownOutside:o,layerId:_.id,onEscapeDismiss:l,onEscapeKeyDown:p,onPointerDownOutside:d,onPointerDownOutsideDismiss:u,ownerDocument:w}),a.jsx("div",{"aria-hidden":t?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 Po(n){var ve;const{"aria-invalid":t,className:e,closeOnEscape:o=!0,closeOnOutsideInteraction:s=!0,defaultValue:r="",disabled:c=!1,displayOverride:l,form:p,forwardedReference:h,id:u,invalid:d=!1,name:v,onChange:g,onClick:w,onEscapeKeyDown:y,onKeyDown:b,onOpenChange:x,onPointerDownOutside:N,options:M,placeholder:_,portalContainer:I,required:P=!1,style:C,value:L,width:A,...H}=n;Io(M);const F=i.useId(),B=u??F,E=i.useRef(null),Z=i.useRef(null),R=i.useRef(null),m=i.useRef(""),[k,D]=i.useState(null),[T,S]=i.useState(!1),[O,Q]=i.useState(-1),[U,G]=i.useState(r),W=L!==void 0,re=W?L:U,de=M.find(f=>f.value===re),he=d||ce(t),we=fe(d,t),z=_e(T),Y=(I==null?void 0:I.ownerDocument)??((ve=E.current)==null?void 0:ve.ownerDocument)??(typeof document>"u"?null:document),ne=Ro(z.present,E.current,k),X=A===void 0?C:{...C,width:A},q=l??de,ue=i.useCallback(f=>{jo(f,E,h)},[h]),J=i.useCallback(f=>{T!==f&&(S(f),x==null||x(f))},[x,T]),oe=i.useCallback((f=1)=>{const j=M.findIndex(ee=>ee.value===re&&!ee.disabled),$=f===1?-1:M.length;Q(j>=0?j:He(M,$,f)),J(!0)},[M,re,J]),pe=i.useCallback(f=>{var j;f.disabled||(W||G(f.value),J(!1),(j=E.current)==null||j.focus(),g==null||g(f.value))},[W,g,J]),xe=i.useCallback(()=>{var f;J(!1),(f=E.current)==null||f.focus()},[J]),be=i.useCallback(()=>{J(!1)},[J]);function se(f){w==null||w(f),!(f.defaultPrevented||c)&&(T?J(!1):oe())}function ye(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;T?Q($=>He(M,$,j)):oe(j);return}if(f.key==="Home"||f.key==="End"){if(f.preventDefault(),!T)oe(f.key==="Home"?1:-1);else{const j=f.key==="Home"?1:-1,$=j===1?-1:M.length;Q(He(M,$,j))}return}if(f.key==="Enter"||f.key===" "){f.preventDefault();const j=M[O];T&&j?pe(j):T||oe();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=m.current+$,te=Array.from(ee).every(ke=>ke===$);m.current=te?$:ee,R.current!==null&&j.clearTimeout(R.current),R.current=j.setTimeout(()=>{m.current="",R.current=null},500);const ae=ko(M,m.current,O);ae>=0&&(f.preventDefault(),T||J(!0),Q(ae))}}}return i.useEffect(()=>{var f;if(T&&O>=0){const j=Y==null?void 0:Y.getElementById(`${B}-option-${O}`);j&&(k!=null&&k.contains(j))&&((f=j.scrollIntoView)==null||f.call(j,{block:"nearest"}))}},[O,B,k,T]),i.useEffect(()=>{var $;const f=($=E.current)==null?void 0:$.form;if(!f)return;function j(){const ee=Z.current,te=W?re:r;if(ee){const ae=Array.from(ee.options),ke=ae.find(V=>V.value===te)??ae[0];ae.forEach(V=>{V.defaultSelected=V===ke})}W||G(r),J(!1)}return f.addEventListener("reset",j),()=>f.removeEventListener("reset",j)},[r,p,W,re,J]),i.useEffect(()=>()=>{var j;const f=(j=E.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":he||void 0,"data-mode":"custom","data-open":T||void 0,style:X,children:[a.jsxs("button",{...H,ref:ue,"aria-activedescendant":T&&O>=0?`${B}-option-${O}`:void 0,"aria-controls":`${B}-listbox`,"aria-expanded":T,"aria-haspopup":"listbox","aria-invalid":we,"aria-required":P||void 0,"aria-autocomplete":"none",className:"nk-select__trigger",disabled:c,form:p,id:B,onClick:se,onKeyDown:ye,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=E.current)==null||j.focus()},required:P,tabIndex:-1,value:re,children:[a.jsx("option",{value:""}),M.map(f=>a.jsx("option",{disabled:f.disabled,value:f.value,children:f.label},f.value))]}):null,z.present&&Y?a.jsx(Le,{container:I,inheritFrom:E.current,children:a.jsx(Mo,{active:T,closeOnEscape:o,closeOnOutsideInteraction:s,highlightedIndex:O,id:B,listboxReference:D,onEscapeDismiss:xe,onEscapeKeyDown:y,onHighlight:Q,onOutsideDismiss:be,onPointerDownOutside:N,onSelect:pe,options:M,ownerDocument:Y,position:ne,selectedValue:re,state:z.state==="closing"?"closing":"open",triggerReference:E})}):null]})}const Eo=i.forwardRef(function(t,e){const{options:o}=t;return o!==void 0?a.jsx(Po,{...t,forwardedReference:e}):a.jsx(Co,{...t,forwardedReference:e})}),Lo=i.forwardRef(function(t,e){const{"aria-hidden":o=!0,className:s,height:r="1em",shape:c="rectangle",style:l,width:p=c==="circle"?"1em":"100%",...h}=t;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}})}),So=i.forwardRef(function(t,e){const{"aria-invalid":o,className:s,disabled:r=!1,style:c,...l}=t;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 et(n){return Number.isFinite(n)?Math.max(1,Math.floor(n)):1}const No=i.forwardRef(function(t,e){const{"aria-invalid":o,className:s,disabled:r=!1,invalid:c=!1,minRows:l,readOnly:p=!1,resize:h="vertical",rows:u,style:d,...v}=t,g=et(u??l??3),y=`calc(${et(l??u??3)*1.25}em + var(--nk-text-area-padding) * 2 + var(--nk-text-area-border-width) * 2)`,b={...d,"--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})}),_o=500,mt=i.createContext(null);function Vo(n){const{children:t,delay:e=_o}=n,o=i.useMemo(()=>({delay:e}),[e]);return a.jsx(mt.Provider,{value:o,children:t})}const gt=500,tt=100;function To(n,t,e,o){t.current=n,Ee(e,n),Ee(o,n)}function Ao(n){return Number.isFinite(n)?Math.max(0,n):gt}function Do(n,t){const e=(n==null?void 0:n.split(/\s+/).filter(Boolean))??[];return e.includes(t)||e.push(t),e.join(" ")}const Bo=i.forwardRef(function(t,e){const{children:o,className:s,content:r,contentClassName:c,contentStyle:l,delay:p,disabled:h=!1,onOpenChange:u,placement:d="top",portalContainer:v,style:g}=t;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(mt),x=o.props,N=ut(o),M=i.useRef(null),_=i.useRef(null),I=i.useRef(h),P=i.useRef(!1),C=i.useRef(null),L=i.useRef(null),A=i.useRef(null),H=i.useRef(!1),F=i.useRef(!1),B=i.useRef(!1),E=i.useRef(!1),[Z,R]=i.useState(null),[m,k]=i.useState(null),[D,T]=i.useState(!1);I.current=h;const S=Ao(p??(b==null?void 0:b.delay)??gt),O=_e(D),Q=(v==null?void 0:v.ownerDocument)??(Z==null?void 0:Z.ownerDocument)??(typeof document>"u"?null:document),U=Se(O.present,Q),G=ft(O.present,d,Z,m),W=i.useMemo(()=>[M,_],[]),re=Do(x["aria-describedby"],y),de=D&&O.present?re:x["aria-describedby"],he=i.useCallback(f=>{To(f,M,N,e),R(f)},[e,N]),we=i.useCallback(f=>{_.current=f,f||(E.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||(E.current=!1),P.current=f,T(f),u==null||u(f))},[u]),q=i.useCallback(f=>{var ee,te;if(Y(),F.current||B.current||E.current)return;if(f===0){X(!1);return}const j=((ee=M.current)==null?void 0:ee.ownerDocument.defaultView)??((te=_.current)==null?void 0:te.ownerDocument.defaultView);if(!j){X(!1);return}const $=j.setTimeout(()=>{L.current=null,!F.current&&!B.current&&!E.current&&X(!1)},f);L.current={ownerWindow:j,timerId:$}},[Y,X]),ue=i.useCallback(()=>{var $;if(z(),Y(),S===0){X(!0);return}const f=($=M.current)==null?void 0:$.ownerDocument.defaultView;if(!f)return;const j=f.setTimeout(()=>{C.current=null,I.current||X(!0)},S);C.current={ownerWindow:f,timerId:j}},[Y,z,S,X]);function J(f){var j;(j=x.onFocus)==null||j.call(x,f),F.current=!0,Y(),!H.current&&(z(),X(!0))}function oe(f){var j;(j=x.onBlur)==null||j.call(x,f),!f.currentTarget.contains(f.relatedTarget)&&(F.current=!1,z(),q(0))}function pe(f){var j;(j=x.onMouseEnter)==null||j.call(x,f),B.current=!0,ue()}function xe(f){var j;(j=x.onMouseLeave)==null||j.call(x,f),B.current=!1,z(),q(tt)}function be(){E.current=!0,Y()}function se(){E.current=!1,q(tt)}function ye(f){var ee,te;(ee=x.onPointerDown)==null||ee.call(x,f),z(),Y(),X(!1);const j=(te=M.current)==null?void 0:te.ownerDocument.defaultView;if(!j)return;H.current=!0,ne();const $=j.setTimeout(()=>{H.current=!1,A.current=null},0);A.current={ownerWindow:j,timerId:$}}if(Ne({active:D,boundaries:W,dismissOnPointerDownOutside:!0,layerId:U.id,onEscapeDismiss:()=>X(!1),onPointerDownOutsideDismiss:()=>X(!1),ownerDocument:Q}),i.useEffect(()=>{h&&(z(),Y(),ne(),H.current=!1,F.current=!1,B.current=!1,E.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:he});const ve=i.cloneElement(o,{"aria-describedby":de,className:[x.className,"nk-tooltip__trigger",s].filter(Boolean).join(" "),onBlur:oe,onFocus:J,onMouseEnter:pe,onMouseLeave:xe,onPointerDown:ye,ref:he,style:{...x.style,...g}});return a.jsxs(a.Fragment,{children:[ve,O.present&&Q?a.jsx(Le,{container:v,inheritFrom:Z,children:a.jsxs(Re,{ref:we,"aria-hidden":D?void 0:!0,className:["nk-tooltip",c].filter(Boolean).join(" "),"data-placement":(G==null?void 0:G.placement)??d,"data-state":O.state==="closing"?"closing":"open",id:y,onMouseEnter:be,onMouseLeave:se,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"}),r]})}):null]})});exports.Alert=bt;exports.Avatar=It;exports.Badge=jt;exports.Button=Pe;exports.Card=wn;exports.Checkbox=ot;exports.CheckboxGroup=lt;exports.Content=Nn;exports.Divider=_n;exports.Field=Vn;exports.Icon=le;exports.Input=Dn;exports.Modal=Qn;exports.PinInput=wo;exports.Popover=uo;exports.Radio=yo;exports.RadioGroup=vt;exports.Select=Eo;exports.Skeleton=Lo;exports.Spinner=We;exports.Switch=So;exports.Text=ie;exports.TextArea=No;exports.Tooltip=Bo;exports.TooltipProvider=Vo;
|
|
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;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
+
export { breakpoint, cell, px, space, } from "./utils/units";
|
|
3
|
+
export type { BreakpointName, SpaceSize } from "./tokens";
|
|
2
4
|
export { Alert, type AlertProps, type AlertTone, } from "./components/Alert";
|
|
3
5
|
export { Avatar, type AvatarProps } from "./components/Avatar";
|
|
4
6
|
export { Badge, type BadgeProps, type BadgeTone, type BadgeVariant, } from "./components/Badge";
|