AlkantarClanX12
Your IP : 216.73.217.24
var Wa=Object.create;var vr=Object.defineProperty;var Ba=Object.getOwnPropertyDescriptor;var Va=Object.getOwnPropertyNames;var $a=Object.getPrototypeOf,Ua=Object.prototype.hasOwnProperty;var te=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ha=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of Va(t))!Ua.call(e,a)&&a!==r&&vr(e,a,{get:()=>t[a],enumerable:!(o=Ba(t,a))||o.enumerable});return e};var m=(e,t,r)=>(r=e!=null?Wa($a(e)):{},Ha(t||!e||!e.__esModule?vr(r,"default",{value:e,enumerable:!0}):r,e));var je=te((vl,hr)=>{hr.exports=window.wp.element});var b=te((gl,br)=>{br.exports=window.React});var U=te((bl,xr)=>{xr.exports=window.ReactJSXRuntime});var ue=te((Dl,Or)=>{Or.exports=window.ReactDOM});var Ea=te((af,ba)=>{ba.exports=window.wp.data});var xa=te((nf,Sa)=>{Sa.exports=window.wp.i18n});var _a=te((lf,Ca)=>{Ca.exports=window.wp.components});var Pa=te((sf,ka)=>{ka.exports=window.wp.keyboardShortcuts});var Da=te((ff,Oa)=>{Oa.exports=window.wp.primitives});var Ia=te((gf,Na)=>{Na.exports=window.wp.privateApis});var pt=m(je(),1);var gr=1,za=.9,Ka=.8,Ga=.17,yt=.1,Rt=.999,qa=.9999,Ya=.99,Xa=/[\\\/_+.#"@\[\(\{&]/,Za=/[\\\/_+.#"@\[\(\{&]/g,Ja=/[\s-]/,yr=/[\s-]/g;function bt(e,t,r,o,a,n,l){if(n===t.length)return a===e.length?gr:Ya;var i=`${a},${n}`;if(l[i]!==void 0)return l[i];for(var u=o.charAt(n),s=r.indexOf(u,a),f=0,c,g,w,C;s>=0;)c=bt(e,t,r,o,s+1,n+1,l),c>f&&(s===a?c*=gr:Xa.test(e.charAt(s-1))?(c*=Ka,w=e.slice(a,s-1).match(Za),w&&a>0&&(c*=Math.pow(Rt,w.length))):Ja.test(e.charAt(s-1))?(c*=za,C=e.slice(a,s-1).match(yr),C&&a>0&&(c*=Math.pow(Rt,C.length))):(c*=Ga,a>0&&(c*=Math.pow(Rt,s-a))),e.charAt(s)!==t.charAt(n)&&(c*=qa)),(c<yt&&r.charAt(s-1)===o.charAt(n+1)||o.charAt(n+1)===o.charAt(n)&&r.charAt(s-1)!==o.charAt(n))&&(g=bt(e,t,r,o,s+1,n+2,l),g*yt>c&&(c=g*yt)),c>f&&(f=c),s=r.indexOf(u,s+1);return l[i]=f,f}function wr(e){return e.toLowerCase().replace(yr," ")}function Rr(e,t,r){return e=r&&r.length>0?`${e+" "+r.join(" ")}`:e,bt(e,t,wr(e),wr(t),0,0,{})}var N=m(b(),1);var wl=!!(typeof window<"u"&&window.document&&window.document.createElement);function ye(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e?.(a),r===!1||!a.defaultPrevented)return t?.(a)}}var Sr=m(b(),1);function Er(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Et(...e){return t=>{let r=!1,o=e.map(a=>{let n=Er(a,t);return!r&&typeof n=="function"&&(r=!0),n});if(r)return()=>{for(let a=0;a<o.length;a++){let n=o[a];typeof n=="function"?n():Er(e[a],null)}}}}function We(...e){return Sr.useCallback(Et(...e),e)}var Z=m(b(),1),St=m(U(),1);function Cr(e,t){let r=Z.createContext(t),o=n=>{let{children:l,...i}=n,u=Z.useMemo(()=>i,Object.values(i));return(0,St.jsx)(r.Provider,{value:u,children:l})};o.displayName=e+"Provider";function a(n){let l=Z.useContext(r);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${n}\` must be used within \`${e}\``)}return[o,a]}function _r(e,t=[]){let r=[];function o(n,l){let i=Z.createContext(l),u=r.length;r=[...r,l];let s=c=>{let{scope:g,children:w,...C}=c,v=g?.[e]?.[u]||i,p=Z.useMemo(()=>C,Object.values(C));return(0,St.jsx)(v.Provider,{value:p,children:w})};s.displayName=n+"Provider";function f(c,g){let w=g?.[e]?.[u]||i,C=Z.useContext(w);if(C)return C;if(l!==void 0)return l;throw new Error(`\`${c}\` must be used within \`${n}\``)}return[s,f]}let a=()=>{let n=r.map(l=>Z.createContext(l));return function(i){let u=i?.[e]||n;return Z.useMemo(()=>({[`__scope${e}`]:{...i,[e]:u}}),[i,u])}};return a.scopeName=e,[o,Qa(a,...t)]}function Qa(...e){let t=e[0];if(e.length===1)return t;let r=()=>{let o=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(n){let l=o.reduce((i,{useScope:u,scopeName:s})=>{let c=u(n)[`__scope${s}`];return{...i,...c}},{});return Z.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return r.scopeName=t.scopeName,r}var xt=m(b(),1);var kr=m(b(),1),Be=globalThis?.document?kr.useLayoutEffect:()=>{};var en=xt[" useId ".trim().toString()]||(()=>{}),tn=0;function Ve(e){let[t,r]=xt.useState(en());return Be(()=>{e||r(o=>o??String(tn++))},[e]),e||(t?`radix-${t}`:"")}var J=m(b(),1);var $e=m(b(),1);var rn=J[" useInsertionEffect ".trim().toString()]||Be;function Pr({prop:e,defaultProp:t,onChange:r=()=>{},caller:o}){let[a,n,l]=on({defaultProp:t,onChange:r}),i=e!==void 0,u=i?e:a;{let f=J.useRef(e!==void 0);J.useEffect(()=>{let c=f.current;c!==i&&console.warn(`${o} is changing from ${c?"controlled":"uncontrolled"} to ${i?"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=i},[i,o])}let s=J.useCallback(f=>{if(i){let c=an(f)?f(e):f;c!==e&&l.current?.(c)}else n(f)},[i,e,n,l]);return[u,s]}function on({defaultProp:e,onChange:t}){let[r,o]=J.useState(e),a=J.useRef(r),n=J.useRef(t);return rn(()=>{n.current=t},[t]),J.useEffect(()=>{a.current!==r&&(n.current?.(r),a.current=r)},[r,a]),[r,o,n]}function an(e){return typeof e=="function"}var F=m(b(),1);var Pl=!!(typeof window<"u"&&window.document&&window.document.createElement);function Ue(e,t,{checkForDefaultPrevented:r=!0}={}){return function(a){if(e?.(a),r===!1||!a.defaultPrevented)return t?.(a)}}var Ar=m(b(),1),Tr=m(ue(),1);var W=m(b(),1);var Nr=m(b(),1);function Dr(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Ct(...e){return t=>{let r=!1,o=e.map(a=>{let n=Dr(a,t);return!r&&typeof n=="function"&&(r=!0),n});if(r)return()=>{for(let a=0;a<o.length;a++){let n=o[a];typeof n=="function"?n():Dr(e[a],null)}}}}function _t(...e){return Nr.useCallback(Ct(...e),e)}var He=m(U(),1);function Ir(e){let t=nn(e),r=W.forwardRef((o,a)=>{let{children:n,...l}=o,i=W.Children.toArray(n),u=i.find(sn);if(u){let s=u.props.children,f=i.map(c=>c===u?W.Children.count(s)>1?W.Children.only(null):W.isValidElement(s)?s.props.children:null:c);return(0,He.jsx)(t,{...l,ref:a,children:W.isValidElement(s)?W.cloneElement(s,void 0,f):null})}return(0,He.jsx)(t,{...l,ref:a,children:n})});return r.displayName=`${e}.Slot`,r}function nn(e){let t=W.forwardRef((r,o)=>{let{children:a,...n}=r;if(W.isValidElement(a)){let l=fn(a),i=un(n,a.props);return a.type!==W.Fragment&&(i.ref=o?Ct(o,l):l),W.cloneElement(a,i)}return W.Children.count(a)>1?W.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ln=Symbol("radix.slottable");function sn(e){return W.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===ln}function un(e,t){let r={...t};for(let o in t){let a=e[o],n=t[o];/^on[A-Z]/.test(o)?a&&n?r[o]=(...i)=>{let u=n(...i);return a(...i),u}:a&&(r[o]=a):o==="style"?r[o]={...a,...n}:o==="className"&&(r[o]=[a,n].filter(Boolean).join(" "))}return{...e,...r}}function fn(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var Lr=m(U(),1),cn=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],kt=cn.reduce((e,t)=>{let r=Ir(`Primitive.${t}`),o=Ar.forwardRef((a,n)=>{let{asChild:l,...i}=a,u=l?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,Lr.jsx)(u,{...i,ref:n})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});function Mr(e,t){e&&Tr.flushSync(()=>e.dispatchEvent(t))}var Re=m(b(),1);function De(e){let t=Re.useRef(e);return Re.useEffect(()=>{t.current=e}),Re.useMemo(()=>(...r)=>t.current?.(...r),[])}var Fr=m(b(),1);function jr(e,t=globalThis?.document){let r=De(e);Fr.useEffect(()=>{let o=a=>{a.key==="Escape"&&r(a)};return t.addEventListener("keydown",o,{capture:!0}),()=>t.removeEventListener("keydown",o,{capture:!0})},[r,t])}var Ot=m(U(),1),dn="DismissableLayer",Pt="dismissableLayer.update",mn="dismissableLayer.pointerDownOutside",pn="dismissableLayer.focusOutside",Wr,Vr=F.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Dt=F.forwardRef((e,t)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:n,onInteractOutside:l,onDismiss:i,...u}=e,s=F.useContext(Vr),[f,c]=F.useState(null),g=f?.ownerDocument??globalThis?.document,[,w]=F.useState({}),C=_t(t,R=>c(R)),v=Array.from(s.layers),[p]=[...s.layersWithOutsidePointerEventsDisabled].slice(-1),E=v.indexOf(p),k=f?v.indexOf(f):-1,T=s.layersWithOutsidePointerEventsDisabled.size>0,L=k>=E,P=gn(R=>{let z=R.target,ne=[...s.branches].some(se=>se.contains(z));!L||ne||(a?.(R),l?.(R),R.defaultPrevented||i?.())},g),x=wn(R=>{let z=R.target;[...s.branches].some(se=>se.contains(z))||(n?.(R),l?.(R),R.defaultPrevented||i?.())},g);return jr(R=>{k===s.layers.size-1&&(o?.(R),!R.defaultPrevented&&i&&(R.preventDefault(),i()))},g),F.useEffect(()=>{if(f)return r&&(s.layersWithOutsidePointerEventsDisabled.size===0&&(Wr=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),s.layersWithOutsidePointerEventsDisabled.add(f)),s.layers.add(f),Br(),()=>{r&&s.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Wr)}},[f,g,r,s]),F.useEffect(()=>()=>{f&&(s.layers.delete(f),s.layersWithOutsidePointerEventsDisabled.delete(f),Br())},[f,s]),F.useEffect(()=>{let R=()=>w({});return document.addEventListener(Pt,R),()=>document.removeEventListener(Pt,R)},[]),(0,Ot.jsx)(kt.div,{...u,ref:C,style:{pointerEvents:T?L?"auto":"none":void 0,...e.style},onFocusCapture:Ue(e.onFocusCapture,x.onFocusCapture),onBlurCapture:Ue(e.onBlurCapture,x.onBlurCapture),onPointerDownCapture:Ue(e.onPointerDownCapture,P.onPointerDownCapture)})});Dt.displayName=dn;var vn="DismissableLayerBranch",hn=F.forwardRef((e,t)=>{let r=F.useContext(Vr),o=F.useRef(null),a=_t(t,o);return F.useEffect(()=>{let n=o.current;if(n)return r.branches.add(n),()=>{r.branches.delete(n)}},[r.branches]),(0,Ot.jsx)(kt.div,{...e,ref:a})});hn.displayName=vn;function gn(e,t=globalThis?.document){let r=De(e),o=F.useRef(!1),a=F.useRef(()=>{});return F.useEffect(()=>{let n=i=>{if(i.target&&!o.current){let s=function(){$r(mn,r,f,{discrete:!0})};var u=s;let f={originalEvent:i};i.pointerType==="touch"?(t.removeEventListener("click",a.current),a.current=s,t.addEventListener("click",a.current,{once:!0})):s()}else t.removeEventListener("click",a.current);o.current=!1},l=window.setTimeout(()=>{t.addEventListener("pointerdown",n)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",n),t.removeEventListener("click",a.current)}},[t,r]),{onPointerDownCapture:()=>o.current=!0}}function wn(e,t=globalThis?.document){let r=De(e),o=F.useRef(!1);return F.useEffect(()=>{let a=n=>{n.target&&!o.current&&$r(pn,r,{originalEvent:n},{discrete:!1})};return t.addEventListener("focusin",a),()=>t.removeEventListener("focusin",a)},[t,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Br(){let e=new CustomEvent(Pt);document.dispatchEvent(e)}function $r(e,t,r,{discrete:o}){let a=r.originalEvent.target,n=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&a.addEventListener(e,t,{once:!0}),o?Mr(a,n):a.dispatchEvent(n)}var Q=m(b(),1);var Hr=m(b(),1);function Ur(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Nt(...e){return t=>{let r=!1,o=e.map(a=>{let n=Ur(a,t);return!r&&typeof n=="function"&&(r=!0),n});if(r)return()=>{for(let a=0;a<o.length;a++){let n=o[a];typeof n=="function"?n():Ur(e[a],null)}}}}function zr(...e){return Hr.useCallback(Nt(...e),e)}var Gr=m(b(),1),xn=m(ue(),1);var B=m(b(),1);var ze=m(U(),1);function Kr(e){let t=yn(e),r=B.forwardRef((o,a)=>{let{children:n,...l}=o,i=B.Children.toArray(n),u=i.find(bn);if(u){let s=u.props.children,f=i.map(c=>c===u?B.Children.count(s)>1?B.Children.only(null):B.isValidElement(s)?s.props.children:null:c);return(0,ze.jsx)(t,{...l,ref:a,children:B.isValidElement(s)?B.cloneElement(s,void 0,f):null})}return(0,ze.jsx)(t,{...l,ref:a,children:n})});return r.displayName=`${e}.Slot`,r}function yn(e){let t=B.forwardRef((r,o)=>{let{children:a,...n}=r;if(B.isValidElement(a)){let l=Sn(a),i=En(n,a.props);return a.type!==B.Fragment&&(i.ref=o?Nt(o,l):l),B.cloneElement(a,i)}return B.Children.count(a)>1?B.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Rn=Symbol("radix.slottable");function bn(e){return B.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Rn}function En(e,t){let r={...t};for(let o in t){let a=e[o],n=t[o];/^on[A-Z]/.test(o)?a&&n?r[o]=(...i)=>{let u=n(...i);return a(...i),u}:a&&(r[o]=a):o==="style"?r[o]={...a,...n}:o==="className"&&(r[o]=[a,n].filter(Boolean).join(" "))}return{...e,...r}}function Sn(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var qr=m(U(),1),Cn=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Yr=Cn.reduce((e,t)=>{let r=Kr(`Primitive.${t}`),o=Gr.forwardRef((a,n)=>{let{asChild:l,...i}=a,u=l?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,qr.jsx)(u,{...i,ref:n})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});var be=m(b(),1);function It(e){let t=be.useRef(e);return be.useEffect(()=>{t.current=e}),be.useMemo(()=>(...r)=>t.current?.(...r),[])}var eo=m(U(),1),At="focusScope.autoFocusOnMount",Tt="focusScope.autoFocusOnUnmount",Xr={bubbles:!1,cancelable:!0},_n="FocusScope",Lt=Q.forwardRef((e,t)=>{let{loop:r=!1,trapped:o=!1,onMountAutoFocus:a,onUnmountAutoFocus:n,...l}=e,[i,u]=Q.useState(null),s=It(a),f=It(n),c=Q.useRef(null),g=zr(t,v=>u(v)),w=Q.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;Q.useEffect(()=>{if(o){let k=function(x){if(w.paused||!i)return;let R=x.target;i.contains(R)?c.current=R:ie(c.current,{select:!0})},T=function(x){if(w.paused||!i)return;let R=x.relatedTarget;R!==null&&(i.contains(R)||ie(c.current,{select:!0}))},L=function(x){if(document.activeElement===document.body)for(let z of x)z.removedNodes.length>0&&ie(i)};var v=k,p=T,E=L;document.addEventListener("focusin",k),document.addEventListener("focusout",T);let P=new MutationObserver(L);return i&&P.observe(i,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",k),document.removeEventListener("focusout",T),P.disconnect()}}},[o,i,w.paused]),Q.useEffect(()=>{if(i){Jr.add(w);let v=document.activeElement;if(!i.contains(v)){let E=new CustomEvent(At,Xr);i.addEventListener(At,s),i.dispatchEvent(E),E.defaultPrevented||(kn(In(to(i)),{select:!0}),document.activeElement===v&&ie(i))}return()=>{i.removeEventListener(At,s),setTimeout(()=>{let E=new CustomEvent(Tt,Xr);i.addEventListener(Tt,f),i.dispatchEvent(E),E.defaultPrevented||ie(v??document.body,{select:!0}),i.removeEventListener(Tt,f),Jr.remove(w)},0)}}},[i,s,f,w]);let C=Q.useCallback(v=>{if(!r&&!o||w.paused)return;let p=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,E=document.activeElement;if(p&&E){let k=v.currentTarget,[T,L]=Pn(k);T&&L?!v.shiftKey&&E===L?(v.preventDefault(),r&&ie(T,{select:!0})):v.shiftKey&&E===T&&(v.preventDefault(),r&&ie(L,{select:!0})):E===k&&v.preventDefault()}},[r,o,w.paused]);return(0,eo.jsx)(Yr.div,{tabIndex:-1,...l,ref:g,onKeyDown:C})});Lt.displayName=_n;function kn(e,{select:t=!1}={}){let r=document.activeElement;for(let o of e)if(ie(o,{select:t}),document.activeElement!==r)return}function Pn(e){let t=to(e),r=Zr(t,e),o=Zr(t.reverse(),e);return[r,o]}function to(e){let t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{let a=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||a?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Zr(e,t){for(let r of e)if(!On(r,{upTo:t}))return r}function On(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 Dn(e){return e instanceof HTMLInputElement&&"select"in e}function ie(e,{select:t=!1}={}){if(e&&e.focus){let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&Dn(e)&&t&&e.select()}}var Jr=Nn();function Nn(){let e=[];return{add(t){let r=e[0];t!==r&&r?.pause(),e=Qr(e,t),e.unshift(t)},remove(t){e=Qr(e,t),e[0]?.resume()}}}function Qr(e,t){let r=[...e],o=r.indexOf(t);return o!==-1&&r.splice(o,1),r}function In(e){return e.filter(t=>t.tagName!=="A")}var Ge=m(b(),1),fo=m(ue(),1);var no=m(b(),1),Wn=m(ue(),1);var V=m(b(),1);var An=m(b(),1);function ro(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function oo(...e){return t=>{let r=!1,o=e.map(a=>{let n=ro(a,t);return!r&&typeof n=="function"&&(r=!0),n});if(r)return()=>{for(let a=0;a<o.length;a++){let n=o[a];typeof n=="function"?n():ro(e[a],null)}}}}var Ke=m(U(),1);function ao(e){let t=Tn(e),r=V.forwardRef((o,a)=>{let{children:n,...l}=o,i=V.Children.toArray(n),u=i.find(Mn);if(u){let s=u.props.children,f=i.map(c=>c===u?V.Children.count(s)>1?V.Children.only(null):V.isValidElement(s)?s.props.children:null:c);return(0,Ke.jsx)(t,{...l,ref:a,children:V.isValidElement(s)?V.cloneElement(s,void 0,f):null})}return(0,Ke.jsx)(t,{...l,ref:a,children:n})});return r.displayName=`${e}.Slot`,r}function Tn(e){let t=V.forwardRef((r,o)=>{let{children:a,...n}=r;if(V.isValidElement(a)){let l=jn(a),i=Fn(n,a.props);return a.type!==V.Fragment&&(i.ref=o?oo(o,l):l),V.cloneElement(a,i)}return V.Children.count(a)>1?V.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Ln=Symbol("radix.slottable");function Mn(e){return V.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ln}function Fn(e,t){let r={...t};for(let o in t){let a=e[o],n=t[o];/^on[A-Z]/.test(o)?a&&n?r[o]=(...i)=>{let u=n(...i);return a(...i),u}:a&&(r[o]=a):o==="style"?r[o]={...a,...n}:o==="className"&&(r[o]=[a,n].filter(Boolean).join(" "))}return{...e,...r}}function jn(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var io=m(U(),1),Bn=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],lo=Bn.reduce((e,t)=>{let r=ao(`Primitive.${t}`),o=no.forwardRef((a,n)=>{let{asChild:l,...i}=a,u=l?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,io.jsx)(u,{...i,ref:n})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});var so=m(b(),1),uo=globalThis?.document?so.useLayoutEffect:()=>{};var co=m(U(),1),Vn="Portal",Mt=Ge.forwardRef((e,t)=>{let{container:r,...o}=e,[a,n]=Ge.useState(!1);uo(()=>n(!0),[]);let l=r||a&&globalThis?.document?.body;return l?fo.default.createPortal((0,co.jsx)(lo.div,{...o,ref:t}),l):null});Mt.displayName=Vn;var q=m(b(),1);var po=m(b(),1);function mo(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function $n(...e){return t=>{let r=!1,o=e.map(a=>{let n=mo(a,t);return!r&&typeof n=="function"&&(r=!0),n});if(r)return()=>{for(let a=0;a<o.length;a++){let n=o[a];typeof n=="function"?n():mo(e[a],null)}}}}function vo(...e){return po.useCallback($n(...e),e)}var ho=m(b(),1),Ft=globalThis?.document?ho.useLayoutEffect:()=>{};var go=m(b(),1);function Un(e,t){return go.useReducer((r,o)=>t[r][o]??r,e)}var Ne=e=>{let{present:t,children:r}=e,o=Hn(t),a=typeof r=="function"?r({present:o.isPresent}):q.Children.only(r),n=vo(o.ref,zn(a));return typeof r=="function"||o.isPresent?q.cloneElement(a,{ref:n}):null};Ne.displayName="Presence";function Hn(e){let[t,r]=q.useState(),o=q.useRef(null),a=q.useRef(e),n=q.useRef("none"),l=e?"mounted":"unmounted",[i,u]=Un(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return q.useEffect(()=>{let s=qe(o.current);n.current=i==="mounted"?s:"none"},[i]),Ft(()=>{let s=o.current,f=a.current;if(f!==e){let g=n.current,w=qe(s);e?u("MOUNT"):w==="none"||s?.display==="none"?u("UNMOUNT"):u(f&&g!==w?"ANIMATION_OUT":"UNMOUNT"),a.current=e}},[e,u]),Ft(()=>{if(t){let s,f=t.ownerDocument.defaultView??window,c=w=>{let v=qe(o.current).includes(CSS.escape(w.animationName));if(w.target===t&&v&&(u("ANIMATION_END"),!a.current)){let p=t.style.animationFillMode;t.style.animationFillMode="forwards",s=f.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=p)})}},g=w=>{w.target===t&&(n.current=qe(o.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",c),t.addEventListener("animationend",c),()=>{f.clearTimeout(s),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",c),t.removeEventListener("animationend",c)}}else u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(i),ref:q.useCallback(s=>{o.current=s?getComputedStyle(s):null,r(s)},[])}}function qe(e){return e?.animationName||"none"}function zn(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var wo=m(b(),1),Zn=m(ue(),1);var $=m(b(),1);var Ye=m(U(),1);function Xe(e){let t=Kn(e),r=$.forwardRef((o,a)=>{let{children:n,...l}=o,i=$.Children.toArray(n),u=i.find(qn);if(u){let s=u.props.children,f=i.map(c=>c===u?$.Children.count(s)>1?$.Children.only(null):$.isValidElement(s)?s.props.children:null:c);return(0,Ye.jsx)(t,{...l,ref:a,children:$.isValidElement(s)?$.cloneElement(s,void 0,f):null})}return(0,Ye.jsx)(t,{...l,ref:a,children:n})});return r.displayName=`${e}.Slot`,r}function Kn(e){let t=$.forwardRef((r,o)=>{let{children:a,...n}=r;if($.isValidElement(a)){let l=Xn(a),i=Yn(n,a.props);return a.type!==$.Fragment&&(i.ref=o?Et(o,l):l),$.cloneElement(a,i)}return $.Children.count(a)>1?$.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Gn=Symbol("radix.slottable");function qn(e){return $.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Gn}function Yn(e,t){let r={...t};for(let o in t){let a=e[o],n=t[o];/^on[A-Z]/.test(o)?a&&n?r[o]=(...i)=>{let u=n(...i);return a(...i),u}:a&&(r[o]=a):o==="style"?r[o]={...a,...n}:o==="className"&&(r[o]=[a,n].filter(Boolean).join(" "))}return{...e,...r}}function Xn(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var yo=m(U(),1),Jn=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ee=Jn.reduce((e,t)=>{let r=Xe(`Primitive.${t}`),o=wo.forwardRef((a,n)=>{let{asChild:l,...i}=a,u=l?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,yo.jsx)(u,{...i,ref:n})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});var bo=m(b(),1),jt=0;function Eo(){bo.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Ro()),document.body.insertAdjacentElement("beforeend",e[1]??Ro()),jt++,()=>{jt===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),jt--}},[])}function Ro(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Y=function(){return Y=Object.assign||function(t){for(var r,o=1,a=arguments.length;o<a;o++){r=arguments[o];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Y.apply(this,arguments)};function Ze(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(e);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(r[o[a]]=e[o[a]]);return r}function So(e,t,r){if(r||arguments.length===2)for(var o=0,a=t.length,n;o<a;o++)(n||!(o in t))&&(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}var rt=m(b());var H=m(b());var fe="right-scroll-bar-position",ce="width-before-scroll-bar",Wt="with-scroll-bars-hidden",Bt="--removed-body-scroll-bar-size";function Je(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}var xo=m(b());function Co(e,t){var r=(0,xo.useState)(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(o){var a=r.value;a!==o&&(r.value=o,r.callback(o,a))}}}})[0];return r.callback=t,r.facade}var Qe=m(b());var Qn=typeof window<"u"?Qe.useLayoutEffect:Qe.useEffect,_o=new WeakMap;function Vt(e,t){var r=Co(t||null,function(o){return e.forEach(function(a){return Je(a,o)})});return Qn(function(){var o=_o.get(r);if(o){var a=new Set(o),n=new Set(e),l=r.current;a.forEach(function(i){n.has(i)||Je(i,null)}),n.forEach(function(i){a.has(i)||Je(i,l)})}_o.set(r,e)},[e]),r}function ei(e){return e}function ti(e,t){t===void 0&&(t=ei);var r=[],o=!1,a={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(n){var l=t(n,o);return r.push(l),function(){r=r.filter(function(i){return i!==l})}},assignSyncMedium:function(n){for(o=!0;r.length;){var l=r;r=[],l.forEach(n)}r={push:function(i){return n(i)},filter:function(){return r}}},assignMedium:function(n){o=!0;var l=[];if(r.length){var i=r;r=[],i.forEach(n),l=r}var u=function(){var f=l;l=[],f.forEach(n)},s=function(){return Promise.resolve().then(u)};s(),r={push:function(f){l.push(f),s()},filter:function(f){return l=l.filter(f),r}}}};return a}function $t(e){e===void 0&&(e={});var t=ti(null);return t.options=Y({async:!0,ssr:!1},e),t}var ko=m(b()),Po=function(e){var t=e.sideCar,r=Ze(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return ko.createElement(o,Y({},r))};Po.isSideCarExport=!0;function Ut(e,t){return e.useMedium(t),Po}var et=$t();var Ht=function(){},Ie=H.forwardRef(function(e,t){var r=H.useRef(null),o=H.useState({onScrollCapture:Ht,onWheelCapture:Ht,onTouchMoveCapture:Ht}),a=o[0],n=o[1],l=e.forwardProps,i=e.children,u=e.className,s=e.removeScrollBar,f=e.enabled,c=e.shards,g=e.sideCar,w=e.noRelative,C=e.noIsolation,v=e.inert,p=e.allowPinchZoom,E=e.as,k=E===void 0?"div":E,T=e.gapMode,L=Ze(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=g,x=Vt([r,t]),R=Y(Y({},L),a);return H.createElement(H.Fragment,null,f&&H.createElement(P,{sideCar:et,removeScrollBar:s,shards:c,noRelative:w,noIsolation:C,inert:v,setCallbacks:n,allowPinchZoom:!!p,lockRef:r,gapMode:T}),l?H.cloneElement(H.Children.only(i),Y(Y({},R),{ref:x})):H.createElement(k,Y({},R,{className:u,ref:x}),i))});Ie.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ie.classNames={fullWidth:ce,zeroRight:fe};var I=m(b());var xe=m(b());var No=m(b());var Oo;var Do=function(){if(Oo)return Oo;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function ri(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=Do();return t&&e.setAttribute("nonce",t),e}function oi(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function ai(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var zt=function(){var e=0,t=null;return{add:function(r){e==0&&(t=ri())&&(oi(t,r),ai(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}};var Kt=function(){var e=zt();return function(t,r){No.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}};var Ae=function(){var e=Kt(),t=function(r){var o=r.styles,a=r.dynamic;return e(o,a),null};return t};var ni={left:0,top:0,right:0,gap:0},Gt=function(e){return parseInt(e||"",10)||0},ii=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],o=t[e==="padding"?"paddingTop":"marginTop"],a=t[e==="padding"?"paddingRight":"marginRight"];return[Gt(r),Gt(o),Gt(a)]},qt=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return ni;var t=ii(e),r=document.documentElement.clientWidth,o=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,o-r+t[2]-t[0])}};var li=Ae(),Se="data-scroll-locked",si=function(e,t,r,o){var a=e.left,n=e.top,l=e.right,i=e.gap;return r===void 0&&(r="margin"),`
.`.concat(Wt,` {
overflow: hidden `).concat(o,`;
padding-right: `).concat(i,"px ").concat(o,`;
}
body[`).concat(Se,`] {
overflow: hidden `).concat(o,`;
overscroll-behavior: contain;
`).concat([t&&"position: relative ".concat(o,";"),r==="margin"&&`
padding-left: `.concat(a,`px;
padding-top: `).concat(n,`px;
padding-right: `).concat(l,`px;
margin-left:0;
margin-top:0;
margin-right: `).concat(i,"px ").concat(o,`;
`),r==="padding"&&"padding-right: ".concat(i,"px ").concat(o,";")].filter(Boolean).join(""),`
}
.`).concat(fe,` {
right: `).concat(i,"px ").concat(o,`;
}
.`).concat(ce,` {
margin-right: `).concat(i,"px ").concat(o,`;
}
.`).concat(fe," .").concat(fe,` {
right: 0 `).concat(o,`;
}
.`).concat(ce," .").concat(ce,` {
margin-right: 0 `).concat(o,`;
}
body[`).concat(Se,`] {
`).concat(Bt,": ").concat(i,`px;
}
`)},Io=function(){var e=parseInt(document.body.getAttribute(Se)||"0",10);return isFinite(e)?e:0},ui=function(){xe.useEffect(function(){return document.body.setAttribute(Se,(Io()+1).toString()),function(){var e=Io()-1;e<=0?document.body.removeAttribute(Se):document.body.setAttribute(Se,e.toString())}},[])},Yt=function(e){var t=e.noRelative,r=e.noImportant,o=e.gapMode,a=o===void 0?"margin":o;ui();var n=xe.useMemo(function(){return qt(a)},[a]);return xe.createElement(li,{styles:si(n,!t,a,r?"":"!important")})};var Xt=!1;if(typeof window<"u")try{Te=Object.defineProperty({},"passive",{get:function(){return Xt=!0,!0}}),window.addEventListener("test",Te,Te),window.removeEventListener("test",Te,Te)}catch{Xt=!1}var Te,de=Xt?{passive:!1}:!1;var fi=function(e){return e.tagName==="TEXTAREA"},Ao=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!fi(e)&&r[t]==="visible")},ci=function(e){return Ao(e,"overflowY")},di=function(e){return Ao(e,"overflowX")},Zt=function(e,t){var r=t.ownerDocument,o=t;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var a=To(e,o);if(a){var n=Lo(e,o),l=n[1],i=n[2];if(l>i)return!0}o=o.parentNode}while(o&&o!==r.body);return!1},mi=function(e){var t=e.scrollTop,r=e.scrollHeight,o=e.clientHeight;return[t,r,o]},pi=function(e){var t=e.scrollLeft,r=e.scrollWidth,o=e.clientWidth;return[t,r,o]},To=function(e,t){return e==="v"?ci(t):di(t)},Lo=function(e,t){return e==="v"?mi(t):pi(t)},vi=function(e,t){return e==="h"&&t==="rtl"?-1:1},Mo=function(e,t,r,o,a){var n=vi(e,window.getComputedStyle(t).direction),l=n*o,i=r.target,u=t.contains(i),s=!1,f=l>0,c=0,g=0;do{if(!i)break;var w=Lo(e,i),C=w[0],v=w[1],p=w[2],E=v-p-n*C;(C||E)&&To(e,i)&&(c+=E,g+=C);var k=i.parentNode;i=k&&k.nodeType===Node.DOCUMENT_FRAGMENT_NODE?k.host:k}while(!u&&i!==document.body||u&&(t.contains(i)||t===i));return(f&&(a&&Math.abs(c)<1||!a&&l>c)||!f&&(a&&Math.abs(g)<1||!a&&-l>g))&&(s=!0),s};var tt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Fo=function(e){return[e.deltaX,e.deltaY]},jo=function(e){return e&&"current"in e?e.current:e},hi=function(e,t){return e[0]===t[0]&&e[1]===t[1]},gi=function(e){return`
.block-interactivity-`.concat(e,` {pointer-events: none;}
.allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},wi=0,Ce=[];function Wo(e){var t=I.useRef([]),r=I.useRef([0,0]),o=I.useRef(),a=I.useState(wi++)[0],n=I.useState(Ae)[0],l=I.useRef(e);I.useEffect(function(){l.current=e},[e]),I.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var v=So([e.lockRef.current],(e.shards||[]).map(jo),!0).filter(Boolean);return v.forEach(function(p){return p.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),v.forEach(function(p){return p.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var i=I.useCallback(function(v,p){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!l.current.allowPinchZoom;var E=tt(v),k=r.current,T="deltaX"in v?v.deltaX:k[0]-E[0],L="deltaY"in v?v.deltaY:k[1]-E[1],P,x=v.target,R=Math.abs(T)>Math.abs(L)?"h":"v";if("touches"in v&&R==="h"&&x.type==="range")return!1;var z=Zt(R,x);if(!z)return!0;if(z?P=R:(P=R==="v"?"h":"v",z=Zt(R,x)),!z)return!1;if(!o.current&&"changedTouches"in v&&(T||L)&&(o.current=P),!P)return!0;var ne=o.current||P;return Mo(ne,p,v,ne==="h"?T:L,!0)},[]),u=I.useCallback(function(v){var p=v;if(!(!Ce.length||Ce[Ce.length-1]!==n)){var E="deltaY"in p?Fo(p):tt(p),k=t.current.filter(function(P){return P.name===p.type&&(P.target===p.target||p.target===P.shadowParent)&&hi(P.delta,E)})[0];if(k&&k.should){p.cancelable&&p.preventDefault();return}if(!k){var T=(l.current.shards||[]).map(jo).filter(Boolean).filter(function(P){return P.contains(p.target)}),L=T.length>0?i(p,T[0]):!l.current.noIsolation;L&&p.cancelable&&p.preventDefault()}}},[]),s=I.useCallback(function(v,p,E,k){var T={name:v,delta:p,target:E,should:k,shadowParent:yi(E)};t.current.push(T),setTimeout(function(){t.current=t.current.filter(function(L){return L!==T})},1)},[]),f=I.useCallback(function(v){r.current=tt(v),o.current=void 0},[]),c=I.useCallback(function(v){s(v.type,Fo(v),v.target,i(v,e.lockRef.current))},[]),g=I.useCallback(function(v){s(v.type,tt(v),v.target,i(v,e.lockRef.current))},[]);I.useEffect(function(){return Ce.push(n),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:g}),document.addEventListener("wheel",u,de),document.addEventListener("touchmove",u,de),document.addEventListener("touchstart",f,de),function(){Ce=Ce.filter(function(v){return v!==n}),document.removeEventListener("wheel",u,de),document.removeEventListener("touchmove",u,de),document.removeEventListener("touchstart",f,de)}},[]);var w=e.removeScrollBar,C=e.inert;return I.createElement(I.Fragment,null,C?I.createElement(n,{styles:gi(a)}):null,w?I.createElement(Yt,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function yi(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Bo=Ut(et,Wo);var Vo=rt.forwardRef(function(e,t){return rt.createElement(Ie,Y({},e,{ref:t,sideCar:Bo}))});Vo.classNames=Ie.classNames;var Jt=Vo;var Ri=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},_e=new WeakMap,ot=new WeakMap,at={},Qt=0,$o=function(e){return e&&(e.host||$o(e.parentNode))},bi=function(e,t){return t.map(function(r){if(e.contains(r))return r;var o=$o(r);return o&&e.contains(o)?o:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},Ei=function(e,t,r,o){var a=bi(t,Array.isArray(e)?e:[e]);at[r]||(at[r]=new WeakMap);var n=at[r],l=[],i=new Set,u=new Set(a),s=function(c){!c||i.has(c)||(i.add(c),s(c.parentNode))};a.forEach(s);var f=function(c){!c||u.has(c)||Array.prototype.forEach.call(c.children,function(g){if(i.has(g))f(g);else try{var w=g.getAttribute(o),C=w!==null&&w!=="false",v=(_e.get(g)||0)+1,p=(n.get(g)||0)+1;_e.set(g,v),n.set(g,p),l.push(g),v===1&&C&&ot.set(g,!0),p===1&&g.setAttribute(r,"true"),C||g.setAttribute(o,"true")}catch(E){console.error("aria-hidden: cannot operate on ",g,E)}})};return f(t),i.clear(),Qt++,function(){l.forEach(function(c){var g=_e.get(c)-1,w=n.get(c)-1;_e.set(c,g),n.set(c,w),g||(ot.has(c)||c.removeAttribute(o),ot.delete(c)),w||c.removeAttribute(r)}),Qt--,Qt||(_e=new WeakMap,_e=new WeakMap,ot=new WeakMap,at={})}},Uo=function(e,t,r){r===void 0&&(r="data-aria-hidden");var o=Array.from(Array.isArray(e)?e:[e]),a=t||Ri(e);return a?(o.push.apply(o,Array.from(a.querySelectorAll("[aria-live], script"))),Ei(o,a,r,"aria-hidden")):function(){return null}};var O=m(U(),1),it="Dialog",[Ho,Uu]=_r(it),[Si,ee]=Ho(it),zo=e=>{let{__scopeDialog:t,children:r,open:o,defaultOpen:a,onOpenChange:n,modal:l=!0}=e,i=N.useRef(null),u=N.useRef(null),[s,f]=Pr({prop:o,defaultProp:a??!1,onChange:n,caller:it});return(0,O.jsx)(Si,{scope:t,triggerRef:i,contentRef:u,contentId:Ve(),titleId:Ve(),descriptionId:Ve(),open:s,onOpenChange:f,onOpenToggle:N.useCallback(()=>f(c=>!c),[f]),modal:l,children:r})};zo.displayName=it;var Ko="DialogTrigger",xi=N.forwardRef((e,t)=>{let{__scopeDialog:r,...o}=e,a=ee(Ko,r),n=We(t,a.triggerRef);return(0,O.jsx)(Ee.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":rr(a.open),...o,ref:n,onClick:ye(e.onClick,a.onOpenToggle)})});xi.displayName=Ko;var er="DialogPortal",[Ci,Go]=Ho(er,{forceMount:void 0}),qo=e=>{let{__scopeDialog:t,forceMount:r,children:o,container:a}=e,n=ee(er,t);return(0,O.jsx)(Ci,{scope:t,forceMount:r,children:N.Children.map(o,l=>(0,O.jsx)(Ne,{present:r||n.open,children:(0,O.jsx)(Mt,{asChild:!0,container:a,children:l})}))})};qo.displayName=er;var nt="DialogOverlay",Yo=N.forwardRef((e,t)=>{let r=Go(nt,e.__scopeDialog),{forceMount:o=r.forceMount,...a}=e,n=ee(nt,e.__scopeDialog);return n.modal?(0,O.jsx)(Ne,{present:o||n.open,children:(0,O.jsx)(ki,{...a,ref:t})}):null});Yo.displayName=nt;var _i=Xe("DialogOverlay.RemoveScroll"),ki=N.forwardRef((e,t)=>{let{__scopeDialog:r,...o}=e,a=ee(nt,r);return(0,O.jsx)(Jt,{as:_i,allowPinchZoom:!0,shards:[a.contentRef],children:(0,O.jsx)(Ee.div,{"data-state":rr(a.open),...o,ref:t,style:{pointerEvents:"auto",...o.style}})})}),me="DialogContent",Xo=N.forwardRef((e,t)=>{let r=Go(me,e.__scopeDialog),{forceMount:o=r.forceMount,...a}=e,n=ee(me,e.__scopeDialog);return(0,O.jsx)(Ne,{present:o||n.open,children:n.modal?(0,O.jsx)(Pi,{...a,ref:t}):(0,O.jsx)(Oi,{...a,ref:t})})});Xo.displayName=me;var Pi=N.forwardRef((e,t)=>{let r=ee(me,e.__scopeDialog),o=N.useRef(null),a=We(t,r.contentRef,o);return N.useEffect(()=>{let n=o.current;if(n)return Uo(n)},[]),(0,O.jsx)(Zo,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ye(e.onCloseAutoFocus,n=>{n.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:ye(e.onPointerDownOutside,n=>{let l=n.detail.originalEvent,i=l.button===0&&l.ctrlKey===!0;(l.button===2||i)&&n.preventDefault()}),onFocusOutside:ye(e.onFocusOutside,n=>n.preventDefault())})}),Oi=N.forwardRef((e,t)=>{let r=ee(me,e.__scopeDialog),o=N.useRef(!1),a=N.useRef(!1);return(0,O.jsx)(Zo,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:n=>{e.onCloseAutoFocus?.(n),n.defaultPrevented||(o.current||r.triggerRef.current?.focus(),n.preventDefault()),o.current=!1,a.current=!1},onInteractOutside:n=>{e.onInteractOutside?.(n),n.defaultPrevented||(o.current=!0,n.detail.originalEvent.type==="pointerdown"&&(a.current=!0));let l=n.target;r.triggerRef.current?.contains(l)&&n.preventDefault(),n.detail.originalEvent.type==="focusin"&&a.current&&n.preventDefault()}})}),Zo=N.forwardRef((e,t)=>{let{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:n,...l}=e,i=ee(me,r),u=N.useRef(null),s=We(t,u);return Eo(),(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(Lt,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:n,children:(0,O.jsx)(Dt,{role:"dialog",id:i.contentId,"aria-describedby":i.descriptionId,"aria-labelledby":i.titleId,"data-state":rr(i.open),...l,ref:s,onDismiss:()=>i.onOpenChange(!1)})}),(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(Ai,{titleId:i.titleId}),(0,O.jsx)(Li,{contentRef:u,descriptionId:i.descriptionId})]})]})}),tr="DialogTitle",Di=N.forwardRef((e,t)=>{let{__scopeDialog:r,...o}=e,a=ee(tr,r);return(0,O.jsx)(Ee.h2,{id:a.titleId,...o,ref:t})});Di.displayName=tr;var Jo="DialogDescription",Ni=N.forwardRef((e,t)=>{let{__scopeDialog:r,...o}=e,a=ee(Jo,r);return(0,O.jsx)(Ee.p,{id:a.descriptionId,...o,ref:t})});Ni.displayName=Jo;var Qo="DialogClose",Ii=N.forwardRef((e,t)=>{let{__scopeDialog:r,...o}=e,a=ee(Qo,r);return(0,O.jsx)(Ee.button,{type:"button",...o,ref:t,onClick:ye(e.onClick,()=>a.onOpenChange(!1))})});Ii.displayName=Qo;function rr(e){return e?"open":"closed"}var ea="DialogTitleWarning",[Hu,ta]=Cr(ea,{contentName:me,titleName:tr,docsSlug:"dialog"}),Ai=({titleId:e})=>{let t=ta(ea),r=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return N.useEffect(()=>{e&&(document.getElementById(e)||console.error(r))},[r,e]),null},Ti="DialogDescriptionWarning",Li=({contentRef:e,descriptionId:t})=>{let o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${ta(Ti).contentName}}.`;return N.useEffect(()=>{let a=e.current?.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(o))},[o,e,t]),null},ra=zo;var oa=qo,aa=Yo,na=Xo;var h=m(b(),1);var ua=m(b(),1),zi=m(ue(),1);var j=m(b(),1);var Fi=m(b(),1);function ia(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function le(...e){return t=>{let r=!1,o=e.map(a=>{let n=ia(a,t);return!r&&typeof n=="function"&&(r=!0),n});if(r)return()=>{for(let a=0;a<o.length;a++){let n=o[a];typeof n=="function"?n():ia(e[a],null)}}}}var lt=m(U(),1),ji=Symbol.for("react.lazy"),st=j[" use ".trim().toString()];function Wi(e){return typeof e=="object"&&e!==null&&"then"in e}function la(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===ji&&"_payload"in e&&Wi(e._payload)}function sa(e){let t=Bi(e),r=j.forwardRef((o,a)=>{let{children:n,...l}=o;la(n)&&typeof st=="function"&&(n=st(n._payload));let i=j.Children.toArray(n),u=i.find($i);if(u){let s=u.props.children,f=i.map(c=>c===u?j.Children.count(s)>1?j.Children.only(null):j.isValidElement(s)?s.props.children:null:c);return(0,lt.jsx)(t,{...l,ref:a,children:j.isValidElement(s)?j.cloneElement(s,void 0,f):null})}return(0,lt.jsx)(t,{...l,ref:a,children:n})});return r.displayName=`${e}.Slot`,r}function Bi(e){let t=j.forwardRef((r,o)=>{let{children:a,...n}=r;if(la(a)&&typeof st=="function"&&(a=st(a._payload)),j.isValidElement(a)){let l=Hi(a),i=Ui(n,a.props);return a.type!==j.Fragment&&(i.ref=o?le(o,l):l),j.cloneElement(a,i)}return j.Children.count(a)>1?j.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Vi=Symbol("radix.slottable");function $i(e){return j.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Vi}function Ui(e,t){let r={...t};for(let o in t){let a=e[o],n=t[o];/^on[A-Z]/.test(o)?a&&n?r[o]=(...i)=>{let u=n(...i);return a(...i),u}:a&&(r[o]=a):o==="style"?r[o]={...a,...n}:o==="className"&&(r[o]=[a,n].filter(Boolean).join(" "))}return{...e,...r}}function Hi(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}var fa=m(U(),1),Ki=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ae=Ki.reduce((e,t)=>{let r=sa(`Primitive.${t}`),o=ua.forwardRef((a,n)=>{let{asChild:l,...i}=a,u=l?r:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,fa.jsx)(u,{...i,ref:n})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{});var or=m(b(),1);var ca=m(b(),1),da=globalThis?.document?ca.useLayoutEffect:()=>{};var Gi=or[" useId ".trim().toString()]||(()=>{}),qi=0;function pe(e){let[t,r]=or.useState(Gi());return da(()=>{e||r(o=>o??String(qi++))},[e]),e||(t?`radix-${t}`:"")}var Le='[cmdk-group=""]',ar='[cmdk-group-items=""]',Yi='[cmdk-group-heading=""]',pa='[cmdk-item=""]',ma=`${pa}:not([aria-disabled="true"])`,nr="cmdk-item-select",ke="data-value",Xi=(e,t,r)=>Rr(e,t,r),va=h.createContext(void 0),Me=()=>h.useContext(va),ha=h.createContext(void 0),ir=()=>h.useContext(ha),ga=h.createContext(void 0),wa=h.forwardRef((e,t)=>{let r=Pe(()=>{var d,S;return{search:"",value:(S=(d=e.value)!=null?d:e.defaultValue)!=null?S:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),o=Pe(()=>new Set),a=Pe(()=>new Map),n=Pe(()=>new Map),l=Pe(()=>new Set),i=ya(e),{label:u,children:s,value:f,onValueChange:c,filter:g,shouldFilter:w,loop:C,disablePointerSelection:v=!1,vimBindings:p=!0,...E}=e,k=pe(),T=pe(),L=pe(),P=h.useRef(null),x=ll();ve(()=>{if(f!==void 0){let d=f.trim();r.current.value=d,R.emit()}},[f]),ve(()=>{x(6,fr)},[]);let R=h.useMemo(()=>({subscribe:d=>(l.current.add(d),()=>l.current.delete(d)),snapshot:()=>r.current,setState:(d,S,_)=>{var y,D,M,X;if(!Object.is(r.current[d],S)){if(r.current[d]=S,d==="search")ht(),se(),x(1,vt);else if(d==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let K=document.getElementById(L);K?K.focus():(y=document.getElementById(k))==null||y.focus()}if(x(7,()=>{var K;r.current.selectedItemId=(K=we())==null?void 0:K.id,R.emit()}),_||x(5,fr),((D=i.current)==null?void 0:D.value)!==void 0){let K=S??"";(X=(M=i.current).onValueChange)==null||X.call(M,K);return}}R.emit()}},emit:()=>{l.current.forEach(d=>d())}}),[]),z=h.useMemo(()=>({value:(d,S,_)=>{var y;S!==((y=n.current.get(d))==null?void 0:y.value)&&(n.current.set(d,{value:S,keywords:_}),r.current.filtered.items.set(d,ne(S,_)),x(2,()=>{se(),R.emit()}))},item:(d,S)=>(o.current.add(d),S&&(a.current.has(S)?a.current.get(S).add(d):a.current.set(S,new Set([d]))),x(3,()=>{ht(),se(),r.current.value||vt(),R.emit()}),()=>{n.current.delete(d),o.current.delete(d),r.current.filtered.items.delete(d);let _=we();x(4,()=>{ht(),_?.getAttribute("id")===d&&vt(),R.emit()})}),group:d=>(a.current.has(d)||a.current.set(d,new Set),()=>{n.current.delete(d),a.current.delete(d)}),filter:()=>i.current.shouldFilter,label:u||e["aria-label"],getDisablePointerSelection:()=>i.current.disablePointerSelection,listId:k,inputId:L,labelId:T,listInnerRef:P}),[]);function ne(d,S){var _,y;let D=(y=(_=i.current)==null?void 0:_.filter)!=null?y:Xi;return d?D(d,r.current.search,S):0}function se(){if(!r.current.search||i.current.shouldFilter===!1)return;let d=r.current.filtered.items,S=[];r.current.filtered.groups.forEach(y=>{let D=a.current.get(y),M=0;D.forEach(X=>{let K=d.get(X);M=Math.max(K,M)}),S.push([y,M])});let _=P.current;Oe().sort((y,D)=>{var M,X;let K=y.getAttribute("id"),Fe=D.getAttribute("id");return((M=d.get(Fe))!=null?M:0)-((X=d.get(K))!=null?X:0)}).forEach(y=>{let D=y.closest(ar);D?D.appendChild(y.parentElement===D?y:y.closest(`${ar} > *`)):_.appendChild(y.parentElement===_?y:y.closest(`${ar} > *`))}),S.sort((y,D)=>D[1]-y[1]).forEach(y=>{var D;let M=(D=P.current)==null?void 0:D.querySelector(`${Le}[${ke}="${encodeURIComponent(y[0])}"]`);M?.parentElement.appendChild(M)})}function vt(){let d=Oe().find(_=>_.getAttribute("aria-disabled")!=="true"),S=d?.getAttribute(ke);R.setState("value",S||void 0)}function ht(){var d,S,_,y;if(!r.current.search||i.current.shouldFilter===!1){r.current.filtered.count=o.current.size;return}r.current.filtered.groups=new Set;let D=0;for(let M of o.current){let X=(S=(d=n.current.get(M))==null?void 0:d.value)!=null?S:"",K=(y=(_=n.current.get(M))==null?void 0:_.keywords)!=null?y:[],Fe=ne(X,K);r.current.filtered.items.set(M,Fe),Fe>0&&D++}for(let[M,X]of a.current)for(let K of X)if(r.current.filtered.items.get(K)>0){r.current.filtered.groups.add(M);break}r.current.filtered.count=D}function fr(){var d,S,_;let y=we();y&&(((d=y.parentElement)==null?void 0:d.firstChild)===y&&((_=(S=y.closest(Le))==null?void 0:S.querySelector(Yi))==null||_.scrollIntoView({block:"nearest"})),y.scrollIntoView({block:"nearest"}))}function we(){var d;return(d=P.current)==null?void 0:d.querySelector(`${pa}[aria-selected="true"]`)}function Oe(){var d;return Array.from(((d=P.current)==null?void 0:d.querySelectorAll(ma))||[])}function gt(d){let S=Oe()[d];S&&R.setState("value",S.getAttribute(ke))}function wt(d){var S;let _=we(),y=Oe(),D=y.findIndex(X=>X===_),M=y[D+d];(S=i.current)!=null&&S.loop&&(M=D+d<0?y[y.length-1]:D+d===y.length?y[0]:y[D+d]),M&&R.setState("value",M.getAttribute(ke))}function cr(d){let S=we(),_=S?.closest(Le),y;for(;_&&!y;)_=d>0?nl(_,Le):il(_,Le),y=_?.querySelector(ma);y?R.setState("value",y.getAttribute(ke)):wt(d)}let dr=()=>gt(Oe().length-1),mr=d=>{d.preventDefault(),d.metaKey?dr():d.altKey?cr(1):wt(1)},pr=d=>{d.preventDefault(),d.metaKey?gt(0):d.altKey?cr(-1):wt(-1)};return h.createElement(ae.div,{ref:t,tabIndex:-1,...E,"cmdk-root":"",onKeyDown:d=>{var S;(S=E.onKeyDown)==null||S.call(E,d);let _=d.nativeEvent.isComposing||d.keyCode===229;if(!(d.defaultPrevented||_))switch(d.key){case"n":case"j":{p&&d.ctrlKey&&mr(d);break}case"ArrowDown":{mr(d);break}case"p":case"k":{p&&d.ctrlKey&&pr(d);break}case"ArrowUp":{pr(d);break}case"Home":{d.preventDefault(),gt(0);break}case"End":{d.preventDefault(),dr();break}case"Enter":{d.preventDefault();let y=we();if(y){let D=new Event(nr);y.dispatchEvent(D)}}}}},h.createElement("label",{"cmdk-label":"",htmlFor:z.inputId,id:z.labelId,style:ul},u),ut(e,d=>h.createElement(ha.Provider,{value:R},h.createElement(va.Provider,{value:z},d))))}),Zi=h.forwardRef((e,t)=>{var r,o;let a=pe(),n=h.useRef(null),l=h.useContext(ga),i=Me(),u=ya(e),s=(o=(r=u.current)==null?void 0:r.forceMount)!=null?o:l?.forceMount;ve(()=>{if(!s)return i.item(a,l?.id)},[s]);let f=Ra(a,n,[e.value,e.children,n],e.keywords),c=ir(),g=re(x=>x.value&&x.value===f.current),w=re(x=>s||i.filter()===!1?!0:x.search?x.filtered.items.get(a)>0:!0);h.useEffect(()=>{let x=n.current;if(!(!x||e.disabled))return x.addEventListener(nr,C),()=>x.removeEventListener(nr,C)},[w,e.onSelect,e.disabled]);function C(){var x,R;v(),(R=(x=u.current).onSelect)==null||R.call(x,f.current)}function v(){c.setState("value",f.current,!0)}if(!w)return null;let{disabled:p,value:E,onSelect:k,forceMount:T,keywords:L,...P}=e;return h.createElement(ae.div,{ref:le(n,t),...P,id:a,"cmdk-item":"",role:"option","aria-disabled":!!p,"aria-selected":!!g,"data-disabled":!!p,"data-selected":!!g,onPointerMove:p||i.getDisablePointerSelection()?void 0:v,onClick:p?void 0:C},e.children)}),Ji=h.forwardRef((e,t)=>{let{heading:r,children:o,forceMount:a,...n}=e,l=pe(),i=h.useRef(null),u=h.useRef(null),s=pe(),f=Me(),c=re(w=>a||f.filter()===!1?!0:w.search?w.filtered.groups.has(l):!0);ve(()=>f.group(l),[]),Ra(l,i,[e.value,e.heading,u]);let g=h.useMemo(()=>({id:l,forceMount:a}),[a]);return h.createElement(ae.div,{ref:le(i,t),...n,"cmdk-group":"",role:"presentation",hidden:c?void 0:!0},r&&h.createElement("div",{ref:u,"cmdk-group-heading":"","aria-hidden":!0,id:s},r),ut(e,w=>h.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?s:void 0},h.createElement(ga.Provider,{value:g},w))))}),Qi=h.forwardRef((e,t)=>{let{alwaysRender:r,...o}=e,a=h.useRef(null),n=re(l=>!l.search);return!r&&!n?null:h.createElement(ae.div,{ref:le(a,t),...o,"cmdk-separator":"",role:"separator"})}),el=h.forwardRef((e,t)=>{let{onValueChange:r,...o}=e,a=e.value!=null,n=ir(),l=re(s=>s.search),i=re(s=>s.selectedItemId),u=Me();return h.useEffect(()=>{e.value!=null&&n.setState("search",e.value)},[e.value]),h.createElement(ae.input,{ref:t,...o,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":u.listId,"aria-labelledby":u.labelId,"aria-activedescendant":i,id:u.inputId,type:"text",value:a?e.value:l,onChange:s=>{a||n.setState("search",s.target.value),r?.(s.target.value)}})}),tl=h.forwardRef((e,t)=>{let{children:r,label:o="Suggestions",...a}=e,n=h.useRef(null),l=h.useRef(null),i=re(s=>s.selectedItemId),u=Me();return h.useEffect(()=>{if(l.current&&n.current){let s=l.current,f=n.current,c,g=new ResizeObserver(()=>{c=requestAnimationFrame(()=>{let w=s.offsetHeight;f.style.setProperty("--cmdk-list-height",w.toFixed(1)+"px")})});return g.observe(s),()=>{cancelAnimationFrame(c),g.unobserve(s)}}},[]),h.createElement(ae.div,{ref:le(n,t),...a,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":i,"aria-label":o,id:u.listId},ut(e,s=>h.createElement("div",{ref:le(l,u.listInnerRef),"cmdk-list-sizer":""},s)))}),rl=h.forwardRef((e,t)=>{let{open:r,onOpenChange:o,overlayClassName:a,contentClassName:n,container:l,...i}=e;return h.createElement(ra,{open:r,onOpenChange:o},h.createElement(oa,{container:l},h.createElement(aa,{"cmdk-overlay":"",className:a}),h.createElement(na,{"aria-label":e.label,"cmdk-dialog":"",className:n},h.createElement(wa,{ref:t,...i}))))}),ol=h.forwardRef((e,t)=>re(r=>r.filtered.count===0)?h.createElement(ae.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),al=h.forwardRef((e,t)=>{let{progress:r,children:o,label:a="Loading...",...n}=e;return h.createElement(ae.div,{ref:t,...n,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},ut(e,l=>h.createElement("div",{"aria-hidden":!0},l)))}),he=Object.assign(wa,{List:tl,Item:Zi,Input:el,Group:Ji,Separator:Qi,Dialog:rl,Empty:ol,Loading:al});function nl(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}function il(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}function ya(e){let t=h.useRef(e);return ve(()=>{t.current=e}),t}var ve=typeof window>"u"?h.useEffect:h.useLayoutEffect;function Pe(e){let t=h.useRef();return t.current===void 0&&(t.current=e()),t}function re(e){let t=ir(),r=()=>e(t.snapshot());return h.useSyncExternalStore(t.subscribe,r,r)}function Ra(e,t,r,o=[]){let a=h.useRef(),n=Me();return ve(()=>{var l;let i=(()=>{var s;for(let f of r){if(typeof f=="string")return f.trim();if(typeof f=="object"&&"current"in f)return f.current?(s=f.current.textContent)==null?void 0:s.trim():a.current}})(),u=o.map(s=>s.trim());n.value(e,i,u),(l=t.current)==null||l.setAttribute(ke,i),a.current=i}),a}var ll=()=>{let[e,t]=h.useState(),r=Pe(()=>new Map);return ve(()=>{r.current.forEach(o=>o()),r.current=new Map},[e]),(o,a)=>{r.current.set(o,a),t({})}};function sl(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function ut({asChild:e,children:t},r){return e&&h.isValidElement(t)?h.cloneElement(sl(t),{ref:t.ref},r(t.props.children)):r(t)}var ul={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};var dt=m(Ea(),1),G=m(je(),1),ge=m(xa(),1),oe=m(_a(),1),mt=m(Pa(),1);var ft=m(je(),1),lr=(0,ft.forwardRef)(({icon:e,size:t=24,...r},o)=>(0,ft.cloneElement)(e,{width:t,height:t,...r,ref:o}));var ct=m(Da(),1),sr=m(U(),1),ur=(0,sr.jsx)(ct.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:(0,sr.jsx)(ct.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})});import{executeAbility as fl,store as cl}from"@wordpress/abilities";var Aa=m(Ia(),1),{lock:wf,unlock:Ta}=(0,Aa.__dangerousOptInToUnstableAPIsOnlyForCoreModules)("I acknowledge private features are not for use in themes or plugins and doing so will break in the next version of WordPress.","@wordpress/workflows");var A=m(U(),1);if(typeof document<"u"&&!document.head.querySelector("style[data-wp-hash='cbad731ae6']")){let e=document.createElement("style");e.setAttribute("data-wp-hash","cbad731ae6"),e.appendChild(document.createTextNode(":root{--wp-block-synced-color:#7a00df;--wp-block-synced-color--rgb:122,0,223;--wp-bound-block-color:var(--wp-block-synced-color);--wp-editor-canvas-background:#ddd;--wp-admin-theme-color:#007cba;--wp-admin-theme-color--rgb:0,124,186;--wp-admin-theme-color-darker-10:#006ba1;--wp-admin-theme-color-darker-10--rgb:0,107,160.5;--wp-admin-theme-color-darker-20:#005a87;--wp-admin-theme-color-darker-20--rgb:0,90,135;--wp-admin-border-width-focus:2px}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){:root{--wp-admin-border-width-focus:1.5px}}.workflows-workflow-menu{border-radius:4px;margin:auto;max-width:400px;position:relative;top:calc(5% + 64px);width:calc(100% - 32px)}@media (min-width:600px){.workflows-workflow-menu{top:calc(10% + 64px)}}.workflows-workflow-menu .components-modal__content{margin:0;padding:0}.workflows-workflow-menu__overlay{align-items:start;display:block}.workflows-workflow-menu__header{padding:0 16px}.workflows-workflow-menu__header-search-icon:dir(ltr){transform:scaleX(-1)}.workflows-workflow-menu__container{will-change:transform}.workflows-workflow-menu__container:focus{outline:none}.workflows-workflow-menu__container [cmdk-input]{border:none;border-radius:0;color:#1e1e1e;font-size:15px;line-height:28px;margin:0;outline:none;padding:16px 4px;width:100%}.workflows-workflow-menu__container [cmdk-input]::placeholder{color:#757575}.workflows-workflow-menu__container [cmdk-input]:focus{box-shadow:none;outline:none}.workflows-workflow-menu__container [cmdk-item]{align-items:center;border-radius:2px;color:#1e1e1e;cursor:pointer;display:flex;font-size:13px}.workflows-workflow-menu__container [cmdk-item]:active,.workflows-workflow-menu__container [cmdk-item][aria-selected=true]{background:var(--wp-admin-theme-color);color:#fff}.workflows-workflow-menu__container [cmdk-item][aria-disabled=true]{color:#949494;cursor:not-allowed}.workflows-workflow-menu__container [cmdk-item]>div{min-height:40px;padding:4px 4px 4px 16px}.workflows-workflow-menu__container [cmdk-root]>[cmdk-list]{max-height:368px;overflow:auto}.workflows-workflow-menu__container [cmdk-root]>[cmdk-list] [cmdk-list-sizer]>[cmdk-group]:last-child [cmdk-group-items]:not(:empty){padding-bottom:8px}.workflows-workflow-menu__container [cmdk-root]>[cmdk-list] [cmdk-list-sizer]>[cmdk-group]>[cmdk-group-items]:not(:empty){padding:0 8px}.workflows-workflow-menu__container [cmdk-empty]{align-items:center;color:#1e1e1e;display:flex;justify-content:center;padding:8px 0 32px;white-space:pre-wrap}.workflows-workflow-menu__container [cmdk-loading]{padding:16px}.workflows-workflow-menu__container [cmdk-list-sizer]{position:relative}.workflows-workflow-menu__item span{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.workflows-workflow-menu__item mark{background:unset;color:inherit;font-weight:600}.workflows-workflow-menu__output{padding:16px}.workflows-workflow-menu__output-header{border-bottom:1px solid #ddd;margin-bottom:16px;padding-bottom:8px}.workflows-workflow-menu__output-header h3{color:#1e1e1e;font-size:16px;font-weight:600;margin:0 0 4px}.workflows-workflow-menu__output-hint{color:#757575;font-size:12px;margin:0}.workflows-workflow-menu__output-content{max-height:400px;overflow:auto}.workflows-workflow-menu__output-content pre{background:#f0f0f0;border-radius:2px;color:#1e1e1e;font-size:12px;line-height:1.5;margin:0;padding:12px;white-space:pre-wrap;word-break:break-word}.workflows-workflow-menu__output-error{background:#e0e0e0;border:1px solid #9e1313;border-radius:2px;color:#cc1818;padding:12px}.workflows-workflow-menu__output-error p{font-size:13px;margin:0}.workflows-workflow-menu__executing{color:#757575;font-size:14px;padding:24px 16px}")),document.head.appendChild(e)}var{withIgnoreIMEEvents:La}=Ta(oe.privateApis),dl=[],Ma=(0,ge.__)("Run abilities and workflows");function ml({isOpen:e,search:t,setSearch:r,abilities:o}){let a=(0,G.useRef)(),n=re(i=>i.value),l=(0,G.useMemo)(()=>o.find(u=>u.label===n)?.name,[n,o]);return(0,G.useEffect)(()=>{e&&a.current.focus()},[e]),(0,A.jsx)(he.Input,{ref:a,value:t,onValueChange:r,placeholder:Ma,"aria-activedescendant":l})}function Fa(){let{registerShortcut:e}=(0,dt.useDispatch)(mt.store),[t,r]=(0,G.useState)(""),[o,a]=(0,G.useState)(!1),[n,l]=(0,G.useState)(null),[i,u]=(0,G.useState)(!1),s=(0,G.useRef)(),f=(0,dt.useSelect)(p=>p(cl).getAbilities()||dl,[]),c=(0,G.useMemo)(()=>{if(!t)return f;let p=t.toLowerCase();return f.filter(E=>E.label?.toLowerCase().includes(p)||E.name?.toLowerCase().includes(p))},[f,t]);(0,G.useEffect)(()=>{n&&s.current&&s.current.focus()},[n]),(0,G.useEffect)(()=>{e({name:"core/workflows",category:"global",description:(0,ge.__)("Open the workflow palette."),keyCombination:{modifier:"primary",character:"j"}})},[e]),(0,mt.useShortcut)("core/workflows",La(p=>{p.defaultPrevented||(p.preventDefault(),a(!o))}),{bindGlobal:!0});let g=()=>{r(""),a(!1),l(null),u(!1)},w=()=>{l(null),u(!1),r("")},C=async p=>{u(!0);try{let E=await fl(p.name);l({name:p.name,label:p?.label||p.name,description:p?.description||"",success:!0,data:E})}catch(E){l({name:p.name,label:p?.label||p.name,description:p?.description||"",success:!1,error:E.message||String(E)})}finally{u(!1)}},v=p=>{n&&(p.key==="Escape"||p.key==="Backspace"||p.key==="Delete")&&(p.preventDefault(),p.stopPropagation(),w())};return o?(0,A.jsx)(oe.Modal,{className:"workflows-workflow-menu",overlayClassName:"workflows-workflow-menu__overlay",onRequestClose:n?w:g,__experimentalHideHeader:!0,contentLabel:(0,ge.__)("Workflow palette"),children:(0,A.jsx)("div",{className:"workflows-workflow-menu__container",onKeyDown:La(v),ref:s,tabIndex:-1,role:"presentation",children:n?(0,A.jsxs)("div",{className:"workflows-workflow-menu__output",children:[(0,A.jsxs)("div",{className:"workflows-workflow-menu__output-header",children:[(0,A.jsx)("h3",{children:n.label}),n.description&&(0,A.jsx)("p",{className:"workflows-workflow-menu__output-hint",children:n.description})]}),(0,A.jsx)("div",{className:"workflows-workflow-menu__output-content",children:n.success?(0,A.jsx)("pre",{children:JSON.stringify(n.data,null,2)}):(0,A.jsx)("div",{className:"workflows-workflow-menu__output-error",children:(0,A.jsx)("p",{children:n.error})})})]}):(0,A.jsxs)(he,{label:Ma,shouldFilter:!1,children:[(0,A.jsxs)(oe.__experimentalHStack,{className:"workflows-workflow-menu__header",children:[(0,A.jsx)(lr,{className:"workflows-workflow-menu__header-search-icon",icon:ur}),(0,A.jsx)(ml,{search:t,setSearch:r,isOpen:o,abilities:f})]}),(0,A.jsxs)(he.List,{label:(0,ge.__)("Workflow suggestions"),children:[i&&(0,A.jsx)(oe.__experimentalHStack,{className:"workflows-workflow-menu__executing",align:"center",children:(0,ge.__)("Executing ability\u2026")}),!i&&t&&c.length===0&&(0,A.jsx)(he.Empty,{children:(0,ge.__)("No results found.")}),!i&&c.length>0&&(0,A.jsx)(he.Group,{children:c.map(p=>(0,A.jsx)(he.Item,{value:p.label,className:"workflows-workflow-menu__item",onSelect:()=>C(p),id:p.name,children:(0,A.jsx)(oe.__experimentalHStack,{alignment:"left",children:(0,A.jsx)("span",{children:(0,A.jsx)(oe.TextHighlight,{text:p.label,highlight:t})})})},p.name))})]})]})})}):null}var ja=document.createElement("div");document.body.appendChild(ja);(0,pt.createRoot)(ja).render((0,pt.createElement)(Fa));
Home - Capital GMC Buick Regina
Skip to content
{{ $t(category) }}
Error
{{vehicle.modelData.year}} {{vehicle.modelData.make}} {{vehicle.modelData.model}}
Starting from {{vehicle.modelData.startingPrice | moneyFormat(lang)}}
Welcome to Capital GMC BUICK – REGINA
Thank you for choosing Capital GMC Buick | Regina, your premier certified Buick and GMC dealership proudly serving drivers in Regina and the surrounding communities. Whether you’re searching for a brand-new Buick or GMC vehicle or a meticulously inspected pre-owned model, we have a diverse selection to match your needs and lifestyle.
Beyond our impressive inventory, we offer a seamless and stress-free financing experience through our well-connected finance centre, where our team of experts is dedicated to securing the best loan or lease options for you, quickly, transparently, and hassle-free.
But our commitment to you doesn’t stop at the sale. Our state-of-the-art service centre is staffed with skilled Buick and GMC technicians who use the latest equipment and genuine OEM parts to keep your vehicle running at its best. From routine maintenance to complex repairs, we’ve got you covered.
Experience top-tier customer service, quality vehicles, and expert care, all in one place. Visit Capital GMC Buick | Regina today or call us at 306-205-8072 with any questions. We’re here to help!
Ask a Question
Capital GMC Buick – Regina
Contact Us
Have a question or need assistance? Fill out the form and we will reach out to you as soon as possible.
Notice: JavaScript is required for this content.
CLOSE
Schedule a Visit
Let us know when you are coming and how we can assist you. We can ensure someone will be on hand to help you out at the desired date and time.
Notice: JavaScript is required for this content.
CLOSE
Find a Career
Have a look at our list of available positions and apply online today to join our team!
×
Opportunities to Grow
The auto industry is constantly changing and we want to continue to grow. We offer growth, leadership & mentorship programs to allow our staff to grow with us.
×
Competitive Salary
We have a significant earning potential with incentive-based pay in most roles. We also offer an employee referral bonus with paid bonuses.
×
Health & Dental
We offer a comprehensive benefits package including extended health, dental, and vision care. We also include paramedical, life insurance, paid sick leave, short & long-term disability coverages.
×
Vacation
We value our employees and want everyone to take their vacation time. We offer a minimum of 2 weeks vacation each year.
×
Training & Development
We have many opportunities for paid education and training in-house as well as training from the Manufacturer.
×
$10,000 Cash Giveaway – Terms & Conditions
All October long, stop by Capital GMC Buick Cadillac, to enter for your chance to win $10,000 cash. No purchase is required, but entries must be made in-store.
The contest is open to residents of Saskatchewan who are 18+. Dealership employees and their households are not eligible. Entries will be accepted from October 1 to October 31, 2025. A random draw will take place on November 1, 2025.
The prize is one $10,000 award, paid by cheque, and must be accepted as awarded. Winner will be contacted by phone or email and must respond within 7 days or another entry may be drawn. Odds of winning depend on the number of entries received.By entering, you agree that Capital Automotive Group may use your name and photo for winner announcements. The contest is governed by the laws of Saskatchewan.
Notice: JavaScript is required for this content.
CLOSE