@react-email/preview-server 1.0.0-canary.1 → 4.1.0-canary.11
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/.next/BUILD_ID +1 -1
- package/.next/app-build-manifest.json +32 -32
- package/.next/build-manifest.json +14 -14
- package/.next/diagnostics/framework.json +1 -1
- package/.next/next-minimal-server.js.nft.json +1 -1
- package/.next/next-server.js.nft.json +1 -1
- package/.next/prerender-manifest.json +3 -3
- package/.next/required-server-files.json +1 -1
- package/.next/server/app/_not-found/page.js +1 -1
- package/.next/server/app/_not-found/page.js.nft.json +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/favicon.ico/route.js +1 -1
- package/.next/server/app/favicon.ico/route.js.nft.json +1 -1
- package/.next/server/app/page.js +1 -1
- package/.next/server/app/page.js.nft.json +1 -1
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app/preview/[...slug]/page.js +159 -159
- package/.next/server/app/preview/[...slug]/page.js.nft.json +1 -1
- package/.next/server/app/preview/[...slug]/page_client-reference-manifest.js +1 -1
- package/.next/server/chunks/200.js +1 -0
- package/.next/server/chunks/3.js +15 -0
- package/.next/server/chunks/593.js +1 -0
- package/.next/server/chunks/784.js +6 -0
- package/.next/server/chunks/{428.js → 879.js} +7 -7
- package/.next/server/chunks/915.js +20 -0
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/next-font-manifest.js +1 -1
- package/.next/server/next-font-manifest.json +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/pages/_app.js +1 -1
- package/.next/server/pages/_app.js.nft.json +1 -1
- package/.next/server/pages/_document.js +1 -1
- package/.next/server/pages/_document.js.nft.json +1 -1
- package/.next/server/pages/_error.js +1 -1
- package/.next/server/pages/_error.js.nft.json +1 -1
- package/.next/server/server-reference-manifest.js +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/static/{ynQ7FAt6ZJig7rNh0yOQ7 → Q4WULorzcLOlAMtk3ZhAj}/_buildManifest.js +1 -1
- package/.next/static/chunks/{3bd82e28-cda2c00a924937c5.js → 04c799b8-f2be86d6e75dbf29.js} +1 -1
- package/.next/static/chunks/188-e278e5f1e9c4067e.js +1 -0
- package/.next/static/chunks/336-0767fdc0ff1ceaa1.js +1 -0
- package/.next/static/chunks/551-d9ce0a77591e6bf7.js +1 -0
- package/.next/static/chunks/651-25b2499f3d267dcc.js +1 -0
- package/.next/static/chunks/713-6c7607cb54b8278e.js +1 -0
- package/.next/static/chunks/834-e77d5196a2631efe.js +1 -0
- package/.next/static/chunks/app/_not-found/page-aee2c5619f94a965.js +1 -0
- package/.next/static/chunks/app/layout-bbcdc0f24b69a313.js +1 -0
- package/.next/static/chunks/app/page-ddc5b5b5b8d2de0e.js +1 -0
- package/.next/static/chunks/app/preview/[...slug]/page-2ecabfb34d4f874a.js +1 -0
- package/.next/static/chunks/{f33a14d2-ec7c5f0b91818561.js → f33a14d2-188715a58266ac15.js} +1 -1
- package/.next/static/chunks/{framework-b887e9fc751a9906.js → framework-f71c687711cb40cc.js} +1 -1
- package/.next/static/chunks/main-697e2f65b52ad05c.js +1 -0
- package/.next/static/chunks/main-app-deb9839bdc2bcbd4.js +1 -0
- package/.next/static/chunks/pages/_app-2e335329c12ac3e7.js +1 -0
- package/.next/static/chunks/pages/_error-73094c2ebe868f44.js +1 -0
- package/.next/static/chunks/{webpack-31c45daa2bd82a7b.js → webpack-c09dcf4c47767be8.js} +1 -1
- package/.next/static/css/{35e8811589f0962b.css → 78c81281aa95270f.css} +1 -1
- package/.next/static/media/8e9860b6e62d6359-s.woff2 +0 -0
- package/.next/static/media/e4af272ccee01ff0-s.p.woff2 +0 -0
- package/.next/trace +27 -27
- package/CHANGELOG.md +18 -0
- package/index.mjs +17 -0
- package/package.json +4 -4
- package/src/app/layout.tsx +2 -2
- package/src/app/preview/[...slug]/preview.tsx +1 -1
- package/src/components/shell.tsx +4 -1
- package/src/utils/contains-email-template.spec.ts +12 -0
- package/src/utils/contains-email-template.ts +26 -9
- package/.next/server/chunks/134.js +0 -6
- package/.next/server/chunks/235.js +0 -15
- package/.next/server/chunks/343.js +0 -20
- package/.next/server/chunks/668.js +0 -1
- package/.next/server/chunks/963.js +0 -1
- package/.next/static/chunks/107-3043079e7cb8bcae.js +0 -1
- package/.next/static/chunks/293-297b1eb2241f9a70.js +0 -1
- package/.next/static/chunks/45-1021fac82f766268.js +0 -1
- package/.next/static/chunks/484-f51c576282cbced3.js +0 -1
- package/.next/static/chunks/589-817d8691661d370e.js +0 -1
- package/.next/static/chunks/902-c34acb56733e0ce1.js +0 -1
- package/.next/static/chunks/app/_not-found/page-4cbc7dce3ad33336.js +0 -1
- package/.next/static/chunks/app/layout-7c24324b640dd3ac.js +0 -1
- package/.next/static/chunks/app/page-6d507d6c9d6305cb.js +0 -1
- package/.next/static/chunks/app/preview/[...slug]/page-0e277e630a9aab41.js +0 -1
- package/.next/static/chunks/main-9a03e7ba8acb1900.js +0 -1
- package/.next/static/chunks/main-app-dbd8e1ec12eabb66.js +0 -1
- package/.next/static/chunks/pages/_app-542a93a5a214e1c0.js +0 -1
- package/.next/static/chunks/pages/_error-d5fe1b1612642f76.js +0 -1
- package/.next/static/media/6d93bde91c0c2823-s.woff2 +0 -0
- package/.next/static/media/a34f9d1faa5f3315-s.p.woff2 +0 -0
- package/_index.js +0 -4
- /package/.next/static/{ynQ7FAt6ZJig7rNh0yOQ7 → Q4WULorzcLOlAMtk3ZhAj}/_ssgManifest.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[188],{375:(e,t,r)=>{r.d(t,{A:()=>l});let n=["B","kB","MB","GB","TB","PB","EB","ZB","YB"],a=["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],o=["b","kbit","Mbit","Gbit","Tbit","Pbit","Ebit","Zbit","Ybit"],i=["b","kibit","Mibit","Gibit","Tibit","Pibit","Eibit","Zibit","Yibit"],s=(e,t,r)=>{let n=e;return"string"==typeof t||Array.isArray(t)?n=e.toLocaleString(t,r):(!0===t||void 0!==r)&&(n=e.toLocaleString(void 0,r)),n};function l(e,t){let r;if(!Number.isFinite(e))throw TypeError(`Expected a finite number, got ${typeof e}: ${e}`);let l=(t={bits:!1,binary:!1,space:!0,...t}).bits?t.binary?i:o:t.binary?a:n,u=t.space?" ":"";if(t.signed&&0===e)return` 0${u}${l[0]}`;let c=e<0,d=c?"-":t.signed?"+":"";if(c&&(e=-e),void 0!==t.minimumFractionDigits&&(r={minimumFractionDigits:t.minimumFractionDigits}),void 0!==t.maximumFractionDigits&&(r={maximumFractionDigits:t.maximumFractionDigits,...r}),e<1)return d+s(e,t.locale,r)+u+l[0];let f=Math.min(Math.floor(t.binary?Math.log(e)/Math.log(1024):Math.log10(e)/3),l.length-1);return e/=(t.binary?1024:1e3)**f,r||(e=e.toPrecision(3)),d+s(Number(e),t.locale,r)+u+l[f]}},619:(e,t,r)=>{r.d(t,{UC:()=>eH,q7:()=>eV,ZL:()=>eW,bL:()=>eY,l9:()=>eU});var n=r(2421),a=r(3181),o=r(1840),i=r(1516),s=r(7251),l=r(3537),u=r(7486),c=r(5765),d=r(5230),f=r(2344),p=r(2937),m=r(6043),v=r(4460),h=r(3240),g=r(9327),b=r(1179),y=r(9579),w=r(3911),x=r(9502),E=r(673),C=r(8593),R=["Enter"," "],M=["ArrowUp","PageDown","End"],k=["ArrowDown","PageUp","Home",...M],j={ltr:[...R,"ArrowRight"],rtl:[...R,"ArrowLeft"]},T={ltr:["ArrowLeft"],rtl:["ArrowRight"]},S="Menu",[N,D,A]=(0,u.N)(S),[P,I]=(0,i.A)(S,[A,v.Bk,b.RG]),L=(0,v.Bk)(),F=(0,b.RG)(),[_,B]=P(S),[O,G]=P(S),K=e=>{let{__scopeMenu:t,open:r=!1,children:a,dir:o,onOpenChange:i,modal:s=!0}=e,l=L(t),[u,d]=n.useState(null),f=n.useRef(!1),p=(0,w.c)(i),m=(0,c.jH)(o);return n.useEffect(()=>{let e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,C.jsx)(v.bL,{...l,children:(0,C.jsx)(_,{scope:t,open:r,onOpenChange:p,content:u,onContentChange:d,children:(0,C.jsx)(O,{scope:t,onClose:n.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:m,modal:s,children:a})})})};K.displayName=S;var z=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,a=L(r);return(0,C.jsx)(v.Mz,{...a,...n,ref:t})});z.displayName="MenuAnchor";var Y="MenuPortal",[U,W]=P(Y,{forceMount:void 0}),H=e=>{let{__scopeMenu:t,forceMount:r,children:n,container:a}=e,o=B(Y,t);return(0,C.jsx)(U,{scope:t,forceMount:r,children:(0,C.jsx)(g.C,{present:r||o.open,children:(0,C.jsx)(h.Z,{asChild:!0,container:a,children:n})})})};H.displayName=Y;var V="MenuContent",[X,q]=P(V),Z=n.forwardRef((e,t)=>{let r=W(V,e.__scopeMenu),{forceMount:n=r.forceMount,...a}=e,o=B(V,e.__scopeMenu),i=G(V,e.__scopeMenu);return(0,C.jsx)(N.Provider,{scope:e.__scopeMenu,children:(0,C.jsx)(g.C,{present:n||o.open,children:(0,C.jsx)(N.Slot,{scope:e.__scopeMenu,children:i.modal?(0,C.jsx)($,{...a,ref:t}):(0,C.jsx)(Q,{...a,ref:t})})})})}),$=n.forwardRef((e,t)=>{let r=B(V,e.__scopeMenu),i=n.useRef(null),s=(0,o.s)(t,i);return n.useEffect(()=>{let e=i.current;if(e)return(0,x.Eq)(e)},[]),(0,C.jsx)(ee,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:(0,a.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),Q=n.forwardRef((e,t)=>{let r=B(V,e.__scopeMenu);return(0,C.jsx)(ee,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),J=(0,y.TL)("MenuContent.ScrollLock"),ee=n.forwardRef((e,t)=>{let{__scopeMenu:r,loop:i=!1,trapFocus:s,onOpenAutoFocus:l,onCloseAutoFocus:u,disableOutsidePointerEvents:c,onEntryFocus:m,onEscapeKeyDown:h,onPointerDownOutside:g,onFocusOutside:y,onInteractOutside:w,onDismiss:x,disableOutsideScroll:R,...j}=e,T=B(V,r),S=G(V,r),N=L(r),A=F(r),P=D(r),[I,_]=n.useState(null),O=n.useRef(null),K=(0,o.s)(t,O,T.onContentChange),z=n.useRef(0),Y=n.useRef(""),U=n.useRef(0),W=n.useRef(null),H=n.useRef("right"),q=n.useRef(0),Z=R?E.A:n.Fragment,$=e=>{var t,r;let n=Y.current+e,a=P().filter(e=>!e.disabled),o=document.activeElement,i=null==(t=a.find(e=>e.ref.current===o))?void 0:t.textValue,s=function(e,t,r){var n;let a=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=r?e.indexOf(r):-1,i=(n=Math.max(o,0),e.map((t,r)=>e[(n+r)%e.length]));1===a.length&&(i=i.filter(e=>e!==r));let s=i.find(e=>e.toLowerCase().startsWith(a.toLowerCase()));return s!==r?s:void 0}(a.map(e=>e.textValue),n,i),l=null==(r=a.find(e=>e.textValue===s))?void 0:r.ref.current;!function e(t){Y.current=t,window.clearTimeout(z.current),""!==t&&(z.current=window.setTimeout(()=>e(""),1e3))}(n),l&&setTimeout(()=>l.focus())};n.useEffect(()=>()=>window.clearTimeout(z.current),[]),(0,f.Oh)();let Q=n.useCallback(e=>{var t,r;return H.current===(null==(t=W.current)?void 0:t.side)&&function(e,t){return!!t&&function(e,t){let{x:r,y:n}=e,a=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){let i=t[e],s=t[o],l=i.x,u=i.y,c=s.x,d=s.y;u>n!=d>n&&r<(c-l)*(n-u)/(d-u)+l&&(a=!a)}return a}({x:e.clientX,y:e.clientY},t)}(e,null==(r=W.current)?void 0:r.area)},[]);return(0,C.jsx)(X,{scope:r,searchRef:Y,onItemEnter:n.useCallback(e=>{Q(e)&&e.preventDefault()},[Q]),onItemLeave:n.useCallback(e=>{var t;Q(e)||(null==(t=O.current)||t.focus(),_(null))},[Q]),onTriggerLeave:n.useCallback(e=>{Q(e)&&e.preventDefault()},[Q]),pointerGraceTimerRef:U,onPointerGraceIntentChange:n.useCallback(e=>{W.current=e},[]),children:(0,C.jsx)(Z,{...R?{as:J,allowPinchZoom:!0}:void 0,children:(0,C.jsx)(p.n,{asChild:!0,trapped:s,onMountAutoFocus:(0,a.m)(l,e=>{var t;e.preventDefault(),null==(t=O.current)||t.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:(0,C.jsx)(d.qW,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:h,onPointerDownOutside:g,onFocusOutside:y,onInteractOutside:w,onDismiss:x,children:(0,C.jsx)(b.bL,{asChild:!0,...A,dir:S.dir,orientation:"vertical",loop:i,currentTabStopId:I,onCurrentTabStopIdChange:_,onEntryFocus:(0,a.m)(m,e=>{S.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,C.jsx)(v.UC,{role:"menu","aria-orientation":"vertical","data-state":ek(T.open),"data-radix-menu-content":"",dir:S.dir,...N,...j,ref:K,style:{outline:"none",...j.style},onKeyDown:(0,a.m)(j.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,r=e.ctrlKey||e.altKey||e.metaKey,n=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!r&&n&&$(e.key));let a=O.current;if(e.target!==a||!k.includes(e.key))return;e.preventDefault();let o=P().filter(e=>!e.disabled).map(e=>e.ref.current);M.includes(e.key)&&o.reverse(),function(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}(o)}),onBlur:(0,a.m)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(z.current),Y.current="")}),onPointerMove:(0,a.m)(e.onPointerMove,eS(e=>{let t=e.target,r=q.current!==e.clientX;e.currentTarget.contains(t)&&r&&(H.current=e.clientX>q.current?"right":"left",q.current=e.clientX)}))})})})})})})});Z.displayName=V;var et=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,C.jsx)(l.sG.div,{role:"group",...n,ref:t})});et.displayName="MenuGroup";var er=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,C.jsx)(l.sG.div,{...n,ref:t})});er.displayName="MenuLabel";var en="MenuItem",ea="menu.itemSelect",eo=n.forwardRef((e,t)=>{let{disabled:r=!1,onSelect:i,...s}=e,u=n.useRef(null),c=G(en,e.__scopeMenu),d=q(en,e.__scopeMenu),f=(0,o.s)(t,u),p=n.useRef(!1);return(0,C.jsx)(ei,{...s,ref:f,disabled:r,onClick:(0,a.m)(e.onClick,()=>{let e=u.current;if(!r&&e){let t=new CustomEvent(ea,{bubbles:!0,cancelable:!0});e.addEventListener(ea,e=>null==i?void 0:i(e),{once:!0}),(0,l.hO)(e,t),t.defaultPrevented?p.current=!1:c.onClose()}}),onPointerDown:t=>{var r;null==(r=e.onPointerDown)||r.call(e,t),p.current=!0},onPointerUp:(0,a.m)(e.onPointerUp,e=>{var t;p.current||null==(t=e.currentTarget)||t.click()}),onKeyDown:(0,a.m)(e.onKeyDown,e=>{let t=""!==d.searchRef.current;r||t&&" "===e.key||R.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});eo.displayName=en;var ei=n.forwardRef((e,t)=>{let{__scopeMenu:r,disabled:i=!1,textValue:s,...u}=e,c=q(en,r),d=F(r),f=n.useRef(null),p=(0,o.s)(t,f),[m,v]=n.useState(!1),[h,g]=n.useState("");return n.useEffect(()=>{let e=f.current;if(e){var t;g((null!=(t=e.textContent)?t:"").trim())}},[u.children]),(0,C.jsx)(N.ItemSlot,{scope:r,disabled:i,textValue:null!=s?s:h,children:(0,C.jsx)(b.q7,{asChild:!0,...d,focusable:!i,children:(0,C.jsx)(l.sG.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...u,ref:p,onPointerMove:(0,a.m)(e.onPointerMove,eS(e=>{i?c.onItemLeave(e):(c.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,a.m)(e.onPointerLeave,eS(e=>c.onItemLeave(e))),onFocus:(0,a.m)(e.onFocus,()=>v(!0)),onBlur:(0,a.m)(e.onBlur,()=>v(!1))})})})}),es=n.forwardRef((e,t)=>{let{checked:r=!1,onCheckedChange:n,...o}=e;return(0,C.jsx)(ev,{scope:e.__scopeMenu,checked:r,children:(0,C.jsx)(eo,{role:"menuitemcheckbox","aria-checked":ej(r)?"mixed":r,...o,ref:t,"data-state":eT(r),onSelect:(0,a.m)(o.onSelect,()=>null==n?void 0:n(!!ej(r)||!r),{checkForDefaultPrevented:!1})})})});es.displayName="MenuCheckboxItem";var el="MenuRadioGroup",[eu,ec]=P(el,{value:void 0,onValueChange:()=>{}}),ed=n.forwardRef((e,t)=>{let{value:r,onValueChange:n,...a}=e,o=(0,w.c)(n);return(0,C.jsx)(eu,{scope:e.__scopeMenu,value:r,onValueChange:o,children:(0,C.jsx)(et,{...a,ref:t})})});ed.displayName=el;var ef="MenuRadioItem",ep=n.forwardRef((e,t)=>{let{value:r,...n}=e,o=ec(ef,e.__scopeMenu),i=r===o.value;return(0,C.jsx)(ev,{scope:e.__scopeMenu,checked:i,children:(0,C.jsx)(eo,{role:"menuitemradio","aria-checked":i,...n,ref:t,"data-state":eT(i),onSelect:(0,a.m)(n.onSelect,()=>{var e;return null==(e=o.onValueChange)?void 0:e.call(o,r)},{checkForDefaultPrevented:!1})})})});ep.displayName=ef;var em="MenuItemIndicator",[ev,eh]=P(em,{checked:!1}),eg=n.forwardRef((e,t)=>{let{__scopeMenu:r,forceMount:n,...a}=e,o=eh(em,r);return(0,C.jsx)(g.C,{present:n||ej(o.checked)||!0===o.checked,children:(0,C.jsx)(l.sG.span,{...a,ref:t,"data-state":eT(o.checked)})})});eg.displayName=em;var eb=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e;return(0,C.jsx)(l.sG.div,{role:"separator","aria-orientation":"horizontal",...n,ref:t})});eb.displayName="MenuSeparator";var ey=n.forwardRef((e,t)=>{let{__scopeMenu:r,...n}=e,a=L(r);return(0,C.jsx)(v.i3,{...a,...n,ref:t})});ey.displayName="MenuArrow";var[ew,ex]=P("MenuSub"),eE="MenuSubTrigger",eC=n.forwardRef((e,t)=>{let r=B(eE,e.__scopeMenu),i=G(eE,e.__scopeMenu),s=ex(eE,e.__scopeMenu),l=q(eE,e.__scopeMenu),u=n.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:d}=l,f={__scopeMenu:e.__scopeMenu},p=n.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return n.useEffect(()=>p,[p]),n.useEffect(()=>{let e=c.current;return()=>{window.clearTimeout(e),d(null)}},[c,d]),(0,C.jsx)(z,{asChild:!0,...f,children:(0,C.jsx)(ei,{id:s.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":s.contentId,"data-state":ek(r.open),...e,ref:(0,o.t)(t,s.onTriggerChange),onClick:t=>{var n;null==(n=e.onClick)||n.call(e,t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:(0,a.m)(e.onPointerMove,eS(t=>{l.onItemEnter(t),!t.defaultPrevented&&(e.disabled||r.open||u.current||(l.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{r.onOpenChange(!0),p()},100)))})),onPointerLeave:(0,a.m)(e.onPointerLeave,eS(e=>{var t,n;p();let a=null==(t=r.content)?void 0:t.getBoundingClientRect();if(a){let t=null==(n=r.content)?void 0:n.dataset.side,o="right"===t,i=a[o?"left":"right"],s=a[o?"right":"left"];l.onPointerGraceIntentChange({area:[{x:e.clientX+(o?-5:5),y:e.clientY},{x:i,y:a.top},{x:s,y:a.top},{x:s,y:a.bottom},{x:i,y:a.bottom}],side:t}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>l.onPointerGraceIntentChange(null),300)}else{if(l.onTriggerLeave(e),e.defaultPrevented)return;l.onPointerGraceIntentChange(null)}})),onKeyDown:(0,a.m)(e.onKeyDown,t=>{let n=""!==l.searchRef.current;if(!e.disabled&&(!n||" "!==t.key)&&j[i.dir].includes(t.key)){var a;r.onOpenChange(!0),null==(a=r.content)||a.focus(),t.preventDefault()}})})})});eC.displayName=eE;var eR="MenuSubContent",eM=n.forwardRef((e,t)=>{let r=W(V,e.__scopeMenu),{forceMount:i=r.forceMount,...s}=e,l=B(V,e.__scopeMenu),u=G(V,e.__scopeMenu),c=ex(eR,e.__scopeMenu),d=n.useRef(null),f=(0,o.s)(t,d);return(0,C.jsx)(N.Provider,{scope:e.__scopeMenu,children:(0,C.jsx)(g.C,{present:i||l.open,children:(0,C.jsx)(N.Slot,{scope:e.__scopeMenu,children:(0,C.jsx)(ee,{id:c.contentId,"aria-labelledby":c.triggerId,...s,ref:f,align:"start",side:"rtl"===u.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;u.isUsingKeyboardRef.current&&(null==(t=d.current)||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,a.m)(e.onFocusOutside,e=>{e.target!==c.trigger&&l.onOpenChange(!1)}),onEscapeKeyDown:(0,a.m)(e.onEscapeKeyDown,e=>{u.onClose(),e.preventDefault()}),onKeyDown:(0,a.m)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),r=T[u.dir].includes(e.key);if(t&&r){var n;l.onOpenChange(!1),null==(n=c.trigger)||n.focus(),e.preventDefault()}})})})})})});function ek(e){return e?"open":"closed"}function ej(e){return"indeterminate"===e}function eT(e){return ej(e)?"indeterminate":e?"checked":"unchecked"}function eS(e){return t=>"mouse"===t.pointerType?e(t):void 0}eM.displayName=eR;var eN="DropdownMenu",[eD,eA]=(0,i.A)(eN,[I]),eP=I(),[eI,eL]=eD(eN),eF=e=>{let{__scopeDropdownMenu:t,children:r,dir:a,open:o,defaultOpen:i,onOpenChange:l,modal:u=!0}=e,c=eP(t),d=n.useRef(null),[f,p]=(0,s.i)({prop:o,defaultProp:null!=i&&i,onChange:l,caller:eN});return(0,C.jsx)(eI,{scope:t,triggerId:(0,m.B)(),triggerRef:d,contentId:(0,m.B)(),open:f,onOpenChange:p,onOpenToggle:n.useCallback(()=>p(e=>!e),[p]),modal:u,children:(0,C.jsx)(K,{...c,open:f,onOpenChange:p,dir:a,modal:u,children:r})})};eF.displayName=eN;var e_="DropdownMenuTrigger",eB=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,disabled:n=!1,...i}=e,s=eL(e_,r),u=eP(r);return(0,C.jsx)(z,{asChild:!0,...u,children:(0,C.jsx)(l.sG.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":n?"":void 0,disabled:n,...i,ref:(0,o.t)(t,s.triggerRef),onPointerDown:(0,a.m)(e.onPointerDown,e=>{!n&&0===e.button&&!1===e.ctrlKey&&(s.onOpenToggle(),s.open||e.preventDefault())}),onKeyDown:(0,a.m)(e.onKeyDown,e=>{!n&&(["Enter"," "].includes(e.key)&&s.onOpenToggle(),"ArrowDown"===e.key&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});eB.displayName=e_;var eO=e=>{let{__scopeDropdownMenu:t,...r}=e,n=eP(t);return(0,C.jsx)(H,{...n,...r})};eO.displayName="DropdownMenuPortal";var eG="DropdownMenuContent",eK=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...o}=e,i=eL(eG,r),s=eP(r),l=n.useRef(!1);return(0,C.jsx)(Z,{id:i.contentId,"aria-labelledby":i.triggerId,...s,...o,ref:t,onCloseAutoFocus:(0,a.m)(e.onCloseAutoFocus,e=>{var t;l.current||null==(t=i.triggerRef.current)||t.focus(),l.current=!1,e.preventDefault()}),onInteractOutside:(0,a.m)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey,n=2===t.button||r;(!i.modal||n)&&(l.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});eK.displayName=eG,n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=eP(r);return(0,C.jsx)(et,{...a,...n,ref:t})}).displayName="DropdownMenuGroup",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=eP(r);return(0,C.jsx)(er,{...a,...n,ref:t})}).displayName="DropdownMenuLabel";var ez=n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=eP(r);return(0,C.jsx)(eo,{...a,...n,ref:t})});ez.displayName="DropdownMenuItem",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=eP(r);return(0,C.jsx)(es,{...a,...n,ref:t})}).displayName="DropdownMenuCheckboxItem",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=eP(r);return(0,C.jsx)(ed,{...a,...n,ref:t})}).displayName="DropdownMenuRadioGroup",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=eP(r);return(0,C.jsx)(ep,{...a,...n,ref:t})}).displayName="DropdownMenuRadioItem",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=eP(r);return(0,C.jsx)(eg,{...a,...n,ref:t})}).displayName="DropdownMenuItemIndicator",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=eP(r);return(0,C.jsx)(eb,{...a,...n,ref:t})}).displayName="DropdownMenuSeparator",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=eP(r);return(0,C.jsx)(ey,{...a,...n,ref:t})}).displayName="DropdownMenuArrow",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=eP(r);return(0,C.jsx)(eC,{...a,...n,ref:t})}).displayName="DropdownMenuSubTrigger",n.forwardRef((e,t)=>{let{__scopeDropdownMenu:r,...n}=e,a=eP(r);return(0,C.jsx)(eM,{...a,...n,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}).displayName="DropdownMenuSubContent";var eY=eF,eU=eB,eW=eO,eH=eK,eV=ez},673:(e,t,r)=>{r.d(t,{A:()=>H});var n,a,o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function i(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)0>t.indexOf(n[a])&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r}Object.create;Object.create;var s=("function"==typeof SuppressedError&&SuppressedError,r(2421)),l="right-scroll-bar-position",u="width-before-scroll-bar";function c(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var d="undefined"!=typeof window?s.useLayoutEffect:s.useEffect,f=new WeakMap;function p(e){return e}var m=function(e){void 0===e&&(e={});var t,r,n,a,i=(t=null,void 0===r&&(r=p),n=[],a=!1,{read:function(){if(a)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:null},useMedium:function(e){var t=r(e,a);return n.push(t),function(){n=n.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(a=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){a=!0;var t=[];if(n.length){var r=n;n=[],r.forEach(e),t=n}var o=function(){var r=t;t=[],r.forEach(e)},i=function(){return Promise.resolve().then(o)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}});return i.options=o({async:!0,ssr:!1},e),i}(),v=function(){},h=s.forwardRef(function(e,t){var r,n,a,l,u=s.useRef(null),p=s.useState({onScrollCapture:v,onWheelCapture:v,onTouchMoveCapture:v}),h=p[0],g=p[1],b=e.forwardProps,y=e.children,w=e.className,x=e.removeScrollBar,E=e.enabled,C=e.shards,R=e.sideCar,M=e.noIsolation,k=e.inert,j=e.allowPinchZoom,T=e.as,S=e.gapMode,N=i(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),D=(r=[u,t],n=function(e){return r.forEach(function(t){return c(t,e)})},(a=(0,s.useState)(function(){return{value:null,callback:n,facade:{get current(){return a.value},set current(value){var e=a.value;e!==value&&(a.value=value,a.callback(value,e))}}}})[0]).callback=n,l=a.facade,d(function(){var e=f.get(l);if(e){var t=new Set(e),n=new Set(r),a=l.current;t.forEach(function(e){n.has(e)||c(e,null)}),n.forEach(function(e){t.has(e)||c(e,a)})}f.set(l,r)},[r]),l),A=o(o({},N),h);return s.createElement(s.Fragment,null,E&&s.createElement(R,{sideCar:m,removeScrollBar:x,shards:C,noIsolation:M,inert:k,setCallbacks:g,allowPinchZoom:!!j,lockRef:u,gapMode:S}),b?s.cloneElement(s.Children.only(y),o(o({},A),{ref:D})):s.createElement(void 0===T?"div":T,o({},A,{className:w,ref:D}),y))});h.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},h.classNames={fullWidth:u,zeroRight:l};var g=function(e){var t=e.sideCar,r=i(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw Error("Sidecar medium not found");return s.createElement(n,o({},r))};g.isSideCarExport=!0;var b=function(){var e=0,t=null;return{add:function(n){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=a||r.nc;return t&&e.setAttribute("nonce",t),e}())){var o,i;(o=t).styleSheet?o.styleSheet.cssText=n:o.appendChild(document.createTextNode(n)),i=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(i)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},y=function(){var e=b();return function(t,r){s.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},w=function(){var e=y();return function(t){return e(t.styles,t.dynamic),null}},x={left:0,top:0,right:0,gap:0},E=function(e){return parseInt(e||"",10)||0},C=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],a=t["padding"===e?"paddingRight":"marginRight"];return[E(r),E(n),E(a)]},R=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return x;var t=C(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},M=w(),k="data-scroll-locked",j=function(e,t,r,n){var a=e.left,o=e.top,i=e.right,s=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(s,"px ").concat(n,";\n }\n body[").concat(k,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(a,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(l," {\n right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(u," {\n margin-right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(l," .").concat(l," {\n right: 0 ").concat(n,";\n }\n \n .").concat(u," .").concat(u," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(k,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},T=function(){var e=parseInt(document.body.getAttribute(k)||"0",10);return isFinite(e)?e:0},S=function(){s.useEffect(function(){return document.body.setAttribute(k,(T()+1).toString()),function(){var e=T()-1;e<=0?document.body.removeAttribute(k):document.body.setAttribute(k,e.toString())}},[])},N=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=void 0===n?"margin":n;S();var o=s.useMemo(function(){return R(a)},[a]);return s.createElement(M,{styles:j(o,!t,a,r?"":"!important")})},D=!1;if("undefined"!=typeof window)try{var A=Object.defineProperty({},"passive",{get:function(){return D=!0,!0}});window.addEventListener("test",A,A),window.removeEventListener("test",A,A)}catch(e){D=!1}var P=!!D&&{passive:!1},I=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return"hidden"!==r[t]&&(r.overflowY!==r.overflowX||"TEXTAREA"===e.tagName||"visible"!==r[t])},L=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),F(e,n)){var a=_(e,n);if(a[1]>a[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},F=function(e,t){return"v"===e?I(t,"overflowY"):I(t,"overflowX")},_=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},B=function(e,t,r,n,a){var o,i=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),s=i*n,l=r.target,u=t.contains(l),c=!1,d=s>0,f=0,p=0;do{var m=_(e,l),v=m[0],h=m[1]-m[2]-i*v;(v||h)&&F(e,l)&&(f+=h,p+=v),l=l instanceof ShadowRoot?l.host:l.parentNode}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return d&&(a&&1>Math.abs(f)||!a&&s>f)?c=!0:!d&&(a&&1>Math.abs(p)||!a&&-s>p)&&(c=!0),c},O=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},G=function(e){return[e.deltaX,e.deltaY]},K=function(e){return e&&"current"in e?e.current:e},z=0,Y=[];let U=(n=function(e){var t=s.useRef([]),r=s.useRef([0,0]),n=s.useRef(),a=s.useState(z++)[0],o=s.useState(w)[0],i=s.useRef(e);s.useEffect(function(){i.current=e},[e]),s.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=(function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a<o;a++)!n&&a in t||(n||(n=Array.prototype.slice.call(t,0,a)),n[a]=t[a]);return e.concat(n||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(K),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var l=s.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var a,o=O(e),s=r.current,l="deltaX"in e?e.deltaX:s[0]-o[0],u="deltaY"in e?e.deltaY:s[1]-o[1],c=e.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=L(d,c);if(!f)return!0;if(f?a=d:(a="v"===d?"h":"v",f=L(d,c)),!f)return!1;if(!n.current&&"changedTouches"in e&&(l||u)&&(n.current=a),!a)return!0;var p=n.current||a;return B(p,t,e,"h"===p?l:u,!0)},[]),u=s.useCallback(function(e){if(Y.length&&Y[Y.length-1]===o){var r="deltaY"in e?G(e):O(e),n=t.current.filter(function(t){var n;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(n=t.delta,n[0]===r[0]&&n[1]===r[1])})[0];if(n&&n.should){e.cancelable&&e.preventDefault();return}if(!n){var a=(i.current.shards||[]).map(K).filter(Boolean).filter(function(t){return t.contains(e.target)});(a.length>0?l(e,a[0]):!i.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=s.useCallback(function(e,r,n,a){var o={name:e,delta:r,target:n,should:a,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(n)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),d=s.useCallback(function(e){r.current=O(e),n.current=void 0},[]),f=s.useCallback(function(t){c(t.type,G(t),t.target,l(t,e.lockRef.current))},[]),p=s.useCallback(function(t){c(t.type,O(t),t.target,l(t,e.lockRef.current))},[]);s.useEffect(function(){return Y.push(o),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",u,P),document.addEventListener("touchmove",u,P),document.addEventListener("touchstart",d,P),function(){Y=Y.filter(function(e){return e!==o}),document.removeEventListener("wheel",u,P),document.removeEventListener("touchmove",u,P),document.removeEventListener("touchstart",d,P)}},[]);var m=e.removeScrollBar,v=e.inert;return s.createElement(s.Fragment,null,v?s.createElement(o,{styles:"\n .block-interactivity-".concat(a," {pointer-events: none;}\n .allow-interactivity-").concat(a," {pointer-events: all;}\n")}):null,m?s.createElement(N,{gapMode:e.gapMode}):null)},m.useMedium(n),g);var W=s.forwardRef(function(e,t){return s.createElement(h,o({},e,{ref:t,sideCar:U}))});W.classNames=h.classNames;let H=W},1179:(e,t,r)=>{r.d(t,{RG:()=>x,bL:()=>N,q7:()=>D});var n=r(2421),a=r(3181),o=r(7486),i=r(1840),s=r(1516),l=r(6043),u=r(3537),c=r(3911),d=r(7251),f=r(5765),p=r(8593),m="rovingFocusGroup.onEntryFocus",v={bubbles:!1,cancelable:!0},h="RovingFocusGroup",[g,b,y]=(0,o.N)(h),[w,x]=(0,s.A)(h,[y]),[E,C]=w(h),R=n.forwardRef((e,t)=>(0,p.jsx)(g.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(g.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(M,{...e,ref:t})})}));R.displayName=h;var M=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:o,loop:s=!1,dir:l,currentTabStopId:g,defaultCurrentTabStopId:y,onCurrentTabStopIdChange:w,onEntryFocus:x,preventScrollOnEntryFocus:C=!1,...R}=e,M=n.useRef(null),k=(0,i.s)(t,M),j=(0,f.jH)(l),[T,N]=(0,d.i)({prop:g,defaultProp:null!=y?y:null,onChange:w,caller:h}),[D,A]=n.useState(!1),P=(0,c.c)(x),I=b(r),L=n.useRef(!1),[F,_]=n.useState(0);return n.useEffect(()=>{let e=M.current;if(e)return e.addEventListener(m,P),()=>e.removeEventListener(m,P)},[P]),(0,p.jsx)(E,{scope:r,orientation:o,dir:j,loop:s,currentTabStopId:T,onItemFocus:n.useCallback(e=>N(e),[N]),onItemShiftTab:n.useCallback(()=>A(!0),[]),onFocusableItemAdd:n.useCallback(()=>_(e=>e+1),[]),onFocusableItemRemove:n.useCallback(()=>_(e=>e-1),[]),children:(0,p.jsx)(u.sG.div,{tabIndex:D||0===F?-1:0,"data-orientation":o,...R,ref:k,style:{outline:"none",...e.style},onMouseDown:(0,a.m)(e.onMouseDown,()=>{L.current=!0}),onFocus:(0,a.m)(e.onFocus,e=>{let t=!L.current;if(e.target===e.currentTarget&&t&&!D){let t=new CustomEvent(m,v);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=I().filter(e=>e.focusable);S([e.find(e=>e.active),e.find(e=>e.id===T),...e].filter(Boolean).map(e=>e.ref.current),C)}}L.current=!1}),onBlur:(0,a.m)(e.onBlur,()=>A(!1))})})}),k="RovingFocusGroupItem",j=n.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:o=!0,active:i=!1,tabStopId:s,children:c,...d}=e,f=(0,l.B)(),m=s||f,v=C(k,r),h=v.currentTabStopId===m,y=b(r),{onFocusableItemAdd:w,onFocusableItemRemove:x}=v;return n.useEffect(()=>{if(o)return w(),()=>x()},[o,w,x]),(0,p.jsx)(g.ItemSlot,{scope:r,id:m,focusable:o,active:i,children:(0,p.jsx)(u.sG.span,{tabIndex:h?0:-1,"data-orientation":v.orientation,...d,ref:t,onMouseDown:(0,a.m)(e.onMouseDown,e=>{o?v.onItemFocus(m):e.preventDefault()}),onFocus:(0,a.m)(e.onFocus,()=>v.onItemFocus(m)),onKeyDown:(0,a.m)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void v.onItemShiftTab();if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let a=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(a))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(a)))return T[a]}(e,v.orientation,v.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let r=y().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)r.reverse();else if("prev"===t||"next"===t){"prev"===t&&r.reverse();let n=r.indexOf(e.currentTarget);r=v.loop?function(e,t){return e.map((r,n)=>e[(t+n)%e.length])}(r,n+1):r.slice(n+1)}setTimeout(()=>S(r))}}),children:"function"==typeof c?c({isCurrentTabStop:h}):c})})});j.displayName=k;var T={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function S(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=document.activeElement;for(let n of e)if(n===r||(n.focus({preventScroll:t}),document.activeElement!==r))return}var N=R,D=j},1530:(e,t,r)=>{r.d(t,{l$:()=>C,oR:()=>b});var n=r(2421),a=r(1400);let o=e=>{switch(e){case"success":return l;case"info":return c;case"warning":return u;case"error":return d;default:return null}},i=Array(12).fill(0),s=e=>{let{visible:t,className:r}=e;return n.createElement("div",{className:["sonner-loading-wrapper",r].filter(Boolean).join(" "),"data-visible":t},n.createElement("div",{className:"sonner-spinner"},i.map((e,t)=>n.createElement("div",{className:"sonner-loading-bar",key:"spinner-bar-".concat(t)}))))},l=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},n.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),u=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},n.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),c=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},n.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),d=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},n.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),f=n.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},n.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),n.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),p=()=>{let[e,t]=n.useState(document.hidden);return n.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",e),()=>window.removeEventListener("visibilitychange",e)},[]),e},m=1;class v{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:r,...n}=e,a="number"==typeof(null==e?void 0:e.id)||(null==(t=e.id)?void 0:t.length)>0?e.id:m++,o=this.toasts.find(e=>e.id===a),i=void 0===e.dismissible||e.dismissible;return this.dismissedToasts.has(a)&&this.dismissedToasts.delete(a),o?this.toasts=this.toasts.map(t=>t.id===a?(this.publish({...t,...e,id:a,title:r}),{...t,...e,id:a,dismissible:i,title:r}):t):this.addToast({title:r,...n,dismissible:i,id:a}),a},this.dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{let r,a;if(!t)return;void 0!==t.loading&&(a=this.create({...t,promise:e,type:"loading",message:t.loading,description:"function"!=typeof t.description?t.description:void 0}));let o=Promise.resolve(e instanceof Function?e():e),i=void 0!==a,s=o.then(async e=>{if(r=["resolve",e],n.isValidElement(e))i=!1,this.create({id:a,type:"default",message:e});else if(g(e)&&!e.ok){i=!1;let r="function"==typeof t.error?await t.error("HTTP error! status: ".concat(e.status)):t.error,o="function"==typeof t.description?await t.description("HTTP error! status: ".concat(e.status)):t.description,s="object"!=typeof r||n.isValidElement(r)?{message:r}:r;this.create({id:a,type:"error",description:o,...s})}else if(e instanceof Error){i=!1;let r="function"==typeof t.error?await t.error(e):t.error,o="function"==typeof t.description?await t.description(e):t.description,s="object"!=typeof r||n.isValidElement(r)?{message:r}:r;this.create({id:a,type:"error",description:o,...s})}else if(void 0!==t.success){i=!1;let r="function"==typeof t.success?await t.success(e):t.success,o="function"==typeof t.description?await t.description(e):t.description,s="object"!=typeof r||n.isValidElement(r)?{message:r}:r;this.create({id:a,type:"success",description:o,...s})}}).catch(async e=>{if(r=["reject",e],void 0!==t.error){i=!1;let r="function"==typeof t.error?await t.error(e):t.error,o="function"==typeof t.description?await t.description(e):t.description,s="object"!=typeof r||n.isValidElement(r)?{message:r}:r;this.create({id:a,type:"error",description:o,...s})}}).finally(()=>{i&&(this.dismiss(a),a=void 0),null==t.finally||t.finally.call(t)}),l=()=>new Promise((e,t)=>s.then(()=>"reject"===r[0]?t(r[1]):e(r[1])).catch(t));return"string"!=typeof a&&"number"!=typeof a?{unwrap:l}:Object.assign(a,{unwrap:l})},this.custom=(e,t)=>{let r=(null==t?void 0:t.id)||m++;return this.create({jsx:e(r),id:r,...t}),r},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}let h=new v,g=e=>e&&"object"==typeof e&&"ok"in e&&"boolean"==typeof e.ok&&"status"in e&&"number"==typeof e.status,b=Object.assign((e,t)=>{let r=(null==t?void 0:t.id)||m++;return h.addToast({title:e,...t,id:r}),r},{success:h.success,info:h.info,warning:h.warning,error:h.error,custom:h.custom,message:h.message,promise:h.promise,dismiss:h.dismiss,loading:h.loading},{getHistory:()=>h.toasts,getToasts:()=>h.getActiveToasts()});function y(e){return void 0!==e.label}function w(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(Boolean).join(" ")}!function(e){if(!e||"undefined"==typeof document)return;let t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}[data-sonner-toaster][data-lifted=true]{transform:translateY(-8px)}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");let x=e=>{var t,r,a,i,l,u,c,d,m,v,h;let{invert:g,toast:b,unstyled:x,interacting:E,setHeights:C,visibleToasts:R,heights:M,index:k,toasts:j,expanded:T,removeToast:S,defaultRichColors:N,closeButton:D,style:A,cancelButtonStyle:P,actionButtonStyle:I,className:L="",descriptionClassName:F="",duration:_,position:B,gap:O,expandByDefault:G,classNames:K,icons:z,closeButtonAriaLabel:Y="Close toast"}=e,[U,W]=n.useState(null),[H,V]=n.useState(null),[X,q]=n.useState(!1),[Z,$]=n.useState(!1),[Q,J]=n.useState(!1),[ee,et]=n.useState(!1),[er,en]=n.useState(!1),[ea,eo]=n.useState(0),[ei,es]=n.useState(0),el=n.useRef(b.duration||_||4e3),eu=n.useRef(null),ec=n.useRef(null),ed=0===k,ef=k+1<=R,ep=b.type,em=!1!==b.dismissible,ev=b.className||"",eh=b.descriptionClassName||"",eg=n.useMemo(()=>M.findIndex(e=>e.toastId===b.id)||0,[M,b.id]),eb=n.useMemo(()=>{var e;return null!=(e=b.closeButton)?e:D},[b.closeButton,D]),ey=n.useMemo(()=>b.duration||_||4e3,[b.duration,_]),ew=n.useRef(0),ex=n.useRef(0),eE=n.useRef(0),eC=n.useRef(null),[eR,eM]=B.split("-"),ek=n.useMemo(()=>M.reduce((e,t,r)=>r>=eg?e:e+t.height,0),[M,eg]),ej=p(),eT=b.invert||g,eS="loading"===ep;ex.current=n.useMemo(()=>eg*O+ek,[eg,ek]),n.useEffect(()=>{el.current=ey},[ey]),n.useEffect(()=>{q(!0)},[]),n.useEffect(()=>{let e=ec.current;if(e){let t=e.getBoundingClientRect().height;return es(t),C(e=>[{toastId:b.id,height:t,position:b.position},...e]),()=>C(e=>e.filter(e=>e.toastId!==b.id))}},[C,b.id]),n.useLayoutEffect(()=>{if(!X)return;let e=ec.current,t=e.style.height;e.style.height="auto";let r=e.getBoundingClientRect().height;e.style.height=t,es(r),C(e=>e.find(e=>e.toastId===b.id)?e.map(e=>e.toastId===b.id?{...e,height:r}:e):[{toastId:b.id,height:r,position:b.position},...e])},[X,b.title,b.description,C,b.id]);let eN=n.useCallback(()=>{$(!0),eo(ex.current),C(e=>e.filter(e=>e.toastId!==b.id)),setTimeout(()=>{S(b)},200)},[b,S,C,ex]);n.useEffect(()=>{let e;if((!b.promise||"loading"!==ep)&&b.duration!==1/0&&"loading"!==b.type)return T||E||ej?(()=>{if(eE.current<ew.current){let e=new Date().getTime()-ew.current;el.current=el.current-e}eE.current=new Date().getTime()})():el.current!==1/0&&(ew.current=new Date().getTime(),e=setTimeout(()=>{null==b.onAutoClose||b.onAutoClose.call(b,b),eN()},el.current)),()=>clearTimeout(e)},[T,E,b,ep,ej,eN]),n.useEffect(()=>{b.delete&&eN()},[eN,b.delete]);let eD=b.icon||(null==z?void 0:z[ep])||o(ep);return n.createElement("li",{tabIndex:0,ref:ec,className:w(L,ev,null==K?void 0:K.toast,null==b||null==(t=b.classNames)?void 0:t.toast,null==K?void 0:K.default,null==K?void 0:K[ep],null==b||null==(r=b.classNames)?void 0:r[ep]),"data-sonner-toast":"","data-rich-colors":null!=(v=b.richColors)?v:N,"data-styled":!(b.jsx||b.unstyled||x),"data-mounted":X,"data-promise":!!b.promise,"data-swiped":er,"data-removed":Z,"data-visible":ef,"data-y-position":eR,"data-x-position":eM,"data-index":k,"data-front":ed,"data-swiping":Q,"data-dismissible":em,"data-type":ep,"data-invert":eT,"data-swipe-out":ee,"data-swipe-direction":H,"data-expanded":!!(T||G&&X),style:{"--index":k,"--toasts-before":k,"--z-index":j.length-k,"--offset":"".concat(Z?ea:ex.current,"px"),"--initial-height":G?"auto":"".concat(ei,"px"),...A,...b.style},onDragEnd:()=>{J(!1),W(null),eC.current=null},onPointerDown:e=>{!eS&&em&&(eu.current=new Date,eo(ex.current),e.target.setPointerCapture(e.pointerId),"BUTTON"!==e.target.tagName&&(J(!0),eC.current={x:e.clientX,y:e.clientY}))},onPointerUp:()=>{var e,t,r,n,a;if(ee||!em)return;eC.current=null;let o=Number((null==(e=ec.current)?void 0:e.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),i=Number((null==(t=ec.current)?void 0:t.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),s=new Date().getTime()-(null==(r=eu.current)?void 0:r.getTime()),l="x"===U?o:i,u=Math.abs(l)/s;if(Math.abs(l)>=45||u>.11){eo(ex.current),null==b.onDismiss||b.onDismiss.call(b,b),"x"===U?V(o>0?"right":"left"):V(i>0?"down":"up"),eN(),et(!0);return}null==(n=ec.current)||n.style.setProperty("--swipe-amount-x","0px"),null==(a=ec.current)||a.style.setProperty("--swipe-amount-y","0px"),en(!1),J(!1),W(null)},onPointerMove:t=>{var r,n,a,o;if(!eC.current||!em||(null==(r=window.getSelection())?void 0:r.toString().length)>0)return;let i=t.clientY-eC.current.y,s=t.clientX-eC.current.x,l=null!=(o=e.swipeDirections)?o:function(e){let[t,r]=e.split("-"),n=[];return t&&n.push(t),r&&n.push(r),n}(B);!U&&(Math.abs(s)>1||Math.abs(i)>1)&&W(Math.abs(s)>Math.abs(i)?"x":"y");let u={x:0,y:0},c=e=>1/(1.5+Math.abs(e)/20);if("y"===U){if(l.includes("top")||l.includes("bottom"))if(l.includes("top")&&i<0||l.includes("bottom")&&i>0)u.y=i;else{let e=i*c(i);u.y=Math.abs(e)<Math.abs(i)?e:i}}else if("x"===U&&(l.includes("left")||l.includes("right")))if(l.includes("left")&&s<0||l.includes("right")&&s>0)u.x=s;else{let e=s*c(s);u.x=Math.abs(e)<Math.abs(s)?e:s}(Math.abs(u.x)>0||Math.abs(u.y)>0)&&en(!0),null==(n=ec.current)||n.style.setProperty("--swipe-amount-x","".concat(u.x,"px")),null==(a=ec.current)||a.style.setProperty("--swipe-amount-y","".concat(u.y,"px"))}},eb&&!b.jsx&&"loading"!==ep?n.createElement("button",{"aria-label":Y,"data-disabled":eS,"data-close-button":!0,onClick:eS||!em?()=>{}:()=>{eN(),null==b.onDismiss||b.onDismiss.call(b,b)},className:w(null==K?void 0:K.closeButton,null==b||null==(a=b.classNames)?void 0:a.closeButton)},null!=(h=null==z?void 0:z.close)?h:f):null,(ep||b.icon||b.promise)&&null!==b.icon&&((null==z?void 0:z[ep])!==null||b.icon)?n.createElement("div",{"data-icon":"",className:w(null==K?void 0:K.icon,null==b||null==(i=b.classNames)?void 0:i.icon)},b.promise||"loading"===b.type&&!b.icon?b.icon||function(){var e,t;return(null==z?void 0:z.loading)?n.createElement("div",{className:w(null==K?void 0:K.loader,null==b||null==(t=b.classNames)?void 0:t.loader,"sonner-loader"),"data-visible":"loading"===ep},z.loading):n.createElement(s,{className:w(null==K?void 0:K.loader,null==b||null==(e=b.classNames)?void 0:e.loader),visible:"loading"===ep})}():null,"loading"!==b.type?eD:null):null,n.createElement("div",{"data-content":"",className:w(null==K?void 0:K.content,null==b||null==(l=b.classNames)?void 0:l.content)},n.createElement("div",{"data-title":"",className:w(null==K?void 0:K.title,null==b||null==(u=b.classNames)?void 0:u.title)},b.jsx?b.jsx:"function"==typeof b.title?b.title():b.title),b.description?n.createElement("div",{"data-description":"",className:w(F,eh,null==K?void 0:K.description,null==b||null==(c=b.classNames)?void 0:c.description)},"function"==typeof b.description?b.description():b.description):null),n.isValidElement(b.cancel)?b.cancel:b.cancel&&y(b.cancel)?n.createElement("button",{"data-button":!0,"data-cancel":!0,style:b.cancelButtonStyle||P,onClick:e=>{y(b.cancel)&&em&&(null==b.cancel.onClick||b.cancel.onClick.call(b.cancel,e),eN())},className:w(null==K?void 0:K.cancelButton,null==b||null==(d=b.classNames)?void 0:d.cancelButton)},b.cancel.label):null,n.isValidElement(b.action)?b.action:b.action&&y(b.action)?n.createElement("button",{"data-button":!0,"data-action":!0,style:b.actionButtonStyle||I,onClick:e=>{y(b.action)&&(null==b.action.onClick||b.action.onClick.call(b.action,e),e.defaultPrevented||eN())},className:w(null==K?void 0:K.actionButton,null==b||null==(m=b.classNames)?void 0:m.actionButton)},b.action.label):null)};function E(){if("undefined"==typeof window||"undefined"==typeof document)return"ltr";let e=document.documentElement.getAttribute("dir");return"auto"!==e&&e?e:window.getComputedStyle(document.documentElement).direction}let C=n.forwardRef(function(e,t){let{invert:r,position:o="bottom-right",hotkey:i=["altKey","KeyT"],expand:s,closeButton:l,className:u,offset:c,mobileOffset:d,theme:f="light",richColors:p,duration:m,style:v,visibleToasts:g=3,toastOptions:b,dir:y=E(),gap:w=14,icons:C,containerAriaLabel:R="Notifications"}=e,[M,k]=n.useState([]),j=n.useMemo(()=>Array.from(new Set([o].concat(M.filter(e=>e.position).map(e=>e.position)))),[M,o]),[T,S]=n.useState([]),[N,D]=n.useState(!1),[A,P]=n.useState(!1),[I,L]=n.useState("system"!==f?f:"undefined"!=typeof window&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),F=n.useRef(null),_=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),B=n.useRef(null),O=n.useRef(!1),G=n.useCallback(e=>{k(t=>{var r;return(null==(r=t.find(t=>t.id===e.id))?void 0:r.delete)||h.dismiss(e.id),t.filter(t=>{let{id:r}=t;return r!==e.id})})},[]);return n.useEffect(()=>h.subscribe(e=>{if(e.dismiss)return void requestAnimationFrame(()=>{k(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))});setTimeout(()=>{a.flushSync(()=>{k(t=>{let r=t.findIndex(t=>t.id===e.id);return -1!==r?[...t.slice(0,r),{...t[r],...e},...t.slice(r+1)]:[e,...t]})})})}),[M]),n.useEffect(()=>{if("system"!==f)return void L(f);if("system"===f&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?L("dark"):L("light")),"undefined"==typeof window)return;let e=window.matchMedia("(prefers-color-scheme: dark)");try{e.addEventListener("change",e=>{let{matches:t}=e;t?L("dark"):L("light")})}catch(t){e.addListener(e=>{let{matches:t}=e;try{t?L("dark"):L("light")}catch(e){console.error(e)}})}},[f]),n.useEffect(()=>{M.length<=1&&D(!1)},[M]),n.useEffect(()=>{let e=e=>{var t,r;i.every(t=>e[t]||e.code===t)&&(D(!0),null==(r=F.current)||r.focus()),"Escape"===e.code&&(document.activeElement===F.current||(null==(t=F.current)?void 0:t.contains(document.activeElement)))&&D(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[i]),n.useEffect(()=>{if(F.current)return()=>{B.current&&(B.current.focus({preventScroll:!0}),B.current=null,O.current=!1)}},[F.current]),n.createElement("section",{ref:t,"aria-label":"".concat(R," ").concat(_),tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},j.map((t,a)=>{var o;let[i,f]=t.split("-");return M.length?n.createElement("ol",{key:t,dir:"auto"===y?E():y,tabIndex:-1,ref:F,className:u,"data-sonner-toaster":!0,"data-sonner-theme":I,"data-y-position":i,"data-lifted":N&&M.length>1&&!s,"data-x-position":f,style:{"--front-toast-height":"".concat((null==(o=T[0])?void 0:o.height)||0,"px"),"--width":"".concat(356,"px"),"--gap":"".concat(w,"px"),...v,...function(e,t){let r={};return[e,t].forEach((e,t)=>{let n=1===t,a=n?"--mobile-offset":"--offset",o=n?"16px":"24px";function i(e){["top","right","bottom","left"].forEach(t=>{r["".concat(a,"-").concat(t)]="number"==typeof e?"".concat(e,"px"):e})}"number"==typeof e||"string"==typeof e?i(e):"object"==typeof e?["top","right","bottom","left"].forEach(t=>{void 0===e[t]?r["".concat(a,"-").concat(t)]=o:r["".concat(a,"-").concat(t)]="number"==typeof e[t]?"".concat(e[t],"px"):e[t]}):i(o)}),r}(c,d)},onBlur:e=>{O.current&&!e.currentTarget.contains(e.relatedTarget)&&(O.current=!1,B.current&&(B.current.focus({preventScroll:!0}),B.current=null))},onFocus:e=>{!(e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible)&&(O.current||(O.current=!0,B.current=e.relatedTarget))},onMouseEnter:()=>D(!0),onMouseMove:()=>D(!0),onMouseLeave:()=>{A||D(!1)},onDragEnd:()=>D(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&"false"===e.target.dataset.dismissible||P(!0)},onPointerUp:()=>P(!1)},M.filter(e=>!e.position&&0===a||e.position===t).map((a,o)=>{var i,u;return n.createElement(x,{key:a.id,icons:C,index:o,toast:a,defaultRichColors:p,duration:null!=(i=null==b?void 0:b.duration)?i:m,className:null==b?void 0:b.className,descriptionClassName:null==b?void 0:b.descriptionClassName,invert:r,visibleToasts:g,closeButton:null!=(u=null==b?void 0:b.closeButton)?u:l,interacting:A,position:t,style:null==b?void 0:b.style,unstyled:null==b?void 0:b.unstyled,classNames:null==b?void 0:b.classNames,cancelButtonStyle:null==b?void 0:b.cancelButtonStyle,actionButtonStyle:null==b?void 0:b.actionButtonStyle,closeButtonAriaLabel:null==b?void 0:b.closeButtonAriaLabel,removeToast:G,toasts:M.filter(e=>e.position==a.position),heights:T.filter(e=>e.position==a.position),setHeights:S,expandByDefault:s,gap:w,expanded:N,swipeDirections:e.swipeDirections})})):null}))})},1619:(e,t,r)=>{r.d(t,{q7:()=>S,bL:()=>T});var n=r(2421),a=r(1516),o=r(3537),i=r(1179),s=r(3181),l=r(7251),u=r(8593),c="Toggle",d=n.forwardRef((e,t)=>{let{pressed:r,defaultPressed:n,onPressedChange:a,...i}=e,[d,f]=(0,l.i)({prop:r,onChange:a,defaultProp:null!=n&&n,caller:c});return(0,u.jsx)(o.sG.button,{type:"button","aria-pressed":d,"data-state":d?"on":"off","data-disabled":e.disabled?"":void 0,...i,ref:t,onClick:(0,s.m)(e.onClick,()=>{e.disabled||f(!d)})})});d.displayName=c;var f=r(5765),p="ToggleGroup",[m,v]=(0,a.A)(p,[i.RG]),h=(0,i.RG)(),g=n.forwardRef((e,t)=>{let{type:r,...n}=e;if("single"===r)return(0,u.jsx)(w,{...n,ref:t});if("multiple"===r)return(0,u.jsx)(x,{...n,ref:t});throw Error("Missing prop `type` expected on `".concat(p,"`"))});g.displayName=p;var[b,y]=m(p),w=n.forwardRef((e,t)=>{let{value:r,defaultValue:a,onValueChange:o=()=>{},...i}=e,[s,c]=(0,l.i)({prop:r,defaultProp:null!=a?a:"",onChange:o,caller:p});return(0,u.jsx)(b,{scope:e.__scopeToggleGroup,type:"single",value:n.useMemo(()=>s?[s]:[],[s]),onItemActivate:c,onItemDeactivate:n.useCallback(()=>c(""),[c]),children:(0,u.jsx)(R,{...i,ref:t})})}),x=n.forwardRef((e,t)=>{let{value:r,defaultValue:a,onValueChange:o=()=>{},...i}=e,[s,c]=(0,l.i)({prop:r,defaultProp:null!=a?a:[],onChange:o,caller:p}),d=n.useCallback(e=>c(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[...t,e]}),[c]),f=n.useCallback(e=>c(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return t.filter(t=>t!==e)}),[c]);return(0,u.jsx)(b,{scope:e.__scopeToggleGroup,type:"multiple",value:s,onItemActivate:d,onItemDeactivate:f,children:(0,u.jsx)(R,{...i,ref:t})})});g.displayName=p;var[E,C]=m(p),R=n.forwardRef((e,t)=>{let{__scopeToggleGroup:r,disabled:n=!1,rovingFocus:a=!0,orientation:s,dir:l,loop:c=!0,...d}=e,p=h(r),m=(0,f.jH)(l),v={role:"group",dir:m,...d};return(0,u.jsx)(E,{scope:r,rovingFocus:a,disabled:n,children:a?(0,u.jsx)(i.bL,{asChild:!0,...p,orientation:s,dir:m,loop:c,children:(0,u.jsx)(o.sG.div,{...v,ref:t})}):(0,u.jsx)(o.sG.div,{...v,ref:t})})}),M="ToggleGroupItem",k=n.forwardRef((e,t)=>{let r=y(M,e.__scopeToggleGroup),a=C(M,e.__scopeToggleGroup),o=h(e.__scopeToggleGroup),s=r.value.includes(e.value),l=a.disabled||e.disabled,c={...e,pressed:s,disabled:l},d=n.useRef(null);return a.rovingFocus?(0,u.jsx)(i.q7,{asChild:!0,...o,focusable:!l,active:s,ref:d,children:(0,u.jsx)(j,{...c,ref:t})}):(0,u.jsx)(j,{...c,ref:t})});k.displayName=M;var j=n.forwardRef((e,t)=>{let{__scopeToggleGroup:r,value:n,...a}=e,o=y(M,r),i={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},s="single"===o.type?i:void 0;return(0,u.jsx)(d,{...s,...a,ref:t,onPressedChange:e=>{e?o.onItemActivate(n):o.onItemDeactivate(n)}})}),T=g,S=k},1975:(e,t,r)=>{r.d(t,{Mz:()=>U,UC:()=>V,ZL:()=>H,bL:()=>Y,l9:()=>W});var n=r(2421),a=r(3181),o=r(1840),i=r(1516),s=r(5230),l=r(2344),u=r(2937),c=r(6043),d=r(4460),f=r(3240),p=r(9327),m=r(3537),v=r(9579),h=r(7251),g=r(9502),b=r(673),y=r(8593),w="Popover",[x,E]=(0,i.A)(w,[d.Bk]),C=(0,d.Bk)(),[R,M]=x(w),k=e=>{let{__scopePopover:t,children:r,open:a,defaultOpen:o,onOpenChange:i,modal:s=!1}=e,l=C(t),u=n.useRef(null),[f,p]=n.useState(!1),[m,v]=(0,h.i)({prop:a,defaultProp:null!=o&&o,onChange:i,caller:w});return(0,y.jsx)(d.bL,{...l,children:(0,y.jsx)(R,{scope:t,contentId:(0,c.B)(),triggerRef:u,open:m,onOpenChange:v,onOpenToggle:n.useCallback(()=>v(e=>!e),[v]),hasCustomAnchor:f,onCustomAnchorAdd:n.useCallback(()=>p(!0),[]),onCustomAnchorRemove:n.useCallback(()=>p(!1),[]),modal:s,children:r})})};k.displayName=w;var j="PopoverAnchor",T=n.forwardRef((e,t)=>{let{__scopePopover:r,...a}=e,o=M(j,r),i=C(r),{onCustomAnchorAdd:s,onCustomAnchorRemove:l}=o;return n.useEffect(()=>(s(),()=>l()),[s,l]),(0,y.jsx)(d.Mz,{...i,...a,ref:t})});T.displayName=j;var S="PopoverTrigger",N=n.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,i=M(S,r),s=C(r),l=(0,o.s)(t,i.triggerRef),u=(0,y.jsx)(m.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":z(i.open),...n,ref:l,onClick:(0,a.m)(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?u:(0,y.jsx)(d.Mz,{asChild:!0,...s,children:u})});N.displayName=S;var D="PopoverPortal",[A,P]=x(D,{forceMount:void 0}),I=e=>{let{__scopePopover:t,forceMount:r,children:n,container:a}=e,o=M(D,t);return(0,y.jsx)(A,{scope:t,forceMount:r,children:(0,y.jsx)(p.C,{present:r||o.open,children:(0,y.jsx)(f.Z,{asChild:!0,container:a,children:n})})})};I.displayName=D;var L="PopoverContent",F=n.forwardRef((e,t)=>{let r=P(L,e.__scopePopover),{forceMount:n=r.forceMount,...a}=e,o=M(L,e.__scopePopover);return(0,y.jsx)(p.C,{present:n||o.open,children:o.modal?(0,y.jsx)(B,{...a,ref:t}):(0,y.jsx)(O,{...a,ref:t})})});F.displayName=L;var _=(0,v.TL)("PopoverContent.RemoveScroll"),B=n.forwardRef((e,t)=>{let r=M(L,e.__scopePopover),i=n.useRef(null),s=(0,o.s)(t,i),l=n.useRef(!1);return n.useEffect(()=>{let e=i.current;if(e)return(0,g.Eq)(e)},[]),(0,y.jsx)(b.A,{as:_,allowPinchZoom:!0,children:(0,y.jsx)(G,{...e,ref:s,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,a.m)(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),l.current||null==(t=r.triggerRef.current)||t.focus()}),onPointerDownOutside:(0,a.m)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,r=0===t.button&&!0===t.ctrlKey;l.current=2===t.button||r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,a.m)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),O=n.forwardRef((e,t)=>{let r=M(L,e.__scopePopover),a=n.useRef(!1),o=n.useRef(!1);return(0,y.jsx)(G,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var n,i;null==(n=e.onCloseAutoFocus)||n.call(e,t),t.defaultPrevented||(a.current||null==(i=r.triggerRef.current)||i.focus(),t.preventDefault()),a.current=!1,o.current=!1},onInteractOutside:t=>{var n,i;null==(n=e.onInteractOutside)||n.call(e,t),t.defaultPrevented||(a.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let s=t.target;(null==(i=r.triggerRef.current)?void 0:i.contains(s))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),G=n.forwardRef((e,t)=>{let{__scopePopover:r,trapFocus:n,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:i,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,...v}=e,h=M(L,r),g=C(r);return(0,l.Oh)(),(0,y.jsx)(u.n,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:a,onUnmountAutoFocus:o,children:(0,y.jsx)(s.qW,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:m,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:p,onDismiss:()=>h.onOpenChange(!1),children:(0,y.jsx)(d.UC,{"data-state":z(h.open),role:"dialog",id:h.contentId,...g,...v,ref:t,style:{...v.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),K="PopoverClose";function z(e){return e?"open":"closed"}n.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,o=M(K,r);return(0,y.jsx)(m.sG.button,{type:"button",...n,ref:t,onClick:(0,a.m)(e.onClick,()=>o.onOpenChange(!1))})}).displayName=K,n.forwardRef((e,t)=>{let{__scopePopover:r,...n}=e,a=C(r);return(0,y.jsx)(d.i3,{...a,...n,ref:t})}).displayName="PopoverArrow";var Y=k,U=T,W=N,H=I,V=F},2344:(e,t,r)=>{r.d(t,{Oh:()=>o});var n=r(2421),a=0;function o(){n.useEffect(()=>{var e,t;let r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",null!=(e=r[0])?e:i()),document.body.insertAdjacentElement("beforeend",null!=(t=r[1])?t:i()),a++,()=>{1===a&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),a--}},[])}function i(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}},2937:(e,t,r)=>{r.d(t,{n:()=>d});var n=r(2421),a=r(1840),o=r(3537),i=r(3911),s=r(8593),l="focusScope.autoFocusOnMount",u="focusScope.autoFocusOnUnmount",c={bubbles:!1,cancelable:!0},d=n.forwardRef((e,t)=>{let{loop:r=!1,trapped:d=!1,onMountAutoFocus:h,onUnmountAutoFocus:g,...b}=e,[y,w]=n.useState(null),x=(0,i.c)(h),E=(0,i.c)(g),C=n.useRef(null),R=(0,a.s)(t,e=>w(e)),M=n.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;n.useEffect(()=>{if(d){let e=function(e){if(M.paused||!y)return;let t=e.target;y.contains(t)?C.current=t:m(C.current,{select:!0})},t=function(e){if(M.paused||!y)return;let t=e.relatedTarget;null!==t&&(y.contains(t)||m(C.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let r=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&m(y)});return y&&r.observe(y,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[d,y,M.paused]),n.useEffect(()=>{if(y){v.add(M);let e=document.activeElement;if(!y.contains(e)){let t=new CustomEvent(l,c);y.addEventListener(l,x),y.dispatchEvent(t),t.defaultPrevented||(function(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=document.activeElement;for(let n of e)if(m(n,{select:t}),document.activeElement!==r)return}(f(y).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&m(y))}return()=>{y.removeEventListener(l,x),setTimeout(()=>{let t=new CustomEvent(u,c);y.addEventListener(u,E),y.dispatchEvent(t),t.defaultPrevented||m(null!=e?e:document.body,{select:!0}),y.removeEventListener(u,E),v.remove(M)},0)}}},[y,x,E,M]);let k=n.useCallback(e=>{if(!r&&!d||M.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){let t=e.currentTarget,[a,o]=function(e){let t=f(e);return[p(t,e),p(t.reverse(),e)]}(t);a&&o?e.shiftKey||n!==o?e.shiftKey&&n===a&&(e.preventDefault(),r&&m(o,{select:!0})):(e.preventDefault(),r&&m(a,{select:!0})):n===t&&e.preventDefault()}},[r,d,M.paused]);return(0,s.jsx)(o.sG.div,{tabIndex:-1,...b,ref:R,onKeyDown:k})});function f(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function p(e,t){for(let r of e)if(!function(e,t){let{upTo:r}=t;if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===r||e!==r);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t}))return r}function m(e){let{select:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.focus){var r;let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&(r=e)instanceof HTMLInputElement&&"select"in r&&t&&e.select()}}d.displayName="FocusScope";var v=function(){let e=[];return{add(t){let r=e[0];t!==r&&(null==r||r.pause()),(e=h(e,t)).unshift(t)},remove(t){var r;null==(r=(e=h(e,t))[0])||r.resume()}}}();function h(e,t){let r=[...e],n=r.indexOf(t);return -1!==n&&r.splice(n,1),r}},5327:(e,t,r)=>{r.d(t,{B8:()=>S,UC:()=>D,bL:()=>T,l9:()=>N});var n=r(2421),a=r(3181),o=r(1516),i=r(1179),s=r(9327),l=r(3537),u=r(5765),c=r(7251),d=r(6043),f=r(8593),p="Tabs",[m,v]=(0,o.A)(p,[i.RG]),h=(0,i.RG)(),[g,b]=m(p),y=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,onValueChange:a,defaultValue:o,orientation:i="horizontal",dir:s,activationMode:m="automatic",...v}=e,h=(0,u.jH)(s),[b,y]=(0,c.i)({prop:n,onChange:a,defaultProp:null!=o?o:"",caller:p});return(0,f.jsx)(g,{scope:r,baseId:(0,d.B)(),value:b,onValueChange:y,orientation:i,dir:h,activationMode:m,children:(0,f.jsx)(l.sG.div,{dir:h,"data-orientation":i,...v,ref:t})})});y.displayName=p;var w="TabsList",x=n.forwardRef((e,t)=>{let{__scopeTabs:r,loop:n=!0,...a}=e,o=b(w,r),s=h(r);return(0,f.jsx)(i.bL,{asChild:!0,...s,orientation:o.orientation,dir:o.dir,loop:n,children:(0,f.jsx)(l.sG.div,{role:"tablist","aria-orientation":o.orientation,...a,ref:t})})});x.displayName=w;var E="TabsTrigger",C=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:n,disabled:o=!1,...s}=e,u=b(E,r),c=h(r),d=k(u.baseId,n),p=j(u.baseId,n),m=n===u.value;return(0,f.jsx)(i.q7,{asChild:!0,...c,focusable:!o,active:m,children:(0,f.jsx)(l.sG.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":p,"data-state":m?"active":"inactive","data-disabled":o?"":void 0,disabled:o,id:d,...s,ref:t,onMouseDown:(0,a.m)(e.onMouseDown,e=>{o||0!==e.button||!1!==e.ctrlKey?e.preventDefault():u.onValueChange(n)}),onKeyDown:(0,a.m)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&u.onValueChange(n)}),onFocus:(0,a.m)(e.onFocus,()=>{let e="manual"!==u.activationMode;m||o||!e||u.onValueChange(n)})})})});C.displayName=E;var R="TabsContent",M=n.forwardRef((e,t)=>{let{__scopeTabs:r,value:a,forceMount:o,children:i,...u}=e,c=b(R,r),d=k(c.baseId,a),p=j(c.baseId,a),m=a===c.value,v=n.useRef(m);return n.useEffect(()=>{let e=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,f.jsx)(s.C,{present:o||m,children:r=>{let{present:n}=r;return(0,f.jsx)(l.sG.div,{"data-state":m?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":d,hidden:!n,id:p,tabIndex:0,...u,ref:t,style:{...e.style,animationDuration:v.current?"0s":void 0},children:n&&i})}})});function k(e,t){return"".concat(e,"-trigger-").concat(t)}function j(e,t){return"".concat(e,"-content-").concat(t)}M.displayName=R;var T=y,S=x,N=C,D=M},5765:(e,t,r)=>{r.d(t,{jH:()=>o});var n=r(2421);r(8593);var a=n.createContext(void 0);function o(e){let t=n.useContext(a);return e||t||"ltr"}},6286:(e,t,r)=>{r.d(t,{YQ:()=>a});var n=r(2421);function a(e,t,r){var a=this,o=(0,n.useRef)(null),i=(0,n.useRef)(0),s=(0,n.useRef)(null),l=(0,n.useRef)([]),u=(0,n.useRef)(),c=(0,n.useRef)(),d=(0,n.useRef)(e),f=(0,n.useRef)(!0);d.current=e;var p="undefined"!=typeof window,m=!t&&0!==t&&p;if("function"!=typeof e)throw TypeError("Expected a function");t=+t||0;var v=!!(r=r||{}).leading,h=!("trailing"in r)||!!r.trailing,g="maxWait"in r,b="debounceOnServer"in r&&!!r.debounceOnServer,y=g?Math.max(+r.maxWait||0,t):null;return(0,n.useEffect)(function(){return f.current=!0,function(){f.current=!1}},[]),(0,n.useMemo)(function(){var e=function(e){var t=l.current,r=u.current;return l.current=u.current=null,i.current=e,c.current=d.current.apply(r,t)},r=function(e,t){m&&cancelAnimationFrame(s.current),s.current=m?requestAnimationFrame(e):setTimeout(e,t)},n=function(e){if(!f.current)return!1;var r=e-o.current;return!o.current||r>=t||r<0||g&&e-i.current>=y},w=function(t){return s.current=null,h&&l.current?e(t):(l.current=u.current=null,c.current)},x=function e(){var a=Date.now();if(n(a))return w(a);if(f.current){var s=t-(a-o.current);r(e,g?Math.min(s,y-(a-i.current)):s)}},E=function(){if(p||b){var d=Date.now(),m=n(d);if(l.current=[].slice.call(arguments),u.current=a,o.current=d,m){if(!s.current&&f.current)return i.current=o.current,r(x,t),v?e(o.current):c.current;if(g)return r(x,t),e(o.current)}return s.current||r(x,t),c.current}};return E.cancel=function(){s.current&&(m?cancelAnimationFrame(s.current):clearTimeout(s.current)),i.current=0,l.current=o.current=u.current=s.current=null},E.isPending=function(){return!!s.current},E.flush=function(){return s.current?w(Date.now()):c.current},E},[v,g,t,y,h,m,p,b])}},7486:(e,t,r)=>{function n(e,t,r){if(!t.has(e))throw TypeError("attempted to "+r+" private field on non-instance");return t.get(e)}function a(e,t){var r=n(e,t,"get");return r.get?r.get.call(e):r.value}function o(e,t,r){var a=n(e,t,"set");if(a.set)a.set.call(e,r);else{if(!a.writable)throw TypeError("attempted to set read only private field");a.value=r}return r}r.d(t,{N:()=>f});var i,s=r(2421),l=r(1516),u=r(1840),c=r(9579),d=r(8593);function f(e){let t=e+"CollectionProvider",[r,n]=(0,l.A)(t),[a,o]=r(t,{collectionRef:{current:null},itemMap:new Map}),i=e=>{let{scope:t,children:r}=e,n=s.useRef(null),o=s.useRef(new Map).current;return(0,d.jsx)(a,{scope:t,itemMap:o,collectionRef:n,children:r})};i.displayName=t;let f=e+"CollectionSlot",p=(0,c.TL)(f),m=s.forwardRef((e,t)=>{let{scope:r,children:n}=e,a=o(f,r),i=(0,u.s)(t,a.collectionRef);return(0,d.jsx)(p,{ref:i,children:n})});m.displayName=f;let v=e+"CollectionItemSlot",h="data-radix-collection-item",g=(0,c.TL)(v),b=s.forwardRef((e,t)=>{let{scope:r,children:n,...a}=e,i=s.useRef(null),l=(0,u.s)(t,i),c=o(v,r);return s.useEffect(()=>(c.itemMap.set(i,{ref:i,...a}),()=>void c.itemMap.delete(i))),(0,d.jsx)(g,{...{[h]:""},ref:l,children:n})});return b.displayName=v,[{Provider:i,Slot:m,ItemSlot:b},function(t){let r=o(e+"CollectionConsumer",t);return s.useCallback(()=>{let e=r.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll("[".concat(h,"]")));return Array.from(r.itemMap.values()).sort((e,r)=>t.indexOf(e.ref.current)-t.indexOf(r.ref.current))},[r.collectionRef,r.itemMap])},n]}var p=new WeakMap;function m(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);let r=function(e,t){let r=e.length,n=v(t),a=n>=0?n:r+n;return a<0||a>=r?-1:a}(e,t);return -1===r?void 0:e[r]}function v(e){return e!=e||0===e?0:Math.trunc(e)}i=new WeakMap},9502:(e,t,r)=>{r.d(t,{Eq:()=>c});var n=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},a=new WeakMap,o=new WeakMap,i={},s=0,l=function(e){return e&&(e.host||l(e.parentNode))},u=function(e,t,r,n){var u=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var r=l(e);return r&&t.contains(r)?r:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});i[r]||(i[r]=new WeakMap);var c=i[r],d=[],f=new Set,p=new Set(u),m=function(e){!e||f.has(e)||(f.add(e),m(e.parentNode))};u.forEach(m);var v=function(e){!e||p.has(e)||Array.prototype.forEach.call(e.children,function(e){if(f.has(e))v(e);else try{var t=e.getAttribute(n),i=null!==t&&"false"!==t,s=(a.get(e)||0)+1,l=(c.get(e)||0)+1;a.set(e,s),c.set(e,l),d.push(e),1===s&&i&&o.set(e,!0),1===l&&e.setAttribute(r,"true"),i||e.setAttribute(n,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return v(t),f.clear(),s++,function(){d.forEach(function(e){var t=a.get(e)-1,i=c.get(e)-1;a.set(e,t),c.set(e,i),t||(o.has(e)||e.removeAttribute(n),o.delete(e)),i||e.removeAttribute(r)}),--s||(a=new WeakMap,a=new WeakMap,o=new WeakMap,i={})}},c=function(e,t,r){void 0===r&&(r="data-aria-hidden");var a=Array.from(Array.isArray(e)?e:[e]),o=t||n(e);return o?(a.push.apply(a,Array.from(o.querySelectorAll("[aria-live]"))),u(a,o,r,"aria-hidden")):function(){return null}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[336],{997:(t,e,s)=>{Object.defineProperty(e,"__esModule",{value:!0}),!function(t,e){for(var s in e)Object.defineProperty(t,s,{enumerable:!0,get:e[s]})}(e,{callServer:function(){return r.callServer},createServerReference:function(){return n},findSourceMapURL:function(){return i.findSourceMapURL}});let r=s(9654),i=s(3682),n=s(2853).createServerReference},1452:(t,e,s)=>{let r,i;s.d(e,{io:()=>tT});var n,o={};s.r(o),s.d(o,{Decoder:()=>tm,Encoder:()=>ty,PacketType:()=>n,protocol:()=>tf});let a=Object.create(null);a.open="0",a.close="1",a.ping="2",a.pong="3",a.message="4",a.upgrade="5",a.noop="6";let h=Object.create(null);Object.keys(a).forEach(t=>{h[a[t]]=t});let c={type:"error",data:"parser error"},l="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),u="function"==typeof ArrayBuffer,p=t=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer instanceof ArrayBuffer,d=({type:t,data:e},s,r)=>{if(l&&e instanceof Blob)if(s)return r(e);else return f(e,r);if(u&&(e instanceof ArrayBuffer||p(e)))if(s)return r(e);else return f(new Blob([e]),r);return r(a[t]+(e||""))},f=(t,e)=>{let s=new FileReader;return s.onload=function(){e("b"+(s.result.split(",")[1]||""))},s.readAsDataURL(t)};function y(t){return t instanceof Uint8Array?t:t instanceof ArrayBuffer?new Uint8Array(t):new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}let g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let t=0;t<g.length;t++)m[g.charCodeAt(t)]=t;let _=t=>{let e=.75*t.length,s=t.length,r,i=0,n,o,a,h;"="===t[t.length-1]&&(e--,"="===t[t.length-2]&&e--);let c=new ArrayBuffer(e),l=new Uint8Array(c);for(r=0;r<s;r+=4)n=m[t.charCodeAt(r)],o=m[t.charCodeAt(r+1)],a=m[t.charCodeAt(r+2)],h=m[t.charCodeAt(r+3)],l[i++]=n<<2|o>>4,l[i++]=(15&o)<<4|a>>2,l[i++]=(3&a)<<6|63&h;return c},b="function"==typeof ArrayBuffer,v=(t,e)=>{if("string"!=typeof t)return{type:"message",data:w(t,e)};let s=t.charAt(0);return"b"===s?{type:"message",data:k(t.substring(1),e)}:h[s]?t.length>1?{type:h[s],data:t.substring(1)}:{type:h[s]}:c},k=(t,e)=>b?w(_(t),e):{base64:!0,data:t},w=(t,e)=>"blob"===e?t instanceof Blob?t:new Blob([t]):t instanceof ArrayBuffer?t:t.buffer,E=(t,e)=>{let s=t.length,r=Array(s),i=0;t.forEach((t,n)=>{d(t,!1,t=>{r[n]=t,++i===s&&e(r.join("\x1e"))})})},A=(t,e)=>{let s=t.split("\x1e"),r=[];for(let t=0;t<s.length;t++){let i=v(s[t],e);if(r.push(i),"error"===i.type)break}return r};function T(t){return t.reduce((t,e)=>t+e.length,0)}function O(t,e){if(t[0].length===e)return t.shift();let s=new Uint8Array(e),r=0;for(let i=0;i<e;i++)s[i]=t[0][r++],r===t[0].length&&(t.shift(),r=0);return t.length&&r<t[0].length&&(t[0]=t[0].slice(r)),s}function R(t){if(t){var e=t;for(var s in R.prototype)e[s]=R.prototype[s];return e}}R.prototype.on=R.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},R.prototype.once=function(t,e){function s(){this.off(t,s),e.apply(this,arguments)}return s.fn=e,this.on(t,s),this},R.prototype.off=R.prototype.removeListener=R.prototype.removeAllListeners=R.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var s,r=this._callbacks["$"+t];if(!r)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var i=0;i<r.length;i++)if((s=r[i])===e||s.fn===e){r.splice(i,1);break}return 0===r.length&&delete this._callbacks["$"+t],this},R.prototype.emit=function(t){this._callbacks=this._callbacks||{};for(var e=Array(arguments.length-1),s=this._callbacks["$"+t],r=1;r<arguments.length;r++)e[r-1]=arguments[r];if(s){s=s.slice(0);for(var r=0,i=s.length;r<i;++r)s[r].apply(this,e)}return this},R.prototype.emitReserved=R.prototype.emit,R.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},R.prototype.hasListeners=function(t){return!!this.listeners(t).length};let C="function"==typeof Promise&&"function"==typeof Promise.resolve?t=>Promise.resolve().then(t):(t,e)=>e(t,0),B="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function S(t,...e){return e.reduce((e,s)=>(t.hasOwnProperty(s)&&(e[s]=t[s]),e),{})}let x=B.setTimeout,N=B.clearTimeout;function L(t,e){e.useNativeTimers?(t.setTimeoutFn=x.bind(B),t.clearTimeoutFn=N.bind(B)):(t.setTimeoutFn=B.setTimeout.bind(B),t.clearTimeoutFn=B.clearTimeout.bind(B))}function q(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}class P extends Error{constructor(t,e,s){super(t),this.description=e,this.context=s,this.type="TransportError"}}class j extends R{constructor(t){super(),this.writable=!1,L(this,t),this.opts=t,this.query=t.query,this.socket=t.socket,this.supportsBinary=!t.forceBase64}onError(t,e,s){return super.emitReserved("error",new P(t,e,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return("opening"===this.readyState||"open"===this.readyState)&&(this.doClose(),this.onClose()),this}send(t){"open"===this.readyState&&this.write(t)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(t){let e=v(t,this.socket.binaryType);this.onPacket(e)}onPacket(t){super.emitReserved("packet",t)}onClose(t){this.readyState="closed",super.emitReserved("close",t)}pause(t){}createUri(t,e={}){return t+"://"+this._hostname()+this._port()+this.opts.path+this._query(e)}_hostname(){let t=this.opts.hostname;return -1===t.indexOf(":")?t:"["+t+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(t){let e=function(t){let e="";for(let s in t)t.hasOwnProperty(s)&&(e.length&&(e+="&"),e+=encodeURIComponent(s)+"="+encodeURIComponent(t[s]));return e}(t);return e.length?"?"+e:""}}class U extends j{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(t){this.readyState="pausing";let e=()=>{this.readyState="paused",t()};if(this._polling||!this.writable){let t=0;this._polling&&(t++,this.once("pollComplete",function(){--t||e()})),this.writable||(t++,this.once("drain",function(){--t||e()}))}else e()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){A(t,this.socket.binaryType).forEach(t=>{if("opening"===this.readyState&&"open"===t.type&&this.onOpen(),"close"===t.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(t)}),"closed"!==this.readyState&&(this._polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this._poll())}doClose(){let t=()=>{this.write([{type:"close"}])};"open"===this.readyState?t():this.once("open",t)}write(t){this.writable=!1,E(t,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let t=this.opts.secure?"https":"http",e=this.query||{};return!1!==this.opts.timestampRequests&&(e[this.opts.timestampParam]=q()),this.supportsBinary||e.sid||(e.b64=1),this.createUri(t,e)}}let D=!1;try{D="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(t){}let I=D;function F(){}class M extends U{constructor(t){if(super(t),"undefined"!=typeof location){let e="https:"===location.protocol,s=location.port;s||(s=e?"443":"80"),this.xd="undefined"!=typeof location&&t.hostname!==location.hostname||s!==t.port}}doWrite(t,e){let s=this.request({method:"POST",data:t});s.on("success",e),s.on("error",(t,e)=>{this.onError("xhr post error",t,e)})}doPoll(){let t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(t,e)=>{this.onError("xhr poll error",t,e)}),this.pollXhr=t}}class V extends R{constructor(t,e,s){super(),this.createRequest=t,L(this,s),this._opts=s,this._method=s.method||"GET",this._uri=e,this._data=void 0!==s.data?s.data:null,this._create()}_create(){var t;let e=S(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");e.xdomain=!!this._opts.xd;let s=this._xhr=this.createRequest(e);try{s.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders)for(let t in s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0),this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(t)&&s.setRequestHeader(t,this._opts.extraHeaders[t])}catch(t){}if("POST"===this._method)try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(t){}try{s.setRequestHeader("Accept","*/*")}catch(t){}null==(t=this._opts.cookieJar)||t.addCookies(s),"withCredentials"in s&&(s.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(s.timeout=this._opts.requestTimeout),s.onreadystatechange=()=>{var t;3===s.readyState&&(null==(t=this._opts.cookieJar)||t.parseCookies(s.getResponseHeader("set-cookie"))),4===s.readyState&&(200===s.status||1223===s.status?this._onLoad():this.setTimeoutFn(()=>{this._onError("number"==typeof s.status?s.status:0)},0))},s.send(this._data)}catch(t){this.setTimeoutFn(()=>{this._onError(t)},0);return}"undefined"!=typeof document&&(this._index=V.requestsCount++,V.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(void 0!==this._xhr&&null!==this._xhr){if(this._xhr.onreadystatechange=F,t)try{this._xhr.abort()}catch(t){}"undefined"!=typeof document&&delete V.requests[this._index],this._xhr=null}}_onLoad(){let t=this._xhr.responseText;null!==t&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}function H(){for(let t in V.requests)V.requests.hasOwnProperty(t)&&V.requests[t].abort()}V.requestsCount=0,V.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",H):"function"==typeof addEventListener&&addEventListener("onpagehide"in B?"pagehide":"unload",H,!1));let K=function(){let t=Y({xdomain:!1});return t&&null!==t.responseType}();class W extends M{constructor(t){super(t);let e=t&&t.forceBase64;this.supportsBinary=K&&!e}request(t={}){return Object.assign(t,{xd:this.xd},this.opts),new V(Y,this.uri(),t)}}function Y(t){let e=t.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!e||I))return new XMLHttpRequest}catch(t){}if(!e)try{return new B[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(t){}}let z="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class J extends j{get name(){return"websocket"}doOpen(){let t=this.uri(),e=this.opts.protocols,s=z?{}:S(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(t,e,s)}catch(t){return this.emitReserved("error",t)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let e=0;e<t.length;e++){let s=t[e],r=e===t.length-1;d(s,this.supportsBinary,t=>{try{this.doWrite(s,t)}catch(t){}r&&C(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let t=this.opts.secure?"wss":"ws",e=this.query||{};return this.opts.timestampRequests&&(e[this.opts.timestampParam]=q()),this.supportsBinary||(e.b64=1),this.createUri(t,e)}}let $=B.WebSocket||B.MozWebSocket;class Q extends J{createSocket(t,e,s){return z?new $(t,e,s):e?new $(t,e):new $(t)}doWrite(t,e){this.ws.send(e)}}class X extends j{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(t){return this.emitReserved("error",t)}this._transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(t=>{let e=function(t,e){i||(i=new TextDecoder);let s=[],r=0,n=-1,o=!1;return new TransformStream({transform(a,h){for(s.push(a);;){if(0===r){if(1>T(s))break;let t=O(s,1);o=(128&t[0])==128,r=(n=127&t[0])<126?3:126===n?1:2}else if(1===r){if(2>T(s))break;let t=O(s,2);n=new DataView(t.buffer,t.byteOffset,t.length).getUint16(0),r=3}else if(2===r){if(8>T(s))break;let t=O(s,8),e=new DataView(t.buffer,t.byteOffset,t.length),i=e.getUint32(0);if(i>2097151){h.enqueue(c);break}n=0x100000000*i+e.getUint32(4),r=3}else{if(T(s)<n)break;let t=O(s,n);h.enqueue(v(o?t:i.decode(t),e)),r=0}if(0===n||n>t){h.enqueue(c);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=t.readable.pipeThrough(e).getReader(),n=new TransformStream({transform(t,e){var s;s=s=>{let r,i=s.length;if(i<126)new DataView((r=new Uint8Array(1)).buffer).setUint8(0,i);else if(i<65536){let t=new DataView((r=new Uint8Array(3)).buffer);t.setUint8(0,126),t.setUint16(1,i)}else{let t=new DataView((r=new Uint8Array(9)).buffer);t.setUint8(0,127),t.setBigUint64(1,BigInt(i))}t.data&&"string"!=typeof t.data&&(r[0]|=128),e.enqueue(r),e.enqueue(s)},l&&t.data instanceof Blob?t.data.arrayBuffer().then(y).then(s):u&&(t.data instanceof ArrayBuffer||p(t.data))?s(y(t.data)):d(t,!1,t=>{r||(r=new TextEncoder),s(r.encode(t))})}});n.readable.pipeTo(t.writable),this._writer=n.writable.getWriter();let o=()=>{s.read().then(({done:t,value:e})=>{t||(this.onPacket(e),o())}).catch(t=>{})};o();let a={type:"open"};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this._writer.write(a).then(()=>this.onOpen())})})}write(t){this.writable=!1;for(let e=0;e<t.length;e++){let s=t[e],r=e===t.length-1;this._writer.write(s).then(()=>{r&&C(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;null==(t=this._transport)||t.close()}}let G={websocket:Q,webtransport:X,polling:W},Z=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,tt=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function te(t){if(t.length>8e3)throw"URI too long";let e=t,s=t.indexOf("["),r=t.indexOf("]");-1!=s&&-1!=r&&(t=t.substring(0,s)+t.substring(s,r).replace(/:/g,";")+t.substring(r,t.length));let i=Z.exec(t||""),n={},o=14;for(;o--;)n[tt[o]]=i[o]||"";return -1!=s&&-1!=r&&(n.source=e,n.host=n.host.substring(1,n.host.length-1).replace(/;/g,":"),n.authority=n.authority.replace("[","").replace("]","").replace(/;/g,":"),n.ipv6uri=!0),n.pathNames=function(t,e){let s=e.replace(/\/{2,9}/g,"/").split("/");return("/"==e.slice(0,1)||0===e.length)&&s.splice(0,1),"/"==e.slice(-1)&&s.splice(s.length-1,1),s}(0,n.path),n.queryKey=function(t,e){let s={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(t,e,r){e&&(s[e]=r)}),s}(0,n.query),n}let ts="function"==typeof addEventListener&&"function"==typeof removeEventListener,tr=[];ts&&addEventListener("offline",()=>{tr.forEach(t=>t())},!1);class ti extends R{constructor(t,e){if(super(),this.binaryType="arraybuffer",this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&"object"==typeof t&&(e=t,t=null),t){let s=te(t);e.hostname=s.host,e.secure="https"===s.protocol||"wss"===s.protocol,e.port=s.port,s.query&&(e.query=s.query)}else e.host&&(e.hostname=te(e.host).host);L(this,e),this.secure=null!=e.secure?e.secure:"undefined"!=typeof location&&"https:"===location.protocol,e.hostname&&!e.port&&(e.port=this.secure?"443":"80"),this.hostname=e.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=e.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},e.transports.forEach(t=>{let e=t.prototype.name;this.transports.push(e),this._transportsByName[e]=t}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},e),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function(t){let e={},s=t.split("&");for(let t=0,r=s.length;t<r;t++){let r=s[t].split("=");e[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return e}(this.opts.query)),ts&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},tr.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let e=Object.assign({},this.opts.query);e.EIO=4,e.transport=t,this.id&&(e.sid=this.id);let s=Object.assign({},this.opts,{query:e,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](s)}_open(){if(0===this.transports.length)return void this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);let t=this.opts.rememberUpgrade&&ti.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket")?"websocket":this.transports[0];this.readyState="opening";let e=this.createTransport(t);e.open(),this.setTransport(e)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",t=>this._onClose("transport close",t))}onOpen(){this.readyState="open",ti.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush()}_onPacket(t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let e=Error("server error");e.code=t.data,this._onError(e);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data)}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),"closed"!==this.readyState&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let e=0;e<this.writeBuffer.length;e++){let s=this.writeBuffer[e].data;if(s&&(t+="string"==typeof s?function(t){let e=0,s=0;for(let r=0,i=t.length;r<i;r++)(e=t.charCodeAt(r))<128?s+=1:e<2048?s+=2:e<55296||e>=57344?s+=3:(r++,s+=4);return s}(s):Math.ceil(1.33*(s.byteLength||s.size))),e>0&&t>this._maxPayload)return this.writeBuffer.slice(0,e);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,C(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,e,s){return this._sendPacket("message",t,e,s),this}send(t,e,s){return this._sendPacket("message",t,e,s),this}_sendPacket(t,e,s,r){if("function"==typeof e&&(r=e,e=void 0),"function"==typeof s&&(r=s,s=null),"closing"===this.readyState||"closed"===this.readyState)return;(s=s||{}).compress=!1!==s.compress;let i={type:t,data:e,options:s};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),r&&this.once("flush",r),this.flush()}close(){let t=()=>{this._onClose("forced close"),this.transport.close()},e=()=>{this.off("upgrade",e),this.off("upgradeError",e),t()},s=()=>{this.once("upgrade",e),this.once("upgradeError",e)};return("opening"===this.readyState||"open"===this.readyState)&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():t()}):this.upgrading?s():t()),this}_onError(t){if(ti.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&"opening"===this.readyState)return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),ts&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let t=tr.indexOf(this._offlineEventListener);-1!==t&&tr.splice(t,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,e),this.writeBuffer=[],this._prevBufferLen=0}}}ti.protocol=4;class tn extends ti{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),"open"===this.readyState&&this.opts.upgrade)for(let t=0;t<this._upgrades.length;t++)this._probe(this._upgrades[t])}_probe(t){let e=this.createTransport(t),s=!1;ti.priorWebsocketSuccess=!1;let r=()=>{s||(e.send([{type:"ping",data:"probe"}]),e.once("packet",t=>{if(!s)if("pong"===t.type&&"probe"===t.data){if(this.upgrading=!0,this.emitReserved("upgrading",e),!e)return;ti.priorWebsocketSuccess="websocket"===e.name,this.transport.pause(()=>{s||"closed"!==this.readyState&&(c(),this.setTransport(e),e.send([{type:"upgrade"}]),this.emitReserved("upgrade",e),e=null,this.upgrading=!1,this.flush())})}else{let t=Error("probe error");t.transport=e.name,this.emitReserved("upgradeError",t)}}))};function i(){s||(s=!0,c(),e.close(),e=null)}let n=t=>{let s=Error("probe error: "+t);s.transport=e.name,i(),this.emitReserved("upgradeError",s)};function o(){n("transport closed")}function a(){n("socket closed")}function h(t){e&&t.name!==e.name&&i()}let c=()=>{e.removeListener("open",r),e.removeListener("error",n),e.removeListener("close",o),this.off("close",a),this.off("upgrading",h)};e.once("open",r),e.once("error",n),e.once("close",o),this.once("close",a),this.once("upgrading",h),-1!==this._upgrades.indexOf("webtransport")&&"webtransport"!==t?this.setTimeoutFn(()=>{s||e.open()},200):e.open()}onHandshake(t){this._upgrades=this._filterUpgrades(t.upgrades),super.onHandshake(t)}_filterUpgrades(t){let e=[];for(let s=0;s<t.length;s++)~this.transports.indexOf(t[s])&&e.push(t[s]);return e}}class to extends tn{constructor(t,e={}){let s="object"==typeof t?t:e;(!s.transports||s.transports&&"string"==typeof s.transports[0])&&(s.transports=(s.transports||["polling","websocket","webtransport"]).map(t=>G[t]).filter(t=>!!t)),super(t,s)}}to.protocol;let ta="function"==typeof ArrayBuffer,th=t=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer,tc=Object.prototype.toString,tl="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===tc.call(Blob),tu="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===tc.call(File);function tp(t){return ta&&(t instanceof ArrayBuffer||th(t))||tl&&t instanceof Blob||tu&&t instanceof File}let td=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],tf=5;!function(t){t[t.CONNECT=0]="CONNECT",t[t.DISCONNECT=1]="DISCONNECT",t[t.EVENT=2]="EVENT",t[t.ACK=3]="ACK",t[t.CONNECT_ERROR=4]="CONNECT_ERROR",t[t.BINARY_EVENT=5]="BINARY_EVENT",t[t.BINARY_ACK=6]="BINARY_ACK"}(n||(n={}));class ty{constructor(t){this.replacer=t}encode(t){return(t.type===n.EVENT||t.type===n.ACK)&&function t(e,s){if(!e||"object"!=typeof e)return!1;if(Array.isArray(e)){for(let s=0,r=e.length;s<r;s++)if(t(e[s]))return!0;return!1}if(tp(e))return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1==arguments.length)return t(e.toJSON(),!0);for(let s in e)if(Object.prototype.hasOwnProperty.call(e,s)&&t(e[s]))return!0;return!1}(t)?this.encodeAsBinary({type:t.type===n.EVENT?n.BINARY_EVENT:n.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){let e=""+t.type;return(t.type===n.BINARY_EVENT||t.type===n.BINARY_ACK)&&(e+=t.attachments+"-"),t.nsp&&"/"!==t.nsp&&(e+=t.nsp+","),null!=t.id&&(e+=t.id),null!=t.data&&(e+=JSON.stringify(t.data,this.replacer)),e}encodeAsBinary(t){let e=function(t){let e=[],s=t.data;return t.data=function t(e,s){if(!e)return e;if(tp(e)){let t={_placeholder:!0,num:s.length};return s.push(e),t}if(Array.isArray(e)){let r=Array(e.length);for(let i=0;i<e.length;i++)r[i]=t(e[i],s);return r}if("object"==typeof e&&!(e instanceof Date)){let r={};for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=t(e[i],s));return r}return e}(s,e),t.attachments=e.length,{packet:t,buffers:e}}(t),s=this.encodeAsString(e.packet),r=e.buffers;return r.unshift(s),r}}function tg(t){return"[object Object]"===Object.prototype.toString.call(t)}class tm extends R{constructor(t){super(),this.reviver=t}add(t){let e;if("string"==typeof t){if(this.reconstructor)throw Error("got plaintext data when reconstructing a packet");let s=(e=this.decodeString(t)).type===n.BINARY_EVENT;s||e.type===n.BINARY_ACK?(e.type=s?n.EVENT:n.ACK,this.reconstructor=new t_(e),0===e.attachments&&super.emitReserved("decoded",e)):super.emitReserved("decoded",e)}else if(tp(t)||t.base64)if(this.reconstructor)(e=this.reconstructor.takeBinaryData(t))&&(this.reconstructor=null,super.emitReserved("decoded",e));else throw Error("got binary data when not reconstructing a packet");else throw Error("Unknown type: "+t)}decodeString(t){let e=0,s={type:Number(t.charAt(0))};if(void 0===n[s.type])throw Error("unknown packet type "+s.type);if(s.type===n.BINARY_EVENT||s.type===n.BINARY_ACK){let r=e+1;for(;"-"!==t.charAt(++e)&&e!=t.length;);let i=t.substring(r,e);if(i!=Number(i)||"-"!==t.charAt(e))throw Error("Illegal attachments");s.attachments=Number(i)}if("/"===t.charAt(e+1)){let r=e+1;for(;++e&&","!==t.charAt(e)&&e!==t.length;);s.nsp=t.substring(r,e)}else s.nsp="/";let r=t.charAt(e+1);if(""!==r&&Number(r)==r){let r=e+1;for(;++e;){let s=t.charAt(e);if(null==s||Number(s)!=s){--e;break}if(e===t.length)break}s.id=Number(t.substring(r,e+1))}if(t.charAt(++e)){let r=this.tryParse(t.substr(e));if(tm.isPayloadValid(s.type,r))s.data=r;else throw Error("invalid payload")}return s}tryParse(t){try{return JSON.parse(t,this.reviver)}catch(t){return!1}}static isPayloadValid(t,e){switch(t){case n.CONNECT:return tg(e);case n.DISCONNECT:return void 0===e;case n.CONNECT_ERROR:return"string"==typeof e||tg(e);case n.EVENT:case n.BINARY_EVENT:return Array.isArray(e)&&("number"==typeof e[0]||"string"==typeof e[0]&&-1===td.indexOf(e[0]));case n.ACK:case n.BINARY_ACK:return Array.isArray(e)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class t_{constructor(t){this.packet=t,this.buffers=[],this.reconPack=t}takeBinaryData(t){if(this.buffers.push(t),this.buffers.length===this.reconPack.attachments){var e,s;let t=(e=this.reconPack,s=this.buffers,e.data=function t(e,s){if(!e)return e;if(e&&!0===e._placeholder){if("number"==typeof e.num&&e.num>=0&&e.num<s.length)return s[e.num];throw Error("illegal attachments")}if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=t(e[r],s);else if("object"==typeof e)for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=t(e[r],s));return e}(e.data,s),delete e.attachments,e);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function tb(t,e,s){return t.on(e,s),function(){t.off(e,s)}}let tv=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class tk extends R{constructor(t,e,s){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=t,this.nsp=e,s&&s.auth&&(this.auth=s.auth),this._opts=Object.assign({},s),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let t=this.io;this.subs=[tb(t,"open",this.onopen.bind(this)),tb(t,"packet",this.onpacket.bind(this)),tb(t,"error",this.onerror.bind(this)),tb(t,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...t){return t.unshift("message"),this.emit.apply(this,t),this}emit(t,...e){var s,r,i;if(tv.hasOwnProperty(t))throw Error('"'+t.toString()+'" is a reserved event name');if(e.unshift(t),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(e),this;let o={type:n.EVENT,data:e};if(o.options={},o.options.compress=!1!==this.flags.compress,"function"==typeof e[e.length-1]){let t=this.ids++,s=e.pop();this._registerAckCallback(t,s),o.id=t}let a=null==(r=null==(s=this.io.engine)?void 0:s.transport)?void 0:r.writable,h=this.connected&&!(null==(i=this.io.engine)?void 0:i._hasPingExpired());return this.flags.volatile&&!a||(h?(this.notifyOutgoingListeners(o),this.packet(o)):this.sendBuffer.push(o)),this.flags={},this}_registerAckCallback(t,e){var s;let r=null!=(s=this.flags.timeout)?s:this._opts.ackTimeout;if(void 0===r){this.acks[t]=e;return}let i=this.io.setTimeoutFn(()=>{delete this.acks[t];for(let e=0;e<this.sendBuffer.length;e++)this.sendBuffer[e].id===t&&this.sendBuffer.splice(e,1);e.call(this,Error("operation has timed out"))},r),n=(...t)=>{this.io.clearTimeoutFn(i),e.apply(this,t)};n.withError=!0,this.acks[t]=n}emitWithAck(t,...e){return new Promise((s,r)=>{let i=(t,e)=>t?r(t):s(e);i.withError=!0,e.push(i),this.emit(t,...e)})}_addToQueue(t){let e;"function"==typeof t[t.length-1]&&(e=t.pop());let s={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((t,...r)=>{if(s===this._queue[0])return null!==t?s.tryCount>this._opts.retries&&(this._queue.shift(),e&&e(t)):(this._queue.shift(),e&&e(null,...r)),s.pending=!1,this._drainQueue()}),this._queue.push(s),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||0===this._queue.length)return;let e=this._queue[0];(!e.pending||t)&&(e.pending=!0,e.tryCount++,this.flags=e.flags,this.emit.apply(this,e.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){"function"==typeof this.auth?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:n.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,e){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,e),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(e=>String(e.id)===t)){let e=this.acks[t];delete this.acks[t],e.withError&&e.call(this,Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case n.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case n.EVENT:case n.BINARY_EVENT:this.onevent(t);break;case n.ACK:case n.BINARY_ACK:this.onack(t);break;case n.DISCONNECT:this.ondisconnect();break;case n.CONNECT_ERROR:this.destroy();let e=Error(t.data.message);e.data=t.data.data,this.emitReserved("connect_error",e)}}onevent(t){let e=t.data||[];null!=t.id&&e.push(this.ack(t.id)),this.connected?this.emitEvent(e):this.receiveBuffer.push(Object.freeze(e))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length)for(let e of this._anyListeners.slice())e.apply(this,t);super.emit.apply(this,t),this._pid&&t.length&&"string"==typeof t[t.length-1]&&(this._lastOffset=t[t.length-1])}ack(t){let e=this,s=!1;return function(...r){s||(s=!0,e.packet({type:n.ACK,id:t,data:r}))}}onack(t){let e=this.acks[t.id];"function"==typeof e&&(delete this.acks[t.id],e.withError&&t.data.unshift(null),e.apply(this,t.data))}onconnect(t,e){this.id=t,this.recovered=e&&this._pid===e,this._pid=e,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:n.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){let e=this._anyListeners;for(let s=0;s<e.length;s++)if(t===e[s]){e.splice(s,1);break}}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(t),this}prependAnyOutgoing(t){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(t),this}offAnyOutgoing(t){if(!this._anyOutgoingListeners)return this;if(t){let e=this._anyOutgoingListeners;for(let s=0;s<e.length;s++)if(t===e[s]){e.splice(s,1);break}}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(t){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length)for(let e of this._anyOutgoingListeners.slice())e.apply(this,t.data)}}function tw(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}tw.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),s=Math.floor(e*this.jitter*t);t=(1&Math.floor(10*e))==0?t-s:t+s}return 0|Math.min(t,this.max)},tw.prototype.reset=function(){this.attempts=0},tw.prototype.setMin=function(t){this.ms=t},tw.prototype.setMax=function(t){this.max=t},tw.prototype.setJitter=function(t){this.jitter=t};class tE extends R{constructor(t,e){var s;super(),this.nsps={},this.subs=[],t&&"object"==typeof t&&(e=t,t=void 0),(e=e||{}).path=e.path||"/socket.io",this.opts=e,L(this,e),this.reconnection(!1!==e.reconnection),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor(null!=(s=e.randomizationFactor)?s:.5),this.backoff=new tw({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==e.timeout?2e4:e.timeout),this._readyState="closed",this.uri=t;let r=e.parser||o;this.encoder=new r.Encoder,this.decoder=new r.Decoder,this._autoConnect=!1!==e.autoConnect,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,t||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(t){return void 0===t?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var e;return void 0===t?this._reconnectionDelay:(this._reconnectionDelay=t,null==(e=this.backoff)||e.setMin(t),this)}randomizationFactor(t){var e;return void 0===t?this._randomizationFactor:(this._randomizationFactor=t,null==(e=this.backoff)||e.setJitter(t),this)}reconnectionDelayMax(t){var e;return void 0===t?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,null==(e=this.backoff)||e.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new to(this.uri,this.opts);let e=this.engine,s=this;this._readyState="opening",this.skipReconnect=!1;let r=tb(e,"open",function(){s.onopen(),t&&t()}),i=e=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",e),t?t(e):this.maybeReconnectOnOpen()},n=tb(e,"error",i);if(!1!==this._timeout){let t=this._timeout,s=this.setTimeoutFn(()=>{r(),i(Error("timeout")),e.close()},t);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}return this.subs.push(r),this.subs.push(n),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let t=this.engine;this.subs.push(tb(t,"ping",this.onping.bind(this)),tb(t,"data",this.ondata.bind(this)),tb(t,"error",this.onerror.bind(this)),tb(t,"close",this.onclose.bind(this)),tb(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(t){this.onclose("parse error",t)}}ondecoded(t){C(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,e){let s=this.nsps[t];return s?this._autoConnect&&!s.active&&s.connect():(s=new tk(this,t,e),this.nsps[t]=s),s}_destroy(t){for(let t of Object.keys(this.nsps))if(this.nsps[t].active)return;this._close()}_packet(t){let e=this.encoder.encode(t);for(let s=0;s<e.length;s++)this.engine.write(e[s],t.options)}cleanup(){this.subs.forEach(t=>t()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(t,e){var s;this.cleanup(),null==(s=this.engine)||s.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,e),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let e=this.backoff.duration();this._reconnecting=!0;let s=this.setTimeoutFn(()=>{!t.skipReconnect&&(this.emitReserved("reconnect_attempt",t.backoff.attempts),t.skipReconnect||t.open(e=>{e?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",e)):t.onreconnect()}))},e);this.opts.autoUnref&&s.unref(),this.subs.push(()=>{this.clearTimeoutFn(s)})}}onreconnect(){let t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}let tA={};function tT(t,e){let s;"object"==typeof t&&(e=t,t=void 0);let r=function(t,e="",s){let r=t;s=s||"undefined"!=typeof location&&location,null==t&&(t=s.protocol+"//"+s.host),"string"==typeof t&&("/"===t.charAt(0)&&(t="/"===t.charAt(1)?s.protocol+t:s.host+t),/^(https?|wss?):\/\//.test(t)||(t=void 0!==s?s.protocol+"//"+t:"https://"+t),r=te(t)),!r.port&&(/^(http|ws)$/.test(r.protocol)?r.port="80":/^(http|ws)s$/.test(r.protocol)&&(r.port="443")),r.path=r.path||"/";let i=-1!==r.host.indexOf(":")?"["+r.host+"]":r.host;return r.id=r.protocol+"://"+i+":"+r.port+e,r.href=r.protocol+"://"+i+(s&&s.port===r.port?"":":"+r.port),r}(t,(e=e||{}).path||"/socket.io"),i=r.source,n=r.id,o=r.path,a=tA[n]&&o in tA[n].nsps;return e.forceNew||e["force new connection"]||!1===e.multiplex||a?s=new tE(i,e):(tA[n]||(tA[n]=new tE(i,e)),s=tA[n]),r.query&&!e.query&&(e.query=r.queryKey),s.socket(r.path,e)}Object.assign(tT,{Manager:tE,Socket:tk,io:tT,connect:tT})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[551],{1551:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Image",{enumerable:!0,get:function(){return _}});let n=r(9852),i=r(3593),o=r(8593),a=i._(r(2421)),l=n._(r(1400)),s=n._(r(2663)),u=r(9819),d=r(7944),c=r(2328);r(5750);let f=r(2253),p=n._(r(7073)),m=r(9542),g={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1};function h(e,t,r,n,i,o,a){let l=null==e?void 0:e.src;e&&e["data-loaded-src"]!==l&&(e["data-loaded-src"]=l,("decode"in e?e.decode():Promise.resolve()).catch(()=>{}).then(()=>{if(e.parentElement&&e.isConnected){if("empty"!==t&&i(!0),null==r?void 0:r.current){let t=new Event("load");Object.defineProperty(t,"target",{writable:!1,value:e});let n=!1,i=!1;r.current({...t,nativeEvent:t,currentTarget:e,target:e,isDefaultPrevented:()=>n,isPropagationStopped:()=>i,persist:()=>{},preventDefault:()=>{n=!0,t.preventDefault()},stopPropagation:()=>{i=!0,t.stopPropagation()}})}(null==n?void 0:n.current)&&n.current(e)}}))}function b(e){return a.use?{fetchPriority:e}:{fetchpriority:e}}let v=(0,a.forwardRef)((e,t)=>{let{src:r,srcSet:n,sizes:i,height:l,width:s,decoding:u,className:d,style:c,fetchPriority:f,placeholder:p,loading:g,unoptimized:v,fill:y,onLoadRef:_,onLoadingCompleteRef:w,setBlurComplete:j,setShowAltText:x,sizesInput:C,onLoad:O,onError:S,...E}=e,P=(0,a.useCallback)(e=>{e&&(S&&(e.src=e.src),e.complete&&h(e,p,_,w,j,v,C))},[r,p,_,w,j,S,v,C]),M=(0,m.useMergedRef)(t,P);return(0,o.jsx)("img",{...E,...b(f),loading:g,width:s,height:l,decoding:u,"data-nimg":y?"fill":"1",className:d,style:c,sizes:i,srcSet:n,src:r,ref:M,onLoad:e=>{h(e.currentTarget,p,_,w,j,v,C)},onError:e=>{x(!0),"empty"!==p&&j(!0),S&&S(e)}})});function y(e){let{isAppRouter:t,imgAttributes:r}=e,n={as:"image",imageSrcSet:r.srcSet,imageSizes:r.sizes,crossOrigin:r.crossOrigin,referrerPolicy:r.referrerPolicy,...b(r.fetchPriority)};return t&&l.default.preload?(l.default.preload(r.src,n),null):(0,o.jsx)(s.default,{children:(0,o.jsx)("link",{rel:"preload",href:r.srcSet?void 0:r.src,...n},"__nimg-"+r.src+r.srcSet+r.sizes)})}let _=(0,a.forwardRef)((e,t)=>{let r=(0,a.useContext)(f.RouterContext),n=(0,a.useContext)(c.ImageConfigContext),i=(0,a.useMemo)(()=>{var e;let t=g||n||d.imageConfigDefault,r=[...t.deviceSizes,...t.imageSizes].sort((e,t)=>e-t),i=t.deviceSizes.sort((e,t)=>e-t),o=null==(e=t.qualities)?void 0:e.sort((e,t)=>e-t);return{...t,allSizes:r,deviceSizes:i,qualities:o}},[n]),{onLoad:l,onLoadingComplete:s}=e,m=(0,a.useRef)(l);(0,a.useEffect)(()=>{m.current=l},[l]);let h=(0,a.useRef)(s);(0,a.useEffect)(()=>{h.current=s},[s]);let[b,_]=(0,a.useState)(!1),[w,j]=(0,a.useState)(!1),{props:x,meta:C}=(0,u.getImgProps)(e,{defaultLoader:p.default,imgConf:i,blurComplete:b,showAltText:w});return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(v,{...x,unoptimized:C.unoptimized,placeholder:C.placeholder,fill:C.fill,onLoadRef:m,onLoadingCompleteRef:h,setBlurComplete:_,setShowAltText:j,sizesInput:e.sizes,ref:t}),C.priority?(0,o.jsx)(y,{isAppRouter:!r,imgAttributes:x}):null]})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1792:(e,t)=>{function r(e){let{ampFirst:t=!1,hybrid:r=!1,hasQuery:n=!1}=void 0===e?{}:e;return t||r&&n}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isInAmpMode",{enumerable:!0,get:function(){return r}})},2253:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"RouterContext",{enumerable:!0,get:function(){return n}});let n=r(9852)._(r(2421)).default.createContext(null)},2328:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageConfigContext",{enumerable:!0,get:function(){return o}});let n=r(9852)._(r(2421)),i=r(7944),o=n.default.createContext(i.imageConfigDefault)},2663:(e,t,r)=>{var n=r(525);Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return h},defaultHead:function(){return f}});let i=r(9852),o=r(3593),a=r(8593),l=o._(r(2421)),s=i._(r(8573)),u=r(5912),d=r(9734),c=r(1792);function f(e){void 0===e&&(e=!1);let t=[(0,a.jsx)("meta",{charSet:"utf-8"},"charset")];return e||t.push((0,a.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")),t}function p(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===l.default.Fragment?e.concat(l.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}r(5750);let m=["name","httpEquiv","charSet","itemProp"];function g(e,t){let{inAmpMode:r}=t;return e.reduce(p,[]).reverse().concat(f(r).reverse()).filter(function(){let e=new Set,t=new Set,r=new Set,n={};return i=>{let o=!0,a=!1;if(i.key&&"number"!=typeof i.key&&i.key.indexOf("$")>0){a=!0;let t=i.key.slice(i.key.indexOf("$")+1);e.has(t)?o=!1:e.add(t)}switch(i.type){case"title":case"base":t.has(i.type)?o=!1:t.add(i.type);break;case"meta":for(let e=0,t=m.length;e<t;e++){let t=m[e];if(i.props.hasOwnProperty(t))if("charSet"===t)r.has(t)?o=!1:r.add(t);else{let e=i.props[t],r=n[t]||new Set;("name"!==t||!a)&&r.has(e)?o=!1:(r.add(e),n[t]=r)}}}return o}}()).reverse().map((e,t)=>{let i=e.key||t;if(n.env.__NEXT_OPTIMIZE_FONTS&&!r&&"link"===e.type&&e.props.href&&["https://fonts.googleapis.com/css","https://use.typekit.net/"].some(t=>e.props.href.startsWith(t))){let t={...e.props||{}};return t["data-href"]=t.href,t.href=void 0,t["data-optimized-fonts"]=!0,l.default.cloneElement(e,t)}return l.default.cloneElement(e,{key:i})})}let h=function(e){let{children:t}=e,r=(0,l.useContext)(u.AmpStateContext),n=(0,l.useContext)(d.HeadManagerContext);return(0,a.jsx)(s.default,{reduceComponentsToState:g,headManager:n,inAmpMode:(0,c.isInAmpMode)(r),children:t})};("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},2788:(e,t)=>{function r(e){let{widthInt:t,heightInt:r,blurWidth:n,blurHeight:i,blurDataURL:o,objectFit:a}=e,l=n?40*n:t,s=i?40*i:r,u=l&&s?"viewBox='0 0 "+l+" "+s+"'":"";return"%3Csvg xmlns='http://www.w3.org/2000/svg' "+u+"%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='20'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='"+(u?"none":"contain"===a?"xMidYMid":"cover"===a?"xMidYMid slice":"none")+"' style='filter: url(%23b);' href='"+o+"'/%3E%3C/svg%3E"}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImageBlurSvg",{enumerable:!0,get:function(){return r}})},5912:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AmpStateContext",{enumerable:!0,get:function(){return n}});let n=r(9852)._(r(2421)).default.createContext({})},7073:(e,t)=>{function r(e){var t;let{config:r,src:n,width:i,quality:o}=e,a=o||(null==(t=r.qualities)?void 0:t.reduce((e,t)=>Math.abs(t-75)<Math.abs(e-75)?t:e))||75;return r.path+"?url="+encodeURIComponent(n)+"&w="+i+"&q="+a+(n.startsWith("/_next/static/media/"),"")}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return n}}),r.__next_img_default=!0;let n=r},7944:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{VALID_LOADERS:function(){return r},imageConfigDefault:function(){return n}});let r=["default","imgix","cloudinary","akamai","custom"],n={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:60,formats:["image/webp"],dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:void 0,unoptimized:!1}},8573:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let n=r(2421),i=n.useLayoutEffect,o=n.useEffect;function a(e){let{headManager:t,reduceComponentsToState:r}=e;function a(){if(t&&t.mountedInstances){let i=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(i,e))}}return i(()=>{var r;return null==t||null==(r=t.mountedInstances)||r.add(e.children),()=>{var r;null==t||null==(r=t.mountedInstances)||r.delete(e.children)}}),i(()=>(t&&(t._pendingUpdate=a),()=>{t&&(t._pendingUpdate=a)})),o(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},9819:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getImgProps",{enumerable:!0,get:function(){return s}}),r(5750);let n=r(2788),i=r(7944),o=["-moz-initial","fill","none","scale-down",void 0];function a(e){return void 0!==e.default}function l(e){return void 0===e?e:"number"==typeof e?Number.isFinite(e)?e:NaN:"string"==typeof e&&/^[0-9]+$/.test(e)?parseInt(e,10):NaN}function s(e,t){var r,s;let u,d,c,{src:f,sizes:p,unoptimized:m=!1,priority:g=!1,loading:h,className:b,quality:v,width:y,height:_,fill:w=!1,style:j,overrideSrc:x,onLoad:C,onLoadingComplete:O,placeholder:S="empty",blurDataURL:E,fetchPriority:P,decoding:M="async",layout:R,objectFit:z,objectPosition:I,lazyBoundary:k,lazyRoot:A,...D}=e,{imgConf:N,showAltText:T,blurComplete:F,defaultLoader:U}=t,L=N||i.imageConfigDefault;if("allSizes"in L)u=L;else{let e=[...L.deviceSizes,...L.imageSizes].sort((e,t)=>e-t),t=L.deviceSizes.sort((e,t)=>e-t),n=null==(r=L.qualities)?void 0:r.sort((e,t)=>e-t);u={...L,allSizes:e,deviceSizes:t,qualities:n}}if(void 0===U)throw Object.defineProperty(Error("images.loaderFile detected but the file is missing default export.\nRead more: https://nextjs.org/docs/messages/invalid-images-config"),"__NEXT_ERROR_CODE",{value:"E163",enumerable:!1,configurable:!0});let B=D.loader||U;delete D.loader,delete D.srcSet;let q="__next_img_default"in B;if(q){if("custom"===u.loader)throw Object.defineProperty(Error('Image with src "'+f+'" is missing "loader" prop.\nRead more: https://nextjs.org/docs/messages/next-image-missing-loader'),"__NEXT_ERROR_CODE",{value:"E252",enumerable:!1,configurable:!0})}else{let e=B;B=t=>{let{config:r,...n}=t;return e(n)}}if(R){"fill"===R&&(w=!0);let e={intrinsic:{maxWidth:"100%",height:"auto"},responsive:{width:"100%",height:"auto"}}[R];e&&(j={...j,...e});let t={responsive:"100vw",fill:"100vw"}[R];t&&!p&&(p=t)}let G="",W=l(y),X=l(_);if((s=f)&&"object"==typeof s&&(a(s)||void 0!==s.src)){let e=a(f)?f.default:f;if(!e.src)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include src. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E460",enumerable:!1,configurable:!0});if(!e.height||!e.width)throw Object.defineProperty(Error("An object should only be passed to the image component src parameter if it comes from a static image import. It must include height and width. Received "+JSON.stringify(e)),"__NEXT_ERROR_CODE",{value:"E48",enumerable:!1,configurable:!0});if(d=e.blurWidth,c=e.blurHeight,E=E||e.blurDataURL,G=e.src,!w)if(W||X){if(W&&!X){let t=W/e.width;X=Math.round(e.height*t)}else if(!W&&X){let t=X/e.height;W=Math.round(e.width*t)}}else W=e.width,X=e.height}let H=!g&&("lazy"===h||void 0===h);(!(f="string"==typeof f?f:G)||f.startsWith("data:")||f.startsWith("blob:"))&&(m=!0,H=!1),u.unoptimized&&(m=!0),q&&!u.dangerouslyAllowSVG&&f.split("?",1)[0].endsWith(".svg")&&(m=!0);let V=l(v),$=Object.assign(w?{position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,objectFit:z,objectPosition:I}:{},T?{}:{color:"transparent"},j),J=F||"empty"===S?null:"blur"===S?'url("data:image/svg+xml;charset=utf-8,'+(0,n.getImageBlurSvg)({widthInt:W,heightInt:X,blurWidth:d,blurHeight:c,blurDataURL:E||"",objectFit:$.objectFit})+'")':'url("'+S+'")',Y=o.includes($.objectFit)?"fill"===$.objectFit?"100% 100%":"cover":$.objectFit,Z=J?{backgroundSize:Y,backgroundPosition:$.objectPosition||"50% 50%",backgroundRepeat:"no-repeat",backgroundImage:J}:{},K=function(e){let{config:t,src:r,unoptimized:n,width:i,quality:o,sizes:a,loader:l}=e;if(n)return{src:r,srcSet:void 0,sizes:void 0};let{widths:s,kind:u}=function(e,t,r){let{deviceSizes:n,allSizes:i}=e;if(r){let e=/(^|\s)(1?\d?\d)vw/g,t=[];for(let n;n=e.exec(r);)t.push(parseInt(n[2]));if(t.length){let e=.01*Math.min(...t);return{widths:i.filter(t=>t>=n[0]*e),kind:"w"}}return{widths:i,kind:"w"}}return"number"!=typeof t?{widths:n,kind:"w"}:{widths:[...new Set([t,2*t].map(e=>i.find(t=>t>=e)||i[i.length-1]))],kind:"x"}}(t,i,a),d=s.length-1;return{sizes:a||"w"!==u?a:"100vw",srcSet:s.map((e,n)=>l({config:t,src:r,quality:o,width:e})+" "+("w"===u?e:n+1)+u).join(", "),src:l({config:t,src:r,quality:o,width:s[d]})}}({config:u,src:f,unoptimized:m,width:W,quality:V,sizes:p,loader:B});return{props:{...D,loading:H?"lazy":h,fetchPriority:P,width:W,height:X,decoding:M,className:b,style:{...$,...Z},sizes:K.sizes,srcSet:K.srcSet,src:x||K.src},meta:{unoptimized:m,priority:g,placeholder:S,fill:w}}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[651],{34:(e,t,r)=>{r.d(t,{m:()=>o});var a=r(8593),l=r(6532),i=r(2421),s=r(7258);let n=i.forwardRef((e,t)=>{let{sideOffset:r=6,children:i,...n}=e;return(0,a.jsx)(l.ZL,{children:(0,a.jsx)(l.UC,{...n,className:(0,s.cn)("z-20 rounded-md border border-slate-6 bg-black px-3 py-2 text-white text-xs","font-sans max-w-60"),ref:t,sideOffset:r,children:i})})});n.displayName="TooltipContent";let o=Object.assign(e=>{let{children:t,...r}=e;return(0,a.jsx)(l.bL,{...r,children:t})},{Arrow:l.PR,Provider:l.Bc,Content:n,Trigger:l.k$})},170:(e,t,r)=>{r.r(t),r.d(t,{Button:()=>c});var a=r(8593),l=r(5996),i=r(9579);let s=JSON.parse('{"v":"5.12.1","fr":60,"ip":0,"op":150,"w":144,"h":144,"nm":"system-regular-716-spinner-three-dots","ddd":0,"assets":[{"id":"comp_1","nm":"hover-trapdoor","fr":60,"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Ellipse 31","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.085,"y":1},"o":{"x":0.333,"y":0},"t":46,"s":[120,72,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.085,"y":0.085},"o":{"x":0.373,"y":0.373},"t":76,"s":[120,23,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.631,"y":1},"o":{"x":0.658,"y":0},"t":83.572,"s":[120,23,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.352,"y":1},"o":{"x":0.333,"y":0},"t":104.715,"s":[120,87,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.58,"y":1},"o":{"x":0.333,"y":0},"t":128.572,"s":[120,67,0],"to":[0,0,0],"ti":[0,0,0]},{"t":150,"s":[120,72,0]}],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[27,27],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3,"x":"var $bm_rt;\\n$bm_rt = comp(\'system-regular-716-spinner-three-dots\').layer(\'control\').effect(\'primary\')(\'Color\');"},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":9,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":".primary","mn":"ADBE Vector Graphic - Stroke","hd":false,"cl":"primary"},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 28","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":1800,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Ellipse 30","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.085,"y":1},"o":{"x":0.333,"y":0},"t":23,"s":[72,72,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.085,"y":0.085},"o":{"x":0.373,"y":0.373},"t":53,"s":[72,23,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.631,"y":1},"o":{"x":0.658,"y":0},"t":76,"s":[72,23,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.352,"y":1},"o":{"x":0.333,"y":0},"t":97.143,"s":[72,87,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.58,"y":1},"o":{"x":0.333,"y":0},"t":121,"s":[72,67,0],"to":[0,0,0],"ti":[0,0,0]},{"t":142.427734375,"s":[72,72,0]}],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[27,27],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3,"x":"var $bm_rt;\\n$bm_rt = comp(\'system-regular-716-spinner-three-dots\').layer(\'control\').effect(\'primary\')(\'Color\');"},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":9,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":".primary","mn":"ADBE Vector Graphic - Stroke","hd":false,"cl":"primary"},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 28","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":1800,"st":0,"ct":1,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Ellipse 29","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.085,"y":1},"o":{"x":0.333,"y":0},"t":0,"s":[24,72,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.085,"y":0.085},"o":{"x":0.373,"y":0.373},"t":30,"s":[24,23,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.631,"y":1},"o":{"x":0.658,"y":0},"t":70.572,"s":[24,23,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.352,"y":1},"o":{"x":0.333,"y":0},"t":91.715,"s":[24,87,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.58,"y":1},"o":{"x":0.333,"y":0},"t":115.572,"s":[24,67,0],"to":[0,0,0],"ti":[0,0,0]},{"t":137,"s":[24,72,0]}],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[27,27],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[0,0,0,1],"ix":3,"x":"var $bm_rt;\\n$bm_rt = comp(\'system-regular-716-spinner-three-dots\').layer(\'control\').effect(\'primary\')(\'Color\');"},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":9,"ix":5},"lc":2,"lj":1,"ml":4,"bm":0,"nm":".primary","mn":"ADBE Vector Graphic - Stroke","hd":false,"cl":"primary"},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 28","np":2,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":0,"op":1799,"st":-1,"ct":1,"bm":0}]}],"layers":[{"ddd":0,"ind":1,"ty":3,"nm":"control","sr":1,"ks":{"o":{"a":0,"k":0,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[0,0],"ix":2,"l":2},"a":{"a":0,"k":[0,0,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"ef":[{"ty":5,"nm":"primary","np":3,"mn":"ADBE Color Control","ix":1,"en":1,"ef":[{"ty":2,"nm":"Color","mn":"ADBE Color Control-0001","ix":1,"v":{"a":0,"k":[0,0,0],"ix":1}}]}],"ip":0,"op":2112,"st":0,"bm":0},{"ddd":0,"ind":3,"ty":0,"nm":"hover-trapdoor","refId":"comp_1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[72,72,0],"ix":2,"l":2},"a":{"a":0,"k":[72,72,0],"ix":1,"l":2},"s":{"a":0,"k":[100,100,100],"ix":6,"l":2}},"ao":0,"w":144,"h":144,"ip":0,"op":160,"st":0,"bm":0}],"markers":[{"tm":0,"cm":"default:hover-trapdoor","dr":150}],"props":{}}');var n=r(7618),o=r(4955);let c=e=>{let{asChild:t,appearance:r="white",className:o,children:c,size:C="2",loading:h,ref:p,...u}=e,m=t?i.DX:"button";return(0,a.jsxs)(m,{ref:p,type:"button",...u,className:(0,n.cn)(x(C),d(r),"inline-flex items-center justify-center gap-2 border font-medium",o),"aria-disabled":h,children:[(0,a.jsx)("span",{className:(0,n.cn)("-ml-7 opacity-0 transition-opacity duration-200",h&&"opacity-100"),children:(0,a.jsx)(l.GL,{data:s,autoplay:!1,className:"h-5 w-5",loop:!0})}),(0,a.jsx)(i.xV,{children:c})]})};c.displayName="Button";let d=e=>{switch(e){case void 0:case"white":return["border-white bg-white text-black transition-colors duration-200 ease-in-out","hover:bg-white/90","focus:bg-white/90 focus:outline-none focus:ring-2 focus:ring-white/20","mt-2 mb-4 aria-disabled:border-transparent aria-disabled:bg-slate-11"];case"gradient":return["bg-gradient border-[#34343A] backdrop-blur-[1.25rem]","hover:bg-gradientHover","focus:bg-gradientHover focus:outline-none focus:ring-2 focus:ring-white/20"];default:(0,o.H)(e)}},x=e=>{switch(e){case"1":return"";case void 0:case"2":return"text-[.875rem] h-8 px-3 rounded-md gap-2";case"3":return"text-[.875rem] h-10 px-4 rounded-md gap-2";case"4":return"text-base h-11 px-4 rounded-md gap-2";default:(0,o.H)(e)}}},1166:(e,t,r)=>{r.d(t,{A:()=>a});let a={jsx:"React",markup:"HTML",markdown:"Plain Text"}},1598:(e,t,r)=>{r.d(t,{D:()=>n});var a=r(8593),l=r(9579),i=r(2421),s=r(7258);let n=i.forwardRef((e,t)=>{let{as:r="h1",size:i="3",className:n,color:x="white",children:C,weight:h="bold",...p}=e;return(0,a.jsx)(l.DX,{className:(0,s.cn)(n,o(i),c(x),d(h)),ref:t,...p,children:(0,a.jsx)(r,{children:C})})}),o=e=>{switch(e){case"1":return"text-xs";case"2":return"text-sm";case void 0:case"3":return"text-base";case"4":return"text-lg";case"5":return"text-xl tracking-[-0.16px]";case"6":return"text-2xl tracking-[-0.288px]";case"7":return"text-[28px] leading-[34px] tracking-[-0.416px]";case"8":return"text-[35px] leading-[42px] tracking-[-0.64px]";case"9":return"text-6xl leading-[73px] tracking-[-0.896px]";case"10":return["text-[38px] leading-[46px]","md:text-[70px] md:leading-[85px] tracking-[-1.024px;]"];default:return(0,s.HB)(e)}},c=e=>{switch(e){case"gray":return"text-slate-11";case"white":case void 0:return"text-slate-12";default:return(0,s.HB)(e)}},d=e=>{switch(e){case"medium":return"font-medium";case"bold":case void 0:return"font-bold";default:return(0,s.HB)(e)}};n.displayName="Heading"},1704:(e,t,r)=>{r.d(t,{Hf:()=>l});var a=r(525);a.env.EMAILS_DIR_RELATIVE_PATH,a.env.USER_PROJECT_LOCATION,a.env.EMAILS_DIR_ABSOLUTE_PATH;let l="true"===a.env.NEXT_PUBLIC_IS_BUILDING;a.env.NEXT_PUBLIC_IS_PREVIEW_DEVELOPMENT},1735:(e,t,r)=>{r.r(t),r.d(t,{Topbar:()=>x});var a=r(8593),l=r(2421),i=r(7258),s=r(1598),n=r(2180);let o=l.forwardRef((e,t)=>{let{...r}=e;return(0,a.jsxs)(n.z,{ref:t,...r,children:[(0,a.jsx)("path",{d:"M15.4697 15.5303C15.7626 15.8232 16.2374 15.8232 16.5303 15.5303C16.8232 15.2374 16.8232 14.7626 16.5303 14.4697L14.0607 12L16.5303 9.53033C16.8232 9.23744 16.8232 8.76256 16.5303 8.46967C16.2374 8.17678 15.7626 8.17678 15.4697 8.46967L12.4697 11.4697C12.1768 11.7626 12.1768 12.2374 12.4697 12.5303L15.4697 15.5303Z",fill:"currentColor"}),(0,a.jsx)("path",{clipRule:"evenodd",d:"M19 2.25H5C3.48122 2.25 2.25 3.48122 2.25 5V19C2.25 20.5188 3.48122 21.75 5 21.75L19 21.75C20.5188 21.75 21.75 20.5188 21.75 19L21.75 5C21.75 3.48122 20.5188 2.25 19 2.25ZM19 20.25C19.6904 20.25 20.25 19.6904 20.25 19L20.25 5C20.25 4.30964 19.6904 3.75 19 3.75L9.75 3.75L9.75 20.25L19 20.25ZM8.25 20.25L8.25 3.75L5 3.75C4.30965 3.75 3.75 4.30965 3.75 5L3.75 19C3.75 19.6904 4.30965 20.25 5 20.25H8.25Z",fill:"currentColor",fillRule:"evenodd"})]})});o.displayName="IconHideSidebar";var c=r(7662),d=r(34);let x=e=>{let{emailTitle:t,children:r,className:n,...x}=e,{toggleSidebar:C}=(0,l.use)(c.a);return(0,a.jsx)(d.m.Provider,{children:(0,a.jsxs)("header",{...x,className:(0,i.cn)("flex h-14 items-center justify-between gap-3 border-slate-6 border-b px-3 py-2",n),children:[(0,a.jsxs)("div",{className:"flex w-fit items-center gap-3",children:[(0,a.jsxs)(d.m,{children:[(0,a.jsx)(d.m.Trigger,{asChild:!0,children:(0,a.jsx)("button",{className:"hidden rounded-lg px-2 py-2 text-slate-11 transition duration-200 ease-in-out hover:bg-slate-5 hover:text-slate-12 lg:flex",onClick:()=>{C()},type:"button",children:(0,a.jsx)(o,{height:20,width:20})})}),(0,a.jsx)(d.m.Content,{children:"Show/hide sidebar"})]}),(0,a.jsx)("div",{className:"hidden items-center overflow-hidden text-center lg:flex",children:(0,a.jsx)(s.D,{as:"h2",className:"truncate",size:"2",weight:"medium",children:t})})]}),(0,a.jsx)("div",{className:"flex w-full items-center justify-between gap-3 lg:w-fit lg:justify-start",children:r})]})})}},2180:(e,t,r)=>{r.d(t,{z:()=>l});var a=r(8593);let l=r(2421).forwardRef((e,t)=>{let{size:r=20,children:l,...i}=e;return(0,a.jsx)("svg",{fill:"none",height:r,ref:t,viewBox:"0 0 24 24",width:r,xmlns:"http://www.w3.org/2000/svg",...i,children:l})});l.displayName="IconBase"},3989:(e,t,r)=>{r.d(t,{g:()=>l});var a=r(8593);let l=()=>(0,a.jsxs)("svg",{fill:"none",height:"30",viewBox:"0 0 119 32",width:"113",xmlns:"http://www.w3.org/2000/svg",style:{opacity:.9},children:[(0,a.jsx)("g",{clipPath:"url(#clip0_27_291)",children:(0,a.jsx)("path",{clipRule:"evenodd",d:"M24.4558 24.4853C25.2339 23.7073 25.3805 22.6549 25.2947 21.746C25.2078 20.8254 24.8697 19.8258 24.3896 18.8287C23.957 17.9302 23.3802 16.9745 22.6821 16C23.3802 15.0255 23.957 14.0698 24.3896 13.1713C24.8697 12.1742 25.2078 11.1746 25.2947 10.254C25.3805 9.34508 25.2339 8.29273 24.4558 7.51472C23.6778 6.73671 22.6255 6.59004 21.7165 6.67584C20.796 6.76273 19.7964 7.10086 18.7993 7.58094C17.9007 8.01357 16.945 8.59036 15.9706 9.28842C14.9961 8.59036 14.0404 8.01357 13.1418 7.58094C12.1447 7.10086 11.1451 6.76273 10.2246 6.67584C9.31564 6.59004 8.26329 6.73671 7.48528 7.51472C6.70727 8.29273 6.5606 9.34508 6.6464 10.254C6.7333 11.1746 7.07142 12.1742 7.5515 13.1713C7.98414 14.0698 8.56092 15.0255 9.25898 16C8.56092 16.9745 7.98414 17.9302 7.5515 18.8287C7.07142 19.8258 6.7333 20.8254 6.6464 21.746C6.5606 22.6549 6.70727 23.7073 7.48528 24.4853C8.26329 25.2633 9.31564 25.41 10.2246 25.3242C11.1451 25.2373 12.1447 24.8991 13.1418 24.4191C14.0404 23.9864 14.9961 23.4096 15.9706 22.7116C16.945 23.4096 17.9007 23.9864 18.7993 24.4191C19.7964 24.8991 20.796 25.2373 21.7165 25.3242C22.6255 25.41 23.6778 25.2633 24.4558 24.4853ZM15.9706 20.948C16.8399 20.2684 17.724 19.4874 18.591 18.6205C19.458 17.7535 20.239 16.8693 20.9186 16C20.239 15.1307 19.458 14.2465 18.591 13.3795C17.724 12.5126 16.8399 11.7316 15.9706 11.052C15.1012 11.7316 14.2171 12.5126 13.3501 13.3795C12.4831 14.2465 11.7021 15.1307 11.0225 16C11.7021 16.8693 12.4831 17.7535 13.3501 18.6205C14.2171 19.4874 15.1012 20.2684 15.9706 20.948ZM17.1498 21.8145C17.968 21.1558 18.7885 20.4195 19.5893 19.6187C20.39 18.818 21.1264 17.9974 21.7851 17.1792C23.7187 19.9919 24.4627 22.4819 23.4576 23.487C22.4524 24.4922 19.9625 23.7482 17.1498 21.8145ZM10.156 17.1792C10.8148 17.9974 11.5511 18.818 12.3518 19.6187C13.1526 20.4195 13.9731 21.1558 14.7914 21.8145C11.9786 23.7482 9.48871 24.4922 8.48355 23.487C7.47839 22.4819 8.22238 19.9919 10.156 17.1792ZM10.156 14.8208C10.8148 14.0026 11.5511 13.182 12.3518 12.3813C13.1526 11.5805 13.9731 10.8442 14.7914 10.1855C11.9786 8.25182 9.48871 7.50783 8.48355 8.51299C7.47839 9.51815 8.22238 12.0081 10.156 14.8208ZM17.1498 10.1855C17.968 10.8442 18.7885 11.5805 19.5893 12.3813C20.39 13.182 21.1264 14.0026 21.7851 14.8208C23.7187 12.0081 24.4627 9.51815 23.4576 8.51299C22.4524 7.50783 19.9625 8.25182 17.1498 10.1855Z",fill:"white",fillRule:"evenodd",stroke:"white",strokeWidth:"0.5"})}),(0,a.jsx)("path",{d:"M36 22.176V13.744H37.936L37.968 16.432L37.696 15.824C37.8133 15.3973 38.016 15.0133 38.304 14.672C38.592 14.3307 38.9227 14.064 39.296 13.872C39.68 13.6693 40.08 13.568 40.496 13.568C40.6773 13.568 40.848 13.584 41.008 13.616C41.1787 13.648 41.3173 13.6853 41.424 13.728L40.896 15.888C40.7787 15.824 40.6347 15.7707 40.464 15.728C40.2933 15.6853 40.1227 15.664 39.952 15.664C39.6853 15.664 39.4293 15.7173 39.184 15.824C38.9493 15.92 38.7413 16.0587 38.56 16.24C38.3787 16.4213 38.2347 16.6347 38.128 16.88C38.032 17.1147 37.984 17.3813 37.984 17.68V22.176H36Z",fill:"white"}),(0,a.jsx)("path",{d:"M45.907 22.336C45.0217 22.336 44.2377 22.1493 43.555 21.776C42.883 21.4027 42.355 20.896 41.971 20.256C41.5977 19.6053 41.411 18.864 41.411 18.032C41.411 17.3707 41.5177 16.768 41.731 16.224C41.9443 15.68 42.2377 15.2107 42.611 14.816C42.995 14.4107 43.4483 14.1013 43.971 13.888C44.5043 13.664 45.0857 13.552 45.715 13.552C46.2697 13.552 46.787 13.6587 47.267 13.872C47.747 14.0853 48.163 14.3787 48.515 14.752C48.867 15.1147 49.1337 15.552 49.315 16.064C49.507 16.5653 49.5977 17.1147 49.587 17.712L49.571 18.4H42.739L42.371 17.056H47.923L47.667 17.328V16.976C47.635 16.6453 47.5283 16.3573 47.347 16.112C47.1657 15.856 46.931 15.6587 46.643 15.52C46.3657 15.3707 46.0563 15.296 45.715 15.296C45.1923 15.296 44.7497 15.3973 44.387 15.6C44.035 15.8027 43.7683 16.096 43.587 16.48C43.4057 16.8533 43.315 17.3227 43.315 17.888C43.315 18.432 43.427 18.9067 43.651 19.312C43.8857 19.7173 44.211 20.032 44.627 20.256C45.0537 20.4693 45.5497 20.576 46.115 20.576C46.5097 20.576 46.8723 20.512 47.203 20.384C47.5337 20.256 47.891 20.0267 48.275 19.696L49.251 21.056C48.963 21.3227 48.6323 21.552 48.259 21.744C47.8963 21.9253 47.5123 22.0693 47.107 22.176C46.7017 22.2827 46.3017 22.336 45.907 22.336Z",fill:"white"}),(0,a.jsx)("path",{d:"M54.094 22.336C53.4007 22.336 52.7713 22.144 52.206 21.76C51.6407 21.376 51.1873 20.8533 50.846 20.192C50.5047 19.5307 50.334 18.7787 50.334 17.936C50.334 17.0933 50.5047 16.3413 50.846 15.68C51.1873 15.0187 51.6513 14.5013 52.238 14.128C52.8247 13.7547 53.486 13.568 54.222 13.568C54.6487 13.568 55.038 13.632 55.39 13.76C55.742 13.8773 56.0513 14.048 56.318 14.272C56.5847 14.496 56.8033 14.752 56.974 15.04C57.1553 15.328 57.278 15.6373 57.342 15.968L56.91 15.856V13.744H58.894V22.176H56.894V20.16L57.358 20.08C57.2833 20.368 57.1447 20.6507 56.942 20.928C56.75 21.1947 56.5047 21.4347 56.206 21.648C55.918 21.8507 55.5927 22.016 55.23 22.144C54.878 22.272 54.4993 22.336 54.094 22.336ZM54.638 20.592C55.0967 20.592 55.502 20.48 55.854 20.256C56.206 20.032 56.478 19.7227 56.67 19.328C56.8727 18.9227 56.974 18.4587 56.974 17.936C56.974 17.424 56.8727 16.9707 56.67 16.576C56.478 16.1813 56.206 15.872 55.854 15.648C55.502 15.424 55.0967 15.312 54.638 15.312C54.1793 15.312 53.774 15.424 53.422 15.648C53.0807 15.872 52.814 16.1813 52.622 16.576C52.43 16.9707 52.334 17.424 52.334 17.936C52.334 18.4587 52.43 18.9227 52.622 19.328C52.814 19.7227 53.0807 20.032 53.422 20.256C53.774 20.48 54.1793 20.592 54.638 20.592Z",fill:"white"}),(0,a.jsx)("path",{d:"M64.3716 22.336C63.5823 22.336 62.873 22.144 62.2436 21.76C61.6143 21.376 61.1183 20.8533 60.7556 20.192C60.393 19.5307 60.2116 18.784 60.2116 17.952C60.2116 17.12 60.393 16.3733 60.7556 15.712C61.1183 15.0507 61.6143 14.528 62.2436 14.144C62.873 13.76 63.5823 13.568 64.3716 13.568C65.129 13.568 65.817 13.712 66.4356 14C67.0543 14.288 67.5343 14.688 67.8756 15.2L66.7876 16.512C66.6276 16.288 66.425 16.0853 66.1796 15.904C65.9343 15.7227 65.673 15.5787 65.3956 15.472C65.1183 15.3653 64.841 15.312 64.5636 15.312C64.0943 15.312 63.673 15.4293 63.2996 15.664C62.937 15.888 62.649 16.2027 62.4356 16.608C62.2223 17.0027 62.1156 17.4507 62.1156 17.952C62.1156 18.4533 62.2223 18.9013 62.4356 19.296C62.6596 19.6907 62.9583 20.0053 63.3316 20.24C63.705 20.4747 64.121 20.592 64.5796 20.592C64.857 20.592 65.1236 20.5493 65.3796 20.464C65.6463 20.368 65.897 20.2347 66.1316 20.064C66.3663 19.8933 66.585 19.68 66.7876 19.424L67.8756 20.752C67.513 21.2213 67.0116 21.6053 66.3716 21.904C65.7423 22.192 65.0756 22.336 64.3716 22.336Z",fill:"white"}),(0,a.jsx)("path",{d:"M69.8726 22.176V11.6H71.8406V22.176H69.8726ZM68.2086 15.568V13.744H73.6806V15.568H68.2086Z",fill:"white"}),(0,a.jsx)("path",{d:"M82.9945 22.336C82.1092 22.336 81.3252 22.1493 80.6425 21.776C79.9705 21.4027 79.4425 20.896 79.0585 20.256C78.6852 19.6053 78.4985 18.864 78.4985 18.032C78.4985 17.3707 78.6052 16.768 78.8185 16.224C79.0318 15.68 79.3252 15.2107 79.6985 14.816C80.0825 14.4107 80.5358 14.1013 81.0585 13.888C81.5918 13.664 82.1732 13.552 82.8025 13.552C83.3572 13.552 83.8745 13.6587 84.3545 13.872C84.8345 14.0853 85.2505 14.3787 85.6025 14.752C85.9545 15.1147 86.2212 15.552 86.4025 16.064C86.5945 16.5653 86.6852 17.1147 86.6745 17.712L86.6585 18.4H79.8265L79.4585 17.056H85.0105L84.7545 17.328V16.976C84.7225 16.6453 84.6158 16.3573 84.4345 16.112C84.2532 15.856 84.0185 15.6587 83.7305 15.52C83.4532 15.3707 83.1438 15.296 82.8025 15.296C82.2798 15.296 81.8372 15.3973 81.4745 15.6C81.1225 15.8027 80.8558 16.096 80.6745 16.48C80.4932 16.8533 80.4025 17.3227 80.4025 17.888C80.4025 18.432 80.5145 18.9067 80.7385 19.312C80.9732 19.7173 81.2985 20.032 81.7145 20.256C82.1412 20.4693 82.6372 20.576 83.2025 20.576C83.5972 20.576 83.9598 20.512 84.2905 20.384C84.6212 20.256 84.9785 20.0267 85.3625 19.696L86.3385 21.056C86.0505 21.3227 85.7198 21.552 85.3465 21.744C84.9838 21.9253 84.5998 22.0693 84.1945 22.176C83.7892 22.2827 83.3892 22.336 82.9945 22.336Z",fill:"white"}),(0,a.jsx)("path",{d:"M87.9655 22.176V13.744H89.9015L89.9335 15.44L89.6135 15.568C89.7095 15.2907 89.8535 15.0347 90.0455 14.8C90.2375 14.5547 90.4668 14.3467 90.7335 14.176C91.0002 13.9947 91.2828 13.856 91.5815 13.76C91.8802 13.6533 92.1842 13.6 92.4935 13.6C92.9522 13.6 93.3575 13.6747 93.7095 13.824C94.0722 13.9627 94.3708 14.1867 94.6055 14.496C94.8508 14.8053 95.0322 15.2 95.1495 15.68L94.8455 15.616L94.9735 15.36C95.0908 15.104 95.2562 14.8747 95.4695 14.672C95.6828 14.4587 95.9228 14.272 96.1895 14.112C96.4562 13.9413 96.7335 13.8133 97.0215 13.728C97.3202 13.6427 97.6135 13.6 97.9015 13.6C98.5415 13.6 99.0748 13.728 99.5015 13.984C99.9282 14.24 100.248 14.6293 100.462 15.152C100.675 15.6747 100.782 16.32 100.782 17.088V22.176H98.7975V17.216C98.7975 16.7893 98.7388 16.4373 98.6215 16.16C98.5148 15.8827 98.3442 15.68 98.1095 15.552C97.8855 15.4133 97.6028 15.344 97.2615 15.344C96.9948 15.344 96.7388 15.392 96.4935 15.488C96.2588 15.5733 96.0562 15.7013 95.8855 15.872C95.7148 16.032 95.5815 16.2187 95.4855 16.432C95.3895 16.6453 95.3415 16.88 95.3415 17.136V22.176H93.3575V17.2C93.3575 16.7947 93.2988 16.4587 93.1815 16.192C93.0642 15.9147 92.8935 15.7067 92.6695 15.568C92.4455 15.4187 92.1735 15.344 91.8535 15.344C91.5868 15.344 91.3362 15.392 91.1015 15.488C90.8668 15.5733 90.6642 15.696 90.4935 15.856C90.3228 16.016 90.1895 16.2027 90.0935 16.416C89.9975 16.6293 89.9495 16.864 89.9495 17.12V22.176H87.9655Z",fill:"white"}),(0,a.jsx)("path",{d:"M105.73 22.336C105.037 22.336 104.408 22.144 103.842 21.76C103.277 21.376 102.824 20.8533 102.482 20.192C102.141 19.5307 101.97 18.7787 101.97 17.936C101.97 17.0933 102.141 16.3413 102.482 15.68C102.824 15.0187 103.288 14.5013 103.874 14.128C104.461 13.7547 105.122 13.568 105.858 13.568C106.285 13.568 106.674 13.632 107.026 13.76C107.378 13.8773 107.688 14.048 107.954 14.272C108.221 14.496 108.44 14.752 108.61 15.04C108.792 15.328 108.914 15.6373 108.978 15.968L108.546 15.856V13.744H110.53V22.176H108.53V20.16L108.994 20.08C108.92 20.368 108.781 20.6507 108.578 20.928C108.386 21.1947 108.141 21.4347 107.842 21.648C107.554 21.8507 107.229 22.016 106.866 22.144C106.514 22.272 106.136 22.336 105.73 22.336ZM106.274 20.592C106.733 20.592 107.138 20.48 107.49 20.256C107.842 20.032 108.114 19.7227 108.306 19.328C108.509 18.9227 108.61 18.4587 108.61 17.936C108.61 17.424 108.509 16.9707 108.306 16.576C108.114 16.1813 107.842 15.872 107.49 15.648C107.138 15.424 106.733 15.312 106.274 15.312C105.816 15.312 105.41 15.424 105.058 15.648C104.717 15.872 104.45 16.1813 104.258 16.576C104.066 16.9707 103.97 17.424 103.97 17.936C103.97 18.4587 104.066 18.9227 104.258 19.328C104.45 19.7227 104.717 20.032 105.058 20.256C105.41 20.48 105.816 20.592 106.274 20.592Z",fill:"white"}),(0,a.jsx)("path",{d:"M112.616 22.176V13.744H114.584V22.176H112.616ZM113.576 11.952C113.181 11.952 112.872 11.856 112.648 11.664C112.435 11.4613 112.328 11.1787 112.328 10.816C112.328 10.4747 112.44 10.1973 112.664 9.984C112.888 9.77067 113.192 9.664 113.576 9.664C113.981 9.664 114.291 9.76534 114.504 9.968C114.728 10.16 114.84 10.4427 114.84 10.816C114.84 11.1467 114.728 11.4187 114.504 11.632C114.28 11.8453 113.971 11.952 113.576 11.952Z",fill:"white"}),(0,a.jsx)("path",{d:"M116.675 22.176V10.336H118.659V22.176H116.675Z",fill:"white"}),(0,a.jsx)("defs",{children:(0,a.jsx)("clipPath",{id:"clip0_27_291",children:(0,a.jsx)("rect",{fill:"white",height:"32",rx:"8",width:"32"})})})]})},4106:(e,t,r)=>{r.r(t),r.d(t,{Sidebar:()=>E});var a=r(8593),l=r(871),i=r(7562),s=r(7258),n=r(3989),o=r(7512),c=r(2421),d=r(3452),x=r(9711),C=r(526),h=r(3397),p=r.n(h),u=r(4631),m=r(2180);let f=c.forwardRef((e,t)=>{let{...r}=e;return(0,a.jsx)(m.z,{ref:t,...r,children:(0,a.jsx)("path",{clipRule:"evenodd",d:"M7.75 4C6.23122 4 5 5.23122 5 6.75V17.25C5 18.7688 6.23122 20 7.75 20H16.25C17.7688 20 19 18.7688 19 17.25V9C19 8.80109 18.921 8.61032 18.7803 8.46967L14.5303 4.21967C14.3897 4.07902 14.1989 4 14 4H7.75ZM6.5 6.75C6.5 6.05964 7.05964 5.5 7.75 5.5H13V9.25C13 9.66421 13.3358 10 13.75 10H17.5V17.25C17.5 17.9404 16.9404 18.5 16.25 18.5H7.75C7.05964 18.5 6.5 17.9404 6.5 17.25V6.75ZM16.6893 8.5L14.5 6.31066V8.5H16.6893Z",fill:"currentColor",fillOpacity:"0.927",fillRule:"evenodd"})})});f.displayName="IconFile";var g=r(1598),y=r(7799);let w=c.forwardRef((e,t)=>{let{...r}=e;return(0,a.jsx)(m.z,{ref:t,...r,children:(0,a.jsx)("path",{clipRule:"evenodd",d:"M6.75 4C5.23122 4 4 5.23122 4 6.75V7.75V8V17.25C4 18.7688 5.23122 20 6.75 20H17.25C18.7688 20 20 18.7688 20 17.25V9.75C20 8.23122 18.7688 7 17.25 7H14.0816L13.227 5.43322C12.7451 4.54965 11.819 4 10.8127 4H6.75ZM12.3729 7L11.9101 6.15145L11.91 6.15138C11.6911 5.74989 11.2702 5.5 10.8127 5.5H6.75C6.05964 5.5 5.5 6.05964 5.5 6.75V7H12.3729ZM5.5 17.25V8.5H17.25C17.9404 8.5 18.5 9.05964 18.5 9.75V17.25C18.5 17.9404 17.9404 18.5 17.25 18.5H6.75C6.05964 18.5 5.5 17.9404 5.5 17.25Z",fill:"currentColor",fillRule:"evenodd"})})});w.displayName="IconFolder";let v=c.forwardRef((e,t)=>{let{...r}=e;return(0,a.jsx)(m.z,{ref:t,...r,children:(0,a.jsx)("path",{clipRule:"evenodd",d:"M6.75 4C5.23122 4 4 5.23122 4 6.75V17.25V17.5C4 17.5933 4.01702 17.6825 4.04812 17.7649C4.28918 19.0376 5.4072 20 6.75 20H17.25C17.9905 20 18.6283 19.7404 19.111 19.2387C19.5681 18.7636 19.836 18.1241 19.9792 17.4279L21.4711 12.206C21.4903 12.139 21.5 12.0697 21.5 12C21.5 10.652 20.5301 9.53047 19.25 9.29534V8.5C19.25 7.5335 18.4665 6.75 17.5 6.75H13.9452L13.227 5.43322C12.7451 4.54965 11.819 4 10.8127 4H6.75ZM17.75 9.25V8.5C17.75 8.36193 17.6381 8.25 17.5 8.25H13.5C13.2255 8.25 12.973 8.10009 12.8416 7.85915L11.9101 6.15145L11.91 6.15138C11.6911 5.74989 11.2702 5.5 10.8127 5.5H6.75C6.05964 5.5 5.5 6.05964 5.5 6.75V13.158L6.79875 9.73401C6.90926 9.44267 7.1884 9.25 7.5 9.25H17.75ZM5.50587 17.372L8.01766 10.75H18.5H18.75C19.4091 10.75 19.949 11.26 19.9966 11.9069L18.5289 17.044C18.5233 17.0634 18.5185 17.0831 18.5146 17.1029C18.4062 17.6448 18.2275 17.9934 18.03 18.1988C17.8513 18.3846 17.6141 18.5 17.25 18.5H6.75C6.10079 18.5 5.56718 18.0051 5.50587 17.372Z",fill:"currentColor",fillRule:"evenodd"})})});v.displayName="IconFolderOpen";let b=new Set,j=e=>{let{emailsDirectoryMetadata:t,className:r,currentEmailOpenSlug:l}=e,i=!!l&&l.includes(t.relativePath),n=0===t.emailFilenames.length&&0===t.subDirectories.length,[d,x]=c.useState(b.has(t.absolutePath)||i);return(0,a.jsxs)(o.bL,{className:(0,s.cn)("group",r),onOpenChange:e=>{e?b.add(t.absolutePath):b.delete(t.absolutePath),x(e)},open:d,children:[(0,a.jsxs)(o.l9,{className:(0,s.cn)("mt-1 mb-1.5 flex w-full items-center text-start justify-between gap-2 font-medium text-[14px]",{"cursor-pointer":!n}),children:[d?(0,a.jsx)(v,{className:"w-[20px]",height:"20",width:"20"}):(0,a.jsx)(w,{height:"20",width:"20"}),(0,a.jsx)(g.D,{as:"h3",className:"transition grow w-[calc(100%-40px)] truncate duration-200 ease-in-out hover:text-slate-12",color:"gray",size:"2",weight:"medium",children:t.directoryName}),n?null:(0,a.jsx)(y.R,{width:"20",height:"20",className:"ml-auto opacity-60 transition-transform data-[open=true]:rotate-180","data-open":d})]}),n?null:(0,a.jsx)(k,{currentEmailOpenSlug:l,emailsDirectoryMetadata:t,open:d})]})},k=e=>{let t=(0,u.useSearchParams)(),r=(0,u.useRouter)();return(0,a.jsx)(d.N,{initial:!1,children:e.open?(0,a.jsx)(o.UC,{asChild:!0,className:"relative overflow-y-hidden pl-1",forceMount:!0,children:(0,a.jsxs)(x.P.div,{animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},initial:{opacity:0,height:0},children:[e.isRoot?null:(0,a.jsx)("div",{className:"line absolute left-2.5 h-full w-px bg-slate-6"}),(0,a.jsx)("div",{className:"flex flex-col truncate",children:(0,a.jsxs)(C.o,{id:"sidebar",children:[e.emailsDirectoryMetadata.subDirectories.map(t=>(0,a.jsx)(j,{className:"p-0 data-[state=open]:mb-2",currentEmailOpenSlug:e.currentEmailOpenSlug,emailsDirectoryMetadata:t},t.absolutePath)),e.emailsDirectoryMetadata.emailFilenames.map((l,i)=>{let n=e.isRoot?l:"".concat(e.emailsDirectoryMetadata.relativePath,"/").concat(l),o=!!e.currentEmailOpenSlug&&(e=>"tsx"===e.split(".").pop()||"jsx"===e.split(".").pop()||"js"===e.split(".").pop()?e.split(".").slice(0,-1).join("."):e)(e.currentEmailOpenSlug)===n;return(0,a.jsx)(p(),{href:{pathname:"/preview/".concat(n),search:t.toString()},onMouseOver:()=>{r.prefetch("/preview/".concat(n,"?").concat(t.toString()))},children:(0,a.jsxs)(x.P.span,{animate:{x:0,opacity:1},className:(0,s.cn)("relative flex h-8 w-full items-center text-start gap-2 rounded-md align-middle text-slate-11 text-sm transition-colors duration-100 ease-[cubic-bezier(.6,.12,.34,.96)]",e.isRoot?void 0:"pl-3",{"text-cyan-11":o,"hover:text-slate-12":e.currentEmailOpenSlug!==n}),initial:{x:-10+-(1.5*i),opacity:0},transition:{x:{delay:.03*i,duration:.2},opacity:{delay:.03*i,duration:.2}},children:[o?(0,a.jsx)(x.P.span,{animate:{opacity:1},className:"absolute inset-0 rounded-md bg-cyan-5 opacity-0 transition-all duration-200 ease-[cubic-bezier(.6,.12,.34,.96)]",exit:{opacity:0},initial:{opacity:0},children:e.isRoot?null:(0,a.jsx)(x.P.div,{className:"absolute top-1 left-[0.4rem] inset-0 h-6 w-px rounded-sm bg-cyan-11",layoutId:"active-file",transition:{type:"spring",bounce:.2,duration:.6}})}):null,(0,a.jsx)(f,{className:"h-5 w-5",height:"20",width:"20"}),(0,a.jsx)("span",{className:"truncate w-[calc(100%-1.25rem)]",children:l})]})},n)})]})})]})}):null})},L=e=>{let{currentEmailOpenSlug:t,emailsDirectoryMetadata:r}=e;return(0,a.jsx)("div",{className:"flex w-full h-full flex-col lg:w-full lg:min-w-[14.5rem]",children:(0,a.jsx)("nav",{className:"flex flex-grow flex-col p-4 pr-0 pl-0",children:(0,a.jsx)(o.bL,{open:!0,children:(0,a.jsx)(c.Suspense,{children:(0,a.jsx)(k,{currentEmailOpenSlug:t,emailsDirectoryMetadata:r,isRoot:!0,open:!0})})})})})},E=e=>{let{className:t,currentEmailOpenSlug:r}=e,{emailsDirectoryMetadata:o}=(0,i.J)();return(0,a.jsx)("aside",{className:(0,s.cn)("overflow-hidden","lg:static lg:z-auto lg:max-h-screen lg:w-[16rem]",t),children:(0,a.jsxs)("div",{className:"flex w-full h-full overflow-hidden flex-col border-slate-6 border-r",children:[(0,a.jsx)("div",{className:(0,l.$)("hidden min-h-[3.3125rem] flex-shrink items-center p-3 px-4 lg:flex"),children:(0,a.jsx)("h2",{children:(0,a.jsx)(n.g,{})})}),(0,a.jsx)("div",{className:"relative grow w-full h-full overflow-y-auto overflow-x-hidden border-slate-4 border-t px-4 pb-3",children:(0,a.jsx)(L,{currentEmailOpenSlug:r,emailsDirectoryMetadata:o})})]})})}},4345:(e,t,r)=>{r.d(t,{B:()=>a.Sidebar});var a=r(4106)},4955:(e,t,r)=>{r.d(t,{H:()=>a});let a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Entered unreachable code. Received '".concat("string"==typeof e?e:JSON.stringify(e),"'.");throw TypeError(t)}},7258:(e,t,r)=>{r.d(t,{cn:()=>a.cn,eM:()=>l,aj:()=>i,HB:()=>s.H});var a=r(7618);let l=async e=>{try{await navigator.clipboard.writeText(e)}catch(e){throw Error("Not able to copy")}};r(1166);let i=e=>e.replace(/[_-]/g," ");var s=r(4955)},7353:(e,t,r)=>{r.d(t,{a:()=>i});var a=r(2421),l=r(1452);let i=e=>{let t=(0,a.useRef)(null);(0,a.useEffect)(()=>{t.current||(t.current=(0,l.io)());let r=t.current;return r.on("reload",t=>{console.debug("Reloading..."),e(t)}),()=>{r.off()}},[e])}},7562:(e,t,r)=>{r.d(t,{EmailsProvider:()=>x,J:()=>d});var a=r(8593),l=r(2421),i=r(997);let s=(0,i.createServerReference)("7fc5e33e97dad56c4458d2a5617a2231d8d1d9f579",i.callServer,void 0,i.findSourceMapURL,"getEmailsDirectoryMetadataAction");var n=r(1704),o=r(7353);let c=(0,l.createContext)(void 0),d=()=>{let e=(0,l.useContext)(c);if(void 0===e)throw Error("Cannot call `useEmail()` outside of an EmailsContext provider!");return e},x=e=>{let[t,r]=(0,l.useState)(e.initialEmailsDirectoryMetadata);return n.Hf||(0,o.a)(async()=>{let t=await s(e.initialEmailsDirectoryMetadata.absolutePath);if(t)r(t);else throw Error("Hot reloading: unable to find the emails directory to update the sidebar")}),(0,a.jsx)(c.Provider,{value:{emailsDirectoryMetadata:t},children:e.children})}},7618:(e,t,r)=>{r.d(t,{cn:()=>i});var a=r(871),l=r(7167);let i=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,l.QP)((0,a.$)(t))}},7662:(e,t,r)=>{r.d(t,{Shell:()=>c,a:()=>o});var a=r(8593),l=r(2421),i=r(7258),s=r(3989),n=r(4345);let o=l.createContext(void 0),c=e=>{let{children:t,currentEmailOpenSlug:r}=e,[c,d]=l.useState(!0);return(0,a.jsxs)(o.Provider,{value:{toggleSidebar:()=>d(e=>!e),sidebarToggled:c},children:[(0,a.jsxs)("div",{className:"flex h-[4.375rem] items-center justify-between border-slate-6 border-b px-6 lg:hidden",children:[(0,a.jsx)("div",{className:"flex h-[4.375rem] items-center",children:(0,a.jsx)(s.g,{})}),(0,a.jsx)("button",{className:"flex h-6 w-6 items-center justify-center rounded text-white",onClick:()=>{d(e=>!e)},type:"button",children:(0,a.jsxs)("svg",{fill:"none",height:"16",stroke:"white",viewBox:"0 0 15 15",width:"16",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("title",{children:"Menu"}),(0,a.jsx)("path",{clipRule:"evenodd",d:"M1.5 3C1.22386 3 1 3.22386 1 3.5C1 3.77614 1.22386 4 1.5 4H13.5C13.7761 4 14 3.77614 14 3.5C14 3.22386 13.7761 3 13.5 3H1.5ZM1 7.5C1 7.22386 1.22386 7 1.5 7H13.5C13.7761 7 14 7.22386 14 7.5C14 7.77614 13.7761 8 13.5 8H1.5C1.22386 8 1 7.77614 1 7.5ZM1 11.5C1 11.2239 1.22386 11 1.5 11H13.5C13.7761 11 14 11.2239 14 11.5C14 11.7761 13.7761 12 13.5 12H1.5C1.22386 12 1 11.7761 1 11.5Z",fill:"currentColor",fillRule:"evenodd"})]})})]}),(0,a.jsxs)("div",{className:"w-[100dvw] flex h-[calc(100dvh-4.375rem)] lg:h-[100dvh]",children:[(0,a.jsx)(l.Suspense,{children:(0,a.jsx)(n.B,{className:(0,i.cn)("fixed top-[4.375rem] left-0 z-[9999] h-full max-h-full w-full max-w-full will-change-auto [transition:width_0.2s_ease-in-out]","lg:static lg:inline-block lg:z-auto lg:max-h-full lg:w-[16rem]",{"-translate-x-full lg:translate-x-0":c,"lg:w-0":!c}),currentEmailOpenSlug:r})}),(0,a.jsx)("main",{className:(0,i.cn)("inline-block relative overflow-hidden will-change-[width]","w-full h-full","[transition:width_0.2s_ease-in-out,_transform_0.2s_ease-in-out]",{"lg:w-[calc(100%-16rem)]":c,"opacity-0 lg:opacity-100":!c}),children:t})]})]})}},7799:(e,t,r)=>{r.d(t,{R:()=>s});var a=r(8593),l=r(2421),i=r(2180);let s=l.forwardRef((e,t)=>{let{...r}=e;return(0,a.jsx)(i.z,{ref:t,...r,children:(0,a.jsx)("path",{d:"M12 16L6 9.85966L6.84 9L12 14.2808L17.16 9L18 9.85966L12 16Z",fill:"currentColor"})})});s.displayName="IconArrowDown"},8474:(e,t,r)=>{r.r(t),r.d(t,{Code:()=>h});var a=r(8593),l=r(2421),i=r(3397),s=r.n(i),n=r(4631),o=r(1554);let c=()=>{let e=(0,n.usePathname)(),t=(0,n.useSearchParams)(),[a,i]=(0,l.useState)();return(0,l.useEffect)(()=>{var e;i(null==(e=r.g.location)?void 0:e.hash)},[e,t]),a};var d=r(7258);let x={plain:{color:"#EDEDEF",fontSize:13,fontFamily:"MonoLisa, Menlo, monospace"},styles:[{types:["comment"],style:{color:"#706F78"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#7E7D86"}},{types:["punctuation","operator"],style:{color:"#706F78"}},{types:["class-name","function","tag","key-white"],style:{color:"#EDEDEF"}}]},C=RegExp("#L(?<start>\\d+)(?:,(?<end>\\d+))?"),h=e=>{let{children:t,language:r="html"}=e,i=c(),h=(()=>{if(i){var e;let t=i.match(C);if(null==t||null==(e=t.groups)?void 0:e.start){let e=Number.parseInt(t.groups.start),r=t.groups.end?Number.parseInt(t.groups.end):e;return[e,r]}}})(),p=e=>!!h&&h[0]<=e&&h[1]>=e,u=(0,l.useRef)(null);(0,l.useEffect)(()=>{let e=u.current;if(h&&e){let t=e.querySelector("#L".concat(h[0]));t instanceof HTMLAnchorElement&&e.scrollTo({top:Math.max(t.offsetTop-325,0),behavior:"smooth"})}},[h]);let m=(0,n.useSearchParams)(),f=t.trim();return(0,a.jsx)(o.f4,{code:f,language:r,theme:x,children:e=>{let{tokens:t,getLineProps:i,getTokenProps:n}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"absolute right-0 top-0 h-px w-[200px]",style:{background:"linear-gradient(90deg, rgba(56, 189, 248, 0) 0%, rgba(56, 189, 248, 0) 0%, rgba(232, 232, 232, 0.2) 33.02%, rgba(143, 143, 143, 0.6719) 64.41%, rgba(236, 72, 153, 0) 98.93%)"}}),(0,a.jsxs)("div",{ref:u,className:"flex max-h-[650px] h-full p-4 after:w-full after:static after:block after:h-4 after:content-[''] overflow-auto",children:[(0,a.jsx)("div",{className:"text-[#49494f] text-[13px] font-light font-[MonoLisa,_Menlo,_monospace]",children:t.map((e,t)=>(0,a.jsx)(s(),{id:"L".concat(t+1),href:{hash:"#L".concat(t+1),search:m.toString()},scroll:!1,className:(0,d.cn)("align-middle block scroll-mt-[325px] rounded-l-sm select-none pr-3 cursor-pointer hover:text-slate-12",p(t+1)&&"text-cyan-11 hover:text-cyan-11 bg-cyan-5"),type:"button",children:t+1},t))}),(0,a.jsx)("pre",{children:t.map((e,s)=>{let o=i({line:e,key:s});return(0,l.createElement)("div",{...o,className:(0,d.cn)("whitespace-pre flex transition-colors rounded-r-sm",p(s+1)&&"bg-cyan-5",{"before:mr-2 before:text-slate-11 before:content-['$']":"bash"===r&&1===t.length}),key:s},e.map((t,r)=>{var i;let s=n({token:t}),o="from"===t.content&&(null==(i=e[r+1])?void 0:i.content)===":"?[...t.types,"key-white"]:t.types;return t.types=o,(0,a.jsx)(l.Fragment,{children:(0,a.jsx)("span",{...s})},r)}))})}),(0,a.jsx)("div",{className:"absolute bottom-0 left-0 h-px w-[200px]",style:{background:"linear-gradient(90deg, rgba(56, 189, 248, 0) 0%, rgba(56, 189, 248, 0) 0%, rgba(232, 232, 232, 0.2) 33.02%, rgba(143, 143, 143, 0.6719) 64.41%, rgba(236, 72, 153, 0) 98.93%)"}})]})]})}})}}}]);
|