@theroutingcompany/components 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +243 -7
- package/dist/trc-components.es.js +1215 -1209
- package/dist/trc-components.es.js.map +1 -1
- package/dist/trc-components.umd.js +163 -158
- package/dist/trc-components.umd.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +11 -6
- package/types/components/Button/Button.d.ts +5 -33
- package/types/components/Fieldset/Fieldset.d.ts +14 -1
- package/types/components/FileUpload/FileUpload.d.ts +13 -0
- package/types/components/Flex.d.ts +0 -0
- package/types/components/IconButton/IconButton.d.ts +13 -3
- package/types/components/Input/TextInput/TextInput.d.ts +3 -3
- package/types/components/Paginator/Paginator.d.ts +6 -34
- package/types/components/Popover/Popover.d.ts +3 -2
- package/types/components/ProgressBar/ProgressBar.d.ts +7 -0
- package/types/components/Table/Table.d.ts +1 -3
- package/types/components/Tabs/Tabs.d.ts +7 -0
- package/types/components/Text/Text.d.ts +1 -0
- package/types/components/Title/Title.d.ts +3 -4
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
(function(R,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("react"),require("react-dom"),require("styled-components"),require("react-is"),require("@material-ui/icons")):typeof define=="function"&&define.amd?define(["exports","react","react-dom","styled-components","react-is","@material-ui/icons"],l):(R=typeof globalThis<"u"?globalThis:R||self,l(R["trc-components"]={},R.React,R.ReactDOM,R.styled,R.ReactIs,R.icons))})(this,function(R,l,ut,I,$t,$e){"use strict";function oa(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const W=oa(l),ia=oa(ut);function
|
|
1
|
+
(function(R,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("react"),require("react-dom"),require("styled-components"),require("react-is"),require("@material-ui/icons")):typeof define=="function"&&define.amd?define(["exports","react","react-dom","styled-components","react-is","@material-ui/icons"],l):(R=typeof globalThis<"u"?globalThis:R||self,l(R["trc-components"]={},R.React,R.ReactDOM,R.styled,R.ReactIs,R.icons))})(this,function(R,l,ut,I,$t,$e){"use strict";function oa(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const W=oa(l),ia=oa(ut);function Lp(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){if(this instanceof n){var o=[null];o.push.apply(o,arguments);var i=Function.bind.apply(t,o);return new i}return t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),r}var vr={},Fp={get exports(){return vr},set exports(e){vr=e}},xt={};/** @license React v16.14.0
|
|
2
2
|
* react-jsx-runtime.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
5
5
|
*
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/var aa;function
|
|
8
|
+
*/var aa;function Rp(){if(aa)return xt;aa=1;var e=l,t=60103;if(xt.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var r=Symbol.for;t=r("react.element"),xt.Fragment=r("react.fragment")}var n=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o=Object.prototype.hasOwnProperty,i={key:!0,ref:!0,__self:!0,__source:!0};function a(s,c,d){var f,p={},b=null,h=null;d!==void 0&&(b=""+d),c.key!==void 0&&(b=""+c.key),c.ref!==void 0&&(h=c.ref);for(f in c)o.call(c,f)&&!i.hasOwnProperty(f)&&(p[f]=c[f]);if(s&&s.defaultProps)for(f in c=s.defaultProps,c)p[f]===void 0&&(p[f]=c[f]);return{$$typeof:t,type:s,key:b,ref:h,props:p,_owner:n.current}}return xt.jsx=a,xt.jsxs=a,xt}var En={};/** @license React v16.14.0
|
|
9
9
|
* react-jsx-runtime.development.js
|
|
10
10
|
*
|
|
11
11
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
12
12
|
*
|
|
13
13
|
* This source code is licensed under the MIT license found in the
|
|
14
14
|
* LICENSE file in the root directory of this source tree.
|
|
15
|
-
*/var sa;function
|
|
15
|
+
*/var sa;function zp(){return sa||(sa=1,function(e){process.env.NODE_ENV!=="production"&&function(){var t=l,r=60103,n=60106;e.Fragment=60107;var o=60108,i=60114,a=60109,s=60110,c=60112,d=60113,f=60120,p=60115,b=60116,h=60121,g=60122,m=60117,_=60129,$=60131;if(typeof Symbol=="function"&&Symbol.for){var y=Symbol.for;r=y("react.element"),n=y("react.portal"),e.Fragment=y("react.fragment"),o=y("react.strict_mode"),i=y("react.profiler"),a=y("react.provider"),s=y("react.context"),c=y("react.forward_ref"),d=y("react.suspense"),f=y("react.suspense_list"),p=y("react.memo"),b=y("react.lazy"),h=y("react.block"),g=y("react.server.block"),m=y("react.fundamental"),y("react.scope"),y("react.opaque.id"),_=y("react.debug_trace_mode"),y("react.offscreen"),$=y("react.legacy_hidden")}var E=typeof Symbol=="function"&&Symbol.iterator,v="@@iterator";function A(x){if(x===null||typeof x!="object")return null;var z=E&&x[E]||x[v];return typeof z=="function"?z:null}var L=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function T(x){{for(var z=arguments.length,U=new Array(z>1?z-1:0),ie=1;ie<z;ie++)U[ie-1]=arguments[ie];M("error",x,U)}}function M(x,z,U){{var ie=L.ReactDebugCurrentFrame,he="";if(fe){var me=Q(fe.type),ue=fe._owner;he+=q(me,fe._source,ue&&Q(ue.type))}he+=ie.getStackAddendum(),he!==""&&(z+="%s",U=U.concat([he]));var ae=U.map(function(Ee){return""+Ee});ae.unshift("Warning: "+z),Function.prototype.apply.call(console[x],console,ae)}}var F=!1;function G(x){return!!(typeof x=="string"||typeof x=="function"||x===e.Fragment||x===i||x===_||x===o||x===d||x===f||x===$||F||typeof x=="object"&&x!==null&&(x.$$typeof===b||x.$$typeof===p||x.$$typeof===a||x.$$typeof===s||x.$$typeof===c||x.$$typeof===m||x.$$typeof===h||x[0]===g))}var S=/^(.*)[\\\/]/;function q(x,z,U){var ie="";if(z){var he=z.fileName,me=he.replace(S,"");if(/^index\./.test(me)){var ue=he.match(S);if(ue){var ae=ue[1];if(ae){var Ee=ae.replace(S,"");me=Ee+"/"+me}}}ie=" (at "+me+":"+z.lineNumber+")"}else U&&(ie=" (created by "+U+")");return`
|
|
16
16
|
in `+(x||"Unknown")+ie}var D=1;function P(x){return x._status===D?x._result:null}function ee(x,z,U){var ie=z.displayName||z.name||"";return x.displayName||(ie!==""?U+"("+ie+")":U)}function Q(x){if(x==null)return null;if(typeof x.tag=="number"&&T("Received an unexpected object in getComponentName(). This is likely a bug in React. Please file an issue."),typeof x=="function")return x.displayName||x.name||null;if(typeof x=="string")return x;switch(x){case e.Fragment:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case d:return"Suspense";case f:return"SuspenseList"}if(typeof x=="object")switch(x.$$typeof){case s:return"Context.Consumer";case a:return"Context.Provider";case c:return ee(x,x.render,"ForwardRef");case p:return Q(x.type);case h:return Q(x.render);case b:{var z=x,U=P(z);if(U)return Q(U);break}}return null}var de={};L.ReactDebugCurrentFrame;var fe=null;function J(x){fe=x}function w(x,z,U,ie,he){{var me=Function.call.bind(Object.prototype.hasOwnProperty);for(var ue in x)if(me(x,ue)){var ae=void 0;try{if(typeof x[ue]!="function"){var Ee=Error((ie||"React class")+": "+U+" type `"+ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof x[ue]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ee.name="Invariant Violation",Ee}ae=x[ue](z,ue,ie,U,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(We){ae=We}ae&&!(ae instanceof Error)&&(J(he),T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ie||"React class",U,ue,typeof ae),J(null)),ae instanceof Error&&!(ae.message in de)&&(de[ae.message]=!0,J(he),T("Failed %s type: %s",U,ae.message),J(null))}}}var N=L.ReactCurrentOwner,B=Object.prototype.hasOwnProperty,j={key:!0,ref:!0,__self:!0,__source:!0},V,K,Y;Y={};function X(x){if(B.call(x,"ref")){var z=Object.getOwnPropertyDescriptor(x,"ref").get;if(z&&z.isReactWarning)return!1}return x.ref!==void 0}function Z(x){if(B.call(x,"key")){var z=Object.getOwnPropertyDescriptor(x,"key").get;if(z&&z.isReactWarning)return!1}return x.key!==void 0}function oe(x,z){if(typeof x.ref=="string"&&N.current&&z&&N.current.stateNode!==z){var U=Q(N.current.type);Y[U]||(T('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',Q(N.current.type),x.ref),Y[U]=!0)}}function ne(x,z){{var U=function(){V||(V=!0,T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",z))};U.isReactWarning=!0,Object.defineProperty(x,"key",{get:U,configurable:!0})}}function ge(x,z){{var U=function(){K||(K=!0,T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",z))};U.isReactWarning=!0,Object.defineProperty(x,"ref",{get:U,configurable:!0})}}var be=function(x,z,U,ie,he,me,ue){var ae={$$typeof:r,type:x,key:z,ref:U,props:ue,_owner:me};return ae._store={},Object.defineProperty(ae._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ae,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ie}),Object.defineProperty(ae,"_source",{configurable:!1,enumerable:!1,writable:!1,value:he}),Object.freeze&&(Object.freeze(ae.props),Object.freeze(ae)),ae};function we(x,z,U,ie,he){{var me,ue={},ae=null,Ee=null;U!==void 0&&(ae=""+U),Z(z)&&(ae=""+z.key),X(z)&&(Ee=z.ref,oe(z,he));for(me in z)B.call(z,me)&&!j.hasOwnProperty(me)&&(ue[me]=z[me]);if(x&&x.defaultProps){var We=x.defaultProps;for(me in We)ue[me]===void 0&&(ue[me]=We[me])}if(ae||Ee){var ct=typeof x=="function"?x.displayName||x.name||"Unknown":x;ae&&ne(ue,ct),Ee&&ge(ue,ct)}return be(x,ae,Ee,he,ie,N.current,ue)}}var ze=L.ReactCurrentOwner;L.ReactDebugCurrentFrame;function Oe(x){fe=x}var Ve;Ve=!1;function ve(x){return typeof x=="object"&&x!==null&&x.$$typeof===r}function _e(){{if(ze.current){var x=Q(ze.current.type);if(x)return`
|
|
17
17
|
|
|
18
18
|
Check the render method of \``+x+"`."}return""}}function Ie(x){{if(x!==void 0){var z=x.fileName.replace(/^.*[\\\/]/,""),U=x.lineNumber;return`
|
|
19
19
|
|
|
20
20
|
Check your code at `+z+":"+U+"."}return""}}var Ae={};function lt(x){{var z=_e();if(!z){var U=typeof x=="string"?x:x.displayName||x.name;U&&(z=`
|
|
21
21
|
|
|
22
|
-
Check the top-level render call using <`+U+">.")}return z}}function Ut(x,z){{if(!x._store||x._store.validated||x.key!=null)return;x._store.validated=!0;var U=lt(z);if(Ae[U])return;Ae[U]=!0;var ie="";x&&x._owner&&x._owner!==ze.current&&(ie=" It was passed a child from "+Q(x._owner.type)+"."),Oe(x),T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',U,ie),Oe(null)}}function Ce(x,z){{if(typeof x!="object")return;if(Array.isArray(x))for(var U=0;U<x.length;U++){var ie=x[U];ve(ie)&&Ut(ie,z)}else if(ve(x))x._store&&(x._store.validated=!0);else if(x){var he=A(x);if(typeof he=="function"&&he!==x.entries)for(var me=he.call(x),ue;!(ue=me.next()).done;)ve(ue.value)&&Ut(ue.value,z)}}}function Je(x){{var z=x.type;if(z==null||typeof z=="string")return;var U;if(typeof z=="function")U=z.propTypes;else if(typeof z=="object"&&(z.$$typeof===c||z.$$typeof===p))U=z.propTypes;else return;if(U){var ie=Q(z);w(U,x.props,"prop",ie,x)}else if(z.PropTypes!==void 0&&!Ve){Ve=!0;var he=Q(z);T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",he||"Unknown")}typeof z.getDefaultProps=="function"&&!z.getDefaultProps.isReactClassApproved&&T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function je(x){{for(var z=Object.keys(x.props),U=0;U<z.length;U++){var ie=z[U];if(ie!=="children"&&ie!=="key"){Oe(x),T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ie),Oe(null);break}}x.ref!==null&&(Oe(x),T("Invalid attribute `ref` supplied to `React.Fragment`."),Oe(null))}}function Be(x,z,U,ie,he,me){{var ue=G(x);if(!ue){var ae="";(x===void 0||typeof x=="object"&&x!==null&&Object.keys(x).length===0)&&(ae+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ee=Ie(he);Ee?ae+=Ee:ae+=_e();var We;x===null?We="null":Array.isArray(x)?We="array":x!==void 0&&x.$$typeof===r?(We="<"+(Q(x.type)||"Unknown")+" />",ae=" Did you accidentally export a JSX literal instead of a component?"):We=typeof x,T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",We,ae)}var ct=we(x,z,U,he,me);if(ct==null)return ct;if(ue){var Kt=z.children;if(Kt!==void 0)if(ie)if(Array.isArray(Kt)){for(var na=0;na<Kt.length;na++)Ce(Kt[na],x);Object.freeze&&Object.freeze(Kt)}else T("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ce(Kt,x)}return x===e.Fragment?je(ct):Je(ct),ct}}function Ze(x,z,U){return Be(x,z,U,!0)}function mr(x,z,U){return Be(x,z,U,!1)}var br=mr,gr=Ze;e.jsx=br,e.jsxs=gr}()}(En)),En}(function(e){process.env.NODE_ENV==="production"?e.exports=Fp():e.exports=Rp()})(Lp);const k=vr.jsx,le=vr.jsxs;function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},C.apply(this,arguments)}function zp(e,t){const r=l.createContext(t);function n(i){const{children:a,...s}=i,c=l.useMemo(()=>s,Object.values(s));return l.createElement(r.Provider,{value:c},a)}function o(i){const a=l.useContext(r);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return n.displayName=e+"Provider",[n,o]}function Pe(e,t=[]){let r=[];function n(i,a){const s=l.createContext(a),c=r.length;r=[...r,a];function d(p){const{scope:b,children:h,...g}=p,m=(b==null?void 0:b[e][c])||s,_=l.useMemo(()=>g,Object.values(g));return l.createElement(m.Provider,{value:_},h)}function f(p,b){const h=(b==null?void 0:b[e][c])||s,g=l.useContext(h);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${p}\` must be used within \`${i}\``)}return d.displayName=i+"Provider",[d,f]}const o=()=>{const i=r.map(a=>l.createContext(a));return function(s){const c=(s==null?void 0:s[e])||i;return l.useMemo(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return o.scopeName=e,[n,Vp(o,...t)]}function Vp(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=n.reduce((s,{useScope:c,scopeName:d})=>{const p=c(i)[`__scope${d}`];return{...s,...p}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}function jp(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function la(...e){return t=>e.forEach(r=>jp(r,t))}function se(...e){return l.useCallback(la(...e),e)}function H(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}const ye=Boolean(globalThis==null?void 0:globalThis.document)?l.useLayoutEffect:()=>{},Bp=W["useId".toString()]||(()=>{});let Wp=0;function Ue(e){const[t,r]=W.useState(Bp());return ye(()=>{e||r(n=>n??String(Wp++))},[e]),e||(t?`radix-${t}`:"")}function Se(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}function Ne({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,o]=Up({defaultProp:t,onChange:r}),i=e!==void 0,a=i?e:n,s=Se(r),c=l.useCallback(d=>{if(i){const p=typeof d=="function"?d(e):d;p!==e&&s(p)}else o(d)},[i,e,o,s]);return[a,c]}function Up({defaultProp:e,onChange:t}){const r=l.useState(e),[n]=r,o=l.useRef(n),i=Se(t);return l.useEffect(()=>{o.current!==n&&(i(n),o.current=n)},[n,o,i]),r}const dt=l.forwardRef((e,t)=>{const{children:r,...n}=e,o=l.Children.toArray(r),i=o.find(Kp);if(i){const a=i.props.children,s=o.map(c=>c===i?l.Children.count(a)>1?l.Children.only(null):l.isValidElement(a)?a.props.children:null:c);return l.createElement(Pn,C({},n,{ref:t}),l.isValidElement(a)?l.cloneElement(a,void 0,s):null)}return l.createElement(Pn,C({},n,{ref:t}),r)});dt.displayName="Slot";const Pn=l.forwardRef((e,t)=>{const{children:r,...n}=e;return l.isValidElement(r)?l.cloneElement(r,{...Hp(n,r.props),ref:la(t,r.ref)}):l.Children.count(r)>1?l.Children.only(null):null});Pn.displayName="SlotClone";const Sn=({children:e})=>l.createElement(l.Fragment,null,e);function Kp(e){return l.isValidElement(e)&&e.type===Sn}function Hp(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{i(...s),o(...s)}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}const te=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const r=l.forwardRef((n,o)=>{const{asChild:i,...a}=n,s=i?dt:t;return l.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),l.createElement(s,C({},a,{ref:o}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ca(e,t){e&&ut.flushSync(()=>e.dispatchEvent(t))}function Gp(e,t=globalThis==null?void 0:globalThis.document){const r=Se(e);l.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n),()=>t.removeEventListener("keydown",n)},[r,t])}const Cn="dismissableLayer.update",qp="dismissableLayer.pointerDownOutside",Yp="dismissableLayer.focusOutside";let ua;const da=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ht=l.forwardRef((e,t)=>{var r;const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:c,...d}=e,f=l.useContext(da),[p,b]=l.useState(null),h=(r=p==null?void 0:p.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,g]=l.useState({}),m=se(t,M=>b(M)),_=Array.from(f.layers),[$]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),y=_.indexOf($),E=p?_.indexOf(p):-1,v=f.layersWithOutsidePointerEventsDisabled.size>0,A=E>=y,L=Jp(M=>{const F=M.target,G=[...f.branches].some(S=>S.contains(F));!A||G||(i==null||i(M),s==null||s(M),M.defaultPrevented||c==null||c())},h),T=Zp(M=>{const F=M.target;[...f.branches].some(S=>S.contains(F))||(a==null||a(M),s==null||s(M),M.defaultPrevented||c==null||c())},h);return Gp(M=>{E===f.layers.size-1&&(o==null||o(M),!M.defaultPrevented&&c&&(M.preventDefault(),c()))},h),l.useEffect(()=>{if(p)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(ua=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(p)),f.layers.add(p),fa(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=ua)}},[p,h,n,f]),l.useEffect(()=>()=>{p&&(f.layers.delete(p),f.layersWithOutsidePointerEventsDisabled.delete(p),fa())},[p,f]),l.useEffect(()=>{const M=()=>g({});return document.addEventListener(Cn,M),()=>document.removeEventListener(Cn,M)},[]),l.createElement(te.div,C({},d,{ref:m,style:{pointerEvents:v?A?"auto":"none":void 0,...e.style},onFocusCapture:H(e.onFocusCapture,T.onFocusCapture),onBlurCapture:H(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:H(e.onPointerDownCapture,L.onPointerDownCapture)}))}),Xp=l.forwardRef((e,t)=>{const r=l.useContext(da),n=l.useRef(null),o=se(t,n);return l.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),l.createElement(te.div,C({},e,{ref:o}))});function Jp(e,t=globalThis==null?void 0:globalThis.document){const r=Se(e),n=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const i=s=>{if(s.target&&!n.current){let d=function(){pa(qp,r,c,{discrete:!0})};const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}n.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function Zp(e,t=globalThis==null?void 0:globalThis.document){const r=Se(e),n=l.useRef(!1);return l.useEffect(()=>{const o=i=>{i.target&&!n.current&&pa(Yp,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function fa(){const e=new CustomEvent(Cn);document.dispatchEvent(e)}function pa(e,t,r,{discrete:n}){const o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?ca(o,i):o.dispatchEvent(i)}const Qp=Ht,eh=Xp,Tn="focusScope.autoFocusOnMount",On="focusScope.autoFocusOnUnmount",ha={bubbles:!1,cancelable:!0},kn=l.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,c]=l.useState(null),d=Se(o),f=Se(i),p=l.useRef(null),b=se(t,m=>c(m)),h=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(n){let m=function($){if(h.paused||!s)return;const y=$.target;s.contains(y)?p.current=y:ft(p.current,{select:!0})},_=function($){h.paused||!s||s.contains($.relatedTarget)||ft(p.current,{select:!0})};return document.addEventListener("focusin",m),document.addEventListener("focusout",_),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",_)}}},[n,s,h.paused]),l.useEffect(()=>{if(s){ga.add(h);const m=document.activeElement;if(!s.contains(m)){const $=new CustomEvent(Tn,ha);s.addEventListener(Tn,d),s.dispatchEvent($),$.defaultPrevented||(th(ah(ma(s)),{select:!0}),document.activeElement===m&&ft(s))}return()=>{s.removeEventListener(Tn,d),setTimeout(()=>{const $=new CustomEvent(On,ha);s.addEventListener(On,f),s.dispatchEvent($),$.defaultPrevented||ft(m??document.body,{select:!0}),s.removeEventListener(On,f),ga.remove(h)},0)}}},[s,d,f,h]);const g=l.useCallback(m=>{if(!r&&!n||h.paused)return;const _=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,$=document.activeElement;if(_&&$){const y=m.currentTarget,[E,v]=rh(y);E&&v?!m.shiftKey&&$===v?(m.preventDefault(),r&&ft(E,{select:!0})):m.shiftKey&&$===E&&(m.preventDefault(),r&&ft(v,{select:!0})):$===y&&m.preventDefault()}},[r,n,h.paused]);return l.createElement(te.div,C({tabIndex:-1},a,{ref:b,onKeyDown:g}))});function th(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(ft(n,{select:t}),document.activeElement!==r)return}function rh(e){const t=ma(e),r=ba(t,e),n=ba(t.reverse(),e);return[r,n]}function ma(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function ba(e,t){for(const r of e)if(!nh(r,{upTo:t}))return r}function nh(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function oh(e){return e instanceof HTMLInputElement&&"select"in e}function ft(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&oh(e)&&t&&e.select()}}const ga=ih();function ih(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=va(e,t),e.unshift(t)},remove(t){var r;e=va(e,t),(r=e[0])===null||r===void 0||r.resume()}}}function va(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function ah(e){return e.filter(t=>t.tagName!=="A")}const Gt=l.forwardRef((e,t)=>{var r;const{container:n=globalThis==null||(r=globalThis.document)===null||r===void 0?void 0:r.body,...o}=e;return n?ut.createPortal(l.createElement(te.div,C({},o,{ref:t})),n):null});function sh(e,t){return l.useReducer((r,n)=>{const o=t[r][n];return o??r},e)}const ke=e=>{const{present:t,children:r}=e,n=lh(t),o=typeof r=="function"?r({present:n.isPresent}):l.Children.only(r),i=se(n.ref,o.ref);return typeof r=="function"||n.isPresent?l.cloneElement(o,{ref:i}):null};ke.displayName="Presence";function lh(e){const[t,r]=l.useState(),n=l.useRef({}),o=l.useRef(e),i=l.useRef("none"),a=e?"mounted":"unmounted",[s,c]=sh(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const d=_r(n.current);i.current=s==="mounted"?d:"none"},[s]),ye(()=>{const d=n.current,f=o.current;if(f!==e){const b=i.current,h=_r(d);e?c("MOUNT"):h==="none"||(d==null?void 0:d.display)==="none"?c("UNMOUNT"):c(f&&b!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ye(()=>{if(t){const d=p=>{const h=_r(n.current).includes(p.animationName);p.target===t&&h&&ut.flushSync(()=>c("ANIMATION_END"))},f=p=>{p.target===t&&(i.current=_r(n.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:l.useCallback(d=>{d&&(n.current=getComputedStyle(d)),r(d)},[])}}function _r(e){return(e==null?void 0:e.animationName)||"none"}let Dn=0;function In(){l.useEffect(()=>{var e,t;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:_a()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:_a()),Dn++,()=>{Dn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),Dn--}},[])}function _a(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var Me=function(){return Me=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Me.apply(this,arguments)};function ya(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function ch(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}var yr="right-scroll-bar-position",$r="width-before-scroll-bar",uh="with-scroll-bars-hidden",dh="--removed-body-scroll-bar-size";function fh(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function ph(e,t){var r=l.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}function hh(e,t){return ph(t||null,function(r){return e.forEach(function(n){return fh(n,r)})})}function mh(e){return e}function bh(e,t){t===void 0&&(t=mh);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(i){var a=t(i,n);return r.push(a),function(){r=r.filter(function(s){return s!==a})}},assignSyncMedium:function(i){for(n=!0;r.length;){var a=r;r=[],a.forEach(i)}r={push:function(s){return i(s)},filter:function(){return r}}},assignMedium:function(i){n=!0;var a=[];if(r.length){var s=r;r=[],s.forEach(i),a=r}var c=function(){var f=a;a=[],f.forEach(i)},d=function(){return Promise.resolve().then(c)};d(),r={push:function(f){a.push(f),d()},filter:function(f){return a=a.filter(f),r}}}};return o}function gh(e){e===void 0&&(e={});var t=bh(null);return t.options=Me({async:!0,ssr:!1},e),t}var $a=function(e){var t=e.sideCar,r=ya(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return W.createElement(n,Me({},r))};$a.isSideCarExport=!0;function vh(e,t){return e.useMedium(t),$a}var xa=gh(),An=function(){},xr=W.forwardRef(function(e,t){var r=W.useRef(null),n=W.useState({onScrollCapture:An,onWheelCapture:An,onTouchMoveCapture:An}),o=n[0],i=n[1],a=e.forwardProps,s=e.children,c=e.className,d=e.removeScrollBar,f=e.enabled,p=e.shards,b=e.sideCar,h=e.noIsolation,g=e.inert,m=e.allowPinchZoom,_=e.as,$=_===void 0?"div":_,y=ya(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),E=b,v=hh([r,t]),A=Me(Me({},y),o);return W.createElement(W.Fragment,null,f&&W.createElement(E,{sideCar:xa,removeScrollBar:d,shards:p,noIsolation:h,inert:g,setCallbacks:i,allowPinchZoom:!!m,lockRef:r}),a?W.cloneElement(W.Children.only(s),Me(Me({},A),{ref:v})):W.createElement($,Me({},A,{className:c,ref:v}),s))});xr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},xr.classNames={fullWidth:$r,zeroRight:yr};var _h=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function yh(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=_h();return t&&e.setAttribute("nonce",t),e}function $h(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function xh(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var wh=function(){var e=0,t=null;return{add:function(r){e==0&&(t=yh())&&($h(t,r),xh(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Eh=function(){var e=wh();return function(t,r){W.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},wa=function(){var e=Eh(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},Ph={left:0,top:0,right:0,gap:0},Nn=function(e){return parseInt(e||"",10)||0},Sh=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Nn(r),Nn(n),Nn(o)]},Ch=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Ph;var t=Sh(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Th=wa(),Oh=function(e,t,r,n){var o=e.left,i=e.top,a=e.right,s=e.gap;return r===void 0&&(r="margin"),`
|
|
23
|
-
.`.concat(
|
|
22
|
+
Check the top-level render call using <`+U+">.")}return z}}function Ut(x,z){{if(!x._store||x._store.validated||x.key!=null)return;x._store.validated=!0;var U=lt(z);if(Ae[U])return;Ae[U]=!0;var ie="";x&&x._owner&&x._owner!==ze.current&&(ie=" It was passed a child from "+Q(x._owner.type)+"."),Oe(x),T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',U,ie),Oe(null)}}function Ce(x,z){{if(typeof x!="object")return;if(Array.isArray(x))for(var U=0;U<x.length;U++){var ie=x[U];ve(ie)&&Ut(ie,z)}else if(ve(x))x._store&&(x._store.validated=!0);else if(x){var he=A(x);if(typeof he=="function"&&he!==x.entries)for(var me=he.call(x),ue;!(ue=me.next()).done;)ve(ue.value)&&Ut(ue.value,z)}}}function Je(x){{var z=x.type;if(z==null||typeof z=="string")return;var U;if(typeof z=="function")U=z.propTypes;else if(typeof z=="object"&&(z.$$typeof===c||z.$$typeof===p))U=z.propTypes;else return;if(U){var ie=Q(z);w(U,x.props,"prop",ie,x)}else if(z.PropTypes!==void 0&&!Ve){Ve=!0;var he=Q(z);T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",he||"Unknown")}typeof z.getDefaultProps=="function"&&!z.getDefaultProps.isReactClassApproved&&T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function je(x){{for(var z=Object.keys(x.props),U=0;U<z.length;U++){var ie=z[U];if(ie!=="children"&&ie!=="key"){Oe(x),T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ie),Oe(null);break}}x.ref!==null&&(Oe(x),T("Invalid attribute `ref` supplied to `React.Fragment`."),Oe(null))}}function Be(x,z,U,ie,he,me){{var ue=G(x);if(!ue){var ae="";(x===void 0||typeof x=="object"&&x!==null&&Object.keys(x).length===0)&&(ae+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ee=Ie(he);Ee?ae+=Ee:ae+=_e();var We;x===null?We="null":Array.isArray(x)?We="array":x!==void 0&&x.$$typeof===r?(We="<"+(Q(x.type)||"Unknown")+" />",ae=" Did you accidentally export a JSX literal instead of a component?"):We=typeof x,T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",We,ae)}var ct=we(x,z,U,he,me);if(ct==null)return ct;if(ue){var Kt=z.children;if(Kt!==void 0)if(ie)if(Array.isArray(Kt)){for(var na=0;na<Kt.length;na++)Ce(Kt[na],x);Object.freeze&&Object.freeze(Kt)}else T("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ce(Kt,x)}return x===e.Fragment?je(ct):Je(ct),ct}}function Ze(x,z,U){return Be(x,z,U,!0)}function mr(x,z,U){return Be(x,z,U,!1)}var br=mr,gr=Ze;e.jsx=br,e.jsxs=gr}()}(En)),En}(function(e){process.env.NODE_ENV==="production"?e.exports=Rp():e.exports=zp()})(Fp);const k=vr.jsx,le=vr.jsxs;function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},C.apply(this,arguments)}function Vp(e,t){const r=l.createContext(t);function n(i){const{children:a,...s}=i,c=l.useMemo(()=>s,Object.values(s));return l.createElement(r.Provider,{value:c},a)}function o(i){const a=l.useContext(r);if(a)return a;if(t!==void 0)return t;throw new Error(`\`${i}\` must be used within \`${e}\``)}return n.displayName=e+"Provider",[n,o]}function Pe(e,t=[]){let r=[];function n(i,a){const s=l.createContext(a),c=r.length;r=[...r,a];function d(p){const{scope:b,children:h,...g}=p,m=(b==null?void 0:b[e][c])||s,_=l.useMemo(()=>g,Object.values(g));return l.createElement(m.Provider,{value:_},h)}function f(p,b){const h=(b==null?void 0:b[e][c])||s,g=l.useContext(h);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${p}\` must be used within \`${i}\``)}return d.displayName=i+"Provider",[d,f]}const o=()=>{const i=r.map(a=>l.createContext(a));return function(s){const c=(s==null?void 0:s[e])||i;return l.useMemo(()=>({[`__scope${e}`]:{...s,[e]:c}}),[s,c])}};return o.scopeName=e,[n,jp(o,...t)]}function jp(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const a=n.reduce((s,{useScope:c,scopeName:d})=>{const p=c(i)[`__scope${d}`];return{...s,...p}},{});return l.useMemo(()=>({[`__scope${t.scopeName}`]:a}),[a])}};return r.scopeName=t.scopeName,r}function Bp(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function la(...e){return t=>e.forEach(r=>Bp(r,t))}function se(...e){return l.useCallback(la(...e),e)}function H(e,t,{checkForDefaultPrevented:r=!0}={}){return function(o){if(e==null||e(o),r===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}const ye=Boolean(globalThis==null?void 0:globalThis.document)?l.useLayoutEffect:()=>{},Wp=W["useId".toString()]||(()=>{});let Up=0;function Ue(e){const[t,r]=W.useState(Wp());return ye(()=>{e||r(n=>n??String(Up++))},[e]),e||(t?`radix-${t}`:"")}function Se(e){const t=l.useRef(e);return l.useEffect(()=>{t.current=e}),l.useMemo(()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)},[])}function Ne({prop:e,defaultProp:t,onChange:r=()=>{}}){const[n,o]=Kp({defaultProp:t,onChange:r}),i=e!==void 0,a=i?e:n,s=Se(r),c=l.useCallback(d=>{if(i){const p=typeof d=="function"?d(e):d;p!==e&&s(p)}else o(d)},[i,e,o,s]);return[a,c]}function Kp({defaultProp:e,onChange:t}){const r=l.useState(e),[n]=r,o=l.useRef(n),i=Se(t);return l.useEffect(()=>{o.current!==n&&(i(n),o.current=n)},[n,o,i]),r}const dt=l.forwardRef((e,t)=>{const{children:r,...n}=e,o=l.Children.toArray(r),i=o.find(Hp);if(i){const a=i.props.children,s=o.map(c=>c===i?l.Children.count(a)>1?l.Children.only(null):l.isValidElement(a)?a.props.children:null:c);return l.createElement(Pn,C({},n,{ref:t}),l.isValidElement(a)?l.cloneElement(a,void 0,s):null)}return l.createElement(Pn,C({},n,{ref:t}),r)});dt.displayName="Slot";const Pn=l.forwardRef((e,t)=>{const{children:r,...n}=e;return l.isValidElement(r)?l.cloneElement(r,{...Gp(n,r.props),ref:la(t,r.ref)}):l.Children.count(r)>1?l.Children.only(null):null});Pn.displayName="SlotClone";const Sn=({children:e})=>l.createElement(l.Fragment,null,e);function Hp(e){return l.isValidElement(e)&&e.type===Sn}function Gp(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{i(...s),o(...s)}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}const te=["a","button","div","h2","h3","img","label","li","nav","ol","p","span","svg","ul"].reduce((e,t)=>{const r=l.forwardRef((n,o)=>{const{asChild:i,...a}=n,s=i?dt:t;return l.useEffect(()=>{window[Symbol.for("radix-ui")]=!0},[]),l.createElement(s,C({},a,{ref:o}))});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ca(e,t){e&&ut.flushSync(()=>e.dispatchEvent(t))}function qp(e,t=globalThis==null?void 0:globalThis.document){const r=Se(e);l.useEffect(()=>{const n=o=>{o.key==="Escape"&&r(o)};return t.addEventListener("keydown",n),()=>t.removeEventListener("keydown",n)},[r,t])}const Cn="dismissableLayer.update",Yp="dismissableLayer.pointerDownOutside",Xp="dismissableLayer.focusOutside";let ua;const da=l.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ht=l.forwardRef((e,t)=>{var r;const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:a,onInteractOutside:s,onDismiss:c,...d}=e,f=l.useContext(da),[p,b]=l.useState(null),h=(r=p==null?void 0:p.ownerDocument)!==null&&r!==void 0?r:globalThis==null?void 0:globalThis.document,[,g]=l.useState({}),m=se(t,M=>b(M)),_=Array.from(f.layers),[$]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),y=_.indexOf($),E=p?_.indexOf(p):-1,v=f.layersWithOutsidePointerEventsDisabled.size>0,A=E>=y,L=Zp(M=>{const F=M.target,G=[...f.branches].some(S=>S.contains(F));!A||G||(i==null||i(M),s==null||s(M),M.defaultPrevented||c==null||c())},h),T=Qp(M=>{const F=M.target;[...f.branches].some(S=>S.contains(F))||(a==null||a(M),s==null||s(M),M.defaultPrevented||c==null||c())},h);return qp(M=>{E===f.layers.size-1&&(o==null||o(M),!M.defaultPrevented&&c&&(M.preventDefault(),c()))},h),l.useEffect(()=>{if(p)return n&&(f.layersWithOutsidePointerEventsDisabled.size===0&&(ua=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),f.layersWithOutsidePointerEventsDisabled.add(p)),f.layers.add(p),fa(),()=>{n&&f.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=ua)}},[p,h,n,f]),l.useEffect(()=>()=>{p&&(f.layers.delete(p),f.layersWithOutsidePointerEventsDisabled.delete(p),fa())},[p,f]),l.useEffect(()=>{const M=()=>g({});return document.addEventListener(Cn,M),()=>document.removeEventListener(Cn,M)},[]),l.createElement(te.div,C({},d,{ref:m,style:{pointerEvents:v?A?"auto":"none":void 0,...e.style},onFocusCapture:H(e.onFocusCapture,T.onFocusCapture),onBlurCapture:H(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:H(e.onPointerDownCapture,L.onPointerDownCapture)}))}),Jp=l.forwardRef((e,t)=>{const r=l.useContext(da),n=l.useRef(null),o=se(t,n);return l.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),l.createElement(te.div,C({},e,{ref:o}))});function Zp(e,t=globalThis==null?void 0:globalThis.document){const r=Se(e),n=l.useRef(!1),o=l.useRef(()=>{});return l.useEffect(()=>{const i=s=>{if(s.target&&!n.current){let d=function(){pa(Yp,r,c,{discrete:!0})};const c={originalEvent:s};s.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=d,t.addEventListener("click",o.current,{once:!0})):d()}n.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,r]),{onPointerDownCapture:()=>n.current=!0}}function Qp(e,t=globalThis==null?void 0:globalThis.document){const r=Se(e),n=l.useRef(!1);return l.useEffect(()=>{const o=i=>{i.target&&!n.current&&pa(Xp,r,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function fa(){const e=new CustomEvent(Cn);document.dispatchEvent(e)}function pa(e,t,r,{discrete:n}){const o=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?ca(o,i):o.dispatchEvent(i)}const eh=Ht,th=Jp,Tn="focusScope.autoFocusOnMount",On="focusScope.autoFocusOnUnmount",ha={bubbles:!1,cancelable:!0},kn=l.forwardRef((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...a}=e,[s,c]=l.useState(null),d=Se(o),f=Se(i),p=l.useRef(null),b=se(t,m=>c(m)),h=l.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;l.useEffect(()=>{if(n){let m=function($){if(h.paused||!s)return;const y=$.target;s.contains(y)?p.current=y:ft(p.current,{select:!0})},_=function($){h.paused||!s||s.contains($.relatedTarget)||ft(p.current,{select:!0})};return document.addEventListener("focusin",m),document.addEventListener("focusout",_),()=>{document.removeEventListener("focusin",m),document.removeEventListener("focusout",_)}}},[n,s,h.paused]),l.useEffect(()=>{if(s){ga.add(h);const m=document.activeElement;if(!s.contains(m)){const $=new CustomEvent(Tn,ha);s.addEventListener(Tn,d),s.dispatchEvent($),$.defaultPrevented||(rh(sh(ma(s)),{select:!0}),document.activeElement===m&&ft(s))}return()=>{s.removeEventListener(Tn,d),setTimeout(()=>{const $=new CustomEvent(On,ha);s.addEventListener(On,f),s.dispatchEvent($),$.defaultPrevented||ft(m??document.body,{select:!0}),s.removeEventListener(On,f),ga.remove(h)},0)}}},[s,d,f,h]);const g=l.useCallback(m=>{if(!r&&!n||h.paused)return;const _=m.key==="Tab"&&!m.altKey&&!m.ctrlKey&&!m.metaKey,$=document.activeElement;if(_&&$){const y=m.currentTarget,[E,v]=nh(y);E&&v?!m.shiftKey&&$===v?(m.preventDefault(),r&&ft(E,{select:!0})):m.shiftKey&&$===E&&(m.preventDefault(),r&&ft(v,{select:!0})):$===y&&m.preventDefault()}},[r,n,h.paused]);return l.createElement(te.div,C({tabIndex:-1},a,{ref:b,onKeyDown:g}))});function rh(e,{select:t=!1}={}){const r=document.activeElement;for(const n of e)if(ft(n,{select:t}),document.activeElement!==r)return}function nh(e){const t=ma(e),r=ba(t,e),n=ba(t.reverse(),e);return[r,n]}function ma(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function ba(e,t){for(const r of e)if(!oh(r,{upTo:t}))return r}function oh(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function ih(e){return e instanceof HTMLInputElement&&"select"in e}function ft(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&ih(e)&&t&&e.select()}}const ga=ah();function ah(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=va(e,t),e.unshift(t)},remove(t){var r;e=va(e,t),(r=e[0])===null||r===void 0||r.resume()}}}function va(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function sh(e){return e.filter(t=>t.tagName!=="A")}const Gt=l.forwardRef((e,t)=>{var r;const{container:n=globalThis==null||(r=globalThis.document)===null||r===void 0?void 0:r.body,...o}=e;return n?ut.createPortal(l.createElement(te.div,C({},o,{ref:t})),n):null});function lh(e,t){return l.useReducer((r,n)=>{const o=t[r][n];return o??r},e)}const ke=e=>{const{present:t,children:r}=e,n=ch(t),o=typeof r=="function"?r({present:n.isPresent}):l.Children.only(r),i=se(n.ref,o.ref);return typeof r=="function"||n.isPresent?l.cloneElement(o,{ref:i}):null};ke.displayName="Presence";function ch(e){const[t,r]=l.useState(),n=l.useRef({}),o=l.useRef(e),i=l.useRef("none"),a=e?"mounted":"unmounted",[s,c]=lh(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return l.useEffect(()=>{const d=_r(n.current);i.current=s==="mounted"?d:"none"},[s]),ye(()=>{const d=n.current,f=o.current;if(f!==e){const b=i.current,h=_r(d);e?c("MOUNT"):h==="none"||(d==null?void 0:d.display)==="none"?c("UNMOUNT"):c(f&&b!==h?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),ye(()=>{if(t){const d=p=>{const h=_r(n.current).includes(p.animationName);p.target===t&&h&&ut.flushSync(()=>c("ANIMATION_END"))},f=p=>{p.target===t&&(i.current=_r(n.current))};return t.addEventListener("animationstart",f),t.addEventListener("animationcancel",d),t.addEventListener("animationend",d),()=>{t.removeEventListener("animationstart",f),t.removeEventListener("animationcancel",d),t.removeEventListener("animationend",d)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:l.useCallback(d=>{d&&(n.current=getComputedStyle(d)),r(d)},[])}}function _r(e){return(e==null?void 0:e.animationName)||"none"}let Dn=0;function In(){l.useEffect(()=>{var e,t;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:_a()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:_a()),Dn++,()=>{Dn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(n=>n.remove()),Dn--}},[])}function _a(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}var Me=function(){return Me=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Me.apply(this,arguments)};function ya(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function uh(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}var yr="right-scroll-bar-position",$r="width-before-scroll-bar",dh="with-scroll-bars-hidden",fh="--removed-body-scroll-bar-size";function ph(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function hh(e,t){var r=l.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}function mh(e,t){return hh(t||null,function(r){return e.forEach(function(n){return ph(n,r)})})}function bh(e){return e}function gh(e,t){t===void 0&&(t=bh);var r=[],n=!1,o={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(i){var a=t(i,n);return r.push(a),function(){r=r.filter(function(s){return s!==a})}},assignSyncMedium:function(i){for(n=!0;r.length;){var a=r;r=[],a.forEach(i)}r={push:function(s){return i(s)},filter:function(){return r}}},assignMedium:function(i){n=!0;var a=[];if(r.length){var s=r;r=[],s.forEach(i),a=r}var c=function(){var f=a;a=[],f.forEach(i)},d=function(){return Promise.resolve().then(c)};d(),r={push:function(f){a.push(f),d()},filter:function(f){return a=a.filter(f),r}}}};return o}function vh(e){e===void 0&&(e={});var t=gh(null);return t.options=Me({async:!0,ssr:!1},e),t}var $a=function(e){var t=e.sideCar,r=ya(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return W.createElement(n,Me({},r))};$a.isSideCarExport=!0;function _h(e,t){return e.useMedium(t),$a}var xa=vh(),An=function(){},xr=W.forwardRef(function(e,t){var r=W.useRef(null),n=W.useState({onScrollCapture:An,onWheelCapture:An,onTouchMoveCapture:An}),o=n[0],i=n[1],a=e.forwardProps,s=e.children,c=e.className,d=e.removeScrollBar,f=e.enabled,p=e.shards,b=e.sideCar,h=e.noIsolation,g=e.inert,m=e.allowPinchZoom,_=e.as,$=_===void 0?"div":_,y=ya(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),E=b,v=mh([r,t]),A=Me(Me({},y),o);return W.createElement(W.Fragment,null,f&&W.createElement(E,{sideCar:xa,removeScrollBar:d,shards:p,noIsolation:h,inert:g,setCallbacks:i,allowPinchZoom:!!m,lockRef:r}),a?W.cloneElement(W.Children.only(s),Me(Me({},A),{ref:v})):W.createElement($,Me({},A,{className:c,ref:v}),s))});xr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},xr.classNames={fullWidth:$r,zeroRight:yr};var yh=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function $h(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=yh();return t&&e.setAttribute("nonce",t),e}function xh(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function wh(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var Eh=function(){var e=0,t=null;return{add:function(r){e==0&&(t=$h())&&(xh(t,r),wh(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Ph=function(){var e=Eh();return function(t,r){W.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},wa=function(){var e=Ph(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},Sh={left:0,top:0,right:0,gap:0},Nn=function(e){return parseInt(e||"",10)||0},Ch=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Nn(r),Nn(n),Nn(o)]},Th=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Sh;var t=Ch(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},Oh=wa(),kh=function(e,t,r,n){var o=e.left,i=e.top,a=e.right,s=e.gap;return r===void 0&&(r="margin"),`
|
|
23
|
+
.`.concat(dh,` {
|
|
24
24
|
overflow: hidden `).concat(n,`;
|
|
25
25
|
padding-right: `).concat(s,"px ").concat(n,`;
|
|
26
26
|
}
|
|
@@ -54,12 +54,12 @@ Check the top-level render call using <`+U+">.")}return z}}function Ut(x,z){{if(
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
body {
|
|
57
|
-
`).concat(
|
|
57
|
+
`).concat(fh,": ").concat(s,`px;
|
|
58
58
|
}
|
|
59
|
-
`)},
|
|
59
|
+
`)},Dh=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n,i=W.useMemo(function(){return Th(o)},[o]);return W.createElement(Oh,{styles:kh(i,!t,o,r?"":"!important")})},Mn=!1;if(typeof window<"u")try{var wr=Object.defineProperty({},"passive",{get:function(){return Mn=!0,!0}});window.addEventListener("test",wr,wr),window.removeEventListener("test",wr,wr)}catch{Mn=!1}var wt=Mn?{passive:!1}:!1,Ih=function(e){return e.tagName==="TEXTAREA"},Ea=function(e,t){var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!Ih(e)&&r[t]==="visible")},Ah=function(e){return Ea(e,"overflowY")},Nh=function(e){return Ea(e,"overflowX")},Pa=function(e,t){var r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var n=Sa(e,r);if(n){var o=Ca(e,r),i=o[1],a=o[2];if(i>a)return!0}r=r.parentNode}while(r&&r!==document.body);return!1},Mh=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},Lh=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Sa=function(e,t){return e==="v"?Ah(t):Nh(t)},Ca=function(e,t){return e==="v"?Mh(t):Lh(t)},Fh=function(e,t){return e==="h"&&t==="rtl"?-1:1},Rh=function(e,t,r,n,o){var i=Fh(e,window.getComputedStyle(t).direction),a=i*n,s=r.target,c=t.contains(s),d=!1,f=a>0,p=0,b=0;do{var h=Ca(e,s),g=h[0],m=h[1],_=h[2],$=m-_-i*g;(g||$)&&Sa(e,s)&&(p+=$,b+=g),s=s.parentNode}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(f&&(o&&p===0||!o&&a>p)||!f&&(o&&b===0||!o&&-a>b))&&(d=!0),d},Er=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ta=function(e){return[e.deltaX,e.deltaY]},Oa=function(e){return e&&"current"in e?e.current:e},zh=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Vh=function(e){return`
|
|
60
60
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
61
61
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
62
|
-
`)},Vh=0,Et=[];function jh(e){var t=W.useRef([]),r=W.useRef([0,0]),n=W.useRef(),o=W.useState(Vh++)[0],i=W.useState(function(){return wa()})[0],a=W.useRef(e);W.useEffect(function(){a.current=e},[e]),W.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=ch([e.lockRef.current],(e.shards||[]).map(Oa),!0).filter(Boolean);return m.forEach(function(_){return _.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=W.useCallback(function(m,_){if("touches"in m&&m.touches.length===2)return!a.current.allowPinchZoom;var $=Er(m),y=r.current,E="deltaX"in m?m.deltaX:y[0]-$[0],v="deltaY"in m?m.deltaY:y[1]-$[1],A,L=m.target,T=Math.abs(E)>Math.abs(v)?"h":"v";if("touches"in m&&T==="h"&&L.type==="range")return!1;var M=Pa(T,L);if(!M)return!0;if(M?A=T:(A=T==="v"?"h":"v",M=Pa(T,L)),!M)return!1;if(!n.current&&"changedTouches"in m&&(E||v)&&(n.current=A),!A)return!0;var F=n.current||A;return Fh(F,_,m,F==="h"?E:v,!0)},[]),c=W.useCallback(function(m){var _=m;if(!(!Et.length||Et[Et.length-1]!==i)){var $="deltaY"in _?Ta(_):Er(_),y=t.current.filter(function(A){return A.name===_.type&&A.target===_.target&&Rh(A.delta,$)})[0];if(y&&y.should){_.cancelable&&_.preventDefault();return}if(!y){var E=(a.current.shards||[]).map(Oa).filter(Boolean).filter(function(A){return A.contains(_.target)}),v=E.length>0?s(_,E[0]):!a.current.noIsolation;v&&_.cancelable&&_.preventDefault()}}},[]),d=W.useCallback(function(m,_,$,y){var E={name:m,delta:_,target:$,should:y};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(v){return v!==E})},1)},[]),f=W.useCallback(function(m){r.current=Er(m),n.current=void 0},[]),p=W.useCallback(function(m){d(m.type,Ta(m),m.target,s(m,e.lockRef.current))},[]),b=W.useCallback(function(m){d(m.type,Er(m),m.target,s(m,e.lockRef.current))},[]);W.useEffect(function(){return Et.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:b}),document.addEventListener("wheel",c,wt),document.addEventListener("touchmove",c,wt),document.addEventListener("touchstart",f,wt),function(){Et=Et.filter(function(m){return m!==i}),document.removeEventListener("wheel",c,wt),document.removeEventListener("touchmove",c,wt),document.removeEventListener("touchstart",f,wt)}},[]);var h=e.removeScrollBar,g=e.inert;return W.createElement(W.Fragment,null,g?W.createElement(i,{styles:zh(o)}):null,h?W.createElement(kh,{gapMode:"margin"}):null)}const Bh=vh(xa,jh);var ka=W.forwardRef(function(e,t){return W.createElement(xr,Me({},e,{ref:t,sideCar:Bh}))});ka.classNames=xr.classNames;const Ln=ka;var Wh=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Pt=new WeakMap,Pr=new WeakMap,Sr={},Fn=0,Da=function(e){return e&&(e.host||Da(e.parentNode))},Uh=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Da(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return Boolean(r)})},Kh=function(e,t,r,n){var o=Uh(t,Array.isArray(e)?e:[e]);Sr[r]||(Sr[r]=new WeakMap);var i=Sr[r],a=[],s=new Set,c=new Set(o),d=function(p){!p||s.has(p)||(s.add(p),d(p.parentNode))};o.forEach(d);var f=function(p){!p||c.has(p)||Array.prototype.forEach.call(p.children,function(b){if(s.has(b))f(b);else{var h=b.getAttribute(n),g=h!==null&&h!=="false",m=(Pt.get(b)||0)+1,_=(i.get(b)||0)+1;Pt.set(b,m),i.set(b,_),a.push(b),m===1&&g&&Pr.set(b,!0),_===1&&b.setAttribute(r,"true"),g||b.setAttribute(n,"true")}})};return f(t),s.clear(),Fn++,function(){a.forEach(function(p){var b=Pt.get(p)-1,h=i.get(p)-1;Pt.set(p,b),i.set(p,h),b||(Pr.has(p)||p.removeAttribute(n),Pr.delete(p)),h||p.removeAttribute(r)}),Fn--,Fn||(Pt=new WeakMap,Pt=new WeakMap,Pr=new WeakMap,Sr={})}},Rn=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||Wh(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),Kh(n,o,r,"aria-hidden")):function(){return null}};const Ia="Dialog",[Aa,Na]=Pe(Ia),[Hh,De]=Aa(Ia),Gh=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,s=l.useRef(null),c=l.useRef(null),[d=!1,f]=Ne({prop:n,defaultProp:o,onChange:i});return l.createElement(Hh,{scope:t,triggerRef:s,contentRef:c,contentId:Ue(),titleId:Ue(),descriptionId:Ue(),open:d,onOpenChange:f,onOpenToggle:l.useCallback(()=>f(p=>!p),[f]),modal:a},r)},qh="DialogTrigger",Yh=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=De(qh,r),i=se(t,o.triggerRef);return l.createElement(te.button,C({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Vn(o.open)},n,{ref:i,onClick:H(e.onClick,o.onOpenToggle)}))}),Ma="DialogPortal",[Xh,La]=Aa(Ma,{forceMount:void 0}),Jh=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,i=De(Ma,t);return l.createElement(Xh,{scope:t,forceMount:r},l.Children.map(n,a=>l.createElement(ke,{present:r||i.open},l.createElement(Gt,{asChild:!0,container:o},a))))},zn="DialogOverlay",Zh=l.forwardRef((e,t)=>{const r=La(zn,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=De(zn,e.__scopeDialog);return i.modal?l.createElement(ke,{present:n||i.open},l.createElement(Qh,C({},o,{ref:t}))):null}),Qh=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=De(zn,r);return l.createElement(Ln,{as:dt,allowPinchZoom:!0,shards:[o.contentRef]},l.createElement(te.div,C({"data-state":Vn(o.open)},n,{ref:t,style:{pointerEvents:"auto",...n.style}})))}),St="DialogContent",e0=l.forwardRef((e,t)=>{const r=La(St,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=De(St,e.__scopeDialog);return l.createElement(ke,{present:n||i.open},i.modal?l.createElement(t0,C({},o,{ref:t})):l.createElement(r0,C({},o,{ref:t})))}),t0=l.forwardRef((e,t)=>{const r=De(St,e.__scopeDialog),n=l.useRef(null),o=se(t,r.contentRef,n);return l.useEffect(()=>{const i=n.current;if(i)return Rn(i)},[]),l.createElement(Fa,C({},e,{ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:H(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=r.triggerRef.current)===null||a===void 0||a.focus()}),onPointerDownOutside:H(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,s=a.button===0&&a.ctrlKey===!0;(a.button===2||s)&&i.preventDefault()}),onFocusOutside:H(e.onFocusOutside,i=>i.preventDefault())}))}),r0=l.forwardRef((e,t)=>{const r=De(St,e.__scopeDialog),n=l.useRef(!1);return l.createElement(Fa,C({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var i;if((i=e.onCloseAutoFocus)===null||i===void 0||i.call(e,o),!o.defaultPrevented){var a;n.current||(a=r.triggerRef.current)===null||a===void 0||a.focus(),o.preventDefault()}n.current=!1},onInteractOutside:o=>{var i,a;(i=e.onInteractOutside)===null||i===void 0||i.call(e,o),o.defaultPrevented||(n.current=!0);const s=o.target;((a=r.triggerRef.current)===null||a===void 0?void 0:a.contains(s))&&o.preventDefault()}}))}),Fa=l.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=De(St,r),c=l.useRef(null),d=se(t,c);return In(),l.createElement(l.Fragment,null,l.createElement(kn,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i},l.createElement(Ht,C({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Vn(s.open)},a,{ref:d,onDismiss:()=>s.onOpenChange(!1)}))),!1)}),Ra="DialogTitle",n0=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=De(Ra,r);return l.createElement(te.h2,C({id:o.titleId},n,{ref:t}))}),o0="DialogDescription",i0=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=De(o0,r);return l.createElement(te.p,C({id:o.descriptionId},n,{ref:t}))}),a0="DialogClose",s0=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=De(a0,r);return l.createElement(te.button,C({type:"button"},n,{ref:t,onClick:H(e.onClick,()=>o.onOpenChange(!1))}))});function Vn(e){return e?"open":"closed"}const l0="DialogTitleWarning",[c0,$E]=zp(l0,{contentName:St,titleName:Ra,docsSlug:"dialog"}),za=Gh,Va=Yh,ja=Jh,Ba=Zh,Wa=e0,Ua=n0,Ka=i0,jn=s0,u0="AlertDialog",[d0,xE]=Pe(u0,[Na]),Ke=Na(),f0=e=>{const{__scopeAlertDialog:t,...r}=e,n=Ke(t);return l.createElement(za,C({},n,r,{modal:!0}))},p0=l.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=Ke(r);return l.createElement(Va,C({},o,n,{ref:t}))}),h0=e=>{const{__scopeAlertDialog:t,...r}=e,n=Ke(t);return l.createElement(ja,C({},n,r))},m0=l.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=Ke(r);return l.createElement(Ba,C({},o,n,{ref:t}))}),Ha="AlertDialogContent",[b0,g0]=d0(Ha),v0=l.forwardRef((e,t)=>{const{__scopeAlertDialog:r,children:n,...o}=e,i=Ke(r),a=l.useRef(null),s=se(t,a),c=l.useRef(null);return l.createElement(c0,{contentName:Ha,titleName:_0,docsSlug:"alert-dialog"},l.createElement(b0,{scope:r,cancelRef:c},l.createElement(Wa,C({role:"alertdialog"},i,o,{ref:s,onOpenAutoFocus:H(o.onOpenAutoFocus,d=>{var f;d.preventDefault(),(f=c.current)===null||f===void 0||f.focus({preventScroll:!0})}),onPointerDownOutside:d=>d.preventDefault(),onInteractOutside:d=>d.preventDefault()}),l.createElement(Sn,null,n),!1)))}),_0="AlertDialogTitle",y0=l.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=Ke(r);return l.createElement(Ua,C({},o,n,{ref:t}))}),$0=l.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=Ke(r);return l.createElement(Ka,C({},o,n,{ref:t}))}),x0=l.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=Ke(r);return l.createElement(jn,C({},o,n,{ref:t}))}),w0="AlertDialogCancel",E0=l.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,{cancelRef:o}=g0(w0,r),i=Ke(r),a=se(t,o);return l.createElement(jn,C({},i,n,{ref:a}))}),P0=f0,S0=p0,C0=h0,T0=m0,O0=v0,k0=x0,D0=E0,I0=y0,A0=$0,u={border_radius_0:"0",border_radius_100:"1px",border_radius_200:"2px",border_radius_400:"4px",border_radius_800:"8px",border_radius_pill:"9999em",border_radius_circle:"50%",border_width_0:"0",border_width_100:"1px",border_width_200:"2px",color_gray_4:"hsl(0, 0%, 4%)",color_gray_8:"hsl(0, 0%, 8%)",color_gray_10:"hsl(0, 0%, 10%)",color_gray_12:"hsl(0, 0%, 12%)",color_gray_14:"hsl(0, 0%, 14%)",color_gray_16:"hsl(0, 0%, 16%)",color_gray_24:"hsl(0, 0%, 24%)",color_gray_32:"hsl(0, 0%, 32%)",color_gray_56:"hsl(0, 0%, 56%)",color_gray_64:"hsl(0, 0%, 64%)",color_gray_84:"hsl(0, 0%, 84%)",color_gray_94:"hsl(0, 0% 94%)",color_gray_96:"hsl(0, 0%, 96%)",color_white:"hsl(0, 0%, 100%)",color_black:"hsl(0, 0%, 0%)",color_background_white_standard:"hsl(0, 0%, 100%)",color_background_white_strong:"hsl(0, 0% 94%)",color_background_white_weak:"hsl(0, 0%, 96%)",color_background_black_standard:"hsl(0, 0%, 16%)",color_background_black_strong:"hsl(0, 0%, 8%)",color_background_black_weak:"hsl(0, 0%, 12%)",color_background_sentiment_negative:"hsl(11, 68%, 55%)",color_background_sentiment_positive:"hsl(54, 63% 52%)",color_background_sentiment_notice:"hsl(29, 74% 53%)",color_background_sentiment_neutral:"hsl(0, 0%, 10%)",color_divider_standard:"hsla(0, 0%, 0%, 12%)",color_divider_strong:"hsla(0, 0%, 0%, 16%)",color_divider_weak:"hsla(0, 0%, 0%, 8%)",color_divider_inverse_standard:"hsla(0, 0%, 1000%, 32%)",color_divider_inverse_strong:"hsla(0, 0%, 100%, 48%)",color_divider_inverse_weak:"hsla(0, 0%, 100%, 24%)",color_text_standard:"hsl(0, 0%, 32%)",color_text_strong:"hsl(0, 0%, 0%)",color_text_weak:"hsl(0, 0%, 56%)",color_text_white_standard:"hsl(0, 0%, 84%)",color_text_white_strong:"hsl(0, 0%, 100%)",color_text_white_weak:"hsl(0, 0%, 64%)",color_text_sentiment_negative:"hsl(11, 68%, 55%)",color_text_sentiment_positive:"hsl(54, 63%, 52%)",color_text_sentiment_notice:"hsl(29, 67%, 47%)",color_text_sentiment_neutral:"hsl(0, 0%, 24%)",color_fill_primary_enabled:"hsla(0, 0%, 8%, 1)",color_fill_primary_hover:"hsl(210, 5%, 16%)",color_fill_primary_pressed:"hsl(210, 3%, 28%)",color_fill_primary_disabled:"hsla(0, 0%, 8%, 0.2)",color_fill_secondary_enabled:"hsla(0, 0%, 0%, 0.06)",color_fill_secondary_hover:"hsla(0, 0%, 0%, 0.12)",color_fill_secondary_pressed:"hsla(0, 0%, 0%, 0.2)",color_fill_secondary_disabled:"hsla(0, 0%, 88%, 0.5)",color_fill_inverse_enabled:"hsl(0, 0%, 100%)",color_fill_inverse_hover:"hsl(0, 0%, 94%)",color_fill_inverse_pressed:"hsl(0, 0%, 90%)",color_fill_inverse_disabled:"hsla(0, 0%, 98%, 0.4)",color_fill_danger_enabled:"hsl(11, 68%, 55%)",color_fill_danger_hover:"hsl(11, 57%, 51%)",color_fill_danger_pressed:"hsl(11, 55%, 48%)",color_fill_danger_disabled:"hsla(11, 68%, 55%, 0.2)",color_outline_primary_danger_enabled:"hsla(11, 68%, 55%, 0.24)",color_outline_primary_danger_hover:"hsla(11, 68%, 55%, 0.48)",color_outline_primary_danger_pressed:"hsla(11, 68%, 55%, 0.72)",color_outline_primary_danger_disabled:"hsla(11, 68%, 55%, 0.16)",color_outline_primary_danger_selected_enabled:"hsla(11, 68%, 55%, 0.96)",color_outline_primary_danger_selected_hover:"hsla(11, 68%, 55%, 0.96)",color_outline_primary_danger_selected_pressed:"hsla(11, 68%, 55%, 0.96)",color_outline_secondary_enabled:"hsla(0, 0%, 0%, 0.16)",color_outline_secondary_hover:"hsla(0, 0%, 0%, 0.32)",color_outline_secondary_pressed:"hsla(0, 0%, 0%, 0.48)",color_outline_secondary_disabled:"hsla(0, 0%, 14%, 0.16)",color_outline_secondary_selected_enabled:"hsla(0, 0%, 0%, 0.6)",color_outline_secondary_selected_hover:"hsla(0, 0%, 0%, 0.72)",color_outline_secondary_selected_pressed:"hsla(0, 0%, 0%, 0.76)",color_outline_inverse_enabled:"hsla(0, 0%, 100%, 0.32)",color_outline_inverse_hover:"hsla(0, 0%, 100%, 0.48)",color_outline_inverse_pressed:"hsla(0, 0%, 100%, 0.56)",color_outline_inverse_disabled:"hsla(0, 0%, 100%, 0.2)",color_outline_inverse_selected_enabled:"hsla(0, 0%, 100%, 0.6)",color_outline_inverse_selected_hover:"hsla(0, 0%, 100%, 0.72)",color_outline_inverse_selected_pressed:"hsla(0, 0%, 100%, 0.8)",color_outline_danger_enabled:"hsl(11, 68%, 55%)",color_outline_danger_hover:"hsla(11, 68%, 55%, 0.9)",color_outline_danger_pressed:"hsla(11, 68%, 55%, 0.9)",color_outline_danger_disabled:"hsla(11, 68%, 55%, 0.32)",color_overlay_secondary_enabled:"hsl(0, 0%, 100%)",color_overlay_secondary_hover:"hsl(0, 0%, 97%)",color_overlay_secondary_pressed:"hsl(0, 0%, 92%)",color_overlay_secondary_selected_enabled:"hsl(0, 0%, 94%)",color_overlay_secondary_selected_hover:"hsl(0, 0%, 91%)",color_overlay_secondary_selected_pressed:"hsl(0, 0%, 88%)",color_overlay_inverse_enabled:"hsl(0, 0%, 0%)",color_overlay_inverse_hover:"hsl(0, 0%, 4%)",color_overlay_inverse_pressed:"hsl(0, 0%, 12%)",color_overlay_inverse_selected_enabled:"hsl(0, 0%, 10%)",color_overlay_inverse_selected_hover:"hsl(0, 0%, 16%)",color_overlay_inverse_selected_pressed:"hsl(0, 0%, 24%)",elevation_static_low:"0px 1px 1px rgba(0, 0, 0, 0.07), 0px 1px 2px rgba(0, 0, 0, 0.08), 0px 2px 2px rgba(0, 0, 0, 0.1), 0px 0px 8px rgba(0, 0, 0, 0.05)",elevation_static_medium:"0px 1px 1px rgba(0, 0, 0, 0.05), 0px 2px 2px rgba(0, 0, 0, 0.05), 0px 5px 5px rgba(0, 0, 0, 0.05), 0px 10px 10px rgba(0, 0, 0, 0.05), 0px 0px 8px rgba(0, 0, 0, 0.05)",elevation_static_high:"0px 2px 4px rgba(0, 0, 0, 0.03), 0px 6px 6px rgba(0, 0, 0, 0.03), 0px 15px 20px rgba(0, 0, 0, 0.03), 0px 30px 40px rgba(0, 0, 0, 0.03), 0px 40px 70px rgba(0, 0, 0, 0.03), 0px 4px 30px rgba(0, 0, 0, 0.03), 0px 0px 8px rgba(0, 0, 0, 0.03)",elevation_interactive_down:"inset 0px 1000px 250px rgba(0, 0, 0, 0.04)",elevation_interactive_low:"0px 1px 1px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.1), 0px 0px 2px rgba(0, 0, 0, 0.07)",elevation_interactive_medium:"0px 1px 1px rgba(0, 0, 0, 0.1), 0px 2px 2px rgba(0, 0, 0, 0.05), 0px 2px 4px rgba(0, 0, 0, 0.07), 0px 1px 4px rgba(0, 0, 0, 0.08)",elevation_interactive_high:"0px 2px 4px rgba(0, 0, 0, 0.05), 0px 3px 5px rgba(0, 0, 0, 0.05), 0px 4px 6px rgba(0, 0, 0, 0.05), 0px 4px 20px rgba(0, 0, 0, 0.05)",z_index_auto:"auto",z_index_below:"-1",z_index_default:"1",z_index_above:"10",z_index_overlay:"1000",font_family_inter:"'Inter', -apple-system, Helvetica, sans-serif",font_family_sans:"'Inter', -apple-system, Helvetica, sans-serif",font_family_inter_display:"'Inter', -apple-system, Helvetica, sans-serif",font_family_monospace:"'SFMono-Regular', Monaco, Consolas, 'Lucida Console', monospace",feature_settings_number:"'tnum' on, 'lnum' on, 'ss01' on",letter_spacing_tight:"-0.006em",letter_spacing_tighter:"-0.01em",letter_spacing_heading_large:"-0.018em",letter_spacing_heading_medium:"-0.016em",letter_spacing_heading_small:"-0.014em",letter_spacing_title_large:"-0.014em",letter_spacing_title_medium:"-0.012em",letter_spacing_title_small:"-0.01em",letter_spacing_title_xsmall:"-0.008em",letter_spacing_label_large:"-0.01em",letter_spacing_label_medium:"normal",letter_spacing_label_small:"-0.006em",letter_spacing_body_large:"-0.01em",letter_spacing_body_medium:"-0.006em",letter_spacing_body_small:"normal",letter_spacing_number_large:"-0.05em",letter_spacing_number_medium:"-0.05em",letter_spacing_number_small:"-0.04em",letter_spacing_number_xsmall:"-0.05em",letter_spacing_caption_medium:"0.01em",letter_spacing_caption_small:"0.02em",line_height_111:1.11,line_height_114:1.14,line_height_129:1.29,line_height_133:1.33,line_height_143:1.43,line_height_title_large:1.06,line_height_title_medium:1.08,line_height_title_small:1.1,line_height_title_xsmall:1.11,line_height_label_large:1.11,line_height_label_medium:1.12,line_height_label_small:1.14,line_height_body_large:1.25,line_height_body_medium:1.29,line_height_body_small:1.33,line_height_number_large:1.25,line_height_number_medium:1.14,line_height_number_small:1.17,line_height_number_xsmall:1.2,line_height_caption_medium:1.17,line_height_caption_small:1.2,font_size_50:"0.75rem",font_size_100:"0.875rem",font_size_200:"1rem",font_size_300:"1.125rem",font_size_400:"1.25rem",font_size_500:"1.5rem",font_size_600:"2rem",font_size_700:"2.75rem",font_size_800:"3.5rem",font_size_root:"16px",font_size_heading_large:"4.5rem",font_size_heading_medium:"3.5rem",font_size_heading_small:"3rem",font_size_title_large:"2.125rem",font_size_title_medium:"1.5rem",font_size_title_small:"1.25rem",font_size_title_xsmall:"1.125rem",font_size_label_large:"1.125rem",font_size_label_medium:"16px",font_size_label_small:"0.875rem",font_size_body_large:"16px",font_size_body_medium:"0.875rem",font_size_body_small:"0.75rem",font_size_number_large:"16px",font_size_number_medium:"0.875rem",font_size_number_small:"0.75rem",font_size_number_xsmall:"0.625rem",font_size_caption_medium:"0.875rem",font_size_caption_small:"0.75rem",font_weight_light:"300",font_weight_normal:"400",font_weight_medium:"500",font_weight_semibold:"600",media_query_xs:"448px",media_query_sm:"720px",media_query_md:"960px",media_query_lg:"1200px",media_query_xl:"1440px",sizing_0:"0rem",sizing_100:"0.25rem",sizing_200:"0.5rem",sizing_300:"0.75rem",sizing_350:"0.875rem",sizing_400:"1rem",sizing_450:"1.25rem",sizing_500:"1.5rem",sizing_550:"1.75rem",sizing_600:"2rem",sizing_650:"2.5rem",sizing_700:"3rem",sizing_750:"3.5rem",sizing_800:"4rem",sizing_850:"6rem",sizing_900:"10rem",sizing_1000:"20rem",sizing_1100:"28rem",sizing_1150:"35rem",sizing_1200:"45rem",sizing_1300:"60rem",sizing_1350:"66rem",sizing_1400:"75rem",sizing_1500:"90rem",spacing_0:"0rem",spacing_100:"0.25rem",spacing_200:"0.5rem",spacing_300:"0.75rem",spacing_400:"1rem",spacing_450:"1.25rem",spacing_500:"1.5rem",spacing_550:"1.75rem",spacing_600:"2rem",spacing_650:"2.5rem",spacing_700:"3rem",spacing_750:"3.5rem",spacing_800:"4rem",spacing_850:"6rem",spacing_900:"10rem",transition_duration_75:"75ms",transition_duration_100:"100ms",transition_duration_150:"150ms",transition_duration_200:"200ms",transition_duration_300:"300ms",transition_property_color:"color, background-color, border-color, text-decoration-color, fill, stroke;",transition_property_all:"all",transition_property_opacity:"opacity",transition_property_box_shadow:"box-shadow",transition_property_transform:"transform",transition_timing_function_ease_in:"cubic-bezier(0.4, 0, 1, 1)",transition_timing_function_ease_out:"cubic-bezier(0, 0, 0.2, 1)",transition_timing_function_ease_in_out:"cubic-bezier(0.4, 0, 0.2, 1)"},Bn=I.keyframes`
|
|
62
|
+
`)},jh=0,Et=[];function Bh(e){var t=W.useRef([]),r=W.useRef([0,0]),n=W.useRef(),o=W.useState(jh++)[0],i=W.useState(function(){return wa()})[0],a=W.useRef(e);W.useEffect(function(){a.current=e},[e]),W.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var m=uh([e.lockRef.current],(e.shards||[]).map(Oa),!0).filter(Boolean);return m.forEach(function(_){return _.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),m.forEach(function(_){return _.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=W.useCallback(function(m,_){if("touches"in m&&m.touches.length===2)return!a.current.allowPinchZoom;var $=Er(m),y=r.current,E="deltaX"in m?m.deltaX:y[0]-$[0],v="deltaY"in m?m.deltaY:y[1]-$[1],A,L=m.target,T=Math.abs(E)>Math.abs(v)?"h":"v";if("touches"in m&&T==="h"&&L.type==="range")return!1;var M=Pa(T,L);if(!M)return!0;if(M?A=T:(A=T==="v"?"h":"v",M=Pa(T,L)),!M)return!1;if(!n.current&&"changedTouches"in m&&(E||v)&&(n.current=A),!A)return!0;var F=n.current||A;return Rh(F,_,m,F==="h"?E:v,!0)},[]),c=W.useCallback(function(m){var _=m;if(!(!Et.length||Et[Et.length-1]!==i)){var $="deltaY"in _?Ta(_):Er(_),y=t.current.filter(function(A){return A.name===_.type&&A.target===_.target&&zh(A.delta,$)})[0];if(y&&y.should){_.cancelable&&_.preventDefault();return}if(!y){var E=(a.current.shards||[]).map(Oa).filter(Boolean).filter(function(A){return A.contains(_.target)}),v=E.length>0?s(_,E[0]):!a.current.noIsolation;v&&_.cancelable&&_.preventDefault()}}},[]),d=W.useCallback(function(m,_,$,y){var E={name:m,delta:_,target:$,should:y};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(v){return v!==E})},1)},[]),f=W.useCallback(function(m){r.current=Er(m),n.current=void 0},[]),p=W.useCallback(function(m){d(m.type,Ta(m),m.target,s(m,e.lockRef.current))},[]),b=W.useCallback(function(m){d(m.type,Er(m),m.target,s(m,e.lockRef.current))},[]);W.useEffect(function(){return Et.push(i),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:b}),document.addEventListener("wheel",c,wt),document.addEventListener("touchmove",c,wt),document.addEventListener("touchstart",f,wt),function(){Et=Et.filter(function(m){return m!==i}),document.removeEventListener("wheel",c,wt),document.removeEventListener("touchmove",c,wt),document.removeEventListener("touchstart",f,wt)}},[]);var h=e.removeScrollBar,g=e.inert;return W.createElement(W.Fragment,null,g?W.createElement(i,{styles:Vh(o)}):null,h?W.createElement(Dh,{gapMode:"margin"}):null)}const Wh=_h(xa,Bh);var ka=W.forwardRef(function(e,t){return W.createElement(xr,Me({},e,{ref:t,sideCar:Wh}))});ka.classNames=xr.classNames;const Ln=ka;var Uh=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},Pt=new WeakMap,Pr=new WeakMap,Sr={},Fn=0,Da=function(e){return e&&(e.host||Da(e.parentNode))},Kh=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Da(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return Boolean(r)})},Hh=function(e,t,r,n){var o=Kh(t,Array.isArray(e)?e:[e]);Sr[r]||(Sr[r]=new WeakMap);var i=Sr[r],a=[],s=new Set,c=new Set(o),d=function(p){!p||s.has(p)||(s.add(p),d(p.parentNode))};o.forEach(d);var f=function(p){!p||c.has(p)||Array.prototype.forEach.call(p.children,function(b){if(s.has(b))f(b);else{var h=b.getAttribute(n),g=h!==null&&h!=="false",m=(Pt.get(b)||0)+1,_=(i.get(b)||0)+1;Pt.set(b,m),i.set(b,_),a.push(b),m===1&&g&&Pr.set(b,!0),_===1&&b.setAttribute(r,"true"),g||b.setAttribute(n,"true")}})};return f(t),s.clear(),Fn++,function(){a.forEach(function(p){var b=Pt.get(p)-1,h=i.get(p)-1;Pt.set(p,b),i.set(p,h),b||(Pr.has(p)||p.removeAttribute(n),Pr.delete(p)),h||p.removeAttribute(r)}),Fn--,Fn||(Pt=new WeakMap,Pt=new WeakMap,Pr=new WeakMap,Sr={})}},Rn=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=t||Uh(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live]"))),Hh(n,o,r,"aria-hidden")):function(){return null}};const Ia="Dialog",[Aa,Na]=Pe(Ia),[Gh,De]=Aa(Ia),qh=e=>{const{__scopeDialog:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:a=!0}=e,s=l.useRef(null),c=l.useRef(null),[d=!1,f]=Ne({prop:n,defaultProp:o,onChange:i});return l.createElement(Gh,{scope:t,triggerRef:s,contentRef:c,contentId:Ue(),titleId:Ue(),descriptionId:Ue(),open:d,onOpenChange:f,onOpenToggle:l.useCallback(()=>f(p=>!p),[f]),modal:a},r)},Yh="DialogTrigger",Xh=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=De(Yh,r),i=se(t,o.triggerRef);return l.createElement(te.button,C({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Vn(o.open)},n,{ref:i,onClick:H(e.onClick,o.onOpenToggle)}))}),Ma="DialogPortal",[Jh,La]=Aa(Ma,{forceMount:void 0}),Zh=e=>{const{__scopeDialog:t,forceMount:r,children:n,container:o}=e,i=De(Ma,t);return l.createElement(Jh,{scope:t,forceMount:r},l.Children.map(n,a=>l.createElement(ke,{present:r||i.open},l.createElement(Gt,{asChild:!0,container:o},a))))},zn="DialogOverlay",Qh=l.forwardRef((e,t)=>{const r=La(zn,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=De(zn,e.__scopeDialog);return i.modal?l.createElement(ke,{present:n||i.open},l.createElement(e0,C({},o,{ref:t}))):null}),e0=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=De(zn,r);return l.createElement(Ln,{as:dt,allowPinchZoom:!0,shards:[o.contentRef]},l.createElement(te.div,C({"data-state":Vn(o.open)},n,{ref:t,style:{pointerEvents:"auto",...n.style}})))}),St="DialogContent",t0=l.forwardRef((e,t)=>{const r=La(St,e.__scopeDialog),{forceMount:n=r.forceMount,...o}=e,i=De(St,e.__scopeDialog);return l.createElement(ke,{present:n||i.open},i.modal?l.createElement(r0,C({},o,{ref:t})):l.createElement(n0,C({},o,{ref:t})))}),r0=l.forwardRef((e,t)=>{const r=De(St,e.__scopeDialog),n=l.useRef(null),o=se(t,r.contentRef,n);return l.useEffect(()=>{const i=n.current;if(i)return Rn(i)},[]),l.createElement(Fa,C({},e,{ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:H(e.onCloseAutoFocus,i=>{var a;i.preventDefault(),(a=r.triggerRef.current)===null||a===void 0||a.focus()}),onPointerDownOutside:H(e.onPointerDownOutside,i=>{const a=i.detail.originalEvent,s=a.button===0&&a.ctrlKey===!0;(a.button===2||s)&&i.preventDefault()}),onFocusOutside:H(e.onFocusOutside,i=>i.preventDefault())}))}),n0=l.forwardRef((e,t)=>{const r=De(St,e.__scopeDialog),n=l.useRef(!1);return l.createElement(Fa,C({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var i;if((i=e.onCloseAutoFocus)===null||i===void 0||i.call(e,o),!o.defaultPrevented){var a;n.current||(a=r.triggerRef.current)===null||a===void 0||a.focus(),o.preventDefault()}n.current=!1},onInteractOutside:o=>{var i,a;(i=e.onInteractOutside)===null||i===void 0||i.call(e,o),o.defaultPrevented||(n.current=!0);const s=o.target;((a=r.triggerRef.current)===null||a===void 0?void 0:a.contains(s))&&o.preventDefault()}}))}),Fa=l.forwardRef((e,t)=>{const{__scopeDialog:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,...a}=e,s=De(St,r),c=l.useRef(null),d=se(t,c);return In(),l.createElement(l.Fragment,null,l.createElement(kn,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i},l.createElement(Ht,C({role:"dialog",id:s.contentId,"aria-describedby":s.descriptionId,"aria-labelledby":s.titleId,"data-state":Vn(s.open)},a,{ref:d,onDismiss:()=>s.onOpenChange(!1)}))),!1)}),Ra="DialogTitle",o0=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=De(Ra,r);return l.createElement(te.h2,C({id:o.titleId},n,{ref:t}))}),i0="DialogDescription",a0=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=De(i0,r);return l.createElement(te.p,C({id:o.descriptionId},n,{ref:t}))}),s0="DialogClose",l0=l.forwardRef((e,t)=>{const{__scopeDialog:r,...n}=e,o=De(s0,r);return l.createElement(te.button,C({type:"button"},n,{ref:t,onClick:H(e.onClick,()=>o.onOpenChange(!1))}))});function Vn(e){return e?"open":"closed"}const c0="DialogTitleWarning",[u0,xE]=Vp(c0,{contentName:St,titleName:Ra,docsSlug:"dialog"}),za=qh,Va=Xh,ja=Zh,Ba=Qh,Wa=t0,Ua=o0,Ka=a0,jn=l0,d0="AlertDialog",[f0,wE]=Pe(d0,[Na]),Ke=Na(),p0=e=>{const{__scopeAlertDialog:t,...r}=e,n=Ke(t);return l.createElement(za,C({},n,r,{modal:!0}))},h0=l.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=Ke(r);return l.createElement(Va,C({},o,n,{ref:t}))}),m0=e=>{const{__scopeAlertDialog:t,...r}=e,n=Ke(t);return l.createElement(ja,C({},n,r))},b0=l.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=Ke(r);return l.createElement(Ba,C({},o,n,{ref:t}))}),Ha="AlertDialogContent",[g0,v0]=f0(Ha),_0=l.forwardRef((e,t)=>{const{__scopeAlertDialog:r,children:n,...o}=e,i=Ke(r),a=l.useRef(null),s=se(t,a),c=l.useRef(null);return l.createElement(u0,{contentName:Ha,titleName:y0,docsSlug:"alert-dialog"},l.createElement(g0,{scope:r,cancelRef:c},l.createElement(Wa,C({role:"alertdialog"},i,o,{ref:s,onOpenAutoFocus:H(o.onOpenAutoFocus,d=>{var f;d.preventDefault(),(f=c.current)===null||f===void 0||f.focus({preventScroll:!0})}),onPointerDownOutside:d=>d.preventDefault(),onInteractOutside:d=>d.preventDefault()}),l.createElement(Sn,null,n),!1)))}),y0="AlertDialogTitle",$0=l.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=Ke(r);return l.createElement(Ua,C({},o,n,{ref:t}))}),x0=l.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=Ke(r);return l.createElement(Ka,C({},o,n,{ref:t}))}),w0=l.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,o=Ke(r);return l.createElement(jn,C({},o,n,{ref:t}))}),E0="AlertDialogCancel",P0=l.forwardRef((e,t)=>{const{__scopeAlertDialog:r,...n}=e,{cancelRef:o}=v0(E0,r),i=Ke(r),a=se(t,o);return l.createElement(jn,C({},i,n,{ref:a}))}),S0=p0,C0=h0,T0=m0,O0=b0,k0=_0,D0=w0,I0=P0,A0=$0,N0=x0,u={border_radius_0:"0",border_radius_100:"1px",border_radius_200:"2px",border_radius_400:"4px",border_radius_800:"8px",border_radius_pill:"9999em",border_radius_circle:"50%",border_width_0:"0",border_width_100:"1px",border_width_200:"2px",color_gray_4:"hsl(0, 0%, 4%)",color_gray_8:"hsl(0, 0%, 8%)",color_gray_10:"hsl(0, 0%, 10%)",color_gray_12:"hsl(0, 0%, 12%)",color_gray_14:"hsl(0, 0%, 14%)",color_gray_16:"hsl(0, 0%, 16%)",color_gray_24:"hsl(0, 0%, 24%)",color_gray_32:"hsl(0, 0%, 32%)",color_gray_56:"hsl(0, 0%, 56%)",color_gray_64:"hsl(0, 0%, 64%)",color_gray_84:"hsl(0, 0%, 84%)",color_gray_94:"hsl(0, 0% 94%)",color_gray_96:"hsl(0, 0%, 96%)",color_white:"hsl(0, 0%, 100%)",color_black:"hsl(0, 0%, 0%)",color_background_white_standard:"hsl(0, 0%, 100%)",color_background_white_strong:"hsl(0, 0% 94%)",color_background_white_weak:"hsl(0, 0%, 96%)",color_background_black_standard:"hsl(0, 0%, 16%)",color_background_black_strong:"hsl(0, 0%, 8%)",color_background_black_weak:"hsl(0, 0%, 12%)",color_background_sentiment_negative:"hsl(11, 68%, 55%)",color_background_sentiment_positive:"hsl(54, 63% 52%)",color_background_sentiment_notice:"hsl(29, 74% 53%)",color_background_sentiment_neutral:"hsl(0, 0%, 10%)",color_divider_standard:"hsla(0, 0%, 0%, 12%)",color_divider_strong:"hsla(0, 0%, 0%, 16%)",color_divider_weak:"hsla(0, 0%, 0%, 8%)",color_divider_inverse_standard:"hsla(0, 0%, 1000%, 32%)",color_divider_inverse_strong:"hsla(0, 0%, 100%, 48%)",color_divider_inverse_weak:"hsla(0, 0%, 100%, 24%)",color_text_standard:"hsl(0, 0%, 32%)",color_text_strong:"hsl(0, 0%, 0%)",color_text_weak:"hsl(0, 0%, 56%)",color_text_white_standard:"hsl(0, 0%, 84%)",color_text_white_strong:"hsl(0, 0%, 100%)",color_text_white_weak:"hsl(0, 0%, 64%)",color_text_sentiment_negative:"hsl(11, 68%, 55%)",color_text_sentiment_positive:"hsl(54, 63%, 52%)",color_text_sentiment_notice:"hsl(29, 67%, 47%)",color_text_sentiment_neutral:"hsl(0, 0%, 24%)",color_fill_primary_enabled:"hsla(0, 0%, 8%, 1)",color_fill_primary_hover:"hsl(210, 5%, 16%)",color_fill_primary_pressed:"hsl(210, 3%, 28%)",color_fill_primary_disabled:"hsla(0, 0%, 8%, 0.2)",color_fill_secondary_enabled:"hsla(0, 0%, 0%, 0.06)",color_fill_secondary_hover:"hsla(0, 0%, 0%, 0.12)",color_fill_secondary_pressed:"hsla(0, 0%, 0%, 0.2)",color_fill_secondary_disabled:"hsla(0, 0%, 88%, 0.5)",color_fill_inverse_enabled:"hsl(0, 0%, 100%)",color_fill_inverse_hover:"hsl(0, 0%, 94%)",color_fill_inverse_pressed:"hsl(0, 0%, 90%)",color_fill_inverse_disabled:"hsla(0, 0%, 98%, 0.4)",color_fill_danger_enabled:"hsl(11, 68%, 55%)",color_fill_danger_hover:"hsl(11, 57%, 51%)",color_fill_danger_pressed:"hsl(11, 55%, 48%)",color_fill_danger_disabled:"hsla(11, 68%, 55%, 0.2)",color_outline_primary_danger_enabled:"hsla(11, 68%, 55%, 0.24)",color_outline_primary_danger_hover:"hsla(11, 68%, 55%, 0.48)",color_outline_primary_danger_pressed:"hsla(11, 68%, 55%, 0.72)",color_outline_primary_danger_disabled:"hsla(11, 68%, 55%, 0.16)",color_outline_primary_danger_selected_enabled:"hsla(11, 68%, 55%, 0.96)",color_outline_primary_danger_selected_hover:"hsla(11, 68%, 55%, 0.96)",color_outline_primary_danger_selected_pressed:"hsla(11, 68%, 55%, 0.96)",color_outline_secondary_enabled:"hsla(0, 0%, 0%, 0.16)",color_outline_secondary_hover:"hsla(0, 0%, 0%, 0.32)",color_outline_secondary_pressed:"hsla(0, 0%, 0%, 0.48)",color_outline_secondary_disabled:"hsla(0, 0%, 14%, 0.16)",color_outline_secondary_selected_enabled:"hsla(0, 0%, 0%, 0.6)",color_outline_secondary_selected_hover:"hsla(0, 0%, 0%, 0.72)",color_outline_secondary_selected_pressed:"hsla(0, 0%, 0%, 0.76)",color_outline_inverse_enabled:"hsla(0, 0%, 100%, 0.32)",color_outline_inverse_hover:"hsla(0, 0%, 100%, 0.48)",color_outline_inverse_pressed:"hsla(0, 0%, 100%, 0.56)",color_outline_inverse_disabled:"hsla(0, 0%, 100%, 0.2)",color_outline_inverse_selected_enabled:"hsla(0, 0%, 100%, 0.6)",color_outline_inverse_selected_hover:"hsla(0, 0%, 100%, 0.72)",color_outline_inverse_selected_pressed:"hsla(0, 0%, 100%, 0.8)",color_outline_danger_enabled:"hsl(11, 68%, 55%)",color_outline_danger_hover:"hsla(11, 68%, 55%, 0.9)",color_outline_danger_pressed:"hsla(11, 68%, 55%, 0.9)",color_outline_danger_disabled:"hsla(11, 68%, 55%, 0.32)",color_overlay_secondary_enabled:"hsl(0, 0%, 100%)",color_overlay_secondary_hover:"hsl(0, 0%, 97%)",color_overlay_secondary_pressed:"hsl(0, 0%, 92%)",color_overlay_secondary_selected_enabled:"hsl(0, 0%, 94%)",color_overlay_secondary_selected_hover:"hsl(0, 0%, 91%)",color_overlay_secondary_selected_pressed:"hsl(0, 0%, 88%)",color_overlay_inverse_enabled:"hsl(0, 0%, 0%)",color_overlay_inverse_hover:"hsl(0, 0%, 4%)",color_overlay_inverse_pressed:"hsl(0, 0%, 12%)",color_overlay_inverse_selected_enabled:"hsl(0, 0%, 10%)",color_overlay_inverse_selected_hover:"hsl(0, 0%, 16%)",color_overlay_inverse_selected_pressed:"hsl(0, 0%, 24%)",elevation_static_low:"0px 1px 1px rgba(0, 0, 0, 0.07), 0px 1px 2px rgba(0, 0, 0, 0.08), 0px 2px 2px rgba(0, 0, 0, 0.1), 0px 0px 8px rgba(0, 0, 0, 0.05)",elevation_static_medium:"0px 1px 1px rgba(0, 0, 0, 0.05), 0px 2px 2px rgba(0, 0, 0, 0.05), 0px 5px 5px rgba(0, 0, 0, 0.05), 0px 10px 10px rgba(0, 0, 0, 0.05), 0px 0px 8px rgba(0, 0, 0, 0.05)",elevation_static_high:"0px 2px 4px rgba(0, 0, 0, 0.03), 0px 6px 6px rgba(0, 0, 0, 0.03), 0px 15px 20px rgba(0, 0, 0, 0.03), 0px 30px 40px rgba(0, 0, 0, 0.03), 0px 40px 70px rgba(0, 0, 0, 0.03), 0px 4px 30px rgba(0, 0, 0, 0.03), 0px 0px 8px rgba(0, 0, 0, 0.03)",elevation_interactive_down:"inset 0px 1000px 250px rgba(0, 0, 0, 0.04)",elevation_interactive_low:"0px 1px 1px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.1), 0px 0px 2px rgba(0, 0, 0, 0.07)",elevation_interactive_medium:"0px 1px 1px rgba(0, 0, 0, 0.1), 0px 2px 2px rgba(0, 0, 0, 0.05), 0px 2px 4px rgba(0, 0, 0, 0.07), 0px 1px 4px rgba(0, 0, 0, 0.08)",elevation_interactive_high:"0px 2px 4px rgba(0, 0, 0, 0.05), 0px 3px 5px rgba(0, 0, 0, 0.05), 0px 4px 6px rgba(0, 0, 0, 0.05), 0px 4px 20px rgba(0, 0, 0, 0.05)",z_index_auto:"auto",z_index_below:"-1",z_index_default:"1",z_index_above:"10",z_index_overlay:"1000",font_family_inter:"'Inter', -apple-system, Helvetica, sans-serif",font_family_sans:"'Inter', -apple-system, Helvetica, sans-serif",font_family_inter_display:"'Inter', -apple-system, Helvetica, sans-serif",font_family_monospace:"'SFMono-Regular', Monaco, Consolas, 'Lucida Console', monospace",feature_settings_number:"'tnum' on, 'lnum' on, 'ss01' on",letter_spacing_tight:"-0.006em",letter_spacing_tighter:"-0.01em",letter_spacing_heading_large:"-0.018em",letter_spacing_heading_medium:"-0.016em",letter_spacing_heading_small:"-0.014em",letter_spacing_title_large:"-0.014em",letter_spacing_title_medium:"-0.012em",letter_spacing_title_small:"-0.01em",letter_spacing_title_xsmall:"-0.008em",letter_spacing_label_large:"-0.01em",letter_spacing_label_medium:"normal",letter_spacing_label_small:"-0.006em",letter_spacing_body_large:"-0.01em",letter_spacing_body_medium:"-0.006em",letter_spacing_body_small:"normal",letter_spacing_number_large:"-0.05em",letter_spacing_number_medium:"-0.05em",letter_spacing_number_small:"-0.04em",letter_spacing_number_xsmall:"-0.05em",letter_spacing_caption_medium:"0.01em",letter_spacing_caption_small:"0.02em",line_height_111:1.11,line_height_114:1.14,line_height_129:1.29,line_height_133:1.33,line_height_143:1.43,line_height_title_large:1.06,line_height_title_medium:1.08,line_height_title_small:1.1,line_height_title_xsmall:1.11,line_height_label_large:1.11,line_height_label_medium:1.12,line_height_label_small:1.14,line_height_body_large:1.25,line_height_body_medium:1.29,line_height_body_small:1.33,line_height_number_large:1.25,line_height_number_medium:1.14,line_height_number_small:1.17,line_height_number_xsmall:1.2,line_height_caption_medium:1.17,line_height_caption_small:1.2,font_size_50:"0.75rem",font_size_100:"0.875rem",font_size_200:"1rem",font_size_300:"1.125rem",font_size_400:"1.25rem",font_size_500:"1.5rem",font_size_600:"2rem",font_size_700:"2.75rem",font_size_800:"3.5rem",font_size_root:"16px",font_size_heading_large:"4.5rem",font_size_heading_medium:"3.5rem",font_size_heading_small:"3rem",font_size_title_large:"2.125rem",font_size_title_medium:"1.5rem",font_size_title_small:"1.25rem",font_size_title_xsmall:"1.125rem",font_size_label_large:"1.125rem",font_size_label_medium:"16px",font_size_label_small:"0.875rem",font_size_body_large:"16px",font_size_body_medium:"0.875rem",font_size_body_small:"0.75rem",font_size_number_large:"16px",font_size_number_medium:"0.875rem",font_size_number_small:"0.75rem",font_size_number_xsmall:"0.625rem",font_size_caption_medium:"0.875rem",font_size_caption_small:"0.75rem",font_weight_light:"300",font_weight_normal:"400",font_weight_medium:"500",font_weight_semibold:"600",media_query_xs:"448px",media_query_sm:"720px",media_query_md:"960px",media_query_lg:"1200px",media_query_xl:"1440px",sizing_0:"0rem",sizing_100:"0.25rem",sizing_200:"0.5rem",sizing_300:"0.75rem",sizing_350:"0.875rem",sizing_400:"1rem",sizing_450:"1.25rem",sizing_500:"1.5rem",sizing_550:"1.75rem",sizing_600:"2rem",sizing_650:"2.5rem",sizing_700:"3rem",sizing_750:"3.5rem",sizing_800:"4rem",sizing_850:"6rem",sizing_900:"10rem",sizing_1000:"20rem",sizing_1100:"28rem",sizing_1150:"35rem",sizing_1200:"45rem",sizing_1300:"60rem",sizing_1350:"66rem",sizing_1400:"75rem",sizing_1500:"90rem",spacing_0:"0rem",spacing_100:"0.25rem",spacing_200:"0.5rem",spacing_300:"0.75rem",spacing_400:"1rem",spacing_450:"1.25rem",spacing_500:"1.5rem",spacing_550:"1.75rem",spacing_600:"2rem",spacing_650:"2.5rem",spacing_700:"3rem",spacing_750:"3.5rem",spacing_800:"4rem",spacing_850:"6rem",spacing_900:"10rem",transition_duration_75:"75ms",transition_duration_100:"100ms",transition_duration_150:"150ms",transition_duration_200:"200ms",transition_duration_300:"300ms",transition_property_color:"color, background-color, border-color, text-decoration-color, fill, stroke;",transition_property_all:"all",transition_property_opacity:"opacity",transition_property_box_shadow:"box-shadow",transition_property_transform:"transform",transition_timing_function_ease_in:"cubic-bezier(0.4, 0, 1, 1)",transition_timing_function_ease_out:"cubic-bezier(0, 0, 0.2, 1)",transition_timing_function_ease_in_out:"cubic-bezier(0.4, 0, 0.2, 1)"},Bn=I.keyframes`
|
|
63
63
|
0% {
|
|
64
64
|
opacity: 0;
|
|
65
65
|
}
|
|
@@ -77,19 +77,21 @@ Check the top-level render call using <`+U+">.")}return z}}function Ut(x,z){{if(
|
|
|
77
77
|
opacity: 1;
|
|
78
78
|
transform: translate(-50%, -50%) scale(1);
|
|
79
79
|
}
|
|
80
|
-
`,
|
|
81
|
-
--overlay-opacity: 0.
|
|
82
|
-
background-color:
|
|
80
|
+
`,M0=I(Ba)`
|
|
81
|
+
--overlay-opacity: 0.6;
|
|
82
|
+
background-color: ${u.color_fill_secondary_enabled};
|
|
83
83
|
opacity: var(--overlay-opacity);
|
|
84
84
|
position: fixed;
|
|
85
85
|
inset: 0;
|
|
86
86
|
z-index: 4;
|
|
87
87
|
animation: ${Bn} 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
88
|
-
`,Un={small:"360px",medium:"540px",large:"960px"},
|
|
88
|
+
`,Un={small:"360px",medium:"540px",large:"960px"},L0=I(Wa)`
|
|
89
89
|
background: ${u.color_white};
|
|
90
90
|
padding: ${u.sizing_500};
|
|
91
91
|
width: ${e=>Un[e.size??"medium"]};
|
|
92
92
|
max-width: 100vw;
|
|
93
|
+
max-height: 85vh;
|
|
94
|
+
overflow: auto;
|
|
93
95
|
min-width: min(200px, 100%);
|
|
94
96
|
position: fixed;
|
|
95
97
|
top: 50%;
|
|
@@ -99,7 +101,7 @@ Check the top-level render call using <`+U+">.")}return z}}function Ut(x,z){{if(
|
|
|
99
101
|
box-shadow: ${u.elevation_static_high};
|
|
100
102
|
border-radius: ${u.border_radius_400};
|
|
101
103
|
animation: ${Wn} 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
102
|
-
`;function
|
|
104
|
+
`;function F0({children:e,size:t,...r}){return le(ja,{children:[k(M0,{}),k(L0,{size:t,...r,children:e})]})}const R0=I(Ua)`
|
|
103
105
|
font-family: ${u.font_family_sans};
|
|
104
106
|
font-style: normal;
|
|
105
107
|
font-weight: 500;
|
|
@@ -109,7 +111,7 @@ Check the top-level render call using <`+U+">.")}return z}}function Ut(x,z){{if(
|
|
|
109
111
|
margin: 0;
|
|
110
112
|
margin-bottom: ${u.spacing_200};
|
|
111
113
|
color: ${u.color_text_strong};
|
|
112
|
-
`,
|
|
114
|
+
`,z0=I(Ka)`
|
|
113
115
|
font-family: ${u.font_family_sans};
|
|
114
116
|
font-style: normal;
|
|
115
117
|
font-weight: 400;
|
|
@@ -118,12 +120,12 @@ Check the top-level render call using <`+U+">.")}return z}}function Ut(x,z){{if(
|
|
|
118
120
|
margin: 0;
|
|
119
121
|
margin-top: ${u.sizing_200}; /* or flex parent and gap? */
|
|
120
122
|
margin-bottom: ${u.sizing_400};
|
|
121
|
-
`,
|
|
123
|
+
`,V0=I.footer`
|
|
122
124
|
margin-top: ${u.spacing_400};
|
|
123
125
|
display: flex;
|
|
124
126
|
justify-content: end;
|
|
125
127
|
gap: ${u.sizing_200};
|
|
126
|
-
`,
|
|
128
|
+
`,j0=I.button`
|
|
127
129
|
all: unset;
|
|
128
130
|
font-family: inherit;
|
|
129
131
|
height: 25px;
|
|
@@ -145,20 +147,22 @@ Check the top-level render call using <`+U+">.")}return z}}function Ut(x,z){{if(
|
|
|
145
147
|
color: ${u.color_fill_primary_hover};
|
|
146
148
|
background-color: hsl(0deg 0% 0% / 3%); /* Figma says Interactive / Overlay / Secondary / Hover? */
|
|
147
149
|
}
|
|
148
|
-
`,
|
|
149
|
-
--overlay-opacity: 0.
|
|
150
|
-
background-color:
|
|
150
|
+
`,B0=za,W0=Va,U0=jn,K0=I(O0)`
|
|
151
|
+
--overlay-opacity: 0.6;
|
|
152
|
+
background-color: ${u.color_fill_secondary_enabled};
|
|
151
153
|
opacity: var(--overlay-opacity);
|
|
152
154
|
position: fixed;
|
|
153
155
|
inset: 0;
|
|
154
156
|
z-index: 4;
|
|
155
157
|
animation: ${Bn} 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
156
|
-
`,
|
|
158
|
+
`,H0=I(k0)`
|
|
157
159
|
background: ${u.color_white};
|
|
158
160
|
padding: ${u.sizing_500};
|
|
159
161
|
width: ${e=>Un[e.size??"medium"]};
|
|
160
|
-
max-width: 100vw;
|
|
161
|
-
|
|
162
|
+
max-width: 100vw;
|
|
163
|
+
max-height: 85vh;
|
|
164
|
+
overflow: auto;
|
|
165
|
+
min-width: min(200px, 100%);
|
|
162
166
|
position: fixed;
|
|
163
167
|
top: 50%;
|
|
164
168
|
left: 50%;
|
|
@@ -167,7 +171,7 @@ Check the top-level render call using <`+U+">.")}return z}}function Ut(x,z){{if(
|
|
|
167
171
|
box-shadow: ${u.elevation_static_high};
|
|
168
172
|
border-radius: ${u.border_radius_400};
|
|
169
173
|
animation: ${Wn} 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
170
|
-
`;function
|
|
174
|
+
`;function G0({children:e,size:t,...r}){return le(T0,{children:[k(K0,{}),k(H0,{size:t,...r,children:e})]})}const q0=I(A0)`
|
|
171
175
|
font-family: ${u.font_family_sans};
|
|
172
176
|
font-style: normal;
|
|
173
177
|
font-weight: 500;
|
|
@@ -177,7 +181,7 @@ Check the top-level render call using <`+U+">.")}return z}}function Ut(x,z){{if(
|
|
|
177
181
|
margin: 0;
|
|
178
182
|
margin-bottom: ${u.spacing_200};
|
|
179
183
|
color: ${u.color_text_strong};
|
|
180
|
-
`,
|
|
184
|
+
`,Y0=I(N0)`
|
|
181
185
|
font-family: ${u.font_family_sans};
|
|
182
186
|
font-style: normal;
|
|
183
187
|
font-weight: 400;
|
|
@@ -186,21 +190,20 @@ Check the top-level render call using <`+U+">.")}return z}}function Ut(x,z){{if(
|
|
|
186
190
|
margin: 0;
|
|
187
191
|
margin-top: ${u.sizing_200}; /* or flex parent and gap? */
|
|
188
192
|
margin-bottom: ${u.sizing_400};
|
|
189
|
-
`,
|
|
193
|
+
`,X0=I.footer`
|
|
190
194
|
margin-top: ${u.sizing_400};
|
|
191
195
|
display: flex;
|
|
192
196
|
justify-content: end;
|
|
193
197
|
gap: ${u.sizing_200};
|
|
194
|
-
`,X0=P0,J0=S0,Z0=k0,Q0=D0,Cr=l.forwardRef((e,t)=>l.createElement(te.span,C({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),Ga=Cr,em=({children:e,label:t})=>{const r=l.Children.only(e);return l.createElement(l.Fragment,null,l.cloneElement(r,{"aria-hidden":"true",focusable:"false"}),l.createElement(Ga,null,t))};function qt({children:e,label:t}){return k(em,{label:t,children:e})}function Ct(e){return e.split("-")[0]}function Tr(e){return e.split("-")[1]}function Tt(e){return["top","bottom"].includes(Ct(e))?"x":"y"}function Kn(e){return e==="y"?"height":"width"}function qa(e,t,r){let{reference:n,floating:o}=e;const i=n.x+n.width/2-o.width/2,a=n.y+n.height/2-o.height/2,s=Tt(t),c=Kn(s),d=n[c]/2-o[c]/2,f=Ct(t),p=s==="x";let b;switch(f){case"top":b={x:i,y:n.y-o.height};break;case"bottom":b={x:i,y:n.y+n.height};break;case"right":b={x:n.x+n.width,y:a};break;case"left":b={x:n.x-o.width,y:a};break;default:b={x:n.x,y:n.y}}switch(Tr(t)){case"start":b[s]-=d*(r&&p?-1:1);break;case"end":b[s]+=d*(r&&p?-1:1);break}return b}const tm=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,s=await(a.isRTL==null?void 0:a.isRTL(t));if(process.env.NODE_ENV!=="production"&&(a==null&&console.error(["Floating UI: `platform` property was not passed to config. If you","want to use Floating UI on the web, install @floating-ui/dom","instead of the /core package. Otherwise, you can create your own","`platform`: https://floating-ui.com/docs/platform"].join(" ")),i.filter(g=>{let{name:m}=g;return m==="autoPlacement"||m==="flip"}).length>1))throw new Error(["Floating UI: duplicate `flip` and/or `autoPlacement`","middleware detected. This will lead to an infinite loop. Ensure only","one of either has been passed to the `middleware` array."].join(" "));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=qa(c,n,s),p=n,b={},h=0;for(let g=0;g<i.length;g++){const{name:m,fn:_}=i[g],{x:$,y,data:E,reset:v}=await _({x:d,y:f,initialPlacement:n,placement:p,strategy:o,middlewareData:b,rects:c,platform:a,elements:{reference:e,floating:t}});if(d=$??d,f=y??f,b={...b,[m]:{...b[m],...E}},process.env.NODE_ENV!=="production"&&h>50&&console.warn(["Floating UI: The middleware lifecycle appears to be running in an","infinite loop. This is usually caused by a `reset` continually","being returned without a break condition."].join(" ")),v&&h<=50){h++,typeof v=="object"&&(v.placement&&(p=v.placement),v.rects&&(c=v.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):v.rects),{x:d,y:f}=qa(c,p,s)),g=-1;continue}}return{x:d,y:f,placement:p,strategy:o,middlewareData:b}};function rm(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ya(e){return typeof e!="number"?rm(e):{top:e,right:e,bottom:e,left:e}}function Or(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function kr(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:b=!1,padding:h=0}=t,g=Ya(h),_=s[b?p==="floating"?"reference":"floating":p],$=Or(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(_)))==null||r?_:_.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:d,rootBoundary:f,strategy:c})),y=Or(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:p==="floating"?{...a.floating,x:n,y:o}:a.reference,offsetParent:await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),strategy:c}):a[p]);return{top:$.top-y.top+g.top,bottom:y.bottom-$.bottom+g.bottom,left:$.left-y.left+g.left,right:y.right-$.right+g.right}}const nm=Math.min,om=Math.max;function Hn(e,t,r){return om(e,nm(t,r))}const Xa=e=>({name:"arrow",options:e,async fn(t){const{element:r,padding:n=0}=e??{},{x:o,y:i,placement:a,rects:s,platform:c}=t;if(r==null)return process.env.NODE_ENV!=="production"&&console.warn("Floating UI: No `element` was passed to the `arrow` middleware."),{};const d=Ya(n),f={x:o,y:i},p=Tt(a),b=Tr(a),h=Kn(p),g=await c.getDimensions(r),m=p==="y"?"top":"left",_=p==="y"?"bottom":"right",$=s.reference[h]+s.reference[p]-f[p]-s.floating[h],y=f[p]-s.reference[p],E=await(c.getOffsetParent==null?void 0:c.getOffsetParent(r));let v=E?p==="y"?E.clientHeight||0:E.clientWidth||0:0;v===0&&(v=s.floating[h]);const A=$/2-y/2,L=d[m],T=v-g[h]-d[_],M=v/2-g[h]/2+A,F=Hn(L,M,T),q=(b==="start"?d[m]:d[_])>0&&M!==F&&s.reference[h]<=s.floating[h]?M<L?L-M:T-M:0;return{[p]:f[p]-q,data:{[p]:F,centerOffset:M-F}}}}),im={left:"right",right:"left",bottom:"top",top:"bottom"};function Dr(e){return e.replace(/left|right|bottom|top/g,t=>im[t])}function am(e,t,r){r===void 0&&(r=!1);const n=Tr(e),o=Tt(e),i=Kn(o);let a=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Dr(a)),{main:a,cross:Dr(a)}}const sm={start:"end",end:"start"};function Ja(e){return e.replace(/start|end/g,t=>sm[t])}const lm=["top","right","bottom","left"];function cm(e){const t=Dr(e);return[Ja(e),t,Ja(t)]}const um=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r;const{placement:n,middlewareData:o,rects:i,initialPlacement:a,platform:s,elements:c}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:b="bestFit",flipAlignment:h=!0,...g}=e,m=Ct(n),$=p||(m===a||!h?[Dr(a)]:cm(a)),y=[a,...$],E=await kr(t,g),v=[];let A=((r=o.flip)==null?void 0:r.overflows)||[];if(d&&v.push(E[m]),f){const{main:F,cross:G}=am(n,i,await(s.isRTL==null?void 0:s.isRTL(c.floating)));v.push(E[F],E[G])}if(A=[...A,{placement:n,overflows:v}],!v.every(F=>F<=0)){var L,T;const F=((L=(T=o.flip)==null?void 0:T.index)!=null?L:0)+1,G=y[F];if(G)return{data:{index:F,overflows:A},reset:{placement:G}};let S="bottom";switch(b){case"bestFit":{var M;const q=(M=A.map(D=>[D,D.overflows.filter(P=>P>0).reduce((P,ee)=>P+ee,0)]).sort((D,P)=>D[1]-P[1])[0])==null?void 0:M[0].placement;q&&(S=q);break}case"initialPlacement":S=a;break}if(n!==S)return{reset:{placement:S}}}return{}}}};function Za(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Qa(e){return lm.some(t=>e[t]>=0)}const dm=function(e){let{strategy:t="referenceHidden",...r}=e===void 0?{}:e;return{name:"hide",async fn(n){const{rects:o}=n;switch(t){case"referenceHidden":{const i=await kr(n,{...r,elementContext:"reference"}),a=Za(i,o.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Qa(a)}}}case"escaped":{const i=await kr(n,{...r,altBoundary:!0}),a=Za(i,o.floating);return{data:{escapedOffsets:a,escaped:Qa(a)}}}default:return{}}}}};async function fm(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),a=Ct(r),s=Tr(r),c=Tt(r)==="x",d=["left","top"].includes(a)?-1:1,f=i&&c?-1:1,p=typeof t=="function"?t(e):t;let{mainAxis:b,crossAxis:h,alignmentAxis:g}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return s&&typeof g=="number"&&(h=s==="end"?g*-1:g),c?{x:h*f,y:b*d}:{x:b*d,y:h*f}}const pm=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:r,y:n}=t,o=await fm(t,e);return{x:r+o.x,y:n+o.y,data:o}}}};function es(e){return e==="x"?"y":"x"}const hm=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:_=>{let{x:$,y}=_;return{x:$,y}}},...c}=e,d={x:r,y:n},f=await kr(t,c),p=Tt(Ct(o)),b=es(p);let h=d[p],g=d[b];if(i){const _=p==="y"?"top":"left",$=p==="y"?"bottom":"right",y=h+f[_],E=h-f[$];h=Hn(y,h,E)}if(a){const _=b==="y"?"top":"left",$=b==="y"?"bottom":"right",y=g+f[_],E=g-f[$];g=Hn(y,g,E)}const m=s.fn({...t,[p]:h,[b]:g});return{...m,data:{x:m.x-r,y:m.y-n}}}}},mm=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:c=!0,crossAxis:d=!0}=e,f={x:r,y:n},p=Tt(o),b=es(p);let h=f[p],g=f[b];const m=typeof s=="function"?s({...i,placement:o}):s,_=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const A=p==="y"?"height":"width",L=i.reference[p]-i.floating[A]+_.mainAxis,T=i.reference[p]+i.reference[A]-_.mainAxis;h<L?h=L:h>T&&(h=T)}if(d){var $,y,E,v;const A=p==="y"?"width":"height",L=["top","left"].includes(Ct(o)),T=i.reference[b]-i.floating[A]+(L&&($=(y=a.offset)==null?void 0:y[b])!=null?$:0)+(L?0:_.crossAxis),M=i.reference[b]+i.reference[A]+(L?0:(E=(v=a.offset)==null?void 0:v[b])!=null?E:0)-(L?_.crossAxis:0);g<T?g=T:g>M&&(g=M)}return{[p]:h,[b]:g}}}};function ts(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function He(e){if(e==null)return window;if(!ts(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Yt(e){return He(e).getComputedStyle(e)}function Ge(e){return ts(e)?"":e?(e.nodeName||"").toLowerCase():""}function rs(){const e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(t=>t.brand+"/"+t.version).join(" "):navigator.userAgent}function Le(e){return e instanceof He(e).HTMLElement}function Qe(e){return e instanceof He(e).Element}function bm(e){return e instanceof He(e).Node}function Gn(e){if(typeof ShadowRoot>"u")return!1;const t=He(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Ir(e){const{overflow:t,overflowX:r,overflowY:n}=Yt(e);return/auto|scroll|overlay|hidden/.test(t+n+r)}function gm(e){return["table","td","th"].includes(Ge(e))}function ns(e){const t=/firefox/i.test(rs()),r=Yt(e);return r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].includes(r.willChange)||t&&r.willChange==="filter"||t&&(r.filter?r.filter!=="none":!1)}function os(){return!/^((?!chrome|android).)*safari/i.test(rs())}const is=Math.min,Xt=Math.max,Ar=Math.round;function qe(e,t,r){var n,o,i,a;t===void 0&&(t=!1),r===void 0&&(r=!1);const s=e.getBoundingClientRect();let c=1,d=1;t&&Le(e)&&(c=e.offsetWidth>0&&Ar(s.width)/e.offsetWidth||1,d=e.offsetHeight>0&&Ar(s.height)/e.offsetHeight||1);const f=Qe(e)?He(e):window,p=!os()&&r,b=(s.left+(p&&(n=(o=f.visualViewport)==null?void 0:o.offsetLeft)!=null?n:0))/c,h=(s.top+(p&&(i=(a=f.visualViewport)==null?void 0:a.offsetTop)!=null?i:0))/d,g=s.width/c,m=s.height/d;return{width:g,height:m,top:h,right:b+g,bottom:h+m,left:b,x:b,y:h}}function et(e){return((bm(e)?e.ownerDocument:e.document)||window.document).documentElement}function Nr(e){return Qe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function as(e){return qe(et(e)).left+Nr(e).scrollLeft}function vm(e){const t=qe(e);return Ar(t.width)!==e.offsetWidth||Ar(t.height)!==e.offsetHeight}function _m(e,t,r){const n=Le(t),o=et(t),i=qe(e,n&&vm(t),r==="fixed");let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(n||!n&&r!=="fixed")if((Ge(t)!=="body"||Ir(o))&&(a=Nr(t)),Le(t)){const c=qe(t,!0);s.x=c.x+t.clientLeft,s.y=c.y+t.clientTop}else o&&(s.x=as(o));return{x:i.left+a.scrollLeft-s.x,y:i.top+a.scrollTop-s.y,width:i.width,height:i.height}}function ss(e){return Ge(e)==="html"?e:e.assignedSlot||e.parentNode||(Gn(e)?e.host:null)||et(e)}function ls(e){return!Le(e)||getComputedStyle(e).position==="fixed"?null:e.offsetParent}function ym(e){let t=ss(e);for(Gn(t)&&(t=t.host);Le(t)&&!["html","body"].includes(Ge(t));){if(ns(t))return t;t=t.parentNode}return null}function qn(e){const t=He(e);let r=ls(e);for(;r&&gm(r)&&getComputedStyle(r).position==="static";)r=ls(r);return r&&(Ge(r)==="html"||Ge(r)==="body"&&getComputedStyle(r).position==="static"&&!ns(r))?t:r||ym(e)||t}function cs(e){if(Le(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=qe(e);return{width:t.width,height:t.height}}function $m(e){let{rect:t,offsetParent:r,strategy:n}=e;const o=Le(r),i=et(r);if(r===i)return t;let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((o||!o&&n!=="fixed")&&((Ge(r)!=="body"||Ir(i))&&(a=Nr(r)),Le(r))){const c=qe(r,!0);s.x=c.x+r.clientLeft,s.y=c.y+r.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}}function xm(e,t){const r=He(e),n=et(e),o=r.visualViewport;let i=n.clientWidth,a=n.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const d=os();(d||!d&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s,y:c}}function wm(e){var t;const r=et(e),n=Nr(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Xt(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Xt(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let s=-n.scrollLeft+as(e);const c=-n.scrollTop;return Yt(o||r).direction==="rtl"&&(s+=Xt(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:c}}function us(e){const t=ss(e);return["html","body","#document"].includes(Ge(t))?e.ownerDocument.body:Le(t)&&Ir(t)?t:us(t)}function Mr(e,t){var r;t===void 0&&(t=[]);const n=us(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=He(n),a=o?[i].concat(i.visualViewport||[],Ir(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(Mr(a))}function Em(e,t){const r=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(r&&Gn(r)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}function Pm(e,t){const r=qe(e,!1,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft;return{top:n,left:o,x:o,y:n,right:o+e.clientWidth,bottom:n+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}function ds(e,t,r){return t==="viewport"?Or(xm(e,r)):Qe(t)?Pm(t,r):Or(wm(et(e)))}function Sm(e){const t=Mr(e),n=["absolute","fixed"].includes(Yt(e).position)&&Le(e)?qn(e):e;return Qe(n)?t.filter(o=>Qe(o)&&Em(o,n)&&Ge(o)!=="body"):[]}function Cm(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[...r==="clippingAncestors"?Sm(t):[].concat(r),n],s=a[0],c=a.reduce((d,f)=>{const p=ds(t,f,o);return d.top=Xt(p.top,d.top),d.right=is(p.right,d.right),d.bottom=is(p.bottom,d.bottom),d.left=Xt(p.left,d.left),d},ds(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}const Tm={getClippingRect:Cm,convertOffsetParentRelativeRectToViewportRelativeRect:$m,isElement:Qe,getDimensions:cs,getOffsetParent:qn,getDocumentElement:et,getElementRects:e=>{let{reference:t,floating:r,strategy:n}=e;return{reference:_m(t,qn(r),n),floating:{...cs(r),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Yt(e).direction==="rtl"};function Om(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=n,c=o&&!s,d=i&&!s,f=c||d?[...Qe(e)?Mr(e):[],...Mr(t)]:[];f.forEach(m=>{c&&m.addEventListener("scroll",r,{passive:!0}),d&&m.addEventListener("resize",r)});let p=null;if(a){let m=!0;p=new ResizeObserver(()=>{m||r(),m=!1}),Qe(e)&&!s&&p.observe(e),p.observe(t)}let b,h=s?qe(e):null;s&&g();function g(){const m=qe(e);h&&(m.x!==h.x||m.y!==h.y||m.width!==h.width||m.height!==h.height)&&r(),h=m,b=requestAnimationFrame(g)}return r(),()=>{var m;f.forEach(_=>{c&&_.removeEventListener("scroll",r),d&&_.removeEventListener("resize",r)}),(m=p)==null||m.disconnect(),p=null,s&&cancelAnimationFrame(b)}}const km=(e,t,r)=>tm(e,t,{platform:Tm,...r});var Yn=typeof document<"u"?l.useLayoutEffect:l.useEffect;function Xn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Xn(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!Xn(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Dm(e){const t=W.useRef(e);return Yn(()=>{t.current=e}),t}function Im(e){let{middleware:t,placement:r="bottom",strategy:n="absolute",whileElementsMounted:o}=e===void 0?{}:e;const i=W.useRef(null),a=W.useRef(null),s=Dm(o),c=W.useRef(null),[d,f]=W.useState({x:null,y:null,strategy:n,placement:r,middlewareData:{}}),[p,b]=W.useState(t);Xn(p==null?void 0:p.map(E=>{let{options:v}=E;return v}),t==null?void 0:t.map(E=>{let{options:v}=E;return v}))||b(t);const h=W.useCallback(()=>{!i.current||!a.current||km(i.current,a.current,{middleware:p,placement:r,strategy:n}).then(E=>{g.current&&ia.flushSync(()=>{f(E)})})},[p,r,n]);Yn(()=>{g.current&&h()},[h]);const g=W.useRef(!1);Yn(()=>(g.current=!0,()=>{g.current=!1}),[]);const m=W.useCallback(()=>{if(typeof c.current=="function"&&(c.current(),c.current=null),i.current&&a.current)if(s.current){const E=s.current(i.current,a.current,h);c.current=E}else h()},[h,s]),_=W.useCallback(E=>{i.current=E,m()},[m]),$=W.useCallback(E=>{a.current=E,m()},[m]),y=W.useMemo(()=>({reference:i,floating:a}),[]);return W.useMemo(()=>({...d,update:h,refs:y,reference:_,floating:$}),[d,h,y,_,$])}const Am=e=>{const{element:t,padding:r}=e;function n(o){return Object.prototype.hasOwnProperty.call(o,"current")}return{name:"arrow",options:e,fn(o){return n(t)?t.current!=null?Xa({element:t.current,padding:r}).fn(o):{}:t?Xa({element:t,padding:r}).fn(o):{}}}},Nm=l.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...i}=e;return l.createElement(te.svg,C({},i,{ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?r:l.createElement("polygon",{points:"0,0 30,0 15,10"}))});function Lr(e){const[t,r]=l.useState(void 0);return ye(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,s;if("borderBoxSize"in i){const c=i.borderBoxSize,d=Array.isArray(c)?c[0]:c;a=d.inlineSize,s=d.blockSize}else a=e.offsetWidth,s=e.offsetHeight;r({width:a,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}const fs="Popper",[Jn,Fr]=Pe(fs),[Mm,ps]=Jn(fs),Lm=e=>{const{__scopePopper:t,children:r}=e,[n,o]=l.useState(null);return l.createElement(Mm,{scope:t,anchor:n,onAnchorChange:o},r)},Fm="PopperAnchor",Rm=l.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,i=ps(Fm,r),a=l.useRef(null),s=se(t,a);return l.useEffect(()=>{i.onAnchorChange((n==null?void 0:n.current)||a.current)}),n?null:l.createElement(te.div,C({},o,{ref:s}))}),Rr="PopperContent",[zm,Vm]=Jn(Rr),[jm,Bm]=Jn(Rr,{hasParent:!1,positionUpdateFns:new Set}),Wm=l.forwardRef((e,t)=>{var r,n,o,i,a,s,c,d;const{__scopePopper:f,side:p="bottom",sideOffset:b=0,align:h="center",alignOffset:g=0,arrowPadding:m=0,collisionBoundary:_=[],collisionPadding:$=0,sticky:y="partial",hideWhenDetached:E=!1,avoidCollisions:v=!0,...A}=e,L=ps(Rr,f),[T,M]=l.useState(null),F=se(t,Ae=>M(Ae)),[G,S]=l.useState(null),q=Lr(G),D=(r=q==null?void 0:q.width)!==null&&r!==void 0?r:0,P=(n=q==null?void 0:q.height)!==null&&n!==void 0?n:0,ee=p+(h!=="center"?"-"+h:""),Q=typeof $=="number"?$:{top:0,right:0,bottom:0,left:0,...$},de=Array.isArray(_)?_:[_],fe=de.length>0,J={padding:Q,boundary:de.filter(qm),altBoundary:fe},{reference:w,floating:N,strategy:B,x:j,y:V,placement:K,middlewareData:Y,update:X}=Im({strategy:"fixed",placement:ee,whileElementsMounted:Om,middleware:[pm({mainAxis:b+P,alignmentAxis:g}),v?hm({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?mm():void 0,...J}):void 0,G?Am({element:G,padding:m}):void 0,v?um({...J}):void 0,Ym({arrowWidth:D,arrowHeight:P}),E?dm({strategy:"referenceHidden"}):void 0].filter(Gm)});ye(()=>{w(L.anchor)},[w,L.anchor]);const Z=j!==null&&V!==null,[oe,ne]=hs(K),ge=(o=Y.arrow)===null||o===void 0?void 0:o.x,be=(i=Y.arrow)===null||i===void 0?void 0:i.y,we=((a=Y.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[ze,Oe]=l.useState();ye(()=>{T&&Oe(window.getComputedStyle(T).zIndex)},[T]);const{hasParent:Ve,positionUpdateFns:ve}=Bm(Rr,f),_e=!Ve;l.useLayoutEffect(()=>{if(!_e)return ve.add(X),()=>{ve.delete(X)}},[_e,ve,X]),l.useLayoutEffect(()=>{_e&&Z&&Array.from(ve).reverse().forEach(Ae=>requestAnimationFrame(Ae))},[_e,Z,ve]);const Ie={"data-side":oe,"data-align":ne,...A,ref:F,style:{...A.style,animation:Z?void 0:"none",opacity:(s=Y.hide)!==null&&s!==void 0&&s.referenceHidden?0:void 0}};return l.createElement("div",{ref:N,"data-radix-popper-content-wrapper":"",style:{position:B,left:0,top:0,transform:Z?`translate3d(${Math.round(j)}px, ${Math.round(V)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:ze,["--radix-popper-transform-origin"]:[(c=Y.transformOrigin)===null||c===void 0?void 0:c.x,(d=Y.transformOrigin)===null||d===void 0?void 0:d.y].join(" ")}},l.createElement(zm,{scope:f,placedSide:oe,onArrowChange:S,arrowX:ge,arrowY:be,shouldHideArrow:we},_e?l.createElement(jm,{scope:f,hasParent:!0,positionUpdateFns:ve},l.createElement(te.div,Ie)):l.createElement(te.div,Ie)))}),Um="PopperArrow",Km={top:"bottom",right:"left",bottom:"top",left:"right"},Hm=l.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,i=Vm(Um,n),a=Km[i.placedSide];return l.createElement("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},l.createElement(Nm,C({},o,{ref:r,style:{...o.style,display:"block"}})))});function Gm(e){return e!==void 0}function qm(e){return e!==null}const Ym=e=>({name:"transformOrigin",options:e,fn(t){var r,n,o,i,a;const{placement:s,rects:c,middlewareData:d}=t,p=((r=d.arrow)===null||r===void 0?void 0:r.centerOffset)!==0,b=p?0:e.arrowWidth,h=p?0:e.arrowHeight,[g,m]=hs(s),_={start:"0%",center:"50%",end:"100%"}[m],$=((n=(o=d.arrow)===null||o===void 0?void 0:o.x)!==null&&n!==void 0?n:0)+b/2,y=((i=(a=d.arrow)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0)+h/2;let E="",v="";return g==="bottom"?(E=p?_:`${$}px`,v=`${-h}px`):g==="top"?(E=p?_:`${$}px`,v=`${c.floating.height+h}px`):g==="right"?(E=`${-h}px`,v=p?_:`${y}px`):g==="left"&&(E=`${c.floating.width+h}px`,v=p?_:`${y}px`),{data:{x:E,y:v}}}});function hs(e){const[t,r="center"]=e.split("-");return[t,r]}const ms=Lm,bs=Rm,gs=Wm,vs=Hm,_s="Popover",[ys,PE]=Pe(_s,[Fr]),zr=Fr(),[Xm,pt]=ys(_s),Jm=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,s=zr(t),c=l.useRef(null),[d,f]=l.useState(!1),[p=!1,b]=Ne({prop:n,defaultProp:o,onChange:i});return l.createElement(ms,s,l.createElement(Xm,{scope:t,contentId:Ue(),triggerRef:c,open:p,onOpenChange:b,onOpenToggle:l.useCallback(()=>b(h=>!h),[b]),hasCustomAnchor:d,onCustomAnchorAdd:l.useCallback(()=>f(!0),[]),onCustomAnchorRemove:l.useCallback(()=>f(!1),[]),modal:a},r))},Zm="PopoverTrigger",Qm=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=pt(Zm,r),i=zr(r),a=se(t,o.triggerRef),s=l.createElement(te.button,C({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Es(o.open)},n,{ref:a,onClick:H(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?s:l.createElement(bs,C({asChild:!0},i),s)}),$s="PopoverPortal",[eb,tb]=ys($s,{forceMount:void 0}),rb=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,i=pt($s,t);return l.createElement(eb,{scope:t,forceMount:r},l.createElement(ke,{present:r||i.open},l.createElement(Gt,{asChild:!0,container:o},n)))},Jt="PopoverContent",xs=l.forwardRef((e,t)=>{const r=tb(Jt,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,i=pt(Jt,e.__scopePopover);return l.createElement(ke,{present:n||i.open},i.modal?l.createElement(nb,C({},o,{ref:t})):l.createElement(ob,C({},o,{ref:t})))}),nb=l.forwardRef((e,t)=>{const r=pt(Jt,e.__scopePopover),n=l.useRef(null),o=se(t,n),i=l.useRef(!1);return l.useEffect(()=>{const a=n.current;if(a)return Rn(a)},[]),l.createElement(Ln,{as:dt,allowPinchZoom:!0},l.createElement(ws,C({},e,{ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:H(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),i.current||(s=r.triggerRef.current)===null||s===void 0||s.focus()}),onPointerDownOutside:H(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,c=s.button===0&&s.ctrlKey===!0,d=s.button===2||c;i.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:H(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})))}),ob=l.forwardRef((e,t)=>{const r=pt(Jt,e.__scopePopover),n=l.useRef(!1);return l.createElement(ws,C({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var i;if((i=e.onCloseAutoFocus)===null||i===void 0||i.call(e,o),!o.defaultPrevented){var a;n.current||(a=r.triggerRef.current)===null||a===void 0||a.focus(),o.preventDefault()}n.current=!1},onInteractOutside:o=>{var i,a;(i=e.onInteractOutside)===null||i===void 0||i.call(e,o),o.defaultPrevented||(n.current=!0);const s=o.target;((a=r.triggerRef.current)===null||a===void 0?void 0:a.contains(s))&&o.preventDefault()}}))}),ws=l.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,...p}=e,b=pt(Jt,r),h=zr(r);return In(),l.createElement(kn,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i},l.createElement(Ht,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:f,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:d,onDismiss:()=>b.onOpenChange(!1)},l.createElement(gs,C({"data-state":Es(b.open),role:"dialog",id:b.contentId},h,p,{ref:t,style:{...p.style,["--radix-popover-content-transform-origin"]:"var(--radix-popper-transform-origin)"}}))))}),ib="PopoverClose",ab=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=pt(ib,r);return l.createElement(te.button,C({type:"button"},n,{ref:t,onClick:H(e.onClick,()=>o.onOpenChange(!1))}))}),sb=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=zr(r);return l.createElement(vs,C({},o,n,{ref:t}))});function Es(e){return e?"open":"closed"}const lb=Jm,cb=Qm,ub=rb,db=xs,fb=ab,pb=sb;function Ps(e,t,r){let[n,o]=l.useState(e||t),i=l.useRef(e!==void 0),a=i.current,s=e!==void 0,c=l.useRef(n);a!==s&&console.warn(`WARN: A component changed from ${a?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),i.current=s;let d=l.useCallback((f,...p)=>{let b=(h,...g)=>{r&&(Object.is(c.current,h)||r(h,...g)),s||(c.current=h)};typeof f=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((g,...m)=>{let _=f(s?c.current:g,...m);return b(_,...p),s?g:_})):(s||o(f),b(f,...p))},[s,r]);return s?c.current=e:e=n,[e,d]}function hb(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function ht(e,t,r,n){let o=(e-(isNaN(t)?0:t))%n,i=Math.abs(o)*2>=n?e+Math.sign(o)*(n-Math.abs(o)):e-o;isNaN(t)?!isNaN(r)&&i>r&&(i=Math.floor(r/n)*n):i<t?i=t:!isNaN(r)&&i>r&&(i=t+Math.floor((r-t)/n)*n);let a=n.toString(),s=a.indexOf("."),c=s>=0?a.length-s:0;if(c>0){let d=Math.pow(10,c);i=Math.round(i*d)/d}return i}const Zn={prefix:String(Math.round(Math.random()*1e10)),current:0},Ss=l.createContext(Zn);let mb=Boolean(typeof window<"u"&&window.document&&window.document.createElement);function bb(e){let t=l.useContext(Ss);return t===Zn&&!mb&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server."),l.useMemo(()=>e||`react-aria${t.prefix}-${++t.current}`,[e])}function gb(){let t=l.useContext(Ss)!==Zn,[r,n]=l.useState(t);return typeof window<"u"&&t&&l.useLayoutEffect(()=>{n(!1)},[]),r}function Cs(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=Cs(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Ts(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=Cs(e))&&(n&&(n+=" "),n+=t);return n}const Ot=typeof window<"u"?l.useLayoutEffect:()=>{};function vb(e){let[t,r]=l.useState(e),n=l.useRef(t),o=l.useRef(null);n.current=t;let i=l.useRef(null);i.current=()=>{let s=o.current.next();if(s.done){o.current=null;return}t===s.value?i.current():r(s.value)},Ot(()=>{o.current&&i.current()});let a=l.useCallback(s=>{o.current=s(n.current),i.current()},[o,i]);return[t,a]}let Vr=new Map;function mt(e){let[t,r]=l.useState(e),n=l.useRef(null),o=bb(t),i=l.useCallback(a=>{n.current=a},[]);return Vr.set(o,i),Ot(()=>{let a=o;return()=>{Vr.delete(a)}},[o]),l.useEffect(()=>{let a=n.current;a&&(n.current=null,r(a))}),o}function _b(e,t){if(e===t)return e;let r=Vr.get(e);if(r)return r(t),t;let n=Vr.get(t);return n?(n(e),e):t}function Os(e=[]){let t=mt(),[r,n]=vb(t),o=l.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return Ot(o,[t,o,...e]),r}function ks(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}function xe(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let i=t[o],a=n[o];typeof i=="function"&&typeof a=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=ks(i,a):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof a=="string"?t[o]=Ts(i,a):o==="id"&&i&&a?t.id=_b(i,a):t[o]=a!==void 0?a:i}}return t}const yb=new Set(["id"]),$b=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),xb=/^(data-.*)$/;function Zt(e,t={}){let{labelable:r,propNames:n}=t,o={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(yb.has(i)||r&&$b.has(i)||n!=null&&n.has(i)||xb.test(i))&&(o[i]=e[i]);return o}function kt(e){if(wb())e.focus({preventScroll:!0});else{let t=Eb(e);e.focus(),Pb(t)}}let jr=null;function wb(){if(jr==null){jr=!1;try{var e=document.createElement("div");e.focus({get preventScroll(){return jr=!0,!0}})}catch{}}return jr}function Eb(e){for(var t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function Pb(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}let Dt=new Map,Qn=new Set;function Ds(){if(typeof window>"u")return;let e=r=>{let n=Dt.get(r.target);n||(n=new Set,Dt.set(r.target,n),r.target.addEventListener("transitioncancel",t)),n.add(r.propertyName)},t=r=>{let n=Dt.get(r.target);if(n&&(n.delete(r.propertyName),n.size===0&&(r.target.removeEventListener("transitioncancel",t),Dt.delete(r.target)),Dt.size===0)){for(let o of Qn)o();Qn.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?Ds():document.addEventListener("DOMContentLoaded",Ds));function Is(e){requestAnimationFrame(()=>{Dt.size===0?e():Qn.add(e)})}function As(){let e=l.useRef(new Map),t=l.useCallback((o,i,a,s)=>{let c=s!=null&&s.once?(...d)=>{e.current.delete(a),a(...d)}:a;e.current.set(a,{type:i,eventTarget:o,fn:c,options:s}),o.addEventListener(i,a,s)},[]),r=l.useCallback((o,i,a,s)=>{var c;let d=((c=e.current.get(a))===null||c===void 0?void 0:c.fn)||a;o.removeEventListener(i,d,s),e.current.delete(a)},[]),n=l.useCallback(()=>{e.current.forEach((o,i)=>{r(o.eventTarget,o.type,i,o.options)})},[r]);return l.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function Sb(e,t){let{id:r,"aria-label":n,"aria-labelledby":o}=e;return r=mt(r),o&&n?o=[...new Set([...o.trim().split(/\s+/),r])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!n&&!o&&t&&(n=t),{id:r,"aria-label":n,"aria-labelledby":o}}function bt(e){const t=l.useRef();return Ot(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)},[e]),t}function Ns(e,t){Ot(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}},[e,t])}function Cb(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(r=>e.test(r.brand)))||e.test(window.navigator.userAgent)}function eo(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Ms(){return eo(/^Mac/i)}function Ls(){return eo(/^iPhone/i)}function Tb(){return eo(/^iPad/i)||Ms()&&navigator.maxTouchPoints>1}function to(){return Ls()||Tb()}function Fs(){return Cb(/Android/i)}function Ob(e,t,r,n){let o=l.useRef(r);o.current=r;let i=r==null;l.useEffect(()=>{if(i)return;let a=e.current,s=c=>o.current.call(this,c);return a.addEventListener(t,s,n),()=>{a.removeEventListener(t,s,n)}},[e,t,n,i])}function ro(e){return e.mozInputSource===0&&e.isTrusted?!0:Fs()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function kb(e){return e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function no(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let It="default",oo="",Br=new WeakMap;function Rs(e){to()?(It==="default"&&(oo=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),It="disabled"):(e instanceof HTMLElement||e instanceof SVGElement)&&(Br.set(e,e.style.userSelect),e.style.userSelect="none")}function Wr(e){if(to()){if(It!=="disabled")return;It="restoring",setTimeout(()=>{Is(()=>{It==="restoring"&&(document.documentElement.style.webkitUserSelect==="none"&&(document.documentElement.style.webkitUserSelect=oo||""),oo="",It="default")})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Br.has(e)){let t=Br.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Br.delete(e)}}const zs=l.createContext(null);zs.displayName="PressResponderContext";function Db(e){let t=l.useContext(zs);if(t){let{register:r,...n}=t;e=xe(n,e),r()}return Ns(t,e.ref),e}function io(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,isDisabled:a,isPressed:s,preventFocusOnPress:c,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:p,...b}=Db(e),h=l.useRef(null);h.current={onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,isDisabled:a,shouldCancelOnPointerExit:d};let[g,m]=l.useState(!1),_=l.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:$,removeAllGlobalListeners:y}=As(),E=l.useMemo(()=>{let v=_.current,A=(S,q)=>{let{onPressStart:D,onPressChange:P,isDisabled:ee}=h.current;ee||v.didFirePressStart||(D&&D({type:"pressstart",pointerType:q,target:S.currentTarget,shiftKey:S.shiftKey,metaKey:S.metaKey,ctrlKey:S.ctrlKey,altKey:S.altKey}),P&&P(!0),v.didFirePressStart=!0,m(!0))},L=(S,q,D=!0)=>{let{onPressEnd:P,onPressChange:ee,onPress:Q,isDisabled:de}=h.current;v.didFirePressStart&&(v.ignoreClickAfterPress=!0,v.didFirePressStart=!1,P&&P({type:"pressend",pointerType:q,target:S.currentTarget,shiftKey:S.shiftKey,metaKey:S.metaKey,ctrlKey:S.ctrlKey,altKey:S.altKey}),ee&&ee(!1),m(!1),Q&&D&&!de&&Q({type:"press",pointerType:q,target:S.currentTarget,shiftKey:S.shiftKey,metaKey:S.metaKey,ctrlKey:S.ctrlKey,altKey:S.altKey}))},T=(S,q)=>{let{onPressUp:D,isDisabled:P}=h.current;P||D&&D({type:"pressup",pointerType:q,target:S.currentTarget,shiftKey:S.shiftKey,metaKey:S.metaKey,ctrlKey:S.ctrlKey,altKey:S.altKey})},M=S=>{v.isPressed&&(v.isOverTarget&&L(Ye(v.target,S),v.pointerType,!1),v.isPressed=!1,v.isOverTarget=!1,v.activePointerId=null,v.pointerType=null,y(),f||Wr(v.target))},F={onKeyDown(S){so(S.nativeEvent,S.currentTarget)&&S.currentTarget.contains(S.target)?(js(S.target,S.key)&&S.preventDefault(),S.stopPropagation(),!v.isPressed&&!S.repeat&&(v.target=S.currentTarget,v.isPressed=!0,A(S,"keyboard"),$(document,"keyup",G,!1))):S.key==="Enter"&&ao(S.currentTarget)&&S.stopPropagation()},onKeyUp(S){so(S.nativeEvent,S.currentTarget)&&!S.repeat&&S.currentTarget.contains(S.target)&&T(Ye(v.target,S),"keyboard")},onClick(S){S&&!S.currentTarget.contains(S.target)||S&&S.button===0&&(S.stopPropagation(),a&&S.preventDefault(),!v.ignoreClickAfterPress&&!v.ignoreEmulatedMouseEvents&&(v.pointerType==="virtual"||ro(S.nativeEvent))&&(!a&&!c&&kt(S.currentTarget),A(S,"virtual"),T(S,"virtual"),L(S,"virtual")),v.ignoreEmulatedMouseEvents=!1,v.ignoreClickAfterPress=!1)}},G=S=>{if(v.isPressed&&so(S,v.target)){js(S.target,S.key)&&S.preventDefault(),S.stopPropagation(),v.isPressed=!1;let q=S.target;L(Ye(v.target,S),"keyboard",v.target.contains(q)),y(),v.target instanceof HTMLElement&&v.target.contains(q)&&(ao(v.target)||v.target.getAttribute("role")==="link")&&v.target.click()}};if(typeof PointerEvent<"u"){F.onPointerDown=P=>{if(!(P.button!==0||!P.currentTarget.contains(P.target))){if(kb(P.nativeEvent)){v.pointerType="virtual";return}lo(P.currentTarget)&&P.preventDefault(),v.pointerType=P.pointerType,P.stopPropagation(),v.isPressed||(v.isPressed=!0,v.isOverTarget=!0,v.activePointerId=P.pointerId,v.target=P.currentTarget,!a&&!c&&kt(P.currentTarget),f||Rs(v.target),A(P,v.pointerType),$(document,"pointermove",S,!1),$(document,"pointerup",q,!1),$(document,"pointercancel",D,!1))}},F.onMouseDown=P=>{P.currentTarget.contains(P.target)&&P.button===0&&(lo(P.currentTarget)&&P.preventDefault(),P.stopPropagation())},F.onPointerUp=P=>{!P.currentTarget.contains(P.target)||v.pointerType==="virtual"||P.button===0&&At(P,P.currentTarget)&&T(P,v.pointerType||P.pointerType)};let S=P=>{P.pointerId===v.activePointerId&&(At(P,v.target)?v.isOverTarget||(v.isOverTarget=!0,A(Ye(v.target,P),v.pointerType)):v.isOverTarget&&(v.isOverTarget=!1,L(Ye(v.target,P),v.pointerType,!1),h.current.shouldCancelOnPointerExit&&M(P)))},q=P=>{P.pointerId===v.activePointerId&&v.isPressed&&P.button===0&&(At(P,v.target)?L(Ye(v.target,P),v.pointerType):v.isOverTarget&&L(Ye(v.target,P),v.pointerType,!1),v.isPressed=!1,v.isOverTarget=!1,v.activePointerId=null,v.pointerType=null,y(),f||Wr(v.target))},D=P=>{M(P)};F.onDragStart=P=>{P.currentTarget.contains(P.target)&&M(P)}}else{F.onMouseDown=D=>{D.button!==0||!D.currentTarget.contains(D.target)||(lo(D.currentTarget)&&D.preventDefault(),D.stopPropagation(),!v.ignoreEmulatedMouseEvents&&(v.isPressed=!0,v.isOverTarget=!0,v.target=D.currentTarget,v.pointerType=ro(D.nativeEvent)?"virtual":"mouse",!a&&!c&&kt(D.currentTarget),A(D,v.pointerType),$(document,"mouseup",S,!1)))},F.onMouseEnter=D=>{D.currentTarget.contains(D.target)&&(D.stopPropagation(),v.isPressed&&!v.ignoreEmulatedMouseEvents&&(v.isOverTarget=!0,A(D,v.pointerType)))},F.onMouseLeave=D=>{D.currentTarget.contains(D.target)&&(D.stopPropagation(),v.isPressed&&!v.ignoreEmulatedMouseEvents&&(v.isOverTarget=!1,L(D,v.pointerType,!1),h.current.shouldCancelOnPointerExit&&M(D)))},F.onMouseUp=D=>{D.currentTarget.contains(D.target)&&!v.ignoreEmulatedMouseEvents&&D.button===0&&T(D,v.pointerType)};let S=D=>{if(D.button===0){if(v.isPressed=!1,y(),v.ignoreEmulatedMouseEvents){v.ignoreEmulatedMouseEvents=!1;return}At(D,v.target)?L(Ye(v.target,D),v.pointerType):v.isOverTarget&&L(Ye(v.target,D),v.pointerType,!1),v.isOverTarget=!1}};F.onTouchStart=D=>{if(!D.currentTarget.contains(D.target))return;D.stopPropagation();let P=Ib(D.nativeEvent);P&&(v.activePointerId=P.identifier,v.ignoreEmulatedMouseEvents=!0,v.isOverTarget=!0,v.isPressed=!0,v.target=D.currentTarget,v.pointerType="touch",!a&&!c&&kt(D.currentTarget),f||Rs(v.target),A(D,v.pointerType),$(window,"scroll",q,!0))},F.onTouchMove=D=>{if(!D.currentTarget.contains(D.target)||(D.stopPropagation(),!v.isPressed))return;let P=Vs(D.nativeEvent,v.activePointerId);P&&At(P,D.currentTarget)?v.isOverTarget||(v.isOverTarget=!0,A(D,v.pointerType)):v.isOverTarget&&(v.isOverTarget=!1,L(D,v.pointerType,!1),h.current.shouldCancelOnPointerExit&&M(D))},F.onTouchEnd=D=>{if(!D.currentTarget.contains(D.target)||(D.stopPropagation(),!v.isPressed))return;let P=Vs(D.nativeEvent,v.activePointerId);P&&At(P,D.currentTarget)?(T(D,v.pointerType),L(D,v.pointerType)):v.isOverTarget&&L(D,v.pointerType,!1),v.isPressed=!1,v.activePointerId=null,v.isOverTarget=!1,v.ignoreEmulatedMouseEvents=!0,f||Wr(v.target),y()},F.onTouchCancel=D=>{D.currentTarget.contains(D.target)&&(D.stopPropagation(),v.isPressed&&M(D))};let q=D=>{v.isPressed&&D.target.contains(v.target)&&M({currentTarget:v.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};F.onDragStart=D=>{D.currentTarget.contains(D.target)&&M(D)}}return F},[$,a,c,y,f]);return l.useEffect(()=>()=>{f||Wr(_.current.target)},[f]),{isPressed:s||g,pressProps:xe(b,E)}}function ao(e){return e.tagName==="A"&&e.hasAttribute("href")}function so(e,t){const{key:r,code:n}=e,o=t,i=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof HTMLInputElement&&!Bs(o,r)||o instanceof HTMLTextAreaElement||o.isContentEditable)&&(!ao(o)||i==="button"&&r!=="Enter")&&!(i==="link"&&r!=="Enter")}function Ib(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function Vs(e,t){const r=e.changedTouches;for(let n=0;n<r.length;n++){const o=r[n];if(o.identifier===t)return o}return null}function Ye(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function Ab(e){let t=e.width/2||e.radiusX||0,r=e.height/2||e.radiusY||0;return{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}function Nb(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function At(e,t){let r=t.getBoundingClientRect(),n=Ab(e);return Nb(r,n)}function lo(e){return!(e instanceof HTMLElement)||!e.draggable}function js(e,t){return e instanceof HTMLInputElement?!Bs(e,t):e instanceof HTMLButtonElement?e.type!=="submit":!0}const Mb=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Bs(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Mb.has(e.type)}class Lb{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,r){this.nativeEvent=r,this.target=r.target,this.currentTarget=r.currentTarget,this.relatedTarget=r.relatedTarget,this.bubbles=r.bubbles,this.cancelable=r.cancelable,this.defaultPrevented=r.defaultPrevented,this.eventPhase=r.eventPhase,this.isTrusted=r.isTrusted,this.timeStamp=r.timeStamp,this.type=t}}function Ws(e){let t=l.useRef({isFocused:!1,onBlur:e,observer:null});return t.current.onBlur=e,Ot(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]),l.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let n=r.target,o=i=>{var a,s;t.current.isFocused=!1,n.disabled&&((s=(a=t.current).onBlur)===null||s===void 0||s.call(a,new Lb("blur",i))),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};n.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{t.current.isFocused&&n.disabled&&(t.current.observer.disconnect(),n.dispatchEvent(new FocusEvent("blur")),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0})))}),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[])}function co(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:o}=e;const i=l.useCallback(c=>{if(c.target===c.currentTarget)return n&&n(c),o&&o(!1),!0},[n,o]),a=Ws(i),s=l.useCallback(c=>{c.target===c.currentTarget&&(r&&r(c),o&&o(!0),a(c))},[o,r,a]);return{focusProps:{onFocus:!t&&(r||o||n)?s:void 0,onBlur:!t&&(n||o)?i:null}}}let Nt=null,uo=new Set,Us=!1,gt=!1,fo=!1;const Fb={Tab:!0,Escape:!0};function po(e,t){for(let r of uo)r(e,t)}function Rb(e){return!(e.metaKey||!Ms()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Ks(e){gt=!0,Rb(e)&&(Nt="keyboard",po("keyboard",e))}function Mt(e){Nt="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(gt=!0,po("pointer",e))}function zb(e){ro(e)&&(gt=!0,Nt="virtual")}function Vb(e){e.target===window||e.target===document||(!gt&&!fo&&(Nt="virtual",po("virtual",e)),gt=!1,fo=!1)}function jb(){gt=!1,fo=!0}function ho(){if(typeof window>"u"||Us)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){gt=!0,e.apply(this,arguments)},document.addEventListener("keydown",Ks,!0),document.addEventListener("keyup",Ks,!0),document.addEventListener("click",zb,!0),window.addEventListener("focus",Vb,!0),window.addEventListener("blur",jb,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Mt,!0),document.addEventListener("pointermove",Mt,!0),document.addEventListener("pointerup",Mt,!0)):(document.addEventListener("mousedown",Mt,!0),document.addEventListener("mousemove",Mt,!0),document.addEventListener("mouseup",Mt,!0)),Us=!0}typeof document<"u"&&(document.readyState!=="loading"?ho():document.addEventListener("DOMContentLoaded",ho));function Hs(){return Nt!=="pointer"}function Bb(){return Nt}function Wb(e,t,r){return!(e&&t==="keyboard"&&r instanceof KeyboardEvent&&!Fb[r.key])}function Ub(e,t,r){ho(),l.useEffect(()=>{let n=(o,i)=>{Wb(r==null?void 0:r.isTextInput,o,i)&&e(Hs())};return uo.add(n),()=>{uo.delete(n)}},t)}function Gs(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,i=l.useRef({isFocusWithin:!1}),a=l.useCallback(d=>{i.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(i.current.isFocusWithin=!1,r&&r(d),o&&o(!1))},[r,o,i]),s=Ws(a),c=l.useCallback(d=>{i.current.isFocusWithin||(n&&n(d),o&&o(!0),i.current.isFocusWithin=!0,s(d))},[n,o,s]);return t?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:c,onBlur:a}}}function qs(e){if(!e)return;let t=!0;return r=>{let n={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(n),t&&r.stopPropagation()}}function Kb(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:qs(e.onKeyDown),onKeyUp:qs(e.onKeyUp)}}}function Hb(e,t){let{onScroll:r,isDisabled:n}=e,o=l.useCallback(i=>{i.ctrlKey||(i.preventDefault(),i.stopPropagation(),r&&r({deltaX:i.deltaX,deltaY:i.deltaY}))},[r]);Ob(t,"wheel",n?null:o)}function Gb(e){if(Bb()==="virtual"){let t=document.activeElement;Is(()=>{document.activeElement===t&&document.contains(e)&&kt(e)})}else kt(e)}function qb(e,t){return t.some(r=>r.contains(e))}class mo{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let o=this.fastMap.get(r??null),i=new Ys({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),n&&(i.nodeToRestore=n)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t),n=r.parent;for(let i of this.traverse())i!==r&&r.nodeToRestore&&i.nodeToRestore&&r.scopeRef.current&&qb(i.nodeToRestore,r.scopeRef.current)&&(i.nodeToRestore=r.nodeToRestore);let o=r.children;n.removeChild(r),o.length>0&&o.forEach(i=>n.addChild(i)),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.length>0)for(let r of t.children)yield*this.traverse(r)}clone(){let t=new mo;for(let r of this.traverse())t.addTreeNode(r.scopeRef,r.parent.scopeRef,r.nodeToRestore);return t}constructor(){no(this,"fastMap",new Map),this.root=new Ys({scopeRef:null}),this.fastMap.set(null,this.root)}}class Ys{addChild(t){this.children.push(t),t.parent=this}removeChild(t){this.children.splice(this.children.indexOf(t),1),t.parent=void 0}constructor(t){no(this,"children",[]),no(this,"contain",!1),this.scopeRef=t.scopeRef}}new mo;function Ur(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,o=l.useRef({isFocused:!1,isFocusVisible:t||Hs()}),[i,a]=l.useState(!1),[s,c]=l.useState(()=>o.current.isFocused&&o.current.isFocusVisible),d=l.useCallback(()=>c(o.current.isFocused&&o.current.isFocusVisible),[]),f=l.useCallback(h=>{o.current.isFocused=h,a(h),d()},[d]);Ub(h=>{o.current.isFocusVisible=h,d()},[],{isTextInput:r});let{focusProps:p}=co({isDisabled:n,onFocusChange:f}),{focusWithinProps:b}=Gs({isDisabled:!n,onFocusWithinChange:f});return{isFocused:i,isFocusVisible:o.current.isFocused&&s,focusProps:n?b:p}}let Yb=l.createContext(null);function Xb(e){let t=l.useContext(Yb)||{};Ns(t,e);let{ref:r,...n}=t;return n}function bo(e,t){let{focusProps:r}=co(e),{keyboardProps:n}=Kb(e),o=xe(r,n),i=Xb(t),a=e.isDisabled?{}:i,s=l.useRef(e.autoFocus);return l.useEffect(()=>{s.current&&t.current&&Gb(t.current),s.current=!1},[t]),{focusableProps:xe({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},a)}}function Jb(e,t){let{elementType:r="a",onPress:n,onPressStart:o,onPressEnd:i,onClick:a,isDisabled:s,...c}=e,d;r!=="a"&&(d={role:"link",tabIndex:s?void 0:0});let{focusableProps:f}=bo(e,t),{pressProps:p,isPressed:b}=io({onPress:n,onPressStart:o,onPressEnd:i,isDisabled:s,ref:t}),h=Zt(c,{labelable:!0}),g=xe(f,p);return{isPressed:b,linkProps:xe(h,{...g,...d,"aria-disabled":s||void 0,onClick:m=>{p.onClick(m),a&&(a(m),console.warn("onClick is deprecated, please use onPress"))}})}}class Zb{getStringForLocale(t,r){let n=this.strings[r];n||(n=Qb(r,this.strings,this.defaultLocale),this.strings[r]=n);let o=n[t];if(!o)throw new Error(`Could not find intl message ${t} in ${r} locale`);return o}constructor(t,r="en-US"){this.strings={...t},this.defaultLocale=r}}function Qb(e,t,r="en-US"){if(t[e])return t[e];let n=eg(e);if(t[n])return t[n];for(let o in t)if(o.startsWith(n+"-"))return t[o];return t[r]}function eg(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const Xs=new Map,Js=new Map;class tg{format(t,r){let n=this.strings.getStringForLocale(t,this.locale);return typeof n=="function"?n(r,this):n}plural(t,r,n="cardinal"){let o=r["="+t];if(o)return typeof o=="function"?o():o;let i=this.locale+":"+n,a=Xs.get(i);a||(a=new Intl.PluralRules(this.locale,{type:n}),Xs.set(i,a));let s=a.select(t);return o=r[s]||r.other,typeof o=="function"?o():o}number(t){let r=Js.get(this.locale);return r||(r=new Intl.NumberFormat(this.locale),Js.set(this.locale,r)),r.format(t)}select(t,r){let n=t[r]||t.other;return typeof n=="function"?n():n}constructor(t,r){this.locale=t,this.strings=r}}let go=new Map,vo=!1;try{vo=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Kr=!1;try{Kr=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const Zs={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class _o{format(t){let r="";if(!vo&&this.options.signDisplay!=null?r=ng(this.numberFormatter,this.options.signDisplay,t):r=this.numberFormatter.format(t),this.options.style==="unit"&&!Kr){var n;let{unit:o,unitDisplay:i="short",locale:a}=this.resolvedOptions(),s=(n=Zs[o])===null||n===void 0?void 0:n[i];r+=s[a]||s.default}return r}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,r){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,r);if(r<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(r)}`}formatRangeToParts(t,r){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,r);if(r<t)throw new RangeError("End date must be >= start date");let n=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(r);return[...n.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!vo&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Kr&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,r={}){this.numberFormatter=rg(t,r),this.options=r}}function rg(e,t={}){let{numberingSystem:r}=t;if(r&&e.indexOf("-u-nu-")===-1&&(e=`${e}-u-nu-${r}`),t.style==="unit"&&!Kr){var n;let{unit:a,unitDisplay:s="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((n=Zs[a])===null||n===void 0)&&n[s]))throw new Error(`Unsupported unit ${a} with unitDisplay = ${s}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((a,s)=>a[0]<s[0]?-1:1).join():"");if(go.has(o))return go.get(o);let i=new Intl.NumberFormat(e,t);return go.set(o,i),i}function ng(e,t,r){if(t==="auto")return e.format(r);if(t==="never")return e.format(Math.abs(r));{let n=!1;if(t==="always"?n=r>0||Object.is(r,0):t==="exceptZero"&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),n){let o=e.format(-r),i=e.format(r),a=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(a,"+").replace("!!!",i)}else return e.format(r)}}const og=new RegExp("^.*\\(.*\\).*$"),ig=["latn","arab","hanidec"];class ag{parse(t){return yo(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,r,n){return yo(this.locale,this.options,t).isValidPartialNumber(t,r,n)}getNumberingSystem(t){return yo(this.locale,this.options,t).options.numberingSystem}constructor(t,r={}){this.locale=t,this.options=r}}const Qs=new Map;function yo(e,t,r){let n=el(e,t);if(!e.includes("-nu-")&&!n.isValidPartialNumber(r)){for(let o of ig)if(o!==n.options.numberingSystem){let i=el(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(i.isValidPartialNumber(r))return i}}return n}function el(e,t){let r=e+(t?Object.entries(t).sort((o,i)=>o[0]<i[0]?-1:1).join():""),n=Qs.get(r);return n||(n=new sg(e,t),Qs.set(r,n)),n}class sg{parse(t){let r=this.sanitize(t);r=Hr(r,this.symbols.group,"").replace(this.symbols.decimal,".").replace(this.symbols.minusSign,"-").replace(this.symbols.numeral,this.symbols.index);let n=r?+r:NaN;if(isNaN(n))return NaN;if(this.options.currencySign==="accounting"&&og.test(t)&&(n=-1*n),this.options.style==="percent"){n/=100;var o;n=+n.toFixed(((o=this.options.maximumFractionDigits)!==null&&o!==void 0?o:0)+2)}return n}sanitize(t){return t=t.replace(this.symbols.literals,""),t=t.replace("-",this.symbols.minusSign),this.options.numberingSystem==="arab"&&(t=t.replace(",",this.symbols.decimal),t=t.replace(String.fromCharCode(1548),this.symbols.decimal),t=Hr(t,".",this.symbols.group)),this.options.locale==="fr-FR"&&(t=Hr(t,".",String.fromCharCode(8239))),t}isValidPartialNumber(t,r=-1/0,n=1/0){return t=this.sanitize(t),t.startsWith(this.symbols.minusSign)&&r<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&n>0&&(t=t.slice(this.symbols.plusSign.length)),t.startsWith(this.symbols.group)?!1:(t=Hr(t,this.symbols.group,"").replace(this.symbols.numeral,"").replace(this.symbols.decimal,""),t.length===0)}constructor(t,r={}){this.formatter=new Intl.NumberFormat(t,r),this.options=this.formatter.resolvedOptions(),this.symbols=lg(this.formatter,this.options,r)}}const tl=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]);function lg(e,t,r){var n,o,i,a;let s=e.formatToParts(-10000.111),c=e.formatToParts(10000.111),d=e.formatToParts(1);var f;let p=(f=(n=s.find(T=>T.type==="minusSign"))===null||n===void 0?void 0:n.value)!==null&&f!==void 0?f:"-",b=(o=c.find(T=>T.type==="plusSign"))===null||o===void 0?void 0:o.value;!b&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(b="+");let h=(i=s.find(T=>T.type==="decimal"))===null||i===void 0?void 0:i.value,g=(a=s.find(T=>T.type==="group"))===null||a===void 0?void 0:a.value,m=s.filter(T=>!tl.has(T.type)).map(T=>rl(T.value)),_=d.filter(T=>!tl.has(T.type)).map(T=>rl(T.value)),$=[...new Set([..._,...m])].sort((T,M)=>M.length-T.length),y=$.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${$.join("|")}|[\\p{White_Space}]`,"gu"),E=[...new Intl.NumberFormat(t.locale,{useGrouping:!1}).format(9876543210)].reverse(),v=new Map(E.map((T,M)=>[T,M])),A=new RegExp(`[${E.join("")}]`,"g");return{minusSign:p,plusSign:b,decimal:h,group:g,literals:y,numeral:A,index:T=>String(v.get(T))}}function Hr(e,t,r){return e.replaceAll?e.replaceAll(t,r):e.split(t).join(r)}function rl(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}const cg=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),ug=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function dg(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize().script;return cg.has(r)}let t=e.split("-")[0];return ug.has(t)}function nl(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:dg(e)?"rtl":"ltr"}}let $o=nl(),Qt=new Set;function ol(){$o=nl();for(let e of Qt)e($o)}function fg(){let e=gb(),[t,r]=l.useState($o);return l.useEffect(()=>(Qt.size===0&&window.addEventListener("languagechange",ol),Qt.add(r),()=>{Qt.delete(r),Qt.size===0&&window.removeEventListener("languagechange",ol)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const pg=l.createContext(null);function il(){let e=fg();return l.useContext(pg)||e}const al=new WeakMap;function hg(e){let t=al.get(e);return t||(t=new Zb(e),al.set(e,t)),t}function Gr(e){let{locale:t}=il(),r=l.useMemo(()=>hg(e),[e]);return l.useMemo(()=>new tg(t,r),[t,r])}function mg(e={}){let{locale:t}=il();return l.useMemo(()=>new _o(t,e),[t,e])}function bg(e){return e&&e.__esModule?e.default:e}function gg(e,t){let{isCurrent:r,isDisabled:n,"aria-current":o,elementType:i="a",...a}=e,{linkProps:s}=Jb({isDisabled:n||r,elementType:i,...a},t),c=/^h[1-6]$/.test(i),d={};return c||(d=s),r&&(d["aria-current"]=o||"page",d.tabIndex=e.autoFocus?-1:void 0),{itemProps:{"aria-disabled":n,...d}}}var sl={},ll={};ll={breadcrumbs:"عناصر الواجهة"};var cl={};cl={breadcrumbs:"Трохи хляб"};var ul={};ul={breadcrumbs:"Popis cesty"};var dl={};dl={breadcrumbs:"Brødkrummer"};var fl={};fl={breadcrumbs:"Breadcrumbs"};var pl={};pl={breadcrumbs:"Πλοηγήσεις breadcrumb"};var hl={};hl={breadcrumbs:"Breadcrumbs"};var ml={};ml={breadcrumbs:"Migas de pan"};var bl={};bl={breadcrumbs:"Lingiread"};var gl={};gl={breadcrumbs:"Navigointilinkit"};var vl={};vl={breadcrumbs:"Chemin de navigation"};var _l={};_l={breadcrumbs:"שבילי ניווט"};var yl={};yl={breadcrumbs:"Navigacijski putovi"};var $l={};$l={breadcrumbs:"Morzsamenü"};var xl={};xl={breadcrumbs:"Breadcrumb"};var wl={};wl={breadcrumbs:"パンくずリスト"};var El={};El={breadcrumbs:"탐색 표시"};var Pl={};Pl={breadcrumbs:"Naršymo kelias"};var Sl={};Sl={breadcrumbs:"Atpakaļceļi"};var Cl={};Cl={breadcrumbs:"Navigasjonsstier"};var Tl={};Tl={breadcrumbs:"Broodkruimels"};var Ol={};Ol={breadcrumbs:"Struktura nawigacyjna"};var kl={};kl={breadcrumbs:"Caminho detalhado"};var Dl={};Dl={breadcrumbs:"Categorias"};var Il={};Il={breadcrumbs:"Miez de pâine"};var Al={};Al={breadcrumbs:"Навигация"};var Nl={};Nl={breadcrumbs:"Navigačné prvky Breadcrumbs"};var Ml={};Ml={breadcrumbs:"Drobtine"};var Ll={};Ll={breadcrumbs:"Putanje navigacije"};var Fl={};Fl={breadcrumbs:"Sökvägar"};var Rl={};Rl={breadcrumbs:"İçerik haritaları"};var zl={};zl={breadcrumbs:"Навігаційна стежка"};var Vl={};Vl={breadcrumbs:"导航栏"};var jl={};jl={breadcrumbs:"導覽列"},sl={"ar-AE":ll,"bg-BG":cl,"cs-CZ":ul,"da-DK":dl,"de-DE":fl,"el-GR":pl,"en-US":hl,"es-ES":ml,"et-EE":bl,"fi-FI":gl,"fr-FR":vl,"he-IL":_l,"hr-HR":yl,"hu-HU":$l,"it-IT":xl,"ja-JP":wl,"ko-KR":El,"lt-LT":Pl,"lv-LV":Sl,"nb-NO":Cl,"nl-NL":Tl,"pl-PL":Ol,"pt-BR":kl,"pt-PT":Dl,"ro-RO":Il,"ru-RU":Al,"sk-SK":Nl,"sl-SI":Ml,"sr-SP":Ll,"sv-SE":Fl,"tr-TR":Rl,"uk-UA":zl,"zh-CN":Vl,"zh-TW":jl};function vg(e){let{"aria-label":t,...r}=e,n=Gr(bg(sl));return{navProps:{...Zt(r,{labelable:!0}),"aria-label":t||n.format("breadcrumbs")}}}const _g=I(db)`
|
|
198
|
+
`,J0=S0,Z0=C0,Q0=D0,em=I0,Cr=l.forwardRef((e,t)=>l.createElement(te.span,C({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}}))),Ga=Cr,tm=({children:e,label:t})=>{const r=l.Children.only(e);return l.createElement(l.Fragment,null,l.cloneElement(r,{"aria-hidden":"true",focusable:"false"}),l.createElement(Ga,null,t))};function qt({children:e,label:t}){return k(tm,{label:t,children:e})}function Ct(e){return e.split("-")[0]}function Tr(e){return e.split("-")[1]}function Tt(e){return["top","bottom"].includes(Ct(e))?"x":"y"}function Kn(e){return e==="y"?"height":"width"}function qa(e,t,r){let{reference:n,floating:o}=e;const i=n.x+n.width/2-o.width/2,a=n.y+n.height/2-o.height/2,s=Tt(t),c=Kn(s),d=n[c]/2-o[c]/2,f=Ct(t),p=s==="x";let b;switch(f){case"top":b={x:i,y:n.y-o.height};break;case"bottom":b={x:i,y:n.y+n.height};break;case"right":b={x:n.x+n.width,y:a};break;case"left":b={x:n.x-o.width,y:a};break;default:b={x:n.x,y:n.y}}switch(Tr(t)){case"start":b[s]-=d*(r&&p?-1:1);break;case"end":b[s]+=d*(r&&p?-1:1);break}return b}const rm=async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,s=await(a.isRTL==null?void 0:a.isRTL(t));if(process.env.NODE_ENV!=="production"&&(a==null&&console.error(["Floating UI: `platform` property was not passed to config. If you","want to use Floating UI on the web, install @floating-ui/dom","instead of the /core package. Otherwise, you can create your own","`platform`: https://floating-ui.com/docs/platform"].join(" ")),i.filter(g=>{let{name:m}=g;return m==="autoPlacement"||m==="flip"}).length>1))throw new Error(["Floating UI: duplicate `flip` and/or `autoPlacement`","middleware detected. This will lead to an infinite loop. Ensure only","one of either has been passed to the `middleware` array."].join(" "));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:f}=qa(c,n,s),p=n,b={},h=0;for(let g=0;g<i.length;g++){const{name:m,fn:_}=i[g],{x:$,y,data:E,reset:v}=await _({x:d,y:f,initialPlacement:n,placement:p,strategy:o,middlewareData:b,rects:c,platform:a,elements:{reference:e,floating:t}});if(d=$??d,f=y??f,b={...b,[m]:{...b[m],...E}},process.env.NODE_ENV!=="production"&&h>50&&console.warn(["Floating UI: The middleware lifecycle appears to be running in an","infinite loop. This is usually caused by a `reset` continually","being returned without a break condition."].join(" ")),v&&h<=50){h++,typeof v=="object"&&(v.placement&&(p=v.placement),v.rects&&(c=v.rects===!0?await a.getElementRects({reference:e,floating:t,strategy:o}):v.rects),{x:d,y:f}=qa(c,p,s)),g=-1;continue}}return{x:d,y:f,placement:p,strategy:o,middlewareData:b}};function nm(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ya(e){return typeof e!="number"?nm(e):{top:e,right:e,bottom:e,left:e}}function Or(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function kr(e,t){var r;t===void 0&&(t={});const{x:n,y:o,platform:i,rects:a,elements:s,strategy:c}=e,{boundary:d="clippingAncestors",rootBoundary:f="viewport",elementContext:p="floating",altBoundary:b=!1,padding:h=0}=t,g=Ya(h),_=s[b?p==="floating"?"reference":"floating":p],$=Or(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(_)))==null||r?_:_.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:d,rootBoundary:f,strategy:c})),y=Or(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:p==="floating"?{...a.floating,x:n,y:o}:a.reference,offsetParent:await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),strategy:c}):a[p]);return{top:$.top-y.top+g.top,bottom:y.bottom-$.bottom+g.bottom,left:$.left-y.left+g.left,right:y.right-$.right+g.right}}const om=Math.min,im=Math.max;function Hn(e,t,r){return im(e,om(t,r))}const Xa=e=>({name:"arrow",options:e,async fn(t){const{element:r,padding:n=0}=e??{},{x:o,y:i,placement:a,rects:s,platform:c}=t;if(r==null)return process.env.NODE_ENV!=="production"&&console.warn("Floating UI: No `element` was passed to the `arrow` middleware."),{};const d=Ya(n),f={x:o,y:i},p=Tt(a),b=Tr(a),h=Kn(p),g=await c.getDimensions(r),m=p==="y"?"top":"left",_=p==="y"?"bottom":"right",$=s.reference[h]+s.reference[p]-f[p]-s.floating[h],y=f[p]-s.reference[p],E=await(c.getOffsetParent==null?void 0:c.getOffsetParent(r));let v=E?p==="y"?E.clientHeight||0:E.clientWidth||0:0;v===0&&(v=s.floating[h]);const A=$/2-y/2,L=d[m],T=v-g[h]-d[_],M=v/2-g[h]/2+A,F=Hn(L,M,T),q=(b==="start"?d[m]:d[_])>0&&M!==F&&s.reference[h]<=s.floating[h]?M<L?L-M:T-M:0;return{[p]:f[p]-q,data:{[p]:F,centerOffset:M-F}}}}),am={left:"right",right:"left",bottom:"top",top:"bottom"};function Dr(e){return e.replace(/left|right|bottom|top/g,t=>am[t])}function sm(e,t,r){r===void 0&&(r=!1);const n=Tr(e),o=Tt(e),i=Kn(o);let a=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Dr(a)),{main:a,cross:Dr(a)}}const lm={start:"end",end:"start"};function Ja(e){return e.replace(/start|end/g,t=>lm[t])}const cm=["top","right","bottom","left"];function um(e){const t=Dr(e);return[Ja(e),t,Ja(t)]}const dm=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r;const{placement:n,middlewareData:o,rects:i,initialPlacement:a,platform:s,elements:c}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:b="bestFit",flipAlignment:h=!0,...g}=e,m=Ct(n),$=p||(m===a||!h?[Dr(a)]:um(a)),y=[a,...$],E=await kr(t,g),v=[];let A=((r=o.flip)==null?void 0:r.overflows)||[];if(d&&v.push(E[m]),f){const{main:F,cross:G}=sm(n,i,await(s.isRTL==null?void 0:s.isRTL(c.floating)));v.push(E[F],E[G])}if(A=[...A,{placement:n,overflows:v}],!v.every(F=>F<=0)){var L,T;const F=((L=(T=o.flip)==null?void 0:T.index)!=null?L:0)+1,G=y[F];if(G)return{data:{index:F,overflows:A},reset:{placement:G}};let S="bottom";switch(b){case"bestFit":{var M;const q=(M=A.map(D=>[D,D.overflows.filter(P=>P>0).reduce((P,ee)=>P+ee,0)]).sort((D,P)=>D[1]-P[1])[0])==null?void 0:M[0].placement;q&&(S=q);break}case"initialPlacement":S=a;break}if(n!==S)return{reset:{placement:S}}}return{}}}};function Za(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Qa(e){return cm.some(t=>e[t]>=0)}const fm=function(e){let{strategy:t="referenceHidden",...r}=e===void 0?{}:e;return{name:"hide",async fn(n){const{rects:o}=n;switch(t){case"referenceHidden":{const i=await kr(n,{...r,elementContext:"reference"}),a=Za(i,o.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:Qa(a)}}}case"escaped":{const i=await kr(n,{...r,altBoundary:!0}),a=Za(i,o.floating);return{data:{escapedOffsets:a,escaped:Qa(a)}}}default:return{}}}}};async function pm(e,t){const{placement:r,platform:n,elements:o}=e,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),a=Ct(r),s=Tr(r),c=Tt(r)==="x",d=["left","top"].includes(a)?-1:1,f=i&&c?-1:1,p=typeof t=="function"?t(e):t;let{mainAxis:b,crossAxis:h,alignmentAxis:g}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...p};return s&&typeof g=="number"&&(h=s==="end"?g*-1:g),c?{x:h*f,y:b*d}:{x:b*d,y:h*f}}const hm=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:r,y:n}=t,o=await pm(t,e);return{x:r+o.x,y:n+o.y,data:o}}}};function es(e){return e==="x"?"y":"x"}const mm=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:_=>{let{x:$,y}=_;return{x:$,y}}},...c}=e,d={x:r,y:n},f=await kr(t,c),p=Tt(Ct(o)),b=es(p);let h=d[p],g=d[b];if(i){const _=p==="y"?"top":"left",$=p==="y"?"bottom":"right",y=h+f[_],E=h-f[$];h=Hn(y,h,E)}if(a){const _=b==="y"?"top":"left",$=b==="y"?"bottom":"right",y=g+f[_],E=g-f[$];g=Hn(y,g,E)}const m=s.fn({...t,[p]:h,[b]:g});return{...m,data:{x:m.x-r,y:m.y-n}}}}},bm=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:n,placement:o,rects:i,middlewareData:a}=t,{offset:s=0,mainAxis:c=!0,crossAxis:d=!0}=e,f={x:r,y:n},p=Tt(o),b=es(p);let h=f[p],g=f[b];const m=typeof s=="function"?s({...i,placement:o}):s,_=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(c){const A=p==="y"?"height":"width",L=i.reference[p]-i.floating[A]+_.mainAxis,T=i.reference[p]+i.reference[A]-_.mainAxis;h<L?h=L:h>T&&(h=T)}if(d){var $,y,E,v;const A=p==="y"?"width":"height",L=["top","left"].includes(Ct(o)),T=i.reference[b]-i.floating[A]+(L&&($=(y=a.offset)==null?void 0:y[b])!=null?$:0)+(L?0:_.crossAxis),M=i.reference[b]+i.reference[A]+(L?0:(E=(v=a.offset)==null?void 0:v[b])!=null?E:0)-(L?_.crossAxis:0);g<T?g=T:g>M&&(g=M)}return{[p]:h,[b]:g}}}};function ts(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function He(e){if(e==null)return window;if(!ts(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function Yt(e){return He(e).getComputedStyle(e)}function Ge(e){return ts(e)?"":e?(e.nodeName||"").toLowerCase():""}function rs(){const e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(t=>t.brand+"/"+t.version).join(" "):navigator.userAgent}function Le(e){return e instanceof He(e).HTMLElement}function Qe(e){return e instanceof He(e).Element}function gm(e){return e instanceof He(e).Node}function Gn(e){if(typeof ShadowRoot>"u")return!1;const t=He(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Ir(e){const{overflow:t,overflowX:r,overflowY:n}=Yt(e);return/auto|scroll|overlay|hidden/.test(t+n+r)}function vm(e){return["table","td","th"].includes(Ge(e))}function ns(e){const t=/firefox/i.test(rs()),r=Yt(e);return r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].includes(r.willChange)||t&&r.willChange==="filter"||t&&(r.filter?r.filter!=="none":!1)}function os(){return!/^((?!chrome|android).)*safari/i.test(rs())}const is=Math.min,Xt=Math.max,Ar=Math.round;function qe(e,t,r){var n,o,i,a;t===void 0&&(t=!1),r===void 0&&(r=!1);const s=e.getBoundingClientRect();let c=1,d=1;t&&Le(e)&&(c=e.offsetWidth>0&&Ar(s.width)/e.offsetWidth||1,d=e.offsetHeight>0&&Ar(s.height)/e.offsetHeight||1);const f=Qe(e)?He(e):window,p=!os()&&r,b=(s.left+(p&&(n=(o=f.visualViewport)==null?void 0:o.offsetLeft)!=null?n:0))/c,h=(s.top+(p&&(i=(a=f.visualViewport)==null?void 0:a.offsetTop)!=null?i:0))/d,g=s.width/c,m=s.height/d;return{width:g,height:m,top:h,right:b+g,bottom:h+m,left:b,x:b,y:h}}function et(e){return((gm(e)?e.ownerDocument:e.document)||window.document).documentElement}function Nr(e){return Qe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function as(e){return qe(et(e)).left+Nr(e).scrollLeft}function _m(e){const t=qe(e);return Ar(t.width)!==e.offsetWidth||Ar(t.height)!==e.offsetHeight}function ym(e,t,r){const n=Le(t),o=et(t),i=qe(e,n&&_m(t),r==="fixed");let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(n||!n&&r!=="fixed")if((Ge(t)!=="body"||Ir(o))&&(a=Nr(t)),Le(t)){const c=qe(t,!0);s.x=c.x+t.clientLeft,s.y=c.y+t.clientTop}else o&&(s.x=as(o));return{x:i.left+a.scrollLeft-s.x,y:i.top+a.scrollTop-s.y,width:i.width,height:i.height}}function ss(e){return Ge(e)==="html"?e:e.assignedSlot||e.parentNode||(Gn(e)?e.host:null)||et(e)}function ls(e){return!Le(e)||getComputedStyle(e).position==="fixed"?null:e.offsetParent}function $m(e){let t=ss(e);for(Gn(t)&&(t=t.host);Le(t)&&!["html","body"].includes(Ge(t));){if(ns(t))return t;t=t.parentNode}return null}function qn(e){const t=He(e);let r=ls(e);for(;r&&vm(r)&&getComputedStyle(r).position==="static";)r=ls(r);return r&&(Ge(r)==="html"||Ge(r)==="body"&&getComputedStyle(r).position==="static"&&!ns(r))?t:r||$m(e)||t}function cs(e){if(Le(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=qe(e);return{width:t.width,height:t.height}}function xm(e){let{rect:t,offsetParent:r,strategy:n}=e;const o=Le(r),i=et(r);if(r===i)return t;let a={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((o||!o&&n!=="fixed")&&((Ge(r)!=="body"||Ir(i))&&(a=Nr(r)),Le(r))){const c=qe(r,!0);s.x=c.x+r.clientLeft,s.y=c.y+r.clientTop}return{...t,x:t.x-a.scrollLeft+s.x,y:t.y-a.scrollTop+s.y}}function wm(e,t){const r=He(e),n=et(e),o=r.visualViewport;let i=n.clientWidth,a=n.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;const d=os();(d||!d&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s,y:c}}function Em(e){var t;const r=et(e),n=Nr(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Xt(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Xt(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0);let s=-n.scrollLeft+as(e);const c=-n.scrollTop;return Yt(o||r).direction==="rtl"&&(s+=Xt(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:c}}function us(e){const t=ss(e);return["html","body","#document"].includes(Ge(t))?e.ownerDocument.body:Le(t)&&Ir(t)?t:us(t)}function Mr(e,t){var r;t===void 0&&(t=[]);const n=us(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),i=He(n),a=o?[i].concat(i.visualViewport||[],Ir(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(Mr(a))}function Pm(e,t){const r=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(r&&Gn(r)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}function Sm(e,t){const r=qe(e,!1,t==="fixed"),n=r.top+e.clientTop,o=r.left+e.clientLeft;return{top:n,left:o,x:o,y:n,right:o+e.clientWidth,bottom:n+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}function ds(e,t,r){return t==="viewport"?Or(wm(e,r)):Qe(t)?Sm(t,r):Or(Em(et(e)))}function Cm(e){const t=Mr(e),n=["absolute","fixed"].includes(Yt(e).position)&&Le(e)?qn(e):e;return Qe(n)?t.filter(o=>Qe(o)&&Pm(o,n)&&Ge(o)!=="body"):[]}function Tm(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const a=[...r==="clippingAncestors"?Cm(t):[].concat(r),n],s=a[0],c=a.reduce((d,f)=>{const p=ds(t,f,o);return d.top=Xt(p.top,d.top),d.right=is(p.right,d.right),d.bottom=is(p.bottom,d.bottom),d.left=Xt(p.left,d.left),d},ds(t,s,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}const Om={getClippingRect:Tm,convertOffsetParentRelativeRectToViewportRelativeRect:xm,isElement:Qe,getDimensions:cs,getOffsetParent:qn,getDocumentElement:et,getElementRects:e=>{let{reference:t,floating:r,strategy:n}=e;return{reference:ym(t,qn(r),n),floating:{...cs(r),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Yt(e).direction==="rtl"};function km(e,t,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=!0,animationFrame:s=!1}=n,c=o&&!s,d=i&&!s,f=c||d?[...Qe(e)?Mr(e):[],...Mr(t)]:[];f.forEach(m=>{c&&m.addEventListener("scroll",r,{passive:!0}),d&&m.addEventListener("resize",r)});let p=null;if(a){let m=!0;p=new ResizeObserver(()=>{m||r(),m=!1}),Qe(e)&&!s&&p.observe(e),p.observe(t)}let b,h=s?qe(e):null;s&&g();function g(){const m=qe(e);h&&(m.x!==h.x||m.y!==h.y||m.width!==h.width||m.height!==h.height)&&r(),h=m,b=requestAnimationFrame(g)}return r(),()=>{var m;f.forEach(_=>{c&&_.removeEventListener("scroll",r),d&&_.removeEventListener("resize",r)}),(m=p)==null||m.disconnect(),p=null,s&&cancelAnimationFrame(b)}}const Dm=(e,t,r)=>rm(e,t,{platform:Om,...r});var Yn=typeof document<"u"?l.useLayoutEffect:l.useEffect;function Xn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(n=r;n--!==0;)if(!Xn(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[n]))return!1;for(n=r;n--!==0;){const i=o[n];if(!(i==="_owner"&&e.$$typeof)&&!Xn(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Im(e){const t=W.useRef(e);return Yn(()=>{t.current=e}),t}function Am(e){let{middleware:t,placement:r="bottom",strategy:n="absolute",whileElementsMounted:o}=e===void 0?{}:e;const i=W.useRef(null),a=W.useRef(null),s=Im(o),c=W.useRef(null),[d,f]=W.useState({x:null,y:null,strategy:n,placement:r,middlewareData:{}}),[p,b]=W.useState(t);Xn(p==null?void 0:p.map(E=>{let{options:v}=E;return v}),t==null?void 0:t.map(E=>{let{options:v}=E;return v}))||b(t);const h=W.useCallback(()=>{!i.current||!a.current||Dm(i.current,a.current,{middleware:p,placement:r,strategy:n}).then(E=>{g.current&&ia.flushSync(()=>{f(E)})})},[p,r,n]);Yn(()=>{g.current&&h()},[h]);const g=W.useRef(!1);Yn(()=>(g.current=!0,()=>{g.current=!1}),[]);const m=W.useCallback(()=>{if(typeof c.current=="function"&&(c.current(),c.current=null),i.current&&a.current)if(s.current){const E=s.current(i.current,a.current,h);c.current=E}else h()},[h,s]),_=W.useCallback(E=>{i.current=E,m()},[m]),$=W.useCallback(E=>{a.current=E,m()},[m]),y=W.useMemo(()=>({reference:i,floating:a}),[]);return W.useMemo(()=>({...d,update:h,refs:y,reference:_,floating:$}),[d,h,y,_,$])}const Nm=e=>{const{element:t,padding:r}=e;function n(o){return Object.prototype.hasOwnProperty.call(o,"current")}return{name:"arrow",options:e,fn(o){return n(t)?t.current!=null?Xa({element:t.current,padding:r}).fn(o):{}:t?Xa({element:t,padding:r}).fn(o):{}}}},Mm=l.forwardRef((e,t)=>{const{children:r,width:n=10,height:o=5,...i}=e;return l.createElement(te.svg,C({},i,{ref:t,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?r:l.createElement("polygon",{points:"0,0 30,0 15,10"}))});function Lr(e){const[t,r]=l.useState(void 0);return ye(()=>{if(e){r({width:e.offsetWidth,height:e.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,s;if("borderBoxSize"in i){const c=i.borderBoxSize,d=Array.isArray(c)?c[0]:c;a=d.inlineSize,s=d.blockSize}else a=e.offsetWidth,s=e.offsetHeight;r({width:a,height:s})});return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}else r(void 0)},[e]),t}const fs="Popper",[Jn,Fr]=Pe(fs),[Lm,ps]=Jn(fs),Fm=e=>{const{__scopePopper:t,children:r}=e,[n,o]=l.useState(null);return l.createElement(Lm,{scope:t,anchor:n,onAnchorChange:o},r)},Rm="PopperAnchor",zm=l.forwardRef((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,i=ps(Rm,r),a=l.useRef(null),s=se(t,a);return l.useEffect(()=>{i.onAnchorChange((n==null?void 0:n.current)||a.current)}),n?null:l.createElement(te.div,C({},o,{ref:s}))}),Rr="PopperContent",[Vm,jm]=Jn(Rr),[Bm,Wm]=Jn(Rr,{hasParent:!1,positionUpdateFns:new Set}),Um=l.forwardRef((e,t)=>{var r,n,o,i,a,s,c,d;const{__scopePopper:f,side:p="bottom",sideOffset:b=0,align:h="center",alignOffset:g=0,arrowPadding:m=0,collisionBoundary:_=[],collisionPadding:$=0,sticky:y="partial",hideWhenDetached:E=!1,avoidCollisions:v=!0,...A}=e,L=ps(Rr,f),[T,M]=l.useState(null),F=se(t,Ae=>M(Ae)),[G,S]=l.useState(null),q=Lr(G),D=(r=q==null?void 0:q.width)!==null&&r!==void 0?r:0,P=(n=q==null?void 0:q.height)!==null&&n!==void 0?n:0,ee=p+(h!=="center"?"-"+h:""),Q=typeof $=="number"?$:{top:0,right:0,bottom:0,left:0,...$},de=Array.isArray(_)?_:[_],fe=de.length>0,J={padding:Q,boundary:de.filter(Ym),altBoundary:fe},{reference:w,floating:N,strategy:B,x:j,y:V,placement:K,middlewareData:Y,update:X}=Am({strategy:"fixed",placement:ee,whileElementsMounted:km,middleware:[hm({mainAxis:b+P,alignmentAxis:g}),v?mm({mainAxis:!0,crossAxis:!1,limiter:y==="partial"?bm():void 0,...J}):void 0,G?Nm({element:G,padding:m}):void 0,v?dm({...J}):void 0,Xm({arrowWidth:D,arrowHeight:P}),E?fm({strategy:"referenceHidden"}):void 0].filter(qm)});ye(()=>{w(L.anchor)},[w,L.anchor]);const Z=j!==null&&V!==null,[oe,ne]=hs(K),ge=(o=Y.arrow)===null||o===void 0?void 0:o.x,be=(i=Y.arrow)===null||i===void 0?void 0:i.y,we=((a=Y.arrow)===null||a===void 0?void 0:a.centerOffset)!==0,[ze,Oe]=l.useState();ye(()=>{T&&Oe(window.getComputedStyle(T).zIndex)},[T]);const{hasParent:Ve,positionUpdateFns:ve}=Wm(Rr,f),_e=!Ve;l.useLayoutEffect(()=>{if(!_e)return ve.add(X),()=>{ve.delete(X)}},[_e,ve,X]),l.useLayoutEffect(()=>{_e&&Z&&Array.from(ve).reverse().forEach(Ae=>requestAnimationFrame(Ae))},[_e,Z,ve]);const Ie={"data-side":oe,"data-align":ne,...A,ref:F,style:{...A.style,animation:Z?void 0:"none",opacity:(s=Y.hide)!==null&&s!==void 0&&s.referenceHidden?0:void 0}};return l.createElement("div",{ref:N,"data-radix-popper-content-wrapper":"",style:{position:B,left:0,top:0,transform:Z?`translate3d(${Math.round(j)}px, ${Math.round(V)}px, 0)`:"translate3d(0, -200%, 0)",minWidth:"max-content",zIndex:ze,["--radix-popper-transform-origin"]:[(c=Y.transformOrigin)===null||c===void 0?void 0:c.x,(d=Y.transformOrigin)===null||d===void 0?void 0:d.y].join(" ")}},l.createElement(Vm,{scope:f,placedSide:oe,onArrowChange:S,arrowX:ge,arrowY:be,shouldHideArrow:we},_e?l.createElement(Bm,{scope:f,hasParent:!0,positionUpdateFns:ve},l.createElement(te.div,Ie)):l.createElement(te.div,Ie)))}),Km="PopperArrow",Hm={top:"bottom",right:"left",bottom:"top",left:"right"},Gm=l.forwardRef(function(t,r){const{__scopePopper:n,...o}=t,i=jm(Km,n),a=Hm[i.placedSide];return l.createElement("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0}},l.createElement(Mm,C({},o,{ref:r,style:{...o.style,display:"block"}})))});function qm(e){return e!==void 0}function Ym(e){return e!==null}const Xm=e=>({name:"transformOrigin",options:e,fn(t){var r,n,o,i,a;const{placement:s,rects:c,middlewareData:d}=t,p=((r=d.arrow)===null||r===void 0?void 0:r.centerOffset)!==0,b=p?0:e.arrowWidth,h=p?0:e.arrowHeight,[g,m]=hs(s),_={start:"0%",center:"50%",end:"100%"}[m],$=((n=(o=d.arrow)===null||o===void 0?void 0:o.x)!==null&&n!==void 0?n:0)+b/2,y=((i=(a=d.arrow)===null||a===void 0?void 0:a.y)!==null&&i!==void 0?i:0)+h/2;let E="",v="";return g==="bottom"?(E=p?_:`${$}px`,v=`${-h}px`):g==="top"?(E=p?_:`${$}px`,v=`${c.floating.height+h}px`):g==="right"?(E=`${-h}px`,v=p?_:`${y}px`):g==="left"&&(E=`${c.floating.width+h}px`,v=p?_:`${y}px`),{data:{x:E,y:v}}}});function hs(e){const[t,r="center"]=e.split("-");return[t,r]}const ms=Fm,bs=zm,gs=Um,vs=Gm,_s="Popover",[ys,SE]=Pe(_s,[Fr]),zr=Fr(),[Jm,pt]=ys(_s),Zm=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:i,modal:a=!1}=e,s=zr(t),c=l.useRef(null),[d,f]=l.useState(!1),[p=!1,b]=Ne({prop:n,defaultProp:o,onChange:i});return l.createElement(ms,s,l.createElement(Jm,{scope:t,contentId:Ue(),triggerRef:c,open:p,onOpenChange:b,onOpenToggle:l.useCallback(()=>b(h=>!h),[b]),hasCustomAnchor:d,onCustomAnchorAdd:l.useCallback(()=>f(!0),[]),onCustomAnchorRemove:l.useCallback(()=>f(!1),[]),modal:a},r))},Qm="PopoverTrigger",eb=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=pt(Qm,r),i=zr(r),a=se(t,o.triggerRef),s=l.createElement(te.button,C({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Es(o.open)},n,{ref:a,onClick:H(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?s:l.createElement(bs,C({asChild:!0},i),s)}),$s="PopoverPortal",[tb,rb]=ys($s,{forceMount:void 0}),nb=e=>{const{__scopePopover:t,forceMount:r,children:n,container:o}=e,i=pt($s,t);return l.createElement(tb,{scope:t,forceMount:r},l.createElement(ke,{present:r||i.open},l.createElement(Gt,{asChild:!0,container:o},n)))},Jt="PopoverContent",xs=l.forwardRef((e,t)=>{const r=rb(Jt,e.__scopePopover),{forceMount:n=r.forceMount,...o}=e,i=pt(Jt,e.__scopePopover);return l.createElement(ke,{present:n||i.open},i.modal?l.createElement(ob,C({},o,{ref:t})):l.createElement(ib,C({},o,{ref:t})))}),ob=l.forwardRef((e,t)=>{const r=pt(Jt,e.__scopePopover),n=l.useRef(null),o=se(t,n),i=l.useRef(!1);return l.useEffect(()=>{const a=n.current;if(a)return Rn(a)},[]),l.createElement(Ln,{as:dt,allowPinchZoom:!0},l.createElement(ws,C({},e,{ref:o,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:H(e.onCloseAutoFocus,a=>{var s;a.preventDefault(),i.current||(s=r.triggerRef.current)===null||s===void 0||s.focus()}),onPointerDownOutside:H(e.onPointerDownOutside,a=>{const s=a.detail.originalEvent,c=s.button===0&&s.ctrlKey===!0,d=s.button===2||c;i.current=d},{checkForDefaultPrevented:!1}),onFocusOutside:H(e.onFocusOutside,a=>a.preventDefault(),{checkForDefaultPrevented:!1})})))}),ib=l.forwardRef((e,t)=>{const r=pt(Jt,e.__scopePopover),n=l.useRef(!1);return l.createElement(ws,C({},e,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var i;if((i=e.onCloseAutoFocus)===null||i===void 0||i.call(e,o),!o.defaultPrevented){var a;n.current||(a=r.triggerRef.current)===null||a===void 0||a.focus(),o.preventDefault()}n.current=!1},onInteractOutside:o=>{var i,a;(i=e.onInteractOutside)===null||i===void 0||i.call(e,o),o.defaultPrevented||(n.current=!0);const s=o.target;((a=r.triggerRef.current)===null||a===void 0?void 0:a.contains(s))&&o.preventDefault()}}))}),ws=l.forwardRef((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:f,...p}=e,b=pt(Jt,r),h=zr(r);return In(),l.createElement(kn,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:i},l.createElement(Ht,{asChild:!0,disableOutsidePointerEvents:a,onInteractOutside:f,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:d,onDismiss:()=>b.onOpenChange(!1)},l.createElement(gs,C({"data-state":Es(b.open),role:"dialog",id:b.contentId},h,p,{ref:t,style:{...p.style,["--radix-popover-content-transform-origin"]:"var(--radix-popper-transform-origin)"}}))))}),ab="PopoverClose",sb=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=pt(ab,r);return l.createElement(te.button,C({type:"button"},n,{ref:t,onClick:H(e.onClick,()=>o.onOpenChange(!1))}))}),lb=l.forwardRef((e,t)=>{const{__scopePopover:r,...n}=e,o=zr(r);return l.createElement(vs,C({},o,n,{ref:t}))});function Es(e){return e?"open":"closed"}const cb=Zm,ub=eb,db=nb,fb=xs,Ps=sb,pb=lb;function Ss(e,t,r){let[n,o]=l.useState(e||t),i=l.useRef(e!==void 0),a=i.current,s=e!==void 0,c=l.useRef(n);a!==s&&console.warn(`WARN: A component changed from ${a?"controlled":"uncontrolled"} to ${s?"controlled":"uncontrolled"}.`),i.current=s;let d=l.useCallback((f,...p)=>{let b=(h,...g)=>{r&&(Object.is(c.current,h)||r(h,...g)),s||(c.current=h)};typeof f=="function"?(console.warn("We can not support a function callback. See Github Issues for details https://github.com/adobe/react-spectrum/issues/2320"),o((g,...m)=>{let _=f(s?c.current:g,...m);return b(_,...p),s?g:_})):(s||o(f),b(f,...p))},[s,r]);return s?c.current=e:e=n,[e,d]}function hb(e,t=-1/0,r=1/0){return Math.min(Math.max(e,t),r)}function ht(e,t,r,n){let o=(e-(isNaN(t)?0:t))%n,i=Math.abs(o)*2>=n?e+Math.sign(o)*(n-Math.abs(o)):e-o;isNaN(t)?!isNaN(r)&&i>r&&(i=Math.floor(r/n)*n):i<t?i=t:!isNaN(r)&&i>r&&(i=t+Math.floor((r-t)/n)*n);let a=n.toString(),s=a.indexOf("."),c=s>=0?a.length-s:0;if(c>0){let d=Math.pow(10,c);i=Math.round(i*d)/d}return i}const Zn={prefix:String(Math.round(Math.random()*1e10)),current:0},Cs=l.createContext(Zn);let mb=Boolean(typeof window<"u"&&window.document&&window.document.createElement);function bb(e){let t=l.useContext(Cs);return t===Zn&&!mb&&console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server."),l.useMemo(()=>e||`react-aria${t.prefix}-${++t.current}`,[e])}function gb(){let t=l.useContext(Cs)!==Zn,[r,n]=l.useState(t);return typeof window<"u"&&t&&l.useLayoutEffect(()=>{n(!1)},[]),r}function Ts(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=Ts(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Os(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=Ts(e))&&(n&&(n+=" "),n+=t);return n}const Ot=typeof window<"u"?l.useLayoutEffect:()=>{};function vb(e){let[t,r]=l.useState(e),n=l.useRef(t),o=l.useRef(null);n.current=t;let i=l.useRef(null);i.current=()=>{let s=o.current.next();if(s.done){o.current=null;return}t===s.value?i.current():r(s.value)},Ot(()=>{o.current&&i.current()});let a=l.useCallback(s=>{o.current=s(n.current),i.current()},[o,i]);return[t,a]}let Vr=new Map;function mt(e){let[t,r]=l.useState(e),n=l.useRef(null),o=bb(t),i=l.useCallback(a=>{n.current=a},[]);return Vr.set(o,i),Ot(()=>{let a=o;return()=>{Vr.delete(a)}},[o]),l.useEffect(()=>{let a=n.current;a&&(n.current=null,r(a))}),o}function _b(e,t){if(e===t)return e;let r=Vr.get(e);if(r)return r(t),t;let n=Vr.get(t);return n?(n(e),e):t}function ks(e=[]){let t=mt(),[r,n]=vb(t),o=l.useCallback(()=>{n(function*(){yield t,yield document.getElementById(t)?t:void 0})},[t,n]);return Ot(o,[t,o,...e]),r}function Ds(...e){return(...t)=>{for(let r of e)typeof r=="function"&&r(...t)}}function xe(...e){let t={...e[0]};for(let r=1;r<e.length;r++){let n=e[r];for(let o in n){let i=t[o],a=n[o];typeof i=="function"&&typeof a=="function"&&o[0]==="o"&&o[1]==="n"&&o.charCodeAt(2)>=65&&o.charCodeAt(2)<=90?t[o]=Ds(i,a):(o==="className"||o==="UNSAFE_className")&&typeof i=="string"&&typeof a=="string"?t[o]=Os(i,a):o==="id"&&i&&a?t.id=_b(i,a):t[o]=a!==void 0?a:i}}return t}const yb=new Set(["id"]),$b=new Set(["aria-label","aria-labelledby","aria-describedby","aria-details"]),xb=/^(data-.*)$/;function Zt(e,t={}){let{labelable:r,propNames:n}=t,o={};for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(yb.has(i)||r&&$b.has(i)||n!=null&&n.has(i)||xb.test(i))&&(o[i]=e[i]);return o}function kt(e){if(wb())e.focus({preventScroll:!0});else{let t=Eb(e);e.focus(),Pb(t)}}let jr=null;function wb(){if(jr==null){jr=!1;try{var e=document.createElement("div");e.focus({get preventScroll(){return jr=!0,!0}})}catch{}}return jr}function Eb(e){for(var t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;return n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft}),r}function Pb(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}let Dt=new Map,Qn=new Set;function Is(){if(typeof window>"u")return;let e=r=>{let n=Dt.get(r.target);n||(n=new Set,Dt.set(r.target,n),r.target.addEventListener("transitioncancel",t)),n.add(r.propertyName)},t=r=>{let n=Dt.get(r.target);if(n&&(n.delete(r.propertyName),n.size===0&&(r.target.removeEventListener("transitioncancel",t),Dt.delete(r.target)),Dt.size===0)){for(let o of Qn)o();Qn.clear()}};document.body.addEventListener("transitionrun",e),document.body.addEventListener("transitionend",t)}typeof document<"u"&&(document.readyState!=="loading"?Is():document.addEventListener("DOMContentLoaded",Is));function As(e){requestAnimationFrame(()=>{Dt.size===0?e():Qn.add(e)})}function Ns(){let e=l.useRef(new Map),t=l.useCallback((o,i,a,s)=>{let c=s!=null&&s.once?(...d)=>{e.current.delete(a),a(...d)}:a;e.current.set(a,{type:i,eventTarget:o,fn:c,options:s}),o.addEventListener(i,a,s)},[]),r=l.useCallback((o,i,a,s)=>{var c;let d=((c=e.current.get(a))===null||c===void 0?void 0:c.fn)||a;o.removeEventListener(i,d,s),e.current.delete(a)},[]),n=l.useCallback(()=>{e.current.forEach((o,i)=>{r(o.eventTarget,o.type,i,o.options)})},[r]);return l.useEffect(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function Sb(e,t){let{id:r,"aria-label":n,"aria-labelledby":o}=e;return r=mt(r),o&&n?o=[...new Set([...o.trim().split(/\s+/),r])].join(" "):o&&(o=o.trim().split(/\s+/).join(" ")),!n&&!o&&t&&(n=t),{id:r,"aria-label":n,"aria-labelledby":o}}function bt(e){const t=l.useRef();return Ot(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)},[e]),t}function Ms(e,t){Ot(()=>{if(e&&e.ref&&t)return e.ref.current=t.current,()=>{e.ref.current=null}},[e,t])}function Cb(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(r=>e.test(r.brand)))||e.test(window.navigator.userAgent)}function eo(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function Ls(){return eo(/^Mac/i)}function Fs(){return eo(/^iPhone/i)}function Tb(){return eo(/^iPad/i)||Ls()&&navigator.maxTouchPoints>1}function to(){return Fs()||Tb()}function Rs(){return Cb(/Android/i)}function Ob(e,t,r,n){let o=l.useRef(r);o.current=r;let i=r==null;l.useEffect(()=>{if(i)return;let a=e.current,s=c=>o.current.call(this,c);return a.addEventListener(t,s,n),()=>{a.removeEventListener(t,s,n)}},[e,t,n,i])}function ro(e){return e.mozInputSource===0&&e.isTrusted?!0:Rs()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}function kb(e){return e.width===0&&e.height===0||e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType==="mouse"}function no(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}let It="default",oo="",Br=new WeakMap;function zs(e){to()?(It==="default"&&(oo=document.documentElement.style.webkitUserSelect,document.documentElement.style.webkitUserSelect="none"),It="disabled"):(e instanceof HTMLElement||e instanceof SVGElement)&&(Br.set(e,e.style.userSelect),e.style.userSelect="none")}function Wr(e){if(to()){if(It!=="disabled")return;It="restoring",setTimeout(()=>{As(()=>{It==="restoring"&&(document.documentElement.style.webkitUserSelect==="none"&&(document.documentElement.style.webkitUserSelect=oo||""),oo="",It="default")})},300)}else if((e instanceof HTMLElement||e instanceof SVGElement)&&e&&Br.has(e)){let t=Br.get(e);e.style.userSelect==="none"&&(e.style.userSelect=t),e.getAttribute("style")===""&&e.removeAttribute("style"),Br.delete(e)}}const Vs=l.createContext(null);Vs.displayName="PressResponderContext";function Db(e){let t=l.useContext(Vs);if(t){let{register:r,...n}=t;e=xe(n,e),r()}return Ms(t,e.ref),e}function io(e){let{onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,isDisabled:a,isPressed:s,preventFocusOnPress:c,shouldCancelOnPointerExit:d,allowTextSelectionOnPress:f,ref:p,...b}=Db(e),h=l.useRef(null);h.current={onPress:t,onPressChange:r,onPressStart:n,onPressEnd:o,onPressUp:i,isDisabled:a,shouldCancelOnPointerExit:d};let[g,m]=l.useState(!1),_=l.useRef({isPressed:!1,ignoreEmulatedMouseEvents:!1,ignoreClickAfterPress:!1,didFirePressStart:!1,activePointerId:null,target:null,isOverTarget:!1,pointerType:null}),{addGlobalListener:$,removeAllGlobalListeners:y}=Ns(),E=l.useMemo(()=>{let v=_.current,A=(S,q)=>{let{onPressStart:D,onPressChange:P,isDisabled:ee}=h.current;ee||v.didFirePressStart||(D&&D({type:"pressstart",pointerType:q,target:S.currentTarget,shiftKey:S.shiftKey,metaKey:S.metaKey,ctrlKey:S.ctrlKey,altKey:S.altKey}),P&&P(!0),v.didFirePressStart=!0,m(!0))},L=(S,q,D=!0)=>{let{onPressEnd:P,onPressChange:ee,onPress:Q,isDisabled:de}=h.current;v.didFirePressStart&&(v.ignoreClickAfterPress=!0,v.didFirePressStart=!1,P&&P({type:"pressend",pointerType:q,target:S.currentTarget,shiftKey:S.shiftKey,metaKey:S.metaKey,ctrlKey:S.ctrlKey,altKey:S.altKey}),ee&&ee(!1),m(!1),Q&&D&&!de&&Q({type:"press",pointerType:q,target:S.currentTarget,shiftKey:S.shiftKey,metaKey:S.metaKey,ctrlKey:S.ctrlKey,altKey:S.altKey}))},T=(S,q)=>{let{onPressUp:D,isDisabled:P}=h.current;P||D&&D({type:"pressup",pointerType:q,target:S.currentTarget,shiftKey:S.shiftKey,metaKey:S.metaKey,ctrlKey:S.ctrlKey,altKey:S.altKey})},M=S=>{v.isPressed&&(v.isOverTarget&&L(Ye(v.target,S),v.pointerType,!1),v.isPressed=!1,v.isOverTarget=!1,v.activePointerId=null,v.pointerType=null,y(),f||Wr(v.target))},F={onKeyDown(S){so(S.nativeEvent,S.currentTarget)&&S.currentTarget.contains(S.target)?(Bs(S.target,S.key)&&S.preventDefault(),S.stopPropagation(),!v.isPressed&&!S.repeat&&(v.target=S.currentTarget,v.isPressed=!0,A(S,"keyboard"),$(document,"keyup",G,!1))):S.key==="Enter"&&ao(S.currentTarget)&&S.stopPropagation()},onKeyUp(S){so(S.nativeEvent,S.currentTarget)&&!S.repeat&&S.currentTarget.contains(S.target)&&T(Ye(v.target,S),"keyboard")},onClick(S){S&&!S.currentTarget.contains(S.target)||S&&S.button===0&&(S.stopPropagation(),a&&S.preventDefault(),!v.ignoreClickAfterPress&&!v.ignoreEmulatedMouseEvents&&(v.pointerType==="virtual"||ro(S.nativeEvent))&&(!a&&!c&&kt(S.currentTarget),A(S,"virtual"),T(S,"virtual"),L(S,"virtual")),v.ignoreEmulatedMouseEvents=!1,v.ignoreClickAfterPress=!1)}},G=S=>{if(v.isPressed&&so(S,v.target)){Bs(S.target,S.key)&&S.preventDefault(),S.stopPropagation(),v.isPressed=!1;let q=S.target;L(Ye(v.target,S),"keyboard",v.target.contains(q)),y(),v.target instanceof HTMLElement&&v.target.contains(q)&&(ao(v.target)||v.target.getAttribute("role")==="link")&&v.target.click()}};if(typeof PointerEvent<"u"){F.onPointerDown=P=>{if(!(P.button!==0||!P.currentTarget.contains(P.target))){if(kb(P.nativeEvent)){v.pointerType="virtual";return}lo(P.currentTarget)&&P.preventDefault(),v.pointerType=P.pointerType,P.stopPropagation(),v.isPressed||(v.isPressed=!0,v.isOverTarget=!0,v.activePointerId=P.pointerId,v.target=P.currentTarget,!a&&!c&&kt(P.currentTarget),f||zs(v.target),A(P,v.pointerType),$(document,"pointermove",S,!1),$(document,"pointerup",q,!1),$(document,"pointercancel",D,!1))}},F.onMouseDown=P=>{P.currentTarget.contains(P.target)&&P.button===0&&(lo(P.currentTarget)&&P.preventDefault(),P.stopPropagation())},F.onPointerUp=P=>{!P.currentTarget.contains(P.target)||v.pointerType==="virtual"||P.button===0&&At(P,P.currentTarget)&&T(P,v.pointerType||P.pointerType)};let S=P=>{P.pointerId===v.activePointerId&&(At(P,v.target)?v.isOverTarget||(v.isOverTarget=!0,A(Ye(v.target,P),v.pointerType)):v.isOverTarget&&(v.isOverTarget=!1,L(Ye(v.target,P),v.pointerType,!1),h.current.shouldCancelOnPointerExit&&M(P)))},q=P=>{P.pointerId===v.activePointerId&&v.isPressed&&P.button===0&&(At(P,v.target)?L(Ye(v.target,P),v.pointerType):v.isOverTarget&&L(Ye(v.target,P),v.pointerType,!1),v.isPressed=!1,v.isOverTarget=!1,v.activePointerId=null,v.pointerType=null,y(),f||Wr(v.target))},D=P=>{M(P)};F.onDragStart=P=>{P.currentTarget.contains(P.target)&&M(P)}}else{F.onMouseDown=D=>{D.button!==0||!D.currentTarget.contains(D.target)||(lo(D.currentTarget)&&D.preventDefault(),D.stopPropagation(),!v.ignoreEmulatedMouseEvents&&(v.isPressed=!0,v.isOverTarget=!0,v.target=D.currentTarget,v.pointerType=ro(D.nativeEvent)?"virtual":"mouse",!a&&!c&&kt(D.currentTarget),A(D,v.pointerType),$(document,"mouseup",S,!1)))},F.onMouseEnter=D=>{D.currentTarget.contains(D.target)&&(D.stopPropagation(),v.isPressed&&!v.ignoreEmulatedMouseEvents&&(v.isOverTarget=!0,A(D,v.pointerType)))},F.onMouseLeave=D=>{D.currentTarget.contains(D.target)&&(D.stopPropagation(),v.isPressed&&!v.ignoreEmulatedMouseEvents&&(v.isOverTarget=!1,L(D,v.pointerType,!1),h.current.shouldCancelOnPointerExit&&M(D)))},F.onMouseUp=D=>{D.currentTarget.contains(D.target)&&!v.ignoreEmulatedMouseEvents&&D.button===0&&T(D,v.pointerType)};let S=D=>{if(D.button===0){if(v.isPressed=!1,y(),v.ignoreEmulatedMouseEvents){v.ignoreEmulatedMouseEvents=!1;return}At(D,v.target)?L(Ye(v.target,D),v.pointerType):v.isOverTarget&&L(Ye(v.target,D),v.pointerType,!1),v.isOverTarget=!1}};F.onTouchStart=D=>{if(!D.currentTarget.contains(D.target))return;D.stopPropagation();let P=Ib(D.nativeEvent);P&&(v.activePointerId=P.identifier,v.ignoreEmulatedMouseEvents=!0,v.isOverTarget=!0,v.isPressed=!0,v.target=D.currentTarget,v.pointerType="touch",!a&&!c&&kt(D.currentTarget),f||zs(v.target),A(D,v.pointerType),$(window,"scroll",q,!0))},F.onTouchMove=D=>{if(!D.currentTarget.contains(D.target)||(D.stopPropagation(),!v.isPressed))return;let P=js(D.nativeEvent,v.activePointerId);P&&At(P,D.currentTarget)?v.isOverTarget||(v.isOverTarget=!0,A(D,v.pointerType)):v.isOverTarget&&(v.isOverTarget=!1,L(D,v.pointerType,!1),h.current.shouldCancelOnPointerExit&&M(D))},F.onTouchEnd=D=>{if(!D.currentTarget.contains(D.target)||(D.stopPropagation(),!v.isPressed))return;let P=js(D.nativeEvent,v.activePointerId);P&&At(P,D.currentTarget)?(T(D,v.pointerType),L(D,v.pointerType)):v.isOverTarget&&L(D,v.pointerType,!1),v.isPressed=!1,v.activePointerId=null,v.isOverTarget=!1,v.ignoreEmulatedMouseEvents=!0,f||Wr(v.target),y()},F.onTouchCancel=D=>{D.currentTarget.contains(D.target)&&(D.stopPropagation(),v.isPressed&&M(D))};let q=D=>{v.isPressed&&D.target.contains(v.target)&&M({currentTarget:v.target,shiftKey:!1,ctrlKey:!1,metaKey:!1,altKey:!1})};F.onDragStart=D=>{D.currentTarget.contains(D.target)&&M(D)}}return F},[$,a,c,y,f]);return l.useEffect(()=>()=>{f||Wr(_.current.target)},[f]),{isPressed:s||g,pressProps:xe(b,E)}}function ao(e){return e.tagName==="A"&&e.hasAttribute("href")}function so(e,t){const{key:r,code:n}=e,o=t,i=o.getAttribute("role");return(r==="Enter"||r===" "||r==="Spacebar"||n==="Space")&&!(o instanceof HTMLInputElement&&!Ws(o,r)||o instanceof HTMLTextAreaElement||o.isContentEditable)&&(!ao(o)||i==="button"&&r!=="Enter")&&!(i==="link"&&r!=="Enter")}function Ib(e){const{targetTouches:t}=e;return t.length>0?t[0]:null}function js(e,t){const r=e.changedTouches;for(let n=0;n<r.length;n++){const o=r[n];if(o.identifier===t)return o}return null}function Ye(e,t){return{currentTarget:e,shiftKey:t.shiftKey,ctrlKey:t.ctrlKey,metaKey:t.metaKey,altKey:t.altKey}}function Ab(e){let t=e.width/2||e.radiusX||0,r=e.height/2||e.radiusY||0;return{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}function Nb(e,t){return!(e.left>t.right||t.left>e.right||e.top>t.bottom||t.top>e.bottom)}function At(e,t){let r=t.getBoundingClientRect(),n=Ab(e);return Nb(r,n)}function lo(e){return!(e instanceof HTMLElement)||!e.draggable}function Bs(e,t){return e instanceof HTMLInputElement?!Ws(e,t):e instanceof HTMLButtonElement?e.type!=="submit":!0}const Mb=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Ws(e,t){return e.type==="checkbox"||e.type==="radio"?t===" ":Mb.has(e.type)}class Lb{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,r){this.nativeEvent=r,this.target=r.target,this.currentTarget=r.currentTarget,this.relatedTarget=r.relatedTarget,this.bubbles=r.bubbles,this.cancelable=r.cancelable,this.defaultPrevented=r.defaultPrevented,this.eventPhase=r.eventPhase,this.isTrusted=r.isTrusted,this.timeStamp=r.timeStamp,this.type=t}}function Us(e){let t=l.useRef({isFocused:!1,onBlur:e,observer:null});return t.current.onBlur=e,Ot(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]),l.useCallback(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let n=r.target,o=i=>{var a,s;t.current.isFocused=!1,n.disabled&&((s=(a=t.current).onBlur)===null||s===void 0||s.call(a,new Lb("blur",i))),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};n.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{t.current.isFocused&&n.disabled&&(t.current.observer.disconnect(),n.dispatchEvent(new FocusEvent("blur")),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0})))}),t.current.observer.observe(n,{attributes:!0,attributeFilter:["disabled"]})}},[])}function co(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:o}=e;const i=l.useCallback(c=>{if(c.target===c.currentTarget)return n&&n(c),o&&o(!1),!0},[n,o]),a=Us(i),s=l.useCallback(c=>{c.target===c.currentTarget&&(r&&r(c),o&&o(!0),a(c))},[o,r,a]);return{focusProps:{onFocus:!t&&(r||o||n)?s:void 0,onBlur:!t&&(n||o)?i:null}}}let Nt=null,uo=new Set,Ks=!1,gt=!1,fo=!1;const Fb={Tab:!0,Escape:!0};function po(e,t){for(let r of uo)r(e,t)}function Rb(e){return!(e.metaKey||!Ls()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function Hs(e){gt=!0,Rb(e)&&(Nt="keyboard",po("keyboard",e))}function Mt(e){Nt="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(gt=!0,po("pointer",e))}function zb(e){ro(e)&&(gt=!0,Nt="virtual")}function Vb(e){e.target===window||e.target===document||(!gt&&!fo&&(Nt="virtual",po("virtual",e)),gt=!1,fo=!1)}function jb(){gt=!1,fo=!0}function ho(){if(typeof window>"u"||Ks)return;let e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){gt=!0,e.apply(this,arguments)},document.addEventListener("keydown",Hs,!0),document.addEventListener("keyup",Hs,!0),document.addEventListener("click",zb,!0),window.addEventListener("focus",Vb,!0),window.addEventListener("blur",jb,!1),typeof PointerEvent<"u"?(document.addEventListener("pointerdown",Mt,!0),document.addEventListener("pointermove",Mt,!0),document.addEventListener("pointerup",Mt,!0)):(document.addEventListener("mousedown",Mt,!0),document.addEventListener("mousemove",Mt,!0),document.addEventListener("mouseup",Mt,!0)),Ks=!0}typeof document<"u"&&(document.readyState!=="loading"?ho():document.addEventListener("DOMContentLoaded",ho));function Gs(){return Nt!=="pointer"}function Bb(){return Nt}function Wb(e,t,r){return!(e&&t==="keyboard"&&r instanceof KeyboardEvent&&!Fb[r.key])}function Ub(e,t,r){ho(),l.useEffect(()=>{let n=(o,i)=>{Wb(r==null?void 0:r.isTextInput,o,i)&&e(Gs())};return uo.add(n),()=>{uo.delete(n)}},t)}function qs(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:o}=e,i=l.useRef({isFocusWithin:!1}),a=l.useCallback(d=>{i.current.isFocusWithin&&!d.currentTarget.contains(d.relatedTarget)&&(i.current.isFocusWithin=!1,r&&r(d),o&&o(!1))},[r,o,i]),s=Us(a),c=l.useCallback(d=>{i.current.isFocusWithin||(n&&n(d),o&&o(!0),i.current.isFocusWithin=!0,s(d))},[n,o,s]);return t?{focusWithinProps:{onFocus:null,onBlur:null}}:{focusWithinProps:{onFocus:c,onBlur:a}}}function Ys(e){if(!e)return;let t=!0;return r=>{let n={...r,preventDefault(){r.preventDefault()},isDefaultPrevented(){return r.isDefaultPrevented()},stopPropagation(){console.error("stopPropagation is now the default behavior for events in React Spectrum. You can use continuePropagation() to revert this behavior.")},continuePropagation(){t=!1}};e(n),t&&r.stopPropagation()}}function Kb(e){return{keyboardProps:e.isDisabled?{}:{onKeyDown:Ys(e.onKeyDown),onKeyUp:Ys(e.onKeyUp)}}}function Hb(e,t){let{onScroll:r,isDisabled:n}=e,o=l.useCallback(i=>{i.ctrlKey||(i.preventDefault(),i.stopPropagation(),r&&r({deltaX:i.deltaX,deltaY:i.deltaY}))},[r]);Ob(t,"wheel",n?null:o)}function Gb(e){if(Bb()==="virtual"){let t=document.activeElement;As(()=>{document.activeElement===t&&document.contains(e)&&kt(e)})}else kt(e)}function qb(e,t){return t.some(r=>r.contains(e))}class mo{get size(){return this.fastMap.size}getTreeNode(t){return this.fastMap.get(t)}addTreeNode(t,r,n){let o=this.fastMap.get(r??null),i=new Xs({scopeRef:t});o.addChild(i),i.parent=o,this.fastMap.set(t,i),n&&(i.nodeToRestore=n)}removeTreeNode(t){if(t===null)return;let r=this.fastMap.get(t),n=r.parent;for(let i of this.traverse())i!==r&&r.nodeToRestore&&i.nodeToRestore&&r.scopeRef.current&&qb(i.nodeToRestore,r.scopeRef.current)&&(i.nodeToRestore=r.nodeToRestore);let o=r.children;n.removeChild(r),o.length>0&&o.forEach(i=>n.addChild(i)),this.fastMap.delete(r.scopeRef)}*traverse(t=this.root){if(t.scopeRef!=null&&(yield t),t.children.length>0)for(let r of t.children)yield*this.traverse(r)}clone(){let t=new mo;for(let r of this.traverse())t.addTreeNode(r.scopeRef,r.parent.scopeRef,r.nodeToRestore);return t}constructor(){no(this,"fastMap",new Map),this.root=new Xs({scopeRef:null}),this.fastMap.set(null,this.root)}}class Xs{addChild(t){this.children.push(t),t.parent=this}removeChild(t){this.children.splice(this.children.indexOf(t),1),t.parent=void 0}constructor(t){no(this,"children",[]),no(this,"contain",!1),this.scopeRef=t.scopeRef}}new mo;function Ur(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,o=l.useRef({isFocused:!1,isFocusVisible:t||Gs()}),[i,a]=l.useState(!1),[s,c]=l.useState(()=>o.current.isFocused&&o.current.isFocusVisible),d=l.useCallback(()=>c(o.current.isFocused&&o.current.isFocusVisible),[]),f=l.useCallback(h=>{o.current.isFocused=h,a(h),d()},[d]);Ub(h=>{o.current.isFocusVisible=h,d()},[],{isTextInput:r});let{focusProps:p}=co({isDisabled:n,onFocusChange:f}),{focusWithinProps:b}=qs({isDisabled:!n,onFocusWithinChange:f});return{isFocused:i,isFocusVisible:o.current.isFocused&&s,focusProps:n?b:p}}let Yb=l.createContext(null);function Xb(e){let t=l.useContext(Yb)||{};Ms(t,e);let{ref:r,...n}=t;return n}function bo(e,t){let{focusProps:r}=co(e),{keyboardProps:n}=Kb(e),o=xe(r,n),i=Xb(t),a=e.isDisabled?{}:i,s=l.useRef(e.autoFocus);return l.useEffect(()=>{s.current&&t.current&&Gb(t.current),s.current=!1},[t]),{focusableProps:xe({...o,tabIndex:e.excludeFromTabOrder&&!e.isDisabled?-1:void 0},a)}}function Jb(e,t){let{elementType:r="a",onPress:n,onPressStart:o,onPressEnd:i,onClick:a,isDisabled:s,...c}=e,d;r!=="a"&&(d={role:"link",tabIndex:s?void 0:0});let{focusableProps:f}=bo(e,t),{pressProps:p,isPressed:b}=io({onPress:n,onPressStart:o,onPressEnd:i,isDisabled:s,ref:t}),h=Zt(c,{labelable:!0}),g=xe(f,p);return{isPressed:b,linkProps:xe(h,{...g,...d,"aria-disabled":s||void 0,onClick:m=>{p.onClick(m),a&&(a(m),console.warn("onClick is deprecated, please use onPress"))}})}}class Zb{getStringForLocale(t,r){let n=this.strings[r];n||(n=Qb(r,this.strings,this.defaultLocale),this.strings[r]=n);let o=n[t];if(!o)throw new Error(`Could not find intl message ${t} in ${r} locale`);return o}constructor(t,r="en-US"){this.strings={...t},this.defaultLocale=r}}function Qb(e,t,r="en-US"){if(t[e])return t[e];let n=eg(e);if(t[n])return t[n];for(let o in t)if(o.startsWith(n+"-"))return t[o];return t[r]}function eg(e){return Intl.Locale?new Intl.Locale(e).language:e.split("-")[0]}const Js=new Map,Zs=new Map;class tg{format(t,r){let n=this.strings.getStringForLocale(t,this.locale);return typeof n=="function"?n(r,this):n}plural(t,r,n="cardinal"){let o=r["="+t];if(o)return typeof o=="function"?o():o;let i=this.locale+":"+n,a=Js.get(i);a||(a=new Intl.PluralRules(this.locale,{type:n}),Js.set(i,a));let s=a.select(t);return o=r[s]||r.other,typeof o=="function"?o():o}number(t){let r=Zs.get(this.locale);return r||(r=new Intl.NumberFormat(this.locale),Zs.set(this.locale,r)),r.format(t)}select(t,r){let n=t[r]||t.other;return typeof n=="function"?n():n}constructor(t,r){this.locale=t,this.strings=r}}let go=new Map,vo=!1;try{vo=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let Kr=!1;try{Kr=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const Qs={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class _o{format(t){let r="";if(!vo&&this.options.signDisplay!=null?r=ng(this.numberFormatter,this.options.signDisplay,t):r=this.numberFormatter.format(t),this.options.style==="unit"&&!Kr){var n;let{unit:o,unitDisplay:i="short",locale:a}=this.resolvedOptions(),s=(n=Qs[o])===null||n===void 0?void 0:n[i];r+=s[a]||s.default}return r}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,r){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,r);if(r<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(r)}`}formatRangeToParts(t,r){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,r);if(r<t)throw new RangeError("End date must be >= start date");let n=this.numberFormatter.formatToParts(t),o=this.numberFormatter.formatToParts(r);return[...n.map(i=>({...i,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...o.map(i=>({...i,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!vo&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!Kr&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,r={}){this.numberFormatter=rg(t,r),this.options=r}}function rg(e,t={}){let{numberingSystem:r}=t;if(r&&e.indexOf("-u-nu-")===-1&&(e=`${e}-u-nu-${r}`),t.style==="unit"&&!Kr){var n;let{unit:a,unitDisplay:s="short"}=t;if(!a)throw new Error('unit option must be provided with style: "unit"');if(!(!((n=Qs[a])===null||n===void 0)&&n[s]))throw new Error(`Unsupported unit ${a} with unitDisplay = ${s}`);t={...t,style:"decimal"}}let o=e+(t?Object.entries(t).sort((a,s)=>a[0]<s[0]?-1:1).join():"");if(go.has(o))return go.get(o);let i=new Intl.NumberFormat(e,t);return go.set(o,i),i}function ng(e,t,r){if(t==="auto")return e.format(r);if(t==="never")return e.format(Math.abs(r));{let n=!1;if(t==="always"?n=r>0||Object.is(r,0):t==="exceptZero"&&(Object.is(r,-0)||Object.is(r,0)?r=Math.abs(r):n=r>0),n){let o=e.format(-r),i=e.format(r),a=o.replace(i,"").replace(/\u200e|\u061C/,"");return[...a].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),o.replace(i,"!!!").replace(a,"+").replace("!!!",i)}else return e.format(r)}}const og=new RegExp("^.*\\(.*\\).*$"),ig=["latn","arab","hanidec"];class ag{parse(t){return yo(this.locale,this.options,t).parse(t)}isValidPartialNumber(t,r,n){return yo(this.locale,this.options,t).isValidPartialNumber(t,r,n)}getNumberingSystem(t){return yo(this.locale,this.options,t).options.numberingSystem}constructor(t,r={}){this.locale=t,this.options=r}}const el=new Map;function yo(e,t,r){let n=tl(e,t);if(!e.includes("-nu-")&&!n.isValidPartialNumber(r)){for(let o of ig)if(o!==n.options.numberingSystem){let i=tl(e+(e.includes("-u-")?"-nu-":"-u-nu-")+o,t);if(i.isValidPartialNumber(r))return i}}return n}function tl(e,t){let r=e+(t?Object.entries(t).sort((o,i)=>o[0]<i[0]?-1:1).join():""),n=el.get(r);return n||(n=new sg(e,t),el.set(r,n)),n}class sg{parse(t){let r=this.sanitize(t);r=Hr(r,this.symbols.group,"").replace(this.symbols.decimal,".").replace(this.symbols.minusSign,"-").replace(this.symbols.numeral,this.symbols.index);let n=r?+r:NaN;if(isNaN(n))return NaN;if(this.options.currencySign==="accounting"&&og.test(t)&&(n=-1*n),this.options.style==="percent"){n/=100;var o;n=+n.toFixed(((o=this.options.maximumFractionDigits)!==null&&o!==void 0?o:0)+2)}return n}sanitize(t){return t=t.replace(this.symbols.literals,""),t=t.replace("-",this.symbols.minusSign),this.options.numberingSystem==="arab"&&(t=t.replace(",",this.symbols.decimal),t=t.replace(String.fromCharCode(1548),this.symbols.decimal),t=Hr(t,".",this.symbols.group)),this.options.locale==="fr-FR"&&(t=Hr(t,".",String.fromCharCode(8239))),t}isValidPartialNumber(t,r=-1/0,n=1/0){return t=this.sanitize(t),t.startsWith(this.symbols.minusSign)&&r<0?t=t.slice(this.symbols.minusSign.length):this.symbols.plusSign&&t.startsWith(this.symbols.plusSign)&&n>0&&(t=t.slice(this.symbols.plusSign.length)),t.startsWith(this.symbols.group)?!1:(t=Hr(t,this.symbols.group,"").replace(this.symbols.numeral,"").replace(this.symbols.decimal,""),t.length===0)}constructor(t,r={}){this.formatter=new Intl.NumberFormat(t,r),this.options=this.formatter.resolvedOptions(),this.symbols=lg(this.formatter,this.options,r)}}const rl=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]);function lg(e,t,r){var n,o,i,a;let s=e.formatToParts(-10000.111),c=e.formatToParts(10000.111),d=e.formatToParts(1);var f;let p=(f=(n=s.find(T=>T.type==="minusSign"))===null||n===void 0?void 0:n.value)!==null&&f!==void 0?f:"-",b=(o=c.find(T=>T.type==="plusSign"))===null||o===void 0?void 0:o.value;!b&&((r==null?void 0:r.signDisplay)==="exceptZero"||(r==null?void 0:r.signDisplay)==="always")&&(b="+");let h=(i=s.find(T=>T.type==="decimal"))===null||i===void 0?void 0:i.value,g=(a=s.find(T=>T.type==="group"))===null||a===void 0?void 0:a.value,m=s.filter(T=>!rl.has(T.type)).map(T=>nl(T.value)),_=d.filter(T=>!rl.has(T.type)).map(T=>nl(T.value)),$=[...new Set([..._,...m])].sort((T,M)=>M.length-T.length),y=$.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${$.join("|")}|[\\p{White_Space}]`,"gu"),E=[...new Intl.NumberFormat(t.locale,{useGrouping:!1}).format(9876543210)].reverse(),v=new Map(E.map((T,M)=>[T,M])),A=new RegExp(`[${E.join("")}]`,"g");return{minusSign:p,plusSign:b,decimal:h,group:g,literals:y,numeral:A,index:T=>String(v.get(T))}}function Hr(e,t,r){return e.replaceAll?e.replaceAll(t,r):e.split(t).join(r)}function nl(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}const cg=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),ug=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function dg(e){if(Intl.Locale){let r=new Intl.Locale(e).maximize().script;return cg.has(r)}let t=e.split("-")[0];return ug.has(t)}function ol(){let e=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([e])}catch{e="en-US"}return{locale:e,direction:dg(e)?"rtl":"ltr"}}let $o=ol(),Qt=new Set;function il(){$o=ol();for(let e of Qt)e($o)}function fg(){let e=gb(),[t,r]=l.useState($o);return l.useEffect(()=>(Qt.size===0&&window.addEventListener("languagechange",il),Qt.add(r),()=>{Qt.delete(r),Qt.size===0&&window.removeEventListener("languagechange",il)}),[]),e?{locale:"en-US",direction:"ltr"}:t}const pg=l.createContext(null);function al(){let e=fg();return l.useContext(pg)||e}const sl=new WeakMap;function hg(e){let t=sl.get(e);return t||(t=new Zb(e),sl.set(e,t)),t}function Gr(e){let{locale:t}=al(),r=l.useMemo(()=>hg(e),[e]);return l.useMemo(()=>new tg(t,r),[t,r])}function mg(e={}){let{locale:t}=al();return l.useMemo(()=>new _o(t,e),[t,e])}function bg(e){return e&&e.__esModule?e.default:e}function gg(e,t){let{isCurrent:r,isDisabled:n,"aria-current":o,elementType:i="a",...a}=e,{linkProps:s}=Jb({isDisabled:n||r,elementType:i,...a},t),c=/^h[1-6]$/.test(i),d={};return c||(d=s),r&&(d["aria-current"]=o||"page",d.tabIndex=e.autoFocus?-1:void 0),{itemProps:{"aria-disabled":n,...d}}}var ll={},cl={};cl={breadcrumbs:"عناصر الواجهة"};var ul={};ul={breadcrumbs:"Трохи хляб"};var dl={};dl={breadcrumbs:"Popis cesty"};var fl={};fl={breadcrumbs:"Brødkrummer"};var pl={};pl={breadcrumbs:"Breadcrumbs"};var hl={};hl={breadcrumbs:"Πλοηγήσεις breadcrumb"};var ml={};ml={breadcrumbs:"Breadcrumbs"};var bl={};bl={breadcrumbs:"Migas de pan"};var gl={};gl={breadcrumbs:"Lingiread"};var vl={};vl={breadcrumbs:"Navigointilinkit"};var _l={};_l={breadcrumbs:"Chemin de navigation"};var yl={};yl={breadcrumbs:"שבילי ניווט"};var $l={};$l={breadcrumbs:"Navigacijski putovi"};var xl={};xl={breadcrumbs:"Morzsamenü"};var wl={};wl={breadcrumbs:"Breadcrumb"};var El={};El={breadcrumbs:"パンくずリスト"};var Pl={};Pl={breadcrumbs:"탐색 표시"};var Sl={};Sl={breadcrumbs:"Naršymo kelias"};var Cl={};Cl={breadcrumbs:"Atpakaļceļi"};var Tl={};Tl={breadcrumbs:"Navigasjonsstier"};var Ol={};Ol={breadcrumbs:"Broodkruimels"};var kl={};kl={breadcrumbs:"Struktura nawigacyjna"};var Dl={};Dl={breadcrumbs:"Caminho detalhado"};var Il={};Il={breadcrumbs:"Categorias"};var Al={};Al={breadcrumbs:"Miez de pâine"};var Nl={};Nl={breadcrumbs:"Навигация"};var Ml={};Ml={breadcrumbs:"Navigačné prvky Breadcrumbs"};var Ll={};Ll={breadcrumbs:"Drobtine"};var Fl={};Fl={breadcrumbs:"Putanje navigacije"};var Rl={};Rl={breadcrumbs:"Sökvägar"};var zl={};zl={breadcrumbs:"İçerik haritaları"};var Vl={};Vl={breadcrumbs:"Навігаційна стежка"};var jl={};jl={breadcrumbs:"导航栏"};var Bl={};Bl={breadcrumbs:"導覽列"},ll={"ar-AE":cl,"bg-BG":ul,"cs-CZ":dl,"da-DK":fl,"de-DE":pl,"el-GR":hl,"en-US":ml,"es-ES":bl,"et-EE":gl,"fi-FI":vl,"fr-FR":_l,"he-IL":yl,"hr-HR":$l,"hu-HU":xl,"it-IT":wl,"ja-JP":El,"ko-KR":Pl,"lt-LT":Sl,"lv-LV":Cl,"nb-NO":Tl,"nl-NL":Ol,"pl-PL":kl,"pt-BR":Dl,"pt-PT":Il,"ro-RO":Al,"ru-RU":Nl,"sk-SK":Ml,"sl-SI":Ll,"sr-SP":Fl,"sv-SE":Rl,"tr-TR":zl,"uk-UA":Vl,"zh-CN":jl,"zh-TW":Bl};function vg(e){let{"aria-label":t,...r}=e,n=Gr(bg(ll));return{navProps:{...Zt(r,{labelable:!0}),"aria-label":t||n.format("breadcrumbs")}}}const _g=I(fb)`
|
|
195
199
|
border-radius: ${u.border_radius_400};
|
|
196
200
|
padding: ${u.sizing_200};
|
|
197
|
-
width:
|
|
201
|
+
width: fit-content; // Pass props?
|
|
198
202
|
background-color: ${u.color_white};
|
|
199
|
-
box-shadow:
|
|
200
|
-
hsl(206deg 22% 7% / 20%) 0px 10px 20px -15px;
|
|
203
|
+
box-shadow: ${u.elevation_interactive_medium};
|
|
201
204
|
`,yg=I(pb)`
|
|
202
205
|
fill: ${u.color_white};
|
|
203
|
-
`;function $g({children:e,...t}){return k(
|
|
206
|
+
`;function $g({children:e,...t}){return k(db,{children:le(_g,{...t,children:[e,k(yg,{})]})})}const xg=Ps,wg=I(Ps)`
|
|
204
207
|
all: unset;
|
|
205
208
|
cursor: pointer;
|
|
206
209
|
font-family: inherit;
|
|
@@ -210,11 +213,11 @@ Check the top-level render call using <`+U+">.")}return z}}function Ut(x,z){{if(
|
|
|
210
213
|
display: inline-flex;
|
|
211
214
|
align-items: center;
|
|
212
215
|
justify-content: center;
|
|
213
|
-
color:
|
|
216
|
+
color: ${u.color_fill_inverse_pressed};
|
|
214
217
|
position: absolute;
|
|
215
218
|
top: 5px;
|
|
216
219
|
right: 5px;
|
|
217
|
-
`,
|
|
220
|
+
`,Wl=cb,Ul=ub,Eg="data:image/svg+xml;base64,PHN2ZyBmb2N1c2FibGU9ImZhbHNlIiB2aWV3Qm94PSIwIDAgMjQgMjQiIGFyaWEtaGlkZGVuPSJ0cnVlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgICB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8cGF0aCBkPSIgTTE5IDE1bC02IDYtMS40Mi0xLjQyTDE1LjE3IDE2SDRWNGgydjEwaDkuMTdsLTMuNTktMy41OEwxMyA5bDYgNnoiIGZpbGw9ImhzbGEoMCwgMCUsIDAlLCAwLjEyKSI+PC9wYXRoPgo8L3N2Zz4=",Pg=I(xs)`
|
|
218
221
|
margin-top: 22px;
|
|
219
222
|
isolation: isolate;
|
|
220
223
|
min-width: 210px;
|
|
@@ -226,7 +229,7 @@ Check the top-level render call using <`+U+">.")}return z}}function Ut(x,z){{if(
|
|
|
226
229
|
&[data-state~='focused'] {
|
|
227
230
|
outline: 1px solid ${u.color_black};
|
|
228
231
|
}
|
|
229
|
-
`;function
|
|
232
|
+
`;function Sg({children:e}){const{isFocusVisible:t,focusProps:r}=Ur();return k(Pg,{align:"start",...r,"data-state":t?"focused":void 0,children:e})}const xo=I.ol`
|
|
230
233
|
font-family: ${u.font_family_sans};
|
|
231
234
|
display: flex;
|
|
232
235
|
list-style: none;
|
|
@@ -242,7 +245,7 @@ Check the top-level render call using <`+U+">.")}return z}}function Ut(x,z){{if(
|
|
|
242
245
|
font-family: ${u.font_family_sans};
|
|
243
246
|
color: ${u.color_divider_standard};
|
|
244
247
|
}
|
|
245
|
-
`,
|
|
248
|
+
`,Kl=I(xo)`
|
|
246
249
|
flex-direction: column;
|
|
247
250
|
|
|
248
251
|
& li {
|
|
@@ -256,7 +259,7 @@ Check the top-level render call using <`+U+">.")}return z}}function Ut(x,z){{if(
|
|
|
256
259
|
|
|
257
260
|
& > ol li:first-of-type::before {
|
|
258
261
|
content: '';
|
|
259
|
-
background-image: url(${
|
|
262
|
+
background-image: url(${Eg});
|
|
260
263
|
display: block;
|
|
261
264
|
height: 1em;
|
|
262
265
|
width: 1em;
|
|
@@ -270,7 +273,7 @@ Check the top-level render call using <`+U+">.")}return z}}function Ut(x,z){{if(
|
|
|
270
273
|
display: flex;
|
|
271
274
|
align-items: center;
|
|
272
275
|
gap: ${u.sizing_200};
|
|
273
|
-
`,
|
|
276
|
+
`,Hl=I.a`
|
|
274
277
|
text-decoration: none;
|
|
275
278
|
color: ${u.color_text_weak};
|
|
276
279
|
font-style: normal;
|
|
@@ -313,7 +316,7 @@ Check the top-level render call using <`+U+">.")}return z}}function Ut(x,z){{if(
|
|
|
313
316
|
color: ${u.color_text_strong};
|
|
314
317
|
font-weight: 400;
|
|
315
318
|
}
|
|
316
|
-
`,
|
|
319
|
+
`,Cg=I.button`
|
|
317
320
|
appearance: none;
|
|
318
321
|
cursor: pointer;
|
|
319
322
|
touch-action: none;
|
|
@@ -340,19 +343,19 @@ Check the top-level render call using <`+U+">.")}return z}}function Ut(x,z){{if(
|
|
|
340
343
|
&[data-state~='open'] {
|
|
341
344
|
background-color: ${u.color_overlay_secondary_pressed}; /* Interactive / Overlay / Secondary / Pressed */
|
|
342
345
|
}
|
|
343
|
-
`;function
|
|
346
|
+
`;function Gl({truncatedItems:e}){return e.length>1?le(Kl,{children:[e.slice(0,1),k(Gl,{truncatedItems:e.slice(1)})]}):k(Kl,{children:e})}function Tg({truncatedItems:e}){return k(wo,{children:le(Wl,{children:[k(Ul,{asChild:!0,children:k(Cg,{type:"button",children:"..."})}),k(Sg,{children:k(Gl,{truncatedItems:e})})]})})}const ql=l.forwardRef(({children:e,...t},r)=>{const{navProps:n}=vg(t);$t.isFragment(e)&&console.warn("Passing a React fragment to Breadcrumbs will make it not work correctly!");const o=l.Children.toArray(e),i=3;if(o.length>i){const s=o[0],c=o.slice(-2),d=o.slice(1,-2);return k("nav",{...n,children:le(xo,{ref:r,children:[s,k(Tg,{truncatedItems:d}),c]})})}return k("nav",{...n,children:k(xo,{ref:r,children:o})})});ql.displayName="Breadcrumbs";const Yl=l.forwardRef((e,t)=>{const{LinkComponent:r="a",disabled:n,...o}=e,i=bt(t),a=typeof r=="string",{children:s,href:c,isCurrent:d}=e,{itemProps:f}=gg({isDisabled:n,isCurrent:d,elementType:a?r:"a",...o},i),{isPressed:p,pressProps:b}=io({isDisabled:n??d,ref:i}),{isFocusVisible:h,focusProps:g}=Ur(),m=[p&&"pressed",n&&"disabled",h&&"focused"].filter(Boolean).join(" "),$=d||n?{}:{[a?"href":"to"]:c};return k(wo,{children:k(Hl,{as:r,...f,ref:i,"data-state":m,...g,...b,...$,children:s})})});Yl.displayName="BreadcrumbItem";function Eo(e,t){let{elementType:r="button",isDisabled:n,onPress:o,onPressStart:i,onPressEnd:a,onPressChange:s,preventFocusOnPress:c,allowFocusWhenDisabled:d,onClick:f,href:p,target:b,rel:h,type:g="button"}=e,m;r==="button"?m={type:g,disabled:n}:m={role:"button",tabIndex:n?void 0:0,href:r==="a"&&n?void 0:p,target:r==="a"?b:void 0,type:r==="input"?g:void 0,disabled:r==="input"?n:void 0,"aria-disabled":!n||r==="input"?void 0:n,rel:r==="a"?h:void 0};let{pressProps:_,isPressed:$}=io({onPressStart:i,onPressEnd:a,onPressChange:s,onPress:o,isDisabled:n,preventFocusOnPress:c,ref:t}),{focusableProps:y}=bo(e,t);d&&(y.tabIndex=n?-1:y.tabIndex);let E=xe(y,_,Zt(e,{labelable:!0}));return{isPressed:$,buttonProps:xe(m,E,{"aria-haspopup":e["aria-haspopup"],"aria-expanded":e["aria-expanded"],"aria-controls":e["aria-controls"],"aria-pressed":e["aria-pressed"],onClick:v=>{f&&(f(v),console.warn("onClick is deprecated, please use onPress"))}})}}const Og={small:`${u.spacing_200} ${u.spacing_300}`,large:`${u.spacing_300} ${u.spacing_400}`},Fe=I.button`
|
|
344
347
|
appearance: none;
|
|
345
348
|
border-radius: ${u.border_radius_400};
|
|
346
349
|
border: 1px solid transparent;
|
|
347
350
|
font-style: normal;
|
|
348
|
-
padding: ${({paddingSize:e})=>
|
|
351
|
+
padding: ${({paddingSize:e})=>Og[e]};
|
|
349
352
|
font-family: ${u.font_family_sans};
|
|
350
353
|
cursor: pointer;
|
|
351
354
|
white-space: nowrap;
|
|
352
|
-
max-width: ${u.spacing_900}; /* not sure about this */
|
|
353
355
|
font-size: ${u.font_size_100};
|
|
354
356
|
letter-spacing: ${u.letter_spacing_tight};
|
|
355
357
|
flex-shrink: 0;
|
|
358
|
+
line-height: 1;
|
|
356
359
|
overflow: hidden;
|
|
357
360
|
text-overflow: ellipsis;
|
|
358
361
|
touch-action: none;
|
|
@@ -372,7 +375,7 @@ Check the top-level render call using <`+U+">.")}return z}}function Ut(x,z){{if(
|
|
|
372
375
|
&:disabled {
|
|
373
376
|
cursor: not-allowed;
|
|
374
377
|
}
|
|
375
|
-
`,
|
|
378
|
+
`,kg=I(Fe)`
|
|
376
379
|
background: ${u.color_white};
|
|
377
380
|
color: hsl(0, 0%, 7.84%);
|
|
378
381
|
border: 1px solid ${u.color_outline_secondary_enabled};
|
|
@@ -393,7 +396,7 @@ Check the top-level render call using <`+U+">.")}return z}}function Ut(x,z){{if(
|
|
|
393
396
|
color: ${u.color_fill_secondary_disabled};
|
|
394
397
|
border-color: ${u.color_outline_secondary_disabled};
|
|
395
398
|
}
|
|
396
|
-
`,
|
|
399
|
+
`,Dg=I(Fe)`
|
|
397
400
|
background: ${u.color_white};
|
|
398
401
|
color: ${u.color_fill_danger_enabled};
|
|
399
402
|
border: 1px solid ${u.color_outline_danger_enabled};
|
|
@@ -411,7 +414,7 @@ Check the top-level render call using <`+U+">.")}return z}}function Ut(x,z){{if(
|
|
|
411
414
|
&:disabled {
|
|
412
415
|
color: ${u.color_fill_danger_disabled};
|
|
413
416
|
}
|
|
414
|
-
`,
|
|
417
|
+
`,Ig=I(Fe)`
|
|
415
418
|
background: ${u.color_overlay_inverse_enabled};
|
|
416
419
|
border-color: ${u.color_outline_inverse_enabled};
|
|
417
420
|
color: ${u.color_fill_inverse_enabled};
|
|
@@ -439,7 +442,7 @@ Check the top-level render call using <`+U+">.")}return z}}function Ut(x,z){{if(
|
|
|
439
442
|
background-color: transparent;
|
|
440
443
|
color: ${u.color_outline_inverse_disabled};
|
|
441
444
|
}
|
|
442
|
-
`,
|
|
445
|
+
`,Ag={primary:kg,danger:Dg,inverse:Ig},Ng=I(Fe)`
|
|
443
446
|
background: hsla(
|
|
444
447
|
217.35,
|
|
445
448
|
81.6%,
|
|
@@ -462,7 +465,7 @@ Check the top-level render call using <`+U+">.")}return z}}function Ut(x,z){{if(
|
|
|
462
465
|
&:disabled {
|
|
463
466
|
color: ${u.color_fill_primary_disabled};
|
|
464
467
|
}
|
|
465
|
-
`,
|
|
468
|
+
`,Mg=I(Fe)`
|
|
466
469
|
color: ${u.color_fill_danger_enabled};
|
|
467
470
|
background-color: hsl(217.35, 81.6%, 50.98%);
|
|
468
471
|
|
|
@@ -484,7 +487,7 @@ Check the top-level render call using <`+U+">.")}return z}}function Ut(x,z){{if(
|
|
|
484
487
|
&:disabled {
|
|
485
488
|
color: ${u.color_fill_danger_disabled};
|
|
486
489
|
}
|
|
487
|
-
`,
|
|
490
|
+
`,Lg=I(Fe)`
|
|
488
491
|
background: ${u.color_overlay_inverse_enabled};
|
|
489
492
|
border-color: transparent;
|
|
490
493
|
color: ${u.color_fill_inverse_enabled};
|
|
@@ -509,7 +512,7 @@ Check the top-level render call using <`+U+">.")}return z}}function Ut(x,z){{if(
|
|
|
509
512
|
background-color: ${u.color_fill_inverse_disabled};
|
|
510
513
|
color: ${u.color_outline_inverse_disabled};
|
|
511
514
|
}
|
|
512
|
-
`,
|
|
515
|
+
`,Fg={primary:Ng,danger:Mg,inverse:Lg},Rg=I(Fe)`
|
|
513
516
|
background: ${u.color_fill_primary_enabled};
|
|
514
517
|
color: ${u.color_white};
|
|
515
518
|
|
|
@@ -526,7 +529,7 @@ Check the top-level render call using <`+U+">.")}return z}}function Ut(x,z){{if(
|
|
|
526
529
|
background: ${u.color_fill_primary_disabled};
|
|
527
530
|
color: ${u.color_fill_inverse_pressed};
|
|
528
531
|
}
|
|
529
|
-
`,
|
|
532
|
+
`,zg=I(Fe)`
|
|
530
533
|
background: ${u.color_fill_secondary_enabled};
|
|
531
534
|
color: ${u.color_fill_primary_enabled};
|
|
532
535
|
|
|
@@ -543,7 +546,7 @@ Check the top-level render call using <`+U+">.")}return z}}function Ut(x,z){{if(
|
|
|
543
546
|
&:disabled {
|
|
544
547
|
background: ${u.color_fill_secondary_disabled};
|
|
545
548
|
}
|
|
546
|
-
`,
|
|
549
|
+
`,Vg=I(Fe)`
|
|
547
550
|
background: ${u.color_fill_danger_enabled};
|
|
548
551
|
color: ${u.color_white};
|
|
549
552
|
|
|
@@ -560,7 +563,7 @@ Check the top-level render call using <`+U+">.")}return z}}function Ut(x,z){{if(
|
|
|
560
563
|
&:disabled {
|
|
561
564
|
background: ${u.color_fill_danger_disabled};
|
|
562
565
|
}
|
|
563
|
-
`,
|
|
566
|
+
`,jg=I(Fe)`
|
|
564
567
|
background: ${u.color_white};
|
|
565
568
|
|
|
566
569
|
&:hover {
|
|
@@ -574,10 +577,10 @@ Check the top-level render call using <`+U+">.")}return z}}function Ut(x,z){{if(
|
|
|
574
577
|
&:disabled {
|
|
575
578
|
background: ${u.color_fill_inverse_disabled};
|
|
576
579
|
}
|
|
577
|
-
`,
|
|
580
|
+
`,Bg={low:Fg,medium:Ag,high:{primary:Rg,secondary:zg,danger:Vg,inverse:jg}},Po=l.forwardRef((e,t)=>{const{size:r="small",variant:n="primary",emphasis:o="high",disabled:i=!1,onClick:a,autoFocus:s,children:c,...d}=e,f=bt(t),{buttonProps:p,isPressed:b}=Eo({onPress:a,isDisabled:i,autoFocus:s,...d},f),{isFocusVisible:h,focusProps:g}=Ur({autoFocus:s}),$=[h?"focused":void 0,b?"pressed":void 0].filter(Boolean).join(" "),E=Bg[o][n];return k(E,{ref:f,"data-state":$,paddingSize:r,...p,...g,...d,children:c})});Po.displayName="Button";function qr(e){const t=l.useRef({value:e,previous:e});return l.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}const Xl="Checkbox",[Wg,TE]=Pe(Xl),[Ug,Kg]=Wg(Xl),Hg=l.forwardRef((e,t)=>{const{__scopeCheckbox:r,name:n,checked:o,defaultChecked:i,required:a,disabled:s,value:c="on",onCheckedChange:d,...f}=e,[p,b]=l.useState(null),h=se(t,y=>b(y)),g=l.useRef(!1),m=p?Boolean(p.closest("form")):!0,[_=!1,$]=Ne({prop:o,defaultProp:i,onChange:d});return l.createElement(Ug,{scope:r,state:_,disabled:s},l.createElement(te.button,C({type:"button",role:"checkbox","aria-checked":vt(_)?"mixed":_,"aria-required":a,"data-state":Jl(_),"data-disabled":s?"":void 0,disabled:s,value:c},f,{ref:h,onKeyDown:H(e.onKeyDown,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:H(e.onClick,y=>{$(E=>vt(E)?!0:!E),m&&(g.current=y.isPropagationStopped(),g.current||y.stopPropagation())})})),m&&l.createElement(Yg,{control:p,bubbles:!g.current,name:n,value:c,checked:_,required:a,disabled:s,style:{transform:"translateX(-100%)"}}))}),Gg="CheckboxIndicator",qg=l.forwardRef((e,t)=>{const{__scopeCheckbox:r,forceMount:n,...o}=e,i=Kg(Gg,r);return l.createElement(ke,{present:n||vt(i.state)||i.state===!0},l.createElement(te.span,C({"data-state":Jl(i.state),"data-disabled":i.disabled?"":void 0},o,{ref:t,style:{pointerEvents:"none",...e.style}})))}),Yg=e=>{const{control:t,checked:r,bubbles:n=!0,...o}=e,i=l.useRef(null),a=qr(r),s=Lr(t);return l.useEffect(()=>{const c=i.current,d=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(d,"checked").set;if(a!==r&&p){const b=new Event("click",{bubbles:n});c.indeterminate=vt(r),p.call(c,vt(r)?!1:r),c.dispatchEvent(b)}},[a,r,n]),l.createElement("input",C({type:"checkbox","aria-hidden":!0,defaultChecked:vt(r)?!1:r},o,{tabIndex:-1,ref:i,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function vt(e){return e==="indeterminate"}function Jl(e){return vt(e)?"indeterminate":e?"checked":"unchecked"}const Xg=Hg,Jg=qg,So=l.createContext(!1);So.displayName="FieldsetContext";const Zl=I.fieldset`
|
|
578
581
|
padding: 0;
|
|
579
582
|
border: none;
|
|
580
|
-
`;function
|
|
583
|
+
`;function Zg({children:e,disabled:t,...r}){const o=tt()||Boolean(t);return k(So.Provider,{value:o,children:k(Zl,{disabled:t,...r,children:e})})}function tt(){return l.useContext(So)}function Qg(e){let{id:t,label:r,"aria-labelledby":n,"aria-label":o,labelElementType:i="label"}=e;t=mt(t);let a=mt(),s={};r?(n=n?`${n} ${a}`:a,s={id:a,htmlFor:i==="label"?t:void 0}):!n&&!o&&console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility");let c=Sb({id:t,"aria-label":o,"aria-labelledby":n});return{labelProps:s,fieldProps:c}}function Ql(e){let{description:t,errorMessage:r,validationState:n}=e,{labelProps:o,fieldProps:i}=Qg(e),a=ks([Boolean(t),Boolean(r),n]),s=ks([Boolean(t),Boolean(r),n]);return i=xe(i,{"aria-describedby":[a,s,e["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps:o,fieldProps:i,descriptionProps:{id:a},errorMessageProps:{id:s}}}function Yr(e,t){let{inputElementType:r="input",isDisabled:n=!1,isRequired:o=!1,isReadOnly:i=!1,validationState:a,type:s="text",onChange:c=()=>{}}=e,{focusableProps:d}=bo(e,t),{labelProps:f,fieldProps:p,descriptionProps:b,errorMessageProps:h}=Ql(e),g=Zt(e,{labelable:!0});const m={type:s,pattern:e.pattern};return{labelProps:f,inputProps:xe(g,r==="input"&&m,{disabled:n,readOnly:i,"aria-required":o||void 0,"aria-invalid":a==="invalid"||void 0,"aria-errormessage":e["aria-errormessage"],"aria-activedescendant":e["aria-activedescendant"],"aria-autocomplete":e["aria-autocomplete"],"aria-haspopup":e["aria-haspopup"],value:e.value,defaultValue:e.value?void 0:e.defaultValue,onChange:_=>c(_.target.value),autoComplete:e.autoComplete,maxLength:e.maxLength,minLength:e.minLength,name:e.name,placeholder:e.placeholder,inputMode:e.inputMode,onCopy:e.onCopy,onCut:e.onCut,onPaste:e.onPaste,onCompositionEnd:e.onCompositionEnd,onCompositionStart:e.onCompositionStart,onCompositionUpdate:e.onCompositionUpdate,onSelect:e.onSelect,onBeforeInput:e.onBeforeInput,onInput:e.onInput,...d,...p}),descriptionProps:b,errorMessageProps:h}}function ec(){return typeof window<"u"&&window.InputEvent&&typeof InputEvent.prototype.getTargetRanges=="function"}function ev(e,t,r){let n=l.useRef(t);n.current=t,l.useEffect(()=>{if(!ec())return;let f=r.current,p=b=>{let h=n.current,g;switch(b.inputType){case"historyUndo":case"historyRedo":return;case"deleteContent":case"deleteByCut":case"deleteByDrag":g=f.value.slice(0,f.selectionStart)+f.value.slice(f.selectionEnd);break;case"deleteContentForward":g=f.selectionEnd===f.selectionStart?f.value.slice(0,f.selectionStart)+f.value.slice(f.selectionEnd+1):f.value.slice(0,f.selectionStart)+f.value.slice(f.selectionEnd);break;case"deleteContentBackward":g=f.selectionEnd===f.selectionStart?f.value.slice(0,f.selectionStart-1)+f.value.slice(f.selectionStart):f.value.slice(0,f.selectionStart)+f.value.slice(f.selectionEnd);break;case"deleteSoftLineBackward":case"deleteHardLineBackward":g=f.value.slice(f.selectionStart);break;default:b.data!=null&&(g=f.value.slice(0,f.selectionStart)+b.data+f.value.slice(f.selectionEnd));break}(g==null||!h.validate(g))&&b.preventDefault()};return f.addEventListener("beforeinput",p,!1),()=>{f.removeEventListener("beforeinput",p,!1)}},[r,n]);let o=ec()?null:f=>{let p=f.target.value.slice(0,f.target.selectionStart)+f.data+f.target.value.slice(f.target.selectionEnd);t.validate(p)||f.preventDefault()},{labelProps:i,inputProps:a,descriptionProps:s,errorMessageProps:c}=Yr(e,r),d=l.useRef(null);return{inputProps:xe(a,{onBeforeInput:o,onCompositionStart(){let{value:f,selectionStart:p,selectionEnd:b}=r.current;d.current={value:f,selectionStart:p,selectionEnd:b}},onCompositionEnd(){if(!t.validate(r.current.value)){let{value:f,selectionStart:p,selectionEnd:b}=d.current;r.current.value=f,r.current.setSelectionRange(p,b),t.setInputValue(f)}}}),labelProps:i,descriptionProps:s,errorMessageProps:c}}const Co=I.label`
|
|
581
584
|
font-family: ${u.font_family_sans};
|
|
582
585
|
margin: 0;
|
|
583
586
|
font-style: normal;
|
|
@@ -597,20 +600,20 @@ clip: rect(0, 0, 0, 0);
|
|
|
597
600
|
white-space: nowrap;
|
|
598
601
|
border-width: 0;
|
|
599
602
|
`}
|
|
600
|
-
`,
|
|
603
|
+
`,tv=I(Co)`
|
|
601
604
|
font-size: ${u.font_size_label_small};
|
|
602
605
|
letter-spacing: ${u.letter_spacing_label_small};
|
|
603
606
|
line-height: ${u.line_height_label_small};
|
|
604
|
-
`,
|
|
607
|
+
`,rv=I(Co)`
|
|
605
608
|
font-size: ${u.font_size_label_large};
|
|
606
609
|
letter-spacing: ${u.letter_spacing_label_large};
|
|
607
610
|
line-height: ${u.line_height_label_large};
|
|
608
|
-
`,
|
|
611
|
+
`,nv=I(Co)`
|
|
609
612
|
font-size: ${u.font_size_label_medium};
|
|
610
613
|
letter-spacing: ${u.letter_spacing_label_medium};
|
|
611
614
|
line-height: ${u.line_height_label_medium};
|
|
612
|
-
`,
|
|
613
|
-
padding: ${({paddingSize:e="small"})=>
|
|
615
|
+
`,ov={small:tv,medium:nv,large:rv};function Xe({children:e,bold:t,size:r="small",display:n="inline-flex",srOnly:o,...i}){const a=ov[r];return k(a,{...i,srOnly:o,style:{"--label-font-weight":t?500:400,"--label-display":n},children:e})}const iv={small:"7px 8px",large:"11px 12px"},er=I.input`
|
|
616
|
+
padding: ${({paddingSize:e="small"})=>iv[e]}; // add default?
|
|
614
617
|
appearance: none;
|
|
615
618
|
border: 1px solid ${u.color_outline_secondary_enabled};
|
|
616
619
|
border-radius: ${u.border_radius_400};
|
|
@@ -701,7 +704,7 @@ border-width: 0;
|
|
|
701
704
|
display: flex;
|
|
702
705
|
align-items: center;
|
|
703
706
|
pointer-events: none;
|
|
704
|
-
`;const To=l.forwardRef((e,t)=>{const{errorMessage:r,description:n,disabled:o,readOnly:i,required:a,paddingSize:s="small",label:c,validationState:d,placeholder:f="Enter text...",...p}=e,b=bt(t),h=tt(),g=o??h,{labelProps:m,descriptionProps:_,inputProps:$,errorMessageProps:y}=Yr({...p,isDisabled:g,isReadOnly:i,isRequired:a,placeholder:f,label:c},b);let E=null;return typeof c=="string"?E=k(Xe,{...m,children:c}):l.isValidElement(c)&&(E=l.cloneElement(c,{...m})),le(tr,{children:[E,k(er,{"data-state":d,paddingSize:s,ref:b,placeholder:"Enter...",type:"text",...$}),r?le(Xr,{...y,children:[k($e.Error,{}),r]}):null,n?k(Jr,{..._,children:n}):null]})});To.displayName="TextInput";const[Zr,
|
|
707
|
+
`;const To=l.forwardRef((e,t)=>{const{errorMessage:r,description:n,disabled:o,readOnly:i,required:a,paddingSize:s="small",label:c,validationState:d,placeholder:f="Enter text...",...p}=e,b=bt(t),h=tt(),g=o??h,{labelProps:m,descriptionProps:_,inputProps:$,errorMessageProps:y}=Yr({...p,isDisabled:g,isReadOnly:i,isRequired:a,placeholder:f,label:c},b);let E=null;return typeof c=="string"?E=k(Xe,{...m,children:c}):l.isValidElement(c)&&(E=l.cloneElement(c,{...m})),le(tr,{children:[E,k(er,{"data-state":d,paddingSize:s,ref:b,placeholder:"Enter...",type:"text",...$}),r?le(Xr,{...y,children:[k($e.Error,{}),r]}):null,n?k(Jr,{..._,children:n}):null]})});To.displayName="TextInput";const[Zr,OE]=Pe("Tooltip",[Fr]),Qr=Fr(),av="TooltipProvider",sv=700,Oo="tooltip.open",[lv,ko]=Zr(av),cv=e=>{const{__scopeTooltip:t,delayDuration:r=sv,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:i}=e,[a,s]=l.useState(!0),c=l.useRef(!1),d=l.useRef(0);return l.useEffect(()=>{const f=d.current;return()=>window.clearTimeout(f)},[]),l.createElement(lv,{scope:t,isOpenDelayed:a,delayDuration:r,onOpen:l.useCallback(()=>{window.clearTimeout(d.current),s(!1)},[]),onClose:l.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>s(!0),n)},[n]),isPointerInTransitRef:c,onPointerInTransitChange:l.useCallback(f=>{c.current=f},[]),disableHoverableContent:o},i)},Do="Tooltip",[uv,rr]=Zr(Do),dv=e=>{const{__scopeTooltip:t,children:r,open:n,defaultOpen:o=!1,onOpenChange:i,disableHoverableContent:a,delayDuration:s}=e,c=ko(Do,e.__scopeTooltip),d=Qr(t),[f,p]=l.useState(null),b=Ue(),h=l.useRef(0),g=a??c.disableHoverableContent,m=s??c.delayDuration,_=l.useRef(!1),[$=!1,y]=Ne({prop:n,defaultProp:o,onChange:T=>{T?(c.onOpen(),document.dispatchEvent(new CustomEvent(Oo))):c.onClose(),i==null||i(T)}}),E=l.useMemo(()=>$?_.current?"delayed-open":"instant-open":"closed",[$]),v=l.useCallback(()=>{window.clearTimeout(h.current),_.current=!1,y(!0)},[y]),A=l.useCallback(()=>{window.clearTimeout(h.current),y(!1)},[y]),L=l.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{_.current=!0,y(!0)},m)},[m,y]);return l.useEffect(()=>()=>window.clearTimeout(h.current),[]),l.createElement(ms,d,l.createElement(uv,{scope:t,contentId:b,open:$,stateAttribute:E,trigger:f,onTriggerChange:p,onTriggerEnter:l.useCallback(()=>{c.isOpenDelayed?L():v()},[c.isOpenDelayed,L,v]),onTriggerLeave:l.useCallback(()=>{g?A():window.clearTimeout(h.current)},[A,g]),onOpen:v,onClose:A,disableHoverableContent:g},r))},tc="TooltipTrigger",fv=l.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=rr(tc,r),i=ko(tc,r),a=Qr(r),s=l.useRef(null),c=se(t,s,o.onTriggerChange),d=l.useRef(!1),f=l.useRef(!1),p=l.useCallback(()=>d.current=!1,[]);return l.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),l.createElement(bs,C({asChild:!0},a),l.createElement(te.button,C({"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute},n,{ref:c,onPointerMove:H(e.onPointerMove,b=>{b.pointerType!=="touch"&&!f.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),f.current=!0)}),onPointerLeave:H(e.onPointerLeave,()=>{o.onTriggerLeave(),f.current=!1}),onPointerDown:H(e.onPointerDown,()=>{d.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:H(e.onFocus,()=>{d.current||o.onOpen()}),onBlur:H(e.onBlur,o.onClose),onClick:H(e.onClick,o.onClose)})))}),rc="TooltipPortal",[pv,hv]=Zr(rc,{forceMount:void 0}),mv=e=>{const{__scopeTooltip:t,forceMount:r,children:n,container:o}=e,i=rr(rc,t);return l.createElement(pv,{scope:t,forceMount:r},l.createElement(ke,{present:r||i.open},l.createElement(Gt,{asChild:!0,container:o},n)))},nr="TooltipContent",bv=l.forwardRef((e,t)=>{const r=hv(nr,e.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...i}=e,a=rr(nr,e.__scopeTooltip);return l.createElement(ke,{present:n||a.open},a.disableHoverableContent?l.createElement(nc,C({side:o},i,{ref:t})):l.createElement(gv,C({side:o},i,{ref:t})))}),gv=l.forwardRef((e,t)=>{const r=rr(nr,e.__scopeTooltip),n=ko(nr,e.__scopeTooltip),o=l.useRef(null),i=se(t,o),[a,s]=l.useState(null),{trigger:c,onClose:d}=r,f=o.current,{onPointerInTransitChange:p}=n,b=l.useCallback(()=>{s(null),p(!1)},[p]),h=l.useCallback((g,m)=>{const _=g.currentTarget,$={x:g.clientX,y:g.clientY},y=xv($,_.getBoundingClientRect()),E=y==="right"||y==="bottom"?-5:5,A=y==="right"||y==="left"?{x:g.clientX+E,y:g.clientY}:{x:g.clientX,y:g.clientY+E},L=wv(m.getBoundingClientRect()),T=Pv([A,...L]);s(T),p(!0)},[p]);return l.useEffect(()=>()=>b(),[b]),l.useEffect(()=>{if(c&&f){const g=_=>h(_,f),m=_=>h(_,c);return c.addEventListener("pointerleave",g),f.addEventListener("pointerleave",m),()=>{c.removeEventListener("pointerleave",g),f.removeEventListener("pointerleave",m)}}},[c,f,h,b]),l.useEffect(()=>{if(a){const g=m=>{const _=m.target,$={x:m.clientX,y:m.clientY},y=(c==null?void 0:c.contains(_))||(f==null?void 0:f.contains(_)),E=!Ev($,a);y?b():E&&(b(),d())};return document.addEventListener("pointermove",g),()=>document.removeEventListener("pointermove",g)}},[c,f,a,d,b]),l.createElement(nc,C({},e,{ref:i}))}),[vv,_v]=Zr(Do,{isInside:!1}),nc=l.forwardRef((e,t)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:a,...s}=e,c=rr(nr,r),d=Qr(r),{onClose:f}=c;return l.useEffect(()=>(document.addEventListener(Oo,f),()=>document.removeEventListener(Oo,f)),[f]),l.useEffect(()=>{if(c.trigger){const p=b=>{const h=b.target;h!=null&&h.contains(c.trigger)&&f()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[c.trigger,f]),l.createElement(Ht,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:p=>p.preventDefault(),onDismiss:f},l.createElement(gs,C({"data-state":c.stateAttribute},d,s,{ref:t,style:{...s.style,["--radix-tooltip-content-transform-origin"]:"var(--radix-popper-transform-origin)"}}),l.createElement(Sn,null,n),l.createElement(vv,{scope:r,isInside:!0},l.createElement(Ga,{id:c.contentId,role:"tooltip"},o||n))))}),yv="TooltipArrow",$v=l.forwardRef((e,t)=>{const{__scopeTooltip:r,...n}=e,o=Qr(r);return _v(yv,r).isInside?null:l.createElement(vs,C({},o,n,{ref:t}))});function xv(e,t){const r=Math.abs(t.top-e.y),n=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(r,n,o,i)){case i:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:return null}}function wv(e){const{top:t,right:r,bottom:n,left:o}=e;return[{x:o,y:t},{x:r,y:t},{x:r,y:n},{x:o,y:n}]}function Ev(e,t){const{x:r,y:n}=e;let o=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const s=t[i].x,c=t[i].y,d=t[a].x,f=t[a].y;c>n!=f>n&&r<(d-s)*(n-c)/(f-c)+s&&(o=!o)}return o}function Pv(e){const t=e.slice();return t.sort((r,n)=>r.x<n.x?-1:r.x>n.x?1:r.y<n.y?-1:r.y>n.y?1:0),Sv(t)}function Sv(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const o=e[n];for(;t.length>=2;){const i=t[t.length-1],a=t[t.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.y-a.y)*(o.x-a.x))t.pop();else break}t.push(o)}t.pop();const r=[];for(let n=e.length-1;n>=0;n--){const o=e[n];for(;r.length>=2;){const i=r[r.length-1],a=r[r.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.y-a.y)*(o.x-a.x))r.pop();else break}r.push(o)}return r.pop(),t.length===1&&r.length===1&&t[0].x===r[0].x&&t[0].y===r[0].y?t:t.concat(r)}const Cv=cv,Tv=dv,Ov=fv,kv=mv,Dv=bv,Iv=$v,Av=I(Dv)`
|
|
705
708
|
padding: ${u.sizing_200} ${u.sizing_200};
|
|
706
709
|
background: ${u.color_background_black_standard};
|
|
707
710
|
color: ${u.color_text_white_standard};
|
|
@@ -711,15 +714,15 @@ border-width: 0;
|
|
|
711
714
|
font-family: ${u.font_family_sans};
|
|
712
715
|
max-width: ${u.sizing_1000}; /* TODO ask designers? */
|
|
713
716
|
z-index: 100; /* TODO get from tokens */
|
|
714
|
-
`,
|
|
717
|
+
`,Nv=I(Iv)`
|
|
715
718
|
fill: 'white';
|
|
716
|
-
`;function
|
|
719
|
+
`;function Mv({children:e,...t}){return k(kv,{children:le(Av,{...t,children:[e,k(Nv,{})]})})}const Lv=I(Ov)`
|
|
717
720
|
appearance: none;
|
|
718
721
|
padding: 0;
|
|
719
722
|
border: none;
|
|
720
723
|
background-color: unset;
|
|
721
724
|
line-height: 0;
|
|
722
|
-
`,Io=l.forwardRef((e,t)=>{const{children:r,...n}=e;return k(
|
|
725
|
+
`,Io=l.forwardRef((e,t)=>{const{children:r,...n}=e;return k(Lv,{ref:t,type:"button",...n,children:r})});Io.displayName="TooltipTrigger";const oc=Cv,ic=Tv,ac=Mv,Fv=I(Io)`
|
|
723
726
|
color: ${u.color_text_white_weak};
|
|
724
727
|
margin-block: auto;
|
|
725
728
|
|
|
@@ -739,7 +742,7 @@ border-width: 0;
|
|
|
739
742
|
&:not([data-state~='closed']) > svg {
|
|
740
743
|
color: steelblue;
|
|
741
744
|
}
|
|
742
|
-
`;function en({children:e,icon:t=k($e.Help,{}),label:r="More info"}){return k(nc,{children:le(oc,{children:[k(Lv,{children:k(qt,{label:r,children:t})}),k(ic,{sideOffset:5,children:e})]})})}const ac=7e3;let Ao=null;function Fv(e,t="assertive",r=ac){Ao||(Ao=new Rv),Ao.announce(e,t,r)}class Rv{createLog(t){let r=document.createElement("div");return r.setAttribute("role","log"),r.setAttribute("aria-live",t),r.setAttribute("aria-relevant","additions"),r}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,r="assertive",n=ac){if(!this.node)return;let o=document.createElement("div");o.textContent=t,r==="assertive"?this.assertiveLog.appendChild(o):this.politeLog.appendChild(o),t!==""&&setTimeout(()=>{o.remove()},n)}clear(t){this.node&&((!t||t==="assertive")&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&(this.politeLog.innerHTML=""))}constructor(){this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:1,margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:1,whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node)}}function zv(e){return e&&e.__esModule?e.default:e}var sc={},lc={};lc={Empty:"فارغ"};var cc={};cc={Empty:"Изпразни"};var uc={};uc={Empty:"Prázdné"};var dc={};dc={Empty:"Tom"};var fc={};fc={Empty:"Leer"};var pc={};pc={Empty:"Άδειο"};var hc={};hc={Empty:"Empty"};var mc={};mc={Empty:"Vacío"};var bc={};bc={Empty:"Tühjenda"};var gc={};gc={Empty:"Tyhjä"};var vc={};vc={Empty:"Vide"};var _c={};_c={Empty:"ריק"};var yc={};yc={Empty:"Prazno"};var $c={};$c={Empty:"Üres"};var xc={};xc={Empty:"Vuoto"};var wc={};wc={Empty:"空"};var Ec={};Ec={Empty:"비어 있음"};var Pc={};Pc={Empty:"Tuščias"};var Sc={};Sc={Empty:"Tukšs"};var Cc={};Cc={Empty:"Tom"};var Tc={};Tc={Empty:"Leeg"};var Oc={};Oc={Empty:"Pusty"};var kc={};kc={Empty:"Vazio"};var Dc={};Dc={Empty:"Vazio"};var Ic={};Ic={Empty:"Gol"};var Ac={};Ac={Empty:"Не заполнено"};var Nc={};Nc={Empty:"Prázdne"};var Mc={};Mc={Empty:"Prazen"};var Lc={};Lc={Empty:"Prazno"};var Fc={};Fc={Empty:"Tomt"};var Rc={};Rc={Empty:"Boş"};var zc={};zc={Empty:"Пусто"};var Vc={};Vc={Empty:"空"};var jc={};jc={Empty:"空白"},sc={"ar-AE":lc,"bg-BG":cc,"cs-CZ":uc,"da-DK":dc,"de-DE":fc,"el-GR":pc,"en-US":hc,"es-ES":mc,"et-EE":bc,"fi-FI":gc,"fr-FR":vc,"he-IL":_c,"hr-HR":yc,"hu-HU":$c,"it-IT":xc,"ja-JP":wc,"ko-KR":Ec,"lt-LT":Pc,"lv-LV":Sc,"nb-NO":Cc,"nl-NL":Tc,"pl-PL":Oc,"pt-BR":kc,"pt-PT":Dc,"ro-RO":Ic,"ru-RU":Ac,"sk-SK":Nc,"sl-SI":Mc,"sr-SP":Lc,"sv-SE":Fc,"tr-TR":Rc,"uk-UA":zc,"zh-CN":Vc,"zh-TW":jc};function Vv(e){const t=l.useRef();let{value:r,textValue:n,minValue:o,maxValue:i,isDisabled:a,isReadOnly:s,isRequired:c,onIncrement:d,onIncrementPage:f,onDecrement:p,onDecrementPage:b,onDecrementToMin:h,onIncrementToMax:g}=e;const m=Gr(zv(sc)),_=l.useRef(e);_.current=e;const $=()=>clearTimeout(t.current);l.useEffect(()=>()=>$(),[]);let y=S=>{if(!(S.ctrlKey||S.metaKey||S.shiftKey||S.altKey||s))switch(S.key){case"PageUp":if(f){S.preventDefault(),f();break}case"ArrowUp":case"Up":d&&(S.preventDefault(),d());break;case"PageDown":if(b){S.preventDefault(),b();break}case"ArrowDown":case"Down":p&&(S.preventDefault(),p());break;case"Home":h&&(S.preventDefault(),h());break;case"End":g&&(S.preventDefault(),g());break}},E=l.useRef(!1),v=()=>{E.current=!0},A=()=>{E.current=!1};n=n===""?m.format("Empty"):(n||`${r}`).replace("-","−"),l.useEffect(()=>{E.current&&Fv(n,"assertive")},[n]);const L=l.useCallback(S=>{$(),_.current.onIncrement(),t.current=window.setTimeout(()=>{(isNaN(i)||isNaN(r)||r<i)&&L(60)},S)},[d,i,r]),T=l.useCallback(S=>{$(),_.current.onDecrement(),t.current=window.setTimeout(()=>{(isNaN(o)||isNaN(r)||r>o)&&T(60)},S)},[p,o,r]);let M=S=>{S.preventDefault()},{addGlobalListener:F,removeAllGlobalListeners:G}=As();return{spinButtonProps:{role:"spinbutton","aria-valuenow":isNaN(r)?null:r,"aria-valuetext":n,"aria-valuemin":o,"aria-valuemax":i,"aria-disabled":a||null,"aria-readonly":s||null,"aria-required":c||null,onKeyDown:y,onFocus:v,onBlur:A},incrementButtonProps:{onPressStart:()=>{L(400),F(window,"contextmenu",M)},onPressEnd:()=>{$(),G()},onFocus:v,onBlur:A},decrementButtonProps:{onPressStart:()=>{T(400),F(window,"contextmenu",M)},onPressEnd:()=>{$(),G()},onFocus:v,onBlur:A}}}function jv(e){return e&&e.__esModule?e.default:e}var Bc={},Wc={};Wc={decrease:e=>`خفض ${e.fieldLabel}`,increase:e=>`زيادة ${e.fieldLabel}`,numberField:"حقل رقمي"};var Uc={};Uc={decrease:e=>`Намаляване ${e.fieldLabel}`,increase:e=>`Усилване ${e.fieldLabel}`,numberField:"Номер на полето"};var Kc={};Kc={decrease:e=>`Snížit ${e.fieldLabel}`,increase:e=>`Zvýšit ${e.fieldLabel}`,numberField:"Číselné pole"};var Hc={};Hc={decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`Øg ${e.fieldLabel}`,numberField:"Talfelt"};var Gc={};Gc={decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erhöhen`,numberField:"Nummernfeld"};var qc={};qc={decrease:e=>`Μείωση ${e.fieldLabel}`,increase:e=>`Αύξηση ${e.fieldLabel}`,numberField:"Πεδίο αριθμού"};var Yc={};Yc={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var Xc={};Xc={decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var Jc={};Jc={decrease:e=>`Vähenda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri väli"};var Zc={};Zc={decrease:e=>`Vähennä ${e.fieldLabel}`,increase:e=>`Lisää ${e.fieldLabel}`,numberField:"Numerokenttä"};var Qc={};Qc={decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"};var eu={};eu={decrease:e=>`הקטן ${e.fieldLabel}`,increase:e=>`הגדל ${e.fieldLabel}`,numberField:"שדה מספר"};var tu={};tu={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var ru={};ru={decrease:e=>`${e.fieldLabel} csökkentése`,increase:e=>`${e.fieldLabel} növelése`,numberField:"Számmező"};var nu={};nu={decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"};var ou={};ou={decrease:e=>`${e.fieldLabel}を縮小`,increase:e=>`${e.fieldLabel}を拡大`,numberField:"数値フィールド"};var iu={};iu={decrease:e=>`${e.fieldLabel} 감소`,increase:e=>`${e.fieldLabel} 증가`,numberField:"번호 필드"};var au={};au={decrease:e=>`Sumažinti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"};var su={};su={decrease:e=>`Samazināšana ${e.fieldLabel}`,increase:e=>`Palielināšana ${e.fieldLabel}`,numberField:"Skaitļu lauks"};var lu={};lu={decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`Øk ${e.fieldLabel}`,numberField:"Tallfelt"};var cu={};cu={decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"};var uu={};uu={decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwiększ ${e.fieldLabel}`,numberField:"Pole numeru"};var du={};du={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var fu={};fu={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo numérico"};var pu={};pu={decrease:e=>`Scădere ${e.fieldLabel}`,increase:e=>`Creștere ${e.fieldLabel}`,numberField:"Câmp numeric"};var hu={};hu={decrease:e=>`Уменьшение ${e.fieldLabel}`,increase:e=>`Увеличение ${e.fieldLabel}`,numberField:"Числовое поле"};var mu={};mu={decrease:e=>`Znížiť ${e.fieldLabel}`,increase:e=>`Zvýšiť ${e.fieldLabel}`,numberField:"Číselné pole"};var bu={};bu={decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Povečajte ${e.fieldLabel}`,numberField:"Številčno polje"};var gu={};gu={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var vu={};vu={decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`Öka ${e.fieldLabel}`,numberField:"Nummerfält"};var _u={};_u={decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} arttır`,numberField:"Sayı alanı"};var yu={};yu={decrease:e=>`Зменшити ${e.fieldLabel}`,increase:e=>`Збільшити ${e.fieldLabel}`,numberField:"Поле номера"};var $u={};$u={decrease:e=>`降低 ${e.fieldLabel}`,increase:e=>`提高 ${e.fieldLabel}`,numberField:"数字字段"};var xu={};xu={decrease:e=>`縮小 ${e.fieldLabel}`,increase:e=>`放大 ${e.fieldLabel}`,numberField:"數字欄位"},Bc={"ar-AE":Wc,"bg-BG":Uc,"cs-CZ":Kc,"da-DK":Hc,"de-DE":Gc,"el-GR":qc,"en-US":Yc,"es-ES":Xc,"et-EE":Jc,"fi-FI":Zc,"fr-FR":Qc,"he-IL":eu,"hr-HR":tu,"hu-HU":ru,"it-IT":nu,"ja-JP":ou,"ko-KR":iu,"lt-LT":au,"lv-LV":su,"nb-NO":lu,"nl-NL":cu,"pl-PL":uu,"pt-BR":du,"pt-PT":fu,"ro-RO":pu,"ru-RU":hu,"sk-SK":mu,"sl-SI":bu,"sr-SP":gu,"sv-SE":vu,"tr-TR":_u,"uk-UA":yu,"zh-CN":$u,"zh-TW":xu};function Bv(e,t,r){let{id:n,decrementAriaLabel:o,incrementAriaLabel:i,isDisabled:a,isReadOnly:s,isRequired:c,minValue:d,maxValue:f,autoFocus:p,validationState:b,label:h,formatOptions:g,onBlur:m=()=>{},onFocus:_,onFocusChange:$,onKeyDown:y,onKeyUp:E,description:v,errorMessage:A,...L}=e,{increment:T,incrementToMax:M,decrement:F,decrementToMin:G,numberValue:S,commit:q}=t;const D=Gr(jv(Bc));let P=mt(n),{focusProps:ee}=co({onBlur:()=>{q()}}),{spinButtonProps:Q,incrementButtonProps:de,decrementButtonProps:fe}=Vv({isDisabled:a,isReadOnly:s,isRequired:c,maxValue:f,minValue:d,onIncrement:T,onIncrementToMax:M,onDecrement:F,onDecrementToMin:G,value:S,textValue:t.inputValue}),[J,w]=l.useState(!1),{focusWithinProps:N}=Gs({isDisabled:a,onFocusWithinChange:w}),B=l.useCallback(Ce=>{Math.abs(Ce.deltaY)<=Math.abs(Ce.deltaX)||(Ce.deltaY>0?T():Ce.deltaY<0&&F())},[F,T]);Hb({onScroll:B,isDisabled:a||s||!J},r);let V=mg(g),Y=l.useMemo(()=>V.resolvedOptions(),[V]).maximumFractionDigits>0,X=isNaN(t.minValue)||t.minValue<0,Z="numeric";Ls()?X?Z="text":Y&&(Z="decimal"):Fs()&&(X?Z="numeric":Y&&(Z="decimal"));let oe=Ce=>{t.setInputValue(Ce)},ne=Zt(e),{labelProps:ge,inputProps:be,descriptionProps:we,errorMessageProps:ze}=Qg({...L,...ne,label:h,autoFocus:p,isDisabled:a,isReadOnly:s,isRequired:c,validationState:b,value:t.inputValue,defaultValue:void 0,autoComplete:"off","aria-label":e["aria-label"]||null,"aria-labelledby":e["aria-labelledby"]||null,id:P,type:"text",inputMode:Z,onChange:oe,onBlur:m,onFocus:_,onFocusChange:$,onKeyDown:y,onKeyUp:E,description:v,errorMessage:A},t,r),Oe=xe(Q,ee,be,{role:null,"aria-roledescription":to()?null:D.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"}),Ve=Ce=>{document.activeElement!==r.current&&(Ce.pointerType==="mouse"?r.current.focus():Ce.target.focus())},ve=e["aria-label"]||(typeof e.label=="string"?e.label:""),_e;ve||(_e=e.label!=null?ge.id:e["aria-labelledby"]);let Ie=mt(),Ae=mt(),lt=xe(de,{"aria-label":i||D.format("increase",{fieldLabel:ve}).trim(),id:_e&&!i?Ie:null,"aria-labelledby":_e&&!i?`${Ie} ${_e}`:null,"aria-controls":P,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:Ve}),Ut=xe(fe,{"aria-label":o||D.format("decrease",{fieldLabel:ve}).trim(),id:_e&&!o?Ae:null,"aria-labelledby":_e&&!o?`${Ae} ${_e}`:null,"aria-controls":P,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canDecrement,onPressStart:Ve});return{groupProps:{role:"group","aria-disabled":a,"aria-invalid":b==="invalid"?"true":void 0,...N},labelProps:ge,inputProps:Oe,incrementButtonProps:lt,decrementButtonProps:Ut,errorMessageProps:ze,descriptionProps:we}}function Wv(e){let{minValue:t,maxValue:r,step:n,formatOptions:o,value:i,defaultValue:a,onChange:s,locale:c,isDisabled:d,isReadOnly:f}=e,[p,b]=Ps(i,isNaN(a)?NaN:a,s),[h,g]=l.useState(()=>isNaN(p)?"":new _o(c,o).format(p)),m=l.useMemo(()=>new ag(c,o),[c,o]),_=l.useMemo(()=>m.getNumberingSystem(h),[m,h]),$=l.useMemo(()=>new _o(c,{...o,numberingSystem:_}),[c,o,_]),y=l.useMemo(()=>$.resolvedOptions(),[$]),E=l.useCallback(J=>isNaN(J)||J===null?"":$.format(J),[$]),v=isNaN(n)?1:n;y.style==="percent"&&isNaN(n)&&(v=.01);let A=l.useRef(p),L=l.useRef(c),T=l.useRef(o);(!Object.is(p,A.current)||c!==L.current||o!==T.current)&&(g(E(p)),A.current=p,L.current=c,T.current=o);let M=l.useMemo(()=>m.parse(h),[m,h]),F=l.useRef(0);F.current=M;let G=()=>{if(!h.length){b(NaN),g(i===void 0?"":E(p));return}if(isNaN(F.current)){g(E(p));return}let J;isNaN(n)?J=hb(F.current,t,r):J=ht(F.current,t,r,n),J=m.parse(E(J)),b(J),g(E(i===void 0?J:p))},S=(J,w)=>{let N=F.current;if(isNaN(N)){let B=isNaN(w)?0:w;return ht(B,t,r,v)}else{let B=ht(N,t,r,v);return J==="+"&&B>N||J==="-"&&B<N?B:ht(No(J,N,v),t,r,v)}},q=()=>{let J=S("+",t);J===p&&g(E(J)),b(J)},D=()=>{let J=S("-",r);J===p&&g(E(J)),b(J)},P=()=>{r!=null&&b(ht(r,t,r,v))},ee=()=>{t!=null&&b(t)},Q=l.useMemo(()=>!d&&!f&&(isNaN(M)||isNaN(r)||ht(M,t,r,v)>M||No("+",M,v)<=r),[d,f,t,r,v,M]),de=l.useMemo(()=>!d&&!f&&(isNaN(M)||isNaN(t)||ht(M,t,r,v)<M||No("-",M,v)>=t),[d,f,t,r,v,M]);return{validate:J=>m.isValidPartialNumber(J,t,r),increment:q,incrementToMax:P,decrement:D,decrementToMin:ee,canIncrement:Q,canDecrement:de,minValue:t,maxValue:r,numberValue:M,setInputValue:g,inputValue:h,commit:G}}function No(e,t,r){let n=e==="+"?t+r:t-r;if(t%1!==0||r%1!==0){const o=t.toString().split("."),i=r.toString().split("."),a=o[1]&&o[1].length||0,s=i[1]&&i[1].length||0,c=Math.pow(10,Math.max(a,s));t=Math.round(t*c),r=Math.round(r*c),n=e==="+"?t+r:t-r,n/=c}return n}function wu(e){const t=l.useRef(null),{buttonProps:r,isPressed:n}=Eo(e,t),{children:o,className:i}=e;return k("button",{"data-state":n?"pressed":void 0,ref:t,...r,className:i,children:o})}const Uv=I.div`
|
|
745
|
+
`;function en({children:e,icon:t=k($e.Help,{}),label:r="More info"}){return k(oc,{children:le(ic,{children:[k(Fv,{children:k(qt,{label:r,children:t})}),k(ac,{sideOffset:5,children:e})]})})}const sc=7e3;let Ao=null;function Rv(e,t="assertive",r=sc){Ao||(Ao=new zv),Ao.announce(e,t,r)}class zv{createLog(t){let r=document.createElement("div");return r.setAttribute("role","log"),r.setAttribute("aria-live",t),r.setAttribute("aria-relevant","additions"),r}destroy(){this.node&&(document.body.removeChild(this.node),this.node=null)}announce(t,r="assertive",n=sc){if(!this.node)return;let o=document.createElement("div");o.textContent=t,r==="assertive"?this.assertiveLog.appendChild(o):this.politeLog.appendChild(o),t!==""&&setTimeout(()=>{o.remove()},n)}clear(t){this.node&&((!t||t==="assertive")&&(this.assertiveLog.innerHTML=""),(!t||t==="polite")&&(this.politeLog.innerHTML=""))}constructor(){this.node=document.createElement("div"),this.node.dataset.liveAnnouncer="true",Object.assign(this.node.style,{border:0,clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:1,margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:1,whiteSpace:"nowrap"}),this.assertiveLog=this.createLog("assertive"),this.node.appendChild(this.assertiveLog),this.politeLog=this.createLog("polite"),this.node.appendChild(this.politeLog),document.body.prepend(this.node)}}function Vv(e){return e&&e.__esModule?e.default:e}var lc={},cc={};cc={Empty:"فارغ"};var uc={};uc={Empty:"Изпразни"};var dc={};dc={Empty:"Prázdné"};var fc={};fc={Empty:"Tom"};var pc={};pc={Empty:"Leer"};var hc={};hc={Empty:"Άδειο"};var mc={};mc={Empty:"Empty"};var bc={};bc={Empty:"Vacío"};var gc={};gc={Empty:"Tühjenda"};var vc={};vc={Empty:"Tyhjä"};var _c={};_c={Empty:"Vide"};var yc={};yc={Empty:"ריק"};var $c={};$c={Empty:"Prazno"};var xc={};xc={Empty:"Üres"};var wc={};wc={Empty:"Vuoto"};var Ec={};Ec={Empty:"空"};var Pc={};Pc={Empty:"비어 있음"};var Sc={};Sc={Empty:"Tuščias"};var Cc={};Cc={Empty:"Tukšs"};var Tc={};Tc={Empty:"Tom"};var Oc={};Oc={Empty:"Leeg"};var kc={};kc={Empty:"Pusty"};var Dc={};Dc={Empty:"Vazio"};var Ic={};Ic={Empty:"Vazio"};var Ac={};Ac={Empty:"Gol"};var Nc={};Nc={Empty:"Не заполнено"};var Mc={};Mc={Empty:"Prázdne"};var Lc={};Lc={Empty:"Prazen"};var Fc={};Fc={Empty:"Prazno"};var Rc={};Rc={Empty:"Tomt"};var zc={};zc={Empty:"Boş"};var Vc={};Vc={Empty:"Пусто"};var jc={};jc={Empty:"空"};var Bc={};Bc={Empty:"空白"},lc={"ar-AE":cc,"bg-BG":uc,"cs-CZ":dc,"da-DK":fc,"de-DE":pc,"el-GR":hc,"en-US":mc,"es-ES":bc,"et-EE":gc,"fi-FI":vc,"fr-FR":_c,"he-IL":yc,"hr-HR":$c,"hu-HU":xc,"it-IT":wc,"ja-JP":Ec,"ko-KR":Pc,"lt-LT":Sc,"lv-LV":Cc,"nb-NO":Tc,"nl-NL":Oc,"pl-PL":kc,"pt-BR":Dc,"pt-PT":Ic,"ro-RO":Ac,"ru-RU":Nc,"sk-SK":Mc,"sl-SI":Lc,"sr-SP":Fc,"sv-SE":Rc,"tr-TR":zc,"uk-UA":Vc,"zh-CN":jc,"zh-TW":Bc};function jv(e){const t=l.useRef();let{value:r,textValue:n,minValue:o,maxValue:i,isDisabled:a,isReadOnly:s,isRequired:c,onIncrement:d,onIncrementPage:f,onDecrement:p,onDecrementPage:b,onDecrementToMin:h,onIncrementToMax:g}=e;const m=Gr(Vv(lc)),_=l.useRef(e);_.current=e;const $=()=>clearTimeout(t.current);l.useEffect(()=>()=>$(),[]);let y=S=>{if(!(S.ctrlKey||S.metaKey||S.shiftKey||S.altKey||s))switch(S.key){case"PageUp":if(f){S.preventDefault(),f();break}case"ArrowUp":case"Up":d&&(S.preventDefault(),d());break;case"PageDown":if(b){S.preventDefault(),b();break}case"ArrowDown":case"Down":p&&(S.preventDefault(),p());break;case"Home":h&&(S.preventDefault(),h());break;case"End":g&&(S.preventDefault(),g());break}},E=l.useRef(!1),v=()=>{E.current=!0},A=()=>{E.current=!1};n=n===""?m.format("Empty"):(n||`${r}`).replace("-","−"),l.useEffect(()=>{E.current&&Rv(n,"assertive")},[n]);const L=l.useCallback(S=>{$(),_.current.onIncrement(),t.current=window.setTimeout(()=>{(isNaN(i)||isNaN(r)||r<i)&&L(60)},S)},[d,i,r]),T=l.useCallback(S=>{$(),_.current.onDecrement(),t.current=window.setTimeout(()=>{(isNaN(o)||isNaN(r)||r>o)&&T(60)},S)},[p,o,r]);let M=S=>{S.preventDefault()},{addGlobalListener:F,removeAllGlobalListeners:G}=Ns();return{spinButtonProps:{role:"spinbutton","aria-valuenow":isNaN(r)?null:r,"aria-valuetext":n,"aria-valuemin":o,"aria-valuemax":i,"aria-disabled":a||null,"aria-readonly":s||null,"aria-required":c||null,onKeyDown:y,onFocus:v,onBlur:A},incrementButtonProps:{onPressStart:()=>{L(400),F(window,"contextmenu",M)},onPressEnd:()=>{$(),G()},onFocus:v,onBlur:A},decrementButtonProps:{onPressStart:()=>{T(400),F(window,"contextmenu",M)},onPressEnd:()=>{$(),G()},onFocus:v,onBlur:A}}}function Bv(e){return e&&e.__esModule?e.default:e}var Wc={},Uc={};Uc={decrease:e=>`خفض ${e.fieldLabel}`,increase:e=>`زيادة ${e.fieldLabel}`,numberField:"حقل رقمي"};var Kc={};Kc={decrease:e=>`Намаляване ${e.fieldLabel}`,increase:e=>`Усилване ${e.fieldLabel}`,numberField:"Номер на полето"};var Hc={};Hc={decrease:e=>`Snížit ${e.fieldLabel}`,increase:e=>`Zvýšit ${e.fieldLabel}`,numberField:"Číselné pole"};var Gc={};Gc={decrease:e=>`Reducer ${e.fieldLabel}`,increase:e=>`Øg ${e.fieldLabel}`,numberField:"Talfelt"};var qc={};qc={decrease:e=>`${e.fieldLabel} verringern`,increase:e=>`${e.fieldLabel} erhöhen`,numberField:"Nummernfeld"};var Yc={};Yc={decrease:e=>`Μείωση ${e.fieldLabel}`,increase:e=>`Αύξηση ${e.fieldLabel}`,numberField:"Πεδίο αριθμού"};var Xc={};Xc={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var Jc={};Jc={decrease:e=>`Reducir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var Zc={};Zc={decrease:e=>`Vähenda ${e.fieldLabel}`,increase:e=>`Suurenda ${e.fieldLabel}`,numberField:"Numbri väli"};var Qc={};Qc={decrease:e=>`Vähennä ${e.fieldLabel}`,increase:e=>`Lisää ${e.fieldLabel}`,numberField:"Numerokenttä"};var eu={};eu={decrease:e=>`Diminuer ${e.fieldLabel}`,increase:e=>`Augmenter ${e.fieldLabel}`,numberField:"Champ de nombre"};var tu={};tu={decrease:e=>`הקטן ${e.fieldLabel}`,increase:e=>`הגדל ${e.fieldLabel}`,numberField:"שדה מספר"};var ru={};ru={decrease:e=>`Smanji ${e.fieldLabel}`,increase:e=>`Povećaj ${e.fieldLabel}`,numberField:"Polje broja"};var nu={};nu={decrease:e=>`${e.fieldLabel} csökkentése`,increase:e=>`${e.fieldLabel} növelése`,numberField:"Számmező"};var ou={};ou={decrease:e=>`Riduci ${e.fieldLabel}`,increase:e=>`Aumenta ${e.fieldLabel}`,numberField:"Campo numero"};var iu={};iu={decrease:e=>`${e.fieldLabel}を縮小`,increase:e=>`${e.fieldLabel}を拡大`,numberField:"数値フィールド"};var au={};au={decrease:e=>`${e.fieldLabel} 감소`,increase:e=>`${e.fieldLabel} 증가`,numberField:"번호 필드"};var su={};su={decrease:e=>`Sumažinti ${e.fieldLabel}`,increase:e=>`Padidinti ${e.fieldLabel}`,numberField:"Numerio laukas"};var lu={};lu={decrease:e=>`Samazināšana ${e.fieldLabel}`,increase:e=>`Palielināšana ${e.fieldLabel}`,numberField:"Skaitļu lauks"};var cu={};cu={decrease:e=>`Reduser ${e.fieldLabel}`,increase:e=>`Øk ${e.fieldLabel}`,numberField:"Tallfelt"};var uu={};uu={decrease:e=>`${e.fieldLabel} verlagen`,increase:e=>`${e.fieldLabel} verhogen`,numberField:"Getalveld"};var du={};du={decrease:e=>`Zmniejsz ${e.fieldLabel}`,increase:e=>`Zwiększ ${e.fieldLabel}`,numberField:"Pole numeru"};var fu={};fu={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo de número"};var pu={};pu={decrease:e=>`Diminuir ${e.fieldLabel}`,increase:e=>`Aumentar ${e.fieldLabel}`,numberField:"Campo numérico"};var hu={};hu={decrease:e=>`Scădere ${e.fieldLabel}`,increase:e=>`Creștere ${e.fieldLabel}`,numberField:"Câmp numeric"};var mu={};mu={decrease:e=>`Уменьшение ${e.fieldLabel}`,increase:e=>`Увеличение ${e.fieldLabel}`,numberField:"Числовое поле"};var bu={};bu={decrease:e=>`Znížiť ${e.fieldLabel}`,increase:e=>`Zvýšiť ${e.fieldLabel}`,numberField:"Číselné pole"};var gu={};gu={decrease:e=>`Upadati ${e.fieldLabel}`,increase:e=>`Povečajte ${e.fieldLabel}`,numberField:"Številčno polje"};var vu={};vu={decrease:e=>`Decrease ${e.fieldLabel}`,increase:e=>`Increase ${e.fieldLabel}`,numberField:"Number field"};var _u={};_u={decrease:e=>`Minska ${e.fieldLabel}`,increase:e=>`Öka ${e.fieldLabel}`,numberField:"Nummerfält"};var yu={};yu={decrease:e=>`${e.fieldLabel} azalt`,increase:e=>`${e.fieldLabel} arttır`,numberField:"Sayı alanı"};var $u={};$u={decrease:e=>`Зменшити ${e.fieldLabel}`,increase:e=>`Збільшити ${e.fieldLabel}`,numberField:"Поле номера"};var xu={};xu={decrease:e=>`降低 ${e.fieldLabel}`,increase:e=>`提高 ${e.fieldLabel}`,numberField:"数字字段"};var wu={};wu={decrease:e=>`縮小 ${e.fieldLabel}`,increase:e=>`放大 ${e.fieldLabel}`,numberField:"數字欄位"},Wc={"ar-AE":Uc,"bg-BG":Kc,"cs-CZ":Hc,"da-DK":Gc,"de-DE":qc,"el-GR":Yc,"en-US":Xc,"es-ES":Jc,"et-EE":Zc,"fi-FI":Qc,"fr-FR":eu,"he-IL":tu,"hr-HR":ru,"hu-HU":nu,"it-IT":ou,"ja-JP":iu,"ko-KR":au,"lt-LT":su,"lv-LV":lu,"nb-NO":cu,"nl-NL":uu,"pl-PL":du,"pt-BR":fu,"pt-PT":pu,"ro-RO":hu,"ru-RU":mu,"sk-SK":bu,"sl-SI":gu,"sr-SP":vu,"sv-SE":_u,"tr-TR":yu,"uk-UA":$u,"zh-CN":xu,"zh-TW":wu};function Wv(e,t,r){let{id:n,decrementAriaLabel:o,incrementAriaLabel:i,isDisabled:a,isReadOnly:s,isRequired:c,minValue:d,maxValue:f,autoFocus:p,validationState:b,label:h,formatOptions:g,onBlur:m=()=>{},onFocus:_,onFocusChange:$,onKeyDown:y,onKeyUp:E,description:v,errorMessage:A,...L}=e,{increment:T,incrementToMax:M,decrement:F,decrementToMin:G,numberValue:S,commit:q}=t;const D=Gr(Bv(Wc));let P=mt(n),{focusProps:ee}=co({onBlur:()=>{q()}}),{spinButtonProps:Q,incrementButtonProps:de,decrementButtonProps:fe}=jv({isDisabled:a,isReadOnly:s,isRequired:c,maxValue:f,minValue:d,onIncrement:T,onIncrementToMax:M,onDecrement:F,onDecrementToMin:G,value:S,textValue:t.inputValue}),[J,w]=l.useState(!1),{focusWithinProps:N}=qs({isDisabled:a,onFocusWithinChange:w}),B=l.useCallback(Ce=>{Math.abs(Ce.deltaY)<=Math.abs(Ce.deltaX)||(Ce.deltaY>0?T():Ce.deltaY<0&&F())},[F,T]);Hb({onScroll:B,isDisabled:a||s||!J},r);let V=mg(g),Y=l.useMemo(()=>V.resolvedOptions(),[V]).maximumFractionDigits>0,X=isNaN(t.minValue)||t.minValue<0,Z="numeric";Fs()?X?Z="text":Y&&(Z="decimal"):Rs()&&(X?Z="numeric":Y&&(Z="decimal"));let oe=Ce=>{t.setInputValue(Ce)},ne=Zt(e),{labelProps:ge,inputProps:be,descriptionProps:we,errorMessageProps:ze}=ev({...L,...ne,label:h,autoFocus:p,isDisabled:a,isReadOnly:s,isRequired:c,validationState:b,value:t.inputValue,defaultValue:void 0,autoComplete:"off","aria-label":e["aria-label"]||null,"aria-labelledby":e["aria-labelledby"]||null,id:P,type:"text",inputMode:Z,onChange:oe,onBlur:m,onFocus:_,onFocusChange:$,onKeyDown:y,onKeyUp:E,description:v,errorMessage:A},t,r),Oe=xe(Q,ee,be,{role:null,"aria-roledescription":to()?null:D.format("numberField"),"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null,autoCorrect:"off",spellCheck:"false"}),Ve=Ce=>{document.activeElement!==r.current&&(Ce.pointerType==="mouse"?r.current.focus():Ce.target.focus())},ve=e["aria-label"]||(typeof e.label=="string"?e.label:""),_e;ve||(_e=e.label!=null?ge.id:e["aria-labelledby"]);let Ie=mt(),Ae=mt(),lt=xe(de,{"aria-label":i||D.format("increase",{fieldLabel:ve}).trim(),id:_e&&!i?Ie:null,"aria-labelledby":_e&&!i?`${Ie} ${_e}`:null,"aria-controls":P,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canIncrement,onPressStart:Ve}),Ut=xe(fe,{"aria-label":o||D.format("decrease",{fieldLabel:ve}).trim(),id:_e&&!o?Ae:null,"aria-labelledby":_e&&!o?`${Ae} ${_e}`:null,"aria-controls":P,excludeFromTabOrder:!0,preventFocusOnPress:!0,allowFocusWhenDisabled:!0,isDisabled:!t.canDecrement,onPressStart:Ve});return{groupProps:{role:"group","aria-disabled":a,"aria-invalid":b==="invalid"?"true":void 0,...N},labelProps:ge,inputProps:Oe,incrementButtonProps:lt,decrementButtonProps:Ut,errorMessageProps:ze,descriptionProps:we}}function Uv(e){let{minValue:t,maxValue:r,step:n,formatOptions:o,value:i,defaultValue:a,onChange:s,locale:c,isDisabled:d,isReadOnly:f}=e,[p,b]=Ss(i,isNaN(a)?NaN:a,s),[h,g]=l.useState(()=>isNaN(p)?"":new _o(c,o).format(p)),m=l.useMemo(()=>new ag(c,o),[c,o]),_=l.useMemo(()=>m.getNumberingSystem(h),[m,h]),$=l.useMemo(()=>new _o(c,{...o,numberingSystem:_}),[c,o,_]),y=l.useMemo(()=>$.resolvedOptions(),[$]),E=l.useCallback(J=>isNaN(J)||J===null?"":$.format(J),[$]),v=isNaN(n)?1:n;y.style==="percent"&&isNaN(n)&&(v=.01);let A=l.useRef(p),L=l.useRef(c),T=l.useRef(o);(!Object.is(p,A.current)||c!==L.current||o!==T.current)&&(g(E(p)),A.current=p,L.current=c,T.current=o);let M=l.useMemo(()=>m.parse(h),[m,h]),F=l.useRef(0);F.current=M;let G=()=>{if(!h.length){b(NaN),g(i===void 0?"":E(p));return}if(isNaN(F.current)){g(E(p));return}let J;isNaN(n)?J=hb(F.current,t,r):J=ht(F.current,t,r,n),J=m.parse(E(J)),b(J),g(E(i===void 0?J:p))},S=(J,w)=>{let N=F.current;if(isNaN(N)){let B=isNaN(w)?0:w;return ht(B,t,r,v)}else{let B=ht(N,t,r,v);return J==="+"&&B>N||J==="-"&&B<N?B:ht(No(J,N,v),t,r,v)}},q=()=>{let J=S("+",t);J===p&&g(E(J)),b(J)},D=()=>{let J=S("-",r);J===p&&g(E(J)),b(J)},P=()=>{r!=null&&b(ht(r,t,r,v))},ee=()=>{t!=null&&b(t)},Q=l.useMemo(()=>!d&&!f&&(isNaN(M)||isNaN(r)||ht(M,t,r,v)>M||No("+",M,v)<=r),[d,f,t,r,v,M]),de=l.useMemo(()=>!d&&!f&&(isNaN(M)||isNaN(t)||ht(M,t,r,v)<M||No("-",M,v)>=t),[d,f,t,r,v,M]);return{validate:J=>m.isValidPartialNumber(J,t,r),increment:q,incrementToMax:P,decrement:D,decrementToMin:ee,canIncrement:Q,canDecrement:de,minValue:t,maxValue:r,numberValue:M,setInputValue:g,inputValue:h,commit:G}}function No(e,t,r){let n=e==="+"?t+r:t-r;if(t%1!==0||r%1!==0){const o=t.toString().split("."),i=r.toString().split("."),a=o[1]&&o[1].length||0,s=i[1]&&i[1].length||0,c=Math.pow(10,Math.max(a,s));t=Math.round(t*c),r=Math.round(r*c),n=e==="+"?t+r:t-r,n/=c}return n}function Eu(e){const t=l.useRef(null),{buttonProps:r,isPressed:n}=Eo(e,t),{children:o,className:i}=e;return k("button",{"data-state":n?"pressed":void 0,ref:t,...r,className:i,children:o})}const Kv=I.div`
|
|
743
746
|
--border-color: ${u.color_outline_secondary_enabled};
|
|
744
747
|
display: inline-grid;
|
|
745
748
|
grid-template:
|
|
@@ -757,7 +760,7 @@ border-width: 0;
|
|
|
757
760
|
outline: 1px solid black;
|
|
758
761
|
--border-color: ${u.color_black};
|
|
759
762
|
}
|
|
760
|
-
`,
|
|
763
|
+
`,Hv=I(er)`
|
|
761
764
|
border-top-right-radius: 0;
|
|
762
765
|
border-color: var(--border-color);
|
|
763
766
|
border-bottom-right-radius: 0;
|
|
@@ -766,7 +769,7 @@ border-width: 0;
|
|
|
766
769
|
grid-area: field;
|
|
767
770
|
margin: 0;
|
|
768
771
|
margin-right: -1px; // to make the borders overlap
|
|
769
|
-
`,
|
|
772
|
+
`,Pu=I(Eu)`
|
|
770
773
|
display: grid;
|
|
771
774
|
place-items: center;
|
|
772
775
|
color: ${u.color_text_weak};
|
|
@@ -810,14 +813,14 @@ border-width: 0;
|
|
|
810
813
|
line-height: 0;
|
|
811
814
|
font-size: 1rem;
|
|
812
815
|
}
|
|
813
|
-
`,
|
|
816
|
+
`,Gv=I(Pu)`
|
|
814
817
|
border-radius: unset;
|
|
815
818
|
border-top: 1px solid var(--border-color);
|
|
816
819
|
border-top-right-radius: ${u.border_radius_400};
|
|
817
820
|
border-bottom-width: 0.5px;
|
|
818
821
|
grid-area: increment;
|
|
819
822
|
margin-bottom: -0.5px;
|
|
820
|
-
`,
|
|
823
|
+
`,qv=I(Pu)`
|
|
821
824
|
border-radius: unset;
|
|
822
825
|
border-bottom: 1px solid var(--border-color);
|
|
823
826
|
border-bottom-right-radius: ${u.border_radius_400};
|
|
@@ -825,7 +828,7 @@ border-width: 0;
|
|
|
825
828
|
border-top-width: 0.5px;
|
|
826
829
|
margin-top: -0.5px;
|
|
827
830
|
grid-area: decrement;
|
|
828
|
-
`;function
|
|
831
|
+
`;function Su(e,t){var r;if(e.length&&((r=e[0])!=null&&r.value)){const n=e[0].value;return t.indexOf(n)}}const Mo=l.forwardRef((e,t)=>{const{description:r,disabled:n,readOnly:o,required:i,paddingSize:a="small",label:s,errorMessage:c,placeholder:d="Enter number...",showStepper:f=!0,min:p,max:b,locale:h="en-US",...g}=e,m=tt(),_=n??m,$=bt(t),y=Uv({...g,isDisabled:_,isReadOnly:o,isRequired:i,minValue:p,maxValue:b,placeholder:d,locale:h}),{labelProps:E,groupProps:v,inputProps:A,incrementButtonProps:L,decrementButtonProps:T,descriptionProps:M,errorMessageProps:F}=Wv({...g,isDisabled:_,isReadOnly:o,isRequired:i,minValue:p,maxValue:b,placeholder:d,label:s},y,$);let G=null;typeof s=="string"?G=k(Xe,{...E,children:s}):l.isValidElement(s)&&(G=l.cloneElement(s,{...E}));const S=q=>{const{formatOptions:D}=e;if((D==null?void 0:D.style)==="unit"){const ee=Intl.NumberFormat(h,D),Q=ee.formatToParts(1).filter(N=>N.type==="unit"),de=ee.formatToParts(3).filter(N=>N.type==="unit"),fe=Su(Q,y.inputValue),J=Su(de,y.inputValue);let w;if(fe&&fe>-1?w=fe:J&&J>-1&&(w=J),w){const N=q.target.selectionStart;if(N&&N>w){const B=w-1;q.target.setSelectionRange(B,B)}}}};return le(tr,{children:[G,f?le(Kv,{...v,children:[k(Hv,{...A,paddingSize:a,ref:$,onClick:S,onFocus:S}),k(Gv,{...L,children:k($e.KeyboardArrowUp,{})}),k(qv,{...T,children:k($e.KeyboardArrowDown,{})})]}):k(er,{ref:$,...A,paddingSize:a}),c?le(Xr,{...F,children:[k($e.Error,{}),c]}):null,r?k(Jr,{...M,children:r}):null]})});Mo.displayName="NumberInput";const Cu=l.forwardRef((e,t)=>{const{errorMessage:r,description:n,disabled:o,readOnly:i,required:a,paddingSize:s="large",label:c,validationState:d,placeholder:f="Enter text...",...p}=e,b=bt(t),h=tt(),g=o??h,{labelProps:m,descriptionProps:_,inputProps:$,errorMessageProps:y}=Yr({...p,isDisabled:g,isReadOnly:i,isRequired:a,placeholder:f,label:c,inputElementType:"textarea"},b);let E=null;return typeof c=="string"?E=k(Xe,{...m,children:c}):l.isValidElement(c)&&(E=l.cloneElement(c,{...m})),le(tr,{children:[E,k(er,{as:"textarea","data-state":d,paddingSize:s,ref:b,placeholder:"Enter...",...$}),r?le(Xr,{...y,children:[k($e.Error,{}),r]}):null,n?k(Jr,{..._,children:n}):null]})});Cu.displayName="TextAreaInput";const Lo=l.createContext({});Lo.displayName="FormControlContext";function tn(){return l.useContext(Lo)}function Yv({children:e,label:t,errorMessage:r,description:n,tooltipContent:o,tooltipIcon:i,validationState:a,id:s,...c}){const{descriptionProps:d,errorMessageProps:f,fieldProps:p,labelProps:b}=Ql({errorMessage:r,label:t,description:n,validationState:a,id:s,...c});return k(Lo.Provider,{value:p,children:le(tr,{children:[le(Xe,{...b,display:"flex",children:[t,o?k(en,{icon:i,children:o}):null]}),e,n?k(Jr,{...d,children:n}):null,r?le(Xr,{...f,children:[k($e.Error,{}),r]}):null]})})}const Tu=l.forwardRef((e,t)=>{const{label:r,tooltipContent:n,tooltipIcon:o,...i}=e;return k(To,{ref:t,label:le(Xe,{children:[r,n?k(en,{icon:o,children:n}):null]}),...i})});Tu.displayName="TextFormControl";const Ou=l.forwardRef((e,t)=>{const{label:r,tooltipContent:n,tooltipIcon:o,...i}=e;return k(Cu,{ref:t,label:le(Xe,{children:[r,n?k(en,{icon:o,children:n}):null]}),...i})});Ou.displayName="TextAreaFormControl";const ku=l.forwardRef((e,t)=>{const{label:r,tooltipContent:n,tooltipIcon:o,...i}=e;return k(Mo,{ref:t,label:le(Xe,{children:[r,n?k(en,{icon:o,children:n}):null]}),...i})});ku.displayName="NumberFormControl";function Du(e){const t=tt(),r=e??t;return{...tn(),disabled:r}}const Xv=()=>k("svg",{viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:k("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M 11.9577 4.4057 L 5.766 10.5974 L 2.4187 7.2501 L 3.4244 6.2445 L 5.766 8.5861 L 10.952 3.4 L 11.9577 4.4057 Z",fill:"white",stroke:"white","stroke-width":"0.25"})}),Jv=()=>k("svg",{focusable:"false",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",children:k("path",{d:"M19 13 H5 v-3 h14 v2 z"})}),Fo=I.div`
|
|
829
832
|
display: grid;
|
|
830
833
|
place-items: center;
|
|
831
834
|
width: 16px;
|
|
@@ -840,7 +843,7 @@ border-width: 0;
|
|
|
840
843
|
width: 100%;
|
|
841
844
|
height: 100%;
|
|
842
845
|
}
|
|
843
|
-
`,
|
|
846
|
+
`,Zv=I(Xg)`
|
|
844
847
|
all: unset;
|
|
845
848
|
background-color: ${u.color_white};
|
|
846
849
|
width: ${u.sizing_600};
|
|
@@ -878,32 +881,33 @@ border-width: 0;
|
|
|
878
881
|
--background-color: ${u.color_fill_danger_enabled};
|
|
879
882
|
color: ${u.color_fill_danger_enabled};
|
|
880
883
|
}
|
|
881
|
-
`,
|
|
884
|
+
`,Qv=I(Jg)`
|
|
882
885
|
line-height: 0;
|
|
883
886
|
|
|
884
887
|
& > svg {
|
|
885
888
|
line-height: 0;
|
|
886
889
|
}
|
|
887
|
-
`;function
|
|
890
|
+
`;function e_({disabled:e,checked:t,invalid:r,onCheckedChange:n,...o}){const i=Du(e);return le(Zv,{onCheckedChange:n,...o,...i,checked:t,"aria-invalid":r,children:[!t&&k(Fo,{}),le(Qv,{children:[t===!0&&k(Fo,{children:k(Xv,{})}),t==="indeterminate"&&k(Fo,{children:k(Jv,{})})]})]})}const Ro=I.h1`
|
|
888
891
|
font-family: ${u.font_family_inter_display};
|
|
889
892
|
font-weight: 500;
|
|
890
893
|
font-style: normal;
|
|
891
894
|
margin: 0;
|
|
892
|
-
`,
|
|
895
|
+
`,t_=I(Ro)`
|
|
893
896
|
letter-spacing: ${u.letter_spacing_heading_large};
|
|
894
897
|
font-size: ${u.font_size_heading_large};
|
|
895
|
-
`,
|
|
898
|
+
`,r_=I(Ro)`
|
|
896
899
|
letter-spacing: ${u.letter_spacing_heading_medium};
|
|
897
900
|
font-size: ${u.font_size_heading_medium};
|
|
898
|
-
`,
|
|
901
|
+
`,n_={small:I(Ro)`
|
|
899
902
|
letter-spacing: ${u.letter_spacing_heading_small};
|
|
900
903
|
font-size: ${u.font_size_heading_small};
|
|
901
|
-
`,medium:
|
|
904
|
+
`,medium:r_,large:t_},Iu=l.forwardRef((e,t)=>{const{children:r,as:n,size:o,...i}=e,a=n_[o];return k(a,{...i,ref:t,as:n,children:r})});Iu.displayName="Heading";const zo={small:"32px",large:"40px"},Au={circle:u.border_radius_circle,square:u.border_radius_400},rn=I.button`
|
|
902
905
|
all: unset;
|
|
903
906
|
appearance: none;
|
|
904
907
|
display: grid;
|
|
908
|
+
line-height: 1;
|
|
905
909
|
place-items: center;
|
|
906
|
-
border-radius: var(--icon-button-border-radius, ${
|
|
910
|
+
border-radius: var(--icon-button-border-radius, ${Au.square});
|
|
907
911
|
height: var(--icon-button-size, ${zo.small});
|
|
908
912
|
width: var(--icon-button-size, ${zo.small});
|
|
909
913
|
touch-action: none;
|
|
@@ -919,7 +923,7 @@ border-width: 0;
|
|
|
919
923
|
} */
|
|
920
924
|
|
|
921
925
|
&[data-state~='focused'] {
|
|
922
|
-
outline: ${u.color_black}solid 1px;
|
|
926
|
+
outline: ${u.color_black}solid 1px;
|
|
923
927
|
outline-offset: 2px;
|
|
924
928
|
}
|
|
925
929
|
|
|
@@ -931,7 +935,7 @@ border-width: 0;
|
|
|
931
935
|
line-height: 0;
|
|
932
936
|
font-size: ${u.font_size_200};
|
|
933
937
|
}
|
|
934
|
-
`,
|
|
938
|
+
`,o_=I(rn)`
|
|
935
939
|
background: ${u.color_fill_primary_enabled};
|
|
936
940
|
color: ${u.color_white};
|
|
937
941
|
|
|
@@ -948,7 +952,7 @@ border-width: 0;
|
|
|
948
952
|
background: ${u.color_fill_primary_disabled};
|
|
949
953
|
color: ${u.color_fill_inverse_pressed};
|
|
950
954
|
}
|
|
951
|
-
`,
|
|
955
|
+
`,i_=I(rn)`
|
|
952
956
|
background: ${u.color_fill_secondary_enabled};
|
|
953
957
|
color: ${u.color_fill_primary_enabled};
|
|
954
958
|
|
|
@@ -965,7 +969,7 @@ border-width: 0;
|
|
|
965
969
|
&:disabled {
|
|
966
970
|
background: ${u.color_fill_secondary_disabled};
|
|
967
971
|
}
|
|
968
|
-
`,
|
|
972
|
+
`,a_=I(rn)`
|
|
969
973
|
background: ${u.color_fill_danger_enabled};
|
|
970
974
|
color: ${u.color_white};
|
|
971
975
|
|
|
@@ -982,7 +986,7 @@ border-width: 0;
|
|
|
982
986
|
&:disabled {
|
|
983
987
|
background: ${u.color_fill_danger_disabled};
|
|
984
988
|
}
|
|
985
|
-
`,
|
|
989
|
+
`,s_=I(rn)`
|
|
986
990
|
background: ${u.color_white};
|
|
987
991
|
|
|
988
992
|
&:hover {
|
|
@@ -996,11 +1000,11 @@ border-width: 0;
|
|
|
996
1000
|
&:disabled {
|
|
997
1001
|
background: ${u.color_fill_inverse_disabled};
|
|
998
1002
|
}
|
|
999
|
-
`,
|
|
1003
|
+
`,l_={primary:o_,secondary:i_,danger:a_,inverse:s_},Nu=l.forwardRef((e,t)=>{const r=bt(t),{label:n,size:o="small",variant:i="primary",shape:a="circle",disabled:s=!1,onClick:c,autoFocus:d,children:f,...p}=e,{buttonProps:b,isPressed:h}=Eo({onPress:c,isDisabled:s,autoFocus:d,...p},r),{isFocusVisible:g,focusProps:m}=Ur({autoFocus:d}),y=[g?"focused":void 0,h?"pressed":void 0].filter(Boolean).join(" "),E=l_[i],v=Au[a],A=zo[o];return k(E,{ref:r,"data-state":y,...b,...m,style:{"--icon-button-size":A,"--icon-button-border-radius":v},children:k(qt,{label:n,children:f})})});Nu.displayName="Button";const Vo="horizontal",c_=["horizontal","vertical"],Mu=l.forwardRef((e,t)=>{const{decorative:r,orientation:n=Vo,...o}=e,i=Lu(n)?n:Vo,s=r?{role:"none"}:{"aria-orientation":i==="vertical"?i:void 0,role:"separator"};return l.createElement(te.div,C({"data-orientation":i},s,o,{ref:t}))});Mu.propTypes={orientation(e,t,r){const n=e[t],o=String(n);return n&&!Lu(n)?new Error(u_(o,r)):null}};function u_(e,t){return`Invalid prop \`orientation\` of value \`${e}\` supplied to \`${t}\`, expected one of:
|
|
1000
1004
|
- horizontal
|
|
1001
1005
|
- vertical
|
|
1002
1006
|
|
|
1003
|
-
Defaulting to \`${Vo}\`.`}function Mu(e){return l_.includes(e)}const u_=Nu;function jo(e){const t=e+"CollectionProvider",[r,n]=Pe(t),[o,i]=r(t,{collectionRef:{current:null},itemMap:new Map}),a=h=>{const{scope:g,children:m}=h,_=l.useRef(null),$=l.useRef(new Map).current;return l.createElement(o,{scope:g,itemMap:$,collectionRef:_},m)},s=e+"CollectionSlot",c=l.forwardRef((h,g)=>{const{scope:m,children:_}=h,$=i(s,m),y=se(g,$.collectionRef);return l.createElement(dt,{ref:y},_)}),d=e+"CollectionItemSlot",f="data-radix-collection-item",p=l.forwardRef((h,g)=>{const{scope:m,children:_,...$}=h,y=l.useRef(null),E=se(g,y),v=i(d,m);return l.useEffect(()=>(v.itemMap.set(y,{ref:y,...$}),()=>void v.itemMap.delete(y))),l.createElement(dt,{[f]:"",ref:E},_)});function b(h){const g=i(e+"CollectionConsumer",h);return l.useCallback(()=>{const _=g.collectionRef.current;if(!_)return[];const $=Array.from(_.querySelectorAll(`[${f}]`));return Array.from(g.itemMap.values()).sort((v,A)=>$.indexOf(v.ref.current)-$.indexOf(A.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:a,Slot:c,ItemSlot:p},b,n]}const Lu="ToastProvider",[Bo,d_,f_]=jo("Toast"),[Fu,kE]=Pe("Toast",[f_]),[p_,nn]=Fu(Lu),Ru=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:a}=e,[s,c]=l.useState(null),[d,f]=l.useState(0),p=l.useRef(!1),b=l.useRef(!1);return l.createElement(Bo.Provider,{scope:t},l.createElement(p_,{scope:t,label:r,duration:n,swipeDirection:o,swipeThreshold:i,toastCount:d,viewport:s,onViewportChange:c,onToastAdd:l.useCallback(()=>f(h=>h+1),[]),onToastRemove:l.useCallback(()=>f(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:b},a))};Ru.propTypes={label(e){if(e.label&&typeof e.label=="string"&&!e.label.trim()){const t=`Invalid prop \`label\` supplied to \`${Lu}\`. Expected non-empty \`string\`.`;return new Error(t)}return null}};const h_="ToastViewport",m_=["F8"],Wo="toast.viewportPause",Uo="toast.viewportResume",b_=l.forwardRef((e,t)=>{const{__scopeToast:r,hotkey:n=m_,label:o="Notifications ({hotkey})",...i}=e,a=nn(h_,r),s=d_(r),c=l.useRef(null),d=l.useRef(null),f=l.useRef(null),p=l.useRef(null),b=se(t,p,a.onViewportChange),h=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=a.toastCount>0;l.useEffect(()=>{const _=$=>{var y;n.every(v=>$[v]||$.code===v)&&((y=p.current)===null||y===void 0||y.focus())};return document.addEventListener("keydown",_),()=>document.removeEventListener("keydown",_)},[n]),l.useEffect(()=>{const _=c.current,$=p.current;if(g&&_&&$){const y=()=>{if(!a.isClosePausedRef.current){const L=new CustomEvent(Wo);$.dispatchEvent(L),a.isClosePausedRef.current=!0}},E=()=>{if(a.isClosePausedRef.current){const L=new CustomEvent(Uo);$.dispatchEvent(L),a.isClosePausedRef.current=!1}},v=L=>{!_.contains(L.relatedTarget)&&E()},A=()=>{_.contains(document.activeElement)||E()};return _.addEventListener("focusin",y),_.addEventListener("focusout",v),_.addEventListener("pointermove",y),_.addEventListener("pointerleave",A),window.addEventListener("blur",y),window.addEventListener("focus",E),()=>{_.removeEventListener("focusin",y),_.removeEventListener("focusout",v),_.removeEventListener("pointermove",y),_.removeEventListener("pointerleave",A),window.removeEventListener("blur",y),window.removeEventListener("focus",E)}}},[g,a.isClosePausedRef]);const m=l.useCallback(({tabbingDirection:_})=>{const y=s().map(E=>{const v=E.ref.current,A=[v,...D_(v)];return _==="forwards"?A:A.reverse()});return(_==="forwards"?y.reverse():y).flat()},[s]);return l.useEffect(()=>{const _=p.current;if(_){const $=y=>{const E=y.altKey||y.ctrlKey||y.metaKey;if(y.key==="Tab"&&!E){const M=document.activeElement,F=y.shiftKey;if(y.target===_&&F){var A;(A=d.current)===null||A===void 0||A.focus();return}const q=m({tabbingDirection:F?"backwards":"forwards"}),D=q.findIndex(P=>P===M);if(Ko(q.slice(D+1)))y.preventDefault();else{var L,T;F?(L=d.current)===null||L===void 0||L.focus():(T=f.current)===null||T===void 0||T.focus()}}};return _.addEventListener("keydown",$),()=>_.removeEventListener("keydown",$)}},[s,m]),l.createElement(eh,{ref:c,role:"region","aria-label":o.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:g?void 0:"none"}},g&&l.createElement(zu,{ref:d,onFocusFromOutsideViewport:()=>{const _=m({tabbingDirection:"forwards"});Ko(_)}}),l.createElement(Bo.Slot,{scope:r},l.createElement(te.ol,C({tabIndex:-1},i,{ref:b}))),g&&l.createElement(zu,{ref:f,onFocusFromOutsideViewport:()=>{const _=m({tabbingDirection:"backwards"});Ko(_)}}))}),g_="ToastFocusProxy",zu=l.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...o}=e,i=nn(g_,r);return l.createElement(Cr,C({"aria-hidden":!0,tabIndex:0},o,{ref:t,style:{position:"fixed"},onFocus:a=>{var s;const c=a.relatedTarget;!((s=i.viewport)!==null&&s!==void 0&&s.contains(c))&&n()}}))}),on="Toast",v_="toast.swipeStart",__="toast.swipeMove",y_="toast.swipeCancel",$_="toast.swipeEnd",x_=l.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:o,onOpenChange:i,...a}=e,[s=!0,c]=Ne({prop:n,defaultProp:o,onChange:i});return l.createElement(ke,{present:r||s},l.createElement(Vu,C({open:s},a,{ref:t,onClose:()=>c(!1),onPause:Se(e.onPause),onResume:Se(e.onResume),onSwipeStart:H(e.onSwipeStart,d=>{d.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:H(e.onSwipeMove,d=>{const{x:f,y:p}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","move"),d.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${f}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${p}px`)}),onSwipeCancel:H(e.onSwipeCancel,d=>{d.currentTarget.setAttribute("data-swipe","cancel"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:H(e.onSwipeEnd,d=>{const{x:f,y:p}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","end"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${f}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${p}px`),c(!1)})})))}),[w_,E_]=Fu(on,{onClose(){}}),Vu=l.forwardRef((e,t)=>{const{__scopeToast:r,type:n="foreground",duration:o,open:i,onClose:a,onEscapeKeyDown:s,onPause:c,onResume:d,onSwipeStart:f,onSwipeMove:p,onSwipeCancel:b,onSwipeEnd:h,...g}=e,m=nn(on,r),[_,$]=l.useState(null),y=se(t,P=>$(P)),E=l.useRef(null),v=l.useRef(null),A=o||m.duration,L=l.useRef(0),T=l.useRef(A),M=l.useRef(0),{onToastAdd:F,onToastRemove:G}=m,S=Se(()=>{var P;(_==null?void 0:_.contains(document.activeElement))&&((P=m.viewport)===null||P===void 0||P.focus()),a()}),q=l.useCallback(P=>{!P||P===1/0||(window.clearTimeout(M.current),L.current=new Date().getTime(),M.current=window.setTimeout(S,P))},[S]);l.useEffect(()=>{const P=m.viewport;if(P){const ee=()=>{q(T.current),d==null||d()},Q=()=>{const de=new Date().getTime()-L.current;T.current=T.current-de,window.clearTimeout(M.current),c==null||c()};return P.addEventListener(Wo,Q),P.addEventListener(Uo,ee),()=>{P.removeEventListener(Wo,Q),P.removeEventListener(Uo,ee)}}},[m.viewport,A,c,d,q]),l.useEffect(()=>{i&&!m.isClosePausedRef.current&&q(A)},[i,A,m.isClosePausedRef,q]),l.useEffect(()=>(F(),()=>G()),[F,G]);const D=l.useMemo(()=>_?Uu(_):null,[_]);return m.viewport?l.createElement(l.Fragment,null,D&&l.createElement(P_,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0},D),l.createElement(w_,{scope:r,onClose:S},ut.createPortal(l.createElement(Bo.ItemSlot,{scope:r},l.createElement(Qp,{asChild:!0,onEscapeKeyDown:H(s,()=>{m.isFocusedToastEscapeKeyDownRef.current||S(),m.isFocusedToastEscapeKeyDownRef.current=!1})},l.createElement(te.li,C({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":m.swipeDirection},g,{ref:y,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:H(e.onKeyDown,P=>{P.key==="Escape"&&(s==null||s(P.nativeEvent),P.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,S()))}),onPointerDown:H(e.onPointerDown,P=>{P.button===0&&(E.current={x:P.clientX,y:P.clientY})}),onPointerMove:H(e.onPointerMove,P=>{if(!E.current)return;const ee=P.clientX-E.current.x,Q=P.clientY-E.current.y,de=Boolean(v.current),fe=["left","right"].includes(m.swipeDirection),J=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,w=fe?J(0,ee):0,N=fe?0:J(0,Q),B=P.pointerType==="touch"?10:2,j={x:w,y:N},V={originalEvent:P,delta:j};de?(v.current=j,an(__,p,V,{discrete:!1})):Ku(j,m.swipeDirection,B)?(v.current=j,an(v_,f,V,{discrete:!1}),P.target.setPointerCapture(P.pointerId)):(Math.abs(ee)>B||Math.abs(Q)>B)&&(E.current=null)}),onPointerUp:H(e.onPointerUp,P=>{const ee=v.current,Q=P.target;if(Q.hasPointerCapture(P.pointerId)&&Q.releasePointerCapture(P.pointerId),v.current=null,E.current=null,ee){const de=P.currentTarget,fe={originalEvent:P,delta:ee};Ku(ee,m.swipeDirection,m.swipeThreshold)?an($_,h,fe,{discrete:!0}):an(y_,b,fe,{discrete:!0}),de.addEventListener("click",J=>J.preventDefault(),{once:!0})}})})))),m.viewport))):null});Vu.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){const t=`Invalid prop \`type\` supplied to \`${on}\`. Expected \`foreground | background\`.`;return new Error(t)}return null}};const P_=e=>{const{__scopeToast:t,children:r,...n}=e,o=nn(on,t),[i,a]=l.useState(!1),[s,c]=l.useState(!1);return O_(()=>a(!0)),l.useEffect(()=>{const d=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(d)},[]),s?null:l.createElement(Gt,{asChild:!0},l.createElement(Cr,n,i&&l.createElement(l.Fragment,null,o.label," ",r)))},S_=l.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return l.createElement(te.div,C({},n,{ref:t}))}),C_="ToastAction",ju=l.forwardRef((e,t)=>{const{altText:r,...n}=e;return r?l.createElement(Wu,{altText:r,asChild:!0},l.createElement(Bu,C({},n,{ref:t}))):null});ju.propTypes={altText(e){return e.altText?null:new Error(`Missing prop \`altText\` expected on \`${C_}\``)}};const T_="ToastClose",Bu=l.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,o=E_(T_,r);return l.createElement(Wu,{asChild:!0},l.createElement(te.button,C({type:"button"},n,{ref:t,onClick:H(e.onClick,o.onClose)})))}),Wu=l.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...o}=e;return l.createElement(te.div,C({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0},o,{ref:t}))});function Uu(e){const t=[];return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),k_(n)){const o=n.ariaHidden||n.hidden||n.style.display==="none",i=n.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const a=n.dataset.radixToastAnnounceAlt;a&&t.push(a)}else t.push(...Uu(n))}}),t}function an(e,t,r,{discrete:n}){const o=r.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?ca(o,i):o.dispatchEvent(i)}const Ku=(e,t,r=0)=>{const n=Math.abs(e.x),o=Math.abs(e.y),i=n>o;return t==="left"||t==="right"?i&&n>r:!i&&o>r};function O_(e=()=>{}){const t=Se(e);ye(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function k_(e){return e.nodeType===e.ELEMENT_NODE}function D_(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Ko(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}const I_=Ru,A_=b_,N_=x_,M_=S_,L_=ju,F_=Bu,Ho=25,R_=I.keyframes`
|
|
1007
|
+
Defaulting to \`${Vo}\`.`}function Lu(e){return c_.includes(e)}const d_=Mu;function jo(e){const t=e+"CollectionProvider",[r,n]=Pe(t),[o,i]=r(t,{collectionRef:{current:null},itemMap:new Map}),a=h=>{const{scope:g,children:m}=h,_=l.useRef(null),$=l.useRef(new Map).current;return l.createElement(o,{scope:g,itemMap:$,collectionRef:_},m)},s=e+"CollectionSlot",c=l.forwardRef((h,g)=>{const{scope:m,children:_}=h,$=i(s,m),y=se(g,$.collectionRef);return l.createElement(dt,{ref:y},_)}),d=e+"CollectionItemSlot",f="data-radix-collection-item",p=l.forwardRef((h,g)=>{const{scope:m,children:_,...$}=h,y=l.useRef(null),E=se(g,y),v=i(d,m);return l.useEffect(()=>(v.itemMap.set(y,{ref:y,...$}),()=>void v.itemMap.delete(y))),l.createElement(dt,{[f]:"",ref:E},_)});function b(h){const g=i(e+"CollectionConsumer",h);return l.useCallback(()=>{const _=g.collectionRef.current;if(!_)return[];const $=Array.from(_.querySelectorAll(`[${f}]`));return Array.from(g.itemMap.values()).sort((v,A)=>$.indexOf(v.ref.current)-$.indexOf(A.ref.current))},[g.collectionRef,g.itemMap])}return[{Provider:a,Slot:c,ItemSlot:p},b,n]}const Fu="ToastProvider",[Bo,f_,p_]=jo("Toast"),[Ru,DE]=Pe("Toast",[p_]),[h_,nn]=Ru(Fu),zu=e=>{const{__scopeToast:t,label:r="Notification",duration:n=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:a}=e,[s,c]=l.useState(null),[d,f]=l.useState(0),p=l.useRef(!1),b=l.useRef(!1);return l.createElement(Bo.Provider,{scope:t},l.createElement(h_,{scope:t,label:r,duration:n,swipeDirection:o,swipeThreshold:i,toastCount:d,viewport:s,onViewportChange:c,onToastAdd:l.useCallback(()=>f(h=>h+1),[]),onToastRemove:l.useCallback(()=>f(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:b},a))};zu.propTypes={label(e){if(e.label&&typeof e.label=="string"&&!e.label.trim()){const t=`Invalid prop \`label\` supplied to \`${Fu}\`. Expected non-empty \`string\`.`;return new Error(t)}return null}};const m_="ToastViewport",b_=["F8"],Wo="toast.viewportPause",Uo="toast.viewportResume",g_=l.forwardRef((e,t)=>{const{__scopeToast:r,hotkey:n=b_,label:o="Notifications ({hotkey})",...i}=e,a=nn(m_,r),s=f_(r),c=l.useRef(null),d=l.useRef(null),f=l.useRef(null),p=l.useRef(null),b=se(t,p,a.onViewportChange),h=n.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=a.toastCount>0;l.useEffect(()=>{const _=$=>{var y;n.every(v=>$[v]||$.code===v)&&((y=p.current)===null||y===void 0||y.focus())};return document.addEventListener("keydown",_),()=>document.removeEventListener("keydown",_)},[n]),l.useEffect(()=>{const _=c.current,$=p.current;if(g&&_&&$){const y=()=>{if(!a.isClosePausedRef.current){const L=new CustomEvent(Wo);$.dispatchEvent(L),a.isClosePausedRef.current=!0}},E=()=>{if(a.isClosePausedRef.current){const L=new CustomEvent(Uo);$.dispatchEvent(L),a.isClosePausedRef.current=!1}},v=L=>{!_.contains(L.relatedTarget)&&E()},A=()=>{_.contains(document.activeElement)||E()};return _.addEventListener("focusin",y),_.addEventListener("focusout",v),_.addEventListener("pointermove",y),_.addEventListener("pointerleave",A),window.addEventListener("blur",y),window.addEventListener("focus",E),()=>{_.removeEventListener("focusin",y),_.removeEventListener("focusout",v),_.removeEventListener("pointermove",y),_.removeEventListener("pointerleave",A),window.removeEventListener("blur",y),window.removeEventListener("focus",E)}}},[g,a.isClosePausedRef]);const m=l.useCallback(({tabbingDirection:_})=>{const y=s().map(E=>{const v=E.ref.current,A=[v,...I_(v)];return _==="forwards"?A:A.reverse()});return(_==="forwards"?y.reverse():y).flat()},[s]);return l.useEffect(()=>{const _=p.current;if(_){const $=y=>{const E=y.altKey||y.ctrlKey||y.metaKey;if(y.key==="Tab"&&!E){const M=document.activeElement,F=y.shiftKey;if(y.target===_&&F){var A;(A=d.current)===null||A===void 0||A.focus();return}const q=m({tabbingDirection:F?"backwards":"forwards"}),D=q.findIndex(P=>P===M);if(Ko(q.slice(D+1)))y.preventDefault();else{var L,T;F?(L=d.current)===null||L===void 0||L.focus():(T=f.current)===null||T===void 0||T.focus()}}};return _.addEventListener("keydown",$),()=>_.removeEventListener("keydown",$)}},[s,m]),l.createElement(th,{ref:c,role:"region","aria-label":o.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:g?void 0:"none"}},g&&l.createElement(Vu,{ref:d,onFocusFromOutsideViewport:()=>{const _=m({tabbingDirection:"forwards"});Ko(_)}}),l.createElement(Bo.Slot,{scope:r},l.createElement(te.ol,C({tabIndex:-1},i,{ref:b}))),g&&l.createElement(Vu,{ref:f,onFocusFromOutsideViewport:()=>{const _=m({tabbingDirection:"backwards"});Ko(_)}}))}),v_="ToastFocusProxy",Vu=l.forwardRef((e,t)=>{const{__scopeToast:r,onFocusFromOutsideViewport:n,...o}=e,i=nn(v_,r);return l.createElement(Cr,C({"aria-hidden":!0,tabIndex:0},o,{ref:t,style:{position:"fixed"},onFocus:a=>{var s;const c=a.relatedTarget;!((s=i.viewport)!==null&&s!==void 0&&s.contains(c))&&n()}}))}),on="Toast",__="toast.swipeStart",y_="toast.swipeMove",$_="toast.swipeCancel",x_="toast.swipeEnd",w_=l.forwardRef((e,t)=>{const{forceMount:r,open:n,defaultOpen:o,onOpenChange:i,...a}=e,[s=!0,c]=Ne({prop:n,defaultProp:o,onChange:i});return l.createElement(ke,{present:r||s},l.createElement(ju,C({open:s},a,{ref:t,onClose:()=>c(!1),onPause:Se(e.onPause),onResume:Se(e.onResume),onSwipeStart:H(e.onSwipeStart,d=>{d.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:H(e.onSwipeMove,d=>{const{x:f,y:p}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","move"),d.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${f}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${p}px`)}),onSwipeCancel:H(e.onSwipeCancel,d=>{d.currentTarget.setAttribute("data-swipe","cancel"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:H(e.onSwipeEnd,d=>{const{x:f,y:p}=d.detail.delta;d.currentTarget.setAttribute("data-swipe","end"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),d.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${f}px`),d.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${p}px`),c(!1)})})))}),[E_,P_]=Ru(on,{onClose(){}}),ju=l.forwardRef((e,t)=>{const{__scopeToast:r,type:n="foreground",duration:o,open:i,onClose:a,onEscapeKeyDown:s,onPause:c,onResume:d,onSwipeStart:f,onSwipeMove:p,onSwipeCancel:b,onSwipeEnd:h,...g}=e,m=nn(on,r),[_,$]=l.useState(null),y=se(t,P=>$(P)),E=l.useRef(null),v=l.useRef(null),A=o||m.duration,L=l.useRef(0),T=l.useRef(A),M=l.useRef(0),{onToastAdd:F,onToastRemove:G}=m,S=Se(()=>{var P;(_==null?void 0:_.contains(document.activeElement))&&((P=m.viewport)===null||P===void 0||P.focus()),a()}),q=l.useCallback(P=>{!P||P===1/0||(window.clearTimeout(M.current),L.current=new Date().getTime(),M.current=window.setTimeout(S,P))},[S]);l.useEffect(()=>{const P=m.viewport;if(P){const ee=()=>{q(T.current),d==null||d()},Q=()=>{const de=new Date().getTime()-L.current;T.current=T.current-de,window.clearTimeout(M.current),c==null||c()};return P.addEventListener(Wo,Q),P.addEventListener(Uo,ee),()=>{P.removeEventListener(Wo,Q),P.removeEventListener(Uo,ee)}}},[m.viewport,A,c,d,q]),l.useEffect(()=>{i&&!m.isClosePausedRef.current&&q(A)},[i,A,m.isClosePausedRef,q]),l.useEffect(()=>(F(),()=>G()),[F,G]);const D=l.useMemo(()=>_?Ku(_):null,[_]);return m.viewport?l.createElement(l.Fragment,null,D&&l.createElement(S_,{__scopeToast:r,role:"status","aria-live":n==="foreground"?"assertive":"polite","aria-atomic":!0},D),l.createElement(E_,{scope:r,onClose:S},ut.createPortal(l.createElement(Bo.ItemSlot,{scope:r},l.createElement(eh,{asChild:!0,onEscapeKeyDown:H(s,()=>{m.isFocusedToastEscapeKeyDownRef.current||S(),m.isFocusedToastEscapeKeyDownRef.current=!1})},l.createElement(te.li,C({role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":m.swipeDirection},g,{ref:y,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:H(e.onKeyDown,P=>{P.key==="Escape"&&(s==null||s(P.nativeEvent),P.nativeEvent.defaultPrevented||(m.isFocusedToastEscapeKeyDownRef.current=!0,S()))}),onPointerDown:H(e.onPointerDown,P=>{P.button===0&&(E.current={x:P.clientX,y:P.clientY})}),onPointerMove:H(e.onPointerMove,P=>{if(!E.current)return;const ee=P.clientX-E.current.x,Q=P.clientY-E.current.y,de=Boolean(v.current),fe=["left","right"].includes(m.swipeDirection),J=["left","up"].includes(m.swipeDirection)?Math.min:Math.max,w=fe?J(0,ee):0,N=fe?0:J(0,Q),B=P.pointerType==="touch"?10:2,j={x:w,y:N},V={originalEvent:P,delta:j};de?(v.current=j,an(y_,p,V,{discrete:!1})):Hu(j,m.swipeDirection,B)?(v.current=j,an(__,f,V,{discrete:!1}),P.target.setPointerCapture(P.pointerId)):(Math.abs(ee)>B||Math.abs(Q)>B)&&(E.current=null)}),onPointerUp:H(e.onPointerUp,P=>{const ee=v.current,Q=P.target;if(Q.hasPointerCapture(P.pointerId)&&Q.releasePointerCapture(P.pointerId),v.current=null,E.current=null,ee){const de=P.currentTarget,fe={originalEvent:P,delta:ee};Hu(ee,m.swipeDirection,m.swipeThreshold)?an(x_,h,fe,{discrete:!0}):an($_,b,fe,{discrete:!0}),de.addEventListener("click",J=>J.preventDefault(),{once:!0})}})})))),m.viewport))):null});ju.propTypes={type(e){if(e.type&&!["foreground","background"].includes(e.type)){const t=`Invalid prop \`type\` supplied to \`${on}\`. Expected \`foreground | background\`.`;return new Error(t)}return null}};const S_=e=>{const{__scopeToast:t,children:r,...n}=e,o=nn(on,t),[i,a]=l.useState(!1),[s,c]=l.useState(!1);return k_(()=>a(!0)),l.useEffect(()=>{const d=window.setTimeout(()=>c(!0),1e3);return()=>window.clearTimeout(d)},[]),s?null:l.createElement(Gt,{asChild:!0},l.createElement(Cr,n,i&&l.createElement(l.Fragment,null,o.label," ",r)))},C_=l.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e;return l.createElement(te.div,C({},n,{ref:t}))}),T_="ToastAction",Bu=l.forwardRef((e,t)=>{const{altText:r,...n}=e;return r?l.createElement(Uu,{altText:r,asChild:!0},l.createElement(Wu,C({},n,{ref:t}))):null});Bu.propTypes={altText(e){return e.altText?null:new Error(`Missing prop \`altText\` expected on \`${T_}\``)}};const O_="ToastClose",Wu=l.forwardRef((e,t)=>{const{__scopeToast:r,...n}=e,o=P_(O_,r);return l.createElement(Uu,{asChild:!0},l.createElement(te.button,C({type:"button"},n,{ref:t,onClick:H(e.onClick,o.onClose)})))}),Uu=l.forwardRef((e,t)=>{const{__scopeToast:r,altText:n,...o}=e;return l.createElement(te.div,C({"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":n||void 0},o,{ref:t}))});function Ku(e){const t=[];return Array.from(e.childNodes).forEach(n=>{if(n.nodeType===n.TEXT_NODE&&n.textContent&&t.push(n.textContent),D_(n)){const o=n.ariaHidden||n.hidden||n.style.display==="none",i=n.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const a=n.dataset.radixToastAnnounceAlt;a&&t.push(a)}else t.push(...Ku(n))}}),t}function an(e,t,r,{discrete:n}){const o=r.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:r});t&&o.addEventListener(e,t,{once:!0}),n?ca(o,i):o.dispatchEvent(i)}const Hu=(e,t,r=0)=>{const n=Math.abs(e.x),o=Math.abs(e.y),i=n>o;return t==="left"||t==="right"?i&&n>r:!i&&o>r};function k_(e=()=>{}){const t=Se(e);ye(()=>{let r=0,n=0;return r=window.requestAnimationFrame(()=>n=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(r),window.cancelAnimationFrame(n)}},[t])}function D_(e){return e.nodeType===e.ELEMENT_NODE}function I_(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Ko(e){const t=document.activeElement;return e.some(r=>r===t?!0:(r.focus(),document.activeElement!==t))}const A_=zu,N_=g_,M_=w_,L_=C_,F_=Bu,R_=Wu,Ho=25,z_=I.keyframes`
|
|
1004
1008
|
0% {
|
|
1005
1009
|
opacity: 1
|
|
1006
1010
|
}
|
|
@@ -1008,7 +1012,7 @@ Defaulting to \`${Vo}\`.`}function Mu(e){return l_.includes(e)}const u_=Nu;funct
|
|
|
1008
1012
|
100% {
|
|
1009
1013
|
opacity: 0
|
|
1010
1014
|
}
|
|
1011
|
-
`,
|
|
1015
|
+
`,V_=I.keyframes`
|
|
1012
1016
|
from {
|
|
1013
1017
|
transform: translateX(calc(100% + ${Ho}px));
|
|
1014
1018
|
}
|
|
@@ -1016,16 +1020,16 @@ Defaulting to \`${Vo}\`.`}function Mu(e){return l_.includes(e)}const u_=Nu;funct
|
|
|
1016
1020
|
to {
|
|
1017
1021
|
transform: translateX(0);
|
|
1018
1022
|
}
|
|
1019
|
-
`,
|
|
1023
|
+
`,j_=I.keyframes`
|
|
1020
1024
|
from {
|
|
1021
1025
|
transform: translateX(var(--radix-toast-swipe-end-x));
|
|
1022
1026
|
}
|
|
1023
1027
|
to {
|
|
1024
1028
|
transform: translateX(calc(100% + ${Ho}px));
|
|
1025
1029
|
}
|
|
1026
|
-
`,
|
|
1030
|
+
`,B_=I(F_)`
|
|
1027
1031
|
all: unset;
|
|
1028
|
-
`,
|
|
1032
|
+
`,Gu=I(R_)`
|
|
1029
1033
|
all: unset;
|
|
1030
1034
|
display: grid;
|
|
1031
1035
|
width: ${u.sizing_500};
|
|
@@ -1042,7 +1046,7 @@ Defaulting to \`${Vo}\`.`}function Mu(e){return l_.includes(e)}const u_=Nu;funct
|
|
|
1042
1046
|
& > svg {
|
|
1043
1047
|
font-size: 0.95rem;
|
|
1044
1048
|
}
|
|
1045
|
-
`,
|
|
1049
|
+
`,W_=I(L_)`
|
|
1046
1050
|
font-family: ${u.font_family_sans};
|
|
1047
1051
|
font-style: normal;
|
|
1048
1052
|
font-weight: 500;
|
|
@@ -1051,7 +1055,7 @@ Defaulting to \`${Vo}\`.`}function Mu(e){return l_.includes(e)}const u_=Nu;funct
|
|
|
1051
1055
|
letter-spacing: ${u.letter_spacing_tight};
|
|
1052
1056
|
display: flex;
|
|
1053
1057
|
align-items: center;
|
|
1054
|
-
`,
|
|
1058
|
+
`,qu=I(d_)`
|
|
1055
1059
|
background-color: var(--color-separator);
|
|
1056
1060
|
|
|
1057
1061
|
&[data-orientation='horizontal'] {
|
|
@@ -1065,7 +1069,7 @@ Defaulting to \`${Vo}\`.`}function Mu(e){return l_.includes(e)}const u_=Nu;funct
|
|
|
1065
1069
|
height: 100%;
|
|
1066
1070
|
width: 1;
|
|
1067
1071
|
}
|
|
1068
|
-
`,
|
|
1072
|
+
`,U_={info:u.color_background_white_standard,inverse:u.color_background_sentiment_neutral,negative:u.color_background_sentiment_negative},K_={info:u.color_text_standard,inverse:u.color_background_white_standard,negative:u.color_background_white_standard},H_={info:u.color_divider_weak,inverse:u.color_divider_inverse_weak,negative:u.color_divider_inverse_weak},G_=I(N_)`
|
|
1069
1073
|
position: fixed;
|
|
1070
1074
|
bottom: 0;
|
|
1071
1075
|
right: 0;
|
|
@@ -1078,7 +1082,7 @@ Defaulting to \`${Vo}\`.`}function Mu(e){return l_.includes(e)}const u_=Nu;funct
|
|
|
1078
1082
|
list-style: none;
|
|
1079
1083
|
z-index: 30;
|
|
1080
1084
|
outline: none;
|
|
1081
|
-
`,
|
|
1085
|
+
`,q_=I(M_)`
|
|
1082
1086
|
display: flex;
|
|
1083
1087
|
flex-direction: row;
|
|
1084
1088
|
align-items: center;
|
|
@@ -1095,11 +1099,11 @@ Defaulting to \`${Vo}\`.`}function Mu(e){return l_.includes(e)}const u_=Nu;funct
|
|
|
1095
1099
|
}
|
|
1096
1100
|
|
|
1097
1101
|
&[data-state~='open'] {
|
|
1098
|
-
animation: ${
|
|
1102
|
+
animation: ${V_} 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
1099
1103
|
}
|
|
1100
1104
|
|
|
1101
1105
|
&[data-state~='closed'] {
|
|
1102
|
-
animation: ${
|
|
1106
|
+
animation: ${z_} 100ms ease-in;
|
|
1103
1107
|
}
|
|
1104
1108
|
|
|
1105
1109
|
&[data-swipe='move'] {
|
|
@@ -1112,16 +1116,17 @@ Defaulting to \`${Vo}\`.`}function Mu(e){return l_.includes(e)}const u_=Nu;funct
|
|
|
1112
1116
|
}
|
|
1113
1117
|
|
|
1114
1118
|
&[data-swipe='end'] {
|
|
1115
|
-
animation: ${
|
|
1119
|
+
animation: ${j_} 100ms ease-out;
|
|
1116
1120
|
}
|
|
1117
|
-
`;function
|
|
1121
|
+
`;function Y_({children:e,...t}){return k(A_,{...t,children:e})}function X_({title:e,children:t,sentiment:r,onDismiss:n,...o}){const i=U_[r],a=K_[r],s=H_[r];return le(q_,{style:{"--color-background-notification":i,"--color-notification":a},...o,children:[r==="negative"?k($e.Warning,{height:18}):null,k(W_,{children:e}),k(qu,{style:{"--color-separator":s}}),t,k(Gu,{onClick:n,children:k(qt,{label:"Dismiss notification",children:k($e.Close,{width:18,height:18})})})]})}const Yu=I.div`
|
|
1118
1122
|
display: grid;
|
|
1119
1123
|
grid-template-columns: 1fr 1fr repeat(8, minmax(0, 150px)) 1fr 1fr;
|
|
1120
1124
|
column-gap: ${u.sizing_600};
|
|
1121
|
-
|
|
1125
|
+
background-color: white; /* until app styles are sorted app */
|
|
1126
|
+
`,Xu=I.div`
|
|
1122
1127
|
grid-column: 3 / 11;
|
|
1123
1128
|
padding-top: ${u.sizing_450};
|
|
1124
|
-
`;function
|
|
1129
|
+
`;function J_({children:e}){return k(Yu,{children:k(Xu,{children:e})})}const Ju=I(Po)`
|
|
1125
1130
|
display: grid;
|
|
1126
1131
|
place-content: center;
|
|
1127
1132
|
border-radius: ${u.border_radius_400};
|
|
@@ -1137,15 +1142,15 @@ Defaulting to \`${Vo}\`.`}function Mu(e){return l_.includes(e)}const u_=Nu;funct
|
|
|
1137
1142
|
line-height: 0;
|
|
1138
1143
|
font-size: ${u.font_size_200};
|
|
1139
1144
|
}
|
|
1140
|
-
`,sn=l.forwardRef((e,t)=>{const{direction:r,label:n=r==="left"?"Previous":"Next",...o}=e,i=r==="left"?k($e.NavigateBefore,{}):k($e.NavigateNext,{});return k(
|
|
1145
|
+
`,sn=l.forwardRef((e,t)=>{const{direction:r,label:n=r==="left"?"Previous":"Next",...o}=e,i=r==="left"?k($e.NavigateBefore,{}):k($e.NavigateNext,{});return k(Ju,{variant:"inverse",emphasis:"high",ref:t,...o,children:k(qt,{label:n,children:i})})});sn.displayName="PaginatorButton";const Z_=I(Ju)`
|
|
1141
1146
|
&[aria-current='true'] {
|
|
1142
1147
|
background-color: ${u.color_overlay_secondary_selected_enabled};
|
|
1143
1148
|
}
|
|
1144
|
-
`,ln=l.forwardRef((e,t)=>{const{children:r,...n}=e;return k(
|
|
1149
|
+
`,ln=l.forwardRef((e,t)=>{const{children:r,...n}=e;return k(Z_,{variant:"inverse",emphasis:"high",ref:t,...n,children:r})});ln.displayName="PaginatorNumber";const Q_=I.nav`
|
|
1145
1150
|
display: flex;
|
|
1146
1151
|
gap: 4px;
|
|
1147
1152
|
width: min-content;
|
|
1148
|
-
`;function
|
|
1153
|
+
`;function ey({nrOfPages:e,currentPage:t,onPrevious:r,onClick:n,onNext:o,className:i,ariaLabel:a="Pagination Navigation"}){const s=Array.from({length:e},(h,g)=>g),c=6;let d=s;const f=c-1;if(e>5){const h=e-1;t>e-f?d=[0,-1,...s.slice(-f)]:t+1<f?d=[...s.slice(0,f),-1,h]:d=[0,-1,...d.slice(t-1,t),t,...d.slice(t+1,t+2),-1,h]}const p=t===0,b=t===e-1;return le(Q_,{"aria-label":a,className:i,children:[k(sn,{direction:"left",label:"Previous",disabled:p,onClick:p?void 0:r}),d.map((h,g)=>h>-1?k(ln,{"aria-current":h===t,"aria-label":`Page ${h+1}`,onClick:()=>n(h),children:h+1},h):k(ln,{as:"span",children:"..."},`${h}-${g}`)),k(sn,{direction:"right",label:"Next",title:"next",disabled:b,onClick:b?void 0:o})]})}const ty=l.createContext(void 0);function Go(e){const t=l.useContext(ty);return e||t||"ltr"}const qo="rovingFocusGroup.onEntryFocus",ry={bubbles:!1,cancelable:!0},Yo="RovingFocusGroup",[Xo,Zu,ny]=jo(Yo),[oy,Qu]=Pe(Yo,[ny]),[iy,ay]=oy(Yo),sy=l.forwardRef((e,t)=>l.createElement(Xo.Provider,{scope:e.__scopeRovingFocusGroup},l.createElement(Xo.Slot,{scope:e.__scopeRovingFocusGroup},l.createElement(ly,C({},e,{ref:t}))))),ly=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:d,...f}=e,p=l.useRef(null),b=se(t,p),h=Go(i),[g=null,m]=Ne({prop:a,defaultProp:s,onChange:c}),[_,$]=l.useState(!1),y=Se(d),E=Zu(r),v=l.useRef(!1),[A,L]=l.useState(0);return l.useEffect(()=>{const T=p.current;if(T)return T.addEventListener(qo,y),()=>T.removeEventListener(qo,y)},[y]),l.createElement(iy,{scope:r,orientation:n,dir:h,loop:o,currentTabStopId:g,onItemFocus:l.useCallback(T=>m(T),[m]),onItemShiftTab:l.useCallback(()=>$(!0),[]),onFocusableItemAdd:l.useCallback(()=>L(T=>T+1),[]),onFocusableItemRemove:l.useCallback(()=>L(T=>T-1),[])},l.createElement(te.div,C({tabIndex:_||A===0?-1:0,"data-orientation":n},f,{ref:b,style:{outline:"none",...e.style},onMouseDown:H(e.onMouseDown,()=>{v.current=!0}),onFocus:H(e.onFocus,T=>{const M=!v.current;if(T.target===T.currentTarget&&M&&!_){const F=new CustomEvent(qo,ry);if(T.currentTarget.dispatchEvent(F),!F.defaultPrevented){const G=E().filter(ee=>ee.focusable),S=G.find(ee=>ee.active),q=G.find(ee=>ee.id===g),P=[S,q,...G].filter(Boolean).map(ee=>ee.ref.current);ed(P)}}v.current=!1}),onBlur:H(e.onBlur,()=>$(!1))})))}),cy="RovingFocusGroupItem",uy=l.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,...i}=e,a=Ue(),s=ay(cy,r),c=s.currentTabStopId===a,d=Zu(r),{onFocusableItemAdd:f,onFocusableItemRemove:p}=s;return l.useEffect(()=>{if(n)return f(),()=>p()},[n,f,p]),l.createElement(Xo.ItemSlot,{scope:r,id:a,focusable:n,active:o},l.createElement(te.span,C({tabIndex:c?0:-1,"data-orientation":s.orientation},i,{ref:t,onMouseDown:H(e.onMouseDown,b=>{n?s.onItemFocus(a):b.preventDefault()}),onFocus:H(e.onFocus,()=>s.onItemFocus(a)),onKeyDown:H(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){s.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const h=py(b,s.orientation,s.dir);if(h!==void 0){b.preventDefault();let m=d().filter(_=>_.focusable).map(_=>_.ref.current);if(h==="last")m.reverse();else if(h==="prev"||h==="next"){h==="prev"&&m.reverse();const _=m.indexOf(b.currentTarget);m=s.loop?hy(m,_+1):m.slice(_+1)}setTimeout(()=>ed(m))}})})))}),dy={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function fy(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function py(e,t,r){const n=fy(e.key,r);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return dy[n]}function ed(e){const t=document.activeElement;for(const r of e)if(r===t||(r.focus(),document.activeElement!==t))return}function hy(e,t){return e.map((r,n)=>e[(t+n)%e.length])}const my=sy,by=uy,td="Radio",[gy,rd]=Pe(td),[vy,_y]=gy(td),yy=l.forwardRef((e,t)=>{const{__scopeRadio:r,name:n,checked:o=!1,required:i,disabled:a,value:s="on",onCheck:c,...d}=e,[f,p]=l.useState(null),b=se(t,m=>p(m)),h=l.useRef(!1),g=f?Boolean(f.closest("form")):!0;return l.createElement(vy,{scope:r,checked:o,disabled:a},l.createElement(te.button,C({type:"button",role:"radio","aria-checked":o,"data-state":nd(o),"data-disabled":a?"":void 0,disabled:a,value:s},d,{ref:b,onClick:H(e.onClick,m=>{o||c==null||c(),g&&(h.current=m.isPropagationStopped(),h.current||m.stopPropagation())})})),g&&l.createElement(wy,{control:f,bubbles:!h.current,name:n,value:s,checked:o,required:i,disabled:a,style:{transform:"translateX(-100%)"}}))}),$y="RadioIndicator",xy=l.forwardRef((e,t)=>{const{__scopeRadio:r,forceMount:n,...o}=e,i=_y($y,r);return l.createElement(ke,{present:n||i.checked},l.createElement(te.span,C({"data-state":nd(i.checked),"data-disabled":i.disabled?"":void 0},o,{ref:t})))}),wy=e=>{const{control:t,checked:r,bubbles:n=!0,...o}=e,i=l.useRef(null),a=qr(r),s=Lr(t);return l.useEffect(()=>{const c=i.current,d=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(d,"checked").set;if(a!==r&&p){const b=new Event("click",{bubbles:n});p.call(c,r),c.dispatchEvent(b)}},[a,r,n]),l.createElement("input",C({type:"radio","aria-hidden":!0,defaultChecked:r},o,{tabIndex:-1,ref:i,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function nd(e){return e?"checked":"unchecked"}const Ey=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],od="RadioGroup",[Py,IE]=Pe(od,[Qu,rd]),id=Qu(),ad=rd(),[Sy,Cy]=Py(od),Ty=l.forwardRef((e,t)=>{const{__scopeRadioGroup:r,name:n,defaultValue:o,value:i,required:a=!1,disabled:s=!1,orientation:c,dir:d,loop:f=!0,onValueChange:p,...b}=e,h=id(r),g=Go(d),[m,_]=Ne({prop:i,defaultProp:o,onChange:p});return l.createElement(Sy,{scope:r,name:n,required:a,disabled:s,value:m,onValueChange:_},l.createElement(my,C({asChild:!0},h,{orientation:c,dir:g,loop:f}),l.createElement(te.div,C({role:"radiogroup","aria-required":a,"aria-orientation":c,"data-disabled":s?"":void 0,dir:g},b,{ref:t}))))}),Oy="RadioGroupItem",ky=l.forwardRef((e,t)=>{const{__scopeRadioGroup:r,disabled:n,...o}=e,i=Cy(Oy,r),a=i.disabled||n,s=id(r),c=ad(r),d=l.useRef(null),f=se(t,d),p=i.value===o.value,b=l.useRef(!1);return l.useEffect(()=>{const h=m=>{Ey.includes(m.key)&&(b.current=!0)},g=()=>b.current=!1;return document.addEventListener("keydown",h),document.addEventListener("keyup",g),()=>{document.removeEventListener("keydown",h),document.removeEventListener("keyup",g)}},[]),l.createElement(by,C({asChild:!0},s,{focusable:!a,active:p}),l.createElement(yy,C({disabled:a,required:i.required,checked:p},c,o,{name:i.name,ref:f,onCheck:()=>i.onValueChange(o.value),onKeyDown:H(h=>{h.key==="Enter"&&h.preventDefault()}),onFocus:H(o.onFocus,()=>{var h;b.current&&((h=d.current)===null||h===void 0||h.click())})})))}),Dy=l.forwardRef((e,t)=>{const{__scopeRadioGroup:r,...n}=e,o=ad(r);return l.createElement(xy,C({},o,n,{ref:t}))}),Iy=Ty,Ay=ky,Ny=Dy,sd=I(Ay)`
|
|
1149
1154
|
all: unset;
|
|
1150
1155
|
--radio-width: ${u.sizing_600};
|
|
1151
1156
|
--inner-circle-color: ${u.color_white};
|
|
@@ -1204,7 +1209,7 @@ Defaulting to \`${Vo}\`.`}function Mu(e){return l_.includes(e)}const u_=Nu;funct
|
|
|
1204
1209
|
cursor: not-allowed;
|
|
1205
1210
|
color: ${u.color_fill_primary_disabled};
|
|
1206
1211
|
}
|
|
1207
|
-
`,
|
|
1212
|
+
`,ld=I(Ny)`
|
|
1208
1213
|
display: grid;
|
|
1209
1214
|
place-items: center;
|
|
1210
1215
|
width: 100%;
|
|
@@ -1235,7 +1240,7 @@ Defaulting to \`${Vo}\`.`}function Mu(e){return l_.includes(e)}const u_=Nu;funct
|
|
|
1235
1240
|
border-radius: ${u.border_radius_circle};
|
|
1236
1241
|
background-color: var(--inner-circle-color);
|
|
1237
1242
|
}
|
|
1238
|
-
`;function Ny({children:e,disabled:t,loop:r,onValueChange:n,...o}){const i=tt(),a=t??i,s=tn();return k(Dy,{loop:r,onValueChange:n,...o,disabled:a,...s,children:e})}function My({disabled:e,...t}){const r=tt(),n=e??r,o=tn();return k(ad,{...t,...o,disabled:n,children:k(sd,{})})}function ld(e,[t,r]){return Math.min(r,Math.max(t,e))}const Ly=[" ","Enter","ArrowUp","ArrowDown"],Fy=[" ","Enter"],cn="Select",[un,Jo,Ry]=jo(cn),[or,IE]=Pe(cn,[Ry]),[zy,Lt]=or(cn),[Vy,jy]=or(cn),By=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:o,onOpenChange:i,value:a,defaultValue:s,onValueChange:c,dir:d,name:f,autoComplete:p,disabled:b,required:h}=e,[g,m]=l.useState(null),[_,$]=l.useState(null),[y,E]=l.useState(!1),v=Go(d),[A=!1,L]=Ne({prop:n,defaultProp:o,onChange:i}),[T,M]=Ne({prop:a,defaultProp:s,onChange:c}),F=l.useRef(null),G=g?Boolean(g.closest("form")):!0,[S,q]=l.useState(new Set),D=Array.from(S).map(P=>P.props.value).join(";");return l.createElement(zy,{required:h,scope:t,trigger:g,onTriggerChange:m,valueNode:_,onValueNodeChange:$,valueNodeHasChildren:y,onValueNodeHasChildrenChange:E,contentId:Ue(),value:T,onValueChange:M,open:A,onOpenChange:L,dir:v,triggerPointerDownPosRef:F,disabled:b},l.createElement(un.Provider,{scope:t},l.createElement(Vy,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback(P=>{q(ee=>new Set(ee).add(P))},[]),onNativeOptionRemove:l.useCallback(P=>{q(ee=>{const Q=new Set(ee);return Q.delete(P),Q})},[])},r)),G?l.createElement(fd,{key:D,"aria-hidden":!0,required:h,tabIndex:-1,name:f,autoComplete:p,value:T,onChange:P=>M(P.target.value),disabled:b},T===void 0?l.createElement("option",{value:""}):null,Array.from(S)):null)},Wy="SelectTrigger",Uy=l.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...o}=e,i=Lt(Wy,r),a=i.disabled||n,s=se(t,i.onTriggerChange),c=Jo(r),[d,f,p]=pd(h=>{const g=c().filter($=>!$.disabled),m=g.find($=>$.value===i.value),_=hd(g,h,m);_!==void 0&&i.onValueChange(_.value)}),b=()=>{a||(i.onOpenChange(!0),p())};return l.createElement(te.button,C({type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":i.value===void 0?"":void 0},o,{ref:s,onClick:H(o.onClick,h=>{h.currentTarget.focus()}),onPointerDown:H(o.onPointerDown,h=>{const g=h.target;g.hasPointerCapture(h.pointerId)&&g.releasePointerCapture(h.pointerId),h.button===0&&h.ctrlKey===!1&&(b(),i.triggerPointerDownPosRef.current={x:Math.round(h.pageX),y:Math.round(h.pageY)},h.preventDefault())}),onKeyDown:H(o.onKeyDown,h=>{const g=d.current!=="";!(h.ctrlKey||h.altKey||h.metaKey)&&h.key.length===1&&f(h.key),!(g&&h.key===" ")&&Ly.includes(h.key)&&(b(),h.preventDefault())})}))}),Ky="SelectValue",Hy=l.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,children:i,placeholder:a,...s}=e,c=Lt(Ky,r),{onValueNodeHasChildrenChange:d}=c,f=i!==void 0,p=se(t,c.onValueNodeChange);return ye(()=>{d(f)},[d,f]),l.createElement(te.span,C({},s,{ref:p,style:{pointerEvents:"none"}}),c.value===void 0&&a!==void 0?a:i)}),Gy=l.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...o}=e;return l.createElement(te.span,C({"aria-hidden":!0},o,{ref:t}),n||"▼")}),qy=e=>l.createElement(Gt,C({asChild:!0},e)),Zo="SelectContent",Yy=l.forwardRef((e,t)=>{const r=Lt(Zo,e.__scopeSelect),[n,o]=l.useState();return ye(()=>{o(new DocumentFragment)},[]),l.createElement(l.Fragment,null,r.open?l.createElement(Xy,C({},e,{ref:t})):n?ut.createPortal(l.createElement(cd,{scope:e.__scopeSelect},l.createElement(un.Slot,{scope:e.__scopeSelect},l.createElement("div",null,e.children))),n):null)}),rt=10,[cd,Ft]=or(Zo),Xy=l.forwardRef((e,t)=>{const{__scopeSelect:r,onCloseAutoFocus:n,...o}=e,i=Lt(Zo,r),[a,s]=l.useState(null),[c,d]=l.useState(null),[f,p]=l.useState(null),b=se(t,w=>d(w)),[h,g]=l.useState(null),[m,_]=l.useState(null),$=Jo(r),[y,E]=l.useState(!1),v=l.useRef(!0),A=l.useRef(!1),L=l.useRef(!1);l.useEffect(()=>{if(c)return Rn(c)},[c]),In();const[T,M]=l.useState();ye(()=>{c&&M(window.getComputedStyle(c).zIndex)},[c]);const F=l.useCallback(w=>{const[N,...B]=$().map(K=>K.ref.current),[j]=B.slice(-1),V=document.activeElement;for(const K of w)if(K===V||(K==null||K.scrollIntoView({block:"nearest"}),K===N&&f&&(f.scrollTop=0),K===j&&f&&(f.scrollTop=f.scrollHeight),K==null||K.focus(),document.activeElement!==V))return},[$,f]),G=l.useCallback(()=>{if(i.trigger&&i.valueNode&&a&&c&&f&&h&&m){const w=i.trigger.getBoundingClientRect(),N=c.getBoundingClientRect(),B=i.valueNode.getBoundingClientRect(),j=m.getBoundingClientRect();if(i.dir!=="rtl"){const Je=j.left-N.left,je=B.left-Je,Be=w.left-je,Ze=w.width+Be,mr=Math.max(Ze,N.width),br=window.innerWidth-rt,gr=ld(je,[rt,br-mr]);a.style.minWidth=Ze+"px",a.style.left=gr+"px"}else{const Je=N.right-j.right,je=window.innerWidth-B.right-Je,Be=window.innerWidth-w.right-je,Ze=w.width+Be,mr=Math.max(Ze,N.width),br=window.innerWidth-rt,gr=ld(je,[rt,br-mr]);a.style.minWidth=Ze+"px",a.style.right=gr+"px"}const V=$(),K=window.innerHeight-rt*2,Y=f.scrollHeight,X=window.getComputedStyle(c),Z=parseInt(X.borderTopWidth,10),oe=parseInt(X.paddingTop,10),ne=parseInt(X.borderBottomWidth,10),ge=parseInt(X.paddingBottom,10),be=Z+oe+Y+ge+ne,we=Math.min(h.offsetHeight*5,be),ze=window.getComputedStyle(f),Oe=parseInt(ze.paddingTop,10),Ve=parseInt(ze.paddingBottom,10),ve=w.top+w.height/2-rt,_e=K-ve,Ie=h.offsetHeight/2,Ae=h.offsetTop+Ie,lt=Z+oe+Ae,Ut=be-lt;if(lt<=ve){const Je=h===V[V.length-1].ref.current;a.style.bottom="0px";const je=c.clientHeight-f.offsetTop-f.offsetHeight,Be=Math.max(_e,Ie+(Je?Ve:0)+je+ne),Ze=lt+Be;a.style.height=Ze+"px"}else{const Je=h===V[0].ref.current;a.style.top="0px";const Be=Math.max(ve,Z+f.offsetTop+(Je?Oe:0)+Ie)+Ut;a.style.height=Be+"px",f.scrollTop=lt-ve+f.offsetTop}a.style.margin=`${rt}px 0`,a.style.minHeight=we+"px",a.style.maxHeight=K+"px",E(!0),requestAnimationFrame(()=>A.current=!0)}},[$,i.trigger,i.valueNode,a,c,f,h,m,i.dir]);ye(()=>G(),[G]);const S=l.useCallback(()=>F([h,c]),[F,h,c]);l.useEffect(()=>{y&&S()},[y,S]);const q=l.useCallback(w=>{w&&v.current===!0&&(G(),S(),v.current=!1)},[G,S]),{onOpenChange:D,triggerPointerDownPosRef:P}=i;l.useEffect(()=>{if(c){let w={x:0,y:0};const N=j=>{var V,K,Y,X;w={x:Math.abs(Math.round(j.pageX)-((V=(K=P.current)===null||K===void 0?void 0:K.x)!==null&&V!==void 0?V:0)),y:Math.abs(Math.round(j.pageY)-((Y=(X=P.current)===null||X===void 0?void 0:X.y)!==null&&Y!==void 0?Y:0))}},B=j=>{w.x<=10&&w.y<=10?j.preventDefault():c.contains(j.target)||D(!1),document.removeEventListener("pointermove",N),P.current=null};return P.current!==null&&(document.addEventListener("pointermove",N),document.addEventListener("pointerup",B,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",N),document.removeEventListener("pointerup",B,{capture:!0})}}},[c,D,P]),l.useEffect(()=>{const w=()=>D(!1);return window.addEventListener("blur",w),window.addEventListener("resize",w),()=>{window.removeEventListener("blur",w),window.removeEventListener("resize",w)}},[D]);const[ee,Q]=pd(w=>{const N=$().filter(V=>!V.disabled),B=N.find(V=>V.ref.current===document.activeElement),j=hd(N,w,B);j&&setTimeout(()=>j.ref.current.focus())}),de=l.useCallback((w,N,B)=>{const j=!L.current&&!B;(i.value!==void 0&&i.value===N||j)&&(g(w),j&&(L.current=!0))},[i.value]),fe=l.useCallback(()=>c==null?void 0:c.focus(),[c]),J=l.useCallback((w,N,B)=>{const j=!L.current&&!B;(i.value!==void 0&&i.value===N||j)&&_(w)},[i.value]);return l.createElement(cd,{scope:r,contentWrapper:a,content:c,viewport:f,onViewportChange:p,itemRefCallback:de,selectedItem:h,onItemLeave:fe,itemTextRefCallback:J,selectedItemText:m,onScrollButtonChange:q,isPositioned:y,shouldExpandOnScrollRef:A,searchRef:ee},l.createElement(Ln,{as:dt,allowPinchZoom:!0},l.createElement("div",{ref:s,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:T}},l.createElement(kn,{asChild:!0,trapped:i.open,onMountAutoFocus:w=>{w.preventDefault()},onUnmountAutoFocus:H(n,w=>{var N;(N=i.trigger)===null||N===void 0||N.focus({preventScroll:!0}),w.preventDefault()})},l.createElement(Ht,C({role:"listbox",id:i.contentId,"data-state":i.open?"open":"closed",dir:i.dir,onContextMenu:w=>w.preventDefault()},o,{ref:b,style:{display:"flex",flexDirection:"column",boxSizing:"border-box",maxHeight:"100%",outline:"none",...o.style},disableOutsidePointerEvents:!0,onFocusOutside:w=>w.preventDefault(),onDismiss:()=>i.onOpenChange(!1),onKeyDown:H(o.onKeyDown,w=>{const N=w.ctrlKey||w.altKey||w.metaKey;if(w.key==="Tab"&&w.preventDefault(),!N&&w.key.length===1&&Q(w.key),["ArrowUp","ArrowDown","Home","End"].includes(w.key)){let j=$().filter(V=>!V.disabled).map(V=>V.ref.current);if(["ArrowUp","End"].includes(w.key)&&(j=j.slice().reverse()),["ArrowUp","ArrowDown"].includes(w.key)){const V=w.target,K=j.indexOf(V);j=j.slice(K+1)}setTimeout(()=>F(j)),w.preventDefault()}})}))))))}),Jy="SelectViewport",Zy=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Ft(Jy,r),i=se(t,o.onViewportChange),a=l.useRef(0);return l.createElement(l.Fragment,null,l.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),l.createElement(un.Slot,{scope:r},l.createElement(te.div,C({"data-radix-select-viewport":"",role:"presentation"},n,{ref:i,style:{position:"relative",flex:1,overflow:"auto",...n.style},onScroll:H(n.onScroll,s=>{const c=s.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:f}=o;if(f!=null&&f.current&&d){const p=Math.abs(a.current-c.scrollTop);if(p>0){const b=window.innerHeight-rt*2,h=parseFloat(d.style.minHeight),g=parseFloat(d.style.height),m=Math.max(h,g);if(m<b){const _=m+p,$=Math.min(b,_),y=_-$;d.style.height=$+"px",d.style.bottom==="0px"&&(c.scrollTop=y>0?y:0,d.style.justifyContent="flex-end")}}}a.current=c.scrollTop})}))))}),Qy="SelectGroup",[e$,t$]=or(Qy),r$=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Ue();return l.createElement(e$,{scope:r,id:o},l.createElement(te.div,C({role:"group","aria-labelledby":o},n,{ref:t})))}),n$="SelectLabel",o$=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=t$(n$,r);return l.createElement(te.div,C({id:o.id},n,{ref:t}))}),Qo="SelectItem",[i$,ud]=or(Qo),a$=l.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:o=!1,textValue:i,...a}=e,s=Lt(Qo,r),c=Ft(Qo,r),d=s.value===n,[f,p]=l.useState(i??""),[b,h]=l.useState(!1),g=se(t,$=>{var y;return(y=c.itemRefCallback)===null||y===void 0?void 0:y.call(c,$,n,o)}),m=Ue(),_=()=>{o||(s.onValueChange(n),s.onOpenChange(!1))};return l.createElement(i$,{scope:r,value:n,disabled:o,textId:m,isSelected:d,onItemTextChange:l.useCallback($=>{p(y=>{var E;return y||((E=$==null?void 0:$.textContent)!==null&&E!==void 0?E:"").trim()})},[])},l.createElement(un.ItemSlot,{scope:r,value:n,disabled:o,textValue:f},l.createElement(te.div,C({role:"option","aria-labelledby":m,"data-highlighted":b?"":void 0,"aria-selected":d&&b,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1},a,{ref:g,onFocus:H(a.onFocus,()=>h(!0)),onBlur:H(a.onBlur,()=>h(!1)),onPointerUp:H(a.onPointerUp,_),onPointerMove:H(a.onPointerMove,$=>{if(o){var y;(y=c.onItemLeave)===null||y===void 0||y.call(c)}else $.currentTarget.focus({preventScroll:!0})}),onPointerLeave:H(a.onPointerLeave,$=>{if($.currentTarget===document.activeElement){var y;(y=c.onItemLeave)===null||y===void 0||y.call(c)}}),onKeyDown:H(a.onKeyDown,$=>{var y;((y=c.searchRef)===null||y===void 0?void 0:y.current)!==""&&$.key===" "||(Fy.includes($.key)&&_(),$.key===" "&&$.preventDefault())})}))))}),dn="SelectItemText",s$=l.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,...i}=e,a=Lt(dn,r),s=Ft(dn,r),c=ud(dn,r),d=jy(dn,r),[f,p]=l.useState(null),b=se(t,$=>p($),c.onItemTextChange,$=>{var y;return(y=s.itemTextRefCallback)===null||y===void 0?void 0:y.call(s,$,c.value,c.disabled)}),h=f==null?void 0:f.textContent,g=l.useMemo(()=>l.createElement("option",{key:c.value,value:c.value,disabled:c.disabled},h),[c.disabled,c.value,h]),{onNativeOptionAdd:m,onNativeOptionRemove:_}=d;return ye(()=>(m(g),()=>_(g)),[m,_,g]),l.createElement(l.Fragment,null,l.createElement(te.span,C({id:c.textId},i,{ref:b})),c.isSelected&&a.valueNode&&!a.valueNodeHasChildren?ut.createPortal(i.children,a.valueNode):null)}),l$="SelectItemIndicator",c$=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return ud(l$,r).isSelected?l.createElement(te.span,C({"aria-hidden":!0},n,{ref:t})):null}),u$="SelectScrollUpButton",d$=l.forwardRef((e,t)=>{const r=Ft(u$,e.__scopeSelect),[n,o]=l.useState(!1),i=se(t,r.onScrollButtonChange);return ye(()=>{if(r.viewport&&r.isPositioned){let s=function(){const c=a.scrollTop>0;o(c)};const a=r.viewport;return s(),a.addEventListener("scroll",s),()=>a.removeEventListener("scroll",s)}},[r.viewport,r.isPositioned]),n?l.createElement(dd,C({},e,{ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:s}=r;a&&s&&(a.scrollTop=a.scrollTop-s.offsetHeight)}})):null}),f$="SelectScrollDownButton",p$=l.forwardRef((e,t)=>{const r=Ft(f$,e.__scopeSelect),[n,o]=l.useState(!1),i=se(t,r.onScrollButtonChange);return ye(()=>{if(r.viewport&&r.isPositioned){let s=function(){const c=a.scrollHeight-a.clientHeight,d=Math.ceil(a.scrollTop)<c;o(d)};const a=r.viewport;return s(),a.addEventListener("scroll",s),()=>a.removeEventListener("scroll",s)}},[r.viewport,r.isPositioned]),n?l.createElement(dd,C({},e,{ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:s}=r;a&&s&&(a.scrollTop=a.scrollTop+s.offsetHeight)}})):null}),dd=l.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=e,i=Ft("SelectScrollButton",r),a=l.useRef(null),s=Jo(r),c=l.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return l.useEffect(()=>()=>c(),[c]),ye(()=>{var d;const f=s().find(p=>p.ref.current===document.activeElement);f==null||(d=f.ref.current)===null||d===void 0||d.scrollIntoView({block:"nearest"})},[s]),l.createElement(te.div,C({"aria-hidden":!0},o,{ref:t,style:{flexShrink:0,...o.style},onPointerMove:H(o.onPointerMove,()=>{var d;(d=i.onItemLeave)===null||d===void 0||d.call(i),a.current===null&&(a.current=window.setInterval(n,50))}),onPointerLeave:H(o.onPointerLeave,()=>{c()})}))}),h$=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return l.createElement(te.div,C({"aria-hidden":!0},n,{ref:t}))}),fd=l.forwardRef((e,t)=>{const{value:r,...n}=e,o=l.useRef(null),i=se(t,o),a=qr(r);return l.useEffect(()=>{const s=o.current,c=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(c,"value").set;if(a!==r&&f){const p=new Event("change",{bubbles:!0});f.call(s,r),s.dispatchEvent(p)}},[a,r]),l.createElement(Cr,{asChild:!0},l.createElement("select",C({},n,{ref:i,defaultValue:r})))});fd.displayName="BubbleSelect";function pd(e){const t=Se(e),r=l.useRef(""),n=l.useRef(0),o=l.useCallback(a=>{const s=r.current+a;t(s),function c(d){r.current=d,window.clearTimeout(n.current),d!==""&&(n.current=window.setTimeout(()=>c(""),1e3))}(s)},[t]),i=l.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,o,i]}function hd(e,t,r){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,i=r?e.indexOf(r):-1;let a=m$(e,Math.max(i,0));o.length===1&&(a=a.filter(d=>d!==r));const c=a.find(d=>d.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==r?c:void 0}function m$(e,t){return e.map((r,n)=>e[(t+n)%e.length])}const b$=By,g$=Hy,v$=qy,_$=Yy,y$=Zy,$$=r$,x$=o$,w$=a$,E$=s$,P$=c$,S$=d$,C$=p$,T$=h$,md=I(Uy)`
|
|
1243
|
+
`;function My({children:e,disabled:t,loop:r,onValueChange:n,...o}){const i=tt(),a=t??i,s=tn();return k(Iy,{loop:r,onValueChange:n,...o,disabled:a,...s,children:e})}function Ly({disabled:e,...t}){const r=tt(),n=e??r,o=tn();return k(sd,{...t,...o,disabled:n,children:k(ld,{})})}function cd(e,[t,r]){return Math.min(r,Math.max(t,e))}const Fy=[" ","Enter","ArrowUp","ArrowDown"],Ry=[" ","Enter"],cn="Select",[un,Jo,zy]=jo(cn),[or,AE]=Pe(cn,[zy]),[Vy,Lt]=or(cn),[jy,By]=or(cn),Wy=e=>{const{__scopeSelect:t,children:r,open:n,defaultOpen:o,onOpenChange:i,value:a,defaultValue:s,onValueChange:c,dir:d,name:f,autoComplete:p,disabled:b,required:h}=e,[g,m]=l.useState(null),[_,$]=l.useState(null),[y,E]=l.useState(!1),v=Go(d),[A=!1,L]=Ne({prop:n,defaultProp:o,onChange:i}),[T,M]=Ne({prop:a,defaultProp:s,onChange:c}),F=l.useRef(null),G=g?Boolean(g.closest("form")):!0,[S,q]=l.useState(new Set),D=Array.from(S).map(P=>P.props.value).join(";");return l.createElement(Vy,{required:h,scope:t,trigger:g,onTriggerChange:m,valueNode:_,onValueNodeChange:$,valueNodeHasChildren:y,onValueNodeHasChildrenChange:E,contentId:Ue(),value:T,onValueChange:M,open:A,onOpenChange:L,dir:v,triggerPointerDownPosRef:F,disabled:b},l.createElement(un.Provider,{scope:t},l.createElement(jy,{scope:e.__scopeSelect,onNativeOptionAdd:l.useCallback(P=>{q(ee=>new Set(ee).add(P))},[]),onNativeOptionRemove:l.useCallback(P=>{q(ee=>{const Q=new Set(ee);return Q.delete(P),Q})},[])},r)),G?l.createElement(pd,{key:D,"aria-hidden":!0,required:h,tabIndex:-1,name:f,autoComplete:p,value:T,onChange:P=>M(P.target.value),disabled:b},T===void 0?l.createElement("option",{value:""}):null,Array.from(S)):null)},Uy="SelectTrigger",Ky=l.forwardRef((e,t)=>{const{__scopeSelect:r,disabled:n=!1,...o}=e,i=Lt(Uy,r),a=i.disabled||n,s=se(t,i.onTriggerChange),c=Jo(r),[d,f,p]=hd(h=>{const g=c().filter($=>!$.disabled),m=g.find($=>$.value===i.value),_=md(g,h,m);_!==void 0&&i.onValueChange(_.value)}),b=()=>{a||(i.onOpenChange(!0),p())};return l.createElement(te.button,C({type:"button",role:"combobox","aria-controls":i.contentId,"aria-expanded":i.open,"aria-required":i.required,"aria-autocomplete":"none",dir:i.dir,"data-state":i.open?"open":"closed",disabled:a,"data-disabled":a?"":void 0,"data-placeholder":i.value===void 0?"":void 0},o,{ref:s,onClick:H(o.onClick,h=>{h.currentTarget.focus()}),onPointerDown:H(o.onPointerDown,h=>{const g=h.target;g.hasPointerCapture(h.pointerId)&&g.releasePointerCapture(h.pointerId),h.button===0&&h.ctrlKey===!1&&(b(),i.triggerPointerDownPosRef.current={x:Math.round(h.pageX),y:Math.round(h.pageY)},h.preventDefault())}),onKeyDown:H(o.onKeyDown,h=>{const g=d.current!=="";!(h.ctrlKey||h.altKey||h.metaKey)&&h.key.length===1&&f(h.key),!(g&&h.key===" ")&&Fy.includes(h.key)&&(b(),h.preventDefault())})}))}),Hy="SelectValue",Gy=l.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,children:i,placeholder:a,...s}=e,c=Lt(Hy,r),{onValueNodeHasChildrenChange:d}=c,f=i!==void 0,p=se(t,c.onValueNodeChange);return ye(()=>{d(f)},[d,f]),l.createElement(te.span,C({},s,{ref:p,style:{pointerEvents:"none"}}),c.value===void 0&&a!==void 0?a:i)}),qy=l.forwardRef((e,t)=>{const{__scopeSelect:r,children:n,...o}=e;return l.createElement(te.span,C({"aria-hidden":!0},o,{ref:t}),n||"▼")}),Yy=e=>l.createElement(Gt,C({asChild:!0},e)),Zo="SelectContent",Xy=l.forwardRef((e,t)=>{const r=Lt(Zo,e.__scopeSelect),[n,o]=l.useState();return ye(()=>{o(new DocumentFragment)},[]),l.createElement(l.Fragment,null,r.open?l.createElement(Jy,C({},e,{ref:t})):n?ut.createPortal(l.createElement(ud,{scope:e.__scopeSelect},l.createElement(un.Slot,{scope:e.__scopeSelect},l.createElement("div",null,e.children))),n):null)}),rt=10,[ud,Ft]=or(Zo),Jy=l.forwardRef((e,t)=>{const{__scopeSelect:r,onCloseAutoFocus:n,...o}=e,i=Lt(Zo,r),[a,s]=l.useState(null),[c,d]=l.useState(null),[f,p]=l.useState(null),b=se(t,w=>d(w)),[h,g]=l.useState(null),[m,_]=l.useState(null),$=Jo(r),[y,E]=l.useState(!1),v=l.useRef(!0),A=l.useRef(!1),L=l.useRef(!1);l.useEffect(()=>{if(c)return Rn(c)},[c]),In();const[T,M]=l.useState();ye(()=>{c&&M(window.getComputedStyle(c).zIndex)},[c]);const F=l.useCallback(w=>{const[N,...B]=$().map(K=>K.ref.current),[j]=B.slice(-1),V=document.activeElement;for(const K of w)if(K===V||(K==null||K.scrollIntoView({block:"nearest"}),K===N&&f&&(f.scrollTop=0),K===j&&f&&(f.scrollTop=f.scrollHeight),K==null||K.focus(),document.activeElement!==V))return},[$,f]),G=l.useCallback(()=>{if(i.trigger&&i.valueNode&&a&&c&&f&&h&&m){const w=i.trigger.getBoundingClientRect(),N=c.getBoundingClientRect(),B=i.valueNode.getBoundingClientRect(),j=m.getBoundingClientRect();if(i.dir!=="rtl"){const Je=j.left-N.left,je=B.left-Je,Be=w.left-je,Ze=w.width+Be,mr=Math.max(Ze,N.width),br=window.innerWidth-rt,gr=cd(je,[rt,br-mr]);a.style.minWidth=Ze+"px",a.style.left=gr+"px"}else{const Je=N.right-j.right,je=window.innerWidth-B.right-Je,Be=window.innerWidth-w.right-je,Ze=w.width+Be,mr=Math.max(Ze,N.width),br=window.innerWidth-rt,gr=cd(je,[rt,br-mr]);a.style.minWidth=Ze+"px",a.style.right=gr+"px"}const V=$(),K=window.innerHeight-rt*2,Y=f.scrollHeight,X=window.getComputedStyle(c),Z=parseInt(X.borderTopWidth,10),oe=parseInt(X.paddingTop,10),ne=parseInt(X.borderBottomWidth,10),ge=parseInt(X.paddingBottom,10),be=Z+oe+Y+ge+ne,we=Math.min(h.offsetHeight*5,be),ze=window.getComputedStyle(f),Oe=parseInt(ze.paddingTop,10),Ve=parseInt(ze.paddingBottom,10),ve=w.top+w.height/2-rt,_e=K-ve,Ie=h.offsetHeight/2,Ae=h.offsetTop+Ie,lt=Z+oe+Ae,Ut=be-lt;if(lt<=ve){const Je=h===V[V.length-1].ref.current;a.style.bottom="0px";const je=c.clientHeight-f.offsetTop-f.offsetHeight,Be=Math.max(_e,Ie+(Je?Ve:0)+je+ne),Ze=lt+Be;a.style.height=Ze+"px"}else{const Je=h===V[0].ref.current;a.style.top="0px";const Be=Math.max(ve,Z+f.offsetTop+(Je?Oe:0)+Ie)+Ut;a.style.height=Be+"px",f.scrollTop=lt-ve+f.offsetTop}a.style.margin=`${rt}px 0`,a.style.minHeight=we+"px",a.style.maxHeight=K+"px",E(!0),requestAnimationFrame(()=>A.current=!0)}},[$,i.trigger,i.valueNode,a,c,f,h,m,i.dir]);ye(()=>G(),[G]);const S=l.useCallback(()=>F([h,c]),[F,h,c]);l.useEffect(()=>{y&&S()},[y,S]);const q=l.useCallback(w=>{w&&v.current===!0&&(G(),S(),v.current=!1)},[G,S]),{onOpenChange:D,triggerPointerDownPosRef:P}=i;l.useEffect(()=>{if(c){let w={x:0,y:0};const N=j=>{var V,K,Y,X;w={x:Math.abs(Math.round(j.pageX)-((V=(K=P.current)===null||K===void 0?void 0:K.x)!==null&&V!==void 0?V:0)),y:Math.abs(Math.round(j.pageY)-((Y=(X=P.current)===null||X===void 0?void 0:X.y)!==null&&Y!==void 0?Y:0))}},B=j=>{w.x<=10&&w.y<=10?j.preventDefault():c.contains(j.target)||D(!1),document.removeEventListener("pointermove",N),P.current=null};return P.current!==null&&(document.addEventListener("pointermove",N),document.addEventListener("pointerup",B,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",N),document.removeEventListener("pointerup",B,{capture:!0})}}},[c,D,P]),l.useEffect(()=>{const w=()=>D(!1);return window.addEventListener("blur",w),window.addEventListener("resize",w),()=>{window.removeEventListener("blur",w),window.removeEventListener("resize",w)}},[D]);const[ee,Q]=hd(w=>{const N=$().filter(V=>!V.disabled),B=N.find(V=>V.ref.current===document.activeElement),j=md(N,w,B);j&&setTimeout(()=>j.ref.current.focus())}),de=l.useCallback((w,N,B)=>{const j=!L.current&&!B;(i.value!==void 0&&i.value===N||j)&&(g(w),j&&(L.current=!0))},[i.value]),fe=l.useCallback(()=>c==null?void 0:c.focus(),[c]),J=l.useCallback((w,N,B)=>{const j=!L.current&&!B;(i.value!==void 0&&i.value===N||j)&&_(w)},[i.value]);return l.createElement(ud,{scope:r,contentWrapper:a,content:c,viewport:f,onViewportChange:p,itemRefCallback:de,selectedItem:h,onItemLeave:fe,itemTextRefCallback:J,selectedItemText:m,onScrollButtonChange:q,isPositioned:y,shouldExpandOnScrollRef:A,searchRef:ee},l.createElement(Ln,{as:dt,allowPinchZoom:!0},l.createElement("div",{ref:s,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:T}},l.createElement(kn,{asChild:!0,trapped:i.open,onMountAutoFocus:w=>{w.preventDefault()},onUnmountAutoFocus:H(n,w=>{var N;(N=i.trigger)===null||N===void 0||N.focus({preventScroll:!0}),w.preventDefault()})},l.createElement(Ht,C({role:"listbox",id:i.contentId,"data-state":i.open?"open":"closed",dir:i.dir,onContextMenu:w=>w.preventDefault()},o,{ref:b,style:{display:"flex",flexDirection:"column",boxSizing:"border-box",maxHeight:"100%",outline:"none",...o.style},disableOutsidePointerEvents:!0,onFocusOutside:w=>w.preventDefault(),onDismiss:()=>i.onOpenChange(!1),onKeyDown:H(o.onKeyDown,w=>{const N=w.ctrlKey||w.altKey||w.metaKey;if(w.key==="Tab"&&w.preventDefault(),!N&&w.key.length===1&&Q(w.key),["ArrowUp","ArrowDown","Home","End"].includes(w.key)){let j=$().filter(V=>!V.disabled).map(V=>V.ref.current);if(["ArrowUp","End"].includes(w.key)&&(j=j.slice().reverse()),["ArrowUp","ArrowDown"].includes(w.key)){const V=w.target,K=j.indexOf(V);j=j.slice(K+1)}setTimeout(()=>F(j)),w.preventDefault()}})}))))))}),Zy="SelectViewport",Qy=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Ft(Zy,r),i=se(t,o.onViewportChange),a=l.useRef(0);return l.createElement(l.Fragment,null,l.createElement("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"}}),l.createElement(un.Slot,{scope:r},l.createElement(te.div,C({"data-radix-select-viewport":"",role:"presentation"},n,{ref:i,style:{position:"relative",flex:1,overflow:"auto",...n.style},onScroll:H(n.onScroll,s=>{const c=s.currentTarget,{contentWrapper:d,shouldExpandOnScrollRef:f}=o;if(f!=null&&f.current&&d){const p=Math.abs(a.current-c.scrollTop);if(p>0){const b=window.innerHeight-rt*2,h=parseFloat(d.style.minHeight),g=parseFloat(d.style.height),m=Math.max(h,g);if(m<b){const _=m+p,$=Math.min(b,_),y=_-$;d.style.height=$+"px",d.style.bottom==="0px"&&(c.scrollTop=y>0?y:0,d.style.justifyContent="flex-end")}}}a.current=c.scrollTop})}))))}),e$="SelectGroup",[t$,r$]=or(e$),n$=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=Ue();return l.createElement(t$,{scope:r,id:o},l.createElement(te.div,C({role:"group","aria-labelledby":o},n,{ref:t})))}),o$="SelectLabel",i$=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e,o=r$(o$,r);return l.createElement(te.div,C({id:o.id},n,{ref:t}))}),Qo="SelectItem",[a$,dd]=or(Qo),s$=l.forwardRef((e,t)=>{const{__scopeSelect:r,value:n,disabled:o=!1,textValue:i,...a}=e,s=Lt(Qo,r),c=Ft(Qo,r),d=s.value===n,[f,p]=l.useState(i??""),[b,h]=l.useState(!1),g=se(t,$=>{var y;return(y=c.itemRefCallback)===null||y===void 0?void 0:y.call(c,$,n,o)}),m=Ue(),_=()=>{o||(s.onValueChange(n),s.onOpenChange(!1))};return l.createElement(a$,{scope:r,value:n,disabled:o,textId:m,isSelected:d,onItemTextChange:l.useCallback($=>{p(y=>{var E;return y||((E=$==null?void 0:$.textContent)!==null&&E!==void 0?E:"").trim()})},[])},l.createElement(un.ItemSlot,{scope:r,value:n,disabled:o,textValue:f},l.createElement(te.div,C({role:"option","aria-labelledby":m,"data-highlighted":b?"":void 0,"aria-selected":d&&b,"data-state":d?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1},a,{ref:g,onFocus:H(a.onFocus,()=>h(!0)),onBlur:H(a.onBlur,()=>h(!1)),onPointerUp:H(a.onPointerUp,_),onPointerMove:H(a.onPointerMove,$=>{if(o){var y;(y=c.onItemLeave)===null||y===void 0||y.call(c)}else $.currentTarget.focus({preventScroll:!0})}),onPointerLeave:H(a.onPointerLeave,$=>{if($.currentTarget===document.activeElement){var y;(y=c.onItemLeave)===null||y===void 0||y.call(c)}}),onKeyDown:H(a.onKeyDown,$=>{var y;((y=c.searchRef)===null||y===void 0?void 0:y.current)!==""&&$.key===" "||(Ry.includes($.key)&&_(),$.key===" "&&$.preventDefault())})}))))}),dn="SelectItemText",l$=l.forwardRef((e,t)=>{const{__scopeSelect:r,className:n,style:o,...i}=e,a=Lt(dn,r),s=Ft(dn,r),c=dd(dn,r),d=By(dn,r),[f,p]=l.useState(null),b=se(t,$=>p($),c.onItemTextChange,$=>{var y;return(y=s.itemTextRefCallback)===null||y===void 0?void 0:y.call(s,$,c.value,c.disabled)}),h=f==null?void 0:f.textContent,g=l.useMemo(()=>l.createElement("option",{key:c.value,value:c.value,disabled:c.disabled},h),[c.disabled,c.value,h]),{onNativeOptionAdd:m,onNativeOptionRemove:_}=d;return ye(()=>(m(g),()=>_(g)),[m,_,g]),l.createElement(l.Fragment,null,l.createElement(te.span,C({id:c.textId},i,{ref:b})),c.isSelected&&a.valueNode&&!a.valueNodeHasChildren?ut.createPortal(i.children,a.valueNode):null)}),c$="SelectItemIndicator",u$=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return dd(c$,r).isSelected?l.createElement(te.span,C({"aria-hidden":!0},n,{ref:t})):null}),d$="SelectScrollUpButton",f$=l.forwardRef((e,t)=>{const r=Ft(d$,e.__scopeSelect),[n,o]=l.useState(!1),i=se(t,r.onScrollButtonChange);return ye(()=>{if(r.viewport&&r.isPositioned){let s=function(){const c=a.scrollTop>0;o(c)};const a=r.viewport;return s(),a.addEventListener("scroll",s),()=>a.removeEventListener("scroll",s)}},[r.viewport,r.isPositioned]),n?l.createElement(fd,C({},e,{ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:s}=r;a&&s&&(a.scrollTop=a.scrollTop-s.offsetHeight)}})):null}),p$="SelectScrollDownButton",h$=l.forwardRef((e,t)=>{const r=Ft(p$,e.__scopeSelect),[n,o]=l.useState(!1),i=se(t,r.onScrollButtonChange);return ye(()=>{if(r.viewport&&r.isPositioned){let s=function(){const c=a.scrollHeight-a.clientHeight,d=Math.ceil(a.scrollTop)<c;o(d)};const a=r.viewport;return s(),a.addEventListener("scroll",s),()=>a.removeEventListener("scroll",s)}},[r.viewport,r.isPositioned]),n?l.createElement(fd,C({},e,{ref:i,onAutoScroll:()=>{const{viewport:a,selectedItem:s}=r;a&&s&&(a.scrollTop=a.scrollTop+s.offsetHeight)}})):null}),fd=l.forwardRef((e,t)=>{const{__scopeSelect:r,onAutoScroll:n,...o}=e,i=Ft("SelectScrollButton",r),a=l.useRef(null),s=Jo(r),c=l.useCallback(()=>{a.current!==null&&(window.clearInterval(a.current),a.current=null)},[]);return l.useEffect(()=>()=>c(),[c]),ye(()=>{var d;const f=s().find(p=>p.ref.current===document.activeElement);f==null||(d=f.ref.current)===null||d===void 0||d.scrollIntoView({block:"nearest"})},[s]),l.createElement(te.div,C({"aria-hidden":!0},o,{ref:t,style:{flexShrink:0,...o.style},onPointerMove:H(o.onPointerMove,()=>{var d;(d=i.onItemLeave)===null||d===void 0||d.call(i),a.current===null&&(a.current=window.setInterval(n,50))}),onPointerLeave:H(o.onPointerLeave,()=>{c()})}))}),m$=l.forwardRef((e,t)=>{const{__scopeSelect:r,...n}=e;return l.createElement(te.div,C({"aria-hidden":!0},n,{ref:t}))}),pd=l.forwardRef((e,t)=>{const{value:r,...n}=e,o=l.useRef(null),i=se(t,o),a=qr(r);return l.useEffect(()=>{const s=o.current,c=window.HTMLSelectElement.prototype,f=Object.getOwnPropertyDescriptor(c,"value").set;if(a!==r&&f){const p=new Event("change",{bubbles:!0});f.call(s,r),s.dispatchEvent(p)}},[a,r]),l.createElement(Cr,{asChild:!0},l.createElement("select",C({},n,{ref:i,defaultValue:r})))});pd.displayName="BubbleSelect";function hd(e){const t=Se(e),r=l.useRef(""),n=l.useRef(0),o=l.useCallback(a=>{const s=r.current+a;t(s),function c(d){r.current=d,window.clearTimeout(n.current),d!==""&&(n.current=window.setTimeout(()=>c(""),1e3))}(s)},[t]),i=l.useCallback(()=>{r.current="",window.clearTimeout(n.current)},[]);return l.useEffect(()=>()=>window.clearTimeout(n.current),[]),[r,o,i]}function md(e,t,r){const o=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,i=r?e.indexOf(r):-1;let a=b$(e,Math.max(i,0));o.length===1&&(a=a.filter(d=>d!==r));const c=a.find(d=>d.textValue.toLowerCase().startsWith(o.toLowerCase()));return c!==r?c:void 0}function b$(e,t){return e.map((r,n)=>e[(t+n)%e.length])}const g$=Wy,v$=Gy,_$=Yy,y$=Xy,$$=Qy,x$=n$,w$=i$,E$=s$,P$=l$,S$=u$,C$=f$,T$=h$,O$=m$,bd=I(Ky)`
|
|
1239
1244
|
all: unset;
|
|
1240
1245
|
display: flex;
|
|
1241
1246
|
align-items: center;
|
|
@@ -1267,19 +1272,19 @@ Defaulting to \`${Vo}\`.`}function Mu(e){return l_.includes(e)}const u_=Nu;funct
|
|
|
1267
1272
|
color: ${u.color_fill_primary_disabled};
|
|
1268
1273
|
cursor: not-allowed;
|
|
1269
1274
|
}
|
|
1270
|
-
`,
|
|
1275
|
+
`,k$=I(qy)`
|
|
1271
1276
|
color: ${u.color_fill_secondary_enabled};
|
|
1272
|
-
`,
|
|
1277
|
+
`,D$=I(y$)`
|
|
1273
1278
|
font-family: ${u.font_family_sans};
|
|
1274
1279
|
overflow: hidden;
|
|
1275
1280
|
background-color: ${u.color_white};
|
|
1276
1281
|
margin-top: 52px;
|
|
1277
1282
|
border-radius: ${u.border_radius_400};
|
|
1278
1283
|
box-shadow: ${u.elevation_static_high};
|
|
1279
|
-
`,
|
|
1284
|
+
`,I$=I($$)`
|
|
1280
1285
|
padding: ${u.sizing_100};
|
|
1281
1286
|
min-width: 172px;
|
|
1282
|
-
`;function
|
|
1287
|
+
`;function gd({children:e,...t}){return k(_$,{children:k(D$,{...t,children:e})})}const A$=I(E$)`
|
|
1283
1288
|
all: unset;
|
|
1284
1289
|
font-size: ${u.font_size_100};
|
|
1285
1290
|
line-height: ${u.line_height_129};
|
|
@@ -1303,17 +1308,17 @@ Defaulting to \`${Vo}\`.`}function Mu(e){return l_.includes(e)}const u_=Nu;funct
|
|
|
1303
1308
|
&[data-highlighted] {
|
|
1304
1309
|
background-color: ${u.color_background_white_weak}; /* Static / Background / Weak */
|
|
1305
1310
|
}
|
|
1306
|
-
`,
|
|
1311
|
+
`,N$=I(w$)`
|
|
1307
1312
|
padding: 7px ${u.sizing_200};
|
|
1308
1313
|
font-size: ${u.font_size_50};
|
|
1309
1314
|
line-height: ${u.line_height_133};
|
|
1310
1315
|
color: ${u.color_text_weak};
|
|
1311
1316
|
font-style: normal;
|
|
1312
|
-
`,
|
|
1317
|
+
`,M$=I(O$)`
|
|
1313
1318
|
height: 1px;
|
|
1314
1319
|
background-color: ${u.color_divider_standard};
|
|
1315
1320
|
margin: ${u.spacing_100};
|
|
1316
|
-
`,
|
|
1321
|
+
`,L$=I(S$)`
|
|
1317
1322
|
left: 0;
|
|
1318
1323
|
width: 25px;
|
|
1319
1324
|
display: inline-flex;
|
|
@@ -1324,7 +1329,7 @@ Defaulting to \`${Vo}\`.`}function Mu(e){return l_.includes(e)}const u_=Nu;funct
|
|
|
1324
1329
|
line-height: 0;
|
|
1325
1330
|
font-size: ${u.font_size_200};
|
|
1326
1331
|
}
|
|
1327
|
-
`,
|
|
1332
|
+
`,vd=`
|
|
1328
1333
|
display: flex;
|
|
1329
1334
|
align-items: center;
|
|
1330
1335
|
justify-content: center;
|
|
@@ -1332,38 +1337,38 @@ Defaulting to \`${Vo}\`.`}function Mu(e){return l_.includes(e)}const u_=Nu;funct
|
|
|
1332
1337
|
background-color: ${u.color_white};
|
|
1333
1338
|
color: ${u.color_black};
|
|
1334
1339
|
cursor: default;
|
|
1335
|
-
`,L$=I(S$)`
|
|
1336
|
-
${gd}
|
|
1337
1340
|
`,F$=I(C$)`
|
|
1338
|
-
${
|
|
1339
|
-
`,
|
|
1341
|
+
${vd}
|
|
1342
|
+
`,R$=I(T$)`
|
|
1343
|
+
${vd}
|
|
1344
|
+
`,_d=g$,yd=bd,$d=v$,xd=k$,z$=I$,V$=x$,wd=A$,Ed=P$,j$=L$,B$=N$,W$=M$,Pd=F$,Sd=R$;function U$({items:e,...t}){return le(_d,{...t,children:[le(yd,{"aria-label":"Food",children:[k($d,{placeholder:"Select"}),k(xd,{children:k($e.ArrowDropDown,{})})]}),le(gd,{children:[k(Pd,{children:k($e.ArrowDropUp,{})}),e.map(r=>k(wd,{value:r,children:k(Ed,{children:r})},r)),k(Sd,{children:k($e.ArrowDropDown,{})})]})]})}function K$(e){let[t,r]=Ss(Cd(e.value),Cd(e.defaultValue)||"",e.onChange);return{value:t,setValue:r}}function Cd(e){if(e!=null)return e.toString()}function H$(e){return e&&e.__esModule?e.default:e}var Td={},Od={};Od={"Clear search":"مسح البحث"};var kd={};kd={"Clear search":"Изчистване на търсене"};var Dd={};Dd={"Clear search":"Vymazat hledání"};var Id={};Id={"Clear search":"Ryd søgning"};var Ad={};Ad={"Clear search":"Suche zurücksetzen"};var Nd={};Nd={"Clear search":"Απαλοιφή αναζήτησης"};var Md={};Md={"Clear search":"Clear search"};var Ld={};Ld={"Clear search":"Borrar búsqueda"};var Fd={};Fd={"Clear search":"Tühjenda otsing"};var Rd={};Rd={"Clear search":"Tyhjennä haku"};var zd={};zd={"Clear search":"Effacer la recherche"};var Vd={};Vd={"Clear search":"נקה חיפוש"};var jd={};jd={"Clear search":"Obriši pretragu"};var Bd={};Bd={"Clear search":"Keresés törlése"};var Wd={};Wd={"Clear search":"Cancella ricerca"};var Ud={};Ud={"Clear search":"検索をクリア"};var Kd={};Kd={"Clear search":"검색 지우기"};var Hd={};Hd={"Clear search":"Išvalyti iešką"};var Gd={};Gd={"Clear search":"Notīrīt meklēšanu"};var qd={};qd={"Clear search":"Tøm søk"};var Yd={};Yd={"Clear search":"Zoekactie wissen"};var Xd={};Xd={"Clear search":"Wyczyść zawartość wyszukiwania"};var Jd={};Jd={"Clear search":"Limpar pesquisa"};var Zd={};Zd={"Clear search":"Limpar pesquisa"};var Qd={};Qd={"Clear search":"Ştergeţi căutarea"};var ef={};ef={"Clear search":"Очистить поиск"};var tf={};tf={"Clear search":"Vymazať vyhľadávanie"};var rf={};rf={"Clear search":"Počisti iskanje"};var nf={};nf={"Clear search":"Obriši pretragu"};var of={};of={"Clear search":"Rensa sökning"};var af={};af={"Clear search":"Aramayı temizle"};var sf={};sf={"Clear search":"Очистити пошук"};var lf={};lf={"Clear search":"清除搜索"};var cf={};cf={"Clear search":"清除搜尋條件"},Td={"ar-AE":Od,"bg-BG":kd,"cs-CZ":Dd,"da-DK":Id,"de-DE":Ad,"el-GR":Nd,"en-US":Md,"es-ES":Ld,"et-EE":Fd,"fi-FI":Rd,"fr-FR":zd,"he-IL":Vd,"hr-HR":jd,"hu-HU":Bd,"it-IT":Wd,"ja-JP":Ud,"ko-KR":Kd,"lt-LT":Hd,"lv-LV":Gd,"nb-NO":qd,"nl-NL":Yd,"pl-PL":Xd,"pt-BR":Jd,"pt-PT":Zd,"ro-RO":Qd,"ru-RU":ef,"sk-SK":tf,"sl-SI":rf,"sr-SP":nf,"sv-SE":of,"tr-TR":af,"uk-UA":sf,"zh-CN":lf,"zh-TW":cf};function G$(e,t,r){let n=Gr(H$(Td)),{isDisabled:o,isReadOnly:i,onSubmit:a=()=>{},onClear:s,type:c="search"}=e,d=_=>{const $=_.key;($==="Enter"||$==="Escape")&&_.preventDefault(),!(o||i)&&($==="Enter"&&a(t.value),$==="Escape"&&(t.setValue(""),s&&s()))},f=()=>{t.setValue(""),s&&s()},p=()=>{r.current.focus()},{labelProps:b,inputProps:h,descriptionProps:g,errorMessageProps:m}=Yr({...e,value:t.value,onChange:t.setValue,onKeyDown:Ds(d,e.onKeyDown),type:c},r);return{labelProps:b,inputProps:{...h,defaultValue:void 0},clearButtonProps:{"aria-label":n.format("Clear search"),excludeFromTabOrder:!0,preventFocusOnPress:!0,isDisabled:o||i,onPress:f,onPressStart:p},descriptionProps:g,errorMessageProps:m}}var ei={},fn={},q$={get exports(){return fn},set exports(e){fn=e}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(q$);var pn={},Y$={get exports(){return pn},set exports(e){pn=e}},ti={},X$={get exports(){return ti},set exports(e){ti=e}};(function(e){function t(r){return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(X$),function(e){var t=ti.default;function r(o){if(typeof WeakMap!="function")return null;var i=new WeakMap,a=new WeakMap;return(r=function(c){return c?a:i})(o)}function n(o,i){if(!i&&o&&o.__esModule)return o;if(o===null||t(o)!=="object"&&typeof o!="function")return{default:o};var a=r(i);if(a&&a.has(o))return a.get(o);var s={},c=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var d in o)if(d!=="default"&&Object.prototype.hasOwnProperty.call(o,d)){var f=c?Object.getOwnPropertyDescriptor(o,d):null;f&&(f.get||f.set)?Object.defineProperty(s,d,f):s[d]=o[d]}return s.default=o,a&&a.set(o,s),s}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports}(Y$);var ri={};function uf(e,t){return process.env.NODE_ENV==="production"?function(){return null}:function(){return e.apply(void 0,arguments)||t.apply(void 0,arguments)}}function nt(e){return nt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nt(e)}function ni(e){return e&&nt(e)==="object"&&e.constructor===Object}function Rt(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{clone:!0},n=r.clone?C({},e):e;return ni(e)&&ni(t)&&Object.keys(t).forEach(function(o){o!=="__proto__"&&(ni(t[o])&&o in e?n[o]=Rt(e[o],t[o],r):n[o]=t[o])}),n}var ce={},df={get exports(){return ce},set exports(e){ce=e}};/*
|
|
1340
1345
|
object-assign
|
|
1341
1346
|
(c) Sindre Sorhus
|
|
1342
1347
|
@license MIT
|
|
1343
|
-
*/var oi,
|
|
1344
|
-
Valid keys: `+JSON.stringify(Object.keys(w),null," "));var be=ge(X,ne,V,K,Y+"."+ne,r);if(be)return be}return null}return _(N)}function P(w){switch(typeof w){case"number":case"string":case"undefined":return!0;case"boolean":return!w;case"object":if(Array.isArray(w))return w.every(P);if(w===null||s(w))return!0;var N=p(w);if(N){var B=N.call(w),j;if(N!==w.entries){for(;!(j=B.next()).done;)if(!P(j.value))return!1}else for(;!(j=B.next()).done;){var V=j.value;if(V&&!P(V[1]))return!1}}else return!1;return!0;default:return!1}}function ee(w,N){return w==="symbol"?!0:N?N["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&N instanceof Symbol:!1}function Q(w){var N=typeof w;return Array.isArray(w)?"array":w instanceof RegExp?"object":ee(N,w)?"symbol":N}function de(w){if(typeof w>"u"||w===null)return""+w;var N=Q(w);if(N==="object"){if(w instanceof Date)return"date";if(w instanceof RegExp)return"regexp"}return N}function fe(w){var N=de(w);switch(N){case"array":case"object":return"an "+N;case"boolean":case"date":case"regexp":return"a "+N;default:return N}}function J(w){return!w.constructor||!w.constructor.name?b:w.constructor.name}return h.checkPropTypes=o,h.resetWarningCache=o.resetWarningCache,h.PropTypes=h,h},ci}var ui,
|
|
1345
|
-
`,space:" "}}function lr(e,t){for(var r="",n=0;n<t;n++)r+=" ";return r+e}function cr(e,t,r){r===void 0&&(r={});var n="";if(!t)return n;var o=r,i=o.indent,a=i===void 0?0:i,s=t.fallbacks;r.format===!1&&(a=-1/0);var c=zt(r),d=c.linebreak,f=c.space;if(e&&a++,s)if(Array.isArray(s))for(var p=0;p<s.length;p++){var b=s[p];for(var h in b){var g=b[h];g!=null&&(n&&(n+=d),n+=lr(h+":"+f+_t(g)+";",a))}}else for(var m in s){var _=s[m];_!=null&&(n&&(n+=d),n+=lr(m+":"+f+_t(_)+";",a))}for(var $ in t){var y=t[$];y!=null&&$!=="fallbacks"&&(n&&(n+=d),n+=lr($+":"+f+_t(y)+";",a))}return!n&&!r.allowEmpty||!e?n:(a--,n&&(n=""+d+n+d),lr(""+e+f+"{"+n,a)+lr("}",a))}var
|
|
1346
|
-
`);return o}return this.key+" "+this.value+";"},e}(),A1={"@charset":!0,"@import":!0,"@namespace":!0},N1={onCreateRule:function(t,r,n){return t in A1?new I1(t,r,n):null}},Df=[b1,y1,E1,S1,O1,D1,N1],M1={process:!0},If={force:!0,process:!0},mn=function(){function e(r){this.map={},this.raw={},this.index=[],this.counter=0,this.options=r,this.classes=r.classes,this.keyframes=r.keyframes}var t=e.prototype;return t.add=function(n,o,i){var a=this.options,s=a.parent,c=a.sheet,d=a.jss,f=a.Renderer,p=a.generateId,b=a.scoped,h=C({classes:this.classes,parent:s,sheet:c,jss:d,Renderer:f,generateId:p,scoped:b,name:n,keyframes:this.keyframes,selector:void 0},i),g=n;n in this.raw&&(g=n+"-d"+this.counter++),this.raw[g]=o,g in this.classes&&(h.selector="."+mi(this.classes[g]));var m=hi(g,o,h);if(!m)return null;this.register(m);var _=h.index===void 0?this.index.length:h.index;return this.index.splice(_,0,m),m},t.replace=function(n,o,i){var a=this.get(n),s=this.index.indexOf(a);a&&this.remove(a);var c=i;return s!==-1&&(c=C({},i,{index:s})),this.add(n,o,c)},t.get=function(n){return this.map[n]},t.remove=function(n){this.unregister(n),delete this.raw[n.key],this.index.splice(this.index.indexOf(n),1)},t.indexOf=function(n){return this.index.indexOf(n)},t.process=function(){var n=this.options.jss.plugins;this.index.slice(0).forEach(n.onProcessRule,n)},t.register=function(n){this.map[n.key]=n,n instanceof bi?(this.map[n.selector]=n,n.id&&(this.classes[n.key]=n.id)):n instanceof _i&&this.keyframes&&(this.keyframes[n.name]=n.id)},t.unregister=function(n){delete this.map[n.key],n instanceof bi?(delete this.map[n.selector],delete this.classes[n.key]):n instanceof _i&&delete this.keyframes[n.name]},t.update=function(){var n,o,i;if(typeof(arguments.length<=0?void 0:arguments[0])=="string"?(n=arguments.length<=0?void 0:arguments[0],o=arguments.length<=1?void 0:arguments[1],i=arguments.length<=2?void 0:arguments[2]):(o=arguments.length<=0?void 0:arguments[0],i=arguments.length<=1?void 0:arguments[1],n=null),n)this.updateOne(this.get(n),o,i);else for(var a=0;a<this.index.length;a++)this.updateOne(this.index[a],o,i)},t.updateOne=function(n,o,i){i===void 0&&(i=M1);var a=this.options,s=a.jss.plugins,c=a.sheet;if(n.rules instanceof e){n.rules.update(o,i);return}var d=n.style;if(s.onUpdate(o,n,c,i),i.process&&d&&d!==n.style){s.onProcessStyle(n.style,n,c);for(var f in n.style){var p=n.style[f],b=d[f];p!==b&&n.prop(f,p,If)}for(var h in d){var g=n.style[h],m=d[h];g==null&&g!==m&&n.prop(h,null,If)}}},t.toString=function(n){for(var o="",i=this.options.sheet,a=i?i.options.link:!1,s=zt(n),c=s.linebreak,d=0;d<this.index.length;d++){var f=this.index[d],p=f.toString(n);!p&&!a||(o&&(o+=c),o+=p)}return o},e}(),Af=function(){function e(r,n){this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=C({},n,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),n.Renderer&&(this.renderer=new n.Renderer(this)),this.rules=new mn(this.options);for(var o in r)this.rules.add(o,r[o]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached?this:(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy(),this)},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(n,o,i){var a=this.queue;this.attached&&!a&&(this.queue=[]);var s=this.rules.add(n,o,i);return s?(this.options.jss.plugins.onProcessRule(s),this.attached?(this.deployed&&(a?a.push(s):(this.insertRule(s),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0))),s):(this.deployed=!1,s)):null},t.replaceRule=function(n,o,i){var a=this.rules.get(n);if(!a)return this.addRule(n,o,i);var s=this.rules.replace(n,o,i);return s&&this.options.jss.plugins.onProcessRule(s),this.attached?(this.deployed&&this.renderer&&(s?a.renderable&&this.renderer.replaceRule(a.renderable,s):this.renderer.deleteRule(a)),s):(this.deployed=!1,s)},t.insertRule=function(n){this.renderer&&this.renderer.insertRule(n)},t.addRules=function(n,o){var i=[];for(var a in n){var s=this.addRule(a,n[a],o);s&&i.push(s)}return i},t.getRule=function(n){return this.rules.get(n)},t.deleteRule=function(n){var o=typeof n=="object"?n:this.rules.get(n);return!o||this.attached&&!o.renderable?!1:(this.rules.remove(o),this.attached&&o.renderable&&this.renderer?this.renderer.deleteRule(o.renderable):!0)},t.indexOf=function(n){return this.rules.indexOf(n)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var n;return(n=this.rules).update.apply(n,arguments),this},t.updateOne=function(n,o,i){return this.rules.updateOne(n,o,i),this},t.toString=function(n){return this.rules.toString(n)},e}(),L1=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(n,o,i){for(var a=0;a<this.registry.onCreateRule.length;a++){var s=this.registry.onCreateRule[a](n,o,i);if(s)return s}return null},t.onProcessRule=function(n){if(!n.isProcessed){for(var o=n.options.sheet,i=0;i<this.registry.onProcessRule.length;i++)this.registry.onProcessRule[i](n,o);n.style&&this.onProcessStyle(n.style,n,o),n.isProcessed=!0}},t.onProcessStyle=function(n,o,i){for(var a=0;a<this.registry.onProcessStyle.length;a++)o.style=this.registry.onProcessStyle[a](o.style,o,i)},t.onProcessSheet=function(n){for(var o=0;o<this.registry.onProcessSheet.length;o++)this.registry.onProcessSheet[o](n)},t.onUpdate=function(n,o,i,a){for(var s=0;s<this.registry.onUpdate.length;s++)this.registry.onUpdate[s](n,o,i,a)},t.onChangeValue=function(n,o,i){for(var a=n,s=0;s<this.registry.onChangeValue.length;s++)a=this.registry.onChangeValue[s](a,o,i);return a},t.use=function(n,o){o===void 0&&(o={queue:"external"});var i=this.plugins[o.queue];i.indexOf(n)===-1&&(i.push(n),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(a,s){for(var c in s)c in a?a[c].push(s[c]):process.env.NODE_ENV!=="production"&&Te(!1,'[JSS] Unknown hook "'+c+'".');return a},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),F1=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(n){var o=this.registry,i=n.options.index;if(o.indexOf(n)===-1){if(o.length===0||i>=this.index){o.push(n);return}for(var a=0;a<o.length;a++)if(o[a].options.index>i){o.splice(a,0,n);return}}},t.reset=function(){this.registry=[]},t.remove=function(n){var o=this.registry.indexOf(n);this.registry.splice(o,1)},t.toString=function(n){for(var o=n===void 0?{}:n,i=o.attached,a=$f(o,["attached"]),s=zt(a),c=s.linebreak,d="",f=0;f<this.registry.length;f++){var p=this.registry[f];i!=null&&p.attached!==i||(d&&(d+=c),d+=p.toString(a))}return d},Ef(e,[{key:"index",get:function(){return this.registry.length===0?0:this.registry[this.registry.length-1].options.index}}]),e}(),ur=new F1,$i=typeof globalThis<"u"?globalThis:typeof window<"u"&&window.Math===Math?window:typeof self<"u"&&self.Math===Math?self:Function("return this")(),xi="2f1acc6c3a606b082e5eef5e54414ffb";$i[xi]==null&&($i[xi]=0);var Nf=$i[xi]++,R1=1e10,Mf=function(t){t===void 0&&(t={});var r=0,n=function(i,a){r+=1,r>R1&&process.env.NODE_ENV!=="production"&&Te(!1,"[JSS] You might have a memory leak. Rule counter is at "+r+".");var s="",c="";return a&&(a.options.classNamePrefix&&(c=a.options.classNamePrefix),a.options.jss.id!=null&&(s=String(a.options.jss.id))),t.minify?""+(c||"c")+Nf+s+r:c+i.key+"-"+Nf+(s?"-"+s:"")+"-"+r};return n},Lf=function(t){var r;return function(){return r||(r=t()),r}},z1=function(t,r){try{return t.attributeStyleMap?t.attributeStyleMap.get(r):t.style.getPropertyValue(r)}catch{return""}},V1=function(t,r,n){try{var o=n;if(Array.isArray(n)&&(o=_t(n)),t.attributeStyleMap)t.attributeStyleMap.set(r,o);else{var i=o?o.indexOf("!important"):-1,a=i>-1?o.substr(0,i-1):o;t.style.setProperty(r,a,i>-1?"important":"")}}catch{return!1}return!0},j1=function(t,r){try{t.attributeStyleMap?t.attributeStyleMap.delete(r):t.style.removeProperty(r)}catch(n){process.env.NODE_ENV!=="production"&&Te(!1,'[JSS] DOMException "'+n.message+'" was thrown. Tried to remove property "'+r+'".')}},B1=function(t,r){return t.selectorText=r,t.selectorText===r},Ff=Lf(function(){return document.querySelector("head")});function W1(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n.attached&&n.options.index>t.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}function U1(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}function K1(e){for(var t=Ff(),r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];if(n.nodeType===8&&n.nodeValue.trim()===e)return n}return null}function H1(e){var t=ur.registry;if(t.length>0){var r=W1(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=U1(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&typeof n=="string"){var o=K1(n);if(o)return{parent:o.parentNode,node:o.nextSibling};process.env.NODE_ENV!=="production"&&Te(!1,'[JSS] Insertion point "'+n+'" not found.')}return!1}function G1(e,t){var r=t.insertionPoint,n=H1(t);if(n!==!1&&n.parent){n.parent.insertBefore(e,n.node);return}if(r&&typeof r.nodeType=="number"){var o=r,i=o.parentNode;i?i.insertBefore(e,o.nextSibling):process.env.NODE_ENV!=="production"&&Te(!1,"[JSS] Insertion point is not in the DOM.");return}Ff().appendChild(e)}var q1=Lf(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),Rf=function(t,r,n){try{"insertRule"in t?t.insertRule(r,n):"appendRule"in t&&t.appendRule(r)}catch(o){return process.env.NODE_ENV!=="production"&&Te(!1,"[JSS] "+o.message),!1}return t.cssRules[n]},zf=function(t,r){var n=t.cssRules.length;return r===void 0||r>n?n:r},Y1=function(){var t=document.createElement("style");return t.textContent=`
|
|
1347
|
-
`,t},
|
|
1348
|
+
*/var oi,ff;function J$(){if(ff)return oi;ff=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},s=0;s<10;s++)a["_"+String.fromCharCode(s)]=s;var c=Object.getOwnPropertyNames(a).map(function(f){return a[f]});if(c.join("")!=="0123456789")return!1;var d={};return"abcdefghijklmnopqrst".split("").forEach(function(f){d[f]=f}),Object.keys(Object.assign({},d)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return oi=o()?Object.assign:function(i,a){for(var s,c=n(i),d,f=1;f<arguments.length;f++){s=Object(arguments[f]);for(var p in s)t.call(s,p)&&(c[p]=s[p]);if(e){d=e(s);for(var b=0;b<d.length;b++)r.call(s,d[b])&&(c[d[b]]=s[d[b]])}}return c},oi}var ii,pf;function ai(){if(pf)return ii;pf=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ii=e,ii}var si,hf;function mf(){return hf||(hf=1,si=Function.call.bind(Object.prototype.hasOwnProperty)),si}var li,bf;function Z$(){if(bf)return li;bf=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=ai(),r={},n=mf();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,s,c,d){if(process.env.NODE_ENV!=="production"){for(var f in i)if(n(i,f)){var p;try{if(typeof i[f]!="function"){var b=Error((c||"React class")+": "+s+" type `"+f+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[f]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw b.name="Invariant Violation",b}p=i[f](a,f,c,s,null,t)}catch(g){p=g}if(p&&!(p instanceof Error)&&e((c||"React class")+": type specification of "+s+" `"+f+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in r)){r[p.message]=!0;var h=d?d():"";e("Failed "+s+" type: "+p.message+(h??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},li=o,li}var ci,gf;function Q$(){if(gf)return ci;gf=1;var e=$t,t=J$(),r=ai(),n=mf(),o=Z$(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(s){var c="Warning: "+s;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return ci=function(s,c){var d=typeof Symbol=="function"&&Symbol.iterator,f="@@iterator";function p(w){var N=w&&(d&&w[d]||w[f]);if(typeof N=="function")return N}var b="<<anonymous>>",h={array:$("array"),bigint:$("bigint"),bool:$("boolean"),func:$("function"),number:$("number"),object:$("object"),string:$("string"),symbol:$("symbol"),any:y(),arrayOf:E,element:v(),elementType:A(),instanceOf:L,node:G(),objectOf:M,oneOf:T,oneOfType:F,shape:q,exact:D};function g(w,N){return w===N?w!==0||1/w===1/N:w!==w&&N!==N}function m(w,N){this.message=w,this.data=N&&typeof N=="object"?N:{},this.stack=""}m.prototype=Error.prototype;function _(w){if(process.env.NODE_ENV!=="production")var N={},B=0;function j(K,Y,X,Z,oe,ne,ge){if(Z=Z||b,ne=ne||X,ge!==r){if(c){var be=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw be.name="Invariant Violation",be}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var we=Z+":"+X;!N[we]&&B<3&&(i("You are manually calling a React.PropTypes validation function for the `"+ne+"` prop on `"+Z+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),N[we]=!0,B++)}}return Y[X]==null?K?Y[X]===null?new m("The "+oe+" `"+ne+"` is marked as required "+("in `"+Z+"`, but its value is `null`.")):new m("The "+oe+" `"+ne+"` is marked as required in "+("`"+Z+"`, but its value is `undefined`.")):null:w(Y,X,Z,oe,ne)}var V=j.bind(null,!1);return V.isRequired=j.bind(null,!0),V}function $(w){function N(B,j,V,K,Y,X){var Z=B[j],oe=Q(Z);if(oe!==w){var ne=de(Z);return new m("Invalid "+K+" `"+Y+"` of type "+("`"+ne+"` supplied to `"+V+"`, expected ")+("`"+w+"`."),{expectedType:w})}return null}return _(N)}function y(){return _(a)}function E(w){function N(B,j,V,K,Y){if(typeof w!="function")return new m("Property `"+Y+"` of component `"+V+"` has invalid PropType notation inside arrayOf.");var X=B[j];if(!Array.isArray(X)){var Z=Q(X);return new m("Invalid "+K+" `"+Y+"` of type "+("`"+Z+"` supplied to `"+V+"`, expected an array."))}for(var oe=0;oe<X.length;oe++){var ne=w(X,oe,V,K,Y+"["+oe+"]",r);if(ne instanceof Error)return ne}return null}return _(N)}function v(){function w(N,B,j,V,K){var Y=N[B];if(!s(Y)){var X=Q(Y);return new m("Invalid "+V+" `"+K+"` of type "+("`"+X+"` supplied to `"+j+"`, expected a single ReactElement."))}return null}return _(w)}function A(){function w(N,B,j,V,K){var Y=N[B];if(!e.isValidElementType(Y)){var X=Q(Y);return new m("Invalid "+V+" `"+K+"` of type "+("`"+X+"` supplied to `"+j+"`, expected a single ReactElement type."))}return null}return _(w)}function L(w){function N(B,j,V,K,Y){if(!(B[j]instanceof w)){var X=w.name||b,Z=J(B[j]);return new m("Invalid "+K+" `"+Y+"` of type "+("`"+Z+"` supplied to `"+V+"`, expected ")+("instance of `"+X+"`."))}return null}return _(N)}function T(w){if(!Array.isArray(w))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function N(B,j,V,K,Y){for(var X=B[j],Z=0;Z<w.length;Z++)if(g(X,w[Z]))return null;var oe=JSON.stringify(w,function(ge,be){var we=de(be);return we==="symbol"?String(be):be});return new m("Invalid "+K+" `"+Y+"` of value `"+String(X)+"` "+("supplied to `"+V+"`, expected one of "+oe+"."))}return _(N)}function M(w){function N(B,j,V,K,Y){if(typeof w!="function")return new m("Property `"+Y+"` of component `"+V+"` has invalid PropType notation inside objectOf.");var X=B[j],Z=Q(X);if(Z!=="object")return new m("Invalid "+K+" `"+Y+"` of type "+("`"+Z+"` supplied to `"+V+"`, expected an object."));for(var oe in X)if(n(X,oe)){var ne=w(X,oe,V,K,Y+"."+oe,r);if(ne instanceof Error)return ne}return null}return _(N)}function F(w){if(!Array.isArray(w))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var N=0;N<w.length;N++){var B=w[N];if(typeof B!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+fe(B)+" at index "+N+"."),a}function j(V,K,Y,X,Z){for(var oe=[],ne=0;ne<w.length;ne++){var ge=w[ne],be=ge(V,K,Y,X,Z,r);if(be==null)return null;be.data&&n(be.data,"expectedType")&&oe.push(be.data.expectedType)}var we=oe.length>0?", expected one of type ["+oe.join(", ")+"]":"";return new m("Invalid "+X+" `"+Z+"` supplied to "+("`"+Y+"`"+we+"."))}return _(j)}function G(){function w(N,B,j,V,K){return P(N[B])?null:new m("Invalid "+V+" `"+K+"` supplied to "+("`"+j+"`, expected a ReactNode."))}return _(w)}function S(w,N,B,j,V){return new m((w||"React class")+": "+N+" type `"+B+"."+j+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+V+"`.")}function q(w){function N(B,j,V,K,Y){var X=B[j],Z=Q(X);if(Z!=="object")return new m("Invalid "+K+" `"+Y+"` of type `"+Z+"` "+("supplied to `"+V+"`, expected `object`."));for(var oe in w){var ne=w[oe];if(typeof ne!="function")return S(V,K,Y,oe,de(ne));var ge=ne(X,oe,V,K,Y+"."+oe,r);if(ge)return ge}return null}return _(N)}function D(w){function N(B,j,V,K,Y){var X=B[j],Z=Q(X);if(Z!=="object")return new m("Invalid "+K+" `"+Y+"` of type `"+Z+"` "+("supplied to `"+V+"`, expected `object`."));var oe=t({},B[j],w);for(var ne in oe){var ge=w[ne];if(n(w,ne)&&typeof ge!="function")return S(V,K,Y,ne,de(ge));if(!ge)return new m("Invalid "+K+" `"+Y+"` key `"+ne+"` supplied to `"+V+"`.\nBad object: "+JSON.stringify(B[j],null," ")+`
|
|
1349
|
+
Valid keys: `+JSON.stringify(Object.keys(w),null," "));var be=ge(X,ne,V,K,Y+"."+ne,r);if(be)return be}return null}return _(N)}function P(w){switch(typeof w){case"number":case"string":case"undefined":return!0;case"boolean":return!w;case"object":if(Array.isArray(w))return w.every(P);if(w===null||s(w))return!0;var N=p(w);if(N){var B=N.call(w),j;if(N!==w.entries){for(;!(j=B.next()).done;)if(!P(j.value))return!1}else for(;!(j=B.next()).done;){var V=j.value;if(V&&!P(V[1]))return!1}}else return!1;return!0;default:return!1}}function ee(w,N){return w==="symbol"?!0:N?N["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&N instanceof Symbol:!1}function Q(w){var N=typeof w;return Array.isArray(w)?"array":w instanceof RegExp?"object":ee(N,w)?"symbol":N}function de(w){if(typeof w>"u"||w===null)return""+w;var N=Q(w);if(N==="object"){if(w instanceof Date)return"date";if(w instanceof RegExp)return"regexp"}return N}function fe(w){var N=de(w);switch(N){case"array":case"object":return"an "+N;case"boolean":case"date":case"regexp":return"a "+N;default:return N}}function J(w){return!w.constructor||!w.constructor.name?b:w.constructor.name}return h.checkPropTypes=o,h.resetWarningCache=o.resetWarningCache,h.PropTypes=h,h},ci}var ui,vf;function e1(){if(vf)return ui;vf=1;var e=ai();function t(){}function r(){}return r.resetWarningCache=t,ui=function(){function n(a,s,c,d,f,p){if(p!==e){var b=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw b.name="Invariant Violation",b}}n.isRequired=n;function o(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},ui}if(process.env.NODE_ENV!=="production"){var t1=$t,r1=!0;df.exports=Q$()(t1.isElement,r1)}else df.exports=e1()();function n1(e,t){if(nt(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(nt(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _f(e){var t=n1(e,"string");return nt(t)==="symbol"?t:String(t)}function ir(e,t,r){return t=_f(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o1="exact-prop: ";function i1(e){return process.env.NODE_ENV==="production"?e:C({},e,ir({},o1,function(t){var r=Object.keys(t).filter(function(n){return!e.hasOwnProperty(n)});return r.length>0?new Error("The following props are not supported: ".concat(r.map(function(n){return"`".concat(n,"`")}).join(", "),". Please remove them.")):null}))}function hn(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}var a1=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function s1(e){var t="".concat(e).match(a1),r=t&&t[1];return r||""}function yf(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return e.displayName||e.name||s1(e)||t}function $f(e,t,r){var n=yf(t);return e.displayName||(n!==""?"".concat(r,"(").concat(n,")"):r)}function ar(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return yf(e,"Component");if(nt(e)==="object")switch(e.$$typeof){case $t.ForwardRef:return $f(e,e.render,"ForwardRef");case $t.Memo:return $f(e,e.type,"memo");default:return}}}function di(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"Material-UI: capitalize(string) expects a string argument.":hn(7));return e.charAt(0).toUpperCase()+e.slice(1)}function l1(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce(function(n,o){return o==null?n:(process.env.NODE_ENV!=="production"&&typeof o!="function"&&console.error("Material-UI: Invalid Argument Type, must only provide functions, undefined, or null."),function(){for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];n.apply(this,s),o.apply(this,s)})},function(){})}function xf(e,t){if(e==null)return{};var r={},n=Object.keys(e),o,i;for(i=0;i<n.length;i++)o=n[i],!(t.indexOf(o)>=0)&&(r[o]=e[o]);return r}function Re(e,t){if(e==null)return{};var r=xf(e,t),n,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)n=i[o],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var c1=typeof Symbol=="function"&&Symbol.for;const u1=c1?Symbol.for("mui.nested"):"__THEME_NESTED__";var d1=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function f1(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.disableGlobal,r=t===void 0?!1:t,n=e.productionPrefix,o=n===void 0?"jss":n,i=e.seed,a=i===void 0?"":i,s=a===""?"":"".concat(a,"-"),c=0,d=function(){return c+=1,process.env.NODE_ENV!=="production"&&c>=1e10&&console.warn(["Material-UI: You might have a memory leak.","The ruleCounter is not supposed to grow that much."].join("")),c};return function(f,p){var b=p.options.name;if(b&&b.indexOf("Mui")===0&&!p.options.link&&!r){if(d1.indexOf(f.key)!==-1)return"Mui-".concat(f.key);var h="".concat(s).concat(b,"-").concat(f.key);return!p.options.theme[u1]||a!==""?h:"".concat(h,"-").concat(d())}if(process.env.NODE_ENV==="production")return"".concat(s).concat(o).concat(d());var g="".concat(f.key,"-").concat(d());return p.options.classNamePrefix?"".concat(s).concat(p.options.classNamePrefix,"-").concat(g):"".concat(s).concat(g)}}function p1(e){var t=e.theme,r=e.name,n=e.props;if(!t||!t.props||!t.props[r])return n;var o=t.props[r],i;for(i in o)n[i]===void 0&&(n[i]=o[i]);return n}var h1=process.env.NODE_ENV==="production";function Te(e,t){if(!h1){if(e)return;var r="Warning: "+t;typeof console<"u"&&console.warn(r);try{throw Error(r)}catch{}}}var wf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sr=(typeof window>"u"?"undefined":wf(window))==="object"&&(typeof document>"u"?"undefined":wf(document))==="object"&&document.nodeType===9;function Ef(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_f(n.key),n)}}function Pf(e,t,r){return t&&Ef(e.prototype,t),r&&Ef(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function fi(e,t){return fi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},fi(e,t)}function Sf(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,fi(e,t)}function Cf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var m1={}.constructor;function pi(e){if(e==null||typeof e!="object")return e;if(Array.isArray(e))return e.map(pi);if(e.constructor!==m1)return e;var t={};for(var r in e)t[r]=pi(e[r]);return t}function hi(e,t,r){e===void 0&&(e="unnamed");var n=r.jss,o=pi(t),i=n.plugins.onCreateRule(e,o,r);return i||(e[0]==="@"&&process.env.NODE_ENV!=="production"&&Te(!1,"[JSS] Unknown rule "+e),null)}var Tf=function(t,r){for(var n="",o=0;o<t.length&&t[o]!=="!important";o++)n&&(n+=r),n+=t[o];return n},_t=function(t){if(!Array.isArray(t))return t;var r="";if(Array.isArray(t[0]))for(var n=0;n<t.length&&t[n]!=="!important";n++)r&&(r+=", "),r+=Tf(t[n]," ");else r=Tf(t,", ");return t[t.length-1]==="!important"&&(r+=" !important"),r};function zt(e){return e&&e.format===!1?{linebreak:"",space:""}:{linebreak:`
|
|
1350
|
+
`,space:" "}}function lr(e,t){for(var r="",n=0;n<t;n++)r+=" ";return r+e}function cr(e,t,r){r===void 0&&(r={});var n="";if(!t)return n;var o=r,i=o.indent,a=i===void 0?0:i,s=t.fallbacks;r.format===!1&&(a=-1/0);var c=zt(r),d=c.linebreak,f=c.space;if(e&&a++,s)if(Array.isArray(s))for(var p=0;p<s.length;p++){var b=s[p];for(var h in b){var g=b[h];g!=null&&(n&&(n+=d),n+=lr(h+":"+f+_t(g)+";",a))}}else for(var m in s){var _=s[m];_!=null&&(n&&(n+=d),n+=lr(m+":"+f+_t(_)+";",a))}for(var $ in t){var y=t[$];y!=null&&$!=="fallbacks"&&(n&&(n+=d),n+=lr($+":"+f+_t(y)+";",a))}return!n&&!r.allowEmpty||!e?n:(a--,n&&(n=""+d+n+d),lr(""+e+f+"{"+n,a)+lr("}",a))}var b1=/([[\].#*$><+~=|^:(),"'`\s])/g,Of=typeof CSS<"u"&&CSS.escape,mi=function(e){return Of?Of(e):e.replace(b1,"\\$1")},kf=function(){function e(r,n,o){this.type="style",this.isProcessed=!1;var i=o.sheet,a=o.Renderer;this.key=r,this.options=o,this.style=n,i?this.renderer=i.renderer:a&&(this.renderer=new a)}var t=e.prototype;return t.prop=function(n,o,i){if(o===void 0)return this.style[n];var a=i?i.force:!1;if(!a&&this.style[n]===o)return this;var s=o;(!i||i.process!==!1)&&(s=this.options.jss.plugins.onChangeValue(o,n,this));var c=s==null||s===!1,d=n in this.style;if(c&&!d&&!a)return this;var f=c&&d;if(f?delete this.style[n]:this.style[n]=s,this.renderable&&this.renderer)return f?this.renderer.removeProperty(this.renderable,n):this.renderer.setProperty(this.renderable,n,s),this;var p=this.options.sheet;return p&&p.attached&&process.env.NODE_ENV!=="production"&&Te(!1,'[JSS] Rule is not linked. Missing sheet option "link: true".'),this},e}(),bi=function(e){Sf(t,e);function t(n,o,i){var a;a=e.call(this,n,o,i)||this;var s=i.selector,c=i.scoped,d=i.sheet,f=i.generateId;return s?a.selectorText=s:c!==!1&&(a.id=f(Cf(Cf(a)),d),a.selectorText="."+mi(a.id)),a}var r=t.prototype;return r.applyTo=function(o){var i=this.renderer;if(i){var a=this.toJSON();for(var s in a)i.setProperty(o,s,a[s])}return this},r.toJSON=function(){var o={};for(var i in this.style){var a=this.style[i];typeof a!="object"?o[i]=a:Array.isArray(a)&&(o[i]=_t(a))}return o},r.toString=function(o){var i=this.options.sheet,a=i?i.options.link:!1,s=a?C({},o,{allowEmpty:!0}):o;return cr(this.selectorText,this.style,s)},Pf(t,[{key:"selector",set:function(o){if(o!==this.selectorText){this.selectorText=o;var i=this.renderer,a=this.renderable;if(!(!a||!i)){var s=i.setSelector(a,o);s||i.replaceRule(a,this)}}},get:function(){return this.selectorText}}]),t}(kf),g1={onCreateRule:function(t,r,n){return t[0]==="@"||n.parent&&n.parent.type==="keyframes"?null:new bi(t,r,n)}},gi={indent:1,children:!0},v1=/@([\w-]+)/,_1=function(){function e(r,n,o){this.type="conditional",this.isProcessed=!1,this.key=r;var i=r.match(v1);this.at=i?i[1]:"unknown",this.query=o.name||"@"+this.at,this.options=o,this.rules=new mn(C({},o,{parent:this}));for(var a in n)this.rules.add(a,n[a]);this.rules.process()}var t=e.prototype;return t.getRule=function(n){return this.rules.get(n)},t.indexOf=function(n){return this.rules.indexOf(n)},t.addRule=function(n,o,i){var a=this.rules.add(n,o,i);return a?(this.options.jss.plugins.onProcessRule(a),a):null},t.replaceRule=function(n,o,i){var a=this.rules.replace(n,o,i);return a&&this.options.jss.plugins.onProcessRule(a),a},t.toString=function(n){n===void 0&&(n=gi);var o=zt(n),i=o.linebreak;if(n.indent==null&&(n.indent=gi.indent),n.children==null&&(n.children=gi.children),n.children===!1)return this.query+" {}";var a=this.rules.toString(n);return a?this.query+" {"+i+a+i+"}":""},e}(),y1=/@media|@supports\s+/,$1={onCreateRule:function(t,r,n){return y1.test(t)?new _1(t,r,n):null}},vi={indent:1,children:!0},x1=/@keyframes\s+([\w-]+)/,_i=function(){function e(r,n,o){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var i=r.match(x1);i&&i[1]?this.name=i[1]:(this.name="noname",process.env.NODE_ENV!=="production"&&Te(!1,"[JSS] Bad keyframes name "+r)),this.key=this.type+"-"+this.name,this.options=o;var a=o.scoped,s=o.sheet,c=o.generateId;this.id=a===!1?this.name:mi(c(this,s)),this.rules=new mn(C({},o,{parent:this}));for(var d in n)this.rules.add(d,n[d],C({},o,{parent:this}));this.rules.process()}var t=e.prototype;return t.toString=function(n){n===void 0&&(n=vi);var o=zt(n),i=o.linebreak;if(n.indent==null&&(n.indent=vi.indent),n.children==null&&(n.children=vi.children),n.children===!1)return this.at+" "+this.id+" {}";var a=this.rules.toString(n);return a&&(a=""+i+a+i),this.at+" "+this.id+" {"+a+"}"},e}(),w1=/@keyframes\s+/,E1=/\$([\w-]+)/g,yi=function(t,r){return typeof t=="string"?t.replace(E1,function(n,o){return o in r?r[o]:(process.env.NODE_ENV!=="production"&&Te(!1,'[JSS] Referenced keyframes rule "'+o+'" is not defined.'),n)}):t},Df=function(t,r,n){var o=t[r],i=yi(o,n);i!==o&&(t[r]=i)},P1={onCreateRule:function(t,r,n){return typeof t=="string"&&w1.test(t)?new _i(t,r,n):null},onProcessStyle:function(t,r,n){return r.type!=="style"||!n||("animation-name"in t&&Df(t,"animation-name",n.keyframes),"animation"in t&&Df(t,"animation",n.keyframes)),t},onChangeValue:function(t,r,n){var o=n.options.sheet;if(!o)return t;switch(r){case"animation":return yi(t,o.keyframes);case"animation-name":return yi(t,o.keyframes);default:return t}}},S1=function(e){Sf(t,e);function t(){return e.apply(this,arguments)||this}var r=t.prototype;return r.toString=function(o){var i=this.options.sheet,a=i?i.options.link:!1,s=a?C({},o,{allowEmpty:!0}):o;return cr(this.key,this.style,s)},t}(kf),C1={onCreateRule:function(t,r,n){return n.parent&&n.parent.type==="keyframes"?new S1(t,r,n):null}},T1=function(){function e(r,n,o){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=r,this.style=n,this.options=o}var t=e.prototype;return t.toString=function(n){var o=zt(n),i=o.linebreak;if(Array.isArray(this.style)){for(var a="",s=0;s<this.style.length;s++)a+=cr(this.at,this.style[s]),this.style[s+1]&&(a+=i);return a}return cr(this.at,this.style,n)},e}(),O1=/@font-face/,k1={onCreateRule:function(t,r,n){return O1.test(t)?new T1(t,r,n):null}},D1=function(){function e(r,n,o){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=r,this.style=n,this.options=o}var t=e.prototype;return t.toString=function(n){return cr(this.key,this.style,n)},e}(),I1={onCreateRule:function(t,r,n){return t==="@viewport"||t==="@-ms-viewport"?new D1(t,r,n):null}},A1=function(){function e(r,n,o){this.type="simple",this.isProcessed=!1,this.key=r,this.value=n,this.options=o}var t=e.prototype;return t.toString=function(n){if(Array.isArray(this.value)){for(var o="",i=0;i<this.value.length;i++)o+=this.key+" "+this.value[i]+";",this.value[i+1]&&(o+=`
|
|
1351
|
+
`);return o}return this.key+" "+this.value+";"},e}(),N1={"@charset":!0,"@import":!0,"@namespace":!0},M1={onCreateRule:function(t,r,n){return t in N1?new A1(t,r,n):null}},If=[g1,$1,P1,C1,k1,I1,M1],L1={process:!0},Af={force:!0,process:!0},mn=function(){function e(r){this.map={},this.raw={},this.index=[],this.counter=0,this.options=r,this.classes=r.classes,this.keyframes=r.keyframes}var t=e.prototype;return t.add=function(n,o,i){var a=this.options,s=a.parent,c=a.sheet,d=a.jss,f=a.Renderer,p=a.generateId,b=a.scoped,h=C({classes:this.classes,parent:s,sheet:c,jss:d,Renderer:f,generateId:p,scoped:b,name:n,keyframes:this.keyframes,selector:void 0},i),g=n;n in this.raw&&(g=n+"-d"+this.counter++),this.raw[g]=o,g in this.classes&&(h.selector="."+mi(this.classes[g]));var m=hi(g,o,h);if(!m)return null;this.register(m);var _=h.index===void 0?this.index.length:h.index;return this.index.splice(_,0,m),m},t.replace=function(n,o,i){var a=this.get(n),s=this.index.indexOf(a);a&&this.remove(a);var c=i;return s!==-1&&(c=C({},i,{index:s})),this.add(n,o,c)},t.get=function(n){return this.map[n]},t.remove=function(n){this.unregister(n),delete this.raw[n.key],this.index.splice(this.index.indexOf(n),1)},t.indexOf=function(n){return this.index.indexOf(n)},t.process=function(){var n=this.options.jss.plugins;this.index.slice(0).forEach(n.onProcessRule,n)},t.register=function(n){this.map[n.key]=n,n instanceof bi?(this.map[n.selector]=n,n.id&&(this.classes[n.key]=n.id)):n instanceof _i&&this.keyframes&&(this.keyframes[n.name]=n.id)},t.unregister=function(n){delete this.map[n.key],n instanceof bi?(delete this.map[n.selector],delete this.classes[n.key]):n instanceof _i&&delete this.keyframes[n.name]},t.update=function(){var n,o,i;if(typeof(arguments.length<=0?void 0:arguments[0])=="string"?(n=arguments.length<=0?void 0:arguments[0],o=arguments.length<=1?void 0:arguments[1],i=arguments.length<=2?void 0:arguments[2]):(o=arguments.length<=0?void 0:arguments[0],i=arguments.length<=1?void 0:arguments[1],n=null),n)this.updateOne(this.get(n),o,i);else for(var a=0;a<this.index.length;a++)this.updateOne(this.index[a],o,i)},t.updateOne=function(n,o,i){i===void 0&&(i=L1);var a=this.options,s=a.jss.plugins,c=a.sheet;if(n.rules instanceof e){n.rules.update(o,i);return}var d=n.style;if(s.onUpdate(o,n,c,i),i.process&&d&&d!==n.style){s.onProcessStyle(n.style,n,c);for(var f in n.style){var p=n.style[f],b=d[f];p!==b&&n.prop(f,p,Af)}for(var h in d){var g=n.style[h],m=d[h];g==null&&g!==m&&n.prop(h,null,Af)}}},t.toString=function(n){for(var o="",i=this.options.sheet,a=i?i.options.link:!1,s=zt(n),c=s.linebreak,d=0;d<this.index.length;d++){var f=this.index[d],p=f.toString(n);!p&&!a||(o&&(o+=c),o+=p)}return o},e}(),Nf=function(){function e(r,n){this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=C({},n,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),n.Renderer&&(this.renderer=new n.Renderer(this)),this.rules=new mn(this.options);for(var o in r)this.rules.add(o,r[o]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached?this:(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy(),this)},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(n,o,i){var a=this.queue;this.attached&&!a&&(this.queue=[]);var s=this.rules.add(n,o,i);return s?(this.options.jss.plugins.onProcessRule(s),this.attached?(this.deployed&&(a?a.push(s):(this.insertRule(s),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0))),s):(this.deployed=!1,s)):null},t.replaceRule=function(n,o,i){var a=this.rules.get(n);if(!a)return this.addRule(n,o,i);var s=this.rules.replace(n,o,i);return s&&this.options.jss.plugins.onProcessRule(s),this.attached?(this.deployed&&this.renderer&&(s?a.renderable&&this.renderer.replaceRule(a.renderable,s):this.renderer.deleteRule(a)),s):(this.deployed=!1,s)},t.insertRule=function(n){this.renderer&&this.renderer.insertRule(n)},t.addRules=function(n,o){var i=[];for(var a in n){var s=this.addRule(a,n[a],o);s&&i.push(s)}return i},t.getRule=function(n){return this.rules.get(n)},t.deleteRule=function(n){var o=typeof n=="object"?n:this.rules.get(n);return!o||this.attached&&!o.renderable?!1:(this.rules.remove(o),this.attached&&o.renderable&&this.renderer?this.renderer.deleteRule(o.renderable):!0)},t.indexOf=function(n){return this.rules.indexOf(n)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var n;return(n=this.rules).update.apply(n,arguments),this},t.updateOne=function(n,o,i){return this.rules.updateOne(n,o,i),this},t.toString=function(n){return this.rules.toString(n)},e}(),F1=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(n,o,i){for(var a=0;a<this.registry.onCreateRule.length;a++){var s=this.registry.onCreateRule[a](n,o,i);if(s)return s}return null},t.onProcessRule=function(n){if(!n.isProcessed){for(var o=n.options.sheet,i=0;i<this.registry.onProcessRule.length;i++)this.registry.onProcessRule[i](n,o);n.style&&this.onProcessStyle(n.style,n,o),n.isProcessed=!0}},t.onProcessStyle=function(n,o,i){for(var a=0;a<this.registry.onProcessStyle.length;a++)o.style=this.registry.onProcessStyle[a](o.style,o,i)},t.onProcessSheet=function(n){for(var o=0;o<this.registry.onProcessSheet.length;o++)this.registry.onProcessSheet[o](n)},t.onUpdate=function(n,o,i,a){for(var s=0;s<this.registry.onUpdate.length;s++)this.registry.onUpdate[s](n,o,i,a)},t.onChangeValue=function(n,o,i){for(var a=n,s=0;s<this.registry.onChangeValue.length;s++)a=this.registry.onChangeValue[s](a,o,i);return a},t.use=function(n,o){o===void 0&&(o={queue:"external"});var i=this.plugins[o.queue];i.indexOf(n)===-1&&(i.push(n),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(a,s){for(var c in s)c in a?a[c].push(s[c]):process.env.NODE_ENV!=="production"&&Te(!1,'[JSS] Unknown hook "'+c+'".');return a},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),R1=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(n){var o=this.registry,i=n.options.index;if(o.indexOf(n)===-1){if(o.length===0||i>=this.index){o.push(n);return}for(var a=0;a<o.length;a++)if(o[a].options.index>i){o.splice(a,0,n);return}}},t.reset=function(){this.registry=[]},t.remove=function(n){var o=this.registry.indexOf(n);this.registry.splice(o,1)},t.toString=function(n){for(var o=n===void 0?{}:n,i=o.attached,a=xf(o,["attached"]),s=zt(a),c=s.linebreak,d="",f=0;f<this.registry.length;f++){var p=this.registry[f];i!=null&&p.attached!==i||(d&&(d+=c),d+=p.toString(a))}return d},Pf(e,[{key:"index",get:function(){return this.registry.length===0?0:this.registry[this.registry.length-1].options.index}}]),e}(),ur=new R1,$i=typeof globalThis<"u"?globalThis:typeof window<"u"&&window.Math===Math?window:typeof self<"u"&&self.Math===Math?self:Function("return this")(),xi="2f1acc6c3a606b082e5eef5e54414ffb";$i[xi]==null&&($i[xi]=0);var Mf=$i[xi]++,z1=1e10,Lf=function(t){t===void 0&&(t={});var r=0,n=function(i,a){r+=1,r>z1&&process.env.NODE_ENV!=="production"&&Te(!1,"[JSS] You might have a memory leak. Rule counter is at "+r+".");var s="",c="";return a&&(a.options.classNamePrefix&&(c=a.options.classNamePrefix),a.options.jss.id!=null&&(s=String(a.options.jss.id))),t.minify?""+(c||"c")+Mf+s+r:c+i.key+"-"+Mf+(s?"-"+s:"")+"-"+r};return n},Ff=function(t){var r;return function(){return r||(r=t()),r}},V1=function(t,r){try{return t.attributeStyleMap?t.attributeStyleMap.get(r):t.style.getPropertyValue(r)}catch{return""}},j1=function(t,r,n){try{var o=n;if(Array.isArray(n)&&(o=_t(n)),t.attributeStyleMap)t.attributeStyleMap.set(r,o);else{var i=o?o.indexOf("!important"):-1,a=i>-1?o.substr(0,i-1):o;t.style.setProperty(r,a,i>-1?"important":"")}}catch{return!1}return!0},B1=function(t,r){try{t.attributeStyleMap?t.attributeStyleMap.delete(r):t.style.removeProperty(r)}catch(n){process.env.NODE_ENV!=="production"&&Te(!1,'[JSS] DOMException "'+n.message+'" was thrown. Tried to remove property "'+r+'".')}},W1=function(t,r){return t.selectorText=r,t.selectorText===r},Rf=Ff(function(){return document.querySelector("head")});function U1(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n.attached&&n.options.index>t.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}function K1(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}function H1(e){for(var t=Rf(),r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];if(n.nodeType===8&&n.nodeValue.trim()===e)return n}return null}function G1(e){var t=ur.registry;if(t.length>0){var r=U1(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=K1(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&typeof n=="string"){var o=H1(n);if(o)return{parent:o.parentNode,node:o.nextSibling};process.env.NODE_ENV!=="production"&&Te(!1,'[JSS] Insertion point "'+n+'" not found.')}return!1}function q1(e,t){var r=t.insertionPoint,n=G1(t);if(n!==!1&&n.parent){n.parent.insertBefore(e,n.node);return}if(r&&typeof r.nodeType=="number"){var o=r,i=o.parentNode;i?i.insertBefore(e,o.nextSibling):process.env.NODE_ENV!=="production"&&Te(!1,"[JSS] Insertion point is not in the DOM.");return}Rf().appendChild(e)}var Y1=Ff(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),zf=function(t,r,n){try{"insertRule"in t?t.insertRule(r,n):"appendRule"in t&&t.appendRule(r)}catch(o){return process.env.NODE_ENV!=="production"&&Te(!1,"[JSS] "+o.message),!1}return t.cssRules[n]},Vf=function(t,r){var n=t.cssRules.length;return r===void 0||r>n?n:r},X1=function(){var t=document.createElement("style");return t.textContent=`
|
|
1352
|
+
`,t},J1=function(){function e(r){this.getPropertyValue=V1,this.setProperty=j1,this.removeProperty=B1,this.setSelector=W1,this.hasInsertedRules=!1,this.cssRules=[],r&&ur.add(r),this.sheet=r;var n=this.sheet?this.sheet.options:{},o=n.media,i=n.meta,a=n.element;this.element=a||X1(),this.element.setAttribute("data-jss",""),o&&this.element.setAttribute("media",o),i&&this.element.setAttribute("data-meta",i);var s=Y1();s&&this.element.setAttribute("nonce",s)}var t=e.prototype;return t.attach=function(){if(!(this.element.parentNode||!this.sheet)){q1(this.element,this.sheet.options);var n=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&n&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var n=this.element.parentNode;n&&n.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent=`
|
|
1348
1353
|
`)}},t.deploy=function(){var n=this.sheet;if(n){if(n.options.link){this.insertRules(n.rules);return}this.element.textContent=`
|
|
1349
1354
|
`+n.toString()+`
|
|
1350
|
-
`}},t.insertRules=function(n,o){for(var i=0;i<n.index.length;i++)this.insertRule(n.index[i],i,o)},t.insertRule=function(n,o,i){if(i===void 0&&(i=this.element.sheet),n.rules){var a=n,s=i;if(n.type==="conditional"||n.type==="keyframes"){var c=
|
|
1355
|
+
`}},t.insertRules=function(n,o){for(var i=0;i<n.index.length;i++)this.insertRule(n.index[i],i,o)},t.insertRule=function(n,o,i){if(i===void 0&&(i=this.element.sheet),n.rules){var a=n,s=i;if(n.type==="conditional"||n.type==="keyframes"){var c=Vf(i,o);if(s=zf(i,a.toString({children:!1}),c),s===!1)return!1;this.refCssRule(n,c,s)}return this.insertRules(a.rules,s),s}var d=n.toString();if(!d)return!1;var f=Vf(i,o),p=zf(i,d,f);return p===!1?!1:(this.hasInsertedRules=!0,this.refCssRule(n,f,p),p)},t.refCssRule=function(n,o,i){n.renderable=i,n.options.parent instanceof Nf&&this.cssRules.splice(o,0,i)},t.deleteRule=function(n){var o=this.element.sheet,i=this.indexOf(n);return i===-1?!1:(o.deleteRule(i),this.cssRules.splice(i,1),!0)},t.indexOf=function(n){return this.cssRules.indexOf(n)},t.replaceRule=function(n,o){var i=this.indexOf(n);return i===-1?!1:(this.element.sheet.deleteRule(i),this.cssRules.splice(i,1),this.insertRule(o,i))},t.getRules=function(){return this.element.sheet.cssRules},e}(),Z1=0,Q1=function(){function e(r){this.id=Z1++,this.version="10.9.2",this.plugins=new F1,this.options={id:{minify:!1},createGenerateId:Lf,Renderer:sr?J1:null,plugins:[]},this.generateId=Lf({minify:!1});for(var n=0;n<If.length;n++)this.plugins.use(If[n],{queue:"internal"});this.setup(r)}var t=e.prototype;return t.setup=function(n){return n===void 0&&(n={}),n.createGenerateId&&(this.options.createGenerateId=n.createGenerateId),n.id&&(this.options.id=C({},this.options.id,n.id)),(n.createGenerateId||n.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),n.insertionPoint!=null&&(this.options.insertionPoint=n.insertionPoint),"Renderer"in n&&(this.options.Renderer=n.Renderer),n.plugins&&this.use.apply(this,n.plugins),this},t.createStyleSheet=function(n,o){o===void 0&&(o={});var i=o,a=i.index;typeof a!="number"&&(a=ur.index===0?0:ur.index+1);var s=new Nf(n,C({},o,{jss:this,generateId:o.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:a}));return this.plugins.onProcessSheet(s),s},t.removeStyleSheet=function(n){return n.detach(),ur.remove(n),this},t.createRule=function(n,o,i){if(o===void 0&&(o={}),i===void 0&&(i={}),typeof n=="object")return this.createRule(void 0,n,o);var a=C({},i,{name:n,jss:this,Renderer:this.options.Renderer});a.generateId||(a.generateId=this.generateId),a.classes||(a.classes={}),a.keyframes||(a.keyframes={});var s=hi(n,o,a);return s&&this.plugins.onProcessRule(s),s},t.use=function(){for(var n=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return i.forEach(function(s){n.plugins.use(s)}),this},e}(),wi=function(t){return new Q1(t)},Ei=typeof CSS=="object"&&CSS!=null&&"number"in CSS;function jf(e){var t=null;for(var r in e){var n=e[r],o=typeof n;if(o==="function")t||(t={}),t[r]=n;else if(o==="object"&&n!==null&&!Array.isArray(n)){var i=jf(n);i&&(t||(t={}),t[r]=i)}}return t}/**
|
|
1351
1356
|
* A better abstraction over CSS.
|
|
1352
1357
|
*
|
|
1353
1358
|
* @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
|
|
1354
1359
|
* @website https://github.com/cssinjs/jss
|
|
1355
1360
|
* @license MIT
|
|
1356
|
-
*/wi();var
|
|
1357
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
1361
|
+
*/wi();var Bf=Date.now(),Pi="fnValues"+Bf,Si="fnStyle"+ ++Bf,ex=function(){return{onCreateRule:function(r,n,o){if(typeof n!="function")return null;var i=hi(r,{},o);return i[Si]=n,i},onProcessStyle:function(r,n){if(Pi in n||Si in n)return r;var o={};for(var i in r){var a=r[i];typeof a=="function"&&(delete r[i],o[i]=a)}return n[Pi]=o,r},onUpdate:function(r,n,o,i){var a=n,s=a[Si];if(s&&(a.style=s(r)||{},process.env.NODE_ENV==="development")){for(var c in a.style)if(typeof a.style[c]=="function"){process.env.NODE_ENV!=="production"&&Te(!1,"[JSS] Function values inside function rules are not supported.");break}}var d=a[Pi];if(d)for(var f in d)a.prop(f,d[f](r),i)}}};const tx=ex;var ot="@global",Ci="@global ",rx=function(){function e(r,n,o){this.type="global",this.at=ot,this.isProcessed=!1,this.key=r,this.options=o,this.rules=new mn(C({},o,{parent:this}));for(var i in n)this.rules.add(i,n[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(n){return this.rules.get(n)},t.addRule=function(n,o,i){var a=this.rules.add(n,o,i);return a&&this.options.jss.plugins.onProcessRule(a),a},t.replaceRule=function(n,o,i){var a=this.rules.replace(n,o,i);return a&&this.options.jss.plugins.onProcessRule(a),a},t.indexOf=function(n){return this.rules.indexOf(n)},t.toString=function(n){return this.rules.toString(n)},e}(),nx=function(){function e(r,n,o){this.type="global",this.at=ot,this.isProcessed=!1,this.key=r,this.options=o;var i=r.substr(Ci.length);this.rule=o.jss.createRule(i,n,C({},o,{parent:this}))}var t=e.prototype;return t.toString=function(n){return this.rule?this.rule.toString(n):""},e}(),ox=/\s*,\s*/g;function Wf(e,t){for(var r=e.split(ox),n="",o=0;o<r.length;o++)n+=t+" "+r[o].trim(),r[o+1]&&(n+=", ");return n}function ix(e,t){var r=e.options,n=e.style,o=n?n[ot]:null;if(o){for(var i in o)t.addRule(i,o[i],C({},r,{selector:Wf(i,e.selector)}));delete n[ot]}}function ax(e,t){var r=e.options,n=e.style;for(var o in n)if(!(o[0]!=="@"||o.substr(0,ot.length)!==ot)){var i=Wf(o.substr(ot.length),e.selector);t.addRule(i,n[o],C({},r,{selector:i})),delete n[o]}}function sx(){function e(r,n,o){if(!r)return null;if(r===ot)return new rx(r,n,o);if(r[0]==="@"&&r.substr(0,Ci.length)===Ci)return new nx(r,n,o);var i=o.parent;return i&&(i.type==="global"||i.options.parent&&i.options.parent.type==="global")&&(o.scoped=!1),!o.selector&&o.scoped===!1&&(o.selector=r),null}function t(r,n){r.type!=="style"||!n||(ix(r,n),ax(r,n))}return{onCreateRule:e,onProcessRule:t}}var Uf=/\s*,\s*/g,lx=/&/g,cx=/\$([\w-]+)/g;function ux(){function e(o,i){return function(a,s){var c=o.getRule(s)||i&&i.getRule(s);return c?c.selector:(process.env.NODE_ENV!=="production"&&Te(!1,'[JSS] Could not find the referenced rule "'+s+'" in "'+(o.options.meta||o.toString())+'".'),s)}}function t(o,i){for(var a=i.split(Uf),s=o.split(Uf),c="",d=0;d<a.length;d++)for(var f=a[d],p=0;p<s.length;p++){var b=s[p];c&&(c+=", "),c+=b.indexOf("&")!==-1?b.replace(lx,f):f+" "+b}return c}function r(o,i,a){if(a)return C({},a,{index:a.index+1});var s=o.options.nestingLevel;s=s===void 0?1:s+1;var c=C({},o.options,{nestingLevel:s,index:i.indexOf(o)+1});return delete c.name,c}function n(o,i,a){if(i.type!=="style")return o;var s=i,c=s.options.parent,d,f;for(var p in o){var b=p.indexOf("&")!==-1,h=p[0]==="@";if(!(!b&&!h)){if(d=r(s,c,d),b){var g=t(p,s.selector);f||(f=e(c,a)),g=g.replace(cx,f);var m=s.key+"-"+p;"replaceRule"in c?c.replaceRule(m,o[p],C({},d,{selector:g})):c.addRule(m,o[p],C({},d,{selector:g}))}else h&&c.addRule(p,{},d).addRule(s.key,o[p],{selector:s.selector});delete o[p]}}return o}return{onProcessStyle:n}}var dx=/[A-Z]/g,fx=/^ms-/,Ti={};function px(e){return"-"+e.toLowerCase()}function Kf(e){if(Ti.hasOwnProperty(e))return Ti[e];var t=e.replace(dx,px);return Ti[e]=fx.test(t)?"-"+t:t}function bn(e){var t={};for(var r in e){var n=r.indexOf("--")===0?r:Kf(r);t[n]=e[r]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(bn):t.fallbacks=bn(e.fallbacks)),t}function hx(){function e(r){if(Array.isArray(r)){for(var n=0;n<r.length;n++)r[n]=bn(r[n]);return r}return bn(r)}function t(r,n,o){if(n.indexOf("--")===0)return r;var i=Kf(n);return n===i?r:(o.prop(i,r),null)}return{onProcessStyle:e,onChangeValue:t}}var O=Ei&&CSS?CSS.px:"px",gn=Ei&&CSS?CSS.ms:"ms",Vt=Ei&&CSS?CSS.percent:"%",mx={"animation-delay":gn,"animation-duration":gn,"background-position":O,"background-position-x":O,"background-position-y":O,"background-size":O,border:O,"border-bottom":O,"border-bottom-left-radius":O,"border-bottom-right-radius":O,"border-bottom-width":O,"border-left":O,"border-left-width":O,"border-radius":O,"border-right":O,"border-right-width":O,"border-top":O,"border-top-left-radius":O,"border-top-right-radius":O,"border-top-width":O,"border-width":O,"border-block":O,"border-block-end":O,"border-block-end-width":O,"border-block-start":O,"border-block-start-width":O,"border-block-width":O,"border-inline":O,"border-inline-end":O,"border-inline-end-width":O,"border-inline-start":O,"border-inline-start-width":O,"border-inline-width":O,"border-start-start-radius":O,"border-start-end-radius":O,"border-end-start-radius":O,"border-end-end-radius":O,margin:O,"margin-bottom":O,"margin-left":O,"margin-right":O,"margin-top":O,"margin-block":O,"margin-block-end":O,"margin-block-start":O,"margin-inline":O,"margin-inline-end":O,"margin-inline-start":O,padding:O,"padding-bottom":O,"padding-left":O,"padding-right":O,"padding-top":O,"padding-block":O,"padding-block-end":O,"padding-block-start":O,"padding-inline":O,"padding-inline-end":O,"padding-inline-start":O,"mask-position-x":O,"mask-position-y":O,"mask-size":O,height:O,width:O,"min-height":O,"max-height":O,"min-width":O,"max-width":O,bottom:O,left:O,top:O,right:O,inset:O,"inset-block":O,"inset-block-end":O,"inset-block-start":O,"inset-inline":O,"inset-inline-end":O,"inset-inline-start":O,"box-shadow":O,"text-shadow":O,"column-gap":O,"column-rule":O,"column-rule-width":O,"column-width":O,"font-size":O,"font-size-delta":O,"letter-spacing":O,"text-decoration-thickness":O,"text-indent":O,"text-stroke":O,"text-stroke-width":O,"word-spacing":O,motion:O,"motion-offset":O,outline:O,"outline-offset":O,"outline-width":O,perspective:O,"perspective-origin-x":Vt,"perspective-origin-y":Vt,"transform-origin":Vt,"transform-origin-x":Vt,"transform-origin-y":Vt,"transform-origin-z":Vt,"transition-delay":gn,"transition-duration":gn,"vertical-align":O,"flex-basis":O,"shape-margin":O,size:O,gap:O,grid:O,"grid-gap":O,"row-gap":O,"grid-row-gap":O,"grid-column-gap":O,"grid-template-rows":O,"grid-template-columns":O,"grid-auto-rows":O,"grid-auto-columns":O,"box-shadow-x":O,"box-shadow-y":O,"box-shadow-blur":O,"box-shadow-spread":O,"font-line-height":O,"text-shadow-x":O,"text-shadow-y":O,"text-shadow-blur":O};function Hf(e){var t=/(-[a-z])/g,r=function(a){return a[1].toUpperCase()},n={};for(var o in e)n[o]=e[o],n[o.replace(t,r)]=e[o];return n}var bx=Hf(mx);function dr(e,t,r){if(t==null)return t;if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]=dr(e,t[n],r);else if(typeof t=="object")if(e==="fallbacks")for(var o in t)t[o]=dr(o,t[o],r);else for(var i in t)t[i]=dr(e+"-"+i,t[i],r);else if(typeof t=="number"&&isNaN(t)===!1){var a=r[e]||bx[e];return a&&!(t===0&&a===O)?typeof a=="function"?a(t).toString():""+t+a:t.toString()}return t}function gx(e){e===void 0&&(e={});var t=Hf(e);function r(o,i){if(i.type!=="style")return o;for(var a in o)o[a]=dr(a,o[a],t);return o}function n(o,i){return dr(i,o,t)}return{onProcessStyle:r,onChangeValue:n}}function Oi(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function vx(e){if(Array.isArray(e))return Oi(e)}function _x(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function yx(e,t){if(e){if(typeof e=="string")return Oi(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Oi(e,t)}}function $x(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
1362
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xx(e){return vx(e)||_x(e)||yx(e)||$x()}var fr="",ki="",Gf="",qf="",wx=sr&&"ontouchstart"in document.documentElement;if(sr){var Di={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},Ex=document.createElement("p"),Ii=Ex.style,Px="Transform";for(var Ai in Di)if(Ai+Px in Ii){fr=Ai,ki=Di[Ai];break}fr==="Webkit"&&"msHyphens"in Ii&&(fr="ms",ki=Di.ms,qf="edge"),fr==="Webkit"&&"-apple-trailing-word"in Ii&&(Gf="apple")}var re={js:fr,css:ki,vendor:Gf,browser:qf,isTouch:wx};function Sx(e){return e[1]==="-"||re.js==="ms"?e:"@"+re.css+"keyframes"+e.substr(10)}var Cx={noPrefill:["appearance"],supportedProperty:function(t){return t!=="appearance"?!1:re.js==="ms"?"-webkit-"+t:re.css+t}},Tx={noPrefill:["color-adjust"],supportedProperty:function(t){return t!=="color-adjust"?!1:re.js==="Webkit"?re.css+"print-"+t:t}},Ox=/[-\s]+(.)?/g;function kx(e,t){return t?t.toUpperCase():""}function Ni(e){return e.replace(Ox,kx)}function it(e){return Ni("-"+e)}var Dx={noPrefill:["mask"],supportedProperty:function(t,r){if(!/^mask/.test(t))return!1;if(re.js==="Webkit"){var n="mask-image";if(Ni(n)in r)return t;if(re.js+it(n)in r)return re.css+t}return t}},Ix={noPrefill:["text-orientation"],supportedProperty:function(t){return t!=="text-orientation"?!1:re.vendor==="apple"&&!re.isTouch?re.css+t:t}},Ax={noPrefill:["transform"],supportedProperty:function(t,r,n){return t!=="transform"?!1:n.transform?t:re.css+t}},Nx={noPrefill:["transition"],supportedProperty:function(t,r,n){return t!=="transition"?!1:n.transition?t:re.css+t}},Mx={noPrefill:["writing-mode"],supportedProperty:function(t){return t!=="writing-mode"?!1:re.js==="Webkit"||re.js==="ms"&&re.browser!=="edge"?re.css+t:t}},Lx={noPrefill:["user-select"],supportedProperty:function(t){return t!=="user-select"?!1:re.js==="Moz"||re.js==="ms"||re.vendor==="apple"?re.css+t:t}},Fx={supportedProperty:function(t,r){if(!/^break-/.test(t))return!1;if(re.js==="Webkit"){var n="WebkitColumn"+it(t);return n in r?re.css+"column-"+t:!1}if(re.js==="Moz"){var o="page"+it(t);return o in r?"page-"+t:!1}return!1}},Rx={supportedProperty:function(t,r){if(!/^(border|margin|padding)-inline/.test(t))return!1;if(re.js==="Moz")return t;var n=t.replace("-inline","");return re.js+it(n)in r?re.css+n:!1}},zx={supportedProperty:function(t,r){return Ni(t)in r?t:!1}},Vx={supportedProperty:function(t,r){var n=it(t);return t[0]==="-"||t[0]==="-"&&t[1]==="-"?t:re.js+n in r?re.css+t:re.js!=="Webkit"&&"Webkit"+n in r?"-webkit-"+t:!1}},jx={supportedProperty:function(t){return t.substring(0,11)!=="scroll-snap"?!1:re.js==="ms"?""+re.css+t:t}},Bx={supportedProperty:function(t){return t!=="overscroll-behavior"?!1:re.js==="ms"?re.css+"scroll-chaining":t}},Wx={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},Ux={supportedProperty:function(t,r){var n=Wx[t];return n&&re.js+it(n)in r?re.css+n:!1}},Yf={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},Kx=Object.keys(Yf),Hx=function(t){return re.css+t},Gx={supportedProperty:function(t,r,n){var o=n.multiple;if(Kx.indexOf(t)>-1){var i=Yf[t];if(!Array.isArray(i))return re.js+it(i)in r?re.css+i:!1;if(!o)return!1;for(var a=0;a<i.length;a++)if(!(re.js+it(i[0])in r))return!1;return i.map(Hx)}return!1}},Xf=[Cx,Tx,Dx,Ix,Ax,Nx,Mx,Lx,Fx,Rx,zx,Vx,jx,Bx,Ux,Gx],Jf=Xf.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),qx=Xf.filter(function(e){return e.noPrefill}).reduce(function(e,t){return e.push.apply(e,xx(t.noPrefill)),e},[]),pr,yt={};if(sr){pr=document.createElement("p");var Mi=window.getComputedStyle(document.documentElement,"");for(var Li in Mi)isNaN(Li)||(yt[Mi[Li]]=Mi[Li]);qx.forEach(function(e){return delete yt[e]})}function Fi(e,t){if(t===void 0&&(t={}),!pr)return e;if(process.env.NODE_ENV!=="benchmark"&&yt[e]!=null)return yt[e];(e==="transition"||e==="transform")&&(t[e]=e in pr.style);for(var r=0;r<Jf.length&&(yt[e]=Jf[r](e,pr.style,t),!yt[e]);r++);try{pr.style[e]=""}catch{return!1}return yt[e]}var jt={},Yx={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},Xx=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g,at;function Jx(e,t,r){if(t==="var")return"var";if(t==="all")return"all";if(r==="all")return", all";var n=t?Fi(t):", "+Fi(r);return n||t||r}sr&&(at=document.createElement("p"));function Zf(e,t){var r=t;if(!at||e==="content")return t;if(typeof r!="string"||!isNaN(parseInt(r,10)))return r;var n=e+r;if(process.env.NODE_ENV!=="benchmark"&&jt[n]!=null)return jt[n];try{at.style[e]=r}catch{return jt[n]=!1,!1}if(Yx[e])r=r.replace(Xx,Jx);else if(at.style[e]===""&&(r=re.css+r,r==="-ms-flex"&&(at.style[e]="-ms-flexbox"),at.style[e]=r,at.style[e]===""))return jt[n]=!1,!1;return at.style[e]="",jt[n]=r,jt[n]}function Zx(){function e(o){if(o.type==="keyframes"){var i=o;i.at=Sx(i.at)}}function t(o){for(var i in o){var a=o[i];if(i==="fallbacks"&&Array.isArray(a)){o[i]=a.map(t);continue}var s=!1,c=Fi(i);c&&c!==i&&(s=!0);var d=!1,f=Zf(c,_t(a));f&&f!==a&&(d=!0),(s||d)&&(s&&delete o[i],o[c||i]=f||a)}return o}function r(o,i){return i.type!=="style"?o:t(o)}function n(o,i){return Zf(i,_t(o))||o}return{onProcessRule:e,onProcessStyle:r,onChangeValue:n}}function Qx(){var e=function(r,n){return r.length===n.length?r>n?1:-1:r.length-n.length};return{onProcessStyle:function(r,n){if(n.type!=="style")return r;for(var o={},i=Object.keys(r).sort(e),a=0;a<i.length;a++)o[i[a]]=r[i[a]];return o}}}function Qf(){return{plugins:[tx(),sx(),ux(),hx(),gx(),typeof window>"u"?null:Zx(),Qx()]}}function ep(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.baseClasses,r=e.newClasses,n=e.Component;if(!r)return t;var o=C({},t);return process.env.NODE_ENV!=="production"&&typeof r=="string"?(console.error(["Material-UI: The value `".concat(r,"` ")+"provided to the classes prop of ".concat(ar(n)," is incorrect."),"You might want to use the className prop instead."].join(`
|
|
1358
1363
|
`)),t):(Object.keys(r).forEach(function(i){process.env.NODE_ENV!=="production"&&(!t[i]&&r[i]&&console.error(["Material-UI: The key `".concat(i,"` ")+"provided to the classes prop is not implemented in ".concat(ar(n),"."),"You can only override one of the following: ".concat(Object.keys(t).join(","),".")].join(`
|
|
1359
1364
|
`)),r[i]&&typeof r[i]!="string"&&console.error(["Material-UI: The key `".concat(i,"` ")+"provided to the classes prop is not valid for ".concat(ar(n),"."),"You need to provide a non empty string instead of: ".concat(r[i],".")].join(`
|
|
1360
|
-
`))),r[i]&&(o[i]="".concat(t[i]," ").concat(r[i]))}),o)}var
|
|
1361
|
-
`)),zi}var
|
|
1362
|
-
`)),{create:function(n,o){var i;try{i=t?e(n):e}catch(c){throw process.env.NODE_ENV!=="production"&&t===!0&&n===
|
|
1365
|
+
`))),r[i]&&(o[i]="".concat(t[i]," ").concat(r[i]))}),o)}var ew={set:function(t,r,n,o){var i=t.get(r);i||(i=new Map,t.set(r,i)),i.set(n,o)},get:function(t,r,n){var o=t.get(r);return o?o.get(n):void 0},delete:function(t,r,n){var o=t.get(r);o.delete(n)}};const Bt=ew;var tp=l.createContext(null);process.env.NODE_ENV!=="production"&&(tp.displayName="ThemeContext");const tw=tp;function rp(){var e=l.useContext(tw);return process.env.NODE_ENV!=="production"&&l.useDebugValue(e),e}var rw=wi(Qf()),nw=f1(),ow=new Map,iw={disableGeneration:!1,generateClassName:nw,jss:rw,sheetsCache:null,sheetsManager:ow,sheetsRegistry:null},vn=l.createContext(iw);process.env.NODE_ENV!=="production"&&(vn.displayName="StylesContext");var _n;function Ri(e){var t=e.children,r=e.injectFirst,n=r===void 0?!1:r,o=e.disableGeneration,i=o===void 0?!1:o,a=Re(e,["children","injectFirst","disableGeneration"]),s=l.useContext(vn),c=C({},s,{disableGeneration:i},a);if(process.env.NODE_ENV!=="production"&&typeof window>"u"&&!c.sheetsManager&&console.error("Material-UI: You need to use the ServerStyleSheets API when rendering on the server."),process.env.NODE_ENV!=="production"&&c.jss.options.insertionPoint&&n&&console.error("Material-UI: You cannot use a custom insertionPoint and <StylesContext injectFirst> at the same time."),process.env.NODE_ENV!=="production"&&n&&a.jss&&console.error("Material-UI: You cannot use the jss and injectFirst props at the same time."),!c.jss.options.insertionPoint&&n&&typeof window<"u"){if(!_n){var d=document.head;_n=document.createComment("mui-inject-first"),d.insertBefore(_n,d.firstChild)}c.jss=wi({plugins:Qf().plugins,insertionPoint:_n})}return l.createElement(vn.Provider,{value:c},t)}process.env.NODE_ENV!=="production"&&(Ri.propTypes={children:ce.node.isRequired,disableGeneration:ce.bool,generateClassName:ce.func,injectFirst:ce.bool,jss:ce.object,serverGenerateClassName:ce.func,sheetsCache:ce.object,sheetsManager:ce.object,sheetsRegistry:ce.object}),process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(Ri.propTypes=i1(Ri.propTypes));var zi=-1e9;function aw(){return zi+=1,process.env.NODE_ENV!=="production"&&zi>=0&&console.warn(["Material-UI: You might have a memory leak.","The indexCounter is not supposed to grow that much."].join(`
|
|
1366
|
+
`)),zi}var sw={};const np=sw;function lw(e){var t=typeof e=="function";return process.env.NODE_ENV!=="production"&&nt(e)!=="object"&&!t&&console.error(["Material-UI: The `styles` argument provided is invalid.","You need to provide a function generating the styles or a styles object."].join(`
|
|
1367
|
+
`)),{create:function(n,o){var i;try{i=t?e(n):e}catch(c){throw process.env.NODE_ENV!=="production"&&t===!0&&n===np&&console.error(["Material-UI: The `styles` argument provided is invalid.","You are providing a function without a theme in the context.","One of the parent elements needs to use a ThemeProvider."].join(`
|
|
1363
1368
|
`)),c}if(!o||!n.overrides||!n.overrides[o])return i;var a=n.overrides[o],s=C({},i);return Object.keys(a).forEach(function(c){process.env.NODE_ENV!=="production"&&(s[c]||console.warn(["Material-UI: You are trying to override a style that does not exist.","Fix the `".concat(c,"` key of `theme.overrides.").concat(o,"`.")].join(`
|
|
1364
|
-
`))),s[c]=Rt(s[c],a[c])}),s},options:{}}}function
|
|
1365
|
-
`));var d=s;if(process.env.NODE_ENV!=="production"&&!s){var f=ar(n);f!==void 0&&(d=f)}var p=
|
|
1366
|
-
`)))),r[g]}return C({keys:st,values:r,up:c,down:d,between:f,only:p,width:h},s)}function
|
|
1369
|
+
`))),s[c]=Rt(s[c],a[c])}),s},options:{}}}function cw(e,t,r){var n=e.state,o=e.stylesOptions;if(o.disableGeneration)return t||{};n.cacheClasses||(n.cacheClasses={value:null,lastProp:null,lastJSS:{}});var i=!1;return n.classes!==n.cacheClasses.lastJSS&&(n.cacheClasses.lastJSS=n.classes,i=!0),t!==n.cacheClasses.lastProp&&(n.cacheClasses.lastProp=t,i=!0),i&&(n.cacheClasses.value=ep({baseClasses:n.cacheClasses.lastJSS,newClasses:t,Component:r})),n.cacheClasses.value}function uw(e,t){var r=e.state,n=e.theme,o=e.stylesOptions,i=e.stylesCreator,a=e.name;if(!o.disableGeneration){var s=Bt.get(o.sheetsManager,i,n);s||(s={refs:0,staticSheet:null,dynamicStyles:null},Bt.set(o.sheetsManager,i,n,s));var c=C({},i.options,o,{theme:n,flip:typeof o.flip=="boolean"?o.flip:n.direction==="rtl"});c.generateId=c.serverGenerateClassName||c.generateClassName;var d=o.sheetsRegistry;if(s.refs===0){var f;o.sheetsCache&&(f=Bt.get(o.sheetsCache,i,n));var p=i.create(n,a);f||(f=o.jss.createStyleSheet(p,C({link:!1},c)),f.attach(),o.sheetsCache&&Bt.set(o.sheetsCache,i,n,f)),d&&d.add(f),s.staticSheet=f,s.dynamicStyles=jf(p)}if(s.dynamicStyles){var b=o.jss.createStyleSheet(s.dynamicStyles,C({link:!0},c));b.update(t),b.attach(),r.dynamicSheet=b,r.classes=ep({baseClasses:s.staticSheet.classes,newClasses:b.classes}),d&&d.add(b)}else r.classes=s.staticSheet.classes;s.refs+=1}}function dw(e,t){var r=e.state;r.dynamicSheet&&r.dynamicSheet.update(t)}function fw(e){var t=e.state,r=e.theme,n=e.stylesOptions,o=e.stylesCreator;if(!n.disableGeneration){var i=Bt.get(n.sheetsManager,o,r);i.refs-=1;var a=n.sheetsRegistry;i.refs===0&&(Bt.delete(n.sheetsManager,o,r),n.jss.removeStyleSheet(i.staticSheet),a&&a.remove(i.staticSheet)),t.dynamicSheet&&(n.jss.removeStyleSheet(t.dynamicSheet),a&&a.remove(t.dynamicSheet))}}function pw(e,t){var r=l.useRef([]),n,o=l.useMemo(function(){return{}},t);r.current!==o&&(r.current=o,n=e()),l.useEffect(function(){return function(){n&&n()}},[o])}function hw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.name,n=t.classNamePrefix,o=t.Component,i=t.defaultTheme,a=i===void 0?np:i,s=Re(t,["name","classNamePrefix","Component","defaultTheme"]),c=lw(e),d=r||n||"makeStyles";c.options={index:aw(),name:r,meta:d,classNamePrefix:d};var f=function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},h=rp()||a,g=C({},l.useContext(vn),s),m=l.useRef(),_=l.useRef();pw(function(){var y={name:r,state:{},stylesCreator:c,stylesOptions:g,theme:h};return uw(y,b),_.current=!1,m.current=y,function(){fw(y)}},[h,c]),l.useEffect(function(){_.current&&dw(m.current,b),_.current=!0});var $=cw(m.current,b.classes,o);return process.env.NODE_ENV!=="production"&&l.useDebugValue($),$};return f}var Vi=$t,mw={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},bw={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},gw={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},op={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ji={};ji[Vi.ForwardRef]=gw,ji[Vi.Memo]=op;function ip(e){return Vi.isMemo(e)?op:ji[e.$$typeof]||mw}var vw=Object.defineProperty,_w=Object.getOwnPropertyNames,ap=Object.getOwnPropertySymbols,yw=Object.getOwnPropertyDescriptor,$w=Object.getPrototypeOf,sp=Object.prototype;function lp(e,t,r){if(typeof t!="string"){if(sp){var n=$w(t);n&&n!==sp&&lp(e,n,r)}var o=_w(t);ap&&(o=o.concat(ap(t)));for(var i=ip(e),a=ip(t),s=0;s<o.length;++s){var c=o[s];if(!bw[c]&&!(r&&r[c])&&!(a&&a[c])&&!(i&&i[c])){var d=yw(t,c);try{vw(e,c,d)}catch{}}}}return e}var xw=lp,ww=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function(n){var o=r.defaultTheme,i=r.withTheme,a=i===void 0?!1:i,s=r.name,c=Re(r,["defaultTheme","withTheme","name"]);if(process.env.NODE_ENV!=="production"&&n===void 0)throw new Error(["You are calling withStyles(styles)(Component) with an undefined component.","You may have forgotten to import it."].join(`
|
|
1370
|
+
`));var d=s;if(process.env.NODE_ENV!=="production"&&!s){var f=ar(n);f!==void 0&&(d=f)}var p=hw(t,C({defaultTheme:o,Component:n,name:s||n.displayName,classNamePrefix:d},c)),b=l.forwardRef(function(g,m){g.classes;var _=g.innerRef,$=Re(g,["classes","innerRef"]),y=p(C({},n.defaultProps,g)),E,v=$;return(typeof s=="string"||a)&&(E=rp()||o,s&&(v=p1({theme:E,name:s,props:$})),a&&!v.theme&&(v.theme=E)),l.createElement(n,C({ref:_||m,classes:y},v))});return process.env.NODE_ENV!=="production"&&(b.propTypes={classes:ce.object,innerRef:uf(ce.oneOfType([ce.func,ce.object]),function(h){return h.innerRef==null,null})}),process.env.NODE_ENV!=="production"&&(b.displayName="WithStyles(".concat(ar(n),")")),xw(b,n),process.env.NODE_ENV!=="production"&&(b.Naked=n,b.options=r,b.useStyles=p),b}};const Ew=ww;var st=["xs","sm","md","lg","xl"];function Pw(e){var t=e.values,r=t===void 0?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,n=e.unit,o=n===void 0?"px":n,i=e.step,a=i===void 0?5:i,s=Re(e,["values","unit","step"]);function c(g){var m=typeof r[g]=="number"?r[g]:g;return"@media (min-width:".concat(m).concat(o,")")}function d(g){var m=st.indexOf(g)+1,_=r[st[m]];if(m===st.length)return c("xs");var $=typeof _=="number"&&m>0?_:g;return"@media (max-width:".concat($-a/100).concat(o,")")}function f(g,m){var _=st.indexOf(m);return _===st.length-1?c(g):"@media (min-width:".concat(typeof r[g]=="number"?r[g]:g).concat(o,") and ")+"(max-width:".concat((_!==-1&&typeof r[st[_+1]]=="number"?r[st[_+1]]:m)-a/100).concat(o,")")}function p(g){return f(g,g)}var b=!1;function h(g){return process.env.NODE_ENV!=="production"&&(b||(b=!0,console.warn(["Material-UI: The `theme.breakpoints.width` utility is deprecated because it's redundant.","Use the `theme.breakpoints.values` instead."].join(`
|
|
1371
|
+
`)))),r[g]}return C({keys:st,values:r,up:c,down:d,between:f,only:p,width:h},s)}function Sw(e,t,r){var n;return C({gutters:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:",`
|
|
1367
1372
|
paddingLeft: theme.spacing(2),
|
|
1368
1373
|
paddingRight: theme.spacing(2),
|
|
1369
1374
|
[theme.breakpoints.up('sm')]: {
|
|
@@ -1371,7 +1376,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1371
1376
|
paddingRight: theme.spacing(3),
|
|
1372
1377
|
},
|
|
1373
1378
|
`].join(`
|
|
1374
|
-
`)),C({paddingLeft:t(2),paddingRight:t(2)},i,ir({},e.up("sm"),C({paddingLeft:t(3),paddingRight:t(3)},i[e.up("sm")])))},toolbar:(n={minHeight:56},ir(n,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),ir(n,e.up("sm"),{minHeight:64}),n)},r)}var
|
|
1379
|
+
`)),C({paddingLeft:t(2),paddingRight:t(2)},i,ir({},e.up("sm"),C({paddingLeft:t(3),paddingRight:t(3)},i[e.up("sm")])))},toolbar:(n={minHeight:56},ir(n,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),ir(n,e.up("sm"),{minHeight:64}),n)},r)}var Cw={black:"#000",white:"#fff"};const yn=Cw;var Tw={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};const Bi=Tw;var Ow={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};const Wi=Ow;var kw={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};const Ui=kw;var Dw={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};const Ki=Dw;var Iw={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};const Hi=Iw;var Aw={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};const Gi=Aw;var Nw={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};const qi=Nw;function cp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error("Material-UI: The value provided ".concat(e," is out of range [").concat(t,", ").concat(r,"].")),Math.min(Math.max(t,e),r)}function Mw(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&r[0].length===1&&(r=r.map(function(n){return n+n})),r?"rgb".concat(r.length===4?"a":"","(").concat(r.map(function(n,o){return o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3}).join(", "),")"):""}function Lw(e){e=Wt(e);var t=e,r=t.values,n=r[0],o=r[1]/100,i=r[2]/100,a=o*Math.min(i,1-i),s=function(p){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:(p+n/30)%12;return i-a*Math.max(Math.min(b-3,9-b,1),-1)},c="rgb",d=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(c+="a",d.push(r[3])),Yi({type:c,values:d})}function Wt(e){if(e.type)return e;if(e.charAt(0)==="#")return Wt(Mw(e));var t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla"].indexOf(r)===-1)throw new Error(process.env.NODE_ENV!=="production"?"Material-UI: Unsupported `".concat(e,"` color.\nWe support the following formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()."):hn(3,e));var n=e.substring(t+1,e.length-1).split(",");return n=n.map(function(o){return parseFloat(o)}),{type:r,values:n}}function Yi(e){var t=e.type,r=e.values;return t.indexOf("rgb")!==-1?r=r.map(function(n,o){return o<3?parseInt(n,10):n}):t.indexOf("hsl")!==-1&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}function up(e,t){var r=dp(e),n=dp(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function dp(e){e=Wt(e);var t=e.type==="hsl"?Wt(Lw(e)).values:e.values;return t=t.map(function(r){return r/=255,r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Fw(e,t){if(e=Wt(e),t=cp(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1)for(var r=0;r<3;r+=1)e.values[r]*=1-t;return Yi(e)}function Rw(e,t){if(e=Wt(e),t=cp(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(var r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;return Yi(e)}var fp={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:yn.white,default:Bi[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},Xi={text:{primary:yn.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:Bi[800],default:"#303030"},action:{active:yn.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function pp(e,t,r,n){var o=n.light||n,i=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Rw(e.main,o):t==="dark"&&(e.dark=Fw(e.main,i)))}function zw(e){var t=e.primary,r=t===void 0?{light:Wi[300],main:Wi[500],dark:Wi[700]}:t,n=e.secondary,o=n===void 0?{light:Ui.A200,main:Ui.A400,dark:Ui.A700}:n,i=e.error,a=i===void 0?{light:Ki[300],main:Ki[500],dark:Ki[700]}:i,s=e.warning,c=s===void 0?{light:Hi[300],main:Hi[500],dark:Hi[700]}:s,d=e.info,f=d===void 0?{light:Gi[300],main:Gi[500],dark:Gi[700]}:d,p=e.success,b=p===void 0?{light:qi[300],main:qi[500],dark:qi[700]}:p,h=e.type,g=h===void 0?"light":h,m=e.contrastThreshold,_=m===void 0?3:m,$=e.tonalOffset,y=$===void 0?.2:$,E=Re(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function v(M){var F=up(M,Xi.text.primary)>=_?Xi.text.primary:fp.text.primary;if(process.env.NODE_ENV!=="production"){var G=up(M,F);G<3&&console.error(["Material-UI: The contrast ratio of ".concat(G,":1 for ").concat(F," on ").concat(M),"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
|
|
1375
1380
|
`))}return F}var A=function(F){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:500,S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:300,q=arguments.length>3&&arguments[3]!==void 0?arguments[3]:700;if(F=C({},F),!F.main&&F[G]&&(F.main=F[G]),!F.main)throw new Error(process.env.NODE_ENV!=="production"?"Material-UI: The color provided to augmentColor(color) is invalid.\nThe color object needs to have a `main` property or a `".concat(G,"` property."):hn(4,G));if(typeof F.main!="string")throw new Error(process.env.NODE_ENV!=="production"?"Material-UI: The color provided to augmentColor(color) is invalid.\n`color.main` should be a string, but `".concat(JSON.stringify(F.main),`\` was provided instead.
|
|
1376
1381
|
|
|
1377
1382
|
Did you intend to use one of the following approaches?
|
|
@@ -1384,14 +1389,14 @@ const theme1 = createTheme({ palette: {
|
|
|
1384
1389
|
|
|
1385
1390
|
const theme2 = createTheme({ palette: {
|
|
1386
1391
|
primary: { main: green[500] },
|
|
1387
|
-
} });`):hn(5,JSON.stringify(F.main)));return
|
|
1388
|
-
`)),
|
|
1392
|
+
} });`):hn(5,JSON.stringify(F.main)));return pp(F,"light",S,y),pp(F,"dark",q,y),F.contrastText||(F.contrastText=v(F.main)),F},L={dark:Xi,light:fp};process.env.NODE_ENV!=="production"&&(L[g]||console.error("Material-UI: The palette type `".concat(g,"` is not supported.")));var T=Rt(C({common:yn,type:g,primary:A(r),secondary:A(o,"A400","A200","A700"),error:A(a),warning:A(c),info:A(f),success:A(b),grey:Bi,contrastThreshold:_,getContrastText:v,augmentColor:A,tonalOffset:y},L[g]),E);return T}function hp(e){return Math.round(e*1e5)/1e5}var mp=!1;function Vw(e){return process.env.NODE_ENV!=="production"&&(mp||(console.warn(["Material-UI: The `theme.typography.round` helper is deprecated.","Head to https://mui.com/r/migration-v4/#theme for a migration path."].join(`
|
|
1393
|
+
`)),mp=!0)),hp(e)}var bp={textTransform:"uppercase"},gp='"Roboto", "Helvetica", "Arial", sans-serif';function jw(e,t){var r=typeof t=="function"?t(e):t,n=r.fontFamily,o=n===void 0?gp:n,i=r.fontSize,a=i===void 0?14:i,s=r.fontWeightLight,c=s===void 0?300:s,d=r.fontWeightRegular,f=d===void 0?400:d,p=r.fontWeightMedium,b=p===void 0?500:p,h=r.fontWeightBold,g=h===void 0?700:h,m=r.htmlFontSize,_=m===void 0?16:m,$=r.allVariants,y=r.pxToRem,E=Re(r,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);process.env.NODE_ENV!=="production"&&(typeof a!="number"&&console.error("Material-UI: `fontSize` is required to be a number."),typeof _!="number"&&console.error("Material-UI: `htmlFontSize` is required to be a number."));var v=a/14,A=y||function(M){return"".concat(M/_*v,"rem")},L=function(F,G,S,q,D){return C({fontFamily:o,fontWeight:F,fontSize:A(G),lineHeight:S},o===gp?{letterSpacing:"".concat(hp(q/G),"em")}:{},D,$)},T={h1:L(c,96,1.167,-1.5),h2:L(c,60,1.2,-.5),h3:L(f,48,1.167,0),h4:L(f,34,1.235,.25),h5:L(f,24,1.334,0),h6:L(b,20,1.6,.15),subtitle1:L(f,16,1.75,.15),subtitle2:L(b,14,1.57,.1),body1:L(f,16,1.5,.15),body2:L(f,14,1.43,.15),button:L(b,14,1.75,.4,bp),caption:L(f,12,1.66,.4),overline:L(f,12,2.66,1,bp)};return Rt(C({htmlFontSize:_,pxToRem:A,round:Vw,fontFamily:o,fontSize:a,fontWeightLight:c,fontWeightRegular:f,fontWeightMedium:b,fontWeightBold:g},T),E,{clone:!1})}var Bw=.2,Ww=.14,Uw=.12;function pe(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(Bw,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(Ww,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(Uw,")")].join(",")}var Kw=["none",pe(0,2,1,-1,0,1,1,0,0,1,3,0),pe(0,3,1,-2,0,2,2,0,0,1,5,0),pe(0,3,3,-2,0,3,4,0,0,1,8,0),pe(0,2,4,-1,0,4,5,0,0,1,10,0),pe(0,3,5,-1,0,5,8,0,0,1,14,0),pe(0,3,5,-1,0,6,10,0,0,1,18,0),pe(0,4,5,-2,0,7,10,1,0,2,16,1),pe(0,5,5,-3,0,8,10,1,0,3,14,2),pe(0,5,6,-3,0,9,12,1,0,3,16,2),pe(0,6,6,-3,0,10,14,1,0,4,18,3),pe(0,6,7,-4,0,11,15,1,0,4,20,3),pe(0,7,8,-4,0,12,17,2,0,5,22,4),pe(0,7,8,-4,0,13,19,2,0,5,24,4),pe(0,7,9,-4,0,14,21,2,0,5,26,4),pe(0,8,9,-5,0,15,22,2,0,6,28,5),pe(0,8,10,-5,0,16,24,2,0,6,30,5),pe(0,8,11,-5,0,17,26,2,0,6,32,5),pe(0,9,11,-5,0,18,28,2,0,7,34,6),pe(0,9,12,-6,0,19,29,2,0,7,36,6),pe(0,10,13,-6,0,20,31,3,0,8,38,7),pe(0,10,13,-6,0,21,33,3,0,8,40,7),pe(0,10,14,-6,0,22,35,3,0,8,42,7),pe(0,11,14,-7,0,23,36,3,0,9,44,8),pe(0,11,15,-7,0,24,38,3,0,9,46,8)];const Hw=Kw;var Gw={borderRadius:4};const qw=Gw;var Yw=process.env.NODE_ENV!=="production"?ce.oneOfType([ce.number,ce.string,ce.object,ce.array]):{};const Xw=Yw;var Jw=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function Zw(e){var t=e.spacing||8;return typeof t=="number"?function(r){return process.env.NODE_ENV!=="production"&&typeof r!="number"&&console.error("Material-UI: Expected spacing argument to be a number, got ".concat(r,".")),t*r}:Array.isArray(t)?function(r){return process.env.NODE_ENV!=="production"&&r>t.length-1&&console.error(["Material-UI: The value provided (".concat(r,") overflows."),"The supported values are: ".concat(JSON.stringify(t),"."),"".concat(r," > ").concat(t.length-1,", you need to add the missing values.")].join(`
|
|
1389
1394
|
`)),t[r]}:typeof t=="function"?t:(process.env.NODE_ENV!=="production"&&console.error(["Material-UI: The `theme.spacing` value (".concat(t,") is invalid."),"It should be a number, an array or a function."].join(`
|
|
1390
|
-
`)),function(){})}process.env.NODE_ENV!=="production"&&
|
|
1391
|
-
`)),
|
|
1392
|
-
`)),A[M]={})}};E(g.overrides)}return g}var n5
|
|
1395
|
+
`)),function(){})}process.env.NODE_ENV!=="production"&&Jw.reduce(function(e,t){return e[t]=Xw,e},{});var vp;function Qw(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:8;if(e.mui)return e;var t=Zw({spacing:e}),r=function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return process.env.NODE_ENV!=="production"&&(i.length<=4||console.error("Material-UI: Too many arguments provided, expected between 0 and 4, got ".concat(i.length))),i.length===0?t(1):i.length===1?t(i[0]):i.map(function(s){if(typeof s=="string")return s;var c=t(s);return typeof c=="number"?"".concat(c,"px"):c}).join(" ")};return Object.defineProperty(r,"unit",{get:function(){return process.env.NODE_ENV!=="production"&&((!vp||process.env.NODE_ENV==="test")&&console.error(["Material-UI: theme.spacing.unit usage has been deprecated.","It will be removed in v5.","You can replace `theme.spacing.unit * y` with `theme.spacing(y)`.","","You can use the `https://github.com/mui-org/material-ui/tree/master/packages/material-ui-codemod/README.md#theme-spacing-api` migration helper to make the process smoother."].join(`
|
|
1396
|
+
`)),vp=!0),e}}),r.mui=!0,r}var _p={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},yp={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function $p(e){return"".concat(Math.round(e),"ms")}const e5={easing:_p,duration:yp,create:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["all"],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.duration,o=n===void 0?yp.standard:n,i=r.easing,a=i===void 0?_p.easeInOut:i,s=r.delay,c=s===void 0?0:s,d=Re(r,["duration","easing","delay"]);if(process.env.NODE_ENV!=="production"){var f=function(h){return typeof h=="string"},p=function(h){return!isNaN(parseFloat(h))};!f(t)&&!Array.isArray(t)&&console.error('Material-UI: Argument "props" must be a string or Array.'),!p(o)&&!f(o)&&console.error('Material-UI: Argument "duration" must be a number or a string but found '.concat(o,".")),f(a)||console.error('Material-UI: Argument "easing" must be a string.'),!p(c)&&!f(c)&&console.error('Material-UI: Argument "delay" must be a number or a string.'),Object.keys(d).length!==0&&console.error("Material-UI: Unrecognized argument(s) [".concat(Object.keys(d).join(","),"]."))}return(Array.isArray(t)?t:[t]).map(function(b){return"".concat(b," ").concat(typeof o=="string"?o:$p(o)," ").concat(a," ").concat(typeof c=="string"?c:$p(c))}).join(",")},getAutoHeightDuration:function(t){if(!t)return 0;var r=t/36;return Math.round((4+15*Math.pow(r,.25)+r/5)*10)}};var t5={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const r5=t5;function n5(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.breakpoints,r=t===void 0?{}:t,n=e.mixins,o=n===void 0?{}:n,i=e.palette,a=i===void 0?{}:i,s=e.spacing,c=e.typography,d=c===void 0?{}:c,f=Re(e,["breakpoints","mixins","palette","spacing","typography"]),p=zw(a),b=Pw(r),h=Qw(s),g=Rt({breakpoints:b,direction:"ltr",mixins:Sw(b,h,o),overrides:{},palette:p,props:{},shadows:Hw,typography:jw(p,d),spacing:h,shape:qw,transitions:e5,zIndex:r5},f),m=arguments.length,_=new Array(m>1?m-1:0),$=1;$<m;$++)_[$-1]=arguments[$];if(g=_.reduce(function(v,A){return Rt(v,A)},g),process.env.NODE_ENV!=="production"){var y=["checked","disabled","error","focused","focusVisible","required","expanded","selected"],E=function v(A,L){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,M;for(M in A){var F=A[M];T===1?M.indexOf("Mui")===0&&F&&v(F,M,T+1):y.indexOf(M)!==-1&&Object.keys(F).length>0&&(process.env.NODE_ENV!=="production"&&console.error(["Material-UI: The `".concat(L,"` component increases ")+"the CSS specificity of the `".concat(M,"` internal state."),"You can not override it like this: ",JSON.stringify(A,null,2),"","Instead, you need to use the $ruleName syntax:",JSON.stringify({root:ir({},"&$".concat(M),F)},null,2),"","https://mui.com/r/pseudo-classes-guide"].join(`
|
|
1397
|
+
`)),A[M]={})}};E(g.overrides)}return g}var o5=n5();const i5=o5;function a5(e,t){return Ew(e,C({defaultTheme:i5},t))}var s5=function(t){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:t.typography.pxToRem(24),transition:t.transitions.create("fill",{duration:t.transitions.duration.shorter})},colorPrimary:{color:t.palette.primary.main},colorSecondary:{color:t.palette.secondary.main},colorAction:{color:t.palette.action.active},colorError:{color:t.palette.error.main},colorDisabled:{color:t.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:t.typography.pxToRem(20)},fontSizeLarge:{fontSize:t.typography.pxToRem(35)}}},Ji=W.forwardRef(function(t,r){var n=t.children,o=t.classes,i=t.className,a=t.color,s=a===void 0?"inherit":a,c=t.component,d=c===void 0?"svg":c,f=t.fontSize,p=f===void 0?"medium":f,b=t.htmlColor,h=t.titleAccess,g=t.viewBox,m=g===void 0?"0 0 24 24":g,_=Re(t,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return W.createElement(d,C({className:Os(o.root,i,s!=="inherit"&&o["color".concat(di(s))],p!=="default"&&p!=="medium"&&o["fontSize".concat(di(p))]),focusable:"false",viewBox:m,color:b,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:r},_),n,h?W.createElement("title",null,h):null)});process.env.NODE_ENV!=="production"&&(Ji.propTypes={children:ce.node,classes:ce.object,className:ce.string,color:ce.oneOf(["action","disabled","error","inherit","primary","secondary"]),component:ce.elementType,fontSize:uf(ce.oneOf(["default","inherit","large","medium","small"]),function(e){var t=e.fontSize;if(t==="default")throw new Error('Material-UI: `fontSize="default"` is deprecated. Use `fontSize="medium"` instead.');return null}),htmlColor:ce.string,shapeRendering:ce.string,titleAccess:ce.string,viewBox:ce.string}),Ji.muiName="SvgIcon";const xp=a5(s5,{name:"MuiSvgIcon"})(Ji);function l5(e,t){var r=function(o,i){return l.createElement(xp,C({ref:i},o),e)};return process.env.NODE_ENV!=="production"&&(r.displayName="".concat(t,"Icon")),r.muiName=xp.muiName,l.memo(l.forwardRef(r))}function c5(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:166,r;function n(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var s=this,c=function(){e.apply(s,i)};clearTimeout(r),r=setTimeout(c,t)}return n.clear=function(){clearTimeout(r)},n}function u5(e,t){return process.env.NODE_ENV==="production"?function(){return null}:function(r,n,o,i,a){var s=o||"<<anonymous>>",c=a||n;return typeof r[n]<"u"?new Error("The ".concat(i," `").concat(c,"` of ")+"`".concat(s,"` is deprecated. ").concat(t)):null}}function d5(e,t){return W.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function wp(e){return e&&e.ownerDocument||document}function f5(e){var t=wp(e);return t.defaultView||window}function p5(e){if(process.env.NODE_ENV==="production")return function(){return null};var t=function(n){return function(o,i,a,s,c){var d=c||i;return typeof o[i]<"u"&&!o[n]?new Error("The prop `".concat(d,"` of ")+"`".concat(e,"` must be used on `").concat(n,"`.")):null}};return t}function Zi(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function h5(e,t,r,n,o){if(process.env.NODE_ENV==="production")return null;var i=o||t;return typeof e[t]<"u"?new Error("The prop `".concat(i,"` is not supported. Please remove it.")):null}function m5(e){var t=e.controlled,r=e.default,n=e.name,o=e.state,i=o===void 0?"value":o,a=W.useRef(t!==void 0),s=a.current,c=W.useState(r),d=c[0],f=c[1],p=s?t:d;if(process.env.NODE_ENV!=="production"){W.useEffect(function(){s!==(t!==void 0)&&console.error(["Material-UI: A component is changing the ".concat(s?"":"un","controlled ").concat(i," state of ").concat(n," to be ").concat(s?"un":"","controlled."),"Elements should not switch from uncontrolled to controlled (or vice versa).","Decide between using a controlled or uncontrolled ".concat(n," ")+"element for the lifetime of the component.","The nature of the state is determined during the first render, it's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
|
|
1393
1398
|
`))},[t]);var b=W.useRef(r),h=b.current;W.useEffect(function(){!s&&h!==r&&console.error(["Material-UI: A component is changing the default ".concat(i," state of an uncontrolled ").concat(n," after being initialized. ")+"To suppress this warning opt to use a controlled ".concat(n,".")].join(`
|
|
1394
|
-
`))},[JSON.stringify(r)])}var g=W.useCallback(function(m){s||f(m)},[]);return[p,g]}var
|
|
1399
|
+
`))},[JSON.stringify(r)])}var g=W.useCallback(function(m){s||f(m)},[]);return[p,g]}var b5=typeof window<"u"?W.useLayoutEffect:W.useEffect;function g5(e){var t=W.useRef(e);return b5(function(){t.current=e}),W.useCallback(function(){return t.current.apply(void 0,arguments)},[])}function v5(e,t){return W.useMemo(function(){return e==null&&t==null?null:function(r){Zi(e,r),Zi(t,r)}},[e,t])}function _5(e){var t=W.useState(e),r=t[0],n=t[1],o=e||r;return W.useEffect(function(){r==null&&n("mui-".concat(Math.round(Math.random()*1e5)))},[r]),o}var $n=!0,Qi=!1,Ep=null,y5={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function $5(e){var t=e.type,r=e.tagName;return!!(r==="INPUT"&&y5[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function x5(e){e.metaKey||e.altKey||e.ctrlKey||($n=!0)}function ea(){$n=!1}function w5(){this.visibilityState==="hidden"&&Qi&&($n=!0)}function E5(e){e.addEventListener("keydown",x5,!0),e.addEventListener("mousedown",ea,!0),e.addEventListener("pointerdown",ea,!0),e.addEventListener("touchstart",ea,!0),e.addEventListener("visibilitychange",w5,!0)}function Pp(e){var t=e.target;try{return t.matches(":focus-visible")}catch{}return $n||$5(t)}function P5(){Qi=!0,window.clearTimeout(Ep),Ep=window.setTimeout(function(){Qi=!1},100)}function S5(){var e=W.useCallback(function(t){var r=ia.findDOMNode(t);r!=null&&E5(r.ownerDocument)},[]);return process.env.NODE_ENV!=="production"&&W.useDebugValue(Pp),{isFocusVisible:Pp,onBlurVisible:P5,ref:e}}const C5=Lp(Object.freeze(Object.defineProperty({__proto__:null,capitalize:di,createChainedFunction:l1,createSvgIcon:l5,debounce:c5,deprecatedPropType:u5,isMuiElement:d5,ownerDocument:wp,ownerWindow:f5,requirePropFactory:p5,setRef:Zi,unsupportedProp:h5,useControlled:m5,useEventCallback:g5,useForkRef:v5,unstable_useId:_5,useIsFocusVisible:S5},Symbol.toStringTag,{value:"Module"})));var Sp;function Cp(){return Sp||(Sp=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=C5}(ri)),ri}var T5=fn,O5=pn;Object.defineProperty(ei,"__esModule",{value:!0});var Tp=ei.default=void 0,k5=O5(l),D5=T5(Cp()),I5=(0,D5.default)(k5.createElement("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"Search");Tp=ei.default=I5;var ta={},A5=fn,N5=pn;Object.defineProperty(ta,"__esModule",{value:!0});var Op=ta.default=void 0,M5=N5(l),L5=A5(Cp()),F5=(0,L5.default)(M5.createElement("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");Op=ta.default=F5;const R5=I.div`
|
|
1395
1400
|
--border-color: ${u.color_outline_secondary_enabled};
|
|
1396
1401
|
|
|
1397
1402
|
border-radius: ${u.border_radius_400};
|
|
@@ -1422,7 +1427,7 @@ const theme2 = createTheme({ palette: {
|
|
|
1422
1427
|
font-size: 1rem;
|
|
1423
1428
|
fill: ${u.color_text_weak};
|
|
1424
1429
|
}
|
|
1425
|
-
`,
|
|
1430
|
+
`,z5=I(Eu)`
|
|
1426
1431
|
all: unset;
|
|
1427
1432
|
position: absolute;
|
|
1428
1433
|
right: 10px;
|
|
@@ -1443,7 +1448,7 @@ const theme2 = createTheme({ palette: {
|
|
|
1443
1448
|
line-height: 0;
|
|
1444
1449
|
font-size: ${u.font_size_50};
|
|
1445
1450
|
}
|
|
1446
|
-
`,
|
|
1451
|
+
`,V5=I(er)`
|
|
1447
1452
|
padding-left: 32px;
|
|
1448
1453
|
width: 100%;
|
|
1449
1454
|
|
|
@@ -1455,7 +1460,7 @@ const theme2 = createTheme({ palette: {
|
|
|
1455
1460
|
&::-webkit-search-results-decoration {
|
|
1456
1461
|
-webkit-appearance: none;
|
|
1457
1462
|
}
|
|
1458
|
-
`,
|
|
1463
|
+
`,kp=l.forwardRef((e,t)=>{const{label:r,size:n="small",placeholder:o="Search",disabled:i,readOnly:a,required:s,hideLabel:c,onChange:d,onClear:f,onSubmit:p,...b}=e,h={label:r,placeholder:o,onClear:f,onSubmit:p,onChange:d,isDisabled:i,isReadOnly:a,isRequired:s},g=K$(h),m=bt(t),{labelProps:_,inputProps:$,clearButtonProps:y}=G$(h,g,m);return le(tr,{children:[k(Xe,{..._,srOnly:c,children:r}),le(R5,{children:[k(Tp,{}),k(V5,{...$,ref:m,placeholder:o,paddingSize:n,...b}),g.value!==""&&k(z5,{...y,children:k(Op,{})})]})]})});kp.displayName="Search";const Dp="Switch",[j5,ME]=Pe(Dp),[B5,W5]=j5(Dp),U5=l.forwardRef((e,t)=>{const{__scopeSwitch:r,name:n,checked:o,defaultChecked:i,required:a,disabled:s,value:c="on",onCheckedChange:d,...f}=e,[p,b]=l.useState(null),h=se(t,y=>b(y)),g=l.useRef(!1),m=p?Boolean(p.closest("form")):!0,[_=!1,$]=Ne({prop:o,defaultProp:i,onChange:d});return l.createElement(B5,{scope:r,checked:_,disabled:s},l.createElement(te.button,C({type:"button",role:"switch","aria-checked":_,"aria-required":a,"data-state":Ip(_),"data-disabled":s?"":void 0,disabled:s,value:c},f,{ref:h,onClick:H(e.onClick,y=>{$(E=>!E),m&&(g.current=y.isPropagationStopped(),g.current||y.stopPropagation())})})),m&&l.createElement(G5,{control:p,bubbles:!g.current,name:n,value:c,checked:_,required:a,disabled:s,style:{transform:"translateX(-100%)"}}))}),K5="SwitchThumb",H5=l.forwardRef((e,t)=>{const{__scopeSwitch:r,...n}=e,o=W5(K5,r);return l.createElement(te.span,C({"data-state":Ip(o.checked),"data-disabled":o.disabled?"":void 0},n,{ref:t}))}),G5=e=>{const{control:t,checked:r,bubbles:n=!0,...o}=e,i=l.useRef(null),a=qr(r),s=Lr(t);return l.useEffect(()=>{const c=i.current,d=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(d,"checked").set;if(a!==r&&p){const b=new Event("click",{bubbles:n});p.call(c,r),c.dispatchEvent(b)}},[a,r,n]),l.createElement("input",C({type:"checkbox","aria-hidden":!0,defaultChecked:r},o,{tabIndex:-1,ref:i,style:{...e.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))};function Ip(e){return e?"checked":"unchecked"}const q5=U5,Y5=H5,X5=I(q5)`
|
|
1459
1464
|
all: unset;
|
|
1460
1465
|
width: 40px;
|
|
1461
1466
|
height: 24px;
|
|
@@ -1495,7 +1500,7 @@ const theme2 = createTheme({ palette: {
|
|
|
1495
1500
|
&[aria-checked='true']:active {
|
|
1496
1501
|
background-color: ${u.color_fill_primary_pressed};
|
|
1497
1502
|
}
|
|
1498
|
-
`,
|
|
1503
|
+
`,J5=I(Y5)`
|
|
1499
1504
|
--thumb-width: 18px;
|
|
1500
1505
|
display: block;
|
|
1501
1506
|
width: var(--thumb-width);
|
|
@@ -1514,83 +1519,83 @@ const theme2 = createTheme({ palette: {
|
|
|
1514
1519
|
&[data-state~='checked'] {
|
|
1515
1520
|
transform: translateX(19px);
|
|
1516
1521
|
}
|
|
1517
|
-
`,
|
|
1522
|
+
`,Ap=l.forwardRef((e,t)=>{const{disabled:r,...n}=e,o=Du(r);return k(X5,{...n,...o,ref:t,children:k(J5,{})})});Ap.displayName="Switch";const hr=I.p`
|
|
1518
1523
|
font-family: ${u.font_family_sans};
|
|
1519
|
-
font-style: normal;
|
|
1524
|
+
font-style: var(--text-style, normal);
|
|
1520
1525
|
font-weight: var(--text-font-weight, 400);
|
|
1521
1526
|
color: var(--text-color, ${u.color_text_strong});
|
|
1522
1527
|
margin-block: 0;
|
|
1523
1528
|
`,ra=I(hr)`
|
|
1524
1529
|
max-width: 60ch; /* should check with designers */
|
|
1525
|
-
`,
|
|
1530
|
+
`,Z5=I(ra)`
|
|
1526
1531
|
letter-spacing: ${u.letter_spacing_body_large};
|
|
1527
1532
|
line-height: ${u.line_height_body_large};
|
|
1528
1533
|
font-size: ${u.font_size_body_large};
|
|
1529
|
-
`,
|
|
1534
|
+
`,Q5=I(ra)`
|
|
1530
1535
|
letter-spacing: ${u.letter_spacing_body_medium};
|
|
1531
1536
|
line-height: ${u.line_height_body_medium};
|
|
1532
1537
|
font-size: ${u.font_size_body_medium};
|
|
1533
|
-
`,
|
|
1538
|
+
`,eE=I(ra)`
|
|
1534
1539
|
letter-spacing: ${u.letter_spacing_body_small};
|
|
1535
1540
|
line-height: ${u.line_height_body_small};
|
|
1536
1541
|
font-size: ${u.font_size_body_small};
|
|
1537
|
-
`,
|
|
1542
|
+
`,tE={large:Z5,medium:Q5,small:eE};function rE({size:e="medium",...t}){const r=tE[e];return k(r,{...t})}const xn=I.p`
|
|
1538
1543
|
font-feature-settings: 'tnum' on, 'lnum' on, 'ss01' on;
|
|
1539
1544
|
font-family: ${u.font_family_sans};
|
|
1540
1545
|
font-style: normal;
|
|
1541
1546
|
font-weight: var(--text-font-weight, 400);
|
|
1542
1547
|
color: var(--text-color, ${u.color_text_strong});
|
|
1543
1548
|
margin-block: 0;
|
|
1544
|
-
`,
|
|
1549
|
+
`,nE=I(xn)`
|
|
1545
1550
|
letter-spacing: ${u.letter_spacing_number_xsmall};
|
|
1546
1551
|
line-height: ${u.line_height_number_xsmall};
|
|
1547
1552
|
font-size: ${u.font_size_number_xsmall};
|
|
1548
|
-
`,
|
|
1553
|
+
`,oE=I(xn)`
|
|
1549
1554
|
letter-spacing: ${u.letter_spacing_number_small};
|
|
1550
1555
|
line-height: ${u.line_height_number_small};
|
|
1551
1556
|
font-size: ${u.font_size_number_small};
|
|
1552
|
-
`,
|
|
1557
|
+
`,iE=I(xn)`
|
|
1553
1558
|
letter-spacing: ${u.letter_spacing_number_medium};
|
|
1554
1559
|
line-height: ${u.line_height_number_medium};
|
|
1555
1560
|
font-size: ${u.font_size_number_medium};
|
|
1556
|
-
`,
|
|
1561
|
+
`,aE=I(xn)`
|
|
1557
1562
|
letter-spacing: ${u.letter_spacing_number_large};
|
|
1558
1563
|
line-height: ${u.line_height_number_large};
|
|
1559
1564
|
font-size: ${u.font_size_number_large};
|
|
1560
|
-
`,
|
|
1565
|
+
`,sE={xsmall:nE,small:oE,medium:iE,large:aE};function lE({size:e="medium",...t}){const r=sE[e];return k(r,{...t})}const cE=I(hr)`
|
|
1561
1566
|
letter-spacing: ${u.letter_spacing_number_small};
|
|
1562
1567
|
line-height: ${u.line_height_number_small};
|
|
1563
1568
|
font-size: ${u.font_size_number_small};
|
|
1564
|
-
`,
|
|
1569
|
+
`,uE=I(hr)`
|
|
1565
1570
|
letter-spacing: ${u.letter_spacing_number_xsmall};
|
|
1566
1571
|
line-height: ${u.line_height_number_xsmall};
|
|
1567
1572
|
font-size: ${u.font_size_number_xsmall};
|
|
1568
|
-
`,
|
|
1573
|
+
`,dE=I(hr)`
|
|
1569
1574
|
letter-spacing: ${u.letter_spacing_number_large};
|
|
1570
1575
|
line-height: ${u.line_height_number_large};
|
|
1571
1576
|
font-size: ${u.font_size_number_large};
|
|
1572
|
-
`,
|
|
1577
|
+
`,fE=I(hr)`
|
|
1573
1578
|
letter-spacing: ${u.letter_spacing_number_medium};
|
|
1574
1579
|
line-height: ${u.line_height_number_medium};
|
|
1575
1580
|
font-size: ${u.font_size_number_medium};
|
|
1576
|
-
`,
|
|
1581
|
+
`,pE={xsmall:uE,small:cE,medium:fE,large:dE};function hE({size:e="medium",...t}){const r=pE[e];return k(r,{...t})}const mE={caption:hE,body:rE,number:lE},bE={normal:{standard:u.color_text_standard,strong:u.color_text_strong,weak:u.color_text_weak},sentiment:{positive:u.color_text_sentiment_positive,negative:u.color_text_sentiment_negative,notice:u.color_text_sentiment_notice,neutral:u.color_text_sentiment_neutral}},Np=l.forwardRef((e,t)=>{const{type:r="body",textType:n="normal",variant:o="standard",italic:i,bold:a,as:s,...c}=e,d=mE[r],p=bE[n][o];return k(d,{as:s,...c,ref:t,style:{"--text-font-weight":a?500:400,"--text-color":p,"--text-style":i?"italic":"normal"}})});Np.displayName="Text";const wn=I.h1`
|
|
1577
1582
|
font-family: ${u.font_family_inter_display};
|
|
1578
1583
|
font-style: normal;
|
|
1579
1584
|
font-weight: 500; /* don't really see value of using tokens for font-weight */
|
|
1580
1585
|
margin: 0;
|
|
1581
1586
|
padding-inline: 0;
|
|
1582
1587
|
color: ${u.color_text_strong};
|
|
1583
|
-
`,
|
|
1588
|
+
`,gE=I(wn)`
|
|
1584
1589
|
font-size: ${u.font_size_title_large};
|
|
1585
1590
|
letter-spacing: ${u.letter_spacing_title_large};
|
|
1586
|
-
`,
|
|
1591
|
+
`,vE=I(wn)`
|
|
1587
1592
|
font-size: ${u.font_size_title_medium};
|
|
1588
1593
|
letter-spacing: ${u.letter_spacing_title_medium};
|
|
1589
|
-
`,
|
|
1594
|
+
`,_E=I(wn)`
|
|
1590
1595
|
font-size: ${u.font_size_title_small};
|
|
1591
1596
|
letter-spacing: ${u.letter_spacing_title_small};
|
|
1592
|
-
`,
|
|
1597
|
+
`,yE={xsmall:I(wn)`
|
|
1593
1598
|
font-size: ${u.font_size_title_xsmall};
|
|
1594
1599
|
letter-spacing: ${u.letter_spacing_title_xsmall};
|
|
1595
|
-
`,small:
|
|
1600
|
+
`,small:_E,medium:vE,large:gE},Mp=l.forwardRef((e,t)=>{const{children:r,size:n,as:o,className:i,...a}=e,s=yE[n];return k(s,{...a,as:o,ref:t,className:i,children:r})});Mp.displayName="Title",R.AccessibleIcon=qt,R.AlertDialog=J0,R.AlertDialogAction=Q0,R.AlertDialogCancel=em,R.AlertDialogContent=G0,R.AlertDialogDescription=Y0,R.AlertDialogFooter=X0,R.AlertDialogTitle=q0,R.AlertDialogTrigger=Z0,R.BreadcrumbItem=Yl,R.BreadcrumbLink=Hl,R.BreadcrumbListItem=wo,R.Breadcrumbs=ql,R.Button=Po,R.Checkbox=e_,R.Dialog=B0,R.DialogClose=U0,R.DialogCloseButton=j0,R.DialogContent=F0,R.DialogDescription=z0,R.DialogFooter=V0,R.DialogTitle=R0,R.DialogTrigger=W0,R.Fieldset=Zg,R.FormControl=Yv,R.Heading=Iu,R.IconButton=Nu,R.Label=Xe,R.NumberFormControl=ku,R.NumberInput=Mo,R.Page=J_,R.PageContent=Xu,R.PageGrid=Yu,R.Pagination=ey,R.PaginatorButton=sn,R.PaginatorNumber=ln,R.Popover=Wl,R.PopoverClose=xg,R.PopoverCloseCross=wg,R.PopoverContent=$g,R.PopoverTrigger=Ul,R.Radio=Ly,R.RadioGroup=My,R.RadioGroupIndicator=ld,R.RadioGroupRadio=sd,R.Search=kp,R.Select=_d,R.SelectContent=gd,R.SelectGroup=V$,R.SelectGroupLabel=B$,R.SelectIcon=xd,R.SelectItem=wd,R.SelectItemIndicator=j$,R.SelectItemText=Ed,R.SelectScrollDownButton=Sd,R.SelectScrollUpButton=Pd,R.SelectSeparator=W$,R.SelectTrigger=yd,R.SelectValue=$d,R.SelectViewport=z$,R.SingleSelect=U$,R.StyledFieldSet=Zl,R.StyledTrigger=bd,R.Switch=Ap,R.Text=Np,R.TextAreaFormControl=Ou,R.TextFormControl=Tu,R.TextInput=To,R.Title=Mp,R.Toast=X_,R.ToastAction=B_,R.ToastClose=Gu,R.ToastProvider=Y_,R.ToastSeparator=qu,R.ToastViewport=G_,R.Tooltip=ic,R.TooltipContent=ac,R.TooltipProvider=oc,R.TooltipTrigger=Io,R.contentShow=Wn,R.dialogWidths=Un,R.overlayShow=Bn,R.useFieldProps=tn,R.useFieldset=tt,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})});
|
|
1596
1601
|
//# sourceMappingURL=trc-components.umd.js.map
|