1var e,t,n=e=>{throw TypeError(e)},r=(e,t,r)=>t.has(e)||n("Cannot "+r),o=(e,t,n)=>(r(e,t,"read from private field"),n?n.call(e):t.get(e)),i=(e,t,n,o)=>(r(e,t,"write to private field"),o?o.call(e,n):t.set(e,n),n);import{r as s,j as c,R as l,a}from"./vendor-react-BH6F5oQJ.js";var u=Object.defineProperty,f=(e,t)=>u(e,"name",{value:t,configurable:!0}),d=!("undefined"==typeof window||!window.document||!window.document.createElement);function p(e,t,{checkForDefaultPrevented:n=!0}={}){return f(function(r){if(null==e||e(r),!1===n||!r||!r.defaultPrevented)return null==t?void 0:t(r)},"handleEvent")}function m(e){if(!d)throw new Error("Cannot access document outside of the DOM");return(null==e?void 0:e.ownerDocument)??document}function h(e){return"IFRAME"===e.tagName}f(p,"composeEventHandlers"),f(function(e){var t;if(!d)throw new Error("Cannot access window outside of the DOM");return(null==(t=null==e?void 0:e.ownerDocument)?void 0:t.defaultView)??window},"getOwnerWindow"),f(m,"getOwnerDocument"),f(function e(t,n=!1){const{activeElement:r}=m(t);if(!(null==r?void 0:r.nodeName))return null;if(h(r)&&r.contentDocument)return e(r.contentDocument.body,n);if(n){const e=r.getAttribute("aria-activedescendant");if(e){const t=m(r).getElementById(e);if(t)return t}}return r},"getActiveElement"),f(h,"isFrame");var v=Object.defineProperty,y=(e,t)=>v(e,"name",{value:t,configurable:!0});function g(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function w(...e){return t=>{let n=!1;const r=e.map(e=>{const r=g(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():g(e[t],null)}}}}function b(...e){return s.useCallback(w(...e),e)}y(g,"setRef"),y(w,"composeRefs"),y(b,"useComposedRefs");var x=Object.defineProperty,E=(e,t)=>x(e,"name",{value:t,configurable:!0});function S(e,t=[]){let n=[];function r(t,r){const o=s.createContext(r);o.displayName=t+"Context";const i=n.length;n=[...n,r];const l=E(t=>{var n;const{scope:r,children:l,...a}=t,u=(null==(n=null==r?void 0:r[e])?void 0:n[i])||o,f=s.useMemo(()=>a,Object.values(a));return c.jsx(u.Provider,{value:f,children:l})},"Provider");function a(n,c,l={}){var a;const{optional:u=!1}=l,f=(null==(a=null==c?void 0:c[e])?void 0:a[i])||o,d=s.useContext(f);if(d)return d;if(void 0!==r)return r;if(!u)throw new Error(`\`${n}\` must be used within \`${t}\``)}return l.displayName=t+"Provider",E(a,"useContext"),[l,a]}E(r,"createContext");const o=E(()=>{const t=n.map(e=>s.createContext(e));return E(function(n){const r=(null==n?void 0:n[e])||t;return s.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},"useScope")},"createScope");return o.scopeName=e,[r,O(o,...t)]}function O(...e){const t=e[0];if(1===e.length)return t;const n=E(()=>{const n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return E(function(e){const r=n.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return s.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},"useComposedScopes")},"createScope");return n.scopeName=t.scopeName,n}E(function(e,t){const n=s.createContext(t);n.displayName=e+"Context";const r=E(e=>{const{children:t,...r}=e,o=s.useMemo(()=>r,Object.values(r));return c.jsx(n.Provider,{value:o,children:t})},"Provider");function o(r,o={}){const{optional:i=!1}=o,c=s.useContext(n);if(c)return c;if(void 0!==t)return t;if(!i)throw new Error(`\`${r}\` must be used within \`${e}\``)}return r.displayName=e+"Provider",E(o,"useContext"),[r,o]},"createContext"),E(S,"createContextScope"),E(O,"composeContextScopes");var R=Object.defineProperty,C=(e,t)=>R(e,"name",{value:t,configurable:!0});function P(e){const t=s.forwardRef((t,n)=>{let{children:r,...o}=t,i=null,c=!1;const l=[];k(r)&&"function"==typeof z&&(r=z(r._payload)),s.Children.forEach(r,e=>{var t;if(j(e)){c=!0;const n=e;let r="child"in n.props?n.props.child:n.props.children;k(r)&&"function"==typeof z&&(r=z(r._payload)),i=T(n,r),l.push(null==(t=null==i?void 0:i.props)?void 0:t.children)}else l.push(e)}),i?i=s.cloneElement(i,void 0,l):!c&&1===s.Children.count(r)&&s.isValidElement(r)&&(i=r);const a=i?M(i):void 0,u=b(n,a);if(!i){if(r||0===r)throw new Error(c?_(e):W(e));return r}const f=N(o,i.props??{});return i.type!==s.Fragment&&(f.ref=n?u:a),s.cloneElement(i,f)});return t.displayName=`${e}.Slot`,t}C(P,"createSlot");var A=P("Slot"),D=Symbol.for("radix.slottable");function L(e){const t=C(e=>"child"in e?e.children(e.child):e.children,"Slottable");return t.displayName=`${e}.Slottable`,t.__radixId=D,t}C(L,"createSlottable");var T=C((e,t)=>{if("child"in e.props){const t=e.props.child;return s.isValidElement(t)?s.cloneElement(t,void 0,e.props.children(t.props.children)):null}return s.isValidElement(t)?t:null},"getSlottableElementFromSlottable");function N(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...e)=>{const t=i(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...i}
1:"className"===r&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function M(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}function j(e){return s.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===D}C(N,"mergeProps"),C(M,"getElementRef"),C(j,"isSlottable");var I=Symbol.for("react.lazy");function k(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===I&&"_payload"in e&&F(e._payload)}function F(e){return"object"==typeof e&&null!==e&&"then"in e}C(k,"isLazyComponent"),C(F,"isPromiseLike");var W=C(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),_=C(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),z=l[" use ".trim().toString()],$=Object.defineProperty,H=(e,t)=>$(e,"name",{value:t,configurable:!0});function B(e){const t=e+"CollectionProvider",[n,r]=S(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=H(e=>{const{scope:t,children:n}=e,r=s.useRef(null),i=s.useRef(new Map).current;return c.jsx(o,{scope:t,itemMap:i,collectionRef:r,children:n})},"CollectionProvider");l.displayName=t;const a=e+"CollectionSlot",u=P(a),f=s.forwardRef((e,t)=>{const{scope:n,children:r}=e,o=b(t,i(a,n).collectionRef);return c.jsx(u,{ref:o,children:r})});f.displayName=a;const d=e+"CollectionItemSlot",p="data-radix-collection-item",m=P(d),h=s.forwardRef((e,t)=>{const{scope:n,children:r,...o}=e,l=s.useRef(null),a=b(t,l),u=i(d,n);return s.useEffect(()=>(u.itemMap.set(l,{ref:l,...o}),()=>{u.itemMap.delete(l)})),c.jsx(m,{[p]:"",ref:a,children:r})});function v(t){const n=i(e+"CollectionConsumer",t);return s.useCallback(()=>{const e=n.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${p}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return h.displayName=d,H(v,"useCollection"),[{Provider:l,Slot:f,ItemSlot:h},v,r]}H(B,"createCollection");var V=new WeakMap,U=(t=class extends Map{constructor(t){var r,o,s;super(t),r=this,(o=e).has(r)?n("Cannot add the same private member more than once"):o instanceof WeakSet?o.add(r):o.set(r,s),i(this,e,[...super.keys()]),V.set(this,!0)}set(t,n){return V.get(this)&&(this.has(t)?o(this,e)[o(this,e).indexOf(t)]=t:o(this,e).push(t)),super.set(t,n),this}insert(t,n,r){const i=this.has(n),s=o(this,e).length,c=G(t);let l=c>=0?c:s+c;const a=l<0||l>=s?-1:l;if(a===this.size||i&&a===this.size-1||-1===a)return this.set(n,r),this;const u=this.size+(i?0:1);c<0&&l++;const f=[...o(this,e)];let d,p=!1;for(let e=l;e<u;e++)if(l===e){let t=f[e];f[e]===n&&(t=f[e+1]),i&&this.delete(n),d=this.get(t),this.set(n,r)}else{p||f[e-1]!==n||(p=!0);const t=f[p?e:e-1],r=d;d=this.get(t),this.delete(t),this.set(t,r)}return this}with(e,n,r){const o=new t(this);return o.insert(e,n,r),o}before(t){const n=o(this,e).indexOf(t)-1;if(!(n<0))return this.entryAt(n)}setBefore(t,n,r){const i=o(this,e).indexOf(t);return-1===i?this:this.insert(i,n,r)}after(t){let n=o(this,e).indexOf(t);if(n=-1===n||n===this.size-1?-1:n+1,-1!==n)return this.entryAt(n)}setAfter(t,n,r){const i=o(this,e).indexOf(t);return-1===i?this:this.insert(i+1,n,r)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return i(this,e,[]),super.clear()}delete(t){const n=super.delete(t);return n&&o(this,e).splice(o(this,e).indexOf(t),1),n}deleteAt(e){const t=this.keyAt(e);return void 0!==t&&this.delete(t)}at(t){const n=K(o(this,e),t);if(void 0!==n)return this.get(n)}entryAt(t){const n=K(o(this,e),t);if(void 0!==n)return[n,this.get(n)]}indexOf(t){return o(this,e).indexOf(t)}keyAt(t){return K(o(this,e),t)}from(e,t){const n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){const n=this.indexOf(e);if(-1===n)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(const r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}
vendor: 4,196 bytes, line 1
1}findIndex(e,t){let n=0;for(const r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return-1}filter(e,n){const r=[];let o=0;for(const t of this)Reflect.apply(e,n,[t,o,this])&&r.push(t),o++;return new t(r)}map(e,n){const r=[];let o=0;for(const t of this)r.push([t[0],Reflect.apply(e,n,[t,o,this])]),o++;return new t(r)}reduce(...e){const[t,n]=e;let r=0,o=n??this.at(0);for(const i of this)o=0===r&&1===e.length?i:Reflect.apply(t,this,[o,i,r,this]),r++;return o}reduceRight(...e){const[t,n]=e;let r=n??this.at(-1);for(let o=this.size-1;o>=0;o--){const n=this.at(o);r=o===this.size-1&&1===e.length?n:Reflect.apply(t,this,[r,n,o,this])}return r}toSorted(e){const n=[...this.entries()].sort(e);return new t(n)}toReversed(){const e=new t;for(let t=this.size-1;t>=0;t--){const n=this.keyAt(t),r=this.get(n);e.set(n,r)}return e}toSpliced(...e){const n=[...this.entries()];return n.splice(...e),new t(n)}slice(e,n){const r=new t;let o=this.size-1;if(void 0===e)return r;e<0&&(e+=this.size),void 0!==n&&n>0&&(o=n-1);for(let t=e;t<=o;t++){const e=this.keyAt(t),n=this.get(e);r.set(e,n)}return r}every(e,t){let n=0;for(const r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(const r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}},e=new WeakMap,H(t,"OrderedDict"),t);function K(e,t){if("at"in Array.prototype)return Array.prototype.at.call(e,t);const n=q(e,t);return-1===n?void 0:e[n]}function q(e,t){const n=e.length,r=G(t),o=r>=0?r:n+r;return o<0||o>=n?-1:o}function G(e){return e!=e||0===e?0:Math.trunc(e)}function X(e,t){if(e===t)return!0;if("object"!=typeof e||"object"!=typeof t)return!1;if(null==e||null==t)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n){if(!Object.prototype.hasOwnProperty.call(t,o))return!1;if(e[o]!==t[o])return!1}return!0}function Y(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}function Z(e,t){return e[1].element&&t[1].element?Y(e[1].element,t[1].element)?-1:1:0}function J(e){return new MutationObserver(t=>{for(const n of t)if("childList"===n.type)return void e()})}H(K,"at"),H(q,"toSafeIndex"),H(G,"toSafeInteger"),H(function(e){const t=e+"CollectionProvider",[n,r]=S(t),[o,i]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new U,setItemMap:H(()=>{},"setItemMap")}),l=H(({state:e,...t})=>e?c.jsx(u,{...t,state:e}):c.jsx(a,{...t}),"CollectionProvider");l.displayName=t;const a=H(e=>{const t=g();return c.jsx(u,{...e,state:t})},"CollectionInit");a.displayName=t+"Init";const u=H(e=>{const{scope:t,children:n,state:r}=e,i=s.useRef(null),[l,a]=s.useState(null),u=b(i,a),[f,d]=r;return s.useEffect(()=>{if(!l)return;const e=J(()=>{});return e.observe(l,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[l]),c.jsx(o,{scope:t,itemMap:f,setItemMap:d,collectionRef:u,collectionRefObject:i,collectionElement:l,children:n})},"CollectionProviderImpl");u.displayName=t+"Impl";const f=e+"CollectionSlot",d=P(f),p=s.forwardRef((e,t)=>{const{scope:n,children:r}=e,o=b(t,i(f,n).collectionRef);return c.jsx(d,{ref:o,children:r})});p.displayName=f;const m=e+"CollectionItemSlot",h="data-radix-collection-item",v=P(m),y=s.forwardRef((e,t)=>{const{scope:n,children:r,...o}=e,l=s.useRef(null),[a,u]=s.useState(null),f=b(t,l,u),d=i(m,n),{setItemMap:p}=d,y=s.useRef(o);X(y.current,o)||(y.current=o);const g=y.current;return s.useEffect(()=>{const e=g;return p(t=>a?t.has(a)?t.set(a,{...e,element:a}).toSorted(Z):(t.set(a,{...e,element:a}),t.toSorted(Z)):t),()=>{p(e=>a&&e.has(a)?(e.delete(a),new U(e)):e)}},[a,g,p]),c.jsx(v,{[h]:"",ref:f,children:r})});function g(){return s.useState(new U)}function w(t){const{itemMap:n}=i(e+"CollectionConsumer",t);return n}return y.displayName=m,H(g,"useInitCollection"),H(w,"useCollection"),[{Provider:l,Slot:p,ItemSlot:y},{createCollectionScope:r,useCollection:w,useInitCollection:g}]},"createCollection"),H(X,"shallowEqual"),H(Y,"isElementPreceding"),H(Z,"sortByDocumentPosition"),H(J,"getChildListObserver");var Q=Object.defineProperty,ee=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>
1{const n=P(`Primitive.${t}`),r=s.forwardRef((e,r)=>{const{asChild:o,...i}=e,s=o?n:t;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),c.jsx(s,{...i,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function te(e,t){e&&a.flushSync(()=>e.dispatchEvent(t))}Q(te,"name",{value:"dispatchDiscreteCustomEvent",configurable:!0});var ne=Object.defineProperty;function re(e){const t=s.useRef(e);return s.useEffect(()=>{t.current=e}),s.useMemo(()=>(...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)},[])}((e,t)=>{ne(e,"name",{value:t,configurable:!0})})(re,"useCallbackRef");var oe,ie=Object.defineProperty,se=(e,t)=>ie(e,"name",{value:t,configurable:!0}),ce="dismissableLayer.update",le=s.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),ae=s.forwardRef(se(function(e,t){const{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:l,onInteractOutside:a,onDismiss:u,...f}=e,d=s.useContext(le),[m,h]=s.useState(null),v=(null==m?void 0:m.ownerDocument)??(null==globalThis?void 0:globalThis.document),[,y]=s.useState({}),g=b(t,h),w=Array.from(d.layers),[x]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),E=x?w.indexOf(x):-1,S=m?w.indexOf(m):-1,O=d.layersWithOutsidePointerEventsDisabled.size>0,R=S>=E,C=s.useRef(!1),P=pe(e=>{null==i||i(e),null==a||a(e),e.defaultPrevented||null==u||u()},{ownerDocument:v,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:C,dismissableSurfaces:d.dismissableSurfaces,shouldHandlePointerDownOutside:s.useCallback(e=>{if(!(e instanceof Node))return!1;const t=[...d.branches].some(t=>t.contains(e));return R&&!t},[d.branches,R])}),A=me(e=>{if(r&&C.current)return;const t=e.target;[...d.branches].some(e=>e.contains(t))||(null==l||l(e),null==a||a(e),e.defaultPrevented||null==u||u())},v),D=!!m&&S===w.length-1,L=re(e=>{"Escape"===e.key&&(null==o||o(e),!e.defaultPrevented&&u&&(e.preventDefault(),u()))});return s.useEffect(()=>{if(D)return v.addEventListener("keydown",L,{capture:!0}),()=>v.removeEventListener("keydown",L,{capture:!0})},[v,D,L]),s.useEffect(()=>{if(m)return n&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(oe=v.body.style.pointerEvents,v.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(m)),d.layers.add(m),he(),()=>{n&&(d.layersWithOutsidePointerEventsDisabled.delete(m),0===d.layersWithOutsidePointerEventsDisabled.size&&(v.body.style.pointerEvents=oe))}},[m,v,n,d]),s.useEffect(()=>()=>{m&&(d.layers.delete(m),d.layersWithOutsidePointerEventsDisabled.delete(m),he())},[m,d]),s.useEffect(()=>{const e=se(()=>y({}),"handleUpdate");return document.addEventListener(ce,e),()=>document.removeEventListener(ce,e)},[]),c.jsx(ee.div,{...f,ref:g,style:{pointerEvents:O?R?"auto":"none":void 0,...e.style},onFocusCapture:p(e.onFocusCapture,A.onFocusCapture),onBlurCapture:p(e.onBlurCapture,A.onBlurCapture),onPointerDownCapture:p(e.onPointerDownCapture,P.onPointerDownCapture)})},"DismissableLayer")),ue=s.forwardRef(se(function(e,t){const n=s.useContext(le),r=s.useRef(null),o=b(t,r);return s.useEffect(()=>{const e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),c.jsx(ee.div,{...e,ref:o})},"DismissableLayerBranch"));function fe(){const e=s.useContext(le),[t,n]=s.useState(null);return s.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}se(fe,"useDismissableLayerSurface");var de=se(()=>!0,"IS_TRUE");function pe(e,t){const{ownerDocument:n=(null==globalThis?void 0:globalThis.document),deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:i,shouldHandlePointerDownOutside:c=de}=t,l=re(e),a=s.useRef(!1),u=s.useRef(!1),f=s.useRef(new Map),d=s.useRef(()=>{});return s.useEffect(()=>{function e(){u.current=!1,o.current=!1,f.current.clear()}function t(){return Array.from(f.current.values()).some(Boolean)}function s(e){if(!u.current)return;const t=e.target;t instanceof Node&&[...i].some(e=>e.contains(t))||f.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{u.current&&d.current()},0)}function p(e){u.current&&f.current.set(e.type,!1)}se(e,"resetOutsideInteraction"),se(t,"isOutsideInteractionIntercepted"),se(s,"handleInteractionCapture"),se(p,"handleInteractionBubble");const m=se(i=>{if(i.target&&!a.current){let s=function(){n.removeEventListener("click",d.current);const r=t();e(),r||ve("dismissableLayer.pointerDownOutside",l,p,{discrete:!0})};if(se(s,"handleAndDispatchPointerDownOutsideEvent"),!c(i.target))return n.removeEventListener("click",d.current),e(
vendor: 11,982 bytes, line 1
1),void(a.current=!1);const p={originalEvent:i};u.current=!0,o.current=r&&0===i.button,f.current.clear(),r&&0===i.button?(n.removeEventListener("click",d.current),d.current=s,n.addEventListener("click",d.current,{once:!0})):s()}else n.removeEventListener("click",d.current),e();a.current=!1},"handlePointerDown"),h=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const r of h)n.addEventListener(r,s,!0),n.addEventListener(r,p);const v=window.setTimeout(()=>{n.addEventListener("pointerdown",m)},0);return()=>{window.clearTimeout(v),n.removeEventListener("pointerdown",m),n.removeEventListener("click",d.current);for(const e of h)n.removeEventListener(e,s,!0),n.removeEventListener(e,p)}},[n,l,r,o,i,c]),{onPointerDownCapture:se(()=>a.current=!0,"onPointerDownCapture")}}function me(e,t=(null==globalThis?void 0:globalThis.document)){const n=re(e),r=s.useRef(!1);return s.useEffect(()=>{const e=se(e=>{if(e.target&&!r.current){ve("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})}},"handleFocus");return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:se(()=>r.current=!0,"onFocusCapture"),onBlurCapture:se(()=>r.current=!1,"onBlurCapture")}}function he(){const e=new CustomEvent(ce);document.dispatchEvent(e)}function ve(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?te(o,i):o.dispatchEvent(i)}se(pe,"usePointerDownOutside"),se(me,"useFocusOutside"),se(he,"dispatchUpdate"),se(ve,"handleAndDispatchCustomEvent");var ye=ae,ge=ue,we=(null==globalThis?void 0:globalThis.document)?s.useLayoutEffect:()=>{},be=Object.defineProperty,xe=(e,t)=>be(e,"name",{value:t,configurable:!0}),Ee=s.forwardRef(xe(function(e,t){var n;const{container:r,...o}=e,[i,l]=s.useState(!1);we(()=>l(!0),[]);const u=r||i&&(null==(n=null==globalThis?void 0:globalThis.document)?void 0:n.body);return u?a.createPortal(c.jsx(ee.div,{...o,ref:t}),u):null},"Portal")),Se=Object.defineProperty,Oe=(e,t)=>Se(e,"name",{value:t,configurable:!0});function Re(e,t){return s.useReducer((e,n)=>t[e][n]??e,e)}Oe(Re,"useStateMachine");var Ce=Oe(e=>{const{present:t,children:n}=e,r=Pe(t),o="function"==typeof n?n({present:r.isPresent}):s.Children.only(n),i=De(r.ref,Te(o));return"function"==typeof n||r.isPresent?s.cloneElement(o,{ref:i}):null},"Presence");function Pe(e){const[t,n]=s.useState(),r=s.useRef(null),o=s.useRef(e),i=s.useRef("none"),c=s.useRef(void 0),l=e?"mounted":"unmounted",[a,u]=Re(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return s.useEffect(()=>{"mounted"===a?(i.current=c.current??Le(r.current),c.current=void 0):i.current="none"},[a]),we(()=>{const t=r.current,n=o.current;if(n!==e){const r=i.current,s=Le(t);if(e)c.current=s,u("MOUNT");else if("none"===s||"none"===(null==t?void 0:t.display))u("UNMOUNT");else{u(n&&r!==s?"ANIMATION_OUT":"UNMOUNT")}o.current=e}},[e,u]),we(()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,s=Oe(i=>{const s=Le(r.current).includes(CSS.escape(i.animationName));if(i.target===t&&s&&(u("ANIMATION_END"),!o.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},"handleAnimationEnd"),c=Oe(e=>{e.target===t&&(i.current=Le(r.current))},"handleAnimationStart");return t.addEventListener("animationstart",c),t.addEventListener("animationcancel",s),t.addEventListener("animationend",s),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",c),t.removeEventListener("animationcancel",s),t.removeEventListener("animationend",s)}}u("ANIMATION_END")},[t,u]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:s.useCallback(e=>{if(e){const t=getComputedStyle(e);r.current=t,c.current=Le(t)}else r.current=null;n(e)},[])}}function Ae(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function De(...e){const t=s.useRef(e);return t.current=e,s.useCallback(e=>{const n=t.current;let r=!1;const o=n.map(t=>{const n=Ae(t,e);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let e=0;e<o.length;e++){const t=o[e];"function"==typeof t?t():Ae(n[e],null)}}},[])}function Le(e){return(null==e?void 0:e.animationName)||"none"}function Te(e){var t,n;let r=null==(t=Object.getOwnPropertyDescriptor(e.props,"ref"))?void 0:t.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?e.ref:(r=null==(n=Object.getOwnPropertyDescriptor(e,"ref"))?void 0:n.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?e.props.ref:e.props.ref||e.ref)}Oe(Pe,"usePresence"),Oe(Ae,"setRef"),Oe(De,"useStableComposedRefs"),Oe(Le,"getAnimationName"),Oe(Te,"getElementRef");var Ne=Object.defineProperty,Me=l[" useEffectEvent ".trim().toString()],je=l[" useInsertionEffect ".trim().toString()];function Ie(e){if("function"==typeof Me)return Me(e);const t=s.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return"function"==typeof je?je(()=>{t.current=e}):we(()=>{t.current=e}),s.useMemo(()=>(...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)},[])}((e,t)=>{Ne(e,"name",{value:t,configurable:!0})})(Ie,"useEffectEvent");var ke=Object.defineProperty,Fe=(e,t)=>ke(e,"name",{value:t,configurable:!0}),We=l[" useInsertionEffect ".trim().toString()]||we;function _e({prop:e,defaultProp:t,onChange:n=Fe(()=>{},"onChange"),caller:r}){const[o,i,c]=ze({defaultProp:t,onChange:n}),l=void 0!==e;return[l?e:o,s.useCallback(t=>{var n;if(l){const r=$e(t)?t(e):t;r!==e&&(null==(n=c.current)||n.call(c,r))}else i(t)},[l,e,i,c])]}function ze({defaultProp:e,onChange:t}){const[n,r]=s.useState(e),o=s.useRef(n),i=s.useRef(t);return We(()=>{i.current=t},[t]),s.useEffect(()=>{var e;o.current!==n&&(null==(e=i.current)||e.call(i,n),o.current=n)},[n,o]),[n,r,i]}function $e(e){return"function"==typeof e}Fe(_e,"useControllableState"),Fe(ze,"useUncontrolledState"),Fe($e,"isFunction");var He=Symbol("RADIX:SYNC_STATE");Fe(function(e,t,n,r){const{prop:o,defaultProp:i,onChange:c,caller:l}=t,a=void 0!==o,u=Ie(c),f=[{...n,state:i}];r&&f.push(r);const[d,p]=s.useReducer((t,n)=>{if(n.type===He)return{...t,state:n.state};const r=e(t,n);return a&&!Object.is(r.state,t.state)&&u(r.state),r},...f),m=d.state,h=s.useRef(m);s.useEffect(()=>{h.current!==m&&(h.current=m,a||u(m))},[m,h,a]);const v=s.useMemo(()=>void 0!==o?{...d,state:o}:d,[d,o]);return s.useEffect(()=>{a&&!Object.is(o,d.state)&&p({type:He,state:o})},[o,d.state,a]),[v,p]},"useControllableStateReducer");var Be=Object.defineProperty,Ve=l[" useId ".trim().toString()]||(()=>{}),Ue=0;function Ke(e){const[t,n]=s.useState(Ve());return we(()=>{e||n(e=>e??String(Ue++))},[e]),e||(t?`radix-${t}`:"")}((e,t)=>{Be(e,"name",{value:t,configurable:!0})})(Ke,"useId");const qe=["top","right","bottom","left"],Ge=Math.min,Xe=Math.max,Ye=Math.round,Ze=Math.floor,Je=e=>({x:e,y:e}),Qe={left:"right",right:"left",bottom:"top",top:"bottom"};function et(e,t,n){return Xe(e,Ge(t,n))}function tt(e,t){return"function"==typeof e?e(t):e}function nt(e){return e.split("-")[0]}function rt(e){return e.split("-")[1]}function ot(e){return"x"===e?"y":"x"}function it(e){return"y"===e?"height":"width"}function st(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function ct(e){return ot(st(e))}function lt(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const at=["left","right"],ut=["right","left"],ft=["top","bottom"],dt=["bottom","top"];function pt(e,t,n,r){const o=rt(e);let i=function(e,t,n){switch(e){case"top":case"bottom":return n?t?ut:at:t?at:ut;case"left":case"right":return t?ft:dt;default:return[]}}(nt(e),"start"===n,r);return o&&(i=i.map(e=>e+"-"+o),t&&(i=i.concat(i.map(lt)))),i}function mt(e){const t=nt(e);return Qe[t]+e.slice(t.length)}function ht(e){return"number"!=typeof e?function(e){var t,n,r,o;return{top:null!=(t=e.top)?t:0,right:null!=(n=e.right)?n:0,bottom:null!=(r=e.bottom)?r:0,left:null!=(o=e.left)?o:0}}(e):{top:e,right:e,bottom:e,left:e}}function vt(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function yt(e,t,n){let{reference:r,floating:o}=e;const i=st(t),s=ct(t),c=it(s),l=nt(t),a="y"===i,u=r.x+r.width/2-o.width/2,f=r.y+r.height/2-o.height/2,d=r[c]/2-o[c]/2;let p;switch(l){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:f};break;case"left":p={x:r.x-o.width,y:f};break;default:p={x:r.x,y:r.y}}const m=rt(t);return m&&(p[s]+=d*("end"===m?1:-1)*(n&&a?-1:1)),p}async function gt(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:s,elements:c,strategy:l}=e,{boundary:a="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=tt(t,e),m=ht(p),h=c[d?"floating"===f?"reference":"floating":f],v=vt(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(h)))||n?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(c.floating)),boundary:a,rootBoundary:u,strategy:l})),y="floating"===f?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,g=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c.floating)),w=await(null==i.isElement?void 0:i.isElement(g))&&await(null==i.getScale?void 0:i.getScale(g))||{x:1,y:1},b=vt(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:g,strategy:l}):y);return{top:(v.top-b.top+m.top)/w.y,bottom:(b.bottom-v.bottom+m.bottom)/w.y,left:(v.left-b.left+m.left)/w.x,right:(b.right-v.right+m.right)/w.x}}function wt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function bt(e){return qe.some(t=>e[t]>=0)}const xt=new Set(["left","top"]);function Et(){return"undefined"!=typeof window}function St(e){return Ct(e)?(e.nodeName||"").toLowerCase():"#document"}function Ot(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Rt(e){var t;return null==(t=(Ct(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Ct(e){return!!Et()&&(e instanceof Node||e instanceof Ot(e).Node)}function Pt(e){return!!Et()&&(e instanceof Element||e instanceof Ot(e).Element)}function At(e){return!!Et()&&(e instanceof HTMLElement||e instanceof Ot(e).HTMLElement)}function Dt(e){return!(!Et()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Ot(e).ShadowRoot)}function Lt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=zt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function Tt(e){return/^(table|td|th)$/.test(St(e))}function Nt(e){try{if(e.matches(":popover-open"))return!0}catch(t){}try{return e.matches(":modal")}catch(t){return!1}}const Mt=/transform|translate|scale|rotate|perspective|filter/,jt=/paint|layout|strict|content/,It=e=>!!e&&"none"!==e;let kt;function Ft(e){const t=Pt(e)?zt(e):e;return It(t.transform)||It(t.translate)||It(t.scale)||It(t.rotate)||It(t.perspective)||!Wt()&&(It(t.backdropFilter)||It(t.filter))||Mt.test(t.willChange||"")||jt.test(t.contain||"")}function Wt(){return null==kt&&(kt="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),kt}function _t(e){return/^(html|body|#document)$/.test(St(e))}function zt(e){return Ot(e).getComputedStyle(e)}function $t(e){return Pt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ht(e){if("html"===St(e))return e;const t=e.assignedSlot||e.parentNode||Dt(e)&&e.host||Rt(e);return Dt(t)?t.host:t}function Bt(e){const t=Ht(e);return _t(t)?(e.ownerDocument||e).body:At(t)&&Lt(t)?t:Bt(t)}function Vt(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=Bt(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),s=Ot(o);if(i){const e=Ut(s);
vendor: 4,825 bytes, line 1
1return t.concat(s,s.visualViewport||[],Lt(o)?o:[],e&&n?Vt(e):[])}return t.concat(o,Vt(o,[],n))}function Ut(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Kt(e){const t=zt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=At(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,c=Ye(n)!==i||Ye(r)!==s;return c&&(n=i,r=s),{width:n,height:r,$:c}}function qt(e){return Pt(e)?e:e.contextElement}function Gt(e){const t=qt(e);if(!At(t))return Je(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Kt(t);let s=(i?Ye(n.width):n.width)/r,c=(i?Ye(n.height):n.height)/o;return s&&Number.isFinite(s)||(s=1),c&&Number.isFinite(c)||(c=1),{x:s,y:c}}const Xt=Je(0);function Yt(e){const t=Ot(e);return Wt()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Xt}function Zt(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=qt(e);let s=Je(1);t&&(r?Pt(r)&&(s=Gt(r)):s=Gt(e));const c=function(e,t,n){return void 0===t&&(t=!1),!!n&&t&&n===Ot(e)}(i,n,r)?Yt(i):Je(0);let l=(o.left+c.x)/s.x,a=(o.top+c.y)/s.y,u=o.width/s.x,f=o.height/s.y;if(i&&r){const e=Ot(i),t=Pt(r)?Ot(r):r;let n=e,o=Ut(n);for(;o&&t!==n;){const e=Gt(o),t=o.getBoundingClientRect(),r=zt(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,a*=e.y,u*=e.x,f*=e.y,l+=i,a+=s,n=Ot(o),o=Ut(n)}}return vt({width:u,height:f,x:l,y:a})}function Jt(e,t){const n=$t(e).scrollLeft;return t?t.left+n:Zt(Rt(e)).left+n}function Qt(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Jt(e,n),y:n.top+t.scrollTop}}function en(e,t,n){let r;if("viewport"===t||"layoutViewport"===t)r=function(e,t,n){void 0===n&&(n="viewport");const r="layoutViewport"===n,o=Ot(e),i=Rt(e),s=o.visualViewport;let c=i.clientWidth,l=i.clientHeight,a=0,u=0;if(s){const e=!Wt()||"fixed"===t;r?e||(a=-s.offsetLeft,u=-s.offsetTop):(c=s.width,l=s.height,e&&(a=s.offsetLeft,u=s.offsetTop))}if(Jt(i)<=0){const e=i.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(i.clientWidth-t.clientWidth-r),s="stable both-edges"===getComputedStyle(i).scrollbarGutter?o/2:o;s<=25&&(c-=s)}return{width:c,height:l,x:a,y:u}}(e,n,t);else if("document"===t)r=function(e){const t=$t(e),n=e.ownerDocument.body,r=Xe(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=Xe(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-t.scrollLeft+Jt(e);const s=-t.scrollTop;return"rtl"===zt(n).direction&&(i+=Xe(e.clientWidth,n.clientWidth)-r),{width:r,height:o,x:i,y:s}}(Rt(e));else if(Pt(t))r=function(e,t){const n=Zt(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Gt(e);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Yt(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return vt(r)}function tn(e,t,n){const r=At(t),o=Rt(t),i="fixed"===n,s=Zt(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const l=Je(0);if((r||!i)&&(("body"!==St(t)||Lt(o))&&(c=$t(t)),r)){const e=Zt(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}!r&&o&&(l.x=Jt(o));const a=!o||r||i?Je(0):Qt(o,c);return{x:s.left+c.scrollLeft-l.x-a.x,y:s.top+c.scrollTop-l.y-a.y,width:s.width,height:s.height}}function nn(e){return"static"===zt(e).position}function rn(e,t){if(!At(e)||"fixed"===zt(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Rt(e)===n&&(n=n.ownerDocument.body),n}function on(e,t){const n=Ot(e);if(Nt(e))return n;if(!At(e)){let t=Ht(e);for(;t&&!_t(t);){if(Pt(t)&&!nn(t))return t;t=Ht(t)}return n}let r=rn(e,t);for(;r&&Tt(r)&&nn(r);)r=rn(r,t);return r&&_t(r)&&nn(r)&&!Ft(r)?n:r||function(e){let t=Ht(e);for(;At(t)&&!_t(t);){if(Ft(t))return t;if(Nt(t))return null;t=Ht(t)}return null}(e)||n}const sn={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,s=Rt(r),c=!!t&&Nt(t.floating);if(r===s||c&&i)return n;let l={scrollLeft:0,scrollTop:0},a=Je(1);const u=Je(0),f=At(r);if((f||!i)&&(("body"!==St(r)||Lt(s))&&(l=$t(r)),f)){const e=Zt(r);a=Gt(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const d=!s||f||i?Je(0):Qt(s,l);return{width:n.width*a.x,height:n.height*a.y,x:n.x*a.x-l.scrollLeft*a.x+u.x+d.x,y:n.y*a.y-l.scrollTop*a.y+u.y+d.y}},getDocumentElement:Rt,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?Nt(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Vt(e,[],!1).filter(e=>Pt(e)&&"body"!==St(e)),o=null;const i="fixed"===zt(e).position;let s=i?Ht(e):e;for(;Pt(s)&&!_t(s);){const e=zt(s),t=Ft(s),n=o?o.position:i?"fixed":"";t||"fixed"!==n&&("absolute"!==n||"static"!==e.position)?o=e:r=r.filter(e=>e!==s),s=Ht(s)}return t.set(e,r),r}
vendor: 4,975 bytes, line 1
1(t,this._c):[].concat(n),r],s=en(t,i[0],o);let c=s.top,l=s.right,a=s.bottom,u=s.left;for(let f=1;f<i.length;f++){const e=en(t,i[f],o);c=Xe(e.top,c),l=Ge(e.right,l),a=Ge(e.bottom,a),u=Xe(e.left,u)}return{width:l-u,height:a-c,x:u,y:c}},getOffsetParent:on,getElementRects:async function(e){const t=this.getOffsetParent||on,n=this.getDimensions,r=await n(e.floating);return{reference:tn(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){const{width:t,height:n}=Kt(e);return{width:t,height:n}},getScale:Gt,isElement:Pt,isRTL:function(e){return"rtl"===zt(e).direction}};function cn(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ln(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,a=qt(e),u=o||i?[...a?Vt(a):[],...t?Vt(t):[]]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n),i&&e.addEventListener("resize",n)});const f=a&&c?function(e,t,n){let r,o=null;const i=Rt(e);function s(){var e;clearTimeout(r),null==(e=o)||e.disconnect(),o=null}function c(n,l){void 0===n&&(n=!1),void 0===l&&(l=1),s();const a=e.getBoundingClientRect(),{left:u,top:f,width:d,height:p}=a;if(n||t(),!d||!p)return;const m={rootMargin:-Ze(f)+"px "+-Ze(i.clientWidth-(u+d))+"px "+-Ze(i.clientHeight-(f+p))+"px "+-Ze(u)+"px",threshold:Xe(0,Ge(1,l))||1};let h=!0;function v(t){const n=t[0].intersectionRatio;if(!cn(a,e.getBoundingClientRect()))return c();if(n!==l){if(!h)return c();n?c(!1,n):r=setTimeout(()=>{c(!1,1e-7)},1e3)}h=!1}try{o=new IntersectionObserver(v,{...m,root:i.ownerDocument})}catch(y){o=new IntersectionObserver(v,m)}o.observe(e)}const l=Ot(e),a=()=>c(n);return l.addEventListener("resize",a),c(!0),()=>{l.removeEventListener("resize",a),s()}}(a,n,i):null;let d,p=-1,m=null;s&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===a&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),a&&!l&&m.observe(a),t&&m.observe(t));let h=l?Zt(e):null;return l&&function t(){const r=Zt(e);h&&!cn(h,r)&&n();h=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)}),null==f||f(),null==(e=m)||e.disconnect(),m=null,l&&cancelAnimationFrame(d)}}const an=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:c}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),s=nt(n),c=rt(n),l="y"===st(n),a=xt.has(s)?-1:1,u=i&&l?-1:1,f=tt(t,e);let{mainAxis:d,crossAxis:p,alignmentAxis:m}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return c&&"number"==typeof m&&(p="end"===c?-1*m:m),l?{x:p*u,y:d*a}:{x:d*a,y:p*u}}(t,e);return s===(null==(n=c.offset)?void 0:n.placement)&&null!=(r=c.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},un=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:i}=t,{mainAxis:s=!0,crossAxis:c=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...a}=tt(e,t),u={x:n,y:r},f=await i.detectOverflow(t,a),d=st(o),p=ot(d);let m=u[p],h=u[d];const v=(e,t)=>et(t+f["y"===e?"top":"left"],t,t-f["y"===e?"bottom":"right"]);s&&(m=v(p,m)),c&&(h=v(d,h));const y=l.fn({...t,[p]:m,[d]:h});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[p]:s,[d]:c}}}}}},fn=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:c,platform:l,elements:a}=t,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:d,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...v}=tt(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const y=nt(o),g=st(c),w=nt(c)===c,b=await(null==l.isRTL?void 0:l.isRTL(a.floating)),x=d||(w||!h?[mt(c)]:function(e){const t=mt(e);return[lt(e),t,lt(t)]}(c)),E="none"!==m;!d&&E&&x.push(...pt(c,h,m,b));const S=[c,...x],O=await l.detectOverflow(t,v),R=[];let C=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&R.push(O[y]),f){const e=function(e,t,n){void 0===n&&(n=!1);const r=rt(e),o=ct(e),i=it(o);let s="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=mt(s)),[s,mt(s)]}(o,s,b);R.push(O[e[0]],O[e[1]])}if(C=[...C,{placement:o,overflows:R}],!R.every(e=>e<=0)){var P,A;const e=((null==(P=i.flip)?void 0:P.index)||0)+1,t=S[e];if(t){if(!("alignment"===f&&g!==st(t))||C.every(e=>st(e.placement)!==g||e.overflows[0]>0))return{data:{index:e,overflows:C},reset:{placement:t}}}let n=null==(A=C.filter(e=>e.overflows[0]<=0).sort((e,t)=>
vendor: 8,375 bytes, line 1
1e.overflows[1]-t.overflows[1])[0])?void 0:A.placement;if(!n)switch(p){case"bestFit":{var D;const e=null==(D=C.filter(e=>{if(E){const t=st(e.placement);return t===g||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:D[0];e&&(n=e);break}case"initialPlacement":n=c}if(o!==n)return{reset:{placement:n}}}return{}}}},dn=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:s=()=>{},...c}=tt(e,t),l=await o.detectOverflow(t,c),a=nt(n),u=rt(n),f="y"===st(n),{width:d,height:p}=r.floating;let m,h;"top"===a||"bottom"===a?(m=a,h=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(h=a,m="end"===u?"top":"bottom");const v=p-l.top-l.bottom,y=d-l.left-l.right,g=Ge(p-l[m],v),w=Ge(d-l[h],y),b=t.middlewareData.shift,x=!b;let E=g,S=w;null!=b&&b.enabled.x&&(S=y),null!=b&&b.enabled.y&&(E=v),x&&!u&&(f?S=d-2*Xe(l.left,l.right):E=p-2*Xe(l.top,l.bottom)),await s({...t,availableWidth:S,availableHeight:E});const O=await o.getDimensions(i.floating);return d!==O.width||p!==O.height?{reset:{rects:!0}}:{}}}},pn=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...i}=tt(e,t);switch(o){case"referenceHidden":{const e=wt(await r.detectOverflow(t,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:bt(e)}}}case"escaped":{const e=wt(await r.detectOverflow(t,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:bt(e)}}}default:return{}}}}},mn=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:c,middlewareData:l}=t,{element:a,padding:u=0}=tt(e,t)||{};if(null==a)return{};const f=ht(u),d={x:n,y:r},p=ct(o),m=it(p),h=await s.getDimensions(a),v="y"===p,y=v?"top":"left",g=v?"bottom":"right",w=v?"clientHeight":"clientWidth",b=i.reference[m]+i.reference[p]-d[p]-i.floating[m],x=d[p]-i.reference[p],E=await(null==s.getOffsetParent?void 0:s.getOffsetParent(a));let S=E?E[w]:0;S&&await(null==s.isElement?void 0:s.isElement(E))||(S=c.floating[w]||i.floating[m]);const O=b/2-x/2,R=S/2-h[m]/2-1,C=Ge(f[y],R),P=Ge(f[g],R),A=S-h[m]-P,D=S/2-h[m]/2+O,L=et(C,D,A),T=!l.arrow&&null!=rt(o)&&D!==L&&i.reference[m]/2-(D<C?C:P)-h[m]/2<0,N=T?D<C?D-C:D-A:0;return{[p]:d[p]+N,data:{[p]:L,centerOffset:D-L-N,...T&&{alignmentOffset:N}},reset:T}}}),hn=function(e){return void 0===e&&(e={}),{options:e,fn(t){var n,r;const{x:o,y:i,placement:s,rects:c,middlewareData:l}=t,{offset:a=0,mainAxis:u=!0,crossAxis:f=!0}=tt(e,t),d={x:o,y:i},p=st(s),m=ot(p);let h=d[m],v=d[p];const y=tt(a,t),g="number"==typeof y?{mainAxis:y,crossAxis:0}:{mainAxis:null!=(n=y.mainAxis)?n:0,crossAxis:null!=(r=y.crossAxis)?r:0};if(u){const e="y"===m?"height":"width",t=c.reference[m]-c.floating[e]+g.mainAxis,n=c.reference[m]+c.reference[e]-g.mainAxis;h<t?h=t:h>n&&(h=n)}if(f){var w,b;const e="y"===m?"width":"height",t=xt.has(nt(s)),n=c.reference[p]-c.floating[e]+(t&&(null==(w=l.offset)?void 0:w[p])||0)+(t?0:g.crossAxis),r=c.reference[p]+c.reference[e]+(t?0:(null==(b=l.offset)?void 0:b[p])||0)-(t?g.crossAxis:0);v<n?v=n:v>r&&(v=r)}return{[m]:h,[p]:v}}}},vn=(e,t,n)=>{const r=new Map,o=null!=n?n:{},i={...sn,...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,c=s.detectOverflow?s:{...s,detectOverflow:gt},l=await(null==s.isRTL?void 0:s.isRTL(t));let a=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:f}=yt(a,r,l),d=r,p=0;const m={};for(let h=0;h<i.length;h++){const n=i[h];if(!n)continue;const{name:v,fn:y}=n,{x:g,y:w,data:b,reset:x}=await y({x:u,y:f,initialPlacement:r,placement:d,strategy:o,middlewareData:m,rects:a,platform:c,elements:{reference:e,floating:t}});u=null!=g?g:u,f=null!=w?w:f,m[v]={...m[v],...b},x&&p<50&&(p++,"object"==typeof x&&(x.placement&&(d=x.placement),x.rects&&(a=!0===x.rects?await s.getElementRects({reference:e,floating:t,strategy:o}):x.rects),({x:u,y:f}=yt(a,d,l))),h=-1)}return{x:u,y:f,placement:d,strategy:o,middlewareData:m}})(e,t,{...o,platform:i})};var yn="undefined"!=typeof document?s.useLayoutEffect:function(){};function gn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!gn(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!gn(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function wn(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function bn(e,t){const n=wn(e);return Math.round(t*n)/n}function xn(e){const t=s.useRef(e);return yn(()=>{t.current=e}),t}const En=(e,t)=>{const n=an(e);return{name:n.name,fn:n.fn,options:[e,t]}},Sn=(e,t)=>{const n=un(e);return{name:n.name,fn:n.fn,options:[e,t]}},On=(e,t)=>{const n=fn(e);return{name:n.name,fn:n.fn,options:[e,t]}},Rn=(e,t)=>{const n=dn(e);return{name:n.name,fn:n.fn,options:[e,t]}},Cn=(e,t)=>{const n=pn(e);return{name:n.name,fn:n.fn,options:[e,t]}},Pn=(e,t)=>{const n=(e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&function(e){return{}.hasOwnProperty.call(e,"current")}(n)?null!=n.current?mn({element:n.current,padding:r}).fn(t):{}:n?mn({element:n,padding:r}).fn(t):{}}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}};var An=Object.defineProperty;function Dn(e){const[t,n]=s.useState(void 0);return we(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver(t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,i;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,i=t.blockSize}else o=e.offsetWidth,i=e.offsetHeight;n({width:o,height:i})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}((e,t)=>{An(e,"name",{value:t,configurable:!0})})(Dn,"useSize");var Ln=Object.defineProperty,Tn=(e,t)=>Ln(e,"name",{value:t,configurable:!0}),Nn="Popper",[Mn,jn]=S(Nn),[In,kn]=Mn(Nn),Fn=Tn(e=>{const{__scopePopper:t,children:n}=e,[r,o]=s.useState(null),[i,l]=s.useState(void 0);return c.jsx(In,{scope:t,anchor:r,onAnchorChange:o,placementState:i,setPlacementState:l,children:n})},"Popper"),Wn=s.forwardRef(Tn(function(e,t){const{__scopePopper:n,virtualRef:r,...o}=e,i=kn("PopperAnchor",n),l=s.useRef(null),a=i.onAnchorChange,u=b(t,s.useCallback(e=>{l.current=e,e&&a(e)},[a])),f=s.useRef(null);s.useEffect(()=>{if(!r)return;const e=f.current;f.current=r.current,e!==f.current&&a(f.current)});const d=i.placementState&&Un(i.placementState),p=null==d?void 0:d[0],m=null==d?void 0:d[1];return r?null:c.jsx(ee.div,{"data-radix-popper-side":p,"data-radix-popper-align":m,...o,ref:u})},"PopperAnchor")),_n="PopperContent",[zn,$n]=Mn(_n),Hn=s.forwardRef(Tn(function(e,t){var n,r,o,i,l,u,f;const{__scopePopper:d,side:p="bottom",sideOffset:m=0,align:h="center",alignOffset:v=0,arrowPadding:y=0,avoidCollisions:g=!0,collisionBoundary:w=[],collisionPadding:x=0,sticky:E="partial",hideWhenDetached:S=!1,updatePositionStrategy:O="optimized",onPlaced:R,...C}=e,P=kn(_n,d),[A,D]=s.useState(null),L=b(t,D),[T,N]=s.useState(null),M=Dn(T),j=(null==M?void 0:M.width)??0,I=(null==M?void 0:M.height)??0,k=p+("center"!==h?"-"+h:""),F="number"==typeof x?x:{top:0,right:0,bottom:0,left:0,...x},W=Array.isArray(w)?w:[w],_=W.length>0,z={padding:F,boundary:W.filter(Bn),altBoundary:_},{refs:$,floatingStyles:H,placement:B,isPositioned:V,middlewareData:U}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:c}={},transform:l=!0,whileElementsMounted:u,open:f}=e,[d,p]=s.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=s.useState(r);gn(m,r)||h(r);const[v,y]=s.useState(null),[g,w]=s.useState(null),b=s.useCallback(e=>{e!==O.current&&(O.current=e,y(e))},[]),x=s.useCallback(e=>{e!==R.current&&(R.current=e,w(e))},[]),E=i||v,S=c||g,O=s.useRef(null),R=s.useRef(null),C=s.useRef(d),P=null!=u,A=xn(u),D=xn(o),L=xn(f),T=s.useCallback(()=>
1{if(!O.current||!R.current)return;const e={placement:t,strategy:n,middleware:m};D.current&&(e.platform=D.current),vn(O.current,R.current,e).then(e=>{const t={...e,isPositioned:!1!==L.current};N.current&&!gn(C.current,t)&&(C.current=t,a.flushSync(()=>{p(t)}))})},[m,t,n,D,L]);yn(()=>{!1===f&&C.current.isPositioned&&(C.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[f]);const N=s.useRef(!1);yn(()=>(N.current=!0,()=>{N.current=!1}),[]),yn(()=>{if(E&&(O.current=E),S&&(R.current=S),E&&S){if(A.current)return A.current(E,S,T);T()}},[E,S,T,A,P]);const M=s.useMemo(()=>({reference:O,floating:R,setReference:b,setFloating:x}),[b,x]),j=s.useMemo(()=>({reference:E,floating:S}),[E,S]),I=s.useMemo(()=>{const e={position:n,left:0,top:0};if(!j.floating)return e;const t=bn(j.floating,d.x),r=bn(j.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+r+"px)",...wn(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,l,j.floating,d.x,d.y]);return s.useMemo(()=>({...d,update:T,refs:M,elements:j,floatingStyles:I}),[d,T,M,j,I])}({strategy:"fixed",placement:k,whileElementsMounted:Tn((...e)=>ln(...e,{animationFrame:"always"===O}),"whileElementsMounted"),elements:{reference:P.anchor},middleware:[En({mainAxis:m+I,alignmentAxis:v}),g&&Sn({mainAxis:!0,crossAxis:!1,limiter:"partial"===E?{fn:hn(K).fn,options:[K,q]}:void 0,...z}),g&&On({...z}),Rn({...z,apply:Tn(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:i}=t.reference,s=e.floating.style;s.setProperty("--radix-popper-available-width",`${n}px`),s.setProperty("--radix-popper-available-height",`${r}px`),s.setProperty("--radix-popper-anchor-width",`${o}px`),s.setProperty("--radix-popper-anchor-height",`${i}px`)},"apply")}),T&&Pn({element:T,padding:y}),Vn({arrowWidth:j,arrowHeight:I}),S&&Cn({strategy:"referenceHidden",...z,boundary:_?z.boundary:void 0})]});var K,q;const G=P.setPlacementState;we(()=>(G(B),()=>{G(void 0)}),[B,G]);const[X,Y]=Un(B),Z=re(R);we(()=>{V&&(null==Z||Z())},[V,Z]);const J=null==(n=U.arrow)?void 0:n.x,Q=null==(r=U.arrow)?void 0:r.y,te=0!==(null==(o=U.arrow)?void 0:o.centerOffset),[ne,oe]=s.useState();return we(()=>{A&&oe(window.getComputedStyle(A).zIndex)},[A]),c.jsx("div",{ref:$.setFloating,"data-radix-popper-content-wrapper":"",style:{...H,transform:V?H.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ne,"--radix-popper-transform-origin":[null==(i=U.transformOrigin)?void 0:i.x,null==(l=U.transformOrigin)?void 0:l.y].join(" "),...(null==(u=U.hide)?void 0:u.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:c.jsx(zn,{scope:d,placedSide:X,placedAlign:Y,onArrowChange:N,arrowX:J,arrowY:Q,shouldHideArrow:te,children:c.jsx(ee.div,{"data-side":X,"data-align":Y,...C,ref:L,style:{...C.style,animation:V?null==(f=C.style)?void 0:f.animation:"none"}})})})},"PopperContent"));function Bn(e){return null!==e}Tn(Bn,"isNotNull");var Vn=Tn(e=>({name:"transformOrigin",options:e,fn(t){var n,r,o;const{placement:i,rects:s,middlewareData:c}=t,l=0!==(null==(n=c.arrow)?void 0:n.centerOffset),a=l?0:e.arrowWidth,u=l?0:e.arrowHeight,[f,d]=Un(i),p={start:"0%",center:"50%",end:"100%"}[d],m=((null==(r=c.arrow)?void 0:r.x)??0)+a/2,h=((null==(o=c.arrow)?void 0:o.y)??0)+u/2;let v="",y="";return"bottom"===f?(v=l?p:`${m}px`,y=-u+"px"):"top"===f?(v=l?p:`${m}px`,y=`${s.floating.height+u}px`):"right"===f?(v=-u+"px",y=l?p:`${h}px`):"left"===f&&(v=`${s.floating.width+u}px`,y=l?p:`${h}px`),{data:{x:v,y:y}}}}),"transformOrigin");function Un(e){const[t,n="center"]=e.split("-");return[t,n]}Tn(Un,"getSideAndAlignFromPlacement");var Kn=Fn,qn=Wn,Gn=Hn,Xn=Object.defineProperty,Yn=s.createContext(void 0);function Zn(e){const t=s.useContext(Yn);return e||t||"ltr"}((e,t)=>{Xn(e,"name",{value:t,configurable:!0})})(Zn,"useDirection");var Jn=Object.defineProperty,Qn=(e,t)=>Jn(e,"name",{value:t,configurable:!0}),er=0,tr=null;function nr(){s.useEffect(()=>{tr||(tr={start:rr(),end:rr()});const{start:e,end:t}=tr;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),er++,()=>{1===er&&(null==tr||tr.start.remove(),null==tr||tr.end.remove(),tr=null),er=Math.max(0,er-1)}},[])}function rr(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.
vendor: 4,767 bytes, line 1
1style.position="fixed",e.style.pointerEvents="none",e}Qn(function(e){return nr(),e.children},"FocusGuards"),Qn(nr,"useFocusGuards"),Qn(rr,"createFocusGuard");var or=Object.defineProperty,ir=(e,t)=>or(e,"name",{value:t,configurable:!0}),sr="focusScope.autoFocusOnMount",cr="focusScope.autoFocusOnUnmount",lr={bubbles:!1,cancelable:!0},ar=s.forwardRef(ir(function(e,t){const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...l}=e,[a,u]=s.useState(null),f=re(o),d=re(i),p=s.useRef(null),m=b(t,u),h=s.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;s.useEffect(()=>{if(r){let e=function(e){if(h.paused||!a)return;const t=e.target;a.contains(t)?p.current=t:vr(p.current,{select:!0})},t=function(e){if(h.paused||!a)return;const t=e.relatedTarget;null!==t&&(a.contains(t)||vr(p.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&vr(a)};ir(e,"handleFocusIn"),ir(t,"handleFocusOut"),ir(n,"handleMutations"),document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return a&&r.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[r,a,h.paused]),s.useEffect(()=>{if(a){yr.add(h);const e=document.activeElement;if(!a.contains(e)){const t=new CustomEvent(sr,lr);a.addEventListener(sr,f),a.dispatchEvent(t),t.defaultPrevented||(ur(br(dr(a)),{select:!0}),document.activeElement===e&&vr(a))}return()=>{a.removeEventListener(sr,f),setTimeout(()=>{const t=new CustomEvent(cr,lr);a.addEventListener(cr,d),a.dispatchEvent(t),t.defaultPrevented||vr(e??document.body,{select:!0}),a.removeEventListener(cr,d),yr.remove(h)},0)}}},[a,f,d,h]);const v=s.useCallback(e=>{if(!n&&!r)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){const t=e.currentTarget,[r,i]=fr(t);r&&i?e.shiftKey||o!==i?e.shiftKey&&o===r&&(e.preventDefault(),n&&vr(i,{select:!0})):(e.preventDefault(),n&&vr(r,{select:!0})):o===t&&e.preventDefault()}},[n,r,h.paused]);return c.jsx(ee.div,{tabIndex:-1,...l,ref:m,onKeyDown:v})},"FocusScope"));function ur(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(vr(r,{select:t}),document.activeElement!==n)return}function fr(e){const t=dr(e);return[pr(t,e),pr(t.reverse(),e)]}function dr(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:ir(e=>{const 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},"acceptNode")});for(;n.nextNode();)t.push(n.currentNode);return t}function pr(e,t){const n="function"==typeof t.checkVisibility&&t.checkVisibility({checkVisibilityCSS:!0});for(const r of e){if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):mr(r,{upTo:t})))return r}}function mr(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function hr(e){return e instanceof HTMLInputElement&&"select"in e}function vr(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&hr(e)&&t&&e.select()}}ir(ur,"focusFirst"),ir(fr,"getTabbableEdges"),ir(dr,"getTabbableCandidates"),ir(pr,"findVisible"),ir(mr,"isHidden"),ir(hr,"isSelectableInput"),ir(vr,"focus");var yr=gr();function gr(){let e=[];return{add(t){const n=e[0];t!==n&&(null==n||n.pause()),e=wr(e,t),e.unshift(t)},remove(t){var n;e=wr(e,t),null==(n=e[0])||n.resume()}}}function wr(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}function br(e){return e.filter(e=>"A"!==e.tagName)}ir(gr,"createFocusScopesStack"),ir(wr,"arrayRemove"),ir(br,"removeLinks");var xr=Object.defineProperty,Er=(e,t)=>xr(e,"name",{value:t,configurable:!0}),Sr=!1;function Or(){const[e,t]=s.useState(Sr);return s.useEffect(()=>{Sr||(Sr=!0,t(!0))},[]),e}Er(Or,"useIsHydrated");var Rr=l[" useSyncExternalStore ".trim().toString()];function Cr(){return()=>{}}function Pr(){return Rr(Cr,()=>!0,()=>!1)}Er(Cr,"subscribe"),Er(Pr,"useIsHydratedModern");var Ar="function"==typeof Rr?Pr:Or,Dr=Object.defineProperty;function Lr(e){const t=s.useRef({value:e,previous:e});return s.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}((e,t)=>{Dr(e,"name",{value:t,configurable:!0})})(Lr,"usePrevious");export{qn as A,ge as B,Gn as C,ae as D,ar as F,ee as P,Kn as R,A as S,B as a,Zn as b,S as c,_e as d,re as e,p as f,Ke as g,Ar as h,we as i,Ce as j,Ee as k,fe as l,nr as m,P as n,jn as o,Lr as p,Dn as q,te as r,ye as s,L as t,b as u};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.