@kaitranntt/ccs 5.12.0 → 5.12.1-dev.1
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/VERSION +1 -1
- package/dist/cliproxy/auth-handler.d.ts.map +1 -1
- package/dist/cliproxy/auth-handler.js +42 -7
- package/dist/cliproxy/auth-handler.js.map +1 -1
- package/dist/management/doctor.d.ts +10 -0
- package/dist/management/doctor.d.ts.map +1 -1
- package/dist/management/doctor.js +104 -4
- package/dist/management/doctor.js.map +1 -1
- package/dist/management/environment-diagnostics.d.ts +69 -0
- package/dist/management/environment-diagnostics.d.ts.map +1 -0
- package/dist/management/environment-diagnostics.js +229 -0
- package/dist/management/environment-diagnostics.js.map +1 -0
- package/dist/management/oauth-port-diagnostics.d.ts +85 -0
- package/dist/management/oauth-port-diagnostics.d.ts.map +1 -0
- package/dist/management/oauth-port-diagnostics.js +189 -0
- package/dist/management/oauth-port-diagnostics.js.map +1 -0
- package/dist/ui/assets/accounts-B9xp2MbI.js +1 -0
- package/dist/ui/assets/analytics-BfjSH3d-.js +64 -0
- package/dist/ui/assets/api-DYr0Tx6Z.js +1 -0
- package/dist/ui/assets/cliproxy-BuB-MuAt.js +1 -0
- package/dist/ui/assets/dropdown-menu-iwA6PgQW.js +1 -0
- package/dist/ui/assets/{form-utils-qlCULW73.js → form-utils-CSa50xnO.js} +1 -1
- package/dist/ui/assets/health-ChYme1jV.js +1 -0
- package/dist/ui/assets/{icons-DOhZYYMX.js → icons-ByUiVGTN.js} +1 -1
- package/dist/ui/assets/index-ChihF1Y9.css +1 -0
- package/dist/ui/assets/index-P2CKOdyd.js +10 -0
- package/dist/ui/assets/{radix-ui-CBdrr74O.js → radix-ui-DAH8Vq_G.js} +2 -2
- package/dist/ui/assets/{react-vendor-B3ahKmcC.js → react-vendor-CjrBBxxX.js} +1 -1
- package/dist/ui/assets/settings-B2OdR7RO.js +1 -0
- package/dist/ui/assets/shared-ZSfv4HA6.js +1 -0
- package/dist/ui/assets/table-OTpVLgy9.js +1 -0
- package/dist/ui/assets/{tanstack-D9KW3ciX.js → tanstack-DAI1tKxf.js} +2 -2
- package/dist/ui/index.html +7 -7
- package/dist/web-server/index.d.ts.map +1 -1
- package/dist/web-server/index.js +2 -6
- package/dist/web-server/index.js.map +1 -1
- package/dist/web-server/usage-disk-cache.d.ts +46 -0
- package/dist/web-server/usage-disk-cache.d.ts.map +1 -0
- package/dist/web-server/usage-disk-cache.js +158 -0
- package/dist/web-server/usage-disk-cache.js.map +1 -0
- package/dist/web-server/usage-routes.d.ts +11 -3
- package/dist/web-server/usage-routes.d.ts.map +1 -1
- package/dist/web-server/usage-routes.js +119 -8
- package/dist/web-server/usage-routes.js.map +1 -1
- package/package.json +1 -1
- package/dist/ui/assets/index-C5_mBoh5.js +0 -72
- package/dist/ui/assets/index-FXq1wR_S.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as s,R as Kt,a as Gn,b as ui,c as ve}from"./react-vendor-B3ahKmcC.js";var At={exports:{}},Ie={};var hn;function fi(){if(hn)return Ie;hn=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,i){var a=null;if(i!==void 0&&(a=""+i),o.key!==void 0&&(a=""+o.key),"key"in o){i={};for(var c in o)c!=="key"&&(i[c]=o[c])}else i=o;return o=i.ref,{$$typeof:e,type:r,key:a,ref:o!==void 0?o:null,props:i}}return Ie.Fragment=t,Ie.jsx=n,Ie.jsxs=n,Ie}var gn;function di(){return gn||(gn=1,At.exports=fi()),At.exports}var p=di();function yn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function fe(...e){return t=>{let n=!1;const r=e.map(o=>{const i=yn(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():yn(e[o],null)}}}}function $(...e){return s.useCallback(fe(...e),e)}var pi=Symbol.for("react.lazy"),rt=Kt[" use ".trim().toString()];function mi(e){return typeof e=="object"&&e!==null&&"then"in e}function Un(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===pi&&"_payload"in e&&mi(e._payload)}function Kn(e){const t=vi(e),n=s.forwardRef((r,o)=>{let{children:i,...a}=r;Un(i)&&typeof rt=="function"&&(i=rt(i._payload));const c=s.Children.toArray(i),l=c.find(gi);if(l){const u=l.props.children,f=c.map(d=>d===l?s.Children.count(u)>1?s.Children.only(null):s.isValidElement(u)?u.props.children:null:d);return p.jsx(t,{...a,ref:o,children:s.isValidElement(u)?s.cloneElement(u,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var Gu=Kn("Slot");function vi(e){const t=s.forwardRef((n,r)=>{let{children:o,...i}=n;if(Un(o)&&typeof rt=="function"&&(o=rt(o._payload)),s.isValidElement(o)){const a=wi(o),c=yi(i,o.props);return o.type!==s.Fragment&&(c.ref=r?fe(r,a):a),s.cloneElement(o,c)}return s.Children.count(o)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var hi=Symbol("radix.slottable");function gi(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===hi}function yi(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...c)=>{const l=i(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function wi(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function P(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function xi(e,t){const n=s.createContext(t),r=i=>{const{children:a,...c}=i,l=s.useMemo(()=>c,Object.values(c));return p.jsx(n.Provider,{value:l,children:a})};r.displayName=e+"Provider";function o(i){const a=s.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function de(e,t=[]){let n=[];function r(i,a){const c=s.createContext(a),l=n.length;n=[...n,a];const u=d=>{const{scope:m,children:v,...y}=d,h=m?.[e]?.[l]||c,g=s.useMemo(()=>y,Object.values(y));return p.jsx(h.Provider,{value:g,children:v})};u.displayName=i+"Provider";function f(d,m){const v=m?.[e]?.[l]||c,y=s.useContext(v);if(y)return y;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[u,f]}const o=()=>{const i=n.map(a=>s.createContext(a));return function(c){const l=c?.[e]||i;return s.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])}};return o.scopeName=e,[r,Ci(o,...t)]}function Ci(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((c,{useScope:l,scopeName:u})=>{const d=l(i)[`__scope${u}`];return{...c,...d}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var ce=globalThis?.document?s.useLayoutEffect:()=>{},bi=Kt[" useId ".trim().toString()]||(()=>{}),Ei=0;function he(e){const[t,n]=s.useState(bi());return ce(()=>{n(r=>r??String(Ei++))},[e]),t?`radix-${t}`:""}var Ri=Kt[" useInsertionEffect ".trim().toString()]||ce;function ft({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,a]=Si({defaultProp:t,onChange:n}),c=e!==void 0,l=c?e:o;{const f=s.useRef(e!==void 0);s.useEffect(()=>{const d=f.current;d!==c&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=c},[c,r])}const u=s.useCallback(f=>{if(c){const d=Ai(f)?f(e):f;d!==e&&a.current?.(d)}else i(f)},[c,e,i,a]);return[l,u]}function Si({defaultProp:e,onChange:t}){const[n,r]=s.useState(e),o=s.useRef(n),i=s.useRef(t);return Ri(()=>{i.current=t},[t]),s.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}function Ai(e){return typeof e=="function"}function Pi(e){const t=Mi(e),n=s.forwardRef((r,o)=>{const{children:i,...a}=r,c=s.Children.toArray(i),l=c.find(Ti);if(l){const u=l.props.children,f=c.map(d=>d===l?s.Children.count(u)>1?s.Children.only(null):s.isValidElement(u)?u.props.children:null:d);return p.jsx(t,{...a,ref:o,children:s.isValidElement(u)?s.cloneElement(u,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function Mi(e){const t=s.forwardRef((n,r)=>{const{children:o,...i}=n;if(s.isValidElement(o)){const a=Oi(o),c=_i(i,o.props);return o.type!==s.Fragment&&(c.ref=r?fe(r,a):a),s.cloneElement(o,c)}return s.Children.count(o)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Di=Symbol("radix.slottable");function Ti(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Di}function _i(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...c)=>{const l=i(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Oi(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ni=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],F=Ni.reduce((e,t)=>{const n=Pi(`Primitive.${t}`),r=s.forwardRef((o,i)=>{const{asChild:a,...c}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...c,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Yn(e,t){e&&Gn.flushSync(()=>e.dispatchEvent(t))}function re(e){const t=s.useRef(e);return s.useEffect(()=>{t.current=e}),s.useMemo(()=>(...n)=>t.current?.(...n),[])}function Ii(e,t=globalThis?.document){const n=re(e);s.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Li="DismissableLayer",Ft="dismissableLayer.update",ji="dismissableLayer.pointerDownOutside",Fi="dismissableLayer.focusOutside",wn,zn=s.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),dt=s.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:c,...l}=e,u=s.useContext(zn),[f,d]=s.useState(null),m=f?.ownerDocument??globalThis?.document,[,v]=s.useState({}),y=$(t,R=>d(R)),h=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),w=h.indexOf(g),C=f?h.indexOf(f):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,b=C>=w,E=Wi(R=>{const M=R.target,O=[...u.branches].some(T=>T.contains(M));!b||O||(o?.(R),a?.(R),R.defaultPrevented||c?.())},m),A=Bi(R=>{const M=R.target;[...u.branches].some(T=>T.contains(M))||(i?.(R),a?.(R),R.defaultPrevented||c?.())},m);return Ii(R=>{C===u.layers.size-1&&(r?.(R),!R.defaultPrevented&&c&&(R.preventDefault(),c()))},m),s.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(wn=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),xn(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=wn)}},[f,m,n,u]),s.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),xn())},[f,u]),s.useEffect(()=>{const R=()=>v({});return document.addEventListener(Ft,R),()=>document.removeEventListener(Ft,R)},[]),p.jsx(F.div,{...l,ref:y,style:{pointerEvents:x?b?"auto":"none":void 0,...e.style},onFocusCapture:P(e.onFocusCapture,A.onFocusCapture),onBlurCapture:P(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:P(e.onPointerDownCapture,E.onPointerDownCapture)})});dt.displayName=Li;var ki="DismissableLayerBranch",$i=s.forwardRef((e,t)=>{const n=s.useContext(zn),r=s.useRef(null),o=$(t,r);return s.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),p.jsx(F.div,{...e,ref:o})});$i.displayName=ki;function Wi(e,t=globalThis?.document){const n=re(e),r=s.useRef(!1),o=s.useRef(()=>{});return s.useEffect(()=>{const i=c=>{if(c.target&&!r.current){let l=function(){Xn(ji,n,u,{discrete:!0})};const u={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Bi(e,t=globalThis?.document){const n=re(e),r=s.useRef(!1);return s.useEffect(()=>{const o=i=>{i.target&&!r.current&&Xn(Fi,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function xn(){const e=new CustomEvent(Ft);document.dispatchEvent(e)}function Xn(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Yn(o,i):o.dispatchEvent(i)}var Pt="focusScope.autoFocusOnMount",Mt="focusScope.autoFocusOnUnmount",Cn={bubbles:!1,cancelable:!0},Vi="FocusScope",Yt=s.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[c,l]=s.useState(null),u=re(o),f=re(i),d=s.useRef(null),m=$(t,h=>l(h)),v=s.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;s.useEffect(()=>{if(r){let h=function(x){if(v.paused||!c)return;const b=x.target;c.contains(b)?d.current=b:ae(d.current,{select:!0})},g=function(x){if(v.paused||!c)return;const b=x.relatedTarget;b!==null&&(c.contains(b)||ae(d.current,{select:!0}))},w=function(x){if(document.activeElement===document.body)for(const E of x)E.removedNodes.length>0&&ae(c)};document.addEventListener("focusin",h),document.addEventListener("focusout",g);const C=new MutationObserver(w);return c&&C.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",g),C.disconnect()}}},[r,c,v.paused]),s.useEffect(()=>{if(c){En.add(v);const h=document.activeElement;if(!c.contains(h)){const w=new CustomEvent(Pt,Cn);c.addEventListener(Pt,u),c.dispatchEvent(w),w.defaultPrevented||(Hi(zi(qn(c)),{select:!0}),document.activeElement===h&&ae(c))}return()=>{c.removeEventListener(Pt,u),setTimeout(()=>{const w=new CustomEvent(Mt,Cn);c.addEventListener(Mt,f),c.dispatchEvent(w),w.defaultPrevented||ae(h??document.body,{select:!0}),c.removeEventListener(Mt,f),En.remove(v)},0)}}},[c,u,f,v]);const y=s.useCallback(h=>{if(!n&&!r||v.paused)return;const g=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,w=document.activeElement;if(g&&w){const C=h.currentTarget,[x,b]=Gi(C);x&&b?!h.shiftKey&&w===b?(h.preventDefault(),n&&ae(x,{select:!0})):h.shiftKey&&w===x&&(h.preventDefault(),n&&ae(b,{select:!0})):w===C&&h.preventDefault()}},[n,r,v.paused]);return p.jsx(F.div,{tabIndex:-1,...a,ref:m,onKeyDown:y})});Yt.displayName=Vi;function Hi(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ae(r,{select:t}),document.activeElement!==n)return}function Gi(e){const t=qn(e),n=bn(t,e),r=bn(t.reverse(),e);return[n,r]}function qn(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function bn(e,t){for(const n of e)if(!Ui(n,{upTo:t}))return n}function Ui(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Ki(e){return e instanceof HTMLInputElement&&"select"in e}function ae(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ki(e)&&t&&e.select()}}var En=Yi();function Yi(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Rn(e,t),e.unshift(t)},remove(t){e=Rn(e,t),e[0]?.resume()}}}function Rn(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function zi(e){return e.filter(t=>t.tagName!=="A")}var Xi="Portal",pt=s.forwardRef((e,t)=>{const{container:n,...r}=e,[o,i]=s.useState(!1);ce(()=>i(!0),[]);const a=n||o&&globalThis?.document?.body;return a?ui.createPortal(p.jsx(F.div,{...r,ref:t}),a):null});pt.displayName=Xi;function qi(e,t){return s.useReducer((n,r)=>t[n][r]??n,e)}var te=e=>{const{present:t,children:n}=e,r=Zi(t),o=typeof n=="function"?n({present:r.isPresent}):s.Children.only(n),i=$(r.ref,Ji(o));return typeof n=="function"||r.isPresent?s.cloneElement(o,{ref:i}):null};te.displayName="Presence";function Zi(e){const[t,n]=s.useState(),r=s.useRef(null),o=s.useRef(e),i=s.useRef("none"),a=e?"mounted":"unmounted",[c,l]=qi(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return s.useEffect(()=>{const u=ze(r.current);i.current=c==="mounted"?u:"none"},[c]),ce(()=>{const u=r.current,f=o.current;if(f!==e){const m=i.current,v=ze(u);e?l("MOUNT"):v==="none"||u?.display==="none"?l("UNMOUNT"):l(f&&m!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),ce(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,d=v=>{const h=ze(r.current).includes(CSS.escape(v.animationName));if(v.target===t&&h&&(l("ANIMATION_END"),!o.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},m=v=>{v.target===t&&(i.current=ze(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:s.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function ze(e){return e?.animationName||"none"}function Ji(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Dt=0;function Zn(){s.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Sn()),document.body.insertAdjacentElement("beforeend",e[1]??Sn()),Dt++,()=>{Dt===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Dt--}},[])}function Sn(){const 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}var Z=function(){return Z=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Z.apply(this,arguments)};function Jn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Qi(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var et="right-scroll-bar-position",tt="width-before-scroll-bar",es="with-scroll-bars-hidden",ts="--removed-body-scroll-bar-size";function Tt(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ns(e,t){var n=s.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var rs=typeof window<"u"?s.useLayoutEffect:s.useEffect,An=new WeakMap;function os(e,t){var n=ns(null,function(r){return e.forEach(function(o){return Tt(o,r)})});return rs(function(){var r=An.get(n);if(r){var o=new Set(r),i=new Set(e),a=n.current;o.forEach(function(c){i.has(c)||Tt(c,null)}),i.forEach(function(c){o.has(c)||Tt(c,a)})}An.set(n,e)},[e]),n}function is(e){return e}function ss(e,t){t===void 0&&(t=is);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var a=t(i,r);return n.push(a),function(){n=n.filter(function(c){return c!==a})}},assignSyncMedium:function(i){for(r=!0;n.length;){var a=n;n=[],a.forEach(i)}n={push:function(c){return i(c)},filter:function(){return n}}},assignMedium:function(i){r=!0;var a=[];if(n.length){var c=n;n=[],c.forEach(i),a=n}var l=function(){var f=a;a=[],f.forEach(i)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(f){a.push(f),u()},filter:function(f){return a=a.filter(f),n}}}};return o}function as(e){e===void 0&&(e={});var t=ss(null);return t.options=Z({async:!0,ssr:!1},e),t}var Qn=function(e){var t=e.sideCar,n=Jn(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return s.createElement(r,Z({},n))};Qn.isSideCarExport=!0;function cs(e,t){return e.useMedium(t),Qn}var er=as(),_t=function(){},mt=s.forwardRef(function(e,t){var n=s.useRef(null),r=s.useState({onScrollCapture:_t,onWheelCapture:_t,onTouchMoveCapture:_t}),o=r[0],i=r[1],a=e.forwardProps,c=e.children,l=e.className,u=e.removeScrollBar,f=e.enabled,d=e.shards,m=e.sideCar,v=e.noRelative,y=e.noIsolation,h=e.inert,g=e.allowPinchZoom,w=e.as,C=w===void 0?"div":w,x=e.gapMode,b=Jn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=m,A=os([n,t]),R=Z(Z({},b),o);return s.createElement(s.Fragment,null,f&&s.createElement(E,{sideCar:er,removeScrollBar:u,shards:d,noRelative:v,noIsolation:y,inert:h,setCallbacks:i,allowPinchZoom:!!g,lockRef:n,gapMode:x}),a?s.cloneElement(s.Children.only(c),Z(Z({},R),{ref:A})):s.createElement(C,Z({},R,{className:l,ref:A}),c))});mt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};mt.classNames={fullWidth:tt,zeroRight:et};var ls=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function us(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ls();return t&&e.setAttribute("nonce",t),e}function fs(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ds(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var ps=function(){var e=0,t=null;return{add:function(n){e==0&&(t=us())&&(fs(t,n),ds(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ms=function(){var e=ps();return function(t,n){s.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},tr=function(){var e=ms(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},vs={left:0,top:0,right:0,gap:0},Ot=function(e){return parseInt(e||"",10)||0},hs=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Ot(n),Ot(r),Ot(o)]},gs=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return vs;var t=hs(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},ys=tr(),Re="data-scroll-locked",ws=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
1
|
+
import{r as s,R as Kt,a as Gn,b as ui,c as ve}from"./react-vendor-CjrBBxxX.js";var At={exports:{}},Ie={};var hn;function fi(){if(hn)return Ie;hn=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,i){var a=null;if(i!==void 0&&(a=""+i),o.key!==void 0&&(a=""+o.key),"key"in o){i={};for(var c in o)c!=="key"&&(i[c]=o[c])}else i=o;return o=i.ref,{$$typeof:e,type:r,key:a,ref:o!==void 0?o:null,props:i}}return Ie.Fragment=t,Ie.jsx=n,Ie.jsxs=n,Ie}var gn;function di(){return gn||(gn=1,At.exports=fi()),At.exports}var p=di();function yn(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function fe(...e){return t=>{let n=!1;const r=e.map(o=>{const i=yn(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():yn(e[o],null)}}}}function $(...e){return s.useCallback(fe(...e),e)}var pi=Symbol.for("react.lazy"),rt=Kt[" use ".trim().toString()];function mi(e){return typeof e=="object"&&e!==null&&"then"in e}function Un(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===pi&&"_payload"in e&&mi(e._payload)}function Kn(e){const t=vi(e),n=s.forwardRef((r,o)=>{let{children:i,...a}=r;Un(i)&&typeof rt=="function"&&(i=rt(i._payload));const c=s.Children.toArray(i),l=c.find(gi);if(l){const u=l.props.children,f=c.map(d=>d===l?s.Children.count(u)>1?s.Children.only(null):s.isValidElement(u)?u.props.children:null:d);return p.jsx(t,{...a,ref:o,children:s.isValidElement(u)?s.cloneElement(u,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}var Gu=Kn("Slot");function vi(e){const t=s.forwardRef((n,r)=>{let{children:o,...i}=n;if(Un(o)&&typeof rt=="function"&&(o=rt(o._payload)),s.isValidElement(o)){const a=wi(o),c=yi(i,o.props);return o.type!==s.Fragment&&(c.ref=r?fe(r,a):a),s.cloneElement(o,c)}return s.Children.count(o)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var hi=Symbol("radix.slottable");function gi(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===hi}function yi(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...c)=>{const l=i(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function wi(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function P(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function xi(e,t){const n=s.createContext(t),r=i=>{const{children:a,...c}=i,l=s.useMemo(()=>c,Object.values(c));return p.jsx(n.Provider,{value:l,children:a})};r.displayName=e+"Provider";function o(i){const a=s.useContext(n);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return[r,o]}function de(e,t=[]){let n=[];function r(i,a){const c=s.createContext(a),l=n.length;n=[...n,a];const u=d=>{const{scope:m,children:v,...y}=d,h=m?.[e]?.[l]||c,g=s.useMemo(()=>y,Object.values(y));return p.jsx(h.Provider,{value:g,children:v})};u.displayName=i+"Provider";function f(d,m){const v=m?.[e]?.[l]||c,y=s.useContext(v);if(y)return y;if(a!==void 0)return a;throw new Error(`\`${d}\` must be used within \`${i}\``)}return[u,f]}const o=()=>{const i=n.map(a=>s.createContext(a));return function(c){const l=c?.[e]||i;return s.useMemo(()=>({[`__scope${e}`]:{...c,[e]:l}}),[c,l])}};return o.scopeName=e,[r,Ci(o,...t)]}function Ci(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=r.reduce((c,{useScope:l,scopeName:u})=>{const d=l(i)[`__scope${u}`];return{...c,...d}},{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return n.scopeName=t.scopeName,n}var ce=globalThis?.document?s.useLayoutEffect:()=>{},bi=Kt[" useId ".trim().toString()]||(()=>{}),Ei=0;function he(e){const[t,n]=s.useState(bi());return ce(()=>{n(r=>r??String(Ei++))},[e]),t?`radix-${t}`:""}var Ri=Kt[" useInsertionEffect ".trim().toString()]||ce;function ft({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,a]=Si({defaultProp:t,onChange:n}),c=e!==void 0,l=c?e:o;{const f=s.useRef(e!==void 0);s.useEffect(()=>{const d=f.current;d!==c&&console.warn(`${r} is changing from ${d?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),f.current=c},[c,r])}const u=s.useCallback(f=>{if(c){const d=Ai(f)?f(e):f;d!==e&&a.current?.(d)}else i(f)},[c,e,i,a]);return[l,u]}function Si({defaultProp:e,onChange:t}){const[n,r]=s.useState(e),o=s.useRef(n),i=s.useRef(t);return Ri(()=>{i.current=t},[t]),s.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}function Ai(e){return typeof e=="function"}function Pi(e){const t=Mi(e),n=s.forwardRef((r,o)=>{const{children:i,...a}=r,c=s.Children.toArray(i),l=c.find(Ti);if(l){const u=l.props.children,f=c.map(d=>d===l?s.Children.count(u)>1?s.Children.only(null):s.isValidElement(u)?u.props.children:null:d);return p.jsx(t,{...a,ref:o,children:s.isValidElement(u)?s.cloneElement(u,void 0,f):null})}return p.jsx(t,{...a,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function Mi(e){const t=s.forwardRef((n,r)=>{const{children:o,...i}=n;if(s.isValidElement(o)){const a=Oi(o),c=_i(i,o.props);return o.type!==s.Fragment&&(c.ref=r?fe(r,a):a),s.cloneElement(o,c)}return s.Children.count(o)>1?s.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Di=Symbol("radix.slottable");function Ti(e){return s.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Di}function _i(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...c)=>{const l=i(...c);return o(...c),l}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Oi(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ni=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],F=Ni.reduce((e,t)=>{const n=Pi(`Primitive.${t}`),r=s.forwardRef((o,i)=>{const{asChild:a,...c}=o,l=a?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(l,{...c,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Yn(e,t){e&&Gn.flushSync(()=>e.dispatchEvent(t))}function re(e){const t=s.useRef(e);return s.useEffect(()=>{t.current=e}),s.useMemo(()=>(...n)=>t.current?.(...n),[])}function Ii(e,t=globalThis?.document){const n=re(e);s.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Li="DismissableLayer",Ft="dismissableLayer.update",ji="dismissableLayer.pointerDownOutside",Fi="dismissableLayer.focusOutside",wn,zn=s.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),dt=s.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:c,...l}=e,u=s.useContext(zn),[f,d]=s.useState(null),m=f?.ownerDocument??globalThis?.document,[,v]=s.useState({}),y=$(t,R=>d(R)),h=Array.from(u.layers),[g]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),w=h.indexOf(g),C=f?h.indexOf(f):-1,x=u.layersWithOutsidePointerEventsDisabled.size>0,b=C>=w,E=Wi(R=>{const M=R.target,O=[...u.branches].some(T=>T.contains(M));!b||O||(o?.(R),a?.(R),R.defaultPrevented||c?.())},m),A=Bi(R=>{const M=R.target;[...u.branches].some(T=>T.contains(M))||(i?.(R),a?.(R),R.defaultPrevented||c?.())},m);return Ii(R=>{C===u.layers.size-1&&(r?.(R),!R.defaultPrevented&&c&&(R.preventDefault(),c()))},m),s.useEffect(()=>{if(f)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(wn=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(f)),u.layers.add(f),xn(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(m.body.style.pointerEvents=wn)}},[f,m,n,u]),s.useEffect(()=>()=>{f&&(u.layers.delete(f),u.layersWithOutsidePointerEventsDisabled.delete(f),xn())},[f,u]),s.useEffect(()=>{const R=()=>v({});return document.addEventListener(Ft,R),()=>document.removeEventListener(Ft,R)},[]),p.jsx(F.div,{...l,ref:y,style:{pointerEvents:x?b?"auto":"none":void 0,...e.style},onFocusCapture:P(e.onFocusCapture,A.onFocusCapture),onBlurCapture:P(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:P(e.onPointerDownCapture,E.onPointerDownCapture)})});dt.displayName=Li;var ki="DismissableLayerBranch",$i=s.forwardRef((e,t)=>{const n=s.useContext(zn),r=s.useRef(null),o=$(t,r);return s.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),p.jsx(F.div,{...e,ref:o})});$i.displayName=ki;function Wi(e,t=globalThis?.document){const n=re(e),r=s.useRef(!1),o=s.useRef(()=>{});return s.useEffect(()=>{const i=c=>{if(c.target&&!r.current){let l=function(){Xn(ji,n,u,{discrete:!0})};const u={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=l,t.addEventListener("click",o.current,{once:!0})):l()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Bi(e,t=globalThis?.document){const n=re(e),r=s.useRef(!1);return s.useEffect(()=>{const o=i=>{i.target&&!r.current&&Xn(Fi,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function xn(){const e=new CustomEvent(Ft);document.dispatchEvent(e)}function Xn(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Yn(o,i):o.dispatchEvent(i)}var Pt="focusScope.autoFocusOnMount",Mt="focusScope.autoFocusOnUnmount",Cn={bubbles:!1,cancelable:!0},Vi="FocusScope",Yt=s.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[c,l]=s.useState(null),u=re(o),f=re(i),d=s.useRef(null),m=$(t,h=>l(h)),v=s.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;s.useEffect(()=>{if(r){let h=function(x){if(v.paused||!c)return;const b=x.target;c.contains(b)?d.current=b:ae(d.current,{select:!0})},g=function(x){if(v.paused||!c)return;const b=x.relatedTarget;b!==null&&(c.contains(b)||ae(d.current,{select:!0}))},w=function(x){if(document.activeElement===document.body)for(const E of x)E.removedNodes.length>0&&ae(c)};document.addEventListener("focusin",h),document.addEventListener("focusout",g);const C=new MutationObserver(w);return c&&C.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",h),document.removeEventListener("focusout",g),C.disconnect()}}},[r,c,v.paused]),s.useEffect(()=>{if(c){En.add(v);const h=document.activeElement;if(!c.contains(h)){const w=new CustomEvent(Pt,Cn);c.addEventListener(Pt,u),c.dispatchEvent(w),w.defaultPrevented||(Hi(zi(qn(c)),{select:!0}),document.activeElement===h&&ae(c))}return()=>{c.removeEventListener(Pt,u),setTimeout(()=>{const w=new CustomEvent(Mt,Cn);c.addEventListener(Mt,f),c.dispatchEvent(w),w.defaultPrevented||ae(h??document.body,{select:!0}),c.removeEventListener(Mt,f),En.remove(v)},0)}}},[c,u,f,v]);const y=s.useCallback(h=>{if(!n&&!r||v.paused)return;const g=h.key==="Tab"&&!h.altKey&&!h.ctrlKey&&!h.metaKey,w=document.activeElement;if(g&&w){const C=h.currentTarget,[x,b]=Gi(C);x&&b?!h.shiftKey&&w===b?(h.preventDefault(),n&&ae(x,{select:!0})):h.shiftKey&&w===x&&(h.preventDefault(),n&&ae(b,{select:!0})):w===C&&h.preventDefault()}},[n,r,v.paused]);return p.jsx(F.div,{tabIndex:-1,...a,ref:m,onKeyDown:y})});Yt.displayName=Vi;function Hi(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ae(r,{select:t}),document.activeElement!==n)return}function Gi(e){const t=qn(e),n=bn(t,e),r=bn(t.reverse(),e);return[n,r]}function qn(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function bn(e,t){for(const n of e)if(!Ui(n,{upTo:t}))return n}function Ui(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Ki(e){return e instanceof HTMLInputElement&&"select"in e}function ae(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Ki(e)&&t&&e.select()}}var En=Yi();function Yi(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=Rn(e,t),e.unshift(t)},remove(t){e=Rn(e,t),e[0]?.resume()}}}function Rn(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function zi(e){return e.filter(t=>t.tagName!=="A")}var Xi="Portal",pt=s.forwardRef((e,t)=>{const{container:n,...r}=e,[o,i]=s.useState(!1);ce(()=>i(!0),[]);const a=n||o&&globalThis?.document?.body;return a?ui.createPortal(p.jsx(F.div,{...r,ref:t}),a):null});pt.displayName=Xi;function qi(e,t){return s.useReducer((n,r)=>t[n][r]??n,e)}var te=e=>{const{present:t,children:n}=e,r=Zi(t),o=typeof n=="function"?n({present:r.isPresent}):s.Children.only(n),i=$(r.ref,Ji(o));return typeof n=="function"||r.isPresent?s.cloneElement(o,{ref:i}):null};te.displayName="Presence";function Zi(e){const[t,n]=s.useState(),r=s.useRef(null),o=s.useRef(e),i=s.useRef("none"),a=e?"mounted":"unmounted",[c,l]=qi(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return s.useEffect(()=>{const u=ze(r.current);i.current=c==="mounted"?u:"none"},[c]),ce(()=>{const u=r.current,f=o.current;if(f!==e){const m=i.current,v=ze(u);e?l("MOUNT"):v==="none"||u?.display==="none"?l("UNMOUNT"):l(f&&m!==v?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,l]),ce(()=>{if(t){let u;const f=t.ownerDocument.defaultView??window,d=v=>{const h=ze(r.current).includes(CSS.escape(v.animationName));if(v.target===t&&h&&(l("ANIMATION_END"),!o.current)){const g=t.style.animationFillMode;t.style.animationFillMode="forwards",u=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=g)})}},m=v=>{v.target===t&&(i.current=ze(r.current))};return t.addEventListener("animationstart",m),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{f.clearTimeout(u),t.removeEventListener("animationstart",m),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:s.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function ze(e){return e?.animationName||"none"}function Ji(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Dt=0;function Zn(){s.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Sn()),document.body.insertAdjacentElement("beforeend",e[1]??Sn()),Dt++,()=>{Dt===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),Dt--}},[])}function Sn(){const 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}var Z=function(){return Z=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Z.apply(this,arguments)};function Jn(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Qi(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}var et="right-scroll-bar-position",tt="width-before-scroll-bar",es="with-scroll-bars-hidden",ts="--removed-body-scroll-bar-size";function Tt(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ns(e,t){var n=s.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var rs=typeof window<"u"?s.useLayoutEffect:s.useEffect,An=new WeakMap;function os(e,t){var n=ns(null,function(r){return e.forEach(function(o){return Tt(o,r)})});return rs(function(){var r=An.get(n);if(r){var o=new Set(r),i=new Set(e),a=n.current;o.forEach(function(c){i.has(c)||Tt(c,null)}),i.forEach(function(c){o.has(c)||Tt(c,a)})}An.set(n,e)},[e]),n}function is(e){return e}function ss(e,t){t===void 0&&(t=is);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var a=t(i,r);return n.push(a),function(){n=n.filter(function(c){return c!==a})}},assignSyncMedium:function(i){for(r=!0;n.length;){var a=n;n=[],a.forEach(i)}n={push:function(c){return i(c)},filter:function(){return n}}},assignMedium:function(i){r=!0;var a=[];if(n.length){var c=n;n=[],c.forEach(i),a=n}var l=function(){var f=a;a=[],f.forEach(i)},u=function(){return Promise.resolve().then(l)};u(),n={push:function(f){a.push(f),u()},filter:function(f){return a=a.filter(f),n}}}};return o}function as(e){e===void 0&&(e={});var t=ss(null);return t.options=Z({async:!0,ssr:!1},e),t}var Qn=function(e){var t=e.sideCar,n=Jn(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return s.createElement(r,Z({},n))};Qn.isSideCarExport=!0;function cs(e,t){return e.useMedium(t),Qn}var er=as(),_t=function(){},mt=s.forwardRef(function(e,t){var n=s.useRef(null),r=s.useState({onScrollCapture:_t,onWheelCapture:_t,onTouchMoveCapture:_t}),o=r[0],i=r[1],a=e.forwardProps,c=e.children,l=e.className,u=e.removeScrollBar,f=e.enabled,d=e.shards,m=e.sideCar,v=e.noRelative,y=e.noIsolation,h=e.inert,g=e.allowPinchZoom,w=e.as,C=w===void 0?"div":w,x=e.gapMode,b=Jn(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=m,A=os([n,t]),R=Z(Z({},b),o);return s.createElement(s.Fragment,null,f&&s.createElement(E,{sideCar:er,removeScrollBar:u,shards:d,noRelative:v,noIsolation:y,inert:h,setCallbacks:i,allowPinchZoom:!!g,lockRef:n,gapMode:x}),a?s.cloneElement(s.Children.only(c),Z(Z({},R),{ref:A})):s.createElement(C,Z({},R,{className:l,ref:A}),c))});mt.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};mt.classNames={fullWidth:tt,zeroRight:et};var ls=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function us(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ls();return t&&e.setAttribute("nonce",t),e}function fs(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ds(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var ps=function(){var e=0,t=null;return{add:function(n){e==0&&(t=us())&&(fs(t,n),ds(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ms=function(){var e=ps();return function(t,n){s.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},tr=function(){var e=ms(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},vs={left:0,top:0,right:0,gap:0},Ot=function(e){return parseInt(e||"",10)||0},hs=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Ot(n),Ot(r),Ot(o)]},gs=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return vs;var t=hs(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},ys=tr(),Re="data-scroll-locked",ws=function(e,t,n,r){var o=e.left,i=e.top,a=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
2
2
|
.`.concat(es,` {
|
|
3
3
|
overflow: hidden `).concat(r,`;
|
|
4
4
|
padding-right: `).concat(c,"px ").concat(r,`;
|
|
@@ -48,4 +48,4 @@ You can add a description to the \`${Ae}\` by passing a \`${ti}\` component as a
|
|
|
48
48
|
|
|
49
49
|
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Ae}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
50
50
|
|
|
51
|
-
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return s.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},sf=Xo,af=qo,cf=Zo,lf=Jo,uf=ri,ff=ii,df=ei,pf=ni;export{qu as A,
|
|
51
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return s.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},sf=Xo,af=qo,cf=Zo,lf=Jo,uf=ri,ff=ii,df=ei,pf=ni;export{qu as A,af as B,oa as C,sa as D,cf as E,Ju as F,Qu as G,ef as H,ll as I,tf as J,nf as K,rf as L,ra as O,na as P,ea as R,Gu as S,ia as T,Rr as a,Uu as b,Ku as c,Yu as d,zu as e,Xu as f,de as g,he as h,F as i,p as j,P as k,te as l,$ as m,ce as n,of as o,lo as p,cl as q,ao as r,re as s,sf as t,ft as u,lf as v,df as w,pf as x,ff as y,uf as z};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
function rt(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const u=Object.getOwnPropertyDescriptor(n,i);u&&Object.defineProperty(e,i,u.get?u:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Nr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ae(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ce={exports:{}},R={};var _e;function nt(){if(_e)return R;_e=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),s=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),o=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),m=Symbol.iterator;function v(a){return a===null||typeof a!="object"?null:(a=m&&a[m]||a["@@iterator"],typeof a=="function"?a:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,y={};function g(a,h,_){this.props=a,this.context=h,this.refs=y,this.updater=_||w}g.prototype.isReactComponent={},g.prototype.setState=function(a,h){if(typeof a!="object"&&typeof a!="function"&&a!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,a,h,"setState")},g.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};function E(){}E.prototype=g.prototype;function S(a,h,_){this.props=a,this.context=h,this.refs=y,this.updater=_||w}var $=S.prototype=new E;$.constructor=S,x($,g.prototype),$.isPureReactComponent=!0;var A=Array.isArray;function H(){}var P={H:null,A:null,T:null,S:null},q=Object.prototype.hasOwnProperty;function U(a,h,_){var C=_.ref;return{$$typeof:e,type:a,key:h,ref:C!==void 0?C:null,props:_}}function D(a,h){return U(a.type,h,a.props)}function Y(a){return typeof a=="object"&&a!==null&&a.$$typeof===e}function te(a){var h={"=":"=0",":":"=2"};return"$"+a.replace(/[=:]/g,function(_){return h[_]})}var we=/\/+/g;function se(a,h){return typeof a=="object"&&a!==null&&a.key!=null?te(""+a.key):h.toString(36)}function Qe(a){switch(a.status){case"fulfilled":return a.value;case"rejected":throw a.reason;default:switch(typeof a.status=="string"?a.then(H,H):(a.status="pending",a.then(function(h){a.status==="pending"&&(a.status="fulfilled",a.value=h)},function(h){a.status==="pending"&&(a.status="rejected",a.reason=h)})),a.status){case"fulfilled":return a.value;case"rejected":throw a.reason}}throw a}function K(a,h,_,C,b){var T=typeof a;(T==="undefined"||T==="boolean")&&(a=null);var L=!1;if(a===null)L=!0;else switch(T){case"bigint":case"string":case"number":L=!0;break;case"object":switch(a.$$typeof){case e:case t:L=!0;break;case f:return L=a._init,K(L(a._payload),h,_,C,b)}}if(L)return b=b(a),L=C===""?"."+se(a,0):C,A(b)?(_="",L!=null&&(_=L.replace(we,"$&/")+"/"),K(b,h,_,"",function(tt){return tt})):b!=null&&(Y(b)&&(b=D(b,_+(b.key==null||a&&a.key===b.key?"":(""+b.key).replace(we,"$&/")+"/")+L)),h.push(b)),1;L=0;var F=C===""?".":C+":";if(A(a))for(var N=0;N<a.length;N++)C=a[N],T=F+se(C,N),L+=K(C,h,_,T,b);else if(N=v(a),typeof N=="function")for(a=N.call(a),N=0;!(C=a.next()).done;)C=C.value,T=F+se(C,N++),L+=K(C,h,_,T,b);else if(T==="object"){if(typeof a.then=="function")return K(Qe(a),h,_,C,b);throw h=String(a),Error("Objects are not valid as a React child (found: "+(h==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":h)+"). If you meant to render a collection of children, use an array instead.")}return L}function re(a,h,_){if(a==null)return a;var C=[],b=0;return K(a,C,"","",function(T){return h.call(_,T,b++)}),C}function Ze(a){if(a._status===-1){var h=a._result;h=h(),h.then(function(_){(a._status===0||a._status===-1)&&(a._status=1,a._result=_)},function(_){(a._status===0||a._status===-1)&&(a._status=2,a._result=_)}),a._status===-1&&(a._status=0,a._result=h)}if(a._status===1)return a._result.default;throw a._result}var Ce=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var h=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(h))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)},et={map:re,forEach:function(a,h,_){re(a,function(){h.apply(this,arguments)},_)},count:function(a){var h=0;return re(a,function(){h++}),h},toArray:function(a){return re(a,function(h){return h})||[]},only:function(a){if(!Y(a))throw Error("React.Children.only expected to receive a single React element child.");return a}};return R.Activity=p,R.Children=et,R.Component=g,R.Fragment=r,R.Profiler=i,R.PureComponent=S,R.StrictMode=n,R.Suspense=l,R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,R.__COMPILER_RUNTIME={__proto__:null,c:function(a){return P.H.useMemoCache(a)}},R.cache=function(a){return function(){return a.apply(null,arguments)}},R.cacheSignal=function(){return null},R.cloneElement=function(a,h,_){if(a==null)throw Error("The argument must be a React element, but you passed "+a+".");var C=x({},a.props),b=a.key;if(h!=null)for(T in h.key!==void 0&&(b=""+h.key),h)!q.call(h,T)||T==="key"||T==="__self"||T==="__source"||T==="ref"&&h.ref===void 0||(C[T]=h[T]);var T=arguments.length-2;if(T===1)C.children=_;else if(1<T){for(var L=Array(T),F=0;F<T;F++)L[F]=arguments[F+2];C.children=L}return U(a.type,b,C)},R.createContext=function(a){return a={$$typeof:s,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null},a.Provider=a,a.Consumer={$$typeof:u,_context:a},a},R.createElement=function(a,h,_){var C,b={},T=null;if(h!=null)for(C in h.key!==void 0&&(T=""+h.key),h)q.call(h,C)&&C!=="key"&&C!=="__self"&&C!=="__source"&&(b[C]=h[C]);var L=arguments.length-2;if(L===1)b.children=_;else if(1<L){for(var F=Array(L),N=0;N<L;N++)F[N]=arguments[N+2];b.children=F}if(a&&a.defaultProps)for(C in L=a.defaultProps,L)b[C]===void 0&&(b[C]=L[C]);return U(a,T,b)},R.createRef=function(){return{current:null}},R.forwardRef=function(a){return{$$typeof:d,render:a}},R.isValidElement=Y,R.lazy=function(a){return{$$typeof:f,_payload:{_status:-1,_result:a},_init:Ze}},R.memo=function(a,h){return{$$typeof:o,type:a,compare:h===void 0?null:h}},R.startTransition=function(a){var h=P.T,_={};P.T=_;try{var C=a(),b=P.S;b!==null&&b(_,C),typeof C=="object"&&C!==null&&typeof C.then=="function"&&C.then(H,Ce)}catch(T){Ce(T)}finally{h!==null&&_.types!==null&&(h.types=_.types),P.T=h}},R.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},R.use=function(a){return P.H.use(a)},R.useActionState=function(a,h,_){return P.H.useActionState(a,h,_)},R.useCallback=function(a,h){return P.H.useCallback(a,h)},R.useContext=function(a){return P.H.useContext(a)},R.useDebugValue=function(){},R.useDeferredValue=function(a,h){return P.H.useDeferredValue(a,h)},R.useEffect=function(a,h){return P.H.useEffect(a,h)},R.useEffectEvent=function(a){return P.H.useEffectEvent(a)},R.useId=function(){return P.H.useId()},R.useImperativeHandle=function(a,h,_){return P.H.useImperativeHandle(a,h,_)},R.useInsertionEffect=function(a,h){return P.H.useInsertionEffect(a,h)},R.useLayoutEffect=function(a,h){return P.H.useLayoutEffect(a,h)},R.useMemo=function(a,h){return P.H.useMemo(a,h)},R.useOptimistic=function(a,h){return P.H.useOptimistic(a,h)},R.useReducer=function(a,h,_){return P.H.useReducer(a,h,_)},R.useRef=function(a){return P.H.useRef(a)},R.useState=function(a){return P.H.useState(a)},R.useSyncExternalStore=function(a,h,_){return P.H.useSyncExternalStore(a,h,_)},R.useTransition=function(){return P.H.useTransition()},R.version="19.2.1",R}var xe;function Ne(){return xe||(xe=1,ce.exports=nt()),ce.exports}var c=Ne();const ot=Ae(c),Dr=rt({__proto__:null,default:ot},[c]);var fe={exports:{}},k={};var Se;function at(){if(Se)return k;Se=1;var e=Ne();function t(l){var o="https://react.dev/errors/"+l;if(1<arguments.length){o+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)o+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+l+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var n={d:{f:r,r:function(){throw Error(t(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},i=Symbol.for("react.portal");function u(l,o,f){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:p==null?null:""+p,children:l,containerInfo:o,implementation:f}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(l,o){if(l==="font")return"";if(typeof o=="string")return o==="use-credentials"?o:""}return k.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n,k.createPortal=function(l,o){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!o||o.nodeType!==1&&o.nodeType!==9&&o.nodeType!==11)throw Error(t(299));return u(l,o,null,f)},k.flushSync=function(l){var o=s.T,f=n.p;try{if(s.T=null,n.p=2,l)return l()}finally{s.T=o,n.p=f,n.d.f()}},k.preconnect=function(l,o){typeof l=="string"&&(o?(o=o.crossOrigin,o=typeof o=="string"?o==="use-credentials"?o:"":void 0):o=null,n.d.C(l,o))},k.prefetchDNS=function(l){typeof l=="string"&&n.d.D(l)},k.preinit=function(l,o){if(typeof l=="string"&&o&&typeof o.as=="string"){var f=o.as,p=d(f,o.crossOrigin),m=typeof o.integrity=="string"?o.integrity:void 0,v=typeof o.fetchPriority=="string"?o.fetchPriority:void 0;f==="style"?n.d.S(l,typeof o.precedence=="string"?o.precedence:void 0,{crossOrigin:p,integrity:m,fetchPriority:v}):f==="script"&&n.d.X(l,{crossOrigin:p,integrity:m,fetchPriority:v,nonce:typeof o.nonce=="string"?o.nonce:void 0})}},k.preinitModule=function(l,o){if(typeof l=="string")if(typeof o=="object"&&o!==null){if(o.as==null||o.as==="script"){var f=d(o.as,o.crossOrigin);n.d.M(l,{crossOrigin:f,integrity:typeof o.integrity=="string"?o.integrity:void 0,nonce:typeof o.nonce=="string"?o.nonce:void 0})}}else o==null&&n.d.M(l)},k.preload=function(l,o){if(typeof l=="string"&&typeof o=="object"&&o!==null&&typeof o.as=="string"){var f=o.as,p=d(f,o.crossOrigin);n.d.L(l,f,{crossOrigin:p,integrity:typeof o.integrity=="string"?o.integrity:void 0,nonce:typeof o.nonce=="string"?o.nonce:void 0,type:typeof o.type=="string"?o.type:void 0,fetchPriority:typeof o.fetchPriority=="string"?o.fetchPriority:void 0,referrerPolicy:typeof o.referrerPolicy=="string"?o.referrerPolicy:void 0,imageSrcSet:typeof o.imageSrcSet=="string"?o.imageSrcSet:void 0,imageSizes:typeof o.imageSizes=="string"?o.imageSizes:void 0,media:typeof o.media=="string"?o.media:void 0})}},k.preloadModule=function(l,o){if(typeof l=="string")if(o){var f=d(o.as,o.crossOrigin);n.d.m(l,{as:typeof o.as=="string"&&o.as!=="script"?o.as:void 0,crossOrigin:f,integrity:typeof o.integrity=="string"?o.integrity:void 0})}else n.d.m(l)},k.requestFormReset=function(l){n.d.r(l)},k.unstable_batchedUpdates=function(l,o){return l(o)},k.useFormState=function(l,o,f){return s.H.useFormState(l,o,f)},k.useFormStatus=function(){return s.H.useHostTransitionStatus()},k.version="19.2.1",k}var Pe;function it(){if(Pe)return fe.exports;Pe=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),fe.exports=at(),fe.exports}var be="popstate";function ut(e={}){function t(n,i){let{pathname:u,search:s,hash:d}=n.location;return he("",{pathname:u,search:s,hash:d},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function r(n,i){return typeof i=="string"?i:X(i)}return st(t,r,null,e)}function O(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function M(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function lt(){return Math.random().toString(36).substring(2,10)}function Te(e,t){return{usr:e.state,key:e.key,idx:t}}function he(e,t,r=null,n){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?V(t):t,state:r,key:t&&t.key||n||lt()}}function X({pathname:e="/",search:t="",hash:r=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function V(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substring(r),e=e.substring(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substring(n),e=e.substring(0,n)),e&&(t.pathname=e)}return t}function st(e,t,r,n={}){let{window:i=document.defaultView,v5Compat:u=!1}=n,s=i.history,d="POP",l=null,o=f();o==null&&(o=0,s.replaceState({...s.state,idx:o},""));function f(){return(s.state||{idx:null}).idx}function p(){d="POP";let y=f(),g=y==null?null:y-o;o=y,l&&l({action:d,location:x.location,delta:g})}function m(y,g){d="PUSH";let E=he(x.location,y,g);o=f()+1;let S=Te(E,o),$=x.createHref(E);try{s.pushState(S,"",$)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;i.location.assign($)}u&&l&&l({action:d,location:x.location,delta:1})}function v(y,g){d="REPLACE";let E=he(x.location,y,g);o=f();let S=Te(E,o),$=x.createHref(E);s.replaceState(S,"",$),u&&l&&l({action:d,location:x.location,delta:0})}function w(y){return ct(y)}let x={get action(){return d},get location(){return e(i,s)},listen(y){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(be,p),l=y,()=>{i.removeEventListener(be,p),l=null}},createHref(y){return t(i,y)},createURL:w,encodeLocation(y){let g=w(y);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:m,replace:v,go(y){return s.go(y)}};return x}function ct(e,t=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),O(r,"No window.location.(origin|href) available to create URL");let n=typeof e=="string"?e:X(e);return n=n.replace(/ $/,"%20"),!t&&n.startsWith("//")&&(n=r+n),new URL(n,r)}function De(e,t,r="/"){return ft(e,t,r,!1)}function ft(e,t,r,n){let i=typeof t=="string"?V(t):t,u=W(i.pathname||"/",r);if(u==null)return null;let s=Me(e);dt(s);let d=null;for(let l=0;d==null&&l<s.length;++l){let o=_t(u);d=wt(s[l],o,n)}return d}function Me(e,t=[],r=[],n="",i=!1){let u=(s,d,l=i,o)=>{let f={relativePath:o===void 0?s.path||"":o,caseSensitive:s.caseSensitive===!0,childrenIndex:d,route:s};if(f.relativePath.startsWith("/")){if(!f.relativePath.startsWith(n)&&l)return;O(f.relativePath.startsWith(n),`Absolute route path "${f.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(n.length)}let p=B([n,f.relativePath]),m=r.concat(f);s.children&&s.children.length>0&&(O(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),Me(s.children,t,m,p,l)),!(s.path==null&&!s.index)&&t.push({path:p,score:Et(p,s.index),routesMeta:m})};return e.forEach((s,d)=>{if(s.path===""||!s.path?.includes("?"))u(s,d);else for(let l of Ie(s.path))u(s,d,!0,l)}),t}function Ie(e){let t=e.split("/");if(t.length===0)return[];let[r,...n]=t,i=r.endsWith("?"),u=r.replace(/\?$/,"");if(n.length===0)return i?[u,""]:[u];let s=Ie(n.join("/")),d=[];return d.push(...s.map(l=>l===""?u:[u,l].join("/"))),i&&d.push(...s),d.map(l=>e.startsWith("/")&&l===""?"/":l)}function dt(e){e.sort((t,r)=>t.score!==r.score?r.score-t.score:Rt(t.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}var pt=/^:[\w-]+$/,ht=3,mt=2,yt=1,gt=10,vt=-2,Le=e=>e==="*";function Et(e,t){let r=e.split("/"),n=r.length;return r.some(Le)&&(n+=vt),t&&(n+=mt),r.filter(i=>!Le(i)).reduce((i,u)=>i+(pt.test(u)?ht:u===""?yt:gt),n)}function Rt(e,t){return e.length===t.length&&e.slice(0,-1).every((n,i)=>n===t[i])?e[e.length-1]-t[t.length-1]:0}function wt(e,t,r=!1){let{routesMeta:n}=e,i={},u="/",s=[];for(let d=0;d<n.length;++d){let l=n[d],o=d===n.length-1,f=u==="/"?t:t.slice(u.length)||"/",p=ie({path:l.relativePath,caseSensitive:l.caseSensitive,end:o},f),m=l.route;if(!p&&o&&r&&!n[n.length-1].route.index&&(p=ie({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},f)),!p)return null;Object.assign(i,p.params),s.push({params:i,pathname:B([u,p.pathname]),pathnameBase:Tt(B([u,p.pathnameBase])),route:m}),p.pathnameBase!=="/"&&(u=B([u,p.pathnameBase]))}return s}function ie(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[r,n]=Ct(e.path,e.caseSensitive,e.end),i=t.match(r);if(!i)return null;let u=i[0],s=u.replace(/(.)\/+$/,"$1"),d=i.slice(1);return{params:n.reduce((o,{paramName:f,isOptional:p},m)=>{if(f==="*"){let w=d[m]||"";s=u.slice(0,u.length-w.length).replace(/(.)\/+$/,"$1")}const v=d[m];return p&&!v?o[f]=void 0:o[f]=(v||"").replace(/%2F/g,"/"),o},{}),pathname:u,pathnameBase:s,pattern:e}}function Ct(e,t=!1,r=!0){M(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let n=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,d,l)=>(n.push({paramName:d,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(n.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),n]}function _t(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return M(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function W(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&n!=="/"?null:e.slice(r)||"/"}var xt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,St=e=>xt.test(e);function Pt(e,t="/"){let{pathname:r,search:n="",hash:i=""}=typeof e=="string"?V(e):e,u;if(r)if(St(r))u=r;else{if(r.includes("//")){let s=r;r=r.replace(/\/\/+/g,"/"),M(!1,`Pathnames cannot have embedded double slashes - normalizing ${s} -> ${r}`)}r.startsWith("/")?u=Oe(r.substring(1),"/"):u=Oe(r,t)}else u=t;return{pathname:u,search:Lt(n),hash:Ot(i)}}function Oe(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?r.length>1&&r.pop():i!=="."&&r.push(i)}),r.length>1?r.join("/"):"/"}function de(e,t,r,n){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(n)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function bt(e){return e.filter((t,r)=>r===0||t.route.path&&t.route.path.length>0)}function He(e){let t=bt(e);return t.map((r,n)=>n===t.length-1?r.pathname:r.pathnameBase)}function Ue(e,t,r,n=!1){let i;typeof e=="string"?i=V(e):(i={...e},O(!i.pathname||!i.pathname.includes("?"),de("?","pathname","search",i)),O(!i.pathname||!i.pathname.includes("#"),de("#","pathname","hash",i)),O(!i.search||!i.search.includes("#"),de("#","search","hash",i)));let u=e===""||i.pathname==="",s=u?"/":i.pathname,d;if(s==null)d=r;else{let p=t.length-1;if(!n&&s.startsWith("..")){let m=s.split("/");for(;m[0]==="..";)m.shift(),p-=1;i.pathname=m.join("/")}d=p>=0?t[p]:"/"}let l=Pt(i,d),o=s&&s!=="/"&&s.endsWith("/"),f=(u||s===".")&&r.endsWith("/");return!l.pathname.endsWith("/")&&(o||f)&&(l.pathname+="/"),l}var B=e=>e.join("/").replace(/\/\/+/g,"/"),Tt=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Lt=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Ot=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function $t(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function kt(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Fe=["POST","PUT","PATCH","DELETE"];new Set(Fe);var At=["GET",...Fe];new Set(At);var G=c.createContext(null);G.displayName="DataRouter";var ue=c.createContext(null);ue.displayName="DataRouterState";c.createContext(!1);var je=c.createContext({isTransitioning:!1});je.displayName="ViewTransition";var Nt=c.createContext(new Map);Nt.displayName="Fetchers";var Dt=c.createContext(null);Dt.displayName="Await";var I=c.createContext(null);I.displayName="Navigation";var Q=c.createContext(null);Q.displayName="Location";var j=c.createContext({outlet:null,matches:[],isDataRoute:!1});j.displayName="Route";var ye=c.createContext(null);ye.displayName="RouteError";function Mt(e,{relative:t}={}){O(Z(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:n}=c.useContext(I),{hash:i,pathname:u,search:s}=ee(e,{relative:t}),d=u;return r!=="/"&&(d=u==="/"?r:B([r,u])),n.createHref({pathname:d,search:s,hash:i})}function Z(){return c.useContext(Q)!=null}function z(){return O(Z(),"useLocation() may be used only in the context of a <Router> component."),c.useContext(Q).location}var Be="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function We(e){c.useContext(I).static||c.useLayoutEffect(e)}function It(){let{isDataRoute:e}=c.useContext(j);return e?Qt():Ht()}function Ht(){O(Z(),"useNavigate() may be used only in the context of a <Router> component.");let e=c.useContext(G),{basename:t,navigator:r}=c.useContext(I),{matches:n}=c.useContext(j),{pathname:i}=z(),u=JSON.stringify(He(n)),s=c.useRef(!1);return We(()=>{s.current=!0}),c.useCallback((l,o={})=>{if(M(s.current,Be),!s.current)return;if(typeof l=="number"){r.go(l);return}let f=Ue(l,JSON.parse(u),i,o.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:B([t,f.pathname])),(o.replace?r.replace:r.push)(f,o.state,o)},[t,r,u,i,e])}var Ut=c.createContext(null);function Ft(e){let t=c.useContext(j).outlet;return c.useMemo(()=>t&&c.createElement(Ut.Provider,{value:e},t),[t,e])}function ee(e,{relative:t}={}){let{matches:r}=c.useContext(j),{pathname:n}=z(),i=JSON.stringify(He(r));return c.useMemo(()=>Ue(e,JSON.parse(i),n,t==="path"),[e,i,n,t])}function jt(e,t){return Ye(e,t)}function Ye(e,t,r,n,i){O(Z(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:u}=c.useContext(I),{matches:s}=c.useContext(j),d=s[s.length-1],l=d?d.params:{},o=d?d.pathname:"/",f=d?d.pathnameBase:"/",p=d&&d.route;{let E=p&&p.path||"";ze(o,!p||E.endsWith("*")||E.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${o}" (under <Route path="${E}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
2
2
|
|
|
3
|
-
Please change the parent <Route path="${E}"> to <Route path="${E==="/"?"*":`${E}/*`}">.`)}let m=z(),v;if(t){let E=typeof t=="string"?V(t):t;O(f==="/"||E.pathname?.startsWith(f),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${f}" but pathname "${E.pathname}" was given in the \`location\` prop.`),v=E}else v=m;let w=v.pathname||"/",x=w;if(f!=="/"){let E=f.replace(/^\//,"").split("/");x="/"+w.replace(/^\//,"").split("/").slice(E.length).join("/")}let y=De(e,{pathname:x});M(p||y!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),M(y==null||y[y.length-1].route.element!==void 0||y[y.length-1].route.Component!==void 0||y[y.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let g=qt(y&&y.map(E=>Object.assign({},E,{params:Object.assign({},l,E.params),pathname:B([f,u.encodeLocation?u.encodeLocation(E.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?f:B([f,u.encodeLocation?u.encodeLocation(E.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathnameBase])})),s,r,n,i);return t&&g?c.createElement(Q.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...v},navigationType:"POP"}},g):g}function Bt(){let e=Xt(),t=$t(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:n},u={padding:"2px 4px",backgroundColor:n},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=c.createElement(c.Fragment,null,c.createElement("p",null,"💿 Hey developer 👋"),c.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",c.createElement("code",{style:u},"ErrorBoundary")," or"," ",c.createElement("code",{style:u},"errorElement")," prop on your route.")),c.createElement(c.Fragment,null,c.createElement("h2",null,"Unexpected Application Error!"),c.createElement("h3",{style:{fontStyle:"italic"}},t),r?c.createElement("pre",{style:i},r):null,s)}var Wt=c.createElement(Bt,null),Yt=class extends c.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?c.createElement(j.Provider,{value:this.props.routeContext},c.createElement(ye.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function zt({routeContext:e,match:t,children:r}){let n=c.useContext(G);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),c.createElement(j.Provider,{value:e},r)}function qt(e,t=[],r=null,n=null,i=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let u=e,s=r?.errors;if(s!=null){let f=u.findIndex(p=>p.route.id&&s?.[p.route.id]!==void 0);O(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),u=u.slice(0,Math.min(u.length,f+1))}let d=!1,l=-1;if(r)for(let f=0;f<u.length;f++){let p=u[f];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(l=f),p.route.id){let{loaderData:m,errors:v}=r,w=p.route.loader&&!m.hasOwnProperty(p.route.id)&&(!v||v[p.route.id]===void 0);if(p.route.lazy||w){d=!0,l>=0?u=u.slice(0,l+1):u=[u[0]];break}}}let o=r&&n?(f,p)=>{n(f,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:kt(r.matches),errorInfo:p})}:void 0;return u.reduceRight((f,p,m)=>{let v,w=!1,x=null,y=null;r&&(v=s&&p.route.id?s[p.route.id]:void 0,x=p.route.errorElement||Wt,d&&(l<0&&m===0?(ze("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,y=null):l===m&&(w=!0,y=p.route.hydrateFallbackElement||null)));let g=t.concat(u.slice(0,m+1)),E=()=>{let S;return v?S=x:w?S=y:p.route.Component?S=c.createElement(p.route.Component,null):p.route.element?S=p.route.element:S=f,c.createElement(zt,{match:p,routeContext:{outlet:f,matches:g,isDataRoute:r!=null},children:S})};return r&&(p.route.ErrorBoundary||p.route.errorElement||m===0)?c.createElement(Yt,{location:r.location,revalidation:r.revalidation,component:x,error:v,children:E(),routeContext:{outlet:null,matches:g,isDataRoute:!0},onError:o}):E()},null)}function ge(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Kt(e){let t=c.useContext(G);return O(t,ge(e)),t}function Vt(e){let t=c.useContext(ue);return O(t,ge(e)),t}function Gt(e){let t=c.useContext(j);return O(t,ge(e)),t}function ve(e){let t=Gt(e),r=t.matches[t.matches.length-1];return O(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function Jt(){return ve("useRouteId")}function Xt(){let e=c.useContext(ye),t=Vt("useRouteError"),r=ve("useRouteError");return e!==void 0?e:t.errors?.[r]}function Qt(){let{router:e}=Kt("useNavigate"),t=ve("useNavigate"),r=c.useRef(!1);return We(()=>{r.current=!0}),c.useCallback(async(i,u={})=>{M(r.current,Be),r.current&&(typeof i=="number"?await e.navigate(i):await e.navigate(i,{fromRouteId:t,...u}))},[e,t])}var $e={};function ze(e,t,r){!t&&!$e[e]&&($e[e]=!0,M(!1,r))}c.memo(Zt);function Zt({routes:e,future:t,state:r,unstable_onError:n}){return Ye(e,void 0,r,n,t)}function Mr(e){return Ft(e.context)}function er(e){O(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function tr({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:i,static:u=!1,unstable_useTransitions:s}){O(!Z(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=e.replace(/^\/*/,"/"),l=c.useMemo(()=>({basename:d,navigator:i,static:u,unstable_useTransitions:s,future:{}}),[d,i,u,s]);typeof r=="string"&&(r=V(r));let{pathname:o="/",search:f="",hash:p="",state:m=null,key:v="default"}=r,w=c.useMemo(()=>{let x=W(o,d);return x==null?null:{location:{pathname:x,search:f,hash:p,state:m,key:v},navigationType:n}},[d,o,f,p,m,v,n]);return M(w!=null,`<Router basename="${d}"> is not able to match the URL "${o}${f}${p}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:c.createElement(I.Provider,{value:l},c.createElement(Q.Provider,{children:t,value:w}))}function Ir({children:e,location:t}){return jt(me(e),t)}function me(e,t=[]){let r=[];return c.Children.forEach(e,(n,i)=>{if(!c.isValidElement(n))return;let u=[...t,i];if(n.type===c.Fragment){r.push.apply(r,me(n.props.children,u));return}O(n.type===er,`[${typeof n.type=="string"?n.type:n.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),O(!n.props.index||!n.props.children,"An index route cannot have child routes.");let s={id:n.props.id||u.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,middleware:n.props.middleware,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(s.children=me(n.props.children,u)),r.push(s)}),r}var oe="get",ae="application/x-www-form-urlencoded";function le(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function rr(e){return le(e)&&e.tagName.toLowerCase()==="button"}function nr(e){return le(e)&&e.tagName.toLowerCase()==="form"}function or(e){return le(e)&&e.tagName.toLowerCase()==="input"}function ar(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ir(e,t){return e.button===0&&(!t||t==="_self")&&!ar(e)}var ne=null;function ur(){if(ne===null)try{new FormData(document.createElement("form"),0),ne=!1}catch{ne=!0}return ne}var lr=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function pe(e){return e!=null&&!lr.has(e)?(M(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ae}"`),null):e}function sr(e,t){let r,n,i,u,s;if(nr(e)){let d=e.getAttribute("action");n=d?W(d,t):null,r=e.getAttribute("method")||oe,i=pe(e.getAttribute("enctype"))||ae,u=new FormData(e)}else if(rr(e)||or(e)&&(e.type==="submit"||e.type==="image")){let d=e.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||d.getAttribute("action");if(n=l?W(l,t):null,r=e.getAttribute("formmethod")||d.getAttribute("method")||oe,i=pe(e.getAttribute("formenctype"))||pe(d.getAttribute("enctype"))||ae,u=new FormData(d,e),!ur()){let{name:o,type:f,value:p}=e;if(f==="image"){let m=o?`${o}.`:"";u.append(`${m}x`,"0"),u.append(`${m}y`,"0")}else o&&u.append(o,p)}}else{if(le(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=oe,n=null,i=ae,s=e}return u&&i==="text/plain"&&(s=u,u=void 0),{action:n,method:r.toLowerCase(),encType:i,formData:u,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Ee(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function cr(e,t,r){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname=`_root.${r}`:t&&W(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:n.pathname=`${n.pathname.replace(/\/$/,"")}.${r}`,n}async function fr(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function dr(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function pr(e,t,r){let n=await Promise.all(e.map(async i=>{let u=t.routes[i.route.id];if(u){let s=await fr(u,r);return s.links?s.links():[]}return[]}));return gr(n.flat(1).filter(dr).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function ke(e,t,r,n,i,u){let s=(l,o)=>r[o]?l.route.id!==r[o].route.id:!0,d=(l,o)=>r[o].pathname!==l.pathname||r[o].route.path?.endsWith("*")&&r[o].params["*"]!==l.params["*"];return u==="assets"?t.filter((l,o)=>s(l,o)||d(l,o)):u==="data"?t.filter((l,o)=>{let f=n.routes[l.route.id];if(!f||!f.hasLoader)return!1;if(s(l,o)||d(l,o))return!0;if(l.route.shouldRevalidate){let p=l.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function hr(e,t,{includeHydrateFallback:r}={}){return mr(e.map(n=>{let i=t.routes[n.route.id];if(!i)return[];let u=[i.module];return i.clientActionModule&&(u=u.concat(i.clientActionModule)),i.clientLoaderModule&&(u=u.concat(i.clientLoaderModule)),r&&i.hydrateFallbackModule&&(u=u.concat(i.hydrateFallbackModule)),i.imports&&(u=u.concat(i.imports)),u}).flat(1))}function mr(e){return[...new Set(e)]}function yr(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}function gr(e,t){let r=new Set;return new Set(t),e.reduce((n,i)=>{let u=JSON.stringify(yr(i));return r.has(u)||(r.add(u),n.push({key:u,link:i})),n},[])}function qe(){let e=c.useContext(G);return Ee(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function vr(){let e=c.useContext(ue);return Ee(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Re=c.createContext(void 0);Re.displayName="FrameworkContext";function Ke(){let e=c.useContext(Re);return Ee(e,"You must render this element inside a <HydratedRouter> element"),e}function Er(e,t){let r=c.useContext(Re),[n,i]=c.useState(!1),[u,s]=c.useState(!1),{onFocus:d,onBlur:l,onMouseEnter:o,onMouseLeave:f,onTouchStart:p}=t,m=c.useRef(null);c.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let x=g=>{g.forEach(E=>{s(E.isIntersecting)})},y=new IntersectionObserver(x,{threshold:.5});return m.current&&y.observe(m.current),()=>{y.disconnect()}}},[e]),c.useEffect(()=>{if(n){let x=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(x)}}},[n]);let v=()=>{i(!0)},w=()=>{i(!1),s(!1)};return r?e!=="intent"?[u,m,{}]:[u,m,{onFocus:J(d,v),onBlur:J(l,w),onMouseEnter:J(o,v),onMouseLeave:J(f,w),onTouchStart:J(p,v)}]:[!1,m,{}]}function J(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function Rr({page:e,...t}){let{router:r}=qe(),n=c.useMemo(()=>De(r.routes,e,r.basename),[r.routes,e,r.basename]);return n?c.createElement(Cr,{page:e,matches:n,...t}):null}function wr(e){let{manifest:t,routeModules:r}=Ke(),[n,i]=c.useState([]);return c.useEffect(()=>{let u=!1;return pr(e,t,r).then(s=>{u||i(s)}),()=>{u=!0}},[e,t,r]),n}function Cr({page:e,matches:t,...r}){let n=z(),{manifest:i,routeModules:u}=Ke(),{basename:s}=qe(),{loaderData:d,matches:l}=vr(),o=c.useMemo(()=>ke(e,t,l,i,n,"data"),[e,t,l,i,n]),f=c.useMemo(()=>ke(e,t,l,i,n,"assets"),[e,t,l,i,n]),p=c.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let w=new Set,x=!1;if(t.forEach(g=>{let E=i.routes[g.route.id];!E||!E.hasLoader||(!o.some(S=>S.route.id===g.route.id)&&g.route.id in d&&u[g.route.id]?.shouldRevalidate||E.hasClientLoader?x=!0:w.add(g.route.id))}),w.size===0)return[];let y=cr(e,s,"data");return x&&w.size>0&&y.searchParams.set("_routes",t.filter(g=>w.has(g.route.id)).map(g=>g.route.id).join(",")),[y.pathname+y.search]},[s,d,n,i,o,t,e,u]),m=c.useMemo(()=>hr(f,i),[f,i]),v=wr(f);return c.createElement(c.Fragment,null,p.map(w=>c.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...r})),m.map(w=>c.createElement("link",{key:w,rel:"modulepreload",href:w,...r})),v.map(({key:w,link:x})=>c.createElement("link",{key:w,nonce:r.nonce,...x})))}function _r(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var Ve=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Ve&&(window.__reactRouterVersion="7.10.1")}catch{}function Hr({basename:e,children:t,unstable_useTransitions:r,window:n}){let i=c.useRef();i.current==null&&(i.current=ut({window:n,v5Compat:!0}));let u=i.current,[s,d]=c.useState({action:u.action,location:u.location}),l=c.useCallback(o=>{r===!1?d(o):c.startTransition(()=>d(o))},[r]);return c.useLayoutEffect(()=>u.listen(l),[u,l]),c.createElement(tr,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:u,unstable_useTransitions:r===!0})}var Ge=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Je=c.forwardRef(function({onClick:t,discover:r="render",prefetch:n="none",relative:i,reloadDocument:u,replace:s,state:d,target:l,to:o,preventScrollReset:f,viewTransition:p,...m},v){let{basename:w,unstable_useTransitions:x}=c.useContext(I),y=typeof o=="string"&&Ge.test(o),g,E=!1;if(typeof o=="string"&&y&&(g=o,Ve))try{let D=new URL(window.location.href),Y=o.startsWith("//")?new URL(D.protocol+o):new URL(o),te=W(Y.pathname,w);Y.origin===D.origin&&te!=null?o=te+Y.search+Y.hash:E=!0}catch{M(!1,`<Link to="${o}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let S=Mt(o,{relative:i}),[$,A,H]=Er(n,m),P=br(o,{replace:s,state:d,target:l,preventScrollReset:f,relative:i,viewTransition:p,unstable_useTransitions:x});function q(D){t&&t(D),D.defaultPrevented||P(D)}let U=c.createElement("a",{...m,...H,href:g||S,onClick:E||u?t:q,ref:_r(v,A),target:l,"data-discover":!y&&r==="render"?"true":void 0});return $&&!y?c.createElement(c.Fragment,null,U,c.createElement(Rr,{page:S})):U});Je.displayName="Link";var xr=c.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:n="",end:i=!1,style:u,to:s,viewTransition:d,children:l,...o},f){let p=ee(s,{relative:o.relative}),m=z(),v=c.useContext(ue),{navigator:w,basename:x}=c.useContext(I),y=v!=null&&kr(p)&&d===!0,g=w.encodeLocation?w.encodeLocation(p).pathname:p.pathname,E=m.pathname,S=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;r||(E=E.toLowerCase(),S=S?S.toLowerCase():null,g=g.toLowerCase()),S&&x&&(S=W(S,x)||S);const $=g!=="/"&&g.endsWith("/")?g.length-1:g.length;let A=E===g||!i&&E.startsWith(g)&&E.charAt($)==="/",H=S!=null&&(S===g||!i&&S.startsWith(g)&&S.charAt(g.length)==="/"),P={isActive:A,isPending:H,isTransitioning:y},q=A?t:void 0,U;typeof n=="function"?U=n(P):U=[n,A?"active":null,H?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let D=typeof u=="function"?u(P):u;return c.createElement(Je,{...o,"aria-current":q,className:U,ref:f,style:D,to:s,viewTransition:d},typeof l=="function"?l(P):l)});xr.displayName="NavLink";var Sr=c.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:i,state:u,method:s=oe,action:d,onSubmit:l,relative:o,preventScrollReset:f,viewTransition:p,...m},v)=>{let{unstable_useTransitions:w}=c.useContext(I),x=Or(),y=$r(d,{relative:o}),g=s.toLowerCase()==="get"?"get":"post",E=typeof d=="string"&&Ge.test(d),S=$=>{if(l&&l($),$.defaultPrevented)return;$.preventDefault();let A=$.nativeEvent.submitter,H=A?.getAttribute("formmethod")||s,P=()=>x(A||$.currentTarget,{fetcherKey:t,method:H,navigate:r,replace:i,state:u,relative:o,preventScrollReset:f,viewTransition:p});w&&r!==!1?c.startTransition(()=>P()):P()};return c.createElement("form",{ref:v,method:g,action:y,onSubmit:n?l:S,...m,"data-discover":!E&&e==="render"?"true":void 0})});Sr.displayName="Form";function Pr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Xe(e){let t=c.useContext(G);return O(t,Pr(e)),t}function br(e,{target:t,replace:r,state:n,preventScrollReset:i,relative:u,viewTransition:s,unstable_useTransitions:d}={}){let l=It(),o=z(),f=ee(e,{relative:u});return c.useCallback(p=>{if(ir(p,t)){p.preventDefault();let m=r!==void 0?r:X(o)===X(f),v=()=>l(e,{replace:m,state:n,preventScrollReset:i,relative:u,viewTransition:s});d?c.startTransition(()=>v()):v()}},[o,l,f,r,n,t,e,i,u,s,d])}var Tr=0,Lr=()=>`__${String(++Tr)}__`;function Or(){let{router:e}=Xe("useSubmit"),{basename:t}=c.useContext(I),r=Jt(),n=e.fetch,i=e.navigate;return c.useCallback(async(u,s={})=>{let{action:d,method:l,encType:o,formData:f,body:p}=sr(u,t);if(s.navigate===!1){let m=s.fetcherKey||Lr();await n(m,r,s.action||d,{preventScrollReset:s.preventScrollReset,formData:f,body:p,formMethod:s.method||l,formEncType:s.encType||o,flushSync:s.flushSync})}else await i(s.action||d,{preventScrollReset:s.preventScrollReset,formData:f,body:p,formMethod:s.method||l,formEncType:s.encType||o,replace:s.replace,state:s.state,fromRouteId:r,flushSync:s.flushSync,viewTransition:s.viewTransition})},[n,i,t,r])}function $r(e,{relative:t}={}){let{basename:r}=c.useContext(I),n=c.useContext(j);O(n,"useFormAction must be used inside a RouteContext");let[i]=n.matches.slice(-1),u={...ee(e||".",{relative:t})},s=z();if(e==null){u.search=s.search;let d=new URLSearchParams(u.search),l=d.getAll("index");if(l.some(f=>f==="")){d.delete("index"),l.filter(p=>p).forEach(p=>d.append("index",p));let f=d.toString();u.search=f?`?${f}`:""}}return(!e||e===".")&&i.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(u.pathname=u.pathname==="/"?r:B([r,u.pathname])),X(u)}function kr(e,{relative:t}={}){let r=c.useContext(je);O(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=Xe("useViewTransitionState"),i=ee(e,{relative:t});if(!r.isTransitioning)return!1;let u=W(r.currentLocation.pathname,n)||r.currentLocation.pathname,s=W(r.nextLocation.pathname,n)||r.nextLocation.pathname;return ie(i.pathname,s)!=null||ie(i.pathname,u)!=null}var Ar=it();const Ur=Ae(Ar);export{Hr as B,Je as L,Mr as O,Dr as R,Ar as a,Ur as b,ot as c,Ne as d,it as e,It as f,Nr as g,Ae as h,Ir as i,er as j,c as r,z as u};
|
|
3
|
+
Please change the parent <Route path="${E}"> to <Route path="${E==="/"?"*":`${E}/*`}">.`)}let m=z(),v;if(t){let E=typeof t=="string"?V(t):t;O(f==="/"||E.pathname?.startsWith(f),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${f}" but pathname "${E.pathname}" was given in the \`location\` prop.`),v=E}else v=m;let w=v.pathname||"/",x=w;if(f!=="/"){let E=f.replace(/^\//,"").split("/");x="/"+w.replace(/^\//,"").split("/").slice(E.length).join("/")}let y=De(e,{pathname:x});M(p||y!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),M(y==null||y[y.length-1].route.element!==void 0||y[y.length-1].route.Component!==void 0||y[y.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let g=qt(y&&y.map(E=>Object.assign({},E,{params:Object.assign({},l,E.params),pathname:B([f,u.encodeLocation?u.encodeLocation(E.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?f:B([f,u.encodeLocation?u.encodeLocation(E.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathnameBase])})),s,r,n,i);return t&&g?c.createElement(Q.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...v},navigationType:"POP"}},g):g}function Bt(){let e=Xt(),t=$t(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null,n="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:n},u={padding:"2px 4px",backgroundColor:n},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=c.createElement(c.Fragment,null,c.createElement("p",null,"💿 Hey developer 👋"),c.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",c.createElement("code",{style:u},"ErrorBoundary")," or"," ",c.createElement("code",{style:u},"errorElement")," prop on your route.")),c.createElement(c.Fragment,null,c.createElement("h2",null,"Unexpected Application Error!"),c.createElement("h3",{style:{fontStyle:"italic"}},t),r?c.createElement("pre",{style:i},r):null,s)}var Wt=c.createElement(Bt,null),Yt=class extends c.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?c.createElement(j.Provider,{value:this.props.routeContext},c.createElement(ye.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function zt({routeContext:e,match:t,children:r}){let n=c.useContext(G);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),c.createElement(j.Provider,{value:e},r)}function qt(e,t=[],r=null,n=null,i=null){if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let u=e,s=r?.errors;if(s!=null){let f=u.findIndex(p=>p.route.id&&s?.[p.route.id]!==void 0);O(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),u=u.slice(0,Math.min(u.length,f+1))}let d=!1,l=-1;if(r)for(let f=0;f<u.length;f++){let p=u[f];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(l=f),p.route.id){let{loaderData:m,errors:v}=r,w=p.route.loader&&!m.hasOwnProperty(p.route.id)&&(!v||v[p.route.id]===void 0);if(p.route.lazy||w){d=!0,l>=0?u=u.slice(0,l+1):u=[u[0]];break}}}let o=r&&n?(f,p)=>{n(f,{location:r.location,params:r.matches?.[0]?.params??{},unstable_pattern:kt(r.matches),errorInfo:p})}:void 0;return u.reduceRight((f,p,m)=>{let v,w=!1,x=null,y=null;r&&(v=s&&p.route.id?s[p.route.id]:void 0,x=p.route.errorElement||Wt,d&&(l<0&&m===0?(ze("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,y=null):l===m&&(w=!0,y=p.route.hydrateFallbackElement||null)));let g=t.concat(u.slice(0,m+1)),E=()=>{let S;return v?S=x:w?S=y:p.route.Component?S=c.createElement(p.route.Component,null):p.route.element?S=p.route.element:S=f,c.createElement(zt,{match:p,routeContext:{outlet:f,matches:g,isDataRoute:r!=null},children:S})};return r&&(p.route.ErrorBoundary||p.route.errorElement||m===0)?c.createElement(Yt,{location:r.location,revalidation:r.revalidation,component:x,error:v,children:E(),routeContext:{outlet:null,matches:g,isDataRoute:!0},onError:o}):E()},null)}function ge(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Kt(e){let t=c.useContext(G);return O(t,ge(e)),t}function Vt(e){let t=c.useContext(ue);return O(t,ge(e)),t}function Gt(e){let t=c.useContext(j);return O(t,ge(e)),t}function ve(e){let t=Gt(e),r=t.matches[t.matches.length-1];return O(r.route.id,`${e} can only be used on routes that contain a unique "id"`),r.route.id}function Jt(){return ve("useRouteId")}function Xt(){let e=c.useContext(ye),t=Vt("useRouteError"),r=ve("useRouteError");return e!==void 0?e:t.errors?.[r]}function Qt(){let{router:e}=Kt("useNavigate"),t=ve("useNavigate"),r=c.useRef(!1);return We(()=>{r.current=!0}),c.useCallback(async(i,u={})=>{M(r.current,Be),r.current&&(typeof i=="number"?await e.navigate(i):await e.navigate(i,{fromRouteId:t,...u}))},[e,t])}var $e={};function ze(e,t,r){!t&&!$e[e]&&($e[e]=!0,M(!1,r))}c.memo(Zt);function Zt({routes:e,future:t,state:r,unstable_onError:n}){return Ye(e,void 0,r,n,t)}function Mr(e){return Ft(e.context)}function er(e){O(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function tr({basename:e="/",children:t=null,location:r,navigationType:n="POP",navigator:i,static:u=!1,unstable_useTransitions:s}){O(!Z(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=e.replace(/^\/*/,"/"),l=c.useMemo(()=>({basename:d,navigator:i,static:u,unstable_useTransitions:s,future:{}}),[d,i,u,s]);typeof r=="string"&&(r=V(r));let{pathname:o="/",search:f="",hash:p="",state:m=null,key:v="default"}=r,w=c.useMemo(()=>{let x=W(o,d);return x==null?null:{location:{pathname:x,search:f,hash:p,state:m,key:v},navigationType:n}},[d,o,f,p,m,v,n]);return M(w!=null,`<Router basename="${d}"> is not able to match the URL "${o}${f}${p}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:c.createElement(I.Provider,{value:l},c.createElement(Q.Provider,{children:t,value:w}))}function Ir({children:e,location:t}){return jt(me(e),t)}function me(e,t=[]){let r=[];return c.Children.forEach(e,(n,i)=>{if(!c.isValidElement(n))return;let u=[...t,i];if(n.type===c.Fragment){r.push.apply(r,me(n.props.children,u));return}O(n.type===er,`[${typeof n.type=="string"?n.type:n.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),O(!n.props.index||!n.props.children,"An index route cannot have child routes.");let s={id:n.props.id||u.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,Component:n.props.Component,index:n.props.index,path:n.props.path,middleware:n.props.middleware,loader:n.props.loader,action:n.props.action,hydrateFallbackElement:n.props.hydrateFallbackElement,HydrateFallback:n.props.HydrateFallback,errorElement:n.props.errorElement,ErrorBoundary:n.props.ErrorBoundary,hasErrorBoundary:n.props.hasErrorBoundary===!0||n.props.ErrorBoundary!=null||n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle,lazy:n.props.lazy};n.props.children&&(s.children=me(n.props.children,u)),r.push(s)}),r}var oe="get",ae="application/x-www-form-urlencoded";function le(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function rr(e){return le(e)&&e.tagName.toLowerCase()==="button"}function nr(e){return le(e)&&e.tagName.toLowerCase()==="form"}function or(e){return le(e)&&e.tagName.toLowerCase()==="input"}function ar(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ir(e,t){return e.button===0&&(!t||t==="_self")&&!ar(e)}var ne=null;function ur(){if(ne===null)try{new FormData(document.createElement("form"),0),ne=!1}catch{ne=!0}return ne}var lr=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function pe(e){return e!=null&&!lr.has(e)?(M(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ae}"`),null):e}function sr(e,t){let r,n,i,u,s;if(nr(e)){let d=e.getAttribute("action");n=d?W(d,t):null,r=e.getAttribute("method")||oe,i=pe(e.getAttribute("enctype"))||ae,u=new FormData(e)}else if(rr(e)||or(e)&&(e.type==="submit"||e.type==="image")){let d=e.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||d.getAttribute("action");if(n=l?W(l,t):null,r=e.getAttribute("formmethod")||d.getAttribute("method")||oe,i=pe(e.getAttribute("formenctype"))||pe(d.getAttribute("enctype"))||ae,u=new FormData(d,e),!ur()){let{name:o,type:f,value:p}=e;if(f==="image"){let m=o?`${o}.`:"";u.append(`${m}x`,"0"),u.append(`${m}y`,"0")}else o&&u.append(o,p)}}else{if(le(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=oe,n=null,i=ae,s=e}return u&&i==="text/plain"&&(s=u,u=void 0),{action:n,method:r.toLowerCase(),encType:i,formData:u,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Ee(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function cr(e,t,r){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname=`_root.${r}`:t&&W(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:n.pathname=`${n.pathname.replace(/\/$/,"")}.${r}`,n}async function fr(e,t){if(e.id in t)return t[e.id];try{let r=await import(e.module);return t[e.id]=r,r}catch(r){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function dr(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function pr(e,t,r){let n=await Promise.all(e.map(async i=>{let u=t.routes[i.route.id];if(u){let s=await fr(u,r);return s.links?s.links():[]}return[]}));return gr(n.flat(1).filter(dr).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function ke(e,t,r,n,i,u){let s=(l,o)=>r[o]?l.route.id!==r[o].route.id:!0,d=(l,o)=>r[o].pathname!==l.pathname||r[o].route.path?.endsWith("*")&&r[o].params["*"]!==l.params["*"];return u==="assets"?t.filter((l,o)=>s(l,o)||d(l,o)):u==="data"?t.filter((l,o)=>{let f=n.routes[l.route.id];if(!f||!f.hasLoader)return!1;if(s(l,o)||d(l,o))return!0;if(l.route.shouldRevalidate){let p=l.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:r[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function hr(e,t,{includeHydrateFallback:r}={}){return mr(e.map(n=>{let i=t.routes[n.route.id];if(!i)return[];let u=[i.module];return i.clientActionModule&&(u=u.concat(i.clientActionModule)),i.clientLoaderModule&&(u=u.concat(i.clientLoaderModule)),r&&i.hydrateFallbackModule&&(u=u.concat(i.hydrateFallbackModule)),i.imports&&(u=u.concat(i.imports)),u}).flat(1))}function mr(e){return[...new Set(e)]}function yr(e){let t={},r=Object.keys(e).sort();for(let n of r)t[n]=e[n];return t}function gr(e,t){let r=new Set;return new Set(t),e.reduce((n,i)=>{let u=JSON.stringify(yr(i));return r.has(u)||(r.add(u),n.push({key:u,link:i})),n},[])}function qe(){let e=c.useContext(G);return Ee(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function vr(){let e=c.useContext(ue);return Ee(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Re=c.createContext(void 0);Re.displayName="FrameworkContext";function Ke(){let e=c.useContext(Re);return Ee(e,"You must render this element inside a <HydratedRouter> element"),e}function Er(e,t){let r=c.useContext(Re),[n,i]=c.useState(!1),[u,s]=c.useState(!1),{onFocus:d,onBlur:l,onMouseEnter:o,onMouseLeave:f,onTouchStart:p}=t,m=c.useRef(null);c.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let x=g=>{g.forEach(E=>{s(E.isIntersecting)})},y=new IntersectionObserver(x,{threshold:.5});return m.current&&y.observe(m.current),()=>{y.disconnect()}}},[e]),c.useEffect(()=>{if(n){let x=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(x)}}},[n]);let v=()=>{i(!0)},w=()=>{i(!1),s(!1)};return r?e!=="intent"?[u,m,{}]:[u,m,{onFocus:J(d,v),onBlur:J(l,w),onMouseEnter:J(o,v),onMouseLeave:J(f,w),onTouchStart:J(p,v)}]:[!1,m,{}]}function J(e,t){return r=>{e&&e(r),r.defaultPrevented||t(r)}}function Rr({page:e,...t}){let{router:r}=qe(),n=c.useMemo(()=>De(r.routes,e,r.basename),[r.routes,e,r.basename]);return n?c.createElement(Cr,{page:e,matches:n,...t}):null}function wr(e){let{manifest:t,routeModules:r}=Ke(),[n,i]=c.useState([]);return c.useEffect(()=>{let u=!1;return pr(e,t,r).then(s=>{u||i(s)}),()=>{u=!0}},[e,t,r]),n}function Cr({page:e,matches:t,...r}){let n=z(),{manifest:i,routeModules:u}=Ke(),{basename:s}=qe(),{loaderData:d,matches:l}=vr(),o=c.useMemo(()=>ke(e,t,l,i,n,"data"),[e,t,l,i,n]),f=c.useMemo(()=>ke(e,t,l,i,n,"assets"),[e,t,l,i,n]),p=c.useMemo(()=>{if(e===n.pathname+n.search+n.hash)return[];let w=new Set,x=!1;if(t.forEach(g=>{let E=i.routes[g.route.id];!E||!E.hasLoader||(!o.some(S=>S.route.id===g.route.id)&&g.route.id in d&&u[g.route.id]?.shouldRevalidate||E.hasClientLoader?x=!0:w.add(g.route.id))}),w.size===0)return[];let y=cr(e,s,"data");return x&&w.size>0&&y.searchParams.set("_routes",t.filter(g=>w.has(g.route.id)).map(g=>g.route.id).join(",")),[y.pathname+y.search]},[s,d,n,i,o,t,e,u]),m=c.useMemo(()=>hr(f,i),[f,i]),v=wr(f);return c.createElement(c.Fragment,null,p.map(w=>c.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...r})),m.map(w=>c.createElement("link",{key:w,rel:"modulepreload",href:w,...r})),v.map(({key:w,link:x})=>c.createElement("link",{key:w,nonce:r.nonce,...x})))}function _r(...e){return t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&(r.current=t)})}}var Ve=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Ve&&(window.__reactRouterVersion="7.10.1")}catch{}function Hr({basename:e,children:t,unstable_useTransitions:r,window:n}){let i=c.useRef();i.current==null&&(i.current=ut({window:n,v5Compat:!0}));let u=i.current,[s,d]=c.useState({action:u.action,location:u.location}),l=c.useCallback(o=>{r===!1?d(o):c.startTransition(()=>d(o))},[r]);return c.useLayoutEffect(()=>u.listen(l),[u,l]),c.createElement(tr,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:u,unstable_useTransitions:r===!0})}var Ge=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Je=c.forwardRef(function({onClick:t,discover:r="render",prefetch:n="none",relative:i,reloadDocument:u,replace:s,state:d,target:l,to:o,preventScrollReset:f,viewTransition:p,...m},v){let{basename:w,unstable_useTransitions:x}=c.useContext(I),y=typeof o=="string"&&Ge.test(o),g,E=!1;if(typeof o=="string"&&y&&(g=o,Ve))try{let D=new URL(window.location.href),Y=o.startsWith("//")?new URL(D.protocol+o):new URL(o),te=W(Y.pathname,w);Y.origin===D.origin&&te!=null?o=te+Y.search+Y.hash:E=!0}catch{M(!1,`<Link to="${o}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let S=Mt(o,{relative:i}),[$,A,H]=Er(n,m),P=br(o,{replace:s,state:d,target:l,preventScrollReset:f,relative:i,viewTransition:p,unstable_useTransitions:x});function q(D){t&&t(D),D.defaultPrevented||P(D)}let U=c.createElement("a",{...m,...H,href:g||S,onClick:E||u?t:q,ref:_r(v,A),target:l,"data-discover":!y&&r==="render"?"true":void 0});return $&&!y?c.createElement(c.Fragment,null,U,c.createElement(Rr,{page:S})):U});Je.displayName="Link";var xr=c.forwardRef(function({"aria-current":t="page",caseSensitive:r=!1,className:n="",end:i=!1,style:u,to:s,viewTransition:d,children:l,...o},f){let p=ee(s,{relative:o.relative}),m=z(),v=c.useContext(ue),{navigator:w,basename:x}=c.useContext(I),y=v!=null&&kr(p)&&d===!0,g=w.encodeLocation?w.encodeLocation(p).pathname:p.pathname,E=m.pathname,S=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;r||(E=E.toLowerCase(),S=S?S.toLowerCase():null,g=g.toLowerCase()),S&&x&&(S=W(S,x)||S);const $=g!=="/"&&g.endsWith("/")?g.length-1:g.length;let A=E===g||!i&&E.startsWith(g)&&E.charAt($)==="/",H=S!=null&&(S===g||!i&&S.startsWith(g)&&S.charAt(g.length)==="/"),P={isActive:A,isPending:H,isTransitioning:y},q=A?t:void 0,U;typeof n=="function"?U=n(P):U=[n,A?"active":null,H?"pending":null,y?"transitioning":null].filter(Boolean).join(" ");let D=typeof u=="function"?u(P):u;return c.createElement(Je,{...o,"aria-current":q,className:U,ref:f,style:D,to:s,viewTransition:d},typeof l=="function"?l(P):l)});xr.displayName="NavLink";var Sr=c.forwardRef(({discover:e="render",fetcherKey:t,navigate:r,reloadDocument:n,replace:i,state:u,method:s=oe,action:d,onSubmit:l,relative:o,preventScrollReset:f,viewTransition:p,...m},v)=>{let{unstable_useTransitions:w}=c.useContext(I),x=Or(),y=$r(d,{relative:o}),g=s.toLowerCase()==="get"?"get":"post",E=typeof d=="string"&&Ge.test(d),S=$=>{if(l&&l($),$.defaultPrevented)return;$.preventDefault();let A=$.nativeEvent.submitter,H=A?.getAttribute("formmethod")||s,P=()=>x(A||$.currentTarget,{fetcherKey:t,method:H,navigate:r,replace:i,state:u,relative:o,preventScrollReset:f,viewTransition:p});w&&r!==!1?c.startTransition(()=>P()):P()};return c.createElement("form",{ref:v,method:g,action:y,onSubmit:n?l:S,...m,"data-discover":!E&&e==="render"?"true":void 0})});Sr.displayName="Form";function Pr(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Xe(e){let t=c.useContext(G);return O(t,Pr(e)),t}function br(e,{target:t,replace:r,state:n,preventScrollReset:i,relative:u,viewTransition:s,unstable_useTransitions:d}={}){let l=It(),o=z(),f=ee(e,{relative:u});return c.useCallback(p=>{if(ir(p,t)){p.preventDefault();let m=r!==void 0?r:X(o)===X(f),v=()=>l(e,{replace:m,state:n,preventScrollReset:i,relative:u,viewTransition:s});d?c.startTransition(()=>v()):v()}},[o,l,f,r,n,t,e,i,u,s,d])}var Tr=0,Lr=()=>`__${String(++Tr)}__`;function Or(){let{router:e}=Xe("useSubmit"),{basename:t}=c.useContext(I),r=Jt(),n=e.fetch,i=e.navigate;return c.useCallback(async(u,s={})=>{let{action:d,method:l,encType:o,formData:f,body:p}=sr(u,t);if(s.navigate===!1){let m=s.fetcherKey||Lr();await n(m,r,s.action||d,{preventScrollReset:s.preventScrollReset,formData:f,body:p,formMethod:s.method||l,formEncType:s.encType||o,flushSync:s.flushSync})}else await i(s.action||d,{preventScrollReset:s.preventScrollReset,formData:f,body:p,formMethod:s.method||l,formEncType:s.encType||o,replace:s.replace,state:s.state,fromRouteId:r,flushSync:s.flushSync,viewTransition:s.viewTransition})},[n,i,t,r])}function $r(e,{relative:t}={}){let{basename:r}=c.useContext(I),n=c.useContext(j);O(n,"useFormAction must be used inside a RouteContext");let[i]=n.matches.slice(-1),u={...ee(e||".",{relative:t})},s=z();if(e==null){u.search=s.search;let d=new URLSearchParams(u.search),l=d.getAll("index");if(l.some(f=>f==="")){d.delete("index"),l.filter(p=>p).forEach(p=>d.append("index",p));let f=d.toString();u.search=f?`?${f}`:""}}return(!e||e===".")&&i.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(u.pathname=u.pathname==="/"?r:B([r,u.pathname])),X(u)}function kr(e,{relative:t}={}){let r=c.useContext(je);O(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:n}=Xe("useViewTransitionState"),i=ee(e,{relative:t});if(!r.isTransitioning)return!1;let u=W(r.currentLocation.pathname,n)||r.currentLocation.pathname,s=W(r.nextLocation.pathname,n)||r.nextLocation.pathname;return ie(i.pathname,s)!=null||ie(i.pathname,u)!=null}var Ar=it();const Ur=Ae(Ar);export{Hr as B,Je as L,Mr as O,Dr as R,Ar as a,Ur as b,ot as c,Ne as d,it as e,It as f,Ir as g,er as h,Nr as i,Ae as j,c as r,z as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as e}from"./radix-ui-DAH8Vq_G.js";import{C as s,h as t,i as r,a as i,B as a}from"./index-P2CKOdyd.js";import{J as l,m as o}from"./icons-ByUiVGTN.js";import{L as n}from"./react-vendor-CjrBBxxX.js";import"./tanstack-DAI1tKxf.js";import"./form-utils-CSa50xnO.js";function j(){return e.jsxs("div",{className:"p-6 max-w-6xl mx-auto space-y-8",children:[e.jsx("h1",{className:"text-2xl font-bold",children:"Settings"}),e.jsxs(s,{className:"border-yellow-500/50 bg-yellow-500/5",children:[e.jsx(t,{children:e.jsxs(r,{className:"flex items-center gap-2 text-yellow-600",children:[e.jsx(l,{className:"w-5 h-5"}),"Page Relocated"]})}),e.jsxs(i,{className:"space-y-4",children:[e.jsxs("p",{className:"text-muted-foreground",children:["The settings editor has been integrated into the ",e.jsx("strong",{children:"API Profiles"})," page for a better user experience."]}),e.jsx("p",{className:"text-muted-foreground",children:"To edit environment variables for a profile:"}),e.jsxs("ol",{className:"list-decimal list-inside text-muted-foreground space-y-1 ml-2",children:[e.jsx("li",{children:"Go to API Profiles page"}),e.jsx("li",{children:"Click the actions menu (...) on any profile"}),e.jsx("li",{children:'Select "Edit Settings"'})]}),e.jsx("div",{className:"pt-2",children:e.jsx(a,{asChild:!0,children:e.jsxs(n,{to:"/api",children:["Go to API Profiles",e.jsx(o,{className:"w-4 h-4 ml-2"})]})})})]})]})]})}export{j as SettingsPage};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as s}from"./radix-ui-DAH8Vq_G.js";import{r as l}from"./react-vendor-CjrBBxxX.js";import{G as o,H as m,J as c,K as x,M as u,B as h,C as p,a as g}from"./index-P2CKOdyd.js";import{o as j,V as f,Y as N,j as b}from"./icons-ByUiVGTN.js";import"./tanstack-DAI1tKxf.js";import"./form-utils-CSa50xnO.js";function w(){const[t,i]=l.useState("commands"),{data:e}=o(),{data:n,isLoading:r}=m(t),d=[{id:"commands",label:"Commands",icon:j,count:e?.commands??0},{id:"skills",label:"Skills",icon:f,count:e?.skills??0},{id:"agents",label:"Agents",icon:N,count:e?.agents??0}];return s.jsxs("div",{className:"p-6 max-w-6xl mx-auto space-y-8",children:[s.jsxs("div",{children:[s.jsx("h1",{className:"text-2xl font-bold",children:"Shared Data"}),s.jsx("p",{className:"text-muted-foreground",children:"Commands, skills, and agents shared across Claude instances"})]}),e&&!e.symlinkStatus.valid&&s.jsxs(c,{variant:"warning",children:[s.jsx(b,{className:"h-4 w-4"}),s.jsx(x,{children:"Configuration Required"}),s.jsxs(u,{children:[e.symlinkStatus.message,". Run `ccs sync` to configure."]})]}),s.jsx("div",{className:"flex gap-2 border-b pb-2",children:d.map(a=>s.jsxs(h,{variant:t===a.id?"default":"ghost",size:"sm",onClick:()=>i(a.id),className:"flex items-center gap-2",children:[s.jsx(a.icon,{className:"w-4 h-4"}),a.label," (",a.count,")"]},a.id))}),s.jsx("div",{className:"mt-4",children:r?s.jsx("div",{className:"text-muted-foreground",children:"Loading..."}):n?.items.length===0?s.jsxs("div",{className:"text-muted-foreground",children:["No ",t," found"]}):s.jsx("div",{className:"grid gap-3",children:n?.items.map(a=>s.jsx(p,{children:s.jsxs(g,{children:[s.jsx("div",{className:"font-medium",children:a.name}),s.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:a.description}),s.jsx("p",{className:"text-xs text-muted-foreground mt-2 font-mono truncate",children:a.path})]})},a.name))})})]})}export{w as SharedPage};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as t}from"./radix-ui-DAH8Vq_G.js";import"./react-vendor-CjrBBxxX.js";import{c as l}from"./index-P2CKOdyd.js";function n({className:a,...e}){return t.jsx("div",{"data-slot":"table-container",className:"relative w-full overflow-x-auto",children:t.jsx("table",{"data-slot":"table",className:l("w-full caption-bottom text-sm",a),...e})})}function c({className:a,...e}){return t.jsx("thead",{"data-slot":"table-header",className:l("[&_tr]:border-b",a),...e})}function d({className:a,...e}){return t.jsx("tbody",{"data-slot":"table-body",className:l("[&_tr:last-child]:border-0",a),...e})}function b({className:a,...e}){return t.jsx("tr",{"data-slot":"table-row",className:l("hover:bg-muted/50 data-[state=selected]:bg-muted border-b transition-colors",a),...e})}function i({className:a,...e}){return t.jsx("th",{"data-slot":"table-head",className:l("text-foreground h-10 px-2 text-left align-middle font-medium whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...e})}function m({className:a,...e}){return t.jsx("td",{"data-slot":"table-cell",className:l("p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",a),...e})}export{n as T,c as a,b,i as c,d,m as e};
|