neatkit 0.4.2 → 0.5.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/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"),St=require("react-dom"),_t=36,at=[2,4,8,12,16,24,32,48],Ke={sm:768,md:960,lg:1440,xl:1920},Nt={color:{accent:{default:"var(--nk-accent)",soft:"var(--nk-accent-soft)",subtle:"var(--nk-accent-subtle)"},background:"var(--nk-color-background)",surface:"var(--nk-color-surface)",text:{default:"var(--nk-color-text)",muted:"var(--nk-color-text-muted)"},border:"var(--nk-color-border)",emphasis:{fill:"var(--nk-color-emphasis-fill)",fillForeground:"var(--nk-color-emphasis-fill-foreground)"},info:{foreground:"var(--nk-color-info-foreground)",fill:"var(--nk-color-info-fill)",fillForeground:"var(--nk-color-info-fill-foreground)"},success:{foreground:"var(--nk-color-success-foreground)",fill:"var(--nk-color-success-fill)",fillForeground:"var(--nk-color-success-fill-foreground)"},warning:{foreground:"var(--nk-color-warning-foreground)",fill:"var(--nk-color-warning-fill)",fillForeground:"var(--nk-color-warning-fill-foreground)"},danger:{foreground:"var(--nk-color-danger-foreground)",fill:"var(--nk-color-danger-fill)",fillForeground:"var(--nk-color-danger-fill-foreground)"}},radius:{small:"var(--nk-radius-small)",medium:"var(--nk-radius-medium)",large:"var(--nk-radius-large)"},shadow:{subtle:"var(--nk-shadow-subtle)",medium:"var(--nk-shadow-medium)",strong:"var(--nk-shadow-strong)"}};({...Object.fromEntries(at.map(t=>[`--nk-space-${t}`,`${t}px`]))});function Mt(t){if(typeof t!="number"||!Number.isFinite(t))throw new RangeError("Cell amount must be a finite number.");const n=t*_t;if(!Number.isFinite(n))throw new RangeError("Calculated cell value must be finite.");return n}function Lt(t){if(!at.some(n=>n===t))throw new RangeError(`Unsupported spacing size: ${String(t)}.`);return t}function pe(t){if(!Object.prototype.hasOwnProperty.call(Ke,t))throw new RangeError(`Unsupported breakpoint: ${String(t)}.`);return Ke[t]}function Tt(t){if(typeof t!="number"||!Number.isFinite(t))throw new RangeError("Pixel value must be a finite number.");return`${t}px`}const Se=i.forwardRef(function(n,e){const{children:r,className:s,...o}=n;return a.jsx("div",{...o,ref:e,className:["nk-surface",s].filter(Boolean).join(" "),children:r})}),Vt=i.forwardRef(function(n,e){const{children:r,className:s,role:o,tone:l="info",...c}=n;return a.jsxs(Se,{...c,ref:e,className:["nk-alert",s].filter(Boolean).join(" "),"data-tone":l,role:o,children:[a.jsx("span",{"aria-hidden":"true",className:"nk-alert__indicator"}),a.jsx("div",{className:"nk-alert__content",children:r})]})});function At(t){return(Array.from((t==null?void 0:t.trim())??"")[0]??"?").trim().toUpperCase()||"?"}function Bt(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 Dt=i.forwardRef(function(n,e){const{alt:r,className:s,image:o,size:l=32,style:c,...f}=n,[h,d]=i.useState(),u=!!o&&o!==h,v=(r==null?void 0:r.trim())??"",m=At(v),g=typeof l=="number"?`${l}px`:l,C=v?{"aria-label":v,role:"img"}:{"aria-hidden":!0,role:void 0};function b(){d(o)}return a.jsx("div",{...f,...u?void 0:C,ref:e,className:["nk-avatar",s].filter(Boolean).join(" "),"data-palette":Bt(m),"data-state":u?"image":"fallback",style:{...c,"--nk-avatar-size":g},children:u?a.jsx("img",{alt:v,className:"nk-avatar__image",onError:b,src:o}):a.jsx("span",{"aria-hidden":"true",className:"nk-avatar__initial",children:m})})}),Ot=i.forwardRef(function(n,e){const{children:r,className:s,tone:o="neutral",variant:l="outline",...c}=n;return a.jsx("span",{...c,ref:e,className:["nk-badge",s].filter(Boolean).join(" "),"data-tone":o,"data-variant":l,children:r})}),Ft=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.5 0h1.6c.5.1 1 .3 1.3.6.3.4.5.8.5 1.3l.1 1.6v8.6c-.1.5-.3 1-.6 1.3a2 2 0 0 1-1.3.5l-1.6.1H1.9a2 2 0 0 1-1.3-.6A2 2 0 0 1 .1 12L0 10.5V1.9C.2 1.4.4.9.7.6A2 2 0 0 1 2 .1L3.5 0h7Zm-7 1.4H2.1c-.3 0-.4.1-.5.2l-.2.5v3.5a11.8 11.8 0 0 0 0 1l.4.3h.3l.7.1h1a1.4 1.4 0 0 1 .8.4l.4.4.1.4v.2l.2.3.1.4h3.2l.2-.5v-.2l.2-.6.4-.4.2-.2.6-.2h1a11.8 11.8 0 0 0 1 0l.3-.4v-.3l.1-.6V2.1c0-.3-.1-.4-.2-.5l-.5-.2H3.5Z",clipRule:"evenodd"})})}),Ht=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M5.75 10 3 7.25m0 0L5.75 4.5M3 7.25h8.5"})})}),Wt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M8.25 10 11 7.25m0 0L8.25 4.5M11 7.25H2.5"})})}),zt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsxs("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:[a.jsx("path",{stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.633",d:"M5.955 11.616 2.177 8.838a.82.82 0 0 0-.32-.143l-.985-.2-.03-.007a.148.148 0 0 1-.026-.087V5.423c0-.049.014-.076.022-.087l.034-.005.984-.202a.818.818 0 0 0 .32-.142l3.78-2.78v9.41Z"}),a.jsx("path",{fill:"currentColor",d:"M9.383 5.053c-.192-.37-.635-.454-.93-.168l-.044.033a.737.737 0 0 0-.133.825c.162.337.266.724.266 1.144 0 .421-.104.808-.266 1.145a.737.737 0 0 0 .133.824l.044.034c.28.286.738.219.93-.168A4.214 4.214 0 0 0 9.81 6.87c0-.64-.162-1.263-.427-1.818Z"}),a.jsx("path",{fill:"currentColor",d:"M10.932 3.386c-.207-.336-.635-.387-.9-.117l-.03.033a.768.768 0 0 0-.088.91c.472.756.737 1.699.737 2.692 0 1.01-.28 1.935-.737 2.692a.768.768 0 0 0 .088.91l.03.033c.265.27.693.219.9-.118.62-.993.973-2.205.973-3.517 0-1.313-.354-2.525-.973-3.518Z"}),a.jsx("path",{fill:"currentColor",d:"M12.48 1.754c-.22-.32-.62-.37-.885-.1l-.044.033c-.236.235-.265.64-.074.925.797 1.195 1.254 2.676 1.254 4.275 0 1.599-.472 3.097-1.254 4.275-.191.286-.162.69.074.925l.044.034c.266.27.664.219.885-.101.96-1.43 1.52-3.214 1.52-5.15 0-1.901-.56-3.685-1.52-5.116Z"})]})}),Zt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{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"})})}),qt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsxs("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:[a.jsx("rect",{width:"14",height:"2.1",y:"1.75",fill:"currentColor",rx:"1.05"}),a.jsx("rect",{width:"14",height:"2.1",y:"5.95",fill:"currentColor",rx:"1.05"}),a.jsx("rect",{width:"14",height:"2.1",y:"10.15",fill:"currentColor",rx:"1.05"})]})}),Gt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsxs("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:[a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M12.25 2.714h-1.313l-.437-.857C10.242 1.36 10.108 1 9.625 1h-5.25c-.483 0-.643.409-.875.857l-.438.857H1.75C.784 2.714 0 3.482 0 4.43v6.857C0 12.232.784 13 1.75 13h10.5c.966 0 1.75-.768 1.75-1.714V4.429c0-.947-.784-1.715-1.75-1.715ZM7 11.286c-1.933 0-3.5-1.535-3.5-3.429C3.5 5.964 5.067 4.43 7 4.43s3.5 1.535 3.5 3.428c0 1.894-1.567 3.429-3.5 3.429Z",clipRule:"evenodd"}),a.jsx("path",{fill:"currentColor",d:"M4.75 7.9a2.25 2.25 0 1 1 4.5 0 2.25 2.25 0 0 1-4.5 0Z"})]})}),$t=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{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"})})}),Kt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.8",d:"m4 7.5 2 2L10.5 5"})})}),Ut=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M3.5 5.25 7 8.75l3.5-3.5"})})}),Yt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M8.75 3.5 5.25 7l3.5 3.5"})})}),Xt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M5.25 3.5 8.75 7l-3.5 3.5"})})}),Qt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M3.5 8.75 7 5.25l3.5 3.5"})})}),Jt=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M10.391 7.868a3.501 3.501 0 0 1-6.782 0 1 1 0 0 1-.109.007H.875a.875.875 0 1 1 0-1.75H3.5q.055 0 .109.007a3.501 3.501 0 0 1 6.782 0 1 1 0 0 1 .109-.007h2.625a.875.875 0 1 1 0 1.75H10.5a1 1 0 0 1-.109-.007M7 8.75a1.75 1.75 0 1 0 0-3.5 1.75 1.75 0 0 0 0 3.5",clipRule:"evenodd"})})}),en=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.6",d:"m4 4 6 6M10 4l-6 6"})})}),tn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.6",d:"M3.5 12.25h7M7 1.75v8.167m0 0L9.917 7M7 9.917 4.083 7"})})}),nn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{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"})})}),rn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsxs("svg",{...o,ref:e,fill:"none",height:r,viewBox:"0 0 14 14",width:s,xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("path",{d:"M7.042 4.475c.49 0 .97.15 1.377.429.407.28.724.677.912 1.142.187.464.237.976.141 1.469a2.57 2.57 0 0 1-.676 1.303 2.5 2.5 0 0 1-1.035.637 2.42 2.42 0 0 1-2.293-.467 2.54 2.54 0 0 1-.719-.994 2.6 2.6 0 0 1 .23-2.389c.226-.348.534-.633.893-.83a2.4 2.4 0 0 1 1.17-.3m-.017 1.157c-.354 0-.694.145-.944.402s-.392.605-.393.968c0 .755.617 1.389 1.354 1.389.73 0 1.317-.627 1.317-1.389 0-.754-.598-1.37-1.334-1.37",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"}),a.jsx("path",{d:"M7.023 2c2.73 0 5.303 1.51 6.656 4.154l.127.258.001.002.122.274.005.009v.007a.9.9 0 0 1 .066.303.9.9 0 0 1-.065.317v.005l-.004.008C12.665 10.313 9.904 12 6.997 12 4.09 12 1.333 10.318.066 7.349L.06 7.344l-.003-.01A1.1 1.1 0 0 1 0 7.016c0-.101.02-.202.057-.318L.06 6.69v-.002a7.7 7.7 0 0 1 2.797-3.415A7.43 7.43 0 0 1 7.023 2m0 1.284c-2.308 0-4.601 1.261-5.731 3.726 1.139 2.477 3.401 3.706 5.704 3.706 2.308 0 4.572-1.238 5.7-3.704-1.129-2.466-3.369-3.728-5.673-3.728",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})]})}),on=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsxs("svg",{...o,ref:e,fill:"none",height:r,viewBox:"0 0 14 14",width:s,xmlns:"http://www.w3.org/2000/svg",children:[a.jsx("path",{d:"m2.867 12.098 1.266.804 7-11-1.266-.804zM10.264 4.2c1.005.624 1.86 1.564 2.431 2.813-1.127 2.465-3.39 3.703-5.699 3.703q-.423-.002-.84-.06l-.745 1.17A7.5 7.5 0 0 0 6.996 12c2.907 0 5.669-1.687 6.936-4.663l.003-.008v-.005A.9.9 0 0 0 14 7.008a.9.9 0 0 0-.066-.304v-.008l-.005-.008-.121-.274-.001-.002-.127-.258h-.001a7.7 7.7 0 0 0-2.736-3.022zM7.022 2a7.43 7.43 0 0 0-4.166 1.274A7.7 7.7 0 0 0 .061 6.688L.06 6.69l-.003.007a1 1 0 0 0-.057.32q.005.163.058.317l.003.01.004.005c.658 1.54 1.718 2.73 2.99 3.523l.678-1.067C2.727 9.188 1.866 8.259 1.292 7.01c1.13-2.465 3.423-3.727 5.73-3.727q.416 0 .826.057l.743-1.17A7.4 7.4 0 0 0 7.022 2",fill:"currentColor"}),a.jsx("path",{d:"M8.343 7.219c-.061.408-.292.76-.616.968l-.872 1.369c.305.023.612-.01.906-.1.39-.123.747-.341 1.035-.638.346-.356.581-.81.677-1.303a2.6 2.6 0 0 0-.244-1.69zM7.042 4.475c-.408 0-.81.103-1.17.3-.36.198-.667.483-.893.83a2.61 2.61 0 0 0-.23 2.389q.027.063.058.124l.925-1.455a1.4 1.4 0 0 1 .472-.741l.92-1.444z",fill:"currentColor"})]})}),sn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{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"})})}),an=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{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"})})}),ln=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{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"})})}),cn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"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"})})}),un=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"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"})})}),dn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"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"})})}),fn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"M9.71 0c.374 0 .678.304.678.678v.677h.677c.872 0 1.58.708 1.58 1.58v.678h.678a.678.678 0 0 1 0 1.355h-.678v1.355h.678a.677.677 0 0 1 0 1.355h-.678v1.354h.678a.678.678 0 0 1 0 1.356h-.678v.677c0 .872-.708 1.58-1.58 1.58h-.677v.678a.678.678 0 0 1-1.356 0v-.678H7.678v.678a.678.678 0 0 1-1.355 0v-.678H4.968v.678a.677.677 0 0 1-1.355 0v-.678h-.677a1.58 1.58 0 0 1-1.58-1.58v-.677H.677a.678.678 0 0 1 0-1.356h.677V7.678H.678a.678.678 0 0 1 0-1.355h.677V4.968H.678a.678.678 0 1 1 0-1.355h.677v-.677c0-.873.708-1.58 1.58-1.58h.678V.677a.678.678 0 0 1 1.355 0v.677h1.355V.678a.677.677 0 1 1 1.355 0v.677h1.354V.678c0-.374.304-.678.678-.678ZM2.936 2.71a.226.226 0 0 0-.226.226v8.128c0 .125.101.227.226.227h8.128a.228.228 0 0 0 .227-.226v-8.13a.227.227 0 0 0-.226-.225h-8.13Zm5.42 1.354c.872 0 1.58.709 1.58 1.582v2.71a1.58 1.58 0 0 1-1.58 1.58h-2.71c-.873 0-1.581-.708-1.582-1.58v-2.71c0-.873.709-1.582 1.582-1.582h2.71ZM5.645 5.42c-.125 0-.226.1-.226.226v2.71c0 .124.101.225.226.225h2.71a.226.226 0 0 0 .225-.226v-2.71a.226.226 0 0 0-.226-.225h-2.71Z"})})}),hn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{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"})})}),pn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsxs("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:[a.jsx("circle",{cx:"7",cy:"7",r:"5.25",stroke:"currentColor",strokeWidth:"1.4"}),a.jsx("circle",{cx:"7",cy:"5",r:"0.75",fill:"currentColor",stroke:"none"}),a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.6",d:"M7 7v2.5"})]})}),vn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{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"})})}),mn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",fillRule:"evenodd",d:"M14 14h-2.8V9.1c0-1.3-.6-2-1.7-2s-1.8.7-1.8 2V14H4.9V4.9h2.8v1s.9-1.5 2.9-1.5S14 5.6 14 8v6ZM1.7 3.4C.7 3.4 0 2.7 0 1.7S.8 0 1.7 0a1.7 1.7 0 0 1 0 3.4ZM0 14h3.5V4.9H0V14Z",clipRule:"evenodd"})})}),gn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsxs("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"3 -2 16 22",fill:"none",children:[a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5",d:"m3 3.7 8 5.9 8-5.9"}),a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2.5",d:"M18 2H4a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h14a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2Z"})]})}),wn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.6",d:"M3.5 7.121h7.243"})})}),bn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"M9.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"})})}),xn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.6",d:"M3.5 7.121h7.243M7.122 3.5v7.243"})})}),kn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsxs("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:[a.jsx("rect",{width:"6",height:"6",fill:"currentColor",rx:"1"}),a.jsx("rect",{width:"6",height:"6",x:"8",fill:"currentColor",rx:"1"}),a.jsx("rect",{width:"6",height:"6",y:"8",fill:"currentColor",rx:"1"}),a.jsx("rect",{width:"6",height:"6",x:"8",y:"8",fill:"currentColor",rx:"1"})]})}),yn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsxs("g",{fill:"currentColor",children:[a.jsx("path",{d:"M14 14h-3.111v-1.556h1.555V10.89H14V14ZM0 0h6.222v6.222H0V0Zm1.556 1.556v3.11h3.11v-3.11h-3.11ZM7.778 0H14v6.222H7.778V0Zm1.555 1.556v3.11h3.111v-3.11h-3.11ZM0 7.778h6.222V14H0V7.778Zm1.556 1.555v3.111h3.11v-3.11h-3.11Zm10.11-1.555H14V9h-2.333V7.778ZM9.333 10H7.778V7.778h1.555V10ZM9.31 12.444V14H7.779v-2H9.31v.444ZM9.3 11h1v1h-1zM10.3 11h1v1h-1z"}),a.jsx("path",{d:"M11.3 10H14v1h-2.7zM10.3 9h1v1h-1z"})]})})}),Cn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",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"})})}),jn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsxs("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 15",fill:"none",children:[a.jsx("path",{fill:"currentColor",d:"M4.875 10.65a.437.437 0 0 0-.437.438v2.625a.438.438 0 0 0 .68.364l1.07-.713 1.07.713a.438.438 0 0 0 .68-.364v-2.625a.437.437 0 0 0-.438-.438z"}),a.jsx("path",{fill:"currentColor",stroke:"currentColor",strokeWidth:".15",d:"M12.094.075a1.17 1.17 0 0 1 1.169 1.169V12.18a1.17 1.17 0 0 1-1.17 1.17h-2.63a.732.732 0 0 1 0-1.464H11.8V9.413H2.906a.58.58 0 0 0-.58.58v1.313a.58.58 0 0 0 .58.581h.069a.731.731 0 0 1 0 1.463h-.069a2.044 2.044 0 0 1-2.044-2.044V2.12A2.044 2.044 0 0 1 2.906.075zM2.906 1.538a.58.58 0 0 0-.58.58v5.917q.276-.084.58-.085H11.8V1.538z"})]})}),Rn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"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"})})}),In=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsxs("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:[a.jsx("path",{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"})]})}),En=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.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"})})}),Pn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"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"})})}),Sn=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsxs("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:[a.jsx("path",{stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"1.4",d:"M7 1.5 1.5 11.5h11L7 1.5Z"}),a.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeWidth:"1.6",d:"M7 6v2"}),a.jsx("circle",{cx:"7",cy:"9.75",r:"0.75",fill:"currentColor",stroke:"none"})]})}),_n=i.forwardRef(function(n,e){const{height:r=14,width:s=14,...o}=n;return a.jsx("svg",{...o,ref:e,xmlns:"http://www.w3.org/2000/svg",width:s,height:r,viewBox:"0 0 14 14",fill:"none",children:a.jsx("path",{fill:"currentColor",d:"M10.938 1.003c.196.003.376.007.538.018.331.023.668.074.998.216.488.211.918.56 1.199 1.027.199.33.27.672.3.987.028.297.027.655.027 1.035v5.428c0 .38.001.738-.027 1.035-.03.315-.101.657-.3.987a2.553 2.553 0 0 1-1.019.94l-.18.087c-.33.142-.667.193-.998.216-.324.022-.72.021-1.178.021H3.702c-.459 0-.854 0-1.178-.021a3.168 3.168 0 0 1-.874-.167l-.124-.05a2.583 2.583 0 0 1-1.199-1.026c-.199-.33-.27-.672-.3-.987C0 10.452 0 10.094 0 9.714V4.286c0-.38-.001-.738.027-1.035.03-.315.101-.657.3-.987l.112-.17a2.615 2.615 0 0 1 1.087-.857l.124-.049a3.17 3.17 0 0 1 .874-.167C2.848 1 3.244 1 3.702 1h6.596l.64.003ZM3.702 3c-.487 0-.8 0-1.04.017-.23.016-.312.043-.344.057a.596.596 0 0 0-.275.218c.01-.02-.01 0-.024.151C2 3.623 2 3.867 2 4.286v5.428c0 .42.001.664.019.843.008.091.019.134.024.15.044.07.13.157.274.219h.001c.032.014.113.041.344.057.24.017.553.017 1.04.017h6.596c.486 0 .8 0 1.04-.017.23-.016.312-.043.344-.057a.59.59 0 0 0 .274-.219.758.758 0 0 0 .025-.15c.018-.18.019-.424.019-.843V4.286c0-.42-.001-.664-.019-.843a.763.763 0 0 0-.025-.151.594.594 0 0 0-.274-.218c-.032-.014-.113-.041-.344-.057a7.799 7.799 0 0 0-.427-.015L10.298 3H3.702Zm4.24.5a1 1 0 0 1 0 2h-.008a1 1 0 0 1 0-2h.008Zm2.534 0a1 1 0 0 1 0 2h-.01a1 1 0 0 1 0-2h.01Z"})})}),Nn={projects:kn,chat:$t,articles:Ft,mail:gn,github:un,globe:dn,linkedin:mn,reddit:Cn,exit:sn,camera:Gt,"qr-code":yn,download:tn,save:Rn,pencil:bn,"arrow-left":Ht,"arrow-right":Wt,cross:en,checkmark:Kt,plus:xn,minus:wn,window:_n,user:Pn,duplicate:nn,eye:rn,"eye-off":on,signal:In,audio:zt,hardware:fn,burger:qt,repository:jn,"chevron-down":Ut,"chevron-up":Qt,"chevron-left":Yt,"chevron-right":Xt,branch:Zt,commit:Jt,folder:ln,file:an,tag:En,key:vn,git:cn,home:hn,info:pn,warning:Sn},le=i.forwardRef(function(n,e){const{"aria-hidden":r,"aria-label":s,"aria-labelledby":o,color:l,role:c,size:f=14,style:h,type:d,...u}=n,v=Nn[d];if(!v)return console.warn(`Icon type "${d}" not found`),null;const m=s!==void 0||o!==void 0;return i.createElement(v,{...u,"aria-hidden":r??(m?void 0:!0),"aria-label":s,"aria-labelledby":o,ref:e,height:f,role:c??(m?"img":void 0),style:{flexShrink:0,...h,...l?{color:l}:void 0},width:f})}),qe=i.forwardRef(function(n,e){const{className:r="",color:s,size:o=48,style:l,...c}=n,f=typeof o=="number"?`${o}px`:o;return a.jsx("div",{ref:e,className:["nk-spinner",r].filter(Boolean).join(" "),style:{...l,width:o,height:o,fontSize:f,...s?{color:s}:void 0},role:"status","aria-label":"Loading",...c})});function ze(t){return t==null||typeof t=="boolean"||typeof t=="string"&&!t.trim()?!1:Array.isArray(t)?t.some(ze):i.isValidElement(t)&&t.type===i.Fragment?ze(t.props.children):!0}function Mn(t,n){const e=t.getBoundingClientRect(),r=n.clientX-e.left,s=n.clientY-e.top;t.style.setProperty("--nk-button-glow-x",`${r}px`),t.style.setProperty("--nk-button-glow-y",`${s}px`)}const Re=i.forwardRef(function(n,e){const{as:r,children:s,className:o,disabled:l,fullWidth:c=!1,icon:f,iconAlignment:h="left",loading:d=!1,onClick:u,onKeyDown:v,onMouseMove:m,role:g,shape:C,tabIndex:b,textAlignment:w="center",tone:S,variant:I="primary",...M}=n,k=r??"button",j=l||d,y=!!f&&!ze(s),E=k==="a"&&"href"in M&&typeof M.href=="string",L=typeof k=="string"&&k!=="button"&&!E,O=R=>{if(j){R.preventDefault(),R.stopPropagation();return}const V=u;V==null||V(R)},H=R=>{Mn(R.currentTarget,R);const V=m;V==null||V(R)},B=R=>{const V=v;V==null||V(R),!(R.defaultPrevented||j||!L||R.key!=="Enter"&&R.key!==" ")&&(R.preventDefault(),R.currentTarget.click())},_=k==="button"?{disabled:j,type:M.type??"button"}:{"aria-disabled":j||void 0},Z=E&&j?{href:void 0}:void 0,N=E&&j?g??"link":L?g??"button":g,x=k==="button"?b:E&&j?void 0:j?-1:L?b??0:b;return i.createElement(k,{...M,..._,...Z,ref:e,"aria-busy":d||void 0,className:["nk-button",o].filter(Boolean).join(" "),"data-full-width":c||void 0,"data-icon-only":y||void 0,"data-shape":C,"data-tone":S,"data-variant":I,onClick:O,onKeyDown:L?B:v,onMouseMove:H,role:N,tabIndex:x},a.jsxs(a.Fragment,{children:[a.jsxs("span",{className:"nk-button__content",style:{justifyContent:w},children:[f&&h==="left"?a.jsx(le,{size:14,type:f}):null,s,f&&h==="right"?a.jsx(le,{size:14,type:f}):null]}),d?a.jsx(qe,{"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:r="left",as:s,className:o,size:l="body",tone:c="default",weight:f,...h}=n,d=s??"p";return i.createElement(d,{...h,ref:e,className:["nk-text",o].filter(Boolean).join(" "),"data-align":r,"data-size":l,"data-tone":c,"data-weight":f})}),Ln=i.forwardRef(function(n,e){const{children:r,className:s,header:o,spacing:l="standard",...c}=n;return a.jsxs(Se,{...c,ref:e,className:["nk-card",s].filter(Boolean).join(" "),"data-has-header":o?!0:void 0,"data-spacing":l,children:[o?a.jsxs("div",{className:"nk-card__header",children:[o.title?a.jsx(ie,{as:"span",size:"caption",tone:"muted",weight:"semibold",children:o.title}):null,o.title&&o.subtitle?a.jsx("span",{"aria-hidden":"true",className:"nk-card__separator",children:"•"}):null,o.subtitle?a.jsx(ie,{as:"span",size:"caption",tone:"muted",weight:"semibold",children:o.subtitle}):null]}):null,o?a.jsx("div",{className:"nk-card__content","data-spacing":l,children:r}):r]})});function ce(t){return t!==void 0&&t!==!1&&t!=="false"}function fe(t,n){return t?!0:n}const lt=i.createContext(void 0);function Tn(){return i.useContext(lt)}const ct=i.forwardRef(function(n,e){var y;const{"aria-invalid":r,checked:s,children:o,className:l,defaultChecked:c,disabled:f=!1,invalid:h=!1,name:d,onChange:u,required:v=!1,style:m,value:g="on",...C}=n,b=Tn(),w=String(g),S=(b==null?void 0:b.value)!==void 0,I=f||!!(b!=null&&b.disabled),M=!!(b!=null&&b.required&&!b.hasSelection&&b.validationValue===w),k=h||ce(r);function j(E){u==null||u(E),E.defaultPrevented||b==null||b.handleChange(E)}return a.jsxs("label",{className:["nk-checkbox",l].filter(Boolean).join(" "),"data-disabled":I||void 0,"data-invalid":k||void 0,style:m,children:[a.jsx("input",{...C,ref:e,"aria-invalid":fe(h,r),checked:b?S?(y=b.value)==null?void 0:y.includes(w):void 0:s,className:"nk-checkbox__control",defaultChecked:b&&!S?b.defaultValue.includes(w):c,disabled:I,name:(b==null?void 0:b.name)??d,onChange:j,required:v||M,type:"checkbox",value:g}),a.jsx("span",{"aria-hidden":"true",className:"nk-checkbox__visual",children:a.jsx(le,{className:"nk-checkbox__icon",size:12,type:"checkmark"})}),o!==void 0?a.jsxs(ie,{as:"span",className:"nk-checkbox__label",children:[o,v?a.jsx("span",{"aria-hidden":"true",className:"nk-checkbox__required",children:"*"}):null]}):null]})}),ut=Symbol("nk-field-control-metadata");function dt(t){if(typeof t!="function"&&typeof t!="object"||t===null)return;const n=t,e=n[ut];return e||(n.type!==void 0&&n.type!==t?dt(n.type):void 0)}function ft(t,n){Object.assign(t,{[ut]:{requiredCommunication:n}})}const Vn=Object.freeze([]);function ht(t,n){i.Children.forEach(t,e=>{if(e==null||typeof e=="boolean")return;if(!i.isValidElement(e))throw new Error("CheckboxGroup children must be direct Checkbox elements or fragments");if(e.type===i.Fragment){ht(e.props.children,n);return}if(e.type!==ct)throw new Error("CheckboxGroup children must be direct Checkbox elements or fragments");const r=e;n.push({disabled:!!r.props.disabled,required:!!r.props.required,value:String(r.props.value??"on")})})}function An(t){const n=[];ht(t,n);const e=new Set;return n.forEach(r=>{if(e.has(r.value))throw new Error("CheckboxGroup Checkbox values must be unique");e.add(r.value)}),n}function Bn(t,n,e){n.current=t,typeof e=="function"?e(t):e&&(e.current=t)}const pt=i.forwardRef(function(n,e){const{"aria-invalid":r,children:s,className:o,defaultValue:l=Vn,disabled:c=!1,invalid:f=!1,name:h,onChange:d,orientation:u="vertical",required:v=!1,value:m,...g}=n,C=i.useRef(null),[b,w]=i.useState(l),S=m!==void 0,I=S?m:b,M=f||ce(r),k=An(s),j=c?[]:k.filter(x=>!x.disabled).map(x=>x.value),y=new Set(j),E=I.some(x=>y.has(x)),L=j[0],O=k.find(x=>!x.disabled&&x.value===L),H=l.some(x=>y.has(x)),B=!!(O!=null&&O.required),_=i.useCallback(x=>Bn(x,C,e),[e]);i.useEffect(()=>{var T;if(S)return;const x=(T=C.current)==null?void 0:T.querySelector('input[type="checkbox"]'),R=x instanceof HTMLInputElement?x.form:null;if(!R)return;const V=R.getRootNode();function A(F){var U;if(F.target!==R||F.defaultPrevented)return;const X=Array.from(((U=C.current)==null?void 0:U.querySelectorAll('input[type="checkbox"]'))??[]).find(G=>!G.disabled&&G.value===L);X&&(X.required=!!(B||v&&!H)),w(l)}return V.addEventListener("reset",A),()=>V.removeEventListener("reset",A)},[s,l,H,S,v,B,L]);function Z(x){if(!S){const R=x.currentTarget.value,V=x.currentTarget.checked;w(A=>V?[...new Set([...A,R])]:A.filter(T=>T!==R))}d==null||d(x)}const N={defaultValue:l,disabled:c,handleChange:Z,hasSelection:E,name:h,required:v,value:m,validationValue:L};return a.jsx(lt.Provider,{value:N,children:a.jsx("div",{...g,ref:_,"aria-disabled":c||void 0,"aria-invalid":fe(f,r),className:["nk-checkbox-group",o].filter(Boolean).join(" "),"data-disabled":c||void 0,"data-invalid":M||void 0,"data-orientation":u,role:"group",children:s})})});ft(pt,"label");const Dn=[{minWidth:pe("xl"),marginPercent:32,preferredWidth:1200},{minWidth:pe("lg"),marginPercent:20,preferredWidth:1100},{minWidth:pe("md"),marginPercent:14,preferredWidth:pe("md")},{minWidth:pe("sm"),marginPercent:8,preferredWidth:650}],On=16;function Fn(t){for(const n of Dn)if(t>=n.minWidth)return n}function Hn(t,n){if(!Number.isFinite(t)||!Number.isFinite(n)||t<pe("sm")||n<=0)return;const e=Fn(t);if(!e)return;const r=t*e.marginPercent/100,s=t-r*2,o=Math.min(e.preferredWidth,t-On),l=Math.max(s,o);let c=Math.floor(l/n);return c%2===0&&(c-=1),c=Math.max(c,1),Math.min((c-1)*n,t)}const Wn=typeof window>"u"?i.useEffect:i.useLayoutEffect;function zn(t,n){if(typeof t=="function"){t(n);return}t&&(t.current=n)}function Zn(t){const n=window.getComputedStyle(t),e=Number.parseFloat(n.paddingLeft)+Number.parseFloat(n.paddingRight);return Math.max(t.clientWidth-e,0)}function qn(t){const e=window.getComputedStyle(t).getPropertyValue("--nk-cell").trim().match(/^([+]?(?:\d+\.?\d*|\.\d+))px$/i);if(!e)return;const r=Number.parseFloat(e[1]);return Number.isFinite(r)&&r>0?r:void 0}function Gn(t,n){const e=i.useRef(null),r=i.useRef(null),s=i.useRef(void 0),[o,l]=i.useState(void 0),c=i.useCallback(d=>{if(!n){if(s.current===void 0)return;s.current=void 0,l(void 0);return}const u=Zn(d),v=qn(d),m=v===void 0?void 0:Hn(u,v);s.current!==m&&(s.current=m,l(m))},[n]),f=i.useCallback(d=>{var v;if((v=r.current)==null||v.disconnect(),r.current=null,typeof ResizeObserver>"u")return;const u=new ResizeObserver(()=>c(d));u.observe(d),r.current=u},[c]),h=i.useCallback(d=>{var u;(u=r.current)==null||u.disconnect(),r.current=null,e.current=d,zn(t,d),!(!d||typeof window>"u"||!n)&&(c(d),f(d))},[f,n,t,c]);return Wn(()=>{e.current&&c(e.current)}),i.useEffect(()=>(e.current&&n&&f(e.current),()=>{var d;(d=r.current)==null||d.disconnect(),r.current=null}),[f,n]),{rootReference:h,innerWidth:o}}const $n=i.forwardRef(function(n,e){const{accent:r,as:s,children:o,className:l,constrain:c=!0,fill:f="none",mode:h="grid",spacing:d="standard",style:u,theme:v="light",...m}=n,{rootReference:g,innerWidth:C}=Gn(e,c),b=s??"div",w=r!==void 0?{...u,"--nk-accent":r}:u;return i.createElement(b,{...m,ref:g,className:["nk-content",l].filter(Boolean).join(" "),"data-constrain":c,"data-fill":f,"data-mode":h,"data-spacing":d,"data-theme":v,style:w},i.createElement("div",{className:"nk-content__inner",style:C===void 0?void 0:{width:`${C}px`}},o))}),Kn=i.forwardRef(function(n,e){const{"aria-hidden":r,"aria-label":s,"aria-labelledby":o,"aria-orientation":l,className:c,decorative:f=!1,orientation:h="horizontal",role:d,text:u,...v}=n,g=f?{"aria-hidden":!0,"aria-label":void 0,"aria-labelledby":void 0,role:void 0}:{"aria-hidden":r,"aria-label":s??(o===void 0&&h==="horizontal"?u:void 0),"aria-labelledby":o,"aria-orientation":l??h,role:d??"separator"};return a.jsx("div",{...v,...g,ref:e,className:["nk-divider",c].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 Ue(...t){const n=t.flatMap(r=>(r==null?void 0:r.split(/\s+/).filter(Boolean))??[]),e=[...new Set(n)];return e.length>0?e.join(" "):void 0}const Un=i.forwardRef(function(n,e){const{children:r,className:s,description:o,disabled:l=!1,error:c,label:f,orientation:h="vertical",required:d=!1,...u}=n,v=i.useId(),m=r.props.id??`${v}-control`,g=`${v}-label`,C=`${v}-description`,b=`${v}-error`,w=De(f),S=De(o),I=De(c),M=dt(r.type),k=M!==void 0,j=l||!!r.props.disabled,y=d||!!r.props.required,E=y&&(M==null?void 0:M.requiredCommunication)==="label",L=Ue(r.props["aria-describedby"],S?C:void 0,I?b:void 0),O=Ue(w?g:void 0,r.props["aria-labelledby"]),H=y?a.jsx("span",{"aria-hidden":"true",className:"nk-field__required",children:"*"}):null,B=E?a.jsx("span",{className:"nk-field__required-text",children:", select at least one"}):null,_=i.cloneElement(r,{"aria-describedby":L,"aria-invalid":I?!0:r.props["aria-invalid"],"aria-labelledby":O,disabled:j||void 0,id:m,required:y||void 0});return a.jsxs("div",{...u,ref:e,className:["nk-field",s].filter(Boolean).join(" "),"data-disabled":j||void 0,"data-has-label":w||void 0,"data-invalid":I||void 0,"data-orientation":h,"data-required":y||void 0,children:[w&&k?a.jsxs(ie,{as:"span",className:"nk-field__label",id:g,size:"caption",weight:"medium",children:[f,H,B]}):null,w&&!k?a.jsxs(ie,{as:"label",className:"nk-field__label",htmlFor:m,id:g,size:"caption",weight:"medium",children:[f,H]}):null,a.jsxs("div",{className:"nk-field__body",children:[_,S?a.jsx(ie,{as:"p",className:"nk-field__description",id:C,size:"caption",tone:"muted",children:o}):null,I?a.jsx(ie,{as:"p","aria-live":"polite",className:"nk-field__error",id:b,size:"caption",tone:"danger",children:c}):null]})]})});function Oe(t){return Array.isArray(t)?t.length>0:t!=null&&String(t).length>0}function Yn(t,n,e){n.current=t,typeof e=="function"?e(t):e&&(e.current=t)}function Ye(t){return t!=null&&t!==!1&&t!==!0&&t!==""}function Xn(t){var e;const n=(e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value"))==null?void 0:e.set;n?n.call(t,""):t.value=""}const Qn=i.forwardRef(function(n,e){const{"aria-busy":r,"aria-invalid":s,className:o,clearable:l=!1,defaultValue:c,disabled:f=!1,id:h,invalid:d=!1,leading:u,loading:v=!1,onChange:m,readOnly:g=!1,style:C,trailing:b,type:w="text",value:S,...I}=n,M=i.useId(),k=i.useRef(null),[j,y]=i.useState(Oe(c)),[E,L]=i.useState(!1);i.useEffect(()=>{w!=="password"&&L(!1)},[w]);const O=i.useCallback(z=>Yn(z,k,e),[e]),H=h??`${M}-control`,B=f||v,_=d||ce(s),Z=S!==void 0?Oe(S):j,N=w==="password"&&E?"text":w,x=fe(d,s),R=l&&Z&&!g&&!B,V=w==="password"&&!v,A=R||V,T=Ye(u),F=Ye(b)||A;function X(z){S===void 0&&y(Oe(z.currentTarget.value)),m==null||m(z)}function U(){const z=k.current;z&&(Xn(z),z.dispatchEvent(new Event("input",{bubbles:!0})),z.focus())}function G(){L(z=>!z)}return a.jsxs("div",{className:["nk-input",o].filter(Boolean).join(" "),"data-clearable":l||void 0,"data-disabled":B||void 0,"data-invalid":_||void 0,"data-leading":T||void 0,"data-loading":v||void 0,"data-read-only":g||void 0,"data-has-trailing-action":A||void 0,"data-trailing":F||void 0,style:C,children:[T?a.jsx("span",{className:"nk-input__leading",children:u}):null,a.jsx("input",{...I,ref:O,"aria-busy":v?!0:r,"aria-invalid":x,className:"nk-input__control",defaultValue:c,disabled:B,id:H,onChange:X,readOnly:g,type:N,value:S}),F?a.jsxs("span",{className:"nk-input__trailing",children:[b,R?a.jsx(Re,{"aria-controls":H,"aria-label":"Clear input",className:"nk-input__action",icon:"cross",onClick:U,shape:"rectangle",type:"button",variant:"ghost"}):null,V?a.jsx(Re,{"aria-controls":H,"aria-label":E?"Hide password":"Show password","aria-pressed":E,className:"nk-input__action",disabled:B,icon:E?"eye-off":"eye",onClick:G,shape:"rectangle",type:"button",variant:"ghost"}):null]}):null,v?a.jsx(qe,{"aria-hidden":"true","aria-label":void 0,className:"nk-input__spinner",role:void 0,size:14}):null]})}),Ie=i.createContext(void 0),Xe=typeof window>"u"?i.useEffect:i.useLayoutEffect;function Qe(t,n){const e=t.ownerDocument.defaultView;if(!e)return;const r=e.getComputedStyle(t);Array.from(n.style).filter(o=>o.startsWith("--nk-")).forEach(o=>{n.style.removeProperty(o)});for(let o=0;o<r.length;o+=1){const l=r.item(o);l.startsWith("--nk-")&&n.style.setProperty(l,r.getPropertyValue(l))}}function Jn(t){const{children:n,source:e}=t,r=i.useRef(null),s=i.useContext(Ie),[o,l]=i.useState(null);return Xe(()=>{const c=r.current;if(!(!c||!s))return s.registerBranch(c)},[s]),Xe(()=>{var v;const c=r.current;if(!c)return;Qe(e,c),l(e);const h=e.closest(".nk-content")??e,d=(v=e.ownerDocument.defaultView)==null?void 0:v.MutationObserver;if(!d)return;const u=new d(()=>{Qe(e,c)});return u.observe(h,{attributeFilter:["class","data-theme","style"],attributes:!0}),()=>u.disconnect()},[e]),a.jsx("div",{className:"nk-portal",ref:r,style:{display:"contents"},children:o===e?n:null})}function Me(t){const{children:n,container:e,inheritFrom:r}=t,s=i.useRef(null),[o,l]=i.useState(!1);i.useEffect(()=>{l(!0)},[]);const c=r??s.current,f=(c==null?void 0:c.ownerDocument)??(typeof document>"u"?null:document),h=e??(f==null?void 0:f.body)??null;return a.jsxs(a.Fragment,{children:[r?null:a.jsx("span",{"aria-hidden":"true",hidden:!0,ref:s}),o&&c&&h?St.createPortal(a.jsx(Jn,{source:c,children:n}),h):null]})}const er=1e3,tr=10,Je=new WeakMap;function Ee(t){const n=Je.get(t);if(n)return n;const e={focusLayers:new Set,layers:[],listeners:new Set};return Je.set(t,e),e}function et(t){t.listeners.forEach(n=>n())}function Le(t,n){const e=i.useRef(Symbol("nk-overlay-layer")),[,r]=i.useReducer(c=>c+1,0);i.useEffect(()=>{if(!t||!n)return;const c=Ee(n),f=()=>r();return c.listeners.add(f),c.layers.push(e.current),et(c),()=>{c.listeners.delete(f);const h=c.layers.indexOf(e.current);h>=0&&c.layers.splice(h,1),et(c)}},[t,n]);const s=n?Ee(n):null,o=(s==null?void 0:s.layers.indexOf(e.current))??-1,l=o>=0?o:(s==null?void 0:s.layers.length)??0;return{id:e.current,zIndex:er+l*tr}}function tt(t,n){const e=Ee(t).layers;return e.length>0&&e[e.length-1]===n}function nr(t,n,e){i.useEffect(()=>{if(!t||!n)return;const r=Ee(n);return r.focusLayers.add(e),()=>{r.focusLayers.delete(e)}},[t,e,n])}function nt(t,n){const e=Ee(t);for(let r=e.layers.length-1;r>=0;r-=1){const s=e.layers[r];if(e.focusLayers.has(s))return s===n}return!1}function rr(t,n){const e=t.composedPath();return n.some(r=>{var l;const s=r.current;if(!s)return!1;if(e.includes(s))return!0;const o=(l=s.ownerDocument.defaultView)==null?void 0:l.Node;return o&&t.target instanceof o?s.contains(t.target):!1})}function Te(t){const{active:n,boundaries:e,dismissOnEscape:r=!0,dismissOnPointerDownOutside:s=!0,layerId:o,onEscapeDismiss:l,onEscapeKeyDown:c,onPointerDownOutside:f,onPointerDownOutsideDismiss:h,ownerDocument:d}=t;i.useEffect(()=>{if(!n||!d)return;function u(m){m.key!=="Escape"||!r||!tt(d,o)||(c==null||c(m),!m.defaultPrevented&&(m.preventDefault(),l==null||l()))}function v(m){!s||!tt(d,o)||rr(m,e)||(f==null||f(m),!m.defaultPrevented&&(h==null||h()))}return d.addEventListener("keydown",u,!0),d.addEventListener("pointerdown",v,!0),()=>{d.removeEventListener("keydown",u,!0),d.removeEventListener("pointerdown",v,!0)}},[n,e,r,s,o,l,c,f,h,d])}const Ze=new WeakSet;function or(t){Ze.add(t);try{t.focus({preventScroll:!0})}finally{Ze.delete(t)}}function sr(t){return Ze.has(t)}const ir=["a[href]","area[href]","button","input:not([type=hidden])","select","textarea","iframe","[contenteditable]:not([contenteditable='false'])","[tabindex]"].join(",");function ar(t,n){let e=t;for(;e;){if(e.hidden||e.inert||e.getAttribute("aria-hidden")==="true")return!0;const r=e.ownerDocument.defaultView,s=r==null?void 0:r.getComputedStyle(e);if((s==null?void 0:s.display)==="none"||(s==null?void 0:s.visibility)==="hidden")return!0;if(e===n)break;e=e.parentElement}return!1}function lr(t,n){var o;const e=(o=t.ownerDocument.defaultView)==null?void 0:o.HTMLInputElement;if(!e||!(t instanceof e)||t.type!=="radio"||!t.name)return!0;const r=n.filter(l=>l instanceof e&&l.type==="radio"&&l.name===t.name&&l.form===t.form),s=r.find(l=>l.checked);return s?s===t:r[0]===t}function cr(t){const n=Array.from(t.querySelectorAll(ir)).filter(e=>!e.matches(":disabled")&&e.tabIndex>=0&&!ar(e,t));return n.filter(e=>lr(e,n))}function rt(t,n){const e=[t,...n];return[...new Set(e.flatMap(s=>cr(s)))].sort((s,o)=>{var f;if(s===o)return 0;const l=s.compareDocumentPosition(o),c=((f=s.ownerDocument.defaultView)==null?void 0:f.Node.DOCUMENT_POSITION_FOLLOWING)??4;return l&c?-1:1})}function Fe(t,n,e){return e?t.contains(e)||[...n].some(r=>r.contains(e)):!1}function vt(t){const{active:n,autoFocus:e=!0,container:r,initialFocusReference:s,layerId:o,restoreFocus:l=!0}=t,c=(r==null?void 0:r.ownerDocument)??null,f=i.useRef(new Set),h=i.useCallback(u=>(f.current.add(u),()=>f.current.delete(u)),[]),d=i.useMemo(()=>({registerBranch:h}),[h]);return nr(n&&!!r,c,o),i.useEffect(()=>{var I,M;if(!n||!r)return;const u=r.ownerDocument,v=(I=u.defaultView)==null?void 0:I.HTMLElement,m=(M=u.defaultView)==null?void 0:M.Node,g=v&&u.activeElement instanceof v?u.activeElement:null;let C=!0;function b(){const k=s==null?void 0:s.current;(k&&Fe(r,f.current,k)?k:rt(r,f.current)[0]??r).focus({preventScroll:!0})}function w(k){if(k.key!=="Tab"||!nt(u,o))return;const j=rt(r,f.current);if(j.length===0){k.preventDefault(),r==null||r.focus({preventScroll:!0});return}const y=j[0],E=j[j.length-1],L=u.activeElement,O=Fe(r,f.current,L),B=!j.some(_=>_===L)&&(L===r||L===(s==null?void 0:s.current));if(!O||B){k.preventDefault(),(k.shiftKey?E:y).focus();return}k.shiftKey&&L===y?(k.preventDefault(),E.focus()):!k.shiftKey&&L===E&&(k.preventDefault(),y.focus())}function S(k){nt(u,o)&&m&&k.target instanceof m&&!Fe(r,f.current,k.target)&&b()}return u.addEventListener("keydown",w,!0),u.addEventListener("focusin",S,!0),e&&Promise.resolve().then(()=>{C&&b()}),()=>{C=!1,u.removeEventListener("keydown",w,!0),u.removeEventListener("focusin",S,!0),l&&(g!=null&&g.isConnected)&&or(g)}},[n,e,r,s,o,l]),d}function ur(){const[t,n]=i.useState(!1);return i.useEffect(()=>{const e=typeof window>"u"?null:window;if(!(e!=null&&e.matchMedia))return;const r=e.matchMedia("(prefers-reduced-motion: reduce)"),s=()=>{n(r.matches)};return s(),r.addEventListener("change",s),()=>r.removeEventListener("change",s)},[]),t}function Ve(t,n=200){const e=ur(),[r,s]=i.useState(t);return i.useEffect(()=>{if(t){s(!0);return}if(!r)return;if(e||n<=0){s(!1);return}const o=window.setTimeout(()=>{s(!1)},n);return()=>window.clearTimeout(o)},[n,t,e,r]),{present:r,state:t?"open":r?"closing":"closed"}}const Ne=new WeakMap;function dr(t,n){i.useEffect(()=>{if(!t||!n)return;const e=Ne.get(n);if(e)e.count+=1;else{const r=n.body,s=n.defaultView,o=s&&Number.parseFloat(s.getComputedStyle(r).paddingRight)||0,l=n.documentElement.clientWidth,c=s&&l>0?Math.max(0,s.innerWidth-l):0,f={count:1,overflow:r.style.overflow,paddingRight:r.style.paddingRight};Ne.set(n,f),r.style.overflow="hidden",c>0&&(r.style.paddingRight=`${o+c}px`)}return()=>{const r=Ne.get(n);r&&(r.count-=1,!(r.count>0)&&(n.body.style.overflow=r.overflow,n.body.style.paddingRight=r.paddingRight,Ne.delete(n)))}},[t,n])}function fr(t,n,e){n.current=t,typeof e=="function"?e(t):e&&(e.current=t)}function hr(t){const{"aria-label":n,"aria-labelledby":e,children:r,className:s,closeButtonLabel:o="Close modal",exitable:l=!0,forwardedReference:c,initialFocusReference:f,lockScroll:h=!0,onClose:d,open:u,ownerDocument:v,presenceState:m,restoreFocus:g=!0,role:C="dialog",style:b,title:w,trapFocus:S=!0,...I}=t,M=i.useRef(null),k=i.useRef(null),j=i.useContext(Ie),y=`${i.useId()}-title`,[E,L]=i.useState(null),O=Le(!0,v),H=i.useMemo(()=>[M],[]),B=!!(w!=null&&w.trim()),_=f??(B?k:void 0),Z=e??(n===void 0&&B?y:void 0),N=i.useCallback(T=>{fr(T,M,c),L(T)},[c]);i.useLayoutEffect(()=>{E&&(E.inert=!u)},[E,u]);const x=i.useCallback(()=>{d==null||d("escape")},[d]),R=i.useCallback(()=>{d==null||d("outside")},[d]);Te({active:u,boundaries:H,dismissOnEscape:l,dismissOnPointerDownOutside:l,layerId:O.id,onEscapeDismiss:x,onPointerDownOutsideDismiss:R,ownerDocument:v});const V=vt({active:u&&S,container:E,initialFocusReference:_,layerId:O.id,restoreFocus:g});dr(h,v);const A=l?a.jsx(Re,{"aria-label":o,className:"nk-modal__close",icon:"cross",onClick:()=>d==null?void 0:d("close-button"),shape:"rectangle",type:"button",variant:"ghost"}):null;return a.jsx(Ie.Provider,{value:u&&S?V:j,children:a.jsx("div",{className:"nk-modal__overlay","data-state":m,role:"presentation",style:{zIndex:O.zIndex},children:a.jsxs(Se,{...I,ref:N,"aria-hidden":u?void 0:!0,"aria-label":u?n:void 0,"aria-labelledby":u?Z:void 0,"aria-modal":u?"true":void 0,className:["nk-modal",s].filter(Boolean).join(" "),"data-state":m,role:u?C:void 0,style:b,tabIndex:-1,children:[B?a.jsxs("div",{className:"nk-modal__header",children:[a.jsx(ie,{as:"h2",className:"nk-modal__title",id:y,ref:k,size:"subtitle",tabIndex:-1,weight:"semibold",children:w}),A]}):A,r]})})})}const pr=i.forwardRef(function(n,e){const{open:r}=n,s=i.useRef(n);r&&(s.current=n);const o=r?n:s.current,{portalContainer:l}=o,c=Ve(r),f=(l==null?void 0:l.ownerDocument)??(typeof document>"u"?null:document);return c.present?a.jsx(Me,{container:l,children:a.jsx(hr,{...o,forwardedReference:e,open:r,ownerDocument:f,presenceState:c.state==="closing"?"closing":"open"})}):null}),vr=Number.parseInt(i.version,10);function mt(t){return vr>=19?t.props.ref:t.ref}function Pe(t,n){typeof t=="function"?t(n):t&&(t.current=n)}const mr=12,gr={bottom:"top",left:"right",right:"left",top:"bottom"};function ot(t,n){const e=Math.min(mr,n/2);return Math.min(Math.max(e,t),n-e)}function wr(t){return gr[t]}function br(t,n){return n==="left"||n==="right"?t.width:t.height}function xr(t,n,e,r,s,o){const l={bottom:o-e.bottom-n*2,left:e.left-n*2,right:s-e.right-n*2,top:e.top-n*2},c=wr(t),f=br(r,t),h=l[t]<f&&l[c]>l[t]?c:t;let d=e.left+(e.width-r.width)/2,u=e.top+(e.height-r.height)/2;return h==="top"?u=e.top-r.height-n:h==="bottom"?u=e.bottom+n:h==="left"?d=e.left-r.width-n:d=e.right+n,d=Math.min(Math.max(n,d),Math.max(n,s-n-r.width)),u=Math.min(Math.max(n,u),Math.max(n,o-n-r.height)),{arrowOffset:h==="top"||h==="bottom"?ot(e.left+e.width/2-d,r.width):ot(e.top+e.height/2-u,r.height),left:d,placement:h,top:u}}const kr=8;function gt(t,n,e,r){const[s,o]=i.useState(null);return i.useEffect(()=>{if(!t||!e||!r){o(null);return}const l=e.ownerDocument.defaultView;if(!l)return;const c=l,f=c.getComputedStyle(e),h=Number.parseFloat(f.getPropertyValue("--nk-space-8")),d=Number.isFinite(h)?h:kr;function u(){const g=e==null?void 0:e.getBoundingClientRect(),C=r==null?void 0:r.getBoundingClientRect();!g||!C||o(xr(n,d,g,C,c.innerWidth,c.innerHeight))}u(),c.addEventListener("resize",u),c.addEventListener("scroll",u,!0);const v=c.ResizeObserver,m=v?new v(u):null;return m==null||m.observe(e),m==null||m.observe(r),()=>{c.removeEventListener("resize",u),c.removeEventListener("scroll",u,!0),m==null||m.disconnect()}},[t,r,n,e]),s}function yr(t){const{inert:n,panelElement:e}=t;return i.useLayoutEffect(()=>{e&&(e.inert=n)},[n,e]),null}function Cr(t,n,e){n.current=t,Pe(e,t)}function jr(t,n,e){n.current=t,Pe(e,t)}function Rr(t,n){const e=(t==null?void 0:t.split(/\s+/).filter(Boolean))??[];return e.includes(n)||e.push(n),e.join(" ")}function Ir(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 Er(t){return t==="grid"||t==="listbox"||t==="menu"||t==="tree"?t:"dialog"}const Pr=i.forwardRef(function(n,e){const{"aria-label":r,"aria-labelledby":s,autoFocus:o=!0,children:l,className:c,closeOnEscape:f=!0,closeOnOutsideInteraction:h=!0,defaultOpen:d=!1,disabled:u=!1,initialFocusReference:v,onEscapeKeyDown:m,onOpenChange:g,onPointerDownOutside:C,open:b,placement:w="bottom",portalContainer:S,restoreFocus:I=!0,role:M="dialog",style:k,tabIndex:j,trapFocus:y=!1,trigger:E,...L}=n;if(E.type===i.Fragment)throw new Error("Popover requires a single non-Fragment trigger");const O=i.useId(),H=i.useContext(Ie),B=`${O}-popover`,_=E.props,Z=mt(E),N=_.id??`${O}-trigger`,x=u||_.disabled===!0||_["aria-disabled"]===!0||_["aria-disabled"]==="true",R=b!==void 0,[V,A]=i.useState(d),T=R?b:V,F=Ve(T),X=i.useRef(null),U=i.useRef(null),G=i.useRef("programmatic"),z=i.useRef(null),oe=i.useRef(T),ue=i.useRef(null),[ve,xe]=i.useReducer(D=>D+1,0),[W,Y]=i.useState(null),[ne,J]=i.useState(null),q=(S==null?void 0:S.ownerDocument)??(W==null?void 0:W.ownerDocument)??(typeof document>"u"?null:document),de=Le(F.present,q),ee=i.useMemo(()=>[X,U],[]),re=gt(F.present,w,W,ne),me=i.useCallback(D=>{jr(D,X,Z),Y(D)},[Z]),ke=i.useCallback(D=>{Cr(D,U,e),J(D)},[e]),se=i.useCallback((D,K)=>{T!==D&&(R?(z.current={open:D,reason:K},xe()):(G.current=K,A(D)),g==null||g(D,K))},[R,g,T]),ye=i.useCallback(()=>{se(!1,"escape")},[se]),Ce=i.useCallback(()=>{se(!1,"outside")},[se]),ge=i.useCallback(D=>{var je;if(C==null||C(D),D.defaultPrevented)return;const K=(je=q==null?void 0:q.defaultView)==null?void 0:je.HTMLElement;ue.current=K?D.composedPath().find(we=>we instanceof K&&we.tabIndex>=0)??D.target:D.target},[C,q]);Te({active:T,boundaries:ee,dismissOnEscape:f,dismissOnPointerDownOutside:h,layerId:de.id,onEscapeDismiss:ye,onEscapeKeyDown:m,onPointerDownOutside:ge,onPointerDownOutsideDismiss:Ce,ownerDocument:q});const p=vt({active:T&&y,autoFocus:o,container:ne,initialFocusReference:v,layerId:de.id,restoreFocus:I});i.useEffect(()=>{if(!T||y||!o||!ne)return;let D=!0;return Promise.resolve().then(()=>{if(!D)return;const K=v==null?void 0:v.current;(K&&ne.contains(K)?K:ne).focus({preventScroll:!0})}),()=>{D=!1}},[o,v,T,ne,y]),i.useEffect(()=>{var $e;const D=oe.current;oe.current=T;const K=z.current,je=R?D!==T&&(K==null?void 0:K.open)===T?K.reason:"programmatic":G.current;if(z.current=null,T){G.current="programmatic",ue.current=null;return}const we=q==null?void 0:q.activeElement,Ae=ue.current,Be=($e=q==null?void 0:q.defaultView)==null?void 0:$e.HTMLElement,Pt=je==="outside"&&Be&&Ae instanceof Be&&we instanceof Be&&(Ae===we||Ae.contains(we));D&&!y&&I&&!Pt&&(W==null||W.focus({preventScroll:!0})),ue.current=null},[ve,R,T,q,I,y,W]),i.useEffect(()=>{u&&T&&se(!1,"programmatic")},[u,T,se]);function P(D){var K;if(x){D.preventDefault(),D.stopPropagation();return}(K=_.onClick)==null||K.call(_,D),!D.defaultPrevented&&se(!T,"trigger")}function $(D){var K;(K=_.onKeyDown)==null||K.call(_,D),!(D.defaultPrevented||x||Ir(D.currentTarget)||D.key!=="Enter"&&D.key!==" ")&&(D.preventDefault(),D.currentTarget.click())}if(u)return E;const Q=typeof E.type=="string",te=Q?E.type:null,ae=te==="a"&&typeof _.href=="string",he=Q&&!(te==="button"||te==="input"||te==="select"||te==="summary"||te==="textarea"||ae),Ge=ae&&x,Et=i.cloneElement(E,{"aria-controls":T?Rr(_["aria-controls"],B):_["aria-controls"],"aria-expanded":T,"aria-haspopup":_["aria-haspopup"]??Er(M),"aria-disabled":x?!0:_["aria-disabled"],className:[_.className,"nk-popover__trigger"].filter(Boolean).join(" "),href:Ge?void 0:_.href,id:N,onClick:P,onKeyDown:Q?$:_.onKeyDown,ref:me,role:_.role??(Ge?"link":he?"button":void 0),tabIndex:x?-1:_.tabIndex??(he?0:void 0)});return a.jsxs(a.Fragment,{children:[Et,a.jsx(Ie.Provider,{value:T&&y?p:H,children:F.present&&q?a.jsx(Me,{container:S,inheritFrom:W,children:a.jsxs(Se,{...L,ref:ke,"aria-hidden":T?void 0:!0,"aria-label":T?r:void 0,"aria-labelledby":T?s??(r===void 0?N:void 0):void 0,className:["nk-popover",c].filter(Boolean).join(" "),"data-placement":(re==null?void 0:re.placement)??w,"data-state":F.state==="closing"?"closing":"open",id:B,role:T?M:void 0,style:re?{...k,"--nk-popover-arrow-offset":`${re.arrowOffset}px`,left:re.left,top:re.top,zIndex:de.zIndex}:{...k,visibility:"hidden",zIndex:de.zIndex},tabIndex:j??-1,children:[a.jsx(yr,{inert:!T,panelElement:ne}),a.jsx("span",{"aria-hidden":"true",className:"nk-popover__arrow"}),a.jsx("div",{className:"nk-popover__content",children:l})]})}):null})]})}),Sr=3,_r=10,wt=4;function Nr(t){return Number.isFinite(t)?Math.min(_r,Math.max(Sr,Math.trunc(t))):wt}function be(t,n,e){return(n==="numeric"?t.replace(/[^0-9]/g,""):t.replace(/[^0-9a-z]/gi,"").toUpperCase()).slice(0,e)}function Mr(t,n,e){n.current=t,typeof e=="function"?e(t):e&&(e.current=t)}function Lr(t,n){var r;const e=(r=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value"))==null?void 0:r.set;e?e.call(t,n):t.value=n}function He(t,n,e){const r=Math.min(e-1,Math.max(0,n)),s=Math.min(r+1,t.value.length);t.focus(),t.setSelectionRange(r,s)}function Tr(t){const{defaultValue:n,disabled:e,forwardedReference:r,length:s,mode:o,onChange:l,onComplete:c,onFocus:f,onKeyDown:h,onPaste:d,onSelect:u,readOnly:v,value:m}=t,g=Nr(s),C=be(n,o,g),b=i.useRef(null),[w,S]=i.useState(C),[I,M]=i.useState(0),k=m!==void 0,j=be(k?m:w,o,g),y=i.useCallback(N=>Mr(N,b,r),[r]);i.useEffect(()=>{!k&&w!==j&&S(j)},[k,j,w]),i.useEffect(()=>{var V;if(k)return;const N=(V=b.current)==null?void 0:V.form;if(!N)return;const x=N.getRootNode();function R(A){A.target!==N||A.defaultPrevented||(S(C),M(0))}return x.addEventListener("reset",R),()=>x.removeEventListener("reset",R)},[k,C]);function E(N){const x=N.selectionStart??j.length;return Math.min(g-1,Math.max(0,x))}function L(N){const x=N.currentTarget,R=x.selectionStart??x.value.length,V=be(x.value,o,g),A=be(x.value.slice(0,R),o,g).length;x.value=V,k||S(V),l==null||l(N),V.length===g&&V!==j&&(c==null||c(V));const T=Math.min(g-1,A);M(T),x.setSelectionRange(T,Math.min(T+1,V.length))}function O(N){if(d==null||d(N),N.defaultPrevented||e||v)return;const x=be(N.clipboardData.getData("text"),o,g);if(N.preventDefault(),x.length===0)return;const R=N.currentTarget,V=R.selectionStart??j.length,A=R.selectionEnd??V,T=x.length===g?x:be(j.slice(0,V)+x+j.slice(A),o,g),F=x.length===g?g:Math.min(g,V+x.length);Lr(R,T),R.setSelectionRange(F,F),R.dispatchEvent(new Event("input",{bubbles:!0}))}function H(N){if(h==null||h(N),N.defaultPrevented||N.key!=="ArrowLeft"&&N.key!=="ArrowRight")return;N.preventDefault();const x=N.key==="ArrowLeft"?-1:1,R=Math.min(g-1,Math.max(0,E(N.currentTarget)+x));M(R),He(N.currentTarget,R,g)}function B(N){f==null||f(N);const x=Math.min(g-1,j.length);M(x),He(N.currentTarget,x,g)}function _(N){u==null||u(N),M(E(N.currentTarget))}function Z(N,x){if(N.preventDefault(),e)return;const R=b.current;R&&(M(x),He(R,x,g))}return{activeIndex:I,handleChange:L,handleFocus:B,handleKeyDown:H,handlePaste:O,handleSelect:_,handleSlotPointerDown:Z,inputCallbackReference:y,length:g,renderedValue:j}}const Vr=i.forwardRef(function(n,e){const{"aria-invalid":r,autoCapitalize:s,autoComplete:o="one-time-code",className:l,censored:c=!1,defaultValue:f="",disabled:h=!1,invalid:d=!1,length:u=wt,mode:v="numeric",onChange:m,onComplete:g,onFocus:C,onKeyDown:b,onPaste:w,onSelect:S,readOnly:I=!1,style:M,value:k,wrap:j=!1,...y}=n,{activeIndex:E,handleChange:L,handleFocus:O,handleKeyDown:H,handlePaste:B,handleSelect:_,handleSlotPointerDown:Z,inputCallbackReference:N,length:x,renderedValue:R}=Tr({defaultValue:f,disabled:h,forwardedReference:e,length:u,mode:v,onChange:m,onComplete:g,onFocus:C,onKeyDown:b,onPaste:w,onSelect:S,readOnly:I,value:k}),V=d||ce(r),A=!j&&x>=6&&x%2===0,T=x/2,F={...M,"--nk-pin-input-columns":Math.ceil(x/2)};return a.jsxs("span",{className:["nk-pin-input",l].filter(Boolean).join(" "),"data-disabled":h||void 0,"data-invalid":V||void 0,"data-read-only":I||void 0,"data-wrap":j||void 0,style:F,children:[a.jsx("input",{...y,ref:N,"aria-invalid":fe(d,r),autoCapitalize:s??(v==="alphanumeric"?"characters":"off"),autoComplete:o,className:"nk-pin-input__control",disabled:h,inputMode:v==="numeric"?"numeric":"text",maxLength:x,minLength:x,onChange:L,onFocus:O,onKeyDown:H,onPaste:B,onSelect:_,pattern:v==="numeric"?`[0-9]{${x}}`:`[0-9A-Za-z]{${x}}`,readOnly:I,spellCheck:!1,type:"text",value:R}),a.jsx("span",{"aria-hidden":"true",className:"nk-pin-input__slots",children:Array.from({length:x},(X,U)=>a.jsxs("span",{className:"nk-pin-input__slot-group",children:[A&&U===T?a.jsx("span",{className:"nk-pin-input__separator",children:"-"}):null,a.jsx("span",{className:"nk-pin-input__slot","data-active":E===U||void 0,onPointerDown:G=>Z(G,U),children:c&&R[U]?a.jsx("span",{className:"nk-pin-input__censor"}):R[U]??""})]},U))})]})}),bt=i.createContext(void 0);function Ar(){const t=i.useContext(bt);if(!t)throw new Error("Radio must be rendered within RadioGroup");return t}function Br(t,n,e){n.current=t,typeof e=="function"?e(t):e&&(e.current=t)}const Dr=i.forwardRef(function(n,e){const{children:r,className:s,disabled:o=!1,style:l,value:c,...f}=n,h=Ar(),d=i.useRef(null),u=h.disabled||o,v=h.value!==void 0,m=h.value===c,g=i.useCallback(C=>Br(C,d,e),[e]);return i.useEffect(()=>{var C;!v&&u&&((C=d.current)!=null&&C.checked)&&(d.current.checked=!1)},[v,u]),a.jsxs("label",{className:["nk-radio",s].filter(Boolean).join(" "),"data-disabled":u||void 0,style:l,children:[a.jsx("input",{...f,ref:g,checked:v?!u&&m:void 0,className:"nk-radio__control",defaultChecked:v?void 0:!u&&h.defaultValue===c,disabled:u,name:h.name,onChange:h.onChange,required:h.required,type:"radio",value:c}),a.jsx("span",{"aria-hidden":"true",className:"nk-radio__visual"}),a.jsx(ie,{as:"span",className:"nk-radio__label",children:r})]})}),xt=i.forwardRef(function(n,e){const{"aria-invalid":r,children:s,className:o,defaultValue:l,disabled:c=!1,invalid:f=!1,name:h,onChange:d,orientation:u="vertical",required:v=!1,value:m,...g}=n,C=f||ce(r),b={defaultValue:l,disabled:c,name:h,onChange:d,required:v,value:m};return a.jsx(bt.Provider,{value:b,children:a.jsx("div",{...g,ref:e,"aria-disabled":c||void 0,"aria-invalid":fe(f,r),"aria-required":v||void 0,className:["nk-radio-group",o].filter(Boolean).join(" "),"data-disabled":c||void 0,"data-invalid":C||void 0,"data-orientation":u,role:"radiogroup",children:s})})});ft(xt,"group");function We(t,n,e){if(t.length===0)return-1;for(let r=1;r<=t.length;r+=1){const s=(n+e*r+t.length)%t.length;if(!t[s].disabled)return s}return-1}function Or(t,n,e){for(let r=1;r<=t.length;r+=1){const s=(e+r+t.length)%t.length,o=t[s];if(!o.disabled&&o.label.toLocaleLowerCase().startsWith(n))return s}return-1}function Fr(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 Hr(t,n,e){n.current=t,typeof e=="function"?e(t):e&&(e.current=t)}function Wr(t){const{"aria-invalid":n,children:e,className:r,defaultValue:s,disabled:o=!1,forwardedReference:l,invalid:c=!1,placeholder:f,style:h,value:d,...u}=t,v=fe(c,n),m=c||ce(n);return a.jsxs("span",{className:["nk-select",r].filter(Boolean).join(" "),"data-disabled":o||void 0,"data-invalid":m||void 0,"data-mode":"native",style:h,children:[a.jsxs("select",{...u,ref:l,"aria-invalid":v,className:"nk-select__control",defaultValue:d===void 0?s??(f!==void 0?"":void 0):void 0,disabled:o,value:d,children:[f!==void 0?a.jsx("option",{disabled:!0,value:"",children:f}):null,e]}),a.jsx(le,{className:"nk-select__icon",type:"chevron-down"})]})}function zr(t,n,e){const[r,s]=i.useState(null);return i.useEffect(()=>{if(!t||!n){s(null);return}const o=n.ownerDocument.defaultView;if(!o)return;const l=o;function c(){const d=n==null?void 0:n.getBoundingClientRect();if(!d)return;const u=8,v=4,m=l.innerHeight-d.bottom-v-u,g=d.top-v-u,C=m<160&&g>m,b=Math.max(72,C?g:m),w=e==null?void 0:e.getBoundingClientRect(),S=Math.max(d.width,(w==null?void 0:w.width)??d.width),I=Math.min(Math.max(u,d.left),Math.max(u,l.innerWidth-u-S)),M=C?Math.max(u,d.top-v-Math.min((w==null?void 0:w.height)??b,b)):d.bottom+v;s({left:I,maxHeight:b,minWidth:d.width,top:M})}c(),l.addEventListener("resize",c),l.addEventListener("scroll",c,!0);const f=l.ResizeObserver,h=f?new f(c):null;return h==null||h.observe(n),e&&(h==null||h.observe(e)),()=>{l.removeEventListener("resize",c),l.removeEventListener("scroll",c,!0),h==null||h.disconnect()}},[t,e,n]),r}function Zr(t){const{active:n,closeOnEscape:e,closeOnOutsideInteraction:r,highlightedIndex:s,id:o,listboxReference:l,onEscapeDismiss:c,onEscapeKeyDown:f,onHighlight:h,onOutsideDismiss:d,onPointerDownOutside:u,onSelect:v,options:m,ownerDocument:g,position:C,selectedValue:b,state:w,triggerReference:S}=t,I=i.useRef(null),M=Le(!0,g),k=i.useMemo(()=>[S,I],[S]),j=i.useCallback(y=>{I.current=y,l(y)},[l]);return Te({active:n,boundaries:k,dismissOnEscape:e,dismissOnPointerDownOutside:r,layerId:M.id,onEscapeDismiss:c,onEscapeKeyDown:f,onPointerDownOutside:u,onPointerDownOutsideDismiss:d,ownerDocument:g}),a.jsx("div",{"aria-hidden":n?void 0:!0,"aria-labelledby":o,className:"nk-select__listbox","data-state":w,id:`${o}-listbox`,ref:j,role:"listbox",style:C?{left:C.left,maxHeight:C.maxHeight,minWidth:C.minWidth,top:C.top,zIndex:M.zIndex}:{visibility:"hidden",zIndex:M.zIndex},children:m.map((y,E)=>a.jsxs("div",{"aria-disabled":y.disabled||void 0,"aria-selected":y.value===b,className:"nk-select__option","data-highlighted":E===s||void 0,"data-selected":y.value===b||void 0,id:`${o}-option-${E}`,onPointerDown:L=>{L.preventDefault(),y.disabled||v(y)},onPointerMove:()=>{y.disabled||h(E)},role:"option",children:[y.icon?a.jsx(le,{type:y.icon}):null,a.jsx("span",{className:"nk-select__option-label",children:y.label}),y.value===b?a.jsx(le,{className:"nk-select__check",type:"checkmark"}):null]},y.value))})}function qr(t){var ge;const{"aria-invalid":n,className:e,closeOnEscape:r=!0,closeOnOutsideInteraction:s=!0,defaultValue:o="",disabled:l=!1,displayOverride:c,form:f,forwardedReference:h,id:d,invalid:u=!1,name:v,onChange:m,onClick:g,onEscapeKeyDown:C,onKeyDown:b,onOpenChange:w,onPointerDownOutside:S,options:I,placeholder:M,portalContainer:k,required:j=!1,style:y,value:E,width:L,...O}=t;Fr(I);const H=i.useId(),B=d??H,_=i.useRef(null),Z=i.useRef(null),N=i.useRef(null),x=i.useRef(""),[R,V]=i.useState(null),[A,T]=i.useState(!1),[F,X]=i.useState(-1),[U,G]=i.useState(o),z=E!==void 0,oe=z?E:U,ue=I.find(p=>p.value===oe),ve=u||ce(n),xe=fe(u,n),W=Ve(A),Y=(k==null?void 0:k.ownerDocument)??((ge=_.current)==null?void 0:ge.ownerDocument)??(typeof document>"u"?null:document),ne=zr(W.present,_.current,R),J=L===void 0?y:{...y,width:L},q=c??ue,de=i.useCallback(p=>{Hr(p,_,h)},[h]),ee=i.useCallback(p=>{A!==p&&(T(p),w==null||w(p))},[w,A]),re=i.useCallback((p=1)=>{const P=I.findIndex(Q=>Q.value===oe&&!Q.disabled),$=p===1?-1:I.length;X(P>=0?P:We(I,$,p)),ee(!0)},[I,oe,ee]),me=i.useCallback(p=>{var P;p.disabled||(z||G(p.value),ee(!1),(P=_.current)==null||P.focus(),m==null||m(p.value))},[z,m,ee]),ke=i.useCallback(()=>{var p;ee(!1),(p=_.current)==null||p.focus()},[ee]),se=i.useCallback(()=>{ee(!1)},[ee]);function ye(p){g==null||g(p),!(p.defaultPrevented||l)&&(A?ee(!1):re())}function Ce(p){if(b==null||b(p),!(p.defaultPrevented||l)){if(p.key==="ArrowDown"||p.key==="ArrowUp"){p.preventDefault();const P=p.key==="ArrowDown"?1:-1;A?X($=>We(I,$,P)):re(P);return}if(p.key==="Home"||p.key==="End"){if(p.preventDefault(),!A)re(p.key==="Home"?1:-1);else{const P=p.key==="Home"?1:-1,$=P===1?-1:I.length;X(We(I,$,P))}return}if(p.key==="Enter"||p.key===" "){p.preventDefault();const P=I[F];A&&P?me(P):A||re();return}if(p.key==="Tab"){ee(!1);return}if(p.key.length===1&&!p.altKey&&!p.ctrlKey&&!p.metaKey){const P=p.currentTarget.ownerDocument.defaultView;if(!P)return;const $=p.key.toLocaleLowerCase(),Q=x.current+$,te=Array.from(Q).every(_e=>_e===$);x.current=te?$:Q,N.current!==null&&P.clearTimeout(N.current),N.current=P.setTimeout(()=>{x.current="",N.current=null},500);const ae=Or(I,x.current,F);ae>=0&&(p.preventDefault(),A||ee(!0),X(ae))}}}return i.useEffect(()=>{var p;if(A&&F>=0){const P=Y==null?void 0:Y.getElementById(`${B}-option-${F}`);P&&(R!=null&&R.contains(P))&&((p=P.scrollIntoView)==null||p.call(P,{block:"nearest"}))}},[F,B,R,A]),i.useEffect(()=>{var $;const p=($=_.current)==null?void 0:$.form;if(!p)return;function P(){const Q=Z.current,te=z?oe:o;if(Q){const ae=Array.from(Q.options),_e=ae.find(he=>he.value===te)??ae[0];ae.forEach(he=>{he.defaultSelected=he===_e})}z||G(o),ee(!1)}return p.addEventListener("reset",P),()=>p.removeEventListener("reset",P)},[o,f,z,oe,ee]),i.useEffect(()=>()=>{var P;const p=(P=_.current)==null?void 0:P.ownerDocument.defaultView;p&&N.current!==null&&p.clearTimeout(N.current)},[]),a.jsxs("span",{className:["nk-select",e].filter(Boolean).join(" "),"data-disabled":l||void 0,"data-invalid":ve||void 0,"data-mode":"custom","data-open":A||void 0,style:J,children:[a.jsxs("button",{...O,ref:de,"aria-activedescendant":A&&F>=0?`${B}-option-${F}`:void 0,"aria-controls":`${B}-listbox`,"aria-expanded":A,"aria-haspopup":"listbox","aria-invalid":xe,"aria-required":j||void 0,"aria-autocomplete":"none",className:"nk-select__trigger",disabled:l,form:f,id:B,onClick:ye,onKeyDown:Ce,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:M}),a.jsx(le,{className:"nk-select__icon",type:"chevron-down"})]}),v||j?a.jsxs("select",{ref:Z,"aria-hidden":"true",className:"nk-select__form-control",disabled:l,form:f,name:v,onChange:()=>{},onInvalid:p=>{var P;p.preventDefault(),(P=_.current)==null||P.focus()},required:j,tabIndex:-1,value:oe,children:[a.jsx("option",{value:""}),I.map(p=>a.jsx("option",{disabled:p.disabled,value:p.value,children:p.label},p.value))]}):null,W.present&&Y?a.jsx(Me,{container:k,inheritFrom:_.current,children:a.jsx(Zr,{active:A,closeOnEscape:r,closeOnOutsideInteraction:s,highlightedIndex:F,id:B,listboxReference:V,onEscapeDismiss:ke,onEscapeKeyDown:C,onHighlight:X,onOutsideDismiss:se,onPointerDownOutside:S,onSelect:me,options:I,ownerDocument:Y,position:ne,selectedValue:oe,state:W.state==="closing"?"closing":"open",triggerReference:_})}):null]})}const Gr=i.forwardRef(function(n,e){const{options:r}=n;return r!==void 0?a.jsx(qr,{...n,forwardedReference:e}):a.jsx(Wr,{...n,forwardedReference:e})}),$r=i.forwardRef(function(n,e){const{"aria-hidden":r=!0,className:s,height:o="1em",shape:l="rectangle",style:c,width:f=l==="circle"?"1em":"100%",...h}=n;return a.jsx("div",{...h,ref:e,"aria-hidden":r,className:["nk-skeleton",s].filter(Boolean).join(" "),"data-shape":l,style:{...c,width:f,height:o}})}),Kr=i.forwardRef(function(n,e){const{"aria-invalid":r,className:s,disabled:o=!1,style:l,...c}=n;return a.jsxs("span",{className:["nk-switch",s].filter(Boolean).join(" "),"data-disabled":o||void 0,"data-invalid":ce(r)||void 0,style:l,children:[a.jsx("input",{...c,ref:e,"aria-invalid":r,className:"nk-switch__control",disabled:o,role:"switch",type:"checkbox"}),a.jsx("span",{"aria-hidden":"true",className:"nk-switch__track",children:a.jsx("span",{className:"nk-switch__thumb"})})]})}),Ur=500,kt=i.createContext(null);function Yr(t){const{children:n,delay:e=Ur}=t,r=i.useMemo(()=>({delay:e}),[e]);return a.jsx(kt.Provider,{value:r,children:n})}const yt=500,st=100;function Xr(t,n,e,r){n.current=t,Pe(e,t),Pe(r,t)}function Qr(t){return Number.isFinite(t)?Math.max(0,t):yt}function Jr(t,n){const e=(t==null?void 0:t.split(/\s+/).filter(Boolean))??[];return e.includes(n)||e.push(n),e.join(" ")}const Ct=i.forwardRef(function(n,e){const{children:r,className:s,content:o,contentClassName:l,contentStyle:c,delay:f,disabled:h=!1,onOpenChange:d,placement:u="top",portalContainer:v,style:m}=n;if(o==null||typeof o=="boolean"||typeof o=="string"&&!o.trim())throw new Error("Tooltip content must not be empty");if(r.type===i.Fragment)throw new Error("Tooltip requires a single non-Fragment trigger");const C=`${i.useId()}-tooltip`,b=i.useContext(kt),w=r.props,S=mt(r),I=i.useRef(null),M=i.useRef(null),k=i.useRef(h),j=i.useRef(!1),y=i.useRef(null),E=i.useRef(null),L=i.useRef(null),O=i.useRef(!1),H=i.useRef(!1),B=i.useRef(!1),_=i.useRef(!1),[Z,N]=i.useState(null),[x,R]=i.useState(null),[V,A]=i.useState(!1);k.current=h;const T=Qr(f??(b==null?void 0:b.delay)??yt),F=Ve(V),X=(v==null?void 0:v.ownerDocument)??(Z==null?void 0:Z.ownerDocument)??(typeof document>"u"?null:document),U=Le(F.present,X),G=gt(F.present,u,Z,x),z=i.useMemo(()=>[I,M],[]),oe=Jr(w["aria-describedby"],C),ue=V&&F.present?oe:w["aria-describedby"],ve=i.useCallback(p=>{Xr(p,I,S,e),N(p)},[e,S]),xe=i.useCallback(p=>{M.current=p,p||(_.current=!1),R(p)},[]),W=i.useCallback(()=>{const p=y.current;p&&p.ownerWindow.clearTimeout(p.timerId),y.current=null},[]),Y=i.useCallback(()=>{const p=E.current;p&&p.ownerWindow.clearTimeout(p.timerId),E.current=null},[]),ne=i.useCallback(()=>{const p=L.current;p&&p.ownerWindow.clearTimeout(p.timerId),L.current=null},[]),J=i.useCallback(p=>{j.current!==p&&(p||(_.current=!1),j.current=p,A(p),d==null||d(p))},[d]),q=i.useCallback(p=>{var Q,te;if(Y(),H.current||B.current||_.current)return;if(p===0){J(!1);return}const P=((Q=I.current)==null?void 0:Q.ownerDocument.defaultView)??((te=M.current)==null?void 0:te.ownerDocument.defaultView);if(!P){J(!1);return}const $=P.setTimeout(()=>{E.current=null,!H.current&&!B.current&&!_.current&&J(!1)},p);E.current={ownerWindow:P,timerId:$}},[Y,J]),de=i.useCallback(()=>{var $;if(W(),Y(),T===0){J(!0);return}const p=($=I.current)==null?void 0:$.ownerDocument.defaultView;if(!p)return;const P=p.setTimeout(()=>{y.current=null,k.current||J(!0)},T);y.current={ownerWindow:p,timerId:P}},[Y,W,T,J]);function ee(p){var P;if((P=w.onFocus)==null||P.call(w,p),H.current=!0,Y(),O.current||sr(p.currentTarget)){W();return}W(),J(!0)}function re(p){var P;(P=w.onBlur)==null||P.call(w,p),!p.currentTarget.contains(p.relatedTarget)&&(H.current=!1,W(),q(0))}function me(p){var P;(P=w.onMouseEnter)==null||P.call(w,p),B.current=!0,de()}function ke(p){var P;(P=w.onMouseLeave)==null||P.call(w,p),B.current=!1,W(),q(st)}function se(){_.current=!0,Y()}function ye(){_.current=!1,q(st)}function Ce(p){var Q,te;(Q=w.onPointerDown)==null||Q.call(w,p),W(),Y(),J(!1);const P=(te=I.current)==null?void 0:te.ownerDocument.defaultView;if(!P)return;O.current=!0,ne();const $=P.setTimeout(()=>{O.current=!1,L.current=null},0);L.current={ownerWindow:P,timerId:$}}if(Te({active:V,boundaries:z,dismissOnPointerDownOutside:!0,layerId:U.id,onEscapeDismiss:()=>J(!1),onPointerDownOutsideDismiss:()=>J(!1),ownerDocument:X}),i.useEffect(()=>{h&&(W(),Y(),ne(),O.current=!1,H.current=!1,B.current=!1,_.current=!1,j.current&&J(!1))},[Y,W,ne,h,J]),i.useEffect(()=>()=>{W(),Y(),ne()},[Y,W,ne]),h)return i.cloneElement(r,{ref:ve});const ge=i.cloneElement(r,{"aria-describedby":ue,className:[w.className,"nk-tooltip__trigger",s].filter(Boolean).join(" "),onBlur:re,onFocus:ee,onMouseEnter:me,onMouseLeave:ke,onPointerDown:Ce,ref:ve,style:{...w.style,...m}});return a.jsxs(a.Fragment,{children:[ge,F.present&&X?a.jsx(Me,{container:v,inheritFrom:Z,children:a.jsxs(Se,{ref:xe,"aria-hidden":V?void 0:!0,className:["nk-tooltip",l].filter(Boolean).join(" "),"data-placement":(G==null?void 0:G.placement)??u,"data-state":F.state==="closing"?"closing":"open",id:C,onMouseEnter:se,onMouseLeave:ye,role:"tooltip",style:G?{...c,"--nk-tooltip-arrow-offset":`${G.arrowOffset}px`,left:G.left,top:G.top,zIndex:U.zIndex}:{...c,visibility:"hidden",zIndex:U.zIndex},children:[a.jsx("span",{"aria-hidden":"true",className:"nk-tooltip__arrow"}),o]})}):null]})}),eo=["a[href]","audio[controls]","button","iframe","input","label","select","summary","textarea","video[controls]","[contenteditable]:not([contenteditable='false'])"].join(","),to=new Set(["button","checkbox","combobox","grid","link","listbox","menu","menubar","menuitem","menuitemcheckbox","menuitemradio","option","radio","radiogroup","scrollbar","searchbox","slider","spinbutton","switch","tab","tablist","textbox","tree","treegrid","treeitem"]);function no(t,n){var r;let e=t;for(;e&&e!==n;){if(e.matches(eo)||(((r=e.getAttribute("role"))==null?void 0:r.split(/\s+/))??[]).some(o=>to.has(o)))return!0;e=e.parentElement}return!1}function ro(t,n,e){return t===void 0?n:e?e(t):t instanceof Date?Number.isNaN(t.getTime())?"Invalid Date":t.toISOString().slice(0,10):typeof t=="boolean"?t?"Yes":"No":t}function oo(t){if(typeof t=="number"||typeof t=="string")return String(t)}function jt(t){for(const n of i.Children.toArray(t)){if(i.isValidElement(n)&&n.type===i.Fragment){if(jt(n.props.children))return!0;continue}return!0}return!1}function so(t,n){let e=!1;function r(o){return i.Children.map(o,l=>i.isValidElement(l)?l.type===i.Fragment?i.cloneElement(l,void 0,r(l.props.children)):!e&&l.type===It?(e=!0,i.cloneElement(l,{rowTrigger:n})):l:l)}const s=r(t);return{attached:e,content:s}}const io=i.forwardRef(function(n,e){const{children:r,className:s,...o}=n;return a.jsx("thead",{...o,ref:e,className:["nk-table__head",s].filter(Boolean).join(" "),children:r})}),ao=i.forwardRef(function(n,e){const{children:r,className:s,emptyColumnCount:o=1,emptyMessage:l,...c}=n,f=!jt(r),h=Number.isFinite(o)?Math.max(1,Math.floor(o)):1;return a.jsx("tbody",{...c,ref:e,className:["nk-table__body",s].filter(Boolean).join(" "),children:f&&l!==void 0?a.jsx("tr",{className:"nk-table__row",children:a.jsx("td",{className:"nk-table__cell nk-table__empty-cell",colSpan:h,children:a.jsx("div",{className:"nk-table__empty-content",children:l})})}):r})}),lo=i.forwardRef(function(n,e){const{children:r,className:s,...o}=n;return a.jsx("tfoot",{...o,ref:e,className:["nk-table__foot",s].filter(Boolean).join(" "),children:r})}),co=i.forwardRef(function(n,e){const{children:r,className:s,download:o,href:l,hrefLang:c,label:f,onClick:h,onNavigate:d,rel:u,target:v,...m}=n,g=i.useRef(null),C=l!==void 0||h!==void 0,b=(f==null?void 0:f.trim())||(l!==void 0?"Open row":"Activate row");function w(k){g.current=k}const S=l!==void 0?{kind:"link",label:b,linkProperties:{download:o,href:l,hrefLang:c,onNavigate:d,rel:u,target:v},reference:w}:h!==void 0?{kind:"button",label:b,onClick:h,reference:w}:void 0,I=S?so(r,S):{content:r};function M(k){if(k.defaultPrevented)return;const j=k.target;if(!(j instanceof Element)||no(j,k.currentTarget))return;const y=g.current;if(!y)return;const E=y.ownerDocument.defaultView;if(!E){y.click();return}y.dispatchEvent(new E.MouseEvent("click",{altKey:k.altKey,bubbles:!0,button:k.button,buttons:k.buttons,cancelable:!0,clientX:k.clientX,clientY:k.clientY,ctrlKey:k.ctrlKey,metaKey:k.metaKey,shiftKey:k.shiftKey}))}return a.jsx("tr",{...m,ref:e,className:["nk-table__row",s].filter(Boolean).join(" "),"data-interactive":C||void 0,onClick:C?M:void 0,children:I.content})}),Rt=i.forwardRef(function(n,e){const{align:r="left",children:s,className:o,scope:l="col",sticky:c=!1,...f}=n;return a.jsx("th",{...f,ref:e,className:["nk-table__header-cell",o].filter(Boolean).join(" "),"data-align":r,"data-sticky":c||void 0,scope:l,children:s})}),uo=i.forwardRef(function(n,e){const{children:r,className:s,...o}=n;return a.jsx(Rt,{...o,ref:e,align:"right",className:["nk-table__action-header-cell",s].filter(Boolean).join(" "),children:r??a.jsx("span",{className:"nk-table__visually-hidden",children:"Row actions"})})}),It=i.forwardRef(function(n,e){const{align:r="left",children:s,className:o,format:l,title:c,truncate:f,value:h,...d}=n,{rowTrigger:u,...v}=d,m=ro(h,s,l),g=f===void 0?void 0:{maxWidth:f},C=c??(f===void 0?void 0:oo(m));return a.jsxs("td",{...v,ref:e,className:["nk-table__cell",o].filter(Boolean).join(" "),"data-align":r,title:C,children:[(u==null?void 0:u.kind)==="link"&&u.linkProperties?a.jsx("a",{ref:u.reference,"aria-label":u.label,className:"nk-table__row-trigger",download:u.linkProperties.download,href:u.linkProperties.href,hrefLang:u.linkProperties.hrefLang,onClick:u.linkProperties.onNavigate,rel:u.linkProperties.rel,target:u.linkProperties.target}):null,(u==null?void 0:u.kind)==="button"?a.jsx("button",{ref:u.reference,"aria-label":u.label,className:"nk-table__row-trigger",onClick:u.onClick,type:"button"}):null,f!==void 0?a.jsx("span",{className:"nk-table__truncated-content",style:g,children:m}):m]})}),fo=i.forwardRef(function(n,e){const{"aria-label":r,icon:s,label:o,...l}=n;return a.jsx(Ct,{content:o,children:a.jsx(Re,{...l,ref:e,"aria-label":r??o,className:"nk-table__action",icon:s,shape:"rectangle",type:"button",variant:"ghost"})})}),ho=i.forwardRef(function(n,e){const{children:r,className:s,onClick:o,...l}=n;function c(f){f.stopPropagation(),o==null||o(f)}return a.jsx("td",{...l,ref:e,className:["nk-table__cell","nk-table__action-cell",s].filter(Boolean).join(" "),"data-align":"right",onClick:c,children:a.jsx("span",{className:"nk-table__action-list",children:r})})}),po=i.forwardRef(function(n,e){const{"aria-label":r,children:s,className:o,containerClassName:l,scrollContainerLabel:c,...f}=n,h=i.useRef(null),d=i.useRef(null),[u,v]=i.useState(!1),[m,g]=i.useState(!1),C=c??(r?`${r} scroll area`:"Scrollable table"),b=i.useCallback(S=>{d.current=S,Pe(e,S)},[e]);i.useEffect(()=>{const S=h.current,I=d.current;if(!S||!I)return;const M=S,k=I;function j(){const O=M.scrollWidth>M.clientWidth;v(O),O||g(!1)}j();const y=M.ownerDocument.defaultView;y==null||y.addEventListener("resize",j);const E=y==null?void 0:y.ResizeObserver,L=E?new E(j):void 0;return L==null||L.observe(M),L==null||L.observe(k),()=>{y==null||y.removeEventListener("resize",j),L==null||L.disconnect()}},[]);function w(S){g(u&&S.currentTarget.scrollLeft>1)}return a.jsx("div",{ref:h,"aria-label":u?C:void 0,className:["nk-table__container",l].filter(Boolean).join(" "),"data-scrolled":m||void 0,onScroll:w,role:u?"region":void 0,tabIndex:u?0:void 0,children:a.jsx("table",{...f,ref:b,"aria-label":r,className:["nk-table",o].filter(Boolean).join(" "),children:s})})}),vo=Object.assign(po,{Action:fo,ActionCell:ho,ActionHeaderCell:uo,Body:ao,Cell:It,Foot:lo,HeaderCell:Rt,Head:io,Row:co});function it(t){return Number.isFinite(t)?Math.max(1,Math.floor(t)):1}const mo=i.forwardRef(function(n,e){const{"aria-invalid":r,className:s,disabled:o=!1,invalid:l=!1,minRows:c,readOnly:f=!1,resize:h="vertical",rows:d,style:u,...v}=n,m=it(d??c??3),C=`calc(${it(c??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":C};return a.jsx("textarea",{...v,ref:e,"aria-invalid":fe(l,r),className:["nk-text-area",s].filter(Boolean).join(" "),"data-invalid":l||ce(r)||void 0,"data-resize":h,disabled:o,readOnly:f,rows:m,style:b})});exports.Alert=Vt;exports.Avatar=Dt;exports.Badge=Ot;exports.Button=Re;exports.Card=Ln;exports.Checkbox=ct;exports.CheckboxGroup=pt;exports.Content=$n;exports.Divider=Kn;exports.Field=Un;exports.Icon=le;exports.Input=Qn;exports.Modal=pr;exports.PinInput=Vr;exports.Popover=Pr;exports.Radio=Dr;exports.RadioGroup=xt;exports.Select=Gr;exports.Skeleton=$r;exports.Spinner=qe;exports.Switch=Kr;exports.Table=vo;exports.Text=ie;exports.TextArea=mo;exports.Tooltip=Ct;exports.TooltipProvider=Yr;exports.breakpoint=pe;exports.cell=Mt;exports.px=Tt;exports.space=Lt;exports.tokens=Nt;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("./Table-B5izJmMG.cjs"),l=require("react/jsx-runtime"),r=require("react"),X=require("./Card-Ba5AcR4o.cjs"),nn=36,qe=[2,4,8,12,16,24,32,48],Me={sm:720,md:960,lg:1440,xl:1920},tn={color:{accent:{default:"var(--nk-accent)",soft:"var(--nk-accent-soft)",subtle:"var(--nk-accent-subtle)"},background:"var(--nk-color-background)",surface:"var(--nk-color-surface)",text:{default:"var(--nk-color-text)",muted:"var(--nk-color-text-muted)"},border:"var(--nk-color-border)",emphasis:{fill:"var(--nk-color-emphasis-fill)",fillForeground:"var(--nk-color-emphasis-fill-foreground)"},info:{foreground:"var(--nk-color-info-foreground)",fill:"var(--nk-color-info-fill)",fillForeground:"var(--nk-color-info-fill-foreground)"},success:{foreground:"var(--nk-color-success-foreground)",fill:"var(--nk-color-success-fill)",fillForeground:"var(--nk-color-success-fill-foreground)"},warning:{foreground:"var(--nk-color-warning-foreground)",fill:"var(--nk-color-warning-fill)",fillForeground:"var(--nk-color-warning-fill-foreground)"},danger:{foreground:"var(--nk-color-danger-foreground)",fill:"var(--nk-color-danger-fill)",fillForeground:"var(--nk-color-danger-fill-foreground)"}},radius:{small:"var(--nk-radius-small)",medium:"var(--nk-radius-medium)",large:"var(--nk-radius-large)"},shadow:{subtle:"var(--nk-shadow-subtle)",medium:"var(--nk-shadow-medium)",strong:"var(--nk-shadow-strong)"}};({...Object.fromEntries(qe.map(e=>[`--nk-space-${e}`,`${e}px`]))});function an(e){if(typeof e!="number"||!Number.isFinite(e))throw new RangeError("Cell amount must be a finite number.");const n=e*nn;if(!Number.isFinite(n))throw new RangeError("Calculated cell value must be finite.");return n}function rn(e){if(!qe.some(n=>n===e))throw new RangeError(`Unsupported spacing size: ${String(e)}.`);return e}function de(e){if(!Object.prototype.hasOwnProperty.call(Me,e))throw new RangeError(`Unsupported breakpoint: ${String(e)}.`);return Me[e]}function on(e){if(typeof e!="number"||!Number.isFinite(e))throw new RangeError("Pixel value must be a finite number.");return`${e}px`}function sn(e){return(Array.from((e==null?void 0:e.trim())??"")[0]??"?").trim().toUpperCase()||"?"}function ln(e){if(e==="?")return"neutral";const n=Array.from(e)[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 t=n.codePointAt(0)??0;return String(t%6+1)}const cn=r.forwardRef(function(n,t){const{alt:a,className:o,image:c,size:s=32,style:u,...h}=n,[b,d]=r.useState(),i=!!c&&c!==b,f=(a==null?void 0:a.trim())??"",k=sn(f),m=typeof s=="number"?`${s}px`:s,x=f?{"aria-label":f,role:"img"}:{"aria-hidden":!0,role:void 0};function v(){d(c)}return l.jsx("div",{...h,...i?void 0:x,ref:t,className:["nk-avatar",o].filter(Boolean).join(" "),"data-palette":ln(k),"data-state":i?"image":"fallback",style:{...u,"--nk-avatar-size":m},children:i?l.jsx("img",{alt:f,className:"nk-avatar__image",onError:v,src:c}):l.jsx("span",{"aria-hidden":"true",className:"nk-avatar__initial",children:k})})}),un=r.forwardRef(function(n,t){const{children:a,className:o,tone:c="neutral",variant:s="outline",...u}=n;return l.jsx("span",{...u,ref:t,className:["nk-badge",o].filter(Boolean).join(" "),"data-tone":c,"data-variant":s,children:a})});function ie(e){return e!==void 0&&e!==!1&&e!=="false"}function le(e,n){return e?!0:n}const ze=r.createContext(void 0);function dn(){return r.useContext(ze)}const We=r.forwardRef(function(n,t){var C;const{"aria-invalid":a,checked:o,children:c,className:s,defaultChecked:u,disabled:h=!1,invalid:b=!1,name:d,onChange:i,required:f=!1,style:k,value:m="on",...x}=n,v=dn(),w=String(m),P=(v==null?void 0:v.value)!==void 0,E=h||!!(v!=null&&v.disabled),D=!!(v!=null&&v.required&&!v.hasSelection&&v.validationValue===w),I=b||ie(a);function j(_){i==null||i(_),_.defaultPrevented||v==null||v.handleChange(_)}return l.jsxs("label",{className:["nk-checkbox",s].filter(Boolean).join(" "),"data-disabled":E||void 0,"data-invalid":I||void 0,style:k,children:[l.jsx("input",{...x,ref:t,"aria-invalid":le(b,a),checked:v?P?(C=v.value)==null?void 0:C.includes(w):void 0:o,className:"nk-checkbox__control",defaultChecked:v&&!P?v.defaultValue.includes(w):u,disabled:E,name:(v==null?void 0:v.name)??d,onChange:j,required:f||D,type:"checkbox",value:m}),l.jsx("span",{"aria-hidden":"true",className:"nk-checkbox__visual",children:l.jsx(L.Icon,{className:"nk-checkbox__icon",size:12,type:"checkmark"})}),c!==void 0?l.jsxs(X.Text,{as:"span",className:"nk-checkbox__label",children:[c,f?l.jsx("span",{"aria-hidden":"true",className:"nk-checkbox__required",children:"*"}):null]}):null]})}),$e=Symbol("nk-field-control-metadata");function He(e){if(typeof e!="function"&&typeof e!="object"||e===null)return;const n=e,t=n[$e];return t||(n.type!==void 0&&n.type!==e?He(n.type):void 0)}function Ge(e,n){Object.assign(e,{[$e]:{requiredCommunication:n}})}const fn=Object.freeze([]);function Ke(e,n){r.Children.forEach(e,t=>{if(t==null||typeof t=="boolean")return;if(!r.isValidElement(t))throw new Error("CheckboxGroup children must be direct Checkbox elements or fragments");if(t.type===r.Fragment){Ke(t.props.children,n);return}if(t.type!==We)throw new Error("CheckboxGroup children must be direct Checkbox elements or fragments");const a=t;n.push({disabled:!!a.props.disabled,required:!!a.props.required,value:String(a.props.value??"on")})})}function pn(e){const n=[];Ke(e,n);const t=new Set;return n.forEach(a=>{if(t.has(a.value))throw new Error("CheckboxGroup Checkbox values must be unique");t.add(a.value)}),n}function hn(e,n,t){n.current=e,typeof t=="function"?t(e):t&&(t.current=e)}const Ue=r.forwardRef(function(n,t){const{"aria-invalid":a,children:o,className:c,defaultValue:s=fn,disabled:u=!1,invalid:h=!1,name:b,onChange:d,orientation:i="vertical",required:f=!1,value:k,...m}=n,x=r.useRef(null),[v,w]=r.useState(s),P=k!==void 0,E=P?k:v,D=h||ie(a),I=pn(o),j=u?[]:I.filter(p=>!p.disabled).map(p=>p.value),C=new Set(j),_=E.some(p=>C.has(p)),V=j[0],q=I.find(p=>!p.disabled&&p.value===V),$=s.some(p=>C.has(p)),F=!!(q!=null&&q.required),S=r.useCallback(p=>hn(p,x,t),[t]);r.useEffect(()=>{var R;if(P)return;const p=(R=x.current)==null?void 0:R.querySelector('input[type="checkbox"]'),N=p instanceof HTMLInputElement?p.form:null;if(!N)return;const A=N.getRootNode();function O(B){var G;if(B.target!==N||B.defaultPrevented)return;const Z=Array.from(((G=x.current)==null?void 0:G.querySelectorAll('input[type="checkbox"]'))??[]).find(Y=>!Y.disabled&&Y.value===V);Z&&(Z.required=!!(F||f&&!$)),w(s)}return A.addEventListener("reset",O),()=>A.removeEventListener("reset",O)},[o,s,$,P,f,F,V]);function K(p){if(!P){const N=p.currentTarget.value,A=p.currentTarget.checked;w(O=>A?[...new Set([...O,N])]:O.filter(R=>R!==N))}d==null||d(p)}const y={defaultValue:s,disabled:u,handleChange:K,hasSelection:_,name:b,required:f,value:k,validationValue:V};return l.jsx(ze.Provider,{value:y,children:l.jsx("div",{...m,ref:S,"aria-disabled":u||void 0,"aria-invalid":le(h,a),className:["nk-checkbox-group",c].filter(Boolean).join(" "),"data-disabled":u||void 0,"data-invalid":D||void 0,"data-orientation":i,role:"group",children:o})})});Ge(Ue,"label");const mn=[{minWidth:de("xl"),marginPercent:32,preferredWidth:1200},{minWidth:de("lg"),marginPercent:20,preferredWidth:1100},{minWidth:de("md"),marginPercent:14,preferredWidth:de("md")},{minWidth:de("sm"),marginPercent:8,preferredWidth:650}],vn=16;function gn(e){for(const n of mn)if(e>=n.minWidth)return n}function bn(e,n){if(!Number.isFinite(e)||!Number.isFinite(n)||e<de("sm")||n<=0)return;const t=gn(e);if(!t)return;const a=e*t.marginPercent/100,o=e-a*2,c=Math.min(t.preferredWidth,e-vn),s=Math.max(o,c);let u=Math.floor(s/n);return u%2===0&&(u-=1),u=Math.max(u,1),Math.min((u-1)*n,e)}const kn=typeof window>"u"?r.useEffect:r.useLayoutEffect;function xn(e,n){if(typeof e=="function"){e(n);return}e&&(e.current=n)}function yn(e){const n=window.getComputedStyle(e),t=Number.parseFloat(n.paddingLeft)+Number.parseFloat(n.paddingRight);return Math.max(e.clientWidth-t,0)}function wn(e){const t=window.getComputedStyle(e).getPropertyValue("--nk-cell").trim().match(/^([+]?(?:\d+\.?\d*|\.\d+))px$/i);if(!t)return;const a=Number.parseFloat(t[1]);return Number.isFinite(a)&&a>0?a:void 0}function In(e,n){const t=r.useRef(null),a=r.useRef(null),o=r.useRef(void 0),[c,s]=r.useState(void 0),u=r.useCallback(d=>{if(!n){if(o.current===void 0)return;o.current=void 0,s(void 0);return}const i=yn(d),f=wn(d),k=f===void 0?void 0:bn(i,f);o.current!==k&&(o.current=k,s(k))},[n]),h=r.useCallback(d=>{var f;if((f=a.current)==null||f.disconnect(),a.current=null,typeof ResizeObserver>"u")return;const i=new ResizeObserver(()=>u(d));i.observe(d),a.current=i},[u]),b=r.useCallback(d=>{var i;(i=a.current)==null||i.disconnect(),a.current=null,t.current=d,xn(e,d),!(!d||typeof window>"u"||!n)&&(u(d),h(d))},[h,n,e,u]);return kn(()=>{t.current&&u(t.current)}),r.useEffect(()=>(t.current&&n&&h(t.current),()=>{var d;(d=a.current)==null||d.disconnect(),a.current=null}),[h,n]),{rootReference:b,innerWidth:c}}const Cn=r.forwardRef(function(n,t){const{accent:a,as:o,children:c,className:s,constrain:u=!0,minHeight:h="auto",mode:b="grid",spacing:d="standard",style:i,theme:f="light",...k}=n,{rootReference:m,innerWidth:x}=In(t,u),v=o??"div",w=a!==void 0?{...i,"--nk-accent":a}:i;return r.createElement(v,{...k,ref:m,className:["nk-content",s].filter(Boolean).join(" "),"data-constrain":u,"data-min-height":h,"data-mode":b,"data-spacing":d,"data-theme":f,style:w},r.createElement("div",{className:"nk-content__inner",style:x===void 0?void 0:{width:`${x}px`}},c))});function _e(e){return typeof e=="string"?e.trim().length>0:e!=null&&e!==!1&&e!==!0}function Ve(...e){const n=e.flatMap(a=>(a==null?void 0:a.split(/\s+/).filter(Boolean))??[]),t=[...new Set(n)];return t.length>0?t.join(" "):void 0}const En=r.forwardRef(function(n,t){const{children:a,className:o,description:c,disabled:s=!1,error:u,label:h,orientation:b="vertical",required:d=!1,...i}=n,f=r.useId(),k=a.props.id??`${f}-control`,m=`${f}-label`,x=`${f}-description`,v=`${f}-error`,w=_e(h),P=_e(c),E=_e(u),D=He(a.type),I=D!==void 0,j=s||!!a.props.disabled,C=d||!!a.props.required,_=C&&(D==null?void 0:D.requiredCommunication)==="label",V=Ve(a.props["aria-describedby"],P?x:void 0,E?v:void 0),q=Ve(w?m:void 0,a.props["aria-labelledby"]),$=C?l.jsx("span",{"aria-hidden":"true",className:"nk-field__required",children:"*"}):null,F=_?l.jsx("span",{className:"nk-field__required-text",children:", select at least one"}):null,S=r.cloneElement(a,{"aria-describedby":V,"aria-invalid":E?!0:a.props["aria-invalid"],"aria-labelledby":q,disabled:j||void 0,id:k,required:C||void 0});return l.jsxs("div",{...i,ref:t,className:["nk-field",o].filter(Boolean).join(" "),"data-disabled":j||void 0,"data-has-label":w||void 0,"data-invalid":E||void 0,"data-orientation":b,"data-required":C||void 0,children:[w&&I?l.jsxs(X.Text,{as:"span",className:"nk-field__label",id:m,size:"caption",weight:"medium",children:[h,$,F]}):null,w&&!I?l.jsxs(X.Text,{as:"label",className:"nk-field__label",htmlFor:k,id:m,size:"caption",weight:"medium",children:[h,$]}):null,l.jsxs("div",{className:"nk-field__body",children:[S,P?l.jsx(X.Text,{as:"p",className:"nk-field__description",id:x,size:"caption",tone:"muted",children:c}):null,E?l.jsx(X.Text,{as:"p","aria-live":"polite",className:"nk-field__error",id:v,size:"caption",tone:"danger",children:u}):null]})]})});function je(e){return Array.isArray(e)?e.length>0:e!=null&&String(e).length>0}function Sn(e,n,t){n.current=e,typeof t=="function"?t(e):t&&(t.current=e)}function Fe(e){return e!=null&&e!==!1&&e!==!0&&e!==""}function Rn(e){var t;const n=(t=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value"))==null?void 0:t.set;n?n.call(e,""):e.value=""}const Nn=r.forwardRef(function(n,t){const{"aria-busy":a,"aria-invalid":o,className:c,clearable:s=!1,defaultValue:u,disabled:h=!1,id:b,invalid:d=!1,leading:i,loading:f=!1,onChange:k,readOnly:m=!1,style:x,trailing:v,type:w="text",value:P,...E}=n,D=r.useId(),I=r.useRef(null),[j,C]=r.useState(je(u)),[_,V]=r.useState(!1);r.useEffect(()=>{w!=="password"&&V(!1)},[w]);const q=r.useCallback(z=>Sn(z,I,t),[t]),$=b??`${D}-control`,F=h||f,S=d||ie(o),K=P!==void 0?je(P):j,y=w==="password"&&_?"text":w,p=le(d,o),N=s&&K&&!m&&!F,A=w==="password"&&!f,O=N||A,R=Fe(i),B=Fe(v)||O;function Z(z){P===void 0&&C(je(z.currentTarget.value)),k==null||k(z)}function G(){const z=I.current;z&&(Rn(z),z.dispatchEvent(new Event("input",{bubbles:!0})),z.focus())}function Y(){V(z=>!z)}return l.jsxs("div",{className:["nk-input",c].filter(Boolean).join(" "),"data-clearable":s||void 0,"data-disabled":F||void 0,"data-invalid":S||void 0,"data-leading":R||void 0,"data-loading":f||void 0,"data-read-only":m||void 0,"data-has-trailing-action":O||void 0,"data-trailing":B||void 0,style:x,children:[R?l.jsx("span",{className:"nk-input__leading",children:i}):null,l.jsx("input",{...E,ref:q,"aria-busy":f?!0:a,"aria-invalid":p,className:"nk-input__control",defaultValue:u,disabled:F,id:$,onChange:Z,readOnly:m,type:y,value:P}),B?l.jsxs("span",{className:"nk-input__trailing",children:[v,N?l.jsx(L.Button,{"aria-controls":$,"aria-label":"Clear input",className:"nk-input__action",icon:"cross",onClick:G,shape:"rectangle",type:"button",variant:"ghost"}):null,A?l.jsx(L.Button,{"aria-controls":$,"aria-label":_?"Hide password":"Show password","aria-pressed":_,className:"nk-input__action",disabled:F,icon:_?"eye-off":"eye",onClick:Y,shape:"rectangle",type:"button",variant:"ghost"}):null]}):null,f?l.jsx(L.Spinner,{"aria-hidden":"true","aria-label":void 0,className:"nk-input__spinner",role:void 0,size:14}):null]})}),_n=["a[href]","area[href]","button","input:not([type=hidden])","select","textarea","iframe","[contenteditable]:not([contenteditable='false'])","[tabindex]"].join(",");function jn(e,n){let t=e;for(;t;){if(t.hidden||t.inert||t.getAttribute("aria-hidden")==="true")return!0;const a=t.ownerDocument.defaultView,o=a==null?void 0:a.getComputedStyle(t);if((o==null?void 0:o.display)==="none"||(o==null?void 0:o.visibility)==="hidden")return!0;if(t===n)break;t=t.parentElement}return!1}function Pn(e,n){var c;const t=(c=e.ownerDocument.defaultView)==null?void 0:c.HTMLInputElement;if(!t||!(e instanceof t)||e.type!=="radio"||!e.name)return!0;const a=n.filter(s=>s instanceof t&&s.type==="radio"&&s.name===e.name&&s.form===e.form),o=a.find(s=>s.checked);return o?o===e:a[0]===e}function Ln(e){const n=Array.from(e.querySelectorAll(_n)).filter(t=>!t.matches(":disabled")&&t.tabIndex>=0&&!jn(t,e));return n.filter(t=>Pn(t,n))}function Ae(e,n){const t=[e,...n];return[...new Set(t.flatMap(o=>Ln(o)))].sort((o,c)=>{var h;if(o===c)return 0;const s=o.compareDocumentPosition(c),u=((h=o.ownerDocument.defaultView)==null?void 0:h.Node.DOCUMENT_POSITION_FOLLOWING)??4;return s&u?-1:1})}function Pe(e,n,t){return t?e.contains(t)||[...n].some(a=>a.contains(t)):!1}function Ze(e){const{active:n,autoFocus:t=!0,container:a,initialFocusReference:o,layerId:c,restoreFocus:s=!0}=e,u=(a==null?void 0:a.ownerDocument)??null,h=r.useRef(new Set),b=r.useCallback(i=>(h.current.add(i),()=>h.current.delete(i)),[]),d=r.useMemo(()=>({registerBranch:b}),[b]);return L.useOverlayFocusLayer(n&&!!a,u,c),r.useEffect(()=>{var E,D;if(!n||!a)return;const i=a.ownerDocument,f=(E=i.defaultView)==null?void 0:E.HTMLElement,k=(D=i.defaultView)==null?void 0:D.Node,m=f&&i.activeElement instanceof f?i.activeElement:null;let x=!0;function v(){const I=o==null?void 0:o.current;(I&&Pe(a,h.current,I)?I:Ae(a,h.current)[0]??a).focus({preventScroll:!0})}function w(I){if(I.key!=="Tab"||!L.isTopmostFocusLayer(i,c))return;const j=Ae(a,h.current);if(j.length===0){I.preventDefault(),a==null||a.focus({preventScroll:!0});return}const C=j[0],_=j[j.length-1],V=i.activeElement,q=Pe(a,h.current,V),F=!j.some(S=>S===V)&&(V===a||V===(o==null?void 0:o.current));if(!q||F){I.preventDefault(),(I.shiftKey?_:C).focus();return}I.shiftKey&&V===C?(I.preventDefault(),_.focus()):!I.shiftKey&&V===_&&(I.preventDefault(),C.focus())}function P(I){L.isTopmostFocusLayer(i,c)&&k&&I.target instanceof k&&!Pe(a,h.current,I.target)&&v()}return i.addEventListener("keydown",w,!0),i.addEventListener("focusin",P,!0),t&&Promise.resolve().then(()=>{x&&v()}),()=>{x=!1,i.removeEventListener("keydown",w,!0),i.removeEventListener("focusin",P,!0),s&&(m!=null&&m.isConnected)&&L.restoreElementFocus(m)}},[n,t,a,o,c,s]),d}const xe=new WeakMap;function On(e,n){r.useEffect(()=>{if(!e||!n)return;const t=xe.get(n);if(t)t.count+=1;else{const a=n.body,o=n.defaultView,c=o&&Number.parseFloat(o.getComputedStyle(a).paddingRight)||0,s=n.documentElement.clientWidth,u=o&&s>0?Math.max(0,o.innerWidth-s):0,h={count:1,overflow:a.style.overflow,paddingRight:a.style.paddingRight};xe.set(n,h),a.style.overflow="hidden",u>0&&(a.style.paddingRight=`${c+u}px`)}return()=>{const a=xe.get(n);a&&(a.count-=1,!(a.count>0)&&(n.body.style.overflow=a.overflow,n.body.style.paddingRight=a.paddingRight,xe.delete(n)))}},[e,n])}function Tn(e,n,t){n.current=e,typeof t=="function"?t(e):t&&(t.current=e)}function Dn(e){const{"aria-label":n,"aria-labelledby":t,children:a,className:o,closeButtonLabel:c="Close modal",exitable:s=!0,forwardedReference:u,initialFocusReference:h,lockScroll:b=!0,onClose:d,open:i,ownerDocument:f,presenceState:k,restoreFocus:m=!0,role:x="dialog",style:v,title:w,trapFocus:P=!0,...E}=e,D=r.useRef(null),I=r.useRef(null),j=r.useContext(L.FocusScopeContext),C=`${r.useId()}-title`,[_,V]=r.useState(null),q=L.useOverlayLayer(!0,f),$=r.useMemo(()=>[D],[]),F=!!(w!=null&&w.trim()),S=h??(F?I:void 0),K=t??(n===void 0&&F?C:void 0),y=r.useCallback(R=>{Tn(R,D,u),V(R)},[u]);r.useLayoutEffect(()=>{_&&(_.inert=!i)},[_,i]);const p=r.useCallback(()=>{d==null||d("escape")},[d]),N=r.useCallback(()=>{d==null||d("outside")},[d]);L.useDismissableLayer({active:i,boundaries:$,dismissOnEscape:s,dismissOnPointerDownOutside:s,layerId:q.id,onEscapeDismiss:p,onPointerDownOutsideDismiss:N,ownerDocument:f});const A=Ze({active:i&&P,container:_,initialFocusReference:S,layerId:q.id,restoreFocus:m});On(b,f);const O=s?l.jsx(L.Button,{"aria-label":c,className:"nk-modal__close",icon:"cross",onClick:()=>d==null?void 0:d("close-button"),shape:"rectangle",type:"button",variant:"ghost"}):null;return l.jsx(L.FocusScopeContext.Provider,{value:i&&P?A:j,children:l.jsx("div",{className:"nk-modal__overlay","data-state":k,role:"presentation",style:{zIndex:q.zIndex},children:l.jsxs(X.Surface,{...E,ref:y,"aria-hidden":i?void 0:!0,"aria-label":i?n:void 0,"aria-labelledby":i?K:void 0,"aria-modal":i?"true":void 0,className:["nk-modal",o].filter(Boolean).join(" "),"data-state":k,role:i?x:void 0,style:v,tabIndex:-1,children:[F?l.jsxs("div",{className:"nk-modal__header",children:[l.jsx(X.Text,{as:"h2",className:"nk-modal__title",id:C,ref:I,size:"subtitle",tabIndex:-1,weight:"semibold",children:w}),O]}):O,a]})})})}const Mn=r.forwardRef(function(n,t){const{open:a}=n,o=r.useRef(n);a&&(o.current=n);const c=a?n:o.current,{portalContainer:s}=c,u=L.usePresence(a),h=(s==null?void 0:s.ownerDocument)??(typeof document>"u"?null:document);return u.present?l.jsx(L.Portal,{container:s,children:l.jsx(Dn,{...c,forwardedReference:t,open:a,ownerDocument:h,presenceState:u.state==="closing"?"closing":"open"})}):null});function Vn(e){const{inert:n,panelElement:t}=e;return r.useLayoutEffect(()=>{t&&(t.inert=n)},[n,t]),null}function Fn(e,n,t){n.current=e,X.assignElementReference(t,e)}function An(e,n,t){n.current=e,X.assignElementReference(t,e)}function Bn(e,n){const t=(e==null?void 0:e.split(/\s+/).filter(Boolean))??[];return t.includes(n)||t.push(n),t.join(" ")}function qn(e){const n=e.tagName.toLowerCase();return e.getAttribute("role")==="button"&&n!=="button"?!1:["button","input","select","summary","textarea"].includes(n)?!0:n==="a"&&e.hasAttribute("href")}function zn(e){return e==="grid"||e==="listbox"||e==="menu"||e==="tree"?e:"dialog"}const Wn=r.forwardRef(function(n,t){const{"aria-label":a,"aria-labelledby":o,autoFocus:c=!0,children:s,className:u,closeOnEscape:h=!0,closeOnOutsideInteraction:b=!0,defaultOpen:d=!1,disabled:i=!1,initialFocusReference:f,onEscapeKeyDown:k,onOpenChange:m,onPointerDownOutside:x,open:v,placement:w="bottom",portalContainer:P,restoreFocus:E=!0,role:D="dialog",style:I,tabIndex:j,trapFocus:C=!1,trigger:_,...V}=n;if(_.type===r.Fragment)throw new Error("Popover requires a single non-Fragment trigger");const q=r.useId(),$=r.useContext(L.FocusScopeContext),F=`${q}-popover`,S=_.props,K=X.getElementReference(_),y=S.id??`${q}-trigger`,p=i||S.disabled===!0||S["aria-disabled"]===!0||S["aria-disabled"]==="true",N=v!==void 0,[A,O]=r.useState(d),R=N?v:A,B=L.usePresence(R),Z=r.useRef(null),G=r.useRef(null),Y=r.useRef("programmatic"),z=r.useRef(null),te=r.useRef(R),fe=r.useRef(null),[ye,we]=r.useReducer(T=>T+1,0),[J,ce]=r.useState(null),[re,Ie]=r.useState(null),H=(P==null?void 0:P.ownerDocument)??(J==null?void 0:J.ownerDocument)??(typeof document>"u"?null:document),pe=L.useOverlayLayer(B.present,H),U=r.useMemo(()=>[Z,G],[]),ee=L.useFloatingPosition(B.present,w,J,re),ge=r.useCallback(T=>{An(T,Z,K),ce(T)},[K]),Ce=r.useCallback(T=>{Fn(T,G,t),Ie(T)},[t]),oe=r.useCallback((T,W)=>{R!==T&&(N?(z.current={open:T,reason:W},we()):(Y.current=W,O(T)),m==null||m(T,W))},[N,m,R]),Ee=r.useCallback(()=>{oe(!1,"escape")},[oe]),Se=r.useCallback(()=>{oe(!1,"outside")},[oe]),be=r.useCallback(T=>{var ve;if(x==null||x(T),T.defaultPrevented)return;const W=(ve=H==null?void 0:H.defaultView)==null?void 0:ve.HTMLElement;fe.current=W?T.composedPath().find(he=>he instanceof W&&he.tabIndex>=0)??T.target:T.target},[x,H]);L.useDismissableLayer({active:R,boundaries:U,dismissOnEscape:h,dismissOnPointerDownOutside:b,layerId:pe.id,onEscapeDismiss:Ee,onEscapeKeyDown:k,onPointerDownOutside:be,onPointerDownOutsideDismiss:Se,ownerDocument:H});const g=Ze({active:R&&C,autoFocus:c,container:re,initialFocusReference:f,layerId:pe.id,restoreFocus:E});r.useEffect(()=>{if(!R||C||!c||!re)return;let T=!0;return Promise.resolve().then(()=>{if(!T)return;const W=f==null?void 0:f.current;(W&&re.contains(W)?W:re).focus({preventScroll:!0})}),()=>{T=!1}},[c,f,R,re,C]),r.useEffect(()=>{var De;const T=te.current;te.current=R;const W=z.current,ve=N?T!==R&&(W==null?void 0:W.open)===R?W.reason:"programmatic":Y.current;if(z.current=null,R){Y.current="programmatic",fe.current=null;return}const he=H==null?void 0:H.activeElement,Re=fe.current,Ne=(De=H==null?void 0:H.defaultView)==null?void 0:De.HTMLElement,en=ve==="outside"&&Ne&&Re instanceof Ne&&he instanceof Ne&&(Re===he||Re.contains(he));T&&!C&&E&&!en&&(J==null||J.focus({preventScroll:!0})),fe.current=null},[ye,N,R,H,E,C,J]),r.useEffect(()=>{i&&R&&oe(!1,"programmatic")},[i,R,oe]);function M(T){var W;if(p){T.preventDefault(),T.stopPropagation();return}(W=S.onClick)==null||W.call(S,T),!T.defaultPrevented&&oe(!R,"trigger")}function Q(T){var W;(W=S.onKeyDown)==null||W.call(S,T),!(T.defaultPrevented||p||qn(T.currentTarget)||T.key!=="Enter"&&T.key!==" ")&&(T.preventDefault(),T.currentTarget.click())}if(i)return _;const ne=typeof _.type=="string",ae=ne?_.type:null,se=ae==="a"&&typeof S.href=="string",ue=ne&&!(ae==="button"||ae==="input"||ae==="select"||ae==="summary"||ae==="textarea"||se),Te=se&&p,Je=r.cloneElement(_,{"aria-controls":R?Bn(S["aria-controls"],F):S["aria-controls"],"aria-expanded":R,"aria-haspopup":S["aria-haspopup"]??zn(D),"aria-disabled":p?!0:S["aria-disabled"],className:[S.className,"nk-popover__trigger"].filter(Boolean).join(" "),href:Te?void 0:S.href,id:y,onClick:M,onKeyDown:ne?Q:S.onKeyDown,ref:ge,role:S.role??(Te?"link":ue?"button":void 0),tabIndex:p?-1:S.tabIndex??(ue?0:void 0)});return l.jsxs(l.Fragment,{children:[Je,l.jsx(L.FocusScopeContext.Provider,{value:R&&C?g:$,children:B.present&&H?l.jsx(L.Portal,{container:P,inheritFrom:J,children:l.jsxs(X.Surface,{...V,ref:Ce,"aria-hidden":R?void 0:!0,"aria-label":R?a:void 0,"aria-labelledby":R?o??(a===void 0?y:void 0):void 0,className:["nk-popover",u].filter(Boolean).join(" "),"data-placement":(ee==null?void 0:ee.placement)??w,"data-state":B.state==="closing"?"closing":"open",id:F,role:R?D:void 0,style:ee?{...I,"--nk-popover-arrow-offset":`${ee.arrowOffset}px`,left:ee.left,top:ee.top,zIndex:pe.zIndex}:{...I,visibility:"hidden",zIndex:pe.zIndex},tabIndex:j??-1,children:[l.jsx(Vn,{inert:!R,panelElement:re}),l.jsx("span",{"aria-hidden":"true",className:"nk-popover__arrow"}),l.jsx("div",{className:"nk-popover__content",children:s})]})}):null})]})}),$n=3,Hn=10,Qe=4;function Gn(e){return Number.isFinite(e)?Math.min(Hn,Math.max($n,Math.trunc(e))):Qe}function me(e,n,t){return(n==="numeric"?e.replace(/[^0-9]/g,""):e.replace(/[^0-9a-z]/gi,"").toUpperCase()).slice(0,t)}function Kn(e,n,t){n.current=e,typeof t=="function"?t(e):t&&(t.current=e)}function Un(e,n){var a;const t=(a=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value"))==null?void 0:a.set;t?t.call(e,n):e.value=n}function Le(e,n,t){const a=Math.min(t-1,Math.max(0,n)),o=Math.min(a+1,e.value.length);e.focus(),e.setSelectionRange(a,o)}function Zn(e){const{defaultValue:n,disabled:t,forwardedReference:a,length:o,mode:c,onChange:s,onComplete:u,onFocus:h,onKeyDown:b,onPaste:d,onSelect:i,readOnly:f,value:k}=e,m=Gn(o),x=me(n,c,m),v=r.useRef(null),[w,P]=r.useState(x),[E,D]=r.useState(0),I=k!==void 0,j=me(I?k:w,c,m),C=r.useCallback(y=>Kn(y,v,a),[a]);r.useEffect(()=>{!I&&w!==j&&P(j)},[I,j,w]),r.useEffect(()=>{var A;if(I)return;const y=(A=v.current)==null?void 0:A.form;if(!y)return;const p=y.getRootNode();function N(O){O.target!==y||O.defaultPrevented||(P(x),D(0))}return p.addEventListener("reset",N),()=>p.removeEventListener("reset",N)},[I,x]);function _(y){const p=y.selectionStart??j.length;return Math.min(m-1,Math.max(0,p))}function V(y){const p=y.currentTarget,N=p.selectionStart??p.value.length,A=me(p.value,c,m),O=me(p.value.slice(0,N),c,m).length;p.value=A,I||P(A),s==null||s(y),A.length===m&&A!==j&&(u==null||u(A));const R=Math.min(m-1,O);D(R),p.setSelectionRange(R,Math.min(R+1,A.length))}function q(y){if(d==null||d(y),y.defaultPrevented||t||f)return;const p=me(y.clipboardData.getData("text"),c,m);if(y.preventDefault(),p.length===0)return;const N=y.currentTarget,A=N.selectionStart??j.length,O=N.selectionEnd??A,R=p.length===m?p:me(j.slice(0,A)+p+j.slice(O),c,m),B=p.length===m?m:Math.min(m,A+p.length);Un(N,R),N.setSelectionRange(B,B),N.dispatchEvent(new Event("input",{bubbles:!0}))}function $(y){if(b==null||b(y),y.defaultPrevented||y.key!=="ArrowLeft"&&y.key!=="ArrowRight")return;y.preventDefault();const p=y.key==="ArrowLeft"?-1:1,N=Math.min(m-1,Math.max(0,_(y.currentTarget)+p));D(N),Le(y.currentTarget,N,m)}function F(y){h==null||h(y);const p=Math.min(m-1,j.length);D(p),Le(y.currentTarget,p,m)}function S(y){i==null||i(y),D(_(y.currentTarget))}function K(y,p){if(y.preventDefault(),t)return;const N=v.current;N&&(D(p),Le(N,p,m))}return{activeIndex:E,handleChange:V,handleFocus:F,handleKeyDown:$,handlePaste:q,handleSelect:S,handleSlotPointerDown:K,inputCallbackReference:C,length:m,renderedValue:j}}const Qn=r.forwardRef(function(n,t){const{"aria-invalid":a,autoCapitalize:o,autoComplete:c="one-time-code",className:s,censored:u=!1,defaultValue:h="",disabled:b=!1,invalid:d=!1,length:i=Qe,mode:f="numeric",onChange:k,onComplete:m,onFocus:x,onKeyDown:v,onPaste:w,onSelect:P,readOnly:E=!1,style:D,value:I,wrap:j=!1,...C}=n,{activeIndex:_,handleChange:V,handleFocus:q,handleKeyDown:$,handlePaste:F,handleSelect:S,handleSlotPointerDown:K,inputCallbackReference:y,length:p,renderedValue:N}=Zn({defaultValue:h,disabled:b,forwardedReference:t,length:i,mode:f,onChange:k,onComplete:m,onFocus:x,onKeyDown:v,onPaste:w,onSelect:P,readOnly:E,value:I}),A=d||ie(a),O=!j&&p>=6&&p%2===0,R=p/2,B={...D,"--nk-pin-input-columns":Math.ceil(p/2)};return l.jsxs("span",{className:["nk-pin-input",s].filter(Boolean).join(" "),"data-disabled":b||void 0,"data-invalid":A||void 0,"data-read-only":E||void 0,"data-wrap":j||void 0,style:B,children:[l.jsx("input",{...C,ref:y,"aria-invalid":le(d,a),autoCapitalize:o??(f==="alphanumeric"?"characters":"off"),autoComplete:c,className:"nk-pin-input__control",disabled:b,inputMode:f==="numeric"?"numeric":"text",maxLength:p,minLength:p,onChange:V,onFocus:q,onKeyDown:$,onPaste:F,onSelect:S,pattern:f==="numeric"?`[0-9]{${p}}`:`[0-9A-Za-z]{${p}}`,readOnly:E,spellCheck:!1,type:"text",value:N}),l.jsx("span",{"aria-hidden":"true",className:"nk-pin-input__slots",children:Array.from({length:p},(Z,G)=>l.jsxs("span",{className:"nk-pin-input__slot-group",children:[O&&G===R?l.jsx("span",{className:"nk-pin-input__separator",children:"-"}):null,l.jsx("span",{className:"nk-pin-input__slot","data-active":_===G||void 0,onPointerDown:Y=>K(Y,G),children:u&&N[G]?l.jsx("span",{className:"nk-pin-input__censor"}):N[G]??""})]},G))})]})}),Xe=r.createContext(void 0);function Xn(){const e=r.useContext(Xe);if(!e)throw new Error("Radio must be rendered within RadioGroup");return e}function Yn(e,n,t){n.current=e,typeof t=="function"?t(e):t&&(t.current=e)}const Jn=r.forwardRef(function(n,t){const{children:a,className:o,disabled:c=!1,style:s,value:u,...h}=n,b=Xn(),d=r.useRef(null),i=b.disabled||c,f=b.value!==void 0,k=b.value===u,m=r.useCallback(x=>Yn(x,d,t),[t]);return r.useEffect(()=>{var x;!f&&i&&((x=d.current)!=null&&x.checked)&&(d.current.checked=!1)},[f,i]),l.jsxs("label",{className:["nk-radio",o].filter(Boolean).join(" "),"data-disabled":i||void 0,style:s,children:[l.jsx("input",{...h,ref:m,checked:f?!i&&k:void 0,className:"nk-radio__control",defaultChecked:f?void 0:!i&&b.defaultValue===u,disabled:i,name:b.name,onChange:b.onChange,required:b.required,type:"radio",value:u}),l.jsx("span",{"aria-hidden":"true",className:"nk-radio__visual"}),l.jsx(X.Text,{as:"span",className:"nk-radio__label",children:a})]})}),Ye=r.forwardRef(function(n,t){const{"aria-invalid":a,children:o,className:c,defaultValue:s,disabled:u=!1,invalid:h=!1,name:b,onChange:d,orientation:i="vertical",required:f=!1,value:k,...m}=n,x=h||ie(a),v={defaultValue:s,disabled:u,name:b,onChange:d,required:f,value:k};return l.jsx(Xe.Provider,{value:v,children:l.jsx("div",{...m,ref:t,"aria-disabled":u||void 0,"aria-invalid":le(h,a),"aria-required":f||void 0,className:["nk-radio-group",c].filter(Boolean).join(" "),"data-disabled":u||void 0,"data-invalid":x||void 0,"data-orientation":i,role:"radiogroup",children:o})})});Ge(Ye,"group");function Oe(e,n,t){if(e.length===0)return-1;for(let a=1;a<=e.length;a+=1){const o=(n+t*a+e.length)%e.length;if(!e[o].disabled)return o}return-1}function et(e,n,t){for(let a=1;a<=e.length;a+=1){const o=(t+a+e.length)%e.length,c=e[o];if(!c.disabled&&c.label.toLocaleLowerCase().startsWith(n))return o}return-1}function nt(e){const n=new Set;e.forEach(t=>{if(n.has(t.value))throw new Error("Select option values must be unique");n.add(t.value)})}function tt(e,n,t){n.current=e,typeof t=="function"?t(e):t&&(t.current=e)}function at(e){const{"aria-invalid":n,children:t,className:a,defaultValue:o,disabled:c=!1,forwardedReference:s,invalid:u=!1,placeholder:h,style:b,value:d,...i}=e,f=le(u,n),k=u||ie(n);return l.jsxs("span",{className:["nk-select",a].filter(Boolean).join(" "),"data-disabled":c||void 0,"data-invalid":k||void 0,"data-mode":"native",style:b,children:[l.jsxs("select",{...i,ref:s,"aria-invalid":f,className:"nk-select__control",defaultValue:d===void 0?o??(h!==void 0?"":void 0):void 0,disabled:c,value:d,children:[h!==void 0?l.jsx("option",{disabled:!0,value:"",children:h}):null,t]}),l.jsx(L.Icon,{className:"nk-select__icon",type:"chevron-down"})]})}function rt(e,n,t){const[a,o]=r.useState(null);return r.useEffect(()=>{if(!e||!n){o(null);return}const c=n.ownerDocument.defaultView;if(!c)return;const s=c;function u(){const d=n==null?void 0:n.getBoundingClientRect();if(!d)return;const i=8,f=4,k=s.innerHeight-d.bottom-f-i,m=d.top-f-i,x=k<160&&m>k,v=Math.max(72,x?m:k),w=t==null?void 0:t.getBoundingClientRect(),P=Math.max(d.width,(w==null?void 0:w.width)??d.width),E=Math.min(Math.max(i,d.left),Math.max(i,s.innerWidth-i-P)),D=x?Math.max(i,d.top-f-Math.min((w==null?void 0:w.height)??v,v)):d.bottom+f;o({left:E,maxHeight:v,minWidth:d.width,top:D})}u(),s.addEventListener("resize",u),s.addEventListener("scroll",u,!0);const h=s.ResizeObserver,b=h?new h(u):null;return b==null||b.observe(n),t&&(b==null||b.observe(t)),()=>{s.removeEventListener("resize",u),s.removeEventListener("scroll",u,!0),b==null||b.disconnect()}},[e,t,n]),a}function ot(e){const{active:n,closeOnEscape:t,closeOnOutsideInteraction:a,highlightedIndex:o,id:c,listboxReference:s,onEscapeDismiss:u,onEscapeKeyDown:h,onHighlight:b,onOutsideDismiss:d,onPointerDownOutside:i,onSelect:f,options:k,ownerDocument:m,position:x,selectedValue:v,state:w,triggerReference:P}=e,E=r.useRef(null),D=L.useOverlayLayer(!0,m),I=r.useMemo(()=>[P,E],[P]),j=r.useCallback(C=>{E.current=C,s(C)},[s]);return L.useDismissableLayer({active:n,boundaries:I,dismissOnEscape:t,dismissOnPointerDownOutside:a,layerId:D.id,onEscapeDismiss:u,onEscapeKeyDown:h,onPointerDownOutside:i,onPointerDownOutsideDismiss:d,ownerDocument:m}),l.jsx("div",{"aria-hidden":n?void 0:!0,"aria-labelledby":c,className:"nk-select__listbox","data-state":w,id:`${c}-listbox`,ref:j,role:"listbox",style:x?{left:x.left,maxHeight:x.maxHeight,minWidth:x.minWidth,top:x.top,zIndex:D.zIndex}:{visibility:"hidden",zIndex:D.zIndex},children:k.map((C,_)=>l.jsxs("div",{"aria-disabled":C.disabled||void 0,"aria-selected":C.value===v,className:"nk-select__option","data-highlighted":_===o||void 0,"data-selected":C.value===v||void 0,id:`${c}-option-${_}`,onPointerDown:V=>{V.preventDefault(),C.disabled||f(C)},onPointerMove:()=>{C.disabled||b(_)},role:"option",children:[C.icon?l.jsx(L.Icon,{type:C.icon}):null,l.jsx("span",{className:"nk-select__option-label",children:C.label}),C.value===v?l.jsx(L.Icon,{className:"nk-select__check",type:"checkmark"}):null]},C.value))})}function st(e){var be;const{"aria-invalid":n,className:t,closeOnEscape:a=!0,closeOnOutsideInteraction:o=!0,defaultValue:c="",disabled:s=!1,displayOverride:u,form:h,forwardedReference:b,id:d,invalid:i=!1,name:f,onChange:k,onClick:m,onEscapeKeyDown:x,onKeyDown:v,onOpenChange:w,onPointerDownOutside:P,options:E,placeholder:D,portalContainer:I,required:j=!1,style:C,value:_,width:V,...q}=e;nt(E);const $=r.useId(),F=d??$,S=r.useRef(null),K=r.useRef(null),y=r.useRef(null),p=r.useRef(""),[N,A]=r.useState(null),[O,R]=r.useState(!1),[B,Z]=r.useState(-1),[G,Y]=r.useState(c),z=_!==void 0,te=z?_:G,fe=E.find(g=>g.value===te),ye=i||ie(n),we=le(i,n),J=L.usePresence(O),ce=(I==null?void 0:I.ownerDocument)??((be=S.current)==null?void 0:be.ownerDocument)??(typeof document>"u"?null:document),re=rt(J.present,S.current,N),Ie=V===void 0?C:{...C,width:V},H=u??fe,pe=r.useCallback(g=>{tt(g,S,b)},[b]),U=r.useCallback(g=>{O!==g&&(R(g),w==null||w(g))},[w,O]),ee=r.useCallback((g=1)=>{const M=E.findIndex(ne=>ne.value===te&&!ne.disabled),Q=g===1?-1:E.length;Z(M>=0?M:Oe(E,Q,g)),U(!0)},[E,te,U]),ge=r.useCallback(g=>{var M;g.disabled||(z||Y(g.value),U(!1),(M=S.current)==null||M.focus(),k==null||k(g.value))},[z,k,U]),Ce=r.useCallback(()=>{var g;U(!1),(g=S.current)==null||g.focus()},[U]),oe=r.useCallback(()=>{U(!1)},[U]);function Ee(g){m==null||m(g),!(g.defaultPrevented||s)&&(O?U(!1):ee())}function Se(g){if(v==null||v(g),!(g.defaultPrevented||s)){if(g.key==="ArrowDown"||g.key==="ArrowUp"){g.preventDefault();const M=g.key==="ArrowDown"?1:-1;O?Z(Q=>Oe(E,Q,M)):ee(M);return}if(g.key==="Home"||g.key==="End"){if(g.preventDefault(),!O)ee(g.key==="Home"?1:-1);else{const M=g.key==="Home"?1:-1,Q=M===1?-1:E.length;Z(Oe(E,Q,M))}return}if(g.key==="Enter"||g.key===" "){g.preventDefault();const M=E[B];O&&M?ge(M):O||ee();return}if(g.key==="Tab"){U(!1);return}if(g.key.length===1&&!g.altKey&&!g.ctrlKey&&!g.metaKey){const M=g.currentTarget.ownerDocument.defaultView;if(!M)return;const Q=g.key.toLocaleLowerCase(),ne=p.current+Q,ae=Array.from(ne).every(ke=>ke===Q);p.current=ae?Q:ne,y.current!==null&&M.clearTimeout(y.current),y.current=M.setTimeout(()=>{p.current="",y.current=null},500);const se=et(E,p.current,B);se>=0&&(g.preventDefault(),O||U(!0),Z(se))}}}return r.useEffect(()=>{var g;if(O&&B>=0){const M=ce==null?void 0:ce.getElementById(`${F}-option-${B}`);M&&(N!=null&&N.contains(M))&&((g=M.scrollIntoView)==null||g.call(M,{block:"nearest"}))}},[B,F,N,O]),r.useEffect(()=>{var Q;const g=(Q=S.current)==null?void 0:Q.form;if(!g)return;function M(){const ne=K.current,ae=z?te:c;if(ne){const se=Array.from(ne.options),ke=se.find(ue=>ue.value===ae)??se[0];se.forEach(ue=>{ue.defaultSelected=ue===ke})}z||Y(c),U(!1)}return g.addEventListener("reset",M),()=>g.removeEventListener("reset",M)},[c,h,z,te,U]),r.useEffect(()=>()=>{var M;const g=(M=S.current)==null?void 0:M.ownerDocument.defaultView;g&&y.current!==null&&g.clearTimeout(y.current)},[]),l.jsxs("span",{className:["nk-select",t].filter(Boolean).join(" "),"data-disabled":s||void 0,"data-invalid":ye||void 0,"data-mode":"custom","data-open":O||void 0,style:Ie,children:[l.jsxs("button",{...q,ref:pe,"aria-activedescendant":O&&B>=0?`${F}-option-${B}`:void 0,"aria-controls":`${F}-listbox`,"aria-expanded":O,"aria-haspopup":"listbox","aria-invalid":we,"aria-required":j||void 0,"aria-autocomplete":"none",className:"nk-select__trigger",disabled:s,form:h,id:F,onClick:Ee,onKeyDown:Se,role:"combobox",type:"button",children:[H?l.jsxs("span",{className:"nk-select__value",children:[H.icon?l.jsx(L.Icon,{type:H.icon}):null,l.jsx("span",{className:"nk-select__value-label",children:H.label})]}):l.jsx("span",{className:"nk-select__placeholder",children:D}),l.jsx(L.Icon,{className:"nk-select__icon",type:"chevron-down"})]}),f||j?l.jsxs("select",{ref:K,"aria-hidden":"true",className:"nk-select__form-control",disabled:s,form:h,name:f,onChange:()=>{},onInvalid:g=>{var M;g.preventDefault(),(M=S.current)==null||M.focus()},required:j,tabIndex:-1,value:te,children:[l.jsx("option",{value:""}),E.map(g=>l.jsx("option",{disabled:g.disabled,value:g.value,children:g.label},g.value))]}):null,J.present&&ce?l.jsx(L.Portal,{container:I,inheritFrom:S.current,children:l.jsx(ot,{active:O,closeOnEscape:a,closeOnOutsideInteraction:o,highlightedIndex:B,id:F,listboxReference:A,onEscapeDismiss:Ce,onEscapeKeyDown:x,onHighlight:Z,onOutsideDismiss:oe,onPointerDownOutside:P,onSelect:ge,options:E,ownerDocument:ce,position:re,selectedValue:te,state:J.state==="closing"?"closing":"open",triggerReference:S})}):null]})}const it=r.forwardRef(function(n,t){const{options:a}=n;return a!==void 0?l.jsx(st,{...n,forwardedReference:t}):l.jsx(at,{...n,forwardedReference:t})}),lt=r.forwardRef(function(n,t){const{"aria-hidden":a=!0,className:o,height:c="1em",shape:s="rectangle",style:u,width:h=s==="circle"?"1em":"100%",...b}=n;return l.jsx("div",{...b,ref:t,"aria-hidden":a,className:["nk-skeleton",o].filter(Boolean).join(" "),"data-shape":s,style:{...u,width:h,height:c}})}),ct=r.forwardRef(function(n,t){const{"aria-invalid":a,className:o,disabled:c=!1,style:s,...u}=n;return l.jsxs("span",{className:["nk-switch",o].filter(Boolean).join(" "),"data-disabled":c||void 0,"data-invalid":ie(a)||void 0,style:s,children:[l.jsx("input",{...u,ref:t,"aria-invalid":a,className:"nk-switch__control",disabled:c,role:"switch",type:"checkbox"}),l.jsx("span",{"aria-hidden":"true",className:"nk-switch__track",children:l.jsx("span",{className:"nk-switch__thumb"})})]})});function Be(e){return Number.isFinite(e)?Math.max(1,Math.floor(e)):1}const ut=r.forwardRef(function(n,t){const{"aria-invalid":a,className:o,disabled:c=!1,invalid:s=!1,minRows:u,readOnly:h=!1,resize:b="vertical",rows:d,style:i,...f}=n,k=Be(d??u??3),x=`calc(${Be(u??d??3)*1.25}em + var(--nk-text-area-padding) * 2 + var(--nk-text-area-border-width) * 2)`,v={...i,"--nk-text-area-min-height":x};return l.jsx("textarea",{...f,ref:t,"aria-invalid":le(s,a),className:["nk-text-area",o].filter(Boolean).join(" "),"data-invalid":s||ie(a)||void 0,"data-resize":b,disabled:c,readOnly:h,rows:k,style:v})});exports.Alert=L.Alert;exports.Button=L.Button;exports.Divider=L.Divider;exports.Icon=L.Icon;exports.Spinner=L.Spinner;exports.Table=L.Table;exports.Tooltip=L.Tooltip;exports.TooltipProvider=L.TooltipProvider;exports.Card=X.Card;exports.Text=X.Text;exports.Avatar=cn;exports.Badge=un;exports.Checkbox=We;exports.CheckboxGroup=Ue;exports.Content=Cn;exports.Field=En;exports.Input=Nn;exports.Modal=Mn;exports.PinInput=Qn;exports.Popover=Wn;exports.Radio=Jn;exports.RadioGroup=Ye;exports.Select=it;exports.Skeleton=lt;exports.Switch=ct;exports.TextArea=ut;exports.breakpoint=de;exports.cell=an;exports.px=on;exports.space=rn;exports.tokens=tn;