(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8679],{80008:function(e,t,n){(e.exports=n(85177)).tz.load(n(91128))},85177:function(e,t,n){var r,o,a;a=function(e){"use strict";void 0===e.version&&e.default&&(e=e.default);var t,n,r={},o={},a={},i={},u={};e&&"string"==typeof e.version||R("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var l=e.version.split("."),s=+l[0],c=+l[1];function d(e){return e>96?e-87:e>64?e-29:e-48}function f(e){var t,n=0,r=e.split("."),o=r[0],a=r[1]||"",i=1,u=0,l=1;for(45===e.charCodeAt(0)&&(n=1,l=-1);n<o.length;n++)u=60*u+(t=d(o.charCodeAt(n)));for(n=0;n<a.length;n++)i/=60,u+=(t=d(a.charCodeAt(n)))*i;return u*l}function p(e){for(var t=0;t<e.length;t++)e[t]=f(e[t])}function m(e,t){var n,r=[];for(n=0;n<t.length;n++)r[n]=e[t[n]];return r}function h(e){var t=e.split("|"),n=t[2].split(" "),r=t[3].split(""),o=t[4].split(" ");return p(n),p(r),p(o),function(e,t){for(var n=0;n<t;n++)e[n]=Math.round((e[n-1]||0)+6e4*e[n]);e[t-1]=1/0}(o,r.length),{name:t[0],abbrs:m(t[1].split(" "),r),offsets:m(n,r),untils:o,population:0|t[5]}}function v(e){e&&this._set(h(e))}function g(e,t){this.name=e,this.zones=t}function y(e){var t=e.toTimeString(),n=t.match(/\([a-z ]+\)/i);"GMT"===(n=n&&n[0]?(n=n[0].match(/[A-Z]/g))?n.join(""):void 0:(n=t.match(/[A-Z]{3,5}/g))?n[0]:void 0)&&(n=void 0),this.at=+e,this.abbr=n,this.offset=e.getTimezoneOffset()}function b(e){this.zone=e,this.offsetScore=0,this.abbrScore=0}function w(e,t){return e.offsetScore!==t.offsetScore?e.offsetScore-t.offsetScore:e.abbrScore!==t.abbrScore?e.abbrScore-t.abbrScore:e.zone.population!==t.zone.population?t.zone.population-e.zone.population:t.zone.name.localeCompare(e.zone.name)}function x(e){return(e||"").toLowerCase().replace(/\//g,"_")}function E(e){var t,n,o,a;for("string"==typeof e&&(e=[e]),t=0;t<e.length;t++)r[a=x(n=(o=e[t].split("|"))[0])]=e[t],i[a]=n,function(e,t){var n,r;for(p(t),n=0;n<t.length;n++)u[r=t[n]]=u[r]||{},u[r][e]=!0}(a,o[2].split(" "))}function C(e,t){var n,a=r[e=x(e)];return a instanceof v?a:"string"==typeof a?(a=new v(a),r[e]=a,a):o[e]&&t!==C&&(n=C(o[e],C))?((a=r[e]=new v)._set(n),a.name=i[e],a):null}function M(e){var t,n,r,a;for("string"==typeof e&&(e=[e]),t=0;t<e.length;t++)r=x((n=e[t].split("|"))[0]),a=x(n[1]),o[r]=a,i[r]=n[0],o[a]=r,i[a]=n[1]}function _(e){var t="X"===e._f||"x"===e._f;return!!(e._a&&void 0===e._tzm&&!t)}function R(e){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(e)}function N(t){var n=Array.prototype.slice.call(arguments,0,-1),r=arguments[arguments.length-1],o=C(r),a=e.utc.apply(null,n);return o&&!e.isMoment(t)&&_(a)&&a.add(o.parse(a),"minutes"),a.tz(r),a}(s<2||2===s&&c<6)&&R("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js "+e.version+". See momentjs.com"),v.prototype={_set:function(e){this.name=e.name,this.abbrs=e.abbrs,this.untils=e.untils,this.offsets=e.offsets,this.population=e.population},_index:function(e){var t,n=+e,r=this.untils;for(t=0;t<r.length;t++)if(n<r[t])return t},countries:function(){var e=this.name;return Object.keys(a).filter(function(t){return -1!==a[t].zones.indexOf(e)})},parse:function(e){var t,n,r,o,a=+e,i=this.offsets,u=this.untils,l=u.length-1;for(o=0;o<l;o++)if(t=i[o],n=i[o+1],r=i[o?o-1:o],t<n&&N.moveAmbiguousForward?t=n:t>r&&N.moveInvalidForward&&(t=r),a<u[o]-6e4*t)return i[o];return i[l]},abbr:function(e){return this.abbrs[this._index(e)]},offset:function(e){return R("zone.offset has been deprecated in favor of zone.utcOffset"),this.offsets[this._index(e)]},utcOffset:function(e){return this.offsets[this._index(e)]}},b.prototype.scoreOffsetAt=function(e){this.offsetScore+=Math.abs(this.zone.utcOffset(e.at)-e.offset),this.zone.abbr(e.at).replace(/[^A-Z]/g,"")!==e.abbr&&this.abbrScore++},N.version="0.5.41",N.dataVersion="",N._zones=r,N._links=o,N._names=i,N._countries=a,N.add=E,N.link=M,N.load=function(e){E(e.zones),M(e.links),function(e){var t,n,r,o;if(e&&e.length)for(t=0;t<e.length;t++)n=(o=e[t].split("|"))[0].toUpperCase(),r=o[1].split(" "),a[n]=new g(n,r)}(e.countries),N.dataVersion=e.version},N.zone=C,N.zoneExists=function e(t){return e.didShowError||(e.didShowError=!0,R("moment.tz.zoneExists('"+t+"') has been deprecated in favor of !moment.tz.zone('"+t+"')")),!!C(t)},N.guess=function(e){return(!n||e)&&(n=function(){try{var e=Intl.DateTimeFormat().resolvedOptions().timeZone;if(e&&e.length>3){var t=i[x(e)];if(t)return t;R("Moment Timezone found "+e+" from the Intl api, but did not have that data loaded.")}}catch(e){}var n,r,o,a=function(){var e,t,n,r=new Date().getFullYear()-2,o=new y(new Date(r,0,1)),a=[o];for(n=1;n<48;n++)(t=new y(new Date(r,n,1))).offset!==o.offset&&(a.push(e=function(e,t){for(var n,r;r=((t.at-e.at)/12e4|0)*6e4;)(n=new y(new Date(e.at+r))).offset===e.offset?e=n:t=n;return e}(o,t)),a.push(new y(new Date(e.at+6e4)))),o=t;for(n=0;n<4;n++)a.push(new y(new Date(r+n,0,1))),a.push(new y(new Date(r+n,6,1)));return a}(),l=a.length,s=function(e){var t,n,r,o=e.length,a={},l=[];for(t=0;t<o;t++)for(n in r=u[e[t].offset]||{})r.hasOwnProperty(n)&&(a[n]=!0);for(t in a)a.hasOwnProperty(t)&&l.push(i[t]);return l}(a),c=[];for(r=0;r<s.length;r++){for(o=0,n=new b(C(s[r]),l);o<l;o++)n.scoreOffsetAt(a[o]);c.push(n)}return c.sort(w),c.length>0?c[0].zone.name:void 0}()),n},N.names=function(){var e,t=[];for(e in i)i.hasOwnProperty(e)&&(r[e]||r[o[e]])&&i[e]&&t.push(i[e]);return t.sort()},N.Zone=v,N.unpack=h,N.unpackBase60=f,N.needsOffset=_,N.moveInvalidForward=!0,N.moveAmbiguousForward=!1,N.countries=function(){return Object.keys(a)},N.zonesForCountry=function(e,t){if(!(e=a[e.toUpperCase()]||null))return null;var n=e.zones.sort();return t?n.map(function(e){var t=C(e);return{name:e,offset:t.utcOffset(new Date)}}):n};var j=e.fn;function S(e){return function(){return this._z?this._z.abbr(this):e.call(this)}}function O(e){return function(){return this._z=null,e.apply(this,arguments)}}e.tz=N,e.defaultZone=null,e.updateOffset=function(t,n){var r,o=e.defaultZone;if(void 0===t._z&&(o&&_(t)&&!t._isUTC&&(t._d=e.utc(t._a)._d,t.utc().add(o.parse(t),"minutes")),t._z=o),t._z){if(16>Math.abs(r=t._z.utcOffset(t))&&(r/=60),void 0!==t.utcOffset){var a=t._z;t.utcOffset(-r,n),t._z=a}else t.zone(r,n)}},j.tz=function(t,n){if(t){if("string"!=typeof t)throw Error("Time zone name must be a string, got "+t+" ["+typeof t+"]");return this._z=C(t),this._z?e.updateOffset(this,n):R("Moment Timezone has no data for "+t+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},j.zoneName=S(j.zoneName),j.zoneAbbr=S(j.zoneAbbr),j.utc=O(j.utc),j.local=O(j.local),j.utcOffset=(t=j.utcOffset,function(){return arguments.length>0&&(this._z=null),t.apply(this,arguments)}),e.tz.setDefault=function(t){return(s<2||2===s&&c<9)&&R("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+e.version+"."),e.defaultZone=t?C(t):null,e};var A=e.momentProperties;return"[object Array]"===Object.prototype.toString.call(A)?(A.push("_z"),A.push("_a")):A&&(A._z=null),e},e.exports?e.exports=a(n(30381)):(r=[n(30381)],void 0===(o=a.apply(t,r))||(e.exports=o))},58384:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{noSSR:function(){return i},default:function(){return u}});let r=n(38754),o=(n(67294),r._(n(91229)));function a(e){return{default:(null==e?void 0:e.default)||e}}function i(e,t){return delete t.webpack,delete t.modules,e(t)}function u(e,t){let n=o.default,r={loading:e=>{let{error:t,isLoading:n,pastDelay:r}=e;return null}};e instanceof Promise?r.loader=()=>e:"function"==typeof e?r.loader=e:"object"==typeof e&&(r={...r,...e});let u=(r={...r,...t}).loader;return(r.loadableGenerated&&(r={...r,...r.loadableGenerated},delete r.loadableGenerated),"boolean"!=typeof r.ssr||r.ssr)?n({...r,loader:()=>null!=u?u().then(a):Promise.resolve(a(()=>null))}):(delete r.webpack,delete r.modules,i(n,r))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},29184:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return r}});let r=n(38754)._(n(67294)).default.createContext(null)},91229:function(e,t,n){"use strict";/**
@copyright (c) 2017-present James Kyle <me@thejameskyle.com>
 MIT License
 Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
 The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
*/Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return f}});let r=n(38754)._(n(67294)),o=n(29184),a=[],i=[],u=!1;function l(e){let t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then(e=>(n.loading=!1,n.loaded=e,e)).catch(e=>{throw n.loading=!1,n.error=e,e}),n}class s{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function c(e){return function(e,t){let n=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),a=null;function l(){if(!a){let t=new s(e,n);a={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return a.promise()}if(!u){let e=n.webpack?n.webpack():n.modules;e&&i.push(t=>{for(let n of e)if(t.includes(n))return l()})}function c(e,t){!function(){l();let e=r.default.useContext(o.LoadableContext);e&&Array.isArray(n.modules)&&n.modules.forEach(t=>{e(t)})}();let i=r.default.useSyncExternalStore(a.subscribe,a.getCurrentValue,a.getCurrentValue);return r.default.useImperativeHandle(t,()=>({retry:a.retry}),[]),r.default.useMemo(()=>{var t;return i.loading||i.error?r.default.createElement(n.loading,{isLoading:i.loading,pastDelay:i.pastDelay,timedOut:i.timedOut,error:i.error,retry:a.retry}):i.loaded?r.default.createElement((t=i.loaded)&&t.default?t.default:t,e):null},[e,i])}return c.preload=()=>l(),c.displayName="LoadableComponent",r.default.forwardRef(c)}(l,e)}function d(e,t){let n=[];for(;e.length;){let r=e.pop();n.push(r(t))}return Promise.all(n).then(()=>{if(e.length)return d(e,t)})}c.preloadAll=()=>new Promise((e,t)=>{d(a).then(e,t)}),c.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let n=()=>(u=!0,t());d(i,e).then(n,n)})),window.__NEXT_PRELOADREADY=c.preloadReady;let f=c},5152:function(e,t,n){e.exports=n(58384)},82329:function(e,t,n){"use strict";var r=(0,n(69098).Z)(function(e,t,n){var r=e(t),o=e(n);return r<o?-1:r>o?1:0});t.Z=r},69098:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(93993),o=n(81353),a=n(66508);function i(e){return function t(n,i,u){switch(arguments.length){case 0:return t;case 1:return(0,a.Z)(n)?t:(0,o.Z)(function(t,r){return e(n,t,r)});case 2:return(0,a.Z)(n)&&(0,a.Z)(i)?t:(0,a.Z)(n)?(0,o.Z)(function(t,n){return e(t,i,n)}):(0,a.Z)(i)?(0,o.Z)(function(t,r){return e(n,t,r)}):(0,r.Z)(function(t){return e(n,i,t)});default:return(0,a.Z)(n)&&(0,a.Z)(i)&&(0,a.Z)(u)?t:(0,a.Z)(n)&&(0,a.Z)(i)?(0,o.Z)(function(t,n){return e(t,n,u)}):(0,a.Z)(n)&&(0,a.Z)(u)?(0,o.Z)(function(t,n){return e(t,i,n)}):(0,a.Z)(i)&&(0,a.Z)(u)?(0,o.Z)(function(t,r){return e(n,t,r)}):(0,a.Z)(n)?(0,r.Z)(function(t){return e(t,i,u)}):(0,a.Z)(i)?(0,r.Z)(function(t){return e(n,t,u)}):(0,a.Z)(u)?(0,r.Z)(function(t){return e(n,i,t)}):e(n,i,u)}}}},53459:function(e,t,n){"use strict";function r(e){return"[object String]"===Object.prototype.toString.call(e)}n.d(t,{Z:function(){return r}})},42247:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(81353),o=Number.isInteger||function(e){return e<<0===e},a=n(53459),i=(0,r.Z)(function(e,t){var n=e<0?t.length+e:e;return(0,a.Z)(t)?t.charAt(n):t[n]}),u=(0,r.Z)(function(e,t){return e.map(function(e){for(var n,r=t,a=0;a<e.length;){if(null==r)return;r=o(n=e[a])?i(n,r):r[n],a+=1}return r})}),l=(0,r.Z)(function(e,t){return u([e],t)[0]}),s=(0,r.Z)(function(e,t){return l([e],t)})},45136:function(e,t,n){"use strict";var r=(0,n(81353).Z)(function(e,t){return Array.prototype.slice.call(t,0).sort(function(t,n){for(var r=0,o=0;0===r&&o<e.length;)r=e[o](t,n),o+=1;return r})});t.Z=r},36206:function(e,t,n){"use strict";function r(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}n.d(t,{M:function(){return r}})},96905:function(e,t,n){"use strict";n.d(t,{VY:function(){return K},ck:function(){return $},fC:function(){return Z},xz:function(){return U}});var r=n(67294),o=n(25360),a=n(65936),i=n(28771),u=n(36206),l=n(77342),s=n(75320),c=n(30927),d=n(91276),f=n(78990),p=n(85893),m="Accordion",h=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[v,g,y]=(0,a.B)(m),[b,w]=(0,o.b)(m,[y,c.p_]),x=(0,c.p_)(),E=r.forwardRef((e,t)=>{let{type:n,...r}=e;return(0,p.jsx)(v.Provider,{scope:e.__scopeAccordion,children:"multiple"===n?(0,p.jsx)(j,{...r,ref:t}):(0,p.jsx)(N,{...r,ref:t})})});E.displayName=m;var[C,M]=b(m),[_,R]=b(m,{collapsible:!1}),N=r.forwardRef((e,t)=>{let{value:n,defaultValue:o,onValueChange:a=()=>{},collapsible:i=!1,...u}=e,[s,c]=(0,l.T)({prop:n,defaultProp:o,onChange:a});return(0,p.jsx)(C,{scope:e.__scopeAccordion,value:s?[s]:[],onItemOpen:c,onItemClose:r.useCallback(()=>i&&c(""),[i,c]),children:(0,p.jsx)(_,{scope:e.__scopeAccordion,collapsible:i,children:(0,p.jsx)(A,{...u,ref:t})})})}),j=r.forwardRef((e,t)=>{let{value:n,defaultValue:o,onValueChange:a=()=>{},...i}=e,[u=[],s]=(0,l.T)({prop:n,defaultProp:o,onChange:a}),c=r.useCallback(e=>s((t=[])=>[...t,e]),[s]),d=r.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return(0,p.jsx)(C,{scope:e.__scopeAccordion,value:u,onItemOpen:c,onItemClose:d,children:(0,p.jsx)(_,{scope:e.__scopeAccordion,collapsible:!0,children:(0,p.jsx)(A,{...i,ref:t})})})}),[S,O]=b(m),A=r.forwardRef((e,t)=>{let{__scopeAccordion:n,disabled:o,dir:a,orientation:l="vertical",...c}=e,d=r.useRef(null),m=(0,i.e)(d,t),y=g(n),b="ltr"===(0,f.gm)(a),w=(0,u.M)(e.onKeyDown,e=>{if(!h.includes(e.key))return;let t=e.target,n=y().filter(e=>!e.ref.current?.disabled),r=n.findIndex(e=>e.ref.current===t),o=n.length;if(-1===r)return;e.preventDefault();let a=r,i=o-1,u=()=>{(a=r+1)>i&&(a=0)},s=()=>{(a=r-1)<0&&(a=i)};switch(e.key){case"Home":a=0;break;case"End":a=i;break;case"ArrowRight":"horizontal"===l&&(b?u():s());break;case"ArrowDown":"vertical"===l&&u();break;case"ArrowLeft":"horizontal"===l&&(b?s():u());break;case"ArrowUp":"vertical"===l&&s()}let c=a%o;n[c].ref.current?.focus()});return(0,p.jsx)(S,{scope:n,disabled:o,direction:a,orientation:l,children:(0,p.jsx)(v.Slot,{scope:n,children:(0,p.jsx)(s.WV.div,{...c,"data-orientation":l,ref:m,onKeyDown:o?void 0:w})})})}),P="AccordionItem",[T,D]=b(P),k=r.forwardRef((e,t)=>{let{__scopeAccordion:n,value:r,...o}=e,a=O(P,n),i=M(P,n),u=x(n),l=(0,d.M)(),s=r&&i.value.includes(r)||!1,f=a.disabled||e.disabled;return(0,p.jsx)(T,{scope:n,open:s,disabled:f,triggerId:l,children:(0,p.jsx)(c.fC,{"data-orientation":a.orientation,"data-state":V(s),...u,...o,ref:t,disabled:f,open:s,onOpenChange:e=>{e?i.onItemOpen(r):i.onItemClose(r)}})})});k.displayName=P;var I="AccordionHeader";r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,o=O(m,n),a=D(I,n);return(0,p.jsx)(s.WV.h3,{"data-orientation":o.orientation,"data-state":V(a.open),"data-disabled":a.disabled?"":void 0,...r,ref:t})}).displayName=I;var L="AccordionTrigger",z=r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,o=O(m,n),a=D(L,n),i=R(L,n),u=x(n);return(0,p.jsx)(v.ItemSlot,{scope:n,children:(0,p.jsx)(c.xz,{"aria-disabled":a.open&&!i.collapsible||void 0,"data-orientation":o.orientation,id:a.triggerId,...u,...r,ref:t})})});z.displayName=L;var F="AccordionContent",W=r.forwardRef((e,t)=>{let{__scopeAccordion:n,...r}=e,o=O(m,n),a=D(F,n),i=x(n);return(0,p.jsx)(c.VY,{role:"region","aria-labelledby":a.triggerId,"data-orientation":o.orientation,...i,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});function V(e){return e?"open":"closed"}W.displayName=F;var Z=E,$=k,U=z,K=W},30927:function(e,t,n){"use strict";n.d(t,{Fw:function(){return j},VY:function(){return T},fC:function(){return A},xz:function(){return P},p_:function(){return x}});var r=n(67294),o=n(25360),a=n(77342),i=globalThis?.document?r.useLayoutEffect:()=>{};function u(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function l(...e){return r.useCallback(u(...e),e)}var s=n(73935),c=n(85893),d=r.forwardRef((e,t)=>{let{children:n,...o}=e,a=r.Children.toArray(n),i=a.find(m);if(i){let e=i.props.children,n=a.map(t=>t!==i?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,c.jsx)(f,{...o,ref:t,children:r.isValidElement(e)?r.cloneElement(e,void 0,n):null})}return(0,c.jsx)(f,{...o,ref:t,children:n})});d.displayName="Slot";var f=r.forwardRef((e,t)=>{let{children:n,...o}=e;if(r.isValidElement(n)){let e,a;let i=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return r.cloneElement(n,{...function(e,t){let n={...t};for(let r in t){let o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{a(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(o,n.props),ref:t?u(t,i):i})}return r.Children.count(n)>1?r.Children.only(null):null});f.displayName="SlotClone";var p=({children:e})=>(0,c.jsx)(c.Fragment,{children:e});function m(e){return r.isValidElement(e)&&e.type===p}var h=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=r.forwardRef((e,n)=>{let{asChild:r,...o}=e,a=r?d:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,c.jsx)(a,{...o,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{}),v=e=>{let t,n;let{present:o,children:a}=e,u=function(e){var t,n;let[o,a]=r.useState(),u=r.useRef({}),l=r.useRef(e),c=r.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>n[e][t]??e,t));return r.useEffect(()=>{let e=g(u.current);c.current="mounted"===d?e:"none"},[d]),i(()=>{let t=u.current,n=l.current;if(n!==e){let r=c.current,o=g(t);e?f("MOUNT"):"none"===o||t?.display==="none"?f("UNMOUNT"):n&&r!==o?f("ANIMATION_OUT"):f("UNMOUNT"),l.current=e}},[e,f]),i(()=>{if(o){let e=e=>{let t=g(u.current).includes(e.animationName);e.target===o&&t&&s.flushSync(()=>f("ANIMATION_END"))},t=e=>{e.target===o&&(c.current=g(u.current))};return o.addEventListener("animationstart",t),o.addEventListener("animationcancel",e),o.addEventListener("animationend",e),()=>{o.removeEventListener("animationstart",t),o.removeEventListener("animationcancel",e),o.removeEventListener("animationend",e)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{e&&(u.current=getComputedStyle(e)),a(e)},[])}}(o),c="function"==typeof a?a({present:u.isPresent}):r.Children.only(a),d=l(u.ref,(t=Object.getOwnPropertyDescriptor(c.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?c.ref:(t=Object.getOwnPropertyDescriptor(c,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?c.props.ref:c.props.ref||c.ref);return"function"==typeof a||u.isPresent?r.cloneElement(c,{ref:d}):null};function g(e){return e?.animationName||"none"}v.displayName="Presence";var y=n(91276),b="Collapsible",[w,x]=(0,o.b)(b),[E,C]=w(b),M=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:o,defaultOpen:i,disabled:u,onOpenChange:l,...s}=e,[d=!1,f]=(0,a.T)({prop:o,defaultProp:i,onChange:l});return(0,c.jsx)(E,{scope:n,disabled:u,contentId:(0,y.M)(),open:d,onOpenToggle:r.useCallback(()=>f(e=>!e),[f]),children:(0,c.jsx)(h.div,{"data-state":O(d),"data-disabled":u?"":void 0,...s,ref:t})})});M.displayName=b;var _="CollapsibleTrigger",R=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,...r}=e,o=C(_,n);return(0,c.jsx)(h.button,{type:"button","aria-controls":o.contentId,"aria-expanded":o.open||!1,"data-state":O(o.open),"data-disabled":o.disabled?"":void 0,disabled:o.disabled,...r,ref:t,onClick:function(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}(e.onClick,o.onOpenToggle)})});R.displayName=_;var N="CollapsibleContent",j=r.forwardRef((e,t)=>{let{forceMount:n,...r}=e,o=C(N,e.__scopeCollapsible);return(0,c.jsx)(v,{present:n||o.open,children:({present:e})=>(0,c.jsx)(S,{...r,ref:t,present:e})})});j.displayName=N;var S=r.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:o,children:a,...u}=e,s=C(N,n),[d,f]=r.useState(o),p=r.useRef(null),m=l(t,p),v=r.useRef(0),g=v.current,y=r.useRef(0),b=y.current,w=s.open||d,x=r.useRef(w),E=r.useRef();return r.useEffect(()=>{let e=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(e)},[]),i(()=>{let e=p.current;if(e){E.current=E.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();v.current=t.height,y.current=t.width,x.current||(e.style.transitionDuration=E.current.transitionDuration,e.style.animationName=E.current.animationName),f(o)}},[s.open,o]),(0,c.jsx)(h.div,{"data-state":O(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!w,...u,ref:m,style:{"--radix-collapsible-content-height":g?`${g}px`:void 0,"--radix-collapsible-content-width":b?`${b}px`:void 0,...e.style},children:w&&a})});function O(e){return e?"open":"closed"}var A=M,P=R,T=j},65936:function(e,t,n){"use strict";n.d(t,{B:function(){return l}});var r=n(67294),o=n(25360),a=n(28771),i=n(88426),u=n(85893);function l(e){let t=e+"CollectionProvider",[n,l]=(0,o.b)(t),[s,c]=n(t,{collectionRef:{current:null},itemMap:new Map}),d=e=>{let{scope:t,children:n}=e,o=r.useRef(null),a=r.useRef(new Map).current;return(0,u.jsx)(s,{scope:t,itemMap:a,collectionRef:o,children:n})};d.displayName=t;let f=e+"CollectionSlot",p=r.forwardRef((e,t)=>{let{scope:n,children:r}=e,o=c(f,n),l=(0,a.e)(t,o.collectionRef);return(0,u.jsx)(i.g7,{ref:l,children:r})});p.displayName=f;let m=e+"CollectionItemSlot",h="data-radix-collection-item",v=r.forwardRef((e,t)=>{let{scope:n,children:o,...l}=e,s=r.useRef(null),d=(0,a.e)(t,s),f=c(m,n);return r.useEffect(()=>(f.itemMap.set(s,{ref:s,...l}),()=>void f.itemMap.delete(s))),(0,u.jsx)(i.g7,{[h]:"",ref:d,children:o})});return v.displayName=m,[{Provider:d,Slot:p,ItemSlot:v},function(t){let n=c(e+"CollectionConsumer",t);return r.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${h}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},l]}},28771:function(e,t,n){"use strict";n.d(t,{F:function(){return o},e:function(){return a}});var r=n(67294);function o(...e){return t=>e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}function a(...e){return r.useCallback(o(...e),e)}},25360:function(e,t,n){"use strict";n.d(t,{b:function(){return a}});var r=n(67294),o=n(85893);function a(e,t=[]){let n=[],a=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return a.scopeName=e,[function(t,a){let i=r.createContext(a),u=n.length;function l(t){let{scope:n,children:a,...l}=t,s=n?.[e][u]||i,c=r.useMemo(()=>l,Object.values(l));return(0,o.jsx)(s.Provider,{value:c,children:a})}return n=[...n,a],l.displayName=t+"Provider",[l,function(n,o){let l=o?.[e][u]||i,s=r.useContext(l);if(s)return s;if(void 0!==a)return a;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(a,...t)]}},78990:function(e,t,n){"use strict";n.d(t,{gm:function(){return a}});var r=n(67294);n(85893);var o=r.createContext(void 0);function a(e){let t=r.useContext(o);return e||t||"ltr"}},33876:function(e,t,n){"use strict";let r;n.d(t,{VY:function(){return no},ck:function(){return na},Uv:function(){return nr},fC:function(){return nt},xz:function(){return nn}});var o,a,i,u,l,s,c,d=n(67294),f=n(36206),p=n(28771),m=n(85893),h=n(77342),v=n(75320),g=n(65936),y=n(78990),b=n(79698),w="dismissableLayer.update",x=d.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),E=d.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:u,...l}=e,c=d.useContext(x),[h,g]=d.useState(null),y=h?.ownerDocument??globalThis?.document,[,E]=d.useState({}),_=(0,p.e)(t,e=>g(e)),R=Array.from(c.layers),[N]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),j=R.indexOf(N),S=h?R.indexOf(h):-1,O=c.layersWithOutsidePointerEventsDisabled.size>0,A=S>=j,P=function(e,t=globalThis?.document){let n=(0,b.W)(e),r=d.useRef(!1),o=d.useRef(()=>{});return d.useEffect(()=>{let e=e=>{if(e.target&&!r.current){let r=function(){M("dismissableLayer.pointerDownOutside",n,a,{discrete:!0})},a={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{let t=e.target,n=[...c.branches].some(e=>e.contains(t));!A||n||(o?.(e),i?.(e),e.defaultPrevented||u?.())},y),T=function(e,t=globalThis?.document){let n=(0,b.W)(e),r=d.useRef(!1);return d.useEffect(()=>{let e=e=>{e.target&&!r.current&&M("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{let t=e.target;[...c.branches].some(e=>e.contains(t))||(a?.(e),i?.(e),e.defaultPrevented||u?.())},y);return!function(e,t=globalThis?.document){let n=(0,b.W)(e);d.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{S!==c.layers.size-1||(r?.(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))},y),d.useEffect(()=>{if(h)return n&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(s=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(h)),c.layers.add(h),C(),()=>{n&&1===c.layersWithOutsidePointerEventsDisabled.size&&(y.body.style.pointerEvents=s)}},[h,y,n,c]),d.useEffect(()=>()=>{h&&(c.layers.delete(h),c.layersWithOutsidePointerEventsDisabled.delete(h),C())},[h,c]),d.useEffect(()=>{let e=()=>E({});return document.addEventListener(w,e),()=>document.removeEventListener(w,e)},[]),(0,m.jsx)(v.WV.div,{...l,ref:_,style:{pointerEvents:O?A?"auto":"none":void 0,...e.style},onFocusCapture:(0,f.M)(e.onFocusCapture,T.onFocusCapture),onBlurCapture:(0,f.M)(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:(0,f.M)(e.onPointerDownCapture,P.onPointerDownCapture)})});function C(){let e=new CustomEvent(w);document.dispatchEvent(e)}function M(e,t,n,{discrete:r}){let o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?(0,v.jH)(o,a):o.dispatchEvent(a)}E.displayName="DismissableLayer",d.forwardRef((e,t)=>{let n=d.useContext(x),r=d.useRef(null),o=(0,p.e)(t,r);return d.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,m.jsx)(v.WV.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var _=0;function R(){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 N="focusScope.autoFocusOnMount",j="focusScope.autoFocusOnUnmount",S={bubbles:!1,cancelable:!0},O=d.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[u,l]=d.useState(null),s=(0,b.W)(o),c=(0,b.W)(a),f=d.useRef(null),h=(0,p.e)(t,e=>l(e)),g=d.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;d.useEffect(()=>{if(r){let e=function(e){if(g.paused||!u)return;let t=e.target;u.contains(t)?f.current=t:T(f.current,{select:!0})},t=function(e){if(g.paused||!u)return;let t=e.relatedTarget;null===t||u.contains(t)||T(f.current,{select:!0})};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&T(u)});return u&&n.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,u,g.paused]),d.useEffect(()=>{if(u){D.add(g);let e=document.activeElement;if(!u.contains(e)){let t=new CustomEvent(N,S);u.addEventListener(N,s),u.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(T(r,{select:t}),document.activeElement!==n)return}(A(u).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&T(u))}return()=>{u.removeEventListener(N,s),setTimeout(()=>{let t=new CustomEvent(j,S);u.addEventListener(j,c),u.dispatchEvent(t),t.defaultPrevented||T(e??document.body,{select:!0}),u.removeEventListener(j,c),D.remove(g)},0)}}},[u,s,c,g]);let y=d.useCallback(e=>{if(!n&&!r||g.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){let t=e.currentTarget,[r,a]=function(e){let t=A(e);return[P(t,e),P(t.reverse(),e)]}(t);r&&a?e.shiftKey||o!==a?e.shiftKey&&o===r&&(e.preventDefault(),n&&T(a,{select:!0})):(e.preventDefault(),n&&T(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,g.paused]);return(0,m.jsx)(v.WV.div,{tabIndex:-1,...i,ref:h,onKeyDown:y})});function A(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function P(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function T(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}O.displayName="FocusScope";var D=(r=[],{add(e){let t=r[0];e!==t&&t?.pause(),(r=k(r,e)).unshift(e)},remove(e){r=k(r,e),r[0]?.resume()}});function k(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var I=n(91276),L=n(1371),z=n(8524),F=n(83917),W=d.forwardRef((e,t)=>{let{children:n,width:r=10,height:o=5,...a}=e;return(0,m.jsx)(v.WV.svg,{...a,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:(0,m.jsx)("polygon",{points:"0,0 30,0 15,10"})})});W.displayName="Arrow";var V=n(9981),Z="Popper",[$,U]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>d.createContext(e));return function(n){let r=n?.[e]||t;return d.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let o=d.createContext(r),a=n.length;function i(t){let{scope:n,children:r,...i}=t,u=n?.[e][a]||o,l=d.useMemo(()=>i,Object.values(i));return(0,m.jsx)(u.Provider,{value:l,children:r})}return n=[...n,r],i.displayName=t+"Provider",[i,function(n,i){let u=i?.[e][a]||o,l=d.useContext(u);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(Z),[K,B]=$(Z),Y=e=>{let{__scopePopper:t,children:n}=e,[r,o]=d.useState(null);return(0,m.jsx)(K,{scope:t,anchor:r,onAnchorChange:o,children:n})};Y.displayName=Z;var H="PopperAnchor",G=d.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:r,...o}=e,a=B(H,n),i=d.useRef(null),u=(0,p.e)(t,i);return d.useEffect(()=>{a.onAnchorChange(r?.current||i.current)}),r?null:(0,m.jsx)(v.WV.div,{...o,ref:u})});G.displayName=H;var X="PopperContent",[q,J]=$(X),Q=d.forwardRef((e,t)=>{let{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:u=0,avoidCollisions:l=!0,collisionBoundary:s=[],collisionPadding:c=0,sticky:f="partial",hideWhenDetached:h=!1,updatePositionStrategy:g="optimized",onPlaced:y,...w}=e,x=B(X,n),[E,C]=d.useState(null),M=(0,p.e)(t,e=>C(e)),[_,R]=d.useState(null),N=function(e){let[t,n]=d.useState(void 0);return(0,V.b)(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let r,o;if(!Array.isArray(t)||!t.length)return;let a=t[0];if("borderBoxSize"in a){let e=a.borderBoxSize,t=Array.isArray(e)?e[0]:e;r=t.inlineSize,o=t.blockSize}else r=e.offsetWidth,o=e.offsetHeight;n({width:r,height:o})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(_),j=N?.width??0,S=N?.height??0,O="number"==typeof c?c:{top:0,right:0,bottom:0,left:0,...c},A=Array.isArray(s)?s:[s],P=A.length>0,T={padding:O,boundary:A.filter(er),altBoundary:P},{refs:D,floatingStyles:k,placement:I,isPositioned:W,middlewareData:Z}=(0,L.YF)({strategy:"fixed",placement:r+("center"!==a?"-"+a:""),whileElementsMounted:(...e)=>(0,z.Me)(...e,{animationFrame:"always"===g}),elements:{reference:x.anchor},middleware:[(0,F.cv)({mainAxis:o+S,alignmentAxis:i}),l&&(0,F.uY)({mainAxis:!0,crossAxis:!1,limiter:"partial"===f?(0,F.dr)():void 0,...T}),l&&(0,F.RR)({...T}),(0,F.dp)({...T,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:o,height:a}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${r}px`),i.setProperty("--radix-popper-anchor-width",`${o}px`),i.setProperty("--radix-popper-anchor-height",`${a}px`)}}),_&&(0,L.x7)({element:_,padding:u}),eo({arrowWidth:j,arrowHeight:S}),h&&(0,F.Cp)({strategy:"referenceHidden",...T})]}),[$,U]=ea(I),K=(0,b.W)(y);(0,V.b)(()=>{W&&K?.()},[W,K]);let Y=Z.arrow?.x,H=Z.arrow?.y,G=Z.arrow?.centerOffset!==0,[J,Q]=d.useState();return(0,V.b)(()=>{E&&Q(window.getComputedStyle(E).zIndex)},[E]),(0,m.jsx)("div",{ref:D.setFloating,"data-radix-popper-content-wrapper":"",style:{...k,transform:W?k.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:J,"--radix-popper-transform-origin":[Z.transformOrigin?.x,Z.transformOrigin?.y].join(" "),...Z.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:(0,m.jsx)(q,{scope:n,placedSide:$,onArrowChange:R,arrowX:Y,arrowY:H,shouldHideArrow:G,children:(0,m.jsx)(v.WV.div,{"data-side":$,"data-align":U,...w,ref:M,style:{...w.style,animation:W?void 0:"none"}})})})});Q.displayName=X;var ee="PopperArrow",et={top:"bottom",right:"left",bottom:"top",left:"right"},en=d.forwardRef(function(e,t){let{__scopePopper:n,...r}=e,o=J(ee,n),a=et[o.placedSide];return(0,m.jsx)("span",{ref:o.onArrowChange,style:{position:"absolute",left:o.arrowX,top:o.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[o.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[o.placedSide],visibility:o.shouldHideArrow?"hidden":void 0},children:(0,m.jsx)(W,{...r,ref:t,style:{...r.style,display:"block"}})})});function er(e){return null!==e}en.displayName=ee;var eo=e=>({name:"transformOrigin",options:e,fn(t){let{placement:n,rects:r,middlewareData:o}=t,a=o.arrow?.centerOffset!==0,i=a?0:e.arrowWidth,u=a?0:e.arrowHeight,[l,s]=ea(n),c={start:"0%",center:"50%",end:"100%"}[s],d=(o.arrow?.x??0)+i/2,f=(o.arrow?.y??0)+u/2,p="",m="";return"bottom"===l?(p=a?c:`${d}px`,m=`${-u}px`):"top"===l?(p=a?c:`${d}px`,m=`${r.floating.height+u}px`):"right"===l?(p=`${-u}px`,m=a?c:`${f}px`):"left"===l&&(p=`${r.floating.width+u}px`,m=a?c:`${f}px`),{data:{x:p,y:m}}}});function ea(e){let[t,n="center"]=e.split("-");return[t,n]}var ei=n(73935),eu=d.forwardRef((e,t)=>{let{container:n,...r}=e,[o,a]=d.useState(!1);(0,V.b)(()=>a(!0),[]);let i=n||o&&globalThis?.document?.body;return i?ei.createPortal((0,m.jsx)(v.WV.div,{...r,ref:t}),i):null});eu.displayName="Portal";var el=n(29115),es=n(66681),ec=n(88426),ed=new WeakMap,ef=new WeakMap,ep={},em=0,eh=function(e){return e&&(e.host||eh(e.parentNode))},ev=function(e,t,n,r){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=eh(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});ep[n]||(ep[n]=new WeakMap);var a=ep[n],i=[],u=new Set,l=new Set(o),s=function(e){!e||u.has(e)||(u.add(e),s(e.parentNode))};o.forEach(s);var c=function(e){!e||l.has(e)||Array.prototype.forEach.call(e.children,function(e){if(u.has(e))c(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(ed.get(e)||0)+1,s=(a.get(e)||0)+1;ed.set(e,l),a.set(e,s),i.push(e),1===l&&o&&ef.set(e,!0),1===s&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return c(t),u.clear(),em++,function(){i.forEach(function(e){var t=ed.get(e)-1,o=a.get(e)-1;ed.set(e,t),a.set(e,o),t||(ef.has(e)||e.removeAttribute(r),ef.delete(e)),o||e.removeAttribute(n)}),--em||(ed=new WeakMap,ed=new WeakMap,ef=new WeakMap,ep={})}},eg=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),ev(r,o,n,"aria-hidden")):function(){return null}},ey=n(70655),eb="right-scroll-bar-position",ew="width-before-scroll-bar";function ex(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var eE="undefined"!=typeof window?d.useLayoutEffect:d.useEffect,eC=new WeakMap,eM=function(){return(eM=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var e_=(void 0===o&&(o={}),(void 0===a&&(a=function(e){return e}),i=[],u=!1,l={read:function(){if(u)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:null},useMedium:function(e){var t=a(e,u);return i.push(t),function(){i=i.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(u=!0;i.length;){var t=i;i=[],t.forEach(e)}i={push:function(t){return e(t)},filter:function(){return i}}},assignMedium:function(e){u=!0;var t=[];if(i.length){var n=i;i=[],n.forEach(e),t=i}var r=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(r)};o(),i={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),i}}}}).options=eM({async:!0,ssr:!1},o),l),eR=function(){},eN=d.forwardRef(function(e,t){var n,r,o,a,i=d.useRef(null),u=d.useState({onScrollCapture:eR,onWheelCapture:eR,onTouchMoveCapture:eR}),l=u[0],s=u[1],c=e.forwardProps,f=e.children,p=e.className,m=e.removeScrollBar,h=e.enabled,v=e.shards,g=e.sideCar,y=e.noIsolation,b=e.inert,w=e.allowPinchZoom,x=e.as,E=e.gapMode,C=(0,ey._T)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),M=(n=[i,t],r=function(e){return n.forEach(function(t){return ex(t,e)})},(o=(0,d.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,a=o.facade,eE(function(){var e=eC.get(a);if(e){var t=new Set(e),r=new Set(n),o=a.current;t.forEach(function(e){r.has(e)||ex(e,null)}),r.forEach(function(e){t.has(e)||ex(e,o)})}eC.set(a,n)},[n]),a),_=(0,ey.pi)((0,ey.pi)({},C),l);return d.createElement(d.Fragment,null,h&&d.createElement(g,{sideCar:e_,removeScrollBar:m,shards:v,noIsolation:y,inert:b,setCallbacks:s,allowPinchZoom:!!w,lockRef:i,gapMode:E}),c?d.cloneElement(d.Children.only(f),(0,ey.pi)((0,ey.pi)({},_),{ref:M})):d.createElement(void 0===x?"div":x,(0,ey.pi)({},_,{className:p,ref:M}),f))});eN.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},eN.classNames={fullWidth:ew,zeroRight:eb};var ej=function(e){var t=e.sideCar,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return d.createElement(r,eM({},n))};ej.isSideCarExport=!0;var eS=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=c||n.nc;return t&&e.setAttribute("nonce",t),e}())){var o,a;(o=t).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},eO=function(){var e=eS();return function(t,n){d.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},eA=function(){var e=eO();return function(t){return e(t.styles,t.dynamic),null}},eP={left:0,top:0,right:0,gap:0},eT=function(e){return parseInt(e||"",10)||0},eD=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[eT(n),eT(r),eT(o)]},ek=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return eP;var t=eD(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])}},eI=eA(),eL="data-scroll-locked",ez=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,u=e.gap;return void 0===n&&(n="margin"),"\n  .".concat("with-scroll-bars-hidden"," {\n   overflow: hidden ").concat(r,";\n   padding-right: ").concat(u,"px ").concat(r,";\n  }\n  body[").concat(eL,"] {\n    overflow: hidden ").concat(r,";\n    overscroll-behavior: contain;\n    ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n    padding-left: ".concat(o,"px;\n    padding-top: ").concat(a,"px;\n    padding-right: ").concat(i,"px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: ").concat(u,"px ").concat(r,";\n    "),"padding"===n&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),"\n  }\n  \n  .").concat(eb," {\n    right: ").concat(u,"px ").concat(r,";\n  }\n  \n  .").concat(ew," {\n    margin-right: ").concat(u,"px ").concat(r,";\n  }\n  \n  .").concat(eb," .").concat(eb," {\n    right: 0 ").concat(r,";\n  }\n  \n  .").concat(ew," .").concat(ew," {\n    margin-right: 0 ").concat(r,";\n  }\n  \n  body[").concat(eL,"] {\n    ").concat("--removed-body-scroll-bar-size",": ").concat(u,"px;\n  }\n")},eF=function(){var e=parseInt(document.body.getAttribute(eL)||"0",10);return isFinite(e)?e:0},eW=function(){d.useEffect(function(){return document.body.setAttribute(eL,(eF()+1).toString()),function(){var e=eF()-1;e<=0?document.body.removeAttribute(eL):document.body.setAttribute(eL,e.toString())}},[])},eV=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;eW();var a=d.useMemo(function(){return ek(o)},[o]);return d.createElement(eI,{styles:ez(a,!t,o,n?"":"!important")})},eZ=!1;if("undefined"!=typeof window)try{var e$=Object.defineProperty({},"passive",{get:function(){return eZ=!0,!0}});window.addEventListener("test",e$,e$),window.removeEventListener("test",e$,e$)}catch(e){eZ=!1}var eU=!!eZ&&{passive:!1},eK=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},eB=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),eY(e,r)){var o=eH(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},eY=function(e,t){return"v"===e?eK(t,"overflowY"):eK(t,"overflowX")},eH=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},eG=function(e,t,n,r,o){var a,i=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),u=i*r,l=n.target,s=t.contains(l),c=!1,d=u>0,f=0,p=0;do{var m=eH(e,l),h=m[0],v=m[1]-m[2]-i*h;(h||v)&&eY(e,l)&&(f+=v,p+=h),l=l instanceof ShadowRoot?l.host:l.parentNode}while(!s&&l!==document.body||s&&(t.contains(l)||t===l));return d&&(o&&1>Math.abs(f)||!o&&u>f)?c=!0:!d&&(o&&1>Math.abs(p)||!o&&-u>p)&&(c=!0),c},eX=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eq=function(e){return[e.deltaX,e.deltaY]},eJ=function(e){return e&&"current"in e?e.current:e},eQ=0,e0=[],e1=(e_.useMedium(function(e){var t=d.useRef([]),n=d.useRef([0,0]),r=d.useRef(),o=d.useState(eQ++)[0],a=d.useState(eA)[0],i=d.useRef(e);d.useEffect(function(){i.current=e},[e]),d.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(0,ey.ev)([e.lockRef.current],(e.shards||[]).map(eJ),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=d.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var o,a=eX(e),u=n.current,l="deltaX"in e?e.deltaX:u[0]-a[0],s="deltaY"in e?e.deltaY:u[1]-a[1],c=e.target,d=Math.abs(l)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===d&&"range"===c.type)return!1;var f=eB(d,c);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=eB(d,c)),!f)return!1;if(!r.current&&"changedTouches"in e&&(l||s)&&(r.current=o),!o)return!0;var p=r.current||o;return eG(p,t,e,"h"===p?l:s,!0)},[]),l=d.useCallback(function(e){if(e0.length&&e0[e0.length-1]===a){var n="deltaY"in e?eq(e):eX(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(i.current.shards||[]).map(eJ).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!i.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),s=d.useCallback(function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),c=d.useCallback(function(e){n.current=eX(e),r.current=void 0},[]),f=d.useCallback(function(t){s(t.type,eq(t),t.target,u(t,e.lockRef.current))},[]),p=d.useCallback(function(t){s(t.type,eX(t),t.target,u(t,e.lockRef.current))},[]);d.useEffect(function(){return e0.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,eU),document.addEventListener("touchmove",l,eU),document.addEventListener("touchstart",c,eU),function(){e0=e0.filter(function(e){return e!==a}),document.removeEventListener("wheel",l,eU),document.removeEventListener("touchmove",l,eU),document.removeEventListener("touchstart",c,eU)}},[]);var m=e.removeScrollBar,h=e.inert;return d.createElement(d.Fragment,null,h?d.createElement(a,{styles:"\n  .block-interactivity-".concat(o," {pointer-events: none;}\n  .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,m?d.createElement(eV,{gapMode:e.gapMode}):null)}),ej),e9=d.forwardRef(function(e,t){return d.createElement(eN,(0,ey.pi)({},e,{ref:t,sideCar:e1}))});e9.classNames=eN.classNames;var e2=["Enter"," "],e7=["ArrowUp","PageDown","End"],e6=["ArrowDown","PageUp","Home",...e7],e8={ltr:[...e2,"ArrowRight"],rtl:[...e2,"ArrowLeft"]},e3={ltr:["ArrowLeft"],rtl:["ArrowRight"]},e5="Menu",[e4,te,tt]=(0,g.B)(e5),[tn,tr]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>d.createContext(e));return function(n){let r=n?.[e]||t;return d.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let o=d.createContext(r),a=n.length;n=[...n,r];let i=t=>{let{scope:n,children:r,...i}=t,u=n?.[e]?.[a]||o,l=d.useMemo(()=>i,Object.values(i));return(0,m.jsx)(u.Provider,{value:l,children:r})};return i.displayName=t+"Provider",[i,function(n,i){let u=i?.[e]?.[a]||o,l=d.useContext(u);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(e5,[tt,U,es.Pc]),to=U(),ta=(0,es.Pc)(),[ti,tu]=tn(e5),[tl,ts]=tn(e5),tc=e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:a,modal:i=!0}=e,u=to(t),[l,s]=d.useState(null),c=d.useRef(!1),f=(0,b.W)(a),p=(0,y.gm)(o);return d.useEffect(()=>{let e=()=>{c.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>c.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),(0,m.jsx)(Y,{...u,children:(0,m.jsx)(ti,{scope:t,open:n,onOpenChange:f,content:l,onContentChange:s,children:(0,m.jsx)(tl,{scope:t,onClose:d.useCallback(()=>f(!1),[f]),isUsingKeyboardRef:c,dir:p,modal:i,children:r})})})};tc.displayName=e5;var td=d.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=to(n);return(0,m.jsx)(G,{...o,...r,ref:t})});td.displayName="MenuAnchor";var tf="MenuPortal",[tp,tm]=tn(tf,{forceMount:void 0}),th=e=>{let{__scopeMenu:t,forceMount:n,children:r,container:o}=e,a=tu(tf,t);return(0,m.jsx)(tp,{scope:t,forceMount:n,children:(0,m.jsx)(el.z,{present:n||a.open,children:(0,m.jsx)(eu,{asChild:!0,container:o,children:r})})})};th.displayName=tf;var tv="MenuContent",[tg,ty]=tn(tv),tb=d.forwardRef((e,t)=>{let n=tm(tv,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=tu(tv,e.__scopeMenu),i=ts(tv,e.__scopeMenu);return(0,m.jsx)(e4.Provider,{scope:e.__scopeMenu,children:(0,m.jsx)(el.z,{present:r||a.open,children:(0,m.jsx)(e4.Slot,{scope:e.__scopeMenu,children:i.modal?(0,m.jsx)(tw,{...o,ref:t}):(0,m.jsx)(tx,{...o,ref:t})})})})}),tw=d.forwardRef((e,t)=>{let n=tu(tv,e.__scopeMenu),r=d.useRef(null),o=(0,p.e)(t,r);return d.useEffect(()=>{let e=r.current;if(e)return eg(e)},[]),(0,m.jsx)(tE,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:(0,f.M)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),tx=d.forwardRef((e,t)=>{let n=tu(tv,e.__scopeMenu);return(0,m.jsx)(tE,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),tE=d.forwardRef((e,t)=>{let{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,disableOutsidePointerEvents:u,onEntryFocus:l,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:h,onInteractOutside:v,onDismiss:g,disableOutsideScroll:y,...b}=e,w=tu(tv,n),x=ts(tv,n),C=to(n),M=ta(n),N=te(n),[j,S]=d.useState(null),A=d.useRef(null),P=(0,p.e)(t,A,w.onContentChange),T=d.useRef(0),D=d.useRef(""),k=d.useRef(0),I=d.useRef(null),L=d.useRef("right"),z=d.useRef(0),F=y?e9:d.Fragment,W=y?{as:ec.g7,allowPinchZoom:!0}:void 0,V=e=>{let t=D.current+e,n=N().filter(e=>!e.disabled),r=document.activeElement,o=n.find(e=>e.ref.current===r)?.textValue,a=function(e,t,n){var r;let o=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,a=(r=Math.max(n?e.indexOf(n):-1,0),e.map((t,n)=>e[(r+n)%e.length]));1===o.length&&(a=a.filter(e=>e!==n));let i=a.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return i!==n?i:void 0}(n.map(e=>e.textValue),t,o),i=n.find(e=>e.textValue===a)?.ref.current;!function e(t){D.current=t,window.clearTimeout(T.current),""!==t&&(T.current=window.setTimeout(()=>e(""),1e3))}(t),i&&setTimeout(()=>i.focus())};d.useEffect(()=>()=>window.clearTimeout(T.current),[]),d.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??R()),document.body.insertAdjacentElement("beforeend",e[1]??R()),_++,()=>{1===_&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),_--}},[]);let Z=d.useCallback(e=>{var t;return L.current===I.current?.side&&!!(t=I.current?.area)&&function(e,t){let{x:n,y:r}=e,o=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let i=t[e].x,u=t[e].y,l=t[a].x,s=t[a].y;u>r!=s>r&&n<(l-i)*(r-u)/(s-u)+i&&(o=!o)}return o}({x:e.clientX,y:e.clientY},t)},[]);return(0,m.jsx)(tg,{scope:n,searchRef:D,onItemEnter:d.useCallback(e=>{Z(e)&&e.preventDefault()},[Z]),onItemLeave:d.useCallback(e=>{Z(e)||(A.current?.focus(),S(null))},[Z]),onTriggerLeave:d.useCallback(e=>{Z(e)&&e.preventDefault()},[Z]),pointerGraceTimerRef:k,onPointerGraceIntentChange:d.useCallback(e=>{I.current=e},[]),children:(0,m.jsx)(F,{...W,children:(0,m.jsx)(O,{asChild:!0,trapped:o,onMountAutoFocus:(0,f.M)(a,e=>{e.preventDefault(),A.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:(0,m.jsx)(E,{asChild:!0,disableOutsidePointerEvents:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:h,onInteractOutside:v,onDismiss:g,children:(0,m.jsx)(es.fC,{asChild:!0,...M,dir:x.dir,orientation:"vertical",loop:r,currentTabStopId:j,onCurrentTabStopIdChange:S,onEntryFocus:(0,f.M)(l,e=>{x.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,m.jsx)(Q,{role:"menu","aria-orientation":"vertical","data-state":tH(w.open),"data-radix-menu-content":"",dir:x.dir,...C,...b,ref:P,style:{outline:"none",...b.style},onKeyDown:(0,f.M)(b.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&V(e.key));let o=A.current;if(e.target!==o||!e6.includes(e.key))return;e.preventDefault();let a=N().filter(e=>!e.disabled).map(e=>e.ref.current);e7.includes(e.key)&&a.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(a)}),onBlur:(0,f.M)(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(T.current),D.current="")}),onPointerMove:(0,f.M)(e.onPointerMove,tq(e=>{let t=e.target,n=z.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>z.current?"right":"left";L.current=t,z.current=e.clientX}}))})})})})})})});tb.displayName=tv;var tC=d.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,m.jsx)(v.WV.div,{role:"group",...r,ref:t})});tC.displayName="MenuGroup";var tM=d.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,m.jsx)(v.WV.div,{...r,ref:t})});tM.displayName="MenuLabel";var t_="MenuItem",tR="menu.itemSelect",tN=d.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:r,...o}=e,a=d.useRef(null),i=ts(t_,e.__scopeMenu),u=ty(t_,e.__scopeMenu),l=(0,p.e)(t,a),s=d.useRef(!1);return(0,m.jsx)(tj,{...o,ref:l,disabled:n,onClick:(0,f.M)(e.onClick,()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(tR,{bubbles:!0,cancelable:!0});e.addEventListener(tR,e=>r?.(e),{once:!0}),(0,v.jH)(e,t),t.defaultPrevented?s.current=!1:i.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),s.current=!0},onPointerUp:(0,f.M)(e.onPointerUp,e=>{s.current||e.currentTarget?.click()}),onKeyDown:(0,f.M)(e.onKeyDown,e=>{let t=""!==u.searchRef.current;!n&&(!t||" "!==e.key)&&e2.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});tN.displayName=t_;var tj=d.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:r=!1,textValue:o,...a}=e,i=ty(t_,n),u=ta(n),l=d.useRef(null),s=(0,p.e)(t,l),[c,h]=d.useState(!1),[g,y]=d.useState("");return d.useEffect(()=>{let e=l.current;e&&y((e.textContent??"").trim())},[a.children]),(0,m.jsx)(e4.ItemSlot,{scope:n,disabled:r,textValue:o??g,children:(0,m.jsx)(es.ck,{asChild:!0,...u,focusable:!r,children:(0,m.jsx)(v.WV.div,{role:"menuitem","data-highlighted":c?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...a,ref:s,onPointerMove:(0,f.M)(e.onPointerMove,tq(e=>{r?i.onItemLeave(e):(i.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:(0,f.M)(e.onPointerLeave,tq(e=>i.onItemLeave(e))),onFocus:(0,f.M)(e.onFocus,()=>h(!0)),onBlur:(0,f.M)(e.onBlur,()=>h(!1))})})})}),tS=d.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:r,...o}=e;return(0,m.jsx)(tL,{scope:e.__scopeMenu,checked:n,children:(0,m.jsx)(tN,{role:"menuitemcheckbox","aria-checked":tG(n)?"mixed":n,...o,ref:t,"data-state":tX(n),onSelect:(0,f.M)(o.onSelect,()=>r?.(!!tG(n)||!n),{checkForDefaultPrevented:!1})})})});tS.displayName="MenuCheckboxItem";var tO="MenuRadioGroup",[tA,tP]=tn(tO,{value:void 0,onValueChange:()=>{}}),tT=d.forwardRef((e,t)=>{let{value:n,onValueChange:r,...o}=e,a=(0,b.W)(r);return(0,m.jsx)(tA,{scope:e.__scopeMenu,value:n,onValueChange:a,children:(0,m.jsx)(tC,{...o,ref:t})})});tT.displayName=tO;var tD="MenuRadioItem",tk=d.forwardRef((e,t)=>{let{value:n,...r}=e,o=tP(tD,e.__scopeMenu),a=n===o.value;return(0,m.jsx)(tL,{scope:e.__scopeMenu,checked:a,children:(0,m.jsx)(tN,{role:"menuitemradio","aria-checked":a,...r,ref:t,"data-state":tX(a),onSelect:(0,f.M)(r.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});tk.displayName=tD;var tI="MenuItemIndicator",[tL,tz]=tn(tI,{checked:!1}),tF=d.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:r,...o}=e,a=tz(tI,n);return(0,m.jsx)(el.z,{present:r||tG(a.checked)||!0===a.checked,children:(0,m.jsx)(v.WV.span,{...o,ref:t,"data-state":tX(a.checked)})})});tF.displayName=tI;var tW=d.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e;return(0,m.jsx)(v.WV.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});tW.displayName="MenuSeparator";var tV=d.forwardRef((e,t)=>{let{__scopeMenu:n,...r}=e,o=to(n);return(0,m.jsx)(en,{...o,...r,ref:t})});tV.displayName="MenuArrow";var[tZ,t$]=tn("MenuSub"),tU="MenuSubTrigger",tK=d.forwardRef((e,t)=>{let n=tu(tU,e.__scopeMenu),r=ts(tU,e.__scopeMenu),o=t$(tU,e.__scopeMenu),a=ty(tU,e.__scopeMenu),i=d.useRef(null),{pointerGraceTimerRef:u,onPointerGraceIntentChange:l}=a,s={__scopeMenu:e.__scopeMenu},c=d.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return d.useEffect(()=>c,[c]),d.useEffect(()=>{let e=u.current;return()=>{window.clearTimeout(e),l(null)}},[u,l]),(0,m.jsx)(td,{asChild:!0,...s,children:(0,m.jsx)(tj,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":tH(n.open),...e,ref:(0,p.F)(t,o.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:(0,f.M)(e.onPointerMove,tq(t=>{a.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||i.current||(a.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),c()},100))})),onPointerLeave:(0,f.M)(e.onPointerLeave,tq(e=>{c();let t=n.content?.getBoundingClientRect();if(t){let r=n.content?.dataset.side,o="right"===r,i=t[o?"left":"right"],l=t[o?"right":"left"];a.onPointerGraceIntentChange({area:[{x:e.clientX+(o?-5:5),y:e.clientY},{x:i,y:t.top},{x:l,y:t.top},{x:l,y:t.bottom},{x:i,y:t.bottom}],side:r}),window.clearTimeout(u.current),u.current=window.setTimeout(()=>a.onPointerGraceIntentChange(null),300)}else{if(a.onTriggerLeave(e),e.defaultPrevented)return;a.onPointerGraceIntentChange(null)}})),onKeyDown:(0,f.M)(e.onKeyDown,t=>{let o=""!==a.searchRef.current;!e.disabled&&(!o||" "!==t.key)&&e8[r.dir].includes(t.key)&&(n.onOpenChange(!0),n.content?.focus(),t.preventDefault())})})})});tK.displayName=tU;var tB="MenuSubContent",tY=d.forwardRef((e,t)=>{let n=tm(tv,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,a=tu(tv,e.__scopeMenu),i=ts(tv,e.__scopeMenu),u=t$(tB,e.__scopeMenu),l=d.useRef(null),s=(0,p.e)(t,l);return(0,m.jsx)(e4.Provider,{scope:e.__scopeMenu,children:(0,m.jsx)(el.z,{present:r||a.open,children:(0,m.jsx)(e4.Slot,{scope:e.__scopeMenu,children:(0,m.jsx)(tE,{id:u.contentId,"aria-labelledby":u.triggerId,...o,ref:s,align:"start",side:"rtl"===i.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{i.isUsingKeyboardRef.current&&l.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:(0,f.M)(e.onFocusOutside,e=>{e.target!==u.trigger&&a.onOpenChange(!1)}),onEscapeKeyDown:(0,f.M)(e.onEscapeKeyDown,e=>{i.onClose(),e.preventDefault()}),onKeyDown:(0,f.M)(e.onKeyDown,e=>{let t=e.currentTarget.contains(e.target),n=e3[i.dir].includes(e.key);t&&n&&(a.onOpenChange(!1),u.trigger?.focus(),e.preventDefault())})})})})})});function tH(e){return e?"open":"closed"}function tG(e){return"indeterminate"===e}function tX(e){return tG(e)?"indeterminate":e?"checked":"unchecked"}function tq(e){return t=>"mouse"===t.pointerType?e(t):void 0}tY.displayName=tB;var tJ="DropdownMenu",[tQ,t0]=function(e,t=[]){let n=[],r=()=>{let t=n.map(e=>d.createContext(e));return function(n){let r=n?.[e]||t;return d.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return r.scopeName=e,[function(t,r){let o=d.createContext(r),a=n.length;n=[...n,r];let i=t=>{let{scope:n,children:r,...i}=t,u=n?.[e]?.[a]||o,l=d.useMemo(()=>i,Object.values(i));return(0,m.jsx)(u.Provider,{value:l,children:r})};return i.displayName=t+"Provider",[i,function(n,i){let u=i?.[e]?.[a]||o,l=d.useContext(u);if(l)return l;if(void 0!==r)return r;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return d.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}(r,...t)]}(tJ,[tr]),t1=tr(),[t9,t2]=tQ(tJ),t7=e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:a,onOpenChange:i,modal:u=!0}=e,l=t1(t),s=d.useRef(null),[c=!1,f]=(0,h.T)({prop:o,defaultProp:a,onChange:i});return(0,m.jsx)(t9,{scope:t,triggerId:(0,I.M)(),triggerRef:s,contentId:(0,I.M)(),open:c,onOpenChange:f,onOpenToggle:d.useCallback(()=>f(e=>!e),[f]),modal:u,children:(0,m.jsx)(tc,{...l,open:c,onOpenChange:f,dir:r,modal:u,children:n})})};t7.displayName=tJ;var t6="DropdownMenuTrigger",t8=d.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,a=t2(t6,n),i=t1(n);return(0,m.jsx)(td,{asChild:!0,...i,children:(0,m.jsx)(v.WV.button,{type:"button",id:a.triggerId,"aria-haspopup":"menu","aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:(0,p.F)(t,a.triggerRef),onPointerDown:(0,f.M)(e.onPointerDown,e=>{r||0!==e.button||!1!==e.ctrlKey||(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:(0,f.M)(e.onKeyDown,e=>{!r&&(["Enter"," "].includes(e.key)&&a.onOpenToggle(),"ArrowDown"===e.key&&a.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});t8.displayName=t6;var t3=e=>{let{__scopeDropdownMenu:t,...n}=e,r=t1(t);return(0,m.jsx)(th,{...r,...n})};t3.displayName="DropdownMenuPortal";var t5="DropdownMenuContent",t4=d.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t2(t5,n),a=t1(n),i=d.useRef(!1);return(0,m.jsx)(tb,{id:o.contentId,"aria-labelledby":o.triggerId,...a,...r,ref:t,onCloseAutoFocus:(0,f.M)(e.onCloseAutoFocus,e=>{i.current||o.triggerRef.current?.focus(),i.current=!1,e.preventDefault()}),onInteractOutside:(0,f.M)(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;(!o.modal||r)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});t4.displayName=t5,d.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t1(n);return(0,m.jsx)(tC,{...o,...r,ref:t})}).displayName="DropdownMenuGroup",d.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t1(n);return(0,m.jsx)(tM,{...o,...r,ref:t})}).displayName="DropdownMenuLabel";var ne=d.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t1(n);return(0,m.jsx)(tN,{...o,...r,ref:t})});ne.displayName="DropdownMenuItem",d.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t1(n);return(0,m.jsx)(tS,{...o,...r,ref:t})}).displayName="DropdownMenuCheckboxItem",d.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t1(n);return(0,m.jsx)(tT,{...o,...r,ref:t})}).displayName="DropdownMenuRadioGroup",d.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t1(n);return(0,m.jsx)(tk,{...o,...r,ref:t})}).displayName="DropdownMenuRadioItem",d.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t1(n);return(0,m.jsx)(tF,{...o,...r,ref:t})}).displayName="DropdownMenuItemIndicator",d.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t1(n);return(0,m.jsx)(tW,{...o,...r,ref:t})}).displayName="DropdownMenuSeparator",d.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t1(n);return(0,m.jsx)(tV,{...o,...r,ref:t})}).displayName="DropdownMenuArrow",d.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t1(n);return(0,m.jsx)(tK,{...o,...r,ref:t})}).displayName="DropdownMenuSubTrigger",d.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...r}=e,o=t1(n);return(0,m.jsx)(tY,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})}).displayName="DropdownMenuSubContent";var nt=t7,nn=t8,nr=t3,no=t4,na=ne},91276:function(e,t,n){"use strict";n.d(t,{M:function(){return l}});var r,o=n(67294),a=n(9981),i=(r||(r=n.t(o,2)))["useId".toString()]||(()=>void 0),u=0;function l(e){let[t,n]=o.useState(i());return(0,a.b)(()=>{e||n(e=>e??String(u++))},[e]),e||(t?`radix-${t}`:"")}},29115:function(e,t,n){"use strict";n.d(t,{z:function(){return i}});var r=n(67294),o=n(28771),a=n(9981),i=e=>{let t,n;let{present:i,children:l}=e,s=function(e){var t,n;let[o,i]=r.useState(),l=r.useRef({}),s=r.useRef(e),c=r.useRef("none"),[d,f]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},r.useReducer((e,t)=>n[e][t]??e,t));return r.useEffect(()=>{let e=u(l.current);c.current="mounted"===d?e:"none"},[d]),(0,a.b)(()=>{let t=l.current,n=s.current;if(n!==e){let r=c.current,o=u(t);e?f("MOUNT"):"none"===o||t?.display==="none"?f("UNMOUNT"):n&&r!==o?f("ANIMATION_OUT"):f("UNMOUNT"),s.current=e}},[e,f]),(0,a.b)(()=>{if(o){let e;let t=o.ownerDocument.defaultView??window,n=n=>{let r=u(l.current).includes(n.animationName);if(n.target===o&&r&&(f("ANIMATION_END"),!s.current)){let n=o.style.animationFillMode;o.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===o.style.animationFillMode&&(o.style.animationFillMode=n)})}},r=e=>{e.target===o&&(c.current=u(l.current))};return o.addEventListener("animationstart",r),o.addEventListener("animationcancel",n),o.addEventListener("animationend",n),()=>{t.clearTimeout(e),o.removeEventListener("animationstart",r),o.removeEventListener("animationcancel",n),o.removeEventListener("animationend",n)}}f("ANIMATION_END")},[o,f]),{isPresent:["mounted","unmountSuspended"].includes(d),ref:r.useCallback(e=>{e&&(l.current=getComputedStyle(e)),i(e)},[])}}(i),c="function"==typeof l?l({present:s.isPresent}):r.Children.only(l),d=(0,o.e)(s.ref,(t=Object.getOwnPropertyDescriptor(c.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?c.ref:(t=Object.getOwnPropertyDescriptor(c,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning?c.props.ref:c.props.ref||c.ref);return"function"==typeof l||s.isPresent?r.cloneElement(c,{ref:d}):null};function u(e){return e?.animationName||"none"}i.displayName="Presence"},75320:function(e,t,n){"use strict";n.d(t,{WV:function(){return u},jH:function(){return l}});var r=n(67294),o=n(73935),a=n(88426),i=n(85893),u=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{let n=r.forwardRef((e,n)=>{let{asChild:r,...o}=e,u=r?a.g7:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),(0,i.jsx)(u,{...o,ref:n})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function l(e,t){e&&o.flushSync(()=>e.dispatchEvent(t))}},66681:function(e,t,n){"use strict";n.d(t,{Pc:function(){return x},ck:function(){return A},fC:function(){return O}});var r=n(67294),o=n(36206),a=n(65936),i=n(28771),u=n(25360),l=n(91276),s=n(75320),c=n(79698),d=n(77342),f=n(78990),p=n(85893),m="rovingFocusGroup.onEntryFocus",h={bubbles:!1,cancelable:!0},v="RovingFocusGroup",[g,y,b]=(0,a.B)(v),[w,x]=(0,u.b)(v,[b]),[E,C]=w(v),M=r.forwardRef((e,t)=>(0,p.jsx)(g.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(g.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,p.jsx)(_,{...e,ref:t})})}));M.displayName=v;var _=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:a,loop:u=!1,dir:l,currentTabStopId:v,defaultCurrentTabStopId:g,onCurrentTabStopIdChange:b,onEntryFocus:w,preventScrollOnEntryFocus:x=!1,...C}=e,M=r.useRef(null),_=(0,i.e)(t,M),R=(0,f.gm)(l),[N=null,j]=(0,d.T)({prop:v,defaultProp:g,onChange:b}),[O,A]=r.useState(!1),P=(0,c.W)(w),T=y(n),D=r.useRef(!1),[k,I]=r.useState(0);return r.useEffect(()=>{let e=M.current;if(e)return e.addEventListener(m,P),()=>e.removeEventListener(m,P)},[P]),(0,p.jsx)(E,{scope:n,orientation:a,dir:R,loop:u,currentTabStopId:N,onItemFocus:r.useCallback(e=>j(e),[j]),onItemShiftTab:r.useCallback(()=>A(!0),[]),onFocusableItemAdd:r.useCallback(()=>I(e=>e+1),[]),onFocusableItemRemove:r.useCallback(()=>I(e=>e-1),[]),children:(0,p.jsx)(s.WV.div,{tabIndex:O||0===k?-1:0,"data-orientation":a,...C,ref:_,style:{outline:"none",...e.style},onMouseDown:(0,o.M)(e.onMouseDown,()=>{D.current=!0}),onFocus:(0,o.M)(e.onFocus,e=>{let t=!D.current;if(e.target===e.currentTarget&&t&&!O){let t=new CustomEvent(m,h);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=T().filter(e=>e.focusable);S([e.find(e=>e.active),e.find(e=>e.id===N),...e].filter(Boolean).map(e=>e.ref.current),x)}}D.current=!1}),onBlur:(0,o.M)(e.onBlur,()=>A(!1))})})}),R="RovingFocusGroupItem",N=r.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:a=!0,active:i=!1,tabStopId:u,...c}=e,d=(0,l.M)(),f=u||d,m=C(R,n),h=m.currentTabStopId===f,v=y(n),{onFocusableItemAdd:b,onFocusableItemRemove:w}=m;return r.useEffect(()=>{if(a)return b(),()=>w()},[a,b,w]),(0,p.jsx)(g.ItemSlot,{scope:n,id:f,focusable:a,active:i,children:(0,p.jsx)(s.WV.span,{tabIndex:h?0:-1,"data-orientation":m.orientation,...c,ref:t,onMouseDown:(0,o.M)(e.onMouseDown,e=>{a?m.onItemFocus(f):e.preventDefault()}),onFocus:(0,o.M)(e.onFocus,()=>m.onItemFocus(f)),onKeyDown:(0,o.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){m.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,n){var r;let o=(r=e.key,"rtl"!==n?r:"ArrowLeft"===r?"ArrowRight":"ArrowRight"===r?"ArrowLeft":r);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return j[o]}(e,m.orientation,m.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=v().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var n,r;"prev"===t&&o.reverse();let a=o.indexOf(e.currentTarget);o=m.loop?(n=o,r=a+1,n.map((e,t)=>n[(r+t)%n.length])):o.slice(a+1)}setTimeout(()=>S(o))}})})})});N.displayName=R;var j={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function S(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}var O=M,A=N},88426:function(e,t,n){"use strict";n.d(t,{g7:function(){return i}});var r=n(67294),o=n(28771),a=n(85893),i=r.forwardRef((e,t)=>{let{children:n,...o}=e,i=r.Children.toArray(n),l=i.find(s);if(l){let e=l.props.children,n=i.map(t=>t!==l?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,a.jsx)(u,{...o,ref:t,children:r.isValidElement(e)?r.cloneElement(e,void 0,n):null})}return(0,a.jsx)(u,{...o,ref:t,children:n})});i.displayName="Slot";var u=r.forwardRef((e,t)=>{let{children:n,...a}=e;if(r.isValidElement(n)){let e,i;let u=(e=Object.getOwnPropertyDescriptor(n.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=Object.getOwnPropertyDescriptor(n,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref;return r.cloneElement(n,{...function(e,t){let n={...t};for(let r in t){let o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{a(...e),o(...e)}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(a,n.props),ref:t?(0,o.F)(t,u):u})}return r.Children.count(n)>1?r.Children.only(null):null});u.displayName="SlotClone";var l=({children:e})=>(0,a.jsx)(a.Fragment,{children:e});function s(e){return r.isValidElement(e)&&e.type===l}},16809:function(e,t,n){"use strict";n.d(t,{VY:function(){return O},aV:function(){return j},fC:function(){return N},xz:function(){return S}});var r=n(67294),o=n(36206),a=n(85893),i=n(66681),u=n(29115),l=n(75320),s=n(78990),c=n(77342),d=n(91276),f="Tabs",[p,m]=function(e,t=[]){let n=[],o=()=>{let t=n.map(e=>r.createContext(e));return function(n){let o=n?.[e]||t;return r.useMemo(()=>({[`__scope${e}`]:{...n,[e]:o}}),[n,o])}};return o.scopeName=e,[function(t,o){let i=r.createContext(o),u=n.length;n=[...n,o];let l=t=>{let{scope:n,children:o,...l}=t,s=n?.[e]?.[u]||i,c=r.useMemo(()=>l,Object.values(l));return(0,a.jsx)(s.Provider,{value:c,children:o})};return l.displayName=t+"Provider",[l,function(n,a){let l=a?.[e]?.[u]||i,s=r.useContext(l);if(s)return s;if(void 0!==o)return o;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let o=n.reduce((t,{useScope:n,scopeName:r})=>{let o=n(e)[`__scope${r}`];return{...t,...o}},{});return r.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}(o,...t)]}(f,[i.Pc]),h=(0,i.Pc)(),[v,g]=p(f),y=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,onValueChange:o,defaultValue:i,orientation:u="horizontal",dir:f,activationMode:p="automatic",...m}=e,h=(0,s.gm)(f),[g,y]=(0,c.T)({prop:r,onChange:o,defaultProp:i});return(0,a.jsx)(v,{scope:n,baseId:(0,d.M)(),value:g,onValueChange:y,orientation:u,dir:h,activationMode:p,children:(0,a.jsx)(l.WV.div,{dir:h,"data-orientation":u,...m,ref:t})})});y.displayName=f;var b="TabsList",w=r.forwardRef((e,t)=>{let{__scopeTabs:n,loop:r=!0,...o}=e,u=g(b,n),s=h(n);return(0,a.jsx)(i.fC,{asChild:!0,...s,orientation:u.orientation,dir:u.dir,loop:r,children:(0,a.jsx)(l.WV.div,{role:"tablist","aria-orientation":u.orientation,...o,ref:t})})});w.displayName=b;var x="TabsTrigger",E=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:r,disabled:u=!1,...s}=e,c=g(x,n),d=h(n),f=_(c.baseId,r),p=R(c.baseId,r),m=r===c.value;return(0,a.jsx)(i.ck,{asChild:!0,...d,focusable:!u,active:m,children:(0,a.jsx)(l.WV.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":p,"data-state":m?"active":"inactive","data-disabled":u?"":void 0,disabled:u,id:f,...s,ref:t,onMouseDown:(0,o.M)(e.onMouseDown,e=>{u||0!==e.button||!1!==e.ctrlKey?e.preventDefault():c.onValueChange(r)}),onKeyDown:(0,o.M)(e.onKeyDown,e=>{[" ","Enter"].includes(e.key)&&c.onValueChange(r)}),onFocus:(0,o.M)(e.onFocus,()=>{let e="manual"!==c.activationMode;m||u||!e||c.onValueChange(r)})})})});E.displayName=x;var C="TabsContent",M=r.forwardRef((e,t)=>{let{__scopeTabs:n,value:o,forceMount:i,children:s,...c}=e,d=g(C,n),f=_(d.baseId,o),p=R(d.baseId,o),m=o===d.value,h=r.useRef(m);return r.useEffect(()=>{let e=requestAnimationFrame(()=>h.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,a.jsx)(u.z,{present:i||m,children:({present:n})=>(0,a.jsx)(l.WV.div,{"data-state":m?"active":"inactive","data-orientation":d.orientation,role:"tabpanel","aria-labelledby":f,hidden:!n,id:p,tabIndex:0,...c,ref:t,style:{...e.style,animationDuration:h.current?"0s":void 0},children:n&&s})})});function _(e,t){return`${e}-trigger-${t}`}function R(e,t){return`${e}-content-${t}`}M.displayName=C;var N=y,j=w,S=E,O=M},79698:function(e,t,n){"use strict";n.d(t,{W:function(){return o}});var r=n(67294);function o(e){let t=r.useRef(e);return r.useEffect(()=>{t.current=e}),r.useMemo(()=>(...e)=>t.current?.(...e),[])}},77342:function(e,t,n){"use strict";n.d(t,{T:function(){return a}});var r=n(67294),o=n(79698);function a({prop:e,defaultProp:t,onChange:n=()=>{}}){let[a,i]=function({defaultProp:e,onChange:t}){let n=r.useState(e),[a]=n,i=r.useRef(a),u=(0,o.W)(t);return r.useEffect(()=>{i.current!==a&&(u(a),i.current=a)},[a,i,u]),n}({defaultProp:t,onChange:n}),u=void 0!==e,l=u?e:a,s=(0,o.W)(n);return[l,r.useCallback(t=>{if(u){let n="function"==typeof t?t(e):t;n!==e&&s(n)}else i(t)},[u,e,i,s])]}},9981:function(e,t,n){"use strict";n.d(t,{b:function(){return o}});var r=n(67294),o=globalThis?.document?r.useLayoutEffect:()=>{}}}]);
//# sourceMappingURL=8679-709afc7cd15b1ab8.js.map